0.1.4 • Published 2 years ago
vue3-infinite-auto-rolling v0.1.4
API Reference
description
The vue3 component for scrolling lists allows wrapped components to automatically scroll indefinitely 用于滚动列表的 vue3 组件让被包裹的组件自动无限滚动
install
npm i vue3-infinite-auto-rolling
props
name | type | default | description |
---|---|---|---|
speed | Number | 10 | Rolling speed |
containerHeight | Number | 300 | height |
step | Number | 1 | translate px size |
methods
name | description | params |
---|---|---|
stop | stop | |
pause | pause | |
start | start | |
controlSpeed | controlSpeed | number |
import vue3-infinite-auto-rolling from "vue3-infinite-auto-rolling"
...
<template>
<vue3-infinite-auto-rolling >
<list></list>
</vue3-infinite-auto-rolling>
</template>
Source address
Thank you stars https://github.com/ppjiucai/vue3-infinite-auto-rolling