-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Feat/custom element #7971
Feat/custom element #7971
Conversation
…core into feat/custom-element
@@ -402,7 +402,7 @@ function updateCssVars(vnode: VNode) { | |||
const ctx = vnode.ctx | |||
if (ctx && ctx.ut) { | |||
let node = (vnode.children as VNode[])[0].el! | |||
while (node !== vnode.targetAnchor) { | |||
while (node && node !== vnode.targetAnchor) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This modification should have nothing to do with pr, I think this modification should be avoided
@@ -141,7 +141,7 @@ export function defineCustomElement( | |||
class VueCustomElement extends VueElement { | |||
static def = Comp | |||
constructor(initialProps?: Record<string, any>) { | |||
super(Comp, initialProps, hydrate) | |||
super(Comp, initialProps, hydrate, options.shadowRoot) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this options.shadowRoot
is passed directly to sfc
and uses script setup
, how will it be set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use this reference configuration method, use a config as a parameter to pass in the control #4404 , and if possible, I would like to add this pr change idea to unplugin-vue-ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your interest in this PR. I will seriously consider your suggestion, and I will think further about this PR. Thank!
feat #7968