vue web components - after passing in vue component wrapped with h, the style is lost. How to solve this problem? #10360
Unanswered
q479902964
asked this question in
Help/Questions
Replies: 1 comment 4 replies
-
Taking a step back from the specific problem: It seems to me like you are turning a Vue component into web component that can then only be used in a Vue app, or requires the developer to write or use other Vue components to define Then why a web component in the first place? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
example:
button.ce.vue:
index.vue:
expect:
after passing in vue component wrapped with h, the style is lost.
In addition to injecting styles into web components, is there any other solution? Because the incoming component styles are uncontrollable, the method of injecting styles is not very scientific.
Beta Was this translation helpful? Give feedback.
All reactions