We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
shadowRoot
defineCustomElement
For CSS in JS component, it needs to mount some styles in shadowRoot before it's actually rendered. Seems currently there's no way to access it.
Not sure. Maybe useShadowRoot if it can access shadow root before element is actually mounted.
useShadowRoot
defineCustomElement({ setup () { const shadowRoot = useShadowRoot() // ... dynamically generate styles shadowRoot.appendChild(styleElement) } })
The text was updated successfully, but these errors were encountered:
feat(runtime-core): add 'container' to component instance
35920bd
close vuejs#6113
3ae1726
feat(custom-element): useShadowRoot() helper
5a1a89b
close #6113 close #8195
closed via 5a1a89b
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What problem does this feature solve?
For CSS in JS component, it needs to mount some styles in
shadowRoot
before it's actually rendered. Seems currently there's no way to access it.What does the proposed API look like?
Not sure. Maybe
useShadowRoot
if it can access shadow root before element is actually mounted.The text was updated successfully, but these errors were encountered: