From e7f2801b5eff0200074e5fe144bc2d3d16f9af7f Mon Sep 17 00:00:00 2001 From: 呼啸随风 Date: Tue, 9 Jan 2018 10:22:17 +0800 Subject: [PATCH] fix last column resize bug when no data --- src/components/table/mixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/table/mixin.js b/src/components/table/mixin.js index 1b4a6b4..7a06e24 100644 --- a/src/components/table/mixin.js +++ b/src/components/table/mixin.js @@ -25,7 +25,7 @@ export default { width = this.columnsWidth[column._index].width; } // when browser has scrollBar,set a width to resolve scroll position bug - if (this.columns.length === index + 1 && top && this.$parent.bodyHeight !== 0) { + if (width && this.columns.length === index + 1 && top && this.$parent.bodyHeight !== 0) { width += this.$parent.scrollBarWidth; } // when fixed type,reset first right fixed column's width -- libgit2 0.21.4