uniapp u-popup封装弹框背景滚动/滚动穿模

app 父级加 @touchmove.prevent=“e=>{}”

<template>
	<view @touchmove.prevent="e=>{}">
		<u-popup :show="show" round="5" @close="show = false" closeOnClickOverlay>

小程序

@touchmove.stop.prevent="e=>{}" :style="'overflow:'+(show?'hidden':'visible')"
:overlayStyle="{'touch-action':'none'}"
<template>
	<view @touchmove.stop.prevent="e=>{}" :style="'overflow:'+(show?'hidden':'visible')">
		<u-popup :show="show" round="5" @close="show = false" closeable :closeOnClickOverlay="false"
			:overlayStyle="{'touch-action':'none'}">

你可能感兴趣的:(uniapp,uni-app,chrome,javascript)