-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
嵌套弹窗center位置时会限定父弹窗内以及tabbar组件遮挡问题 #900
Comments
问题1的产生是由于popup使用了 |
@Moonofweisheng 但是 |
可以在popup中使用cell组件,将select-picker放在外部。cell的click调用picker的open方法。
…---原始邮件---
发件人: ***@***.***>
发送时间: 2025年2月20日(周四) 上午9:51
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [Moonofweisheng/wot-design-uni] 嵌套弹窗center位置时会限定父弹窗内以及tabbar组件遮挡问题 (Issue #900)
@Moonofweisheng 但是wd-select-picker这个组件展示视图和弹窗视图是一体的,怎么能实现放到popup外部呢?照着这个组件源码,自己再分开重写下?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
nadirvishun left a comment (Moonofweisheng/wot-design-uni#900)
@Moonofweisheng 但是wd-select-picker这个组件展示视图和弹窗视图是一体的,怎么能实现放到popup外部呢?照着这个组件源码,自己再分开重写下?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@Moonofweisheng 明白了,到时候测试下,还有就是遮挡tabbar这个目前有好的解决方法吗? |
可以通过css变量--window-bottom,设置具体底部的padding。 |
我总结下吧:
以上只在h5中测试,小程序没有测试。 |
Wot Design Uni 版本号
1.7.0
平台
h5, 微信小程序
复现Demo地址(如不提供,将被直接关闭)
wot-demo
重现步骤
1、嵌套弹窗,一个
wd-popup
内再增加wd-select-picker
弹窗,当wd-popup
的position
为center
时,wd-select-picker
弹窗会被固定在wd-popup
父弹窗范围内,而其它position
则不会,如图:2、遮挡
tabbar
,通过上面的图片(自定义tabbar
)也能看到,弹窗1和2都会被自定义tabbar
遮挡,而原生的则只有wd-popup
被遮挡,而wd-select-picker
不会被遮挡,下面时原生tabbar
的情况:期望的结果是什么?
1、嵌套弹窗当为
center
时,子弹窗也能全局弹出。2、tabbar不遮挡弹窗或是提高弹窗位置以tabbar上限为准。
实际的结果是什么?
1、嵌套弹窗当为
center
时,子弹窗被框限在父弹窗内。2、
原生tabbar
时会遮挡wd-popup
而不会遮挡wd-select-picker
(向上提高了而不一定是不遮挡)3、
自定义tabbar
是两个弹窗都会遮挡。环境信息
开发平台:微信小程序、H5平台
操作系统:h5:win11 edge最新;小程序:安卓
uni-app版本:最新
3.0.0-4040520250104002
或是create-uni
模板中的3.0.0-4020420240722002
其他补充信息
No response
The text was updated successfully, but these errors were encountered: