代码
<!-- 弹窗 view -->
<view class="mask" @touchmove.stop.prevent="handleMove"></view>
// js 触发的函数:置空即可
handleMove: function() {},
参考
- 【uniapp】禁止遮罩层下的页面滚动解决办法
- https://uniapp.dcloud.net.cn/tutorial/vue-basics.html#事件修饰符
微信扫一扫
代码
<!-- 弹窗 view -->
<view class="mask" @touchmove.stop.prevent="handleMove"></view>
// js 触发的函数:置空即可
handleMove: function() {},
参考
相关推荐