fix(table): TableHeader get wrong width, when column width props is String type
keep same type(String/Number) with Table width props
This commit is contained in:
parent
ece49d8038
commit
a18ffad6cb
1 changed files with 1 additions and 0 deletions
|
@ -834,6 +834,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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue