From f6a787f63b17bbc657b8af7d5e710f4ffd4a2502 Mon Sep 17 00:00:00 2001 From: yangdan8 <13532023084@139.com> Date: Thu, 26 Oct 2017 09:48:47 +0800 Subject: [PATCH] Update table.vue --- src/components/table/table.vue | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 6787078..3795c73 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -345,6 +345,7 @@ this.tableWidth = parseInt(getStyle(this.$el, 'width')) - 1; } this.columnsWidth = {}; + if(this.$refs.tbody===undefined ) {return;} this.$nextTick(() => { let columnsWidth = {}; let autoWidthIndex = -1; -- libgit2 0.21.4