Commit f6a787f63b17bbc657b8af7d5e710f4ffd4a2502
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,6 +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 | this.$nextTick(() => { | 349 | this.$nextTick(() => { |
349 | let columnsWidth = {}; | 350 | let columnsWidth = {}; |
350 | let autoWidthIndex = -1; | 351 | let autoWidthIndex = -1; |