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 1/2] Update table.vue --- src/components/table/table.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 67870784..3795c736 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; From cbdac015bfebb56d6d14c53e739c1506ee1a3384 Mon Sep 17 00:00:00 2001 From: Aresn Date: Thu, 26 Oct 2017 00:09:42 -0500 Subject: [PATCH 2/2] Update table.vue --- src/components/table/table.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 3795c736..5e2c09ad 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -345,7 +345,7 @@ this.tableWidth = parseInt(getStyle(this.$el, 'width')) - 1; } this.columnsWidth = {}; - if(this.$refs.tbody===undefined ) {return;} + if (!this.$refs.tbody) return; this.$nextTick(() => { let columnsWidth = {}; let autoWidthIndex = -1;