Socket
Socket
Sign inDemoInstall

@alifd/biz-anchor

Package Overview
Dependencies
72
Maintainers
23
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @alifd/biz-anchor

anchor


Version published
Weekly downloads
31
decreased by-29.55%
Maintainers
23
Install size
40.0 MB
Created
Weekly downloads
 

Readme

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

Last updated on 04 Sep 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc