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

[popup] 建议popup弹出层添加全局挂载点的配置 #3167

Open
hinak0 opened this issue May 9, 2024 · 4 comments
Open

[popup] 建议popup弹出层添加全局挂载点的配置 #3167

hinak0 opened this issue May 9, 2024 · 4 comments
Labels
💪🏻 enhancement New feature or request to be published fixed, not be published

Comments

@hinak0
Copy link

hinak0 commented May 9, 2024

这个功能解决了什么问题

当应用放在app容器中时,popup的element挂载地点可能影响页面表现
每个popup层都单独设置attach太麻烦,如果可以全局配置就好了。

你建议的方案是什么

添加相关全局配置

Copy link
Contributor

github-actions bot commented May 9, 2024

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

@hinak0 hinak0 changed the title [popup] 建议添加全局挂载点的配置 [popup] 建议popup弹出层添加全局挂载点的配置 May 9, 2024
@uyarn uyarn added the 💪🏻 enhancement New feature or request label May 10, 2024
@uyarn
Copy link
Collaborator

uyarn commented May 10, 2024

默认挂载的就是body 如果全局配置 全部挂载在其他某个节点,又是什么场景嘞?

@hinak0
Copy link
Author

hinak0 commented May 10, 2024

默认挂载的就是body 如果全局配置 全部挂载在其他某个节点,又是什么场景嘞?

比如一个页面中有多个app的时候,不同app做了css样式隔离;

再比如把app放进其他的app容器中,全局应该可以配置挂载在容器顶层而不是body里面(会造成样式丢失)

@uyarn
Copy link
Collaborator

uyarn commented Jul 20, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪🏻 enhancement New feature or request to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

2 participants