Merge pull request #3698 from Baoyx007/patch-3

fix(table): TableHeader will get wrong width totally, when column width props is S…
This commit is contained in:
Aresn 2019-01-07 17:21:38 +08:00 committed by GitHub
commit e128e28721
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -848,6 +848,7 @@
columns.forEach((column, index) => { columns.forEach((column, index) => {
column._index = index; column._index = index;
column._columnKey = columnKey++; column._columnKey = columnKey++;
column.width = parseInt(column.width);
column._width = column.width ? column.width : ''; // update in handleResize() column._width = column.width ? column.width : ''; // update in handleResize()
column._sortType = 'normal'; column._sortType = 'normal';
column._filterVisible = false; column._filterVisible = false;