overlayStyle() {
const style = {
justifyContent: 'center',
alignItems: 'center',
display: 'flex',
zIndex: 100090// 添加比u-popup高的层级
}
// 将遮罩设置为100%透明度,避免出现灰色背景
style.backgroundColor = 'rgba(0, 0, 0, 0)'
return style
}
有其它更好的办法欢迎指教。