feat: ConfigProvider support nextThemeEnd

This commit is contained in:
叶枫 2024-08-28 21:53:41 +08:00
parent 9354a21780
commit e4887900fe

View File

@ -506,7 +506,7 @@ const ProviderChildren: React.FC<ProviderChildrenProps> = (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) => {