Swiper 禁止滑动
- 给swiper-item绑定事件
<swiper-item catchtouchmove="stopTouchMove">
- 禁止滑动
methods: {
stopTouchMove() {
return false;
},
}
然后我们可以修改 swiper 的 current 属性切换
博客介绍了Swiper禁止滑动的方法,即给swiper-item绑定事件来禁止滑动,还提到可通过修改swiper的current属性进行切换。
<swiper-item catchtouchmove="stopTouchMove">
methods: {
stopTouchMove() {
return false;
},
}
然后我们可以修改 swiper 的 current 属性切换

被折叠的 条评论
为什么被折叠?