Commit a6eee4e568379a95aabf67ecf8b8b0821db2b68d
1 parent
67c9b1c8
update Table
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/components/table/table.vue
@@ -665,7 +665,10 @@ | @@ -665,7 +665,10 @@ | ||
665 | this.$nextTick(() => this.ready = true); | 665 | this.$nextTick(() => this.ready = true); |
666 | window.addEventListener('resize', this.handleResize, false); | 666 | window.addEventListener('resize', this.handleResize, false); |
667 | this.$on('on-visible-change', (val) => { | 667 | this.$on('on-visible-change', (val) => { |
668 | - if (val) this.handleResize(); | 668 | + if (val) { |
669 | + this.handleResize(); | ||
670 | + this.fixedHeader(); | ||
671 | + } | ||
669 | }); | 672 | }); |
670 | }, | 673 | }, |
671 | beforeDestroy () { | 674 | beforeDestroy () { |