Commit cbdac015bfebb56d6d14c53e739c1506ee1a3384
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,7 +345,7 @@ | ||
| 345 | this.tableWidth = parseInt(getStyle(this.$el, 'width')) - 1; | 345 | this.tableWidth = parseInt(getStyle(this.$el, 'width')) - 1; |
| 346 | } | 346 | } |
| 347 | this.columnsWidth = {}; | 347 | this.columnsWidth = {}; |
| 348 | - if(this.$refs.tbody===undefined ) {return;} | 348 | + if (!this.$refs.tbody) return; |
| 349 | this.$nextTick(() => { | 349 | this.$nextTick(() => { |
| 350 | let columnsWidth = {}; | 350 | let columnsWidth = {}; |
| 351 | let autoWidthIndex = -1; | 351 | let autoWidthIndex = -1; |