8000 预设与 tailwindcss 冲突,没有设置途径 · Issue #6407 · vueComponent/ant-design-vue · GitHub
[go: up one dir, main page]

Skip to content
预设与 tailwindcss 冲突,没有设置途径 #6407
Closed
@jiangmaniu

Description

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

Version

4.0.0-alpha.3

Environment

根据 antd issues 可知 由于权重问题,导致样式会被 tailwindcss 预设给覆盖,根据官网可知,通过将 StyleProvider 组件的 hashPriority 属性设置为 "high",即可解决该问题,但我再使用时发现该组件库没有导出StyleProvider 组件,看了源码后发现是通过 inject/provide 实现的,并且hashPriority 属性是写死的,无法通过业务层设置。

如果

Reproduction link

http://baidu.com

希望能与antd一样导出一个StyleProvider组件供用户设置,也可以将设置参数集成到ConfigProvider组件中,或者以其他方式进行设置。

可有可能是我没有发现相关设置的途径,我已尽我所能去源码中寻找。如果确实如此,请您告诉我该怎么做

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

      0