fix: the width prop of el-table-column is invalid when it is 0 (#8861)

* fix: the width prop of el-table-column is invalid when it is 0

* Update table-column.js
pull/8863/head
xifeiwu 2017-12-17 18:20:00 +08:00 committed by 杨奕
parent 4af54f5a93
commit 13855f6c65
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ const getDefaultColumn = function(type, options) {
column.minWidth = 80;
}
column.realWidth = column.width || column.minWidth;
column.realWidth = column.width === undefined ? column.minWidth : column.width;
return column;
};