4***@qq.com
4***@qq.com
  • 发布:2020-05-13 11:59
  • 更新:2020-05-13 14:13
  • 阅读:1325

#插件讨论# 【 Popup 弹出层 - DCloud 】弹出层兼容性问题

分类:uni-app

为什么iphone11从底部弹层会多出一块空白呢?

2020-05-13 11:59 负责人:无 分享
已邀请:
暮雪骄阳

暮雪骄阳

这是安全区适配了,如果需要全满,你需要在manifest.json配置
"app-plus" : {
"popGesture": "none",
"safearea" : {
"bottom" : {
"offset" : "none"
}
}
}

打开uni-popup.vue,在它的样式里.uni-popup__wrapper-box进行一下适配

    padding-bottom: constant(safe-area-inset-bottom);  
    padding-bottom: env(safe-area-inset-bottom);
  • 4***@qq.com (作者)

    解决了,谢啦谢啦~

    2020-05-13 15:44

该问题目前已经被锁定, 无法添加新回复