diff --git a/components/table/style/expand.tsx b/components/table/style/expand.tsx index 11d7e4f16807..9182769a5e08 100644 --- a/components/table/style/expand.tsx +++ b/components/table/style/expand.tsx @@ -16,9 +16,6 @@ const genExpandStyle: GenerateStyle = (token) => { tableExpandIconBg, tableExpandColumnWidth, borderRadius, - fontSize, - fontSizeSM, - lineHeight, tablePaddingVertical, tablePaddingHorizontal, tableExpandedRowBg, @@ -53,7 +50,7 @@ const genExpandStyle: GenerateStyle = (token) => { [`${componentCls}-row-expand-icon`]: { ...operationUnit(token), position: 'relative', - float: 'left', + verticalAlign: 'middle', boxSizing: 'border-box', width: expandIconSize, height: expandIconSize, @@ -114,9 +111,6 @@ const genExpandStyle: GenerateStyle = (token) => { }, [`${componentCls}-row-indent + ${componentCls}-row-expand-icon`]: { - marginTop: - (fontSize * lineHeight - lineWidth * 3) / 2 - - Math.ceil((fontSizeSM * 1.4 - lineWidth * 3) / 2), marginInlineEnd: paddingXS, },