Commit f6a787f63b17bbc657b8af7d5e710f4ffd4a2502

Authored by yangdan8
Committed by GitHub
1 parent af7d72b4

Update table.vue

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/components/table/table.vue
... ... @@ -345,6 +345,7 @@
345 345 this.tableWidth = parseInt(getStyle(this.$el, 'width')) - 1;
346 346 }
347 347 this.columnsWidth = {};
  348 + if(this.$refs.tbody===undefined ) {return;}
348 349 this.$nextTick(() => {
349 350 let columnsWidth = {};
350 351 let autoWidthIndex = -1;
... ...