fix: not use prefixCls with custom theme #6063
parent
4cdda535a6
commit
213c3a4059
|
@ -72,9 +72,10 @@ const setGlobalConfig = (params: GlobalConfigProviderProps & { theme?: Theme })
|
|||
}
|
||||
stopWatchEffect = watchEffect(() => {
|
||||
Object.assign(globalConfigBySet, reactive(params));
|
||||
Object.assign(globalConfigForApi, reactive(params));
|
||||
});
|
||||
if (params.theme) {
|
||||
registerTheme(params.prefixCls ?? getGlobalPrefixCls(), params.theme);
|
||||
registerTheme(getGlobalPrefixCls(), params.theme);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue