diff --git a/packages/components/table/src/util.ts b/packages/components/table/src/util.ts index 66e94205c3..ad30ab5ec1 100644 --- a/packages/components/table/src/util.ts +++ b/packages/components/table/src/util.ts @@ -454,7 +454,9 @@ export const getFixedColumnsClass = ( function getOffset(offset: number, column: TableColumnCtx) { return ( offset + - (Number.isNaN(column.realWidth) ? Number(column.width) : column.realWidth) + (column.realWidth === null || Number.isNaN(column.realWidth) + ? Number(column.width) + : column.realWidth) ) }