Update table.vue

This commit is contained in:
Aresn 2017-10-26 00:09:42 -05:00 committed by GitHub
parent f6a787f63b
commit cbdac015bf

View file

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