使用vue-awesome-swiper轮播图插件的坑
- 关于配置项中的自动播放autoplay的参数
Option:{
// 分页器配置
pagination: {
el: '.swiper-pagination',
clickable: true,
},
//循环
loop:true,
//每张播放时长3秒,自动播放
autoplay:{
delay:3000,
disableOnInteraction:false
},
//滑动速度
speed:1000
},
- autoplay: true 默认自动播放
- autoplay: 1500 毫秒参数不生效 使用下面的方式
- autoplay: {
delay:3000, 自动播放毫秒数
disableOnInteraction:false 禁用交互(默认false)
}
- swiper使用loop模式下里点击事件不生效