Commit cbdac015bfebb56d6d14c53e739c1506ee1a3384

Authored by Aresn
Committed by GitHub
1 parent f6a787f6

Update table.vue

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/table/table.vue
... ... @@ -345,7 +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 + if (!this.$refs.tbody) return;
349 349 this.$nextTick(() => {
350 350 let columnsWidth = {};
351 351 let autoWidthIndex = -1;
... ...