1.0.2 • Published 4 years ago

illmatic-slide-show v1.0.2

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

组件介绍

illmatic-slide-show Vue 轮播图组件,支持自动播放、循环播放和触屏滑动切换图片。

使用说明

1.安装: npm:npm install illmatic-slide-show --save

yarn:yarn add illmatic-slide-show

2.注册组件: import illmaticSlideShow from 'illmatic-slide-show';

Vue.use(illmaticSlideShow);

3.使用组件: <illmatic-slide-show></illmatic-slide-show>

配置项

props:
参数名类型可选值说明默认值
imageListArray例如:url1,url2,url2,...图片列表[]
loopBooleantrue/false是否循环(头尾相接)true
autoPlayBooleantrue/false是否自动播放true
intervalNumber例如:5自动播放间隔时间,单位:秒5
guideBooleantrue/false是否展示下方导航点true
controlBooleantrue/false是否开启触屏滑动切换图片true
events:
事件名称说明回调参数
click点击图片时触发点击的图片和索引,例如:value:{image:"url",index:1}