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

能不能控制custom element(web component)自由开启shadow-root #7968

Closed
yanyunwu opened this issue Mar 28, 2023 · 4 comments
Closed

能不能控制custom element(web component)自由开启shadow-root #7968

yanyunwu opened this issue Mar 28, 2023 · 4 comments
Labels
✨ feature request New feature or request

Comments

@yanyunwu
Copy link

yanyunwu commented Mar 28, 2023

What problem does this feature solve?

是这样的,在我们的项目里遇到了问题就是,我们是基于vue的web components方案项目,但是对于某些组件来说,我们不希望它拥有隔绝样式的能力。
所以是否可以新增自由控制是否开启shadow-root

What does the proposed API look like?

defineCustomElement({
  shadowRoot?: Boolen
})
@yanyunwu yanyunwu added the ✨ feature request New feature or request label Mar 28, 2023
@yanyunwu
Copy link
Author

can you help me?

@Azurox
Copy link

Azurox commented Mar 30, 2023

I believe this is linked to #4404 and #4314 . It would be nice if this was merged, currently the only way to bypass it is a "fix" that breaks slots

@yoyo837
Copy link

yoyo837 commented May 11, 2023

Any update on this?

@haoqunjiang
Copy link
Member

Duplicate of #4314

@haoqunjiang haoqunjiang marked this as a duplicate of #4314 Aug 31, 2023
@haoqunjiang haoqunjiang closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
✨ feature request New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants