We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 237ad43 commit f692a3cCopy full SHA for f692a3c
src/components/config-provider/config-provider.tsx
@@ -49,18 +49,17 @@ type Config = {
49
}
50
export const defaultPrefixCls = 'adm'
51
52
-const getPrefixCls = (suffixCls?: string, customizePrefixCls?: string) => {
53
- if (customizePrefixCls) {
54
- return customizePrefixCls
55
- }
56
- return suffixCls ? `${defaultPrefixCls}-${suffixCls}` : defaultPrefixCls
57
-}
58
export const defaultConfigRef: {
59
current: Config
60
} = {
61
current: {
62
locale: zhCN,
63
- getPrefixCls,
+ getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => {
+ if (customizePrefixCls) {
+ return customizePrefixCls
+ }
+ return suffixCls ? `${defaultPrefixCls}-${suffixCls}` : defaultPrefixCls
+ },
64
},
65
66
0 commit comments