uniapp中swiper组件实现(全部或部分区域)禁止手动滑动

//全部禁止左右滑动
<swiper-item class="swiper-item" @touchmove.stop="stopTouchMove">
//部分元素 禁止左右滑动
<view class="u-charts-box" @touchmove.stop="stopTouchMove"> <view class="picker_unit">销售额:万</view>
</view>
stopTouchMove(){
    return false;
}

 

posted @ 2021-04-27 13:31  骅骝漫轻舞01  阅读(3032)  评论(0编辑  收藏  举报