Skip to content

增加样式兼容后在组件中使用unocss的class不生效 #6749

@holiy930561

Description

@holiy930561
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.0.0-rc.6

Environment

上面最小化demo

Reproduction link

https://stackblitz.com/edit/vitejs-vite-ugq7b4

Steps to reproduce

1,增加  <a-style-provider hash-priority="high">
2,   <a-form ml-24px my-24px class="px-20px">

What is expected?

form组件中使用的unocss生效

What is actually happening?

使用样式兼容后 ml-24px my-24px px-20px不生效,被覆盖了。去掉样式兼容是正常生效的

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions