Merge pull request #2195 from yangdan8/patch-4

Update table.vue  解决tabs切换时,tab中的table调试时控制台报$el undefined的问题
This commit is contained in:
Aresn 2017-10-26 00:10:44 -05:00 committed by GitHub
commit 9147e636f0

View file

@ -345,6 +345,7 @@
this.tableWidth = parseInt(getStyle(this.$el, 'width')) - 1;
}
this.columnsWidth = {};
if (!this.$refs.tbody) return;
this.$nextTick(() => {
let columnsWidth = {};
let autoWidthIndex = -1;