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