Skip to content

Dynamic theme configuration invalid after modifying prefixCls #5756

@jiangtwelve

Description

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

Version

3.2.6

Environment

"ant-design-vue": "^3.2.9" "vue": "^3.0.0",

Reproduction link

https://gitee.com/jiangtwelve/antd-vue-bug.git

Steps to reproduce

根据动态主题文档 修改主题 primaryColor: "#25b864". 结果无异常,当修改前缀prefixCls: "custom" 动态主题配置失效

ConfigProvider.config({  prefixCls: "custom", theme: {  primaryColor: "#25b864", } })

What is expected?

lessc --js --modify-var="ant-prefix=custom" node_modules/ant-design-vue/dist/antd.variable.less modified.css命令生成新的modified.css文件中变量前缀已经修改为 custom 但是颜色是默认配置 并非 动态主题指定的颜色

What is actually happening?

修改类名前缀同时不支持修改主题色 是否是我操作不当造成 复现仓库地址:https://gitee.com/jiangtwelve/antd-vue-bug.git

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions