diff --git a/src/components/table/mixin.js b/src/components/table/mixin.js index eedc904f..6223dc58 100644 --- a/src/components/table/mixin.js +++ b/src/components/table/mixin.js @@ -19,7 +19,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) { + if (this.columns.length === index + 1 && top && this.$parent.bodyHeight !== 0) { width += this.$parent.scrollBarWidth; } // when fixed type,reset first right fixed column's width diff --git a/src/components/table/table-head.vue b/src/components/table/table-head.vue index 358b945b..46147fda 100644 --- a/src/components/table/table-head.vue +++ b/src/components/table/table-head.vue @@ -1,5 +1,5 @@