mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
feat: ConfigProvider support nextThemeEnd
This commit is contained in:
parent
9354a21780
commit
e4887900fe
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user