Swiper 禁止滑动
- 给swiper-item绑定事件
<swiper-item catchtouchmove="stopTouchMove">
- 禁止滑动
methods: {
stopTouchMove() {
return false;
},
}
然后我们可以修改 swiper 的 current 属性切换
<swiper-item catchtouchmove="stopTouchMove">
methods: {
stopTouchMove() {
return false;
},
}
然后我们可以修改 swiper 的 current 属性切换