From a18ffad6cba9457452dff14b463685ad38dc0a64 Mon Sep 17 00:00:00 2001 From: Haven Date: Fri, 25 May 2018 10:43:37 +0800 Subject: [PATCH] fix(table): TableHeader get wrong width, when column width props is String type keep same type(String/Number) with Table width props --- src/components/table/table.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 4af012a1..cedf3157 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -834,6 +834,7 @@ columns.forEach((column, index) => { column._index = index; column._columnKey = columnKey++; + column.width = parseInt(column.width); column._width = column.width ? column.width : ''; // update in handleResize() column._sortType = 'normal'; column._filterVisible = false;