ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

Dynamic theme configuration invalid after modifying prefixCls

Open jiangtwelve opened this issue 3 years ago • 3 comments
trafficstars

  • [ ] 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

jiangtwelve avatar Jun 29 '22 06:06 jiangtwelve

同步更改 @base-primary less 变量

tangjinzhou avatar Jun 29 '22 13:06 tangjinzhou

同步更改 @base-primary less 变量

具体应该怎么操作呢 可以详细说一下嘛

jiangtwelve avatar Jun 30 '22 01:06 jiangtwelve

https://www.antdv.com/docs/vue/customize-theme-cn

tangjinzhou avatar Jun 30 '22 02:06 tangjinzhou

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Aug 29 '22 03:08 github-actions[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Sep 06 '23 00:09 github-actions[bot]