diff --git a/examples/routers/table.vue b/examples/routers/table.vue index dc83166..e4fba36 100644 --- a/examples/routers/table.vue +++ b/examples/routers/table.vue @@ -12,10 +12,10 @@
-
+
-
+
Table scrolling diff --git a/src/components/table/mixin.js b/src/components/table/mixin.js index ebbe2a8..656a7c8 100644 --- a/src/components/table/mixin.js +++ b/src/components/table/mixin.js @@ -32,8 +32,8 @@ export default { } // when fixed type,reset first right fixed column's width if (this.fixed === 'right' && top ) { - const firstFixedIndex = this.columns.findIndex((col) => col.fixed === 'right'); - if (firstFixedIndex === index) { + //const firstFixedIndex = this.columns.findIndex((col) => col.fixed === 'right'); + if (this.columns.length === index + 1) { let scrollBarWidth = this.$parent.scrollBarWidth; if (!this.$parent.showVerticalScrollBar) scrollBarWidth = 0; width += scrollBarWidth; -- libgit2 0.21.4