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
I encountered a scenario: I have a custom element component A, which uses another child component B, and B is a regular component, and in B I define a style that contains scoped label.
But unfortunately the styling of the B component doesn't take effect.
(https://stackblitz.com/edit/vitejs-vite-gdj8cq?file=src/bwsy-ce-foo.ce.vue)
Unless I change the names of component A and component B to *.ce.vue, and use defineCustomElement to process them, and finally need to use customElements.define to register them. But in fact, I don't want to turn them all into custom elements. I want to directly reference B as a child component of A when A is a custom element.
What does the proposed API look like?
When the component file name is *.ce.vue, if it is used as a child component of a custom element, it does not need to be registered as a custom element again, but can be used directly, and the style tag style can take effect
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
I encountered a scenario: I have a custom element component
label.
A
, which uses another child componentB
, andB
is a regular component, and inB
I define astyle that contains
scopedBut unfortunately the styling of the
B
component doesn't take effect.(https://stackblitz.com/edit/vitejs-vite-gdj8cq?file=src/bwsy-ce-foo.ce.vue)
Unless I change the names of component A and component B to
*.ce.vue
, and usedefineCustomElement
to process them, and finally need to usecustomElements.define
to register them. But in fact, I don't want to turn them all into custom elements. I want to directly referenceB
as a child component ofA
whenA
is a custom element.What does the proposed API look like?
When the component file name is
*.ce.vue
, if it is used as a child component of a custom element, it does not need to be registered as a custom element again, but can be used directly, and thestyle
tag style can take effectThe text was updated successfully, but these errors were encountered: