Commit e128e28721818569b0b65b64cf96434c99a2a81a
Committed by
GitHub

Merge pull request #3698 from Baoyx007/patch-3
fix(table): TableHeader will get wrong width totally, when column width props is S…
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/components/table/table.vue
@@ -848,6 +848,7 @@ | @@ -848,6 +848,7 @@ | ||
848 | columns.forEach((column, index) => { | 848 | columns.forEach((column, index) => { |
849 | column._index = index; | 849 | column._index = index; |
850 | column._columnKey = columnKey++; | 850 | column._columnKey = columnKey++; |
851 | + column.width = parseInt(column.width); | ||
851 | column._width = column.width ? column.width : ''; // update in handleResize() | 852 | column._width = column.width ? column.width : ''; // update in handleResize() |
852 | column._sortType = 'normal'; | 853 | column._sortType = 'normal'; |
853 | column._filterVisible = false; | 854 | column._filterVisible = false; |