From d56f4c78825a92c30ec234d111ef2a3491abbbe0 Mon Sep 17 00:00:00 2001 From: lchrennew Date: Sun, 30 Oct 2022 13:33:33 +0800 Subject: [PATCH] fix: Cannot use custom prefixCls with custom theme color --- components/config-provider/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/config-provider/index.tsx b/components/config-provider/index.tsx index 6c78b7c67b..82c3cef245 100644 --- a/components/config-provider/index.tsx +++ b/components/config-provider/index.tsx @@ -74,7 +74,7 @@ const setGlobalConfig = (params: GlobalConfigProviderProps & { theme?: Theme }) Object.assign(globalConfigBySet, reactive(params)); }); if (params.theme) { - registerTheme(getGlobalPrefixCls(), params.theme); + registerTheme(params.prefixCls ?? getGlobalPrefixCls(), params.theme); } };