Update table.vue

This commit is contained in:
yangdan8 2017-10-26 09:48:47 +08:00 committed by GitHub
parent af7d72b4cc
commit f6a787f63b

View file

@ -345,6 +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;}
this.$nextTick(() => { this.$nextTick(() => {
let columnsWidth = {}; let columnsWidth = {};
let autoWidthIndex = -1; let autoWidthIndex = -1;