vrool
v1.0.1
Published
基于vue上下滚动list
Downloads
12
Readme
vrool 滚动插件
使用
1 下载
npm install vrool
2 引用
import vrool from 'vrool'
Vue.use(vueRollLoop)
3 使用
<vue-roll-loop :height='80'>
<vue-roll-loop-item>
vue1
</vue-roll-loop-item>
<vue-roll-loop-item>
vue2
</vue-roll-loop-item>
<vue-roll-loop-item>
vue3
</vue-roll-loop-item>
<vue-roll-loop-item>
vue4
</vue-roll-loop-item>
<vue-roll-loop-item>
vue5
</vue-roll-loop-item>
</vue-roll-loop>
参数
| 参数 | 类型 | 类型 | 默认值 | | - | :- | :- | :- |:-: | | height | number | 展示高度 | 30 |
例子
npm install
npm run-script serve