Skip to content

v-bind in the style module in sfc does not work as expected when using defineCustomCoponent #8826

@GuoJikun

Description

@GuoJikun

Vue version

3.3.4

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-zm8kzw?file=src%2FApp.vue

Steps to reproduce

No need to do anything, just see it

What is expected?

v-bind works (the font color should be blue in the example)

What is actually happening?

v-bind in the style module in sfc does not work as expected when using defineCustomCoponent.

The css variable generated by v-bind in the custom element should be bound to the host element, but instead, it is bound to the host child element.(在自定义元素中 v-bind 生成的 css 变量未正确绑定到 host 元素)

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