Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/Cell/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ function Cell<RecordType>(props: CellProps<RecordType>) {
additionalProps.className,
legacyCellProps?.className,
);
const innerCellDivClassName = cls(`${cellPrefixCls}-inner-div`, { [`${cellPrefixCls}-with-append`]: appendNode});

// >>>>> Style
const alignStyle: React.CSSProperties = {};
Expand Down Expand Up @@ -287,8 +288,10 @@ function Cell<RecordType>(props: CellProps<RecordType>) {
colSpan={mergedColSpan !== 1 ? mergedColSpan : null}
rowSpan={mergedRowSpan !== 1 ? mergedRowSpan : null}
>
{appendNode}
{mergedChildNode}
<div className={innerCellDivClassName}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你可以直接自定义 components ,提供出来一个自带 div 的 td 就够了

{appendNode}
{mergedChildNode}
</div>
</Component>
);
}
Expand Down
Loading