-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.2.3
Environment
vue3
Reproduction link
https://next.antdv.com/docs/vue/customize-theme-cn
Steps to reproduce
v3:https://3x.antdv.com/docs/vue/customize-theme-cn,是通过找变量文件对应的name,比如我需要修改layout组件的@layout-header-height: 64px;产品嫌它高了,需要变成@layout-header-height: 56px;,然后通过modifyVars的方式进行覆盖;
v4:https://next.antdv.com/docs/vue/customize-theme-cn,是通过css-in-js的形式进行修改,比如我需要修改layout组件的高度;
<a-config-provider
:theme="{
components: {
Layout: {
'变量名称如何找?':'56px'
},
},
}"
Layout
What is expected?
出一个映射表,能够找到对应组件的变量主题名称。尝试着在这个文件目录下:node_modules/ant-design-vue/lib/theme/convertLegacyToken.js,只找到了
300行: // Layout
303行:'layout-header-height': '64px',
What is actually happening?
找不到组件对应的变量名