You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and if it's false or null, we won't call attachShadow anymore(same like shadowRoot=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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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