3***@qq.com
3***@qq.com
  • 发布:2025-02-14 14:52
  • 更新:2025-02-14 16:39
  • 阅读:56

遮罩层无法再弹窗内容显示的情况下关闭,即不论弹出层内容是否打开,都不显示遮罩层

分类:插件市场

uni-popup .uni-popup-mask {
display: none !important;
}
<uni-popup ref="popup" type="bottom" v-bind:mask="false" :animation="false" :mask-click="false">
<view class="popup-content" :style="{ height: popupHeight + 'px' }">
<!-- 弹出层内容 -->
<view class="header">
<text>四人脚踏船</text>
</view>
<view class="body">
<text>秘密行动</text>
<text>沙滩后铲</text>
<text>分享</text>
<text>暴山公墓</text>
</view>
<view class="footer">
<button @click="toggleAddLocation">添加地点</button>
</view>
</view>
</uni-popup>

2025-02-14 14:52 负责人:无 分享
已邀请:
亚瑟

亚瑟 - 男爵

你是要点到弹窗底层的内容吗,如果不是,可以设置遮罩maskBackgroundColor 透明,看文档和源码好像是没有关闭遮罩的属性

  • 3***@qq.com (作者)

    是的我弹出层下面是地图,我想在弹出层打开的情况下可以在地图上标点或者缩放移动地图,都没法实现

    2025-02-15 14:54

要回复问题请先登录注册