fix: Cannot use custom prefixCls with custom theme color (#6063)
parent
5e60d7c3b0
commit
4cdda535a6
|
@ -74,7 +74,7 @@ const setGlobalConfig = (params: GlobalConfigProviderProps & { theme?: Theme })
|
||||||
Object.assign(globalConfigBySet, reactive(params));
|
Object.assign(globalConfigBySet, reactive(params));
|
||||||
});
|
});
|
||||||
if (params.theme) {
|
if (params.theme) {
|
||||||
registerTheme(getGlobalPrefixCls(), params.theme);
|
registerTheme(params.prefixCls ?? getGlobalPrefixCls(), params.theme);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue