vue-scroll-xy
v1.0.7
Published
Simple list with infinite scroll (horizontal and vertical) By lxy
Maintainers
Readme
vue-scroll-xy
A simple infinite scroll component for Vue 2.
📢 更新日志
v1.0.7 (2025-09-13)
- 修复鼠标悬停不暂停的问题
- 增加speed参数
- 内容没有容器高时,不滚动
- 增加滚动方向参数
- 增加默认宽度,200
- 修复已知bug
📦 安装
npm install vue-scroll-xy
参数说明
speed
调节滚动速度,默认20,值越小越快,最小1
height
容器高度,默认200px
width
容器宽度,默认200px
mouseEnterStop
鼠标移入->停止滚动,鼠标移出->开始滚动 默认值 true,若不需要改为false
direction
滚动方向->'vertical'(纵向) 'horizontal' (横向),默认纵向
使用示例
局部引入
import VueScrollXY from 'vue-scroll-xy'
components: { VueScrollXY }
全局引入
配置main.js
import VueScrollXY from 'vue-scroll-xy'
Vue.component('VueScrollXY', VueScrollXY);
