el 下拉菜单 显示滚动条
视觉滚动 (vue-scrollactive)
Lightweight and simple to use vue component that highlights menu items as you scroll the page, also scrolling to target section when clicked.
轻巧且易于使用的vue组件,在滚动页面时高亮显示菜单项,单击时也会滚动到目标部分。
This vue 2 component makes it simple to highlight a menu item with an 'active' class as you scroll.
通过vue 2组件,您可以在滚动时轻松突出显示具有“活动”类的菜单项。
Highlights menu items as you scroll
滚动时突出显示菜单项
Scrolls to item's section on click
单击时滚动到项目部分
Customizable easing for scrolling on click
可自定义的缓动,用于滚动点击
Vue2
Vue2
Uses pure JS!
使用纯JS!
现场演示 (Live Demo)
https://eddiemf.github.io/vue-scrollactive/examples/example-1.html
https://eddiemf.github.io/vue-scrollactive/examples/example-1.html
安装 (Installation)
Install via npm and use it as a vue plugin in your app.
通过npm安装并将其用作应用程序中的vue