Skip to content

Commit

Permalink
fix isLast in div
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Dec 2, 2019
1 parent 1e07e51 commit 4854cd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TableHeaderRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function TableHeaderRow({
return (
<HeaderRow {...rowProps} style={style}>
{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 };
Expand All @@ -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 (
<HeaderCell {...cellProps} {...customProps} key={column.key || column.dataIndex || i} />
Expand Down

0 comments on commit 4854cd0

Please sign in to comment.