微信小程序之禁止手动滑动切换swiper-item

第一步:
wxml中,
在swiper-item组件标签中绑定事件:
catchtouchmove=“stopTouchMove”

第二步:
js中,
添加
stopTouchMove() {
return false;
},

你可能感兴趣的:(小程序)