1.0.4 • Published 5 years ago
vue-carousel-zcy v1.0.4
vue-carousel-zcy
a vue component of carousel
兼容pc和移动端的走马灯轮播图(>=vue2.0)
Installation
npm install vue-carousel-zcy
import Carousel from 'vue-carousel-zcy'
Vue.use(Carousel);
Usage
<sny-carousel class="news-fadein">
<sny-carousel-item v-for="(item, index) in slideList" :key="index">
<div>内容</div>
</sny-carousel-item>
</sny-carousel>
Props
Property | Type | Default Value | Description |
---|---|---|---|
interval | Number | 4000 | Interval |
isAuto | Boolean | true | Whether to automatically carousel or not |
isShowArrow | Boolean | false | Whether to show the arrow or not |