0.0.1 • Published 6 years ago
wj-carousel v0.0.1
1. install
npm install wj-carousel
2. 导入
import Carousel from 'wj-carousel';
3. props
props = {
width: 750,
height: 400,
sideScale: 0.8,
pageMargin: 20,
dragPlay: true,
autoPlay: true,
duration: 450,
delay: 3000,
onChangeStart: () => {},
onChangeEnd: () => {},
}
0.0.1
6 years ago