0.1.0 • Published 4 years ago

v-mobile-carousel v0.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

v-mobile-carousel

一款用于移动端的轮播图vue插件

演示

demo示例图

安装

yarn add v-mobile-carousel
Or
npm i v-mobile-carousel

使用

import Carousel from 'v-mobile-carousel'
export default {
  components: { Carousel }
}

api

props

参数取值必选说明
listArray必选用于显示的图片列表{src: ''}, ...
intervalNumber非必选自动播放,一次循环的时长
thresholdNumber非必选手动滑动时,超过该值才会滑动
autoBoolean非必选是否默认进入循环,默认为true

events

名称参数说明
@index-changeNumber当内部图片变化时,透传当前处于active的数组索引,该索引默认应为0

License (MIT)