From e4887900fe76850b0cf40a62eb3f7e39272439f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E6=9E=AB?= <645381995@qq.com> Date: Wed, 28 Aug 2024 21:53:41 +0800 Subject: [PATCH] feat: ConfigProvider support nextThemeEnd --- 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 45010abd31..02a9ce8c8d 100644 --- a/components/config-provider/index.tsx +++ b/components/config-provider/index.tsx @@ -506,7 +506,7 @@ const ProviderChildren: React.FC = (props) => { const config: ConfigConsumerProps = { ...parentContext, - themeOrigin: theme?.nextThemeEnd ? parentContext.theme : undefined, + themeOrigin: theme?.nextThemeEnd ? parentContext.themeOrigin || parentContext.theme : undefined, }; (Object.keys(baseConfig) as (keyof typeof baseConfig)[]).forEach((key) => {