From 300a570b5af94aca03bb85a7671f37adb01ea2bf Mon Sep 17 00:00:00 2001 From: msidolphin Date: Tue, 18 Jan 2022 10:33:04 +0800 Subject: [PATCH] fix(components): [el-table] fixed column position error issue (#5430) --- packages/components/table/src/util.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) ) }