diff --git a/src/components/table/table.vue b/src/components/table/table.vue index c0fcb93..83bf9fe 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].querySelectorAll('td'); + const $td = this.$refs.tbody.$el.querySelectorAll('tbody tr')[0].childNodes; for (let i = 0; i < $td.length; i++) { // can not use forEach in Firefox const column = this.cloneColumns[i]; -- libgit2 0.21.4