Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alifd/biz-anchor

Package Overview
Dependencies
Maintainers
23
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alifd/biz-anchor

anchor

  • 2.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
23
Created
Source

anchor

npm i @alifd/biz-anchor

2.0.0 后增加跟随页面滚动自动切换 active 态功能

API

继承 Affix 所有能力

参数名说明必填类型默认值备注
offsetTop菜单距离顶部偏离的固定高度falseNumber0
noHash不修改hashfalseNumber0
content返回关注内容的node节点, 自动生成目录falsedocumentNode0
scrollNode指定要监听的滚动节点(默认监听 window 对象),如需修改指定该参数falsewindow0
参数名说明必填类型默认值备注
active-boolfalse

Keywords

FAQs

Package last updated on 04 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc