diff --git a/src/TableHeaderRow.tsx b/src/TableHeaderRow.tsx index 413ccb4ec..ec8853685 100644 --- a/src/TableHeaderRow.tsx +++ b/src/TableHeaderRow.tsx @@ -39,7 +39,7 @@ function TableHeaderRow({ return ( {row.map((cell, i) => { - const { column, ...cellProps } = cell; + const { column, isLast, ...cellProps } = cell; const customProps = column.onHeaderCell ? column.onHeaderCell(column) : {}; if (column.align) { customProps.style = { ...customProps.style, textAlign: column.align }; @@ -48,7 +48,7 @@ function TableHeaderRow({ [`${prefixCls}-align-${column.align}`]: !!column.align, [`${prefixCls}-row-cell-ellipsis`]: !!column.ellipsis, [`${prefixCls}-row-cell-break-word`]: !!column.width, - [`${prefixCls}-row-cell-last`]: cell.isLast, + [`${prefixCls}-row-cell-last`]: isLast, }); return (