Skip to content

Commit 4854cd0

Browse files
committed
fix isLast in div
1 parent 1e07e51 commit 4854cd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TableHeaderRow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function TableHeaderRow({
3939
return (
4040
<HeaderRow {...rowProps} style={style}>
4141
{row.map((cell, i) => {
42-
const { column, ...cellProps } = cell;
42+
const { column, isLast, ...cellProps } = cell;
4343
const customProps = column.onHeaderCell ? column.onHeaderCell(column) : {};
4444
if (column.align) {
4545
customProps.style = { ...customProps.style, textAlign: column.align };
@@ -48,7 +48,7 @@ function TableHeaderRow({
4848
[`${prefixCls}-align-${column.align}`]: !!column.align,
4949
[`${prefixCls}-row-cell-ellipsis`]: !!column.ellipsis,
5050
[`${prefixCls}-row-cell-break-word`]: !!column.width,
51-
[`${prefixCls}-row-cell-last`]: cell.isLast,
51+
[`${prefixCls}-row-cell-last`]: isLast,
5252
});
5353
return (
5454
<HeaderCell {...cellProps} {...customProps} key={column.key || column.dataIndex || i} />

0 commit comments

Comments
 (0)