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

Overlay 的 DOM 移动行为值得优化 #37

Open
guangliang2019 opened this issue Sep 2, 2024 · 0 comments
Open

Overlay 的 DOM 移动行为值得优化 #37

guangliang2019 opened this issue Sep 2, 2024 · 0 comments
Labels
enhancement New feature or request hard The issue is hard to resolve

Comments

@guangliang2019
Copy link
Owner

目前来看,Overlay 组件在 connected 生命周期时进行子元素的转移行为,会触发子元素的 disconnect 和 connect,这部分可以考虑使用 template 优化,但是那就会要求用户必须要记忆那些组件需要使用 template。或许需要一个自顶向下设计的 MutationObserver,对部分组件库内部的 DOM 操作加入白名单。

@guangliang2019 guangliang2019 added enhancement New feature or request hard The issue is hard to resolve labels Sep 2, 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 hard The issue is hard to resolve
Projects
None yet
Development

No branches or pull requests

1 participant