fix(Table): set z-index unit to false (#50357)

This commit is contained in:
lijianan 2024-08-11 16:18:49 +08:00 committed by GitHub
parent 429cf1b3b2
commit 5aa5c3d591
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -551,7 +551,7 @@ export default genStyleHooks(
tableSelectedRowBg: rowSelectedBg,
tableSelectedRowHoverBg: rowSelectedHoverBg,
zIndexTableFixed,
zIndexTableSticky: calc(zIndexTableFixed).add(1).equal(),
zIndexTableSticky: calc(zIndexTableFixed).add(1).equal({ unit: false }),
tableFontSizeMiddle: cellFontSizeMD,
tableFontSizeSmall: cellFontSizeSM,
tableSelectionColumnWidth: selectionColumnWidth,

View File

@ -61,7 +61,7 @@ const genSelectionStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
},
[`table tr th${componentCls}-selection-column${componentCls}-cell-fix-left`]: {
zIndex: calc(token.zIndexTableFixed).add(1).equal(),
zIndex: calc(token.zIndexTableFixed).add(1).equal({ unit: false }),
},
[`table tr th${componentCls}-selection-column::after`]: {