Skip to content
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

[Dialog] t-dialog层级问题 #2450

Open
tankle0 opened this issue Nov 22, 2023 · 3 comments
Open

[Dialog] t-dialog层级问题 #2450

tankle0 opened this issue Nov 22, 2023 · 3 comments
Labels
question This is a question, not a bug

Comments

@tankle0
Copy link

tankle0 commented Nov 22, 2023

tdesign-miniprogram 版本

1.2.3

重现链接

No response

重现步骤

使用tabs包裹循环的列表,列表内部使用t-dialog组件,打开弹窗后,遮罩层无法显示在最顶层
a0c2f792b370232ac33d0ea8feac0c38

期望结果

希望t-dialog遮罩层一直在最顶层

实际结果

t-dialog遮罩层无法覆盖到最顶层,z-index设置到很大还是不行
image

a0c2f792b370232ac33d0ea8feac0c38

基础库版本

3.2.0

补充说明

No response

Copy link
Contributor

👋 @tankle0,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@tankle0
Copy link
Author

tankle0 commented Nov 22, 2023

现在的解决办法是只能将t-dialog写在最顶层的父组件,遮罩层才能显示完全,但是这样还要向父组件来回传递数据,很不方便

@anlyyao
Copy link
Collaborator

anlyyao commented Jun 25, 2024

@tankle0 用root-portal包一下dialog

@anlyyao anlyyao added the question This is a question, not a bug label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants