vue-scrollevent

1.0.3 • Public • Published

滚动条事件

采用window监听onscroll操作

如何使用

安装

npm install vue-scrollevent

在vue中引用

import vue from 'vue';
import vue-scrollevent from 'vue-scrollevent';
vue.use(vue-scrollevent);

在页面中使用

vue.scroll.push({
    fn (e) {
        console.log('执行函数');
        console.log(JSON.stringify(e));
    },
    position:'bottom'
    // 支持类型数字为滚动条距离,字符为top bottom left right move,对应滚动条到哪个底部位置触发
});

api操作

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    2
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i vue-scrollevent

Weekly Downloads

2

Version

1.0.3

License

MIT

Last publish

Collaborators

  • yodfz