consider a more general option for defineCustomElement
other than shadowRoot
in incoming [email protected]
#11643
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that Vue is going to add a
shadowRoot
option fordefineCustomElement
(37d2ce5)I was wondering if we could use a more general option named as
shadowOptions
, which will be directly used forattachShadow
like below:and if it's
false
ornull
, we won't callattachShadow
anymore(same likeshadowRoot=false
)There are a lot of options of
attachShadow
we are not able to customize for now.Based on my experience, I believe closed shadowRoot and manual slotAssignment are seldom used but mandatory features. For component like watermark, I must use closed shadowRoot for safety reason(I have already implemented this component based on my customization, please refer to watermark component) And I wish that can be supported by official.
If Vue decides to support those options one by one in the future, there will be a lot of extra options
Beta Was this translation helpful? Give feedback.
All reactions