fix: zIndexPopup should not united (#45889)

This commit is contained in:
MadCcc 2023-11-15 14:31:59 +08:00 committed by GitHub
parent ec288bc39c
commit e3fcec43c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -264,6 +264,7 @@ describe('ConfigProvider.Theme', () => {
'--antd-color-primary': '#1890ff', '--antd-color-primary': '#1890ff',
'--antd-select-option-selected-color': '#000', '--antd-select-option-selected-color': '#000',
'--antd-select-option-selected-font-weight': '600', '--antd-select-option-selected-font-weight': '600',
'--antd-select-z-index-popup': '1050',
}); });
}); });
}); });

View File

@ -303,7 +303,9 @@ export const genCSSVarRegister = <C extends OverrideComponent>(
} }
const { unitless: originUnitless = {} } = options ?? {}; const { unitless: originUnitless = {} } = options ?? {};
const compUnitless: any = {}; const compUnitless: any = {
[prefixToken('zIndexPopup')]: true,
};
Object.keys(originUnitless).forEach((key: keyof ComponentTokenKey<C>) => { Object.keys(originUnitless).forEach((key: keyof ComponentTokenKey<C>) => {
compUnitless[prefixToken(key)] = originUnitless[key]; compUnitless[prefixToken(key)] = originUnitless[key];
}); });
@ -318,7 +320,6 @@ export const genCSSVarRegister = <C extends OverrideComponent>(
unitless: { unitless: {
...unitless, ...unitless,
...compUnitless, ...compUnitless,
zIndexPopup: true,
}, },
ignore, ignore,
token: realToken, token: realToken,