Skip to content

Problems arising from defineCustomElement and Unocss #11239

Closed
@MQYForverT

Description

@MQYForverT

Vue version

3.4.30

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-yb3t5n?file=package.json,src%2Fcomponents%2FCompB.vue,src%2Fcomponents%2Findex.ts

Steps to reproduce

I use Vue3 to write web component, now i have two component. A & B

I imported B in A (B is not custom elements), and then used A as a custom element for external use.
I used a placeholder in A, which is available, but unocss in B is invalid. I tried to add a placeholder in B as well, but it was also invalid

What is expected?

CompB style rendering normal

What is actually happening?

look the issue:unocss/unocss#3920

Unocss said that Vue should improve the definition of Custom Element, so should Vue or Unocss be the perfect solution to this problem?

System Info

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions