uni-app 蒙版 下的view 禁止滾動

     方案1:給蒙板view增長.stop.prevent事件修飾符,以下:
<view class="mask" @touchmove.stop.prevent="moveHandle"></view>日誌

方案2:給其餘view增長以下:code

     view組件加一個catchtouchmove="false"事件

 方案2 滑動的時候控制檯會打印不少日誌。。。。event

相關文章
相關標籤/搜索