mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
fix(Table): style value should support CSS var (#50355)
* fix(Table): zIndex value should support CSS var * fix: fix
This commit is contained in:
parent
0c97a6fa43
commit
dab9ab69d0
@ -481,6 +481,8 @@ export const prepareComponentToken: GetDefaultToken<'Table'> = (token) => {
|
||||
};
|
||||
};
|
||||
|
||||
const zIndexTableFixed = 2;
|
||||
|
||||
// ============================== Export ==============================
|
||||
export default genStyleHooks(
|
||||
'Table',
|
||||
@ -522,8 +524,6 @@ export default genStyleHooks(
|
||||
calc,
|
||||
} = token;
|
||||
|
||||
const zIndexTableFixed: number = 2;
|
||||
|
||||
const tableToken = mergeToken<TableToken>(token, {
|
||||
tableFontSize: cellFontSize,
|
||||
tableBg: colorBgContainer,
|
||||
@ -551,7 +551,7 @@ export default genStyleHooks(
|
||||
tableSelectedRowBg: rowSelectedBg,
|
||||
tableSelectedRowHoverBg: rowSelectedHoverBg,
|
||||
zIndexTableFixed,
|
||||
zIndexTableSticky: zIndexTableFixed + 1,
|
||||
zIndexTableSticky: calc(zIndexTableFixed).add(1).equal(),
|
||||
tableFontSizeMiddle: cellFontSizeMD,
|
||||
tableFontSizeSmall: cellFontSizeSM,
|
||||
tableSelectionColumnWidth: selectionColumnWidth,
|
||||
|
@ -61,7 +61,7 @@ const genSelectionStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
|
||||
},
|
||||
|
||||
[`table tr th${componentCls}-selection-column${componentCls}-cell-fix-left`]: {
|
||||
zIndex: token.zIndexTableFixed + 1,
|
||||
zIndex: calc(token.zIndexTableFixed).add(1).equal(),
|
||||
},
|
||||
|
||||
[`table tr th${componentCls}-selection-column::after`]: {
|
||||
|
Loading…
Reference in New Issue
Block a user