Commit 13855f6c authored by xifeiwu's avatar xifeiwu Committed by 杨奕

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
parent 4af54f5a
...@@ -99,7 +99,7 @@ const getDefaultColumn = function(type, options) { ...@@ -99,7 +99,7 @@ const getDefaultColumn = function(type, options) {
column.minWidth = 80; column.minWidth = 80;
} }
column.realWidth = column.width || column.minWidth; column.realWidth = column.width === undefined ? column.minWidth : column.width;
return column; return column;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment