From 87bc6e08c5d1c3d91d6aa3d287ec7707a8c4f63a Mon Sep 17 00:00:00 2001 From: BarZu <1419328765@qq.com> Date: Fri, 22 Sep 2017 21:51:30 +0800 Subject: [PATCH] 354 line, change `childNode` to `children` --- 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 83bf9fe..e482ca9 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -351,7 +351,7 @@ if (allWidth) autoWidthIndex = this.cloneColumns.findIndex(cell => !cell.width);//todo 这行可能有问题 if (this.data.length) { - const $td = this.$refs.tbody.$el.querySelectorAll('tbody tr')[0].childNodes; + const $td = this.$refs.tbody.$el.querySelectorAll('tbody tr')[0].children; for (let i = 0; i < $td.length; i++) { // can not use forEach in Firefox const column = this.cloneColumns[i]; -- libgit2 0.21.4