mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
fix(components): [el-table] fixed column position error issue (#5430)
This commit is contained in:
parent
1d48642436
commit
300a570b5a
@ -454,7 +454,9 @@ export const getFixedColumnsClass = <T>(
|
||||
function getOffset<T>(offset: number, column: TableColumnCtx<T>) {
|
||||
return (
|
||||
offset +
|
||||
(Number.isNaN(column.realWidth) ? Number(column.width) : column.realWidth)
|
||||
(column.realWidth === null || Number.isNaN(column.realWidth)
|
||||
? Number(column.width)
|
||||
: column.realWidth)
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user