This commit is contained in:
梁灏 2017-04-10 09:58:51 +08:00
parent b164f7c05c
commit 67c9b1c8b9
6 changed files with 87 additions and 44 deletions

View file

@ -664,6 +664,9 @@
this.fixedHeader();
this.$nextTick(() => this.ready = true);
window.addEventListener('resize', this.handleResize, false);
this.$on('on-visible-change', (val) => {
if (val) this.handleResize();
});
},
beforeDestroy () {
window.removeEventListener('resize', this.handleResize, false);