-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
4.0 ConfigProvider Theme 的问题 #6946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
同样遇到compuments的样式配置不生效。 |
export const THEME: ThemeConfig = {
hashed: true,
token: {
fontFamily: join(commonVars.fontFamilies.sans, ','),
colorPrimary: commonVars.primaryColor,
borderRadius: 4,
fontSize: 14,
wireframe: false,
},
components: {
Modal: {
//不生效
modalCloseBtnSize: 24,
},
Table: {
//不生效
tableSelectedRowBg: '#dcf4ff',
},
Button: {
//不生效
buttonPaddingHorizontal: 100,
},
},
};
<template>
<a-config-provider
:locale="zhCN"
compoment-size="middle"
:virtual="true"
:theme="THEME"
>
<slot></slot>
</a-config-provider>
</template> |
@aibayanyu20 我们也尝试着升级了一下,好像确实不生效。 |
好的,等我看看这个问题, |
@aibayanyu20 非常感谢,辛苦啦。 |
我发现如果想使用 provider 来自定义组件样式,能够用到的token大部分都只能是 AliasToken。 以Button为例,它的组件Token定义是这样的: ant-design-vue/components/button/style/index.ts Lines 9 to 10 in 3c5fb84
而 ant-design-vue/components/button/style/index.ts Lines 12 to 16 in 3c5fb84
ant-design-vue/components/button/style/index.ts Lines 499 to 502 in 3c5fb84
所以如果想要修改 |
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 |
可以先提换一下ant-design-vue的版本为: {
"ant-design-vue": "npm:@antd-tiny-vue/test@^4.0.7"
} 试一下效果 |
设计可以说是依托勾史 |
What problem does this feature solve?
对于compuments 的自定义,是怎么使其生效。
What does the proposed API look like?
n
The text was updated successfully, but these errors were encountered: