From a2e0f07ce67ec6f8e18639810bbf5916c994f2b0 Mon Sep 17 00:00:00 2001 From: Hyperionlucky <1943414735@qq.com> Date: Thu, 29 May 2025 17:09:48 +0800 Subject: [PATCH] feat: add inner div for cell with append node --- src/Cell/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Cell/index.tsx b/src/Cell/index.tsx index 5e96915b5..618afc860 100644 --- a/src/Cell/index.tsx +++ b/src/Cell/index.tsx @@ -238,6 +238,7 @@ function Cell(props: CellProps) { additionalProps.className, legacyCellProps?.className, ); + const innerCellDivClassName = cls(`${cellPrefixCls}-inner-div`, { [`${cellPrefixCls}-with-append`]: appendNode}); // >>>>> Style const alignStyle: React.CSSProperties = {}; @@ -287,8 +288,10 @@ function Cell(props: CellProps) { colSpan={mergedColSpan !== 1 ? mergedColSpan : null} rowSpan={mergedRowSpan !== 1 ? mergedRowSpan : null} > - {appendNode} - {mergedChildNode} +
+ {appendNode} + {mergedChildNode} +
); }