Commit 87bc6e08c5d1c3d91d6aa3d287ec7707a8c4f63a

Authored by BarZu
Committed by GitHub
1 parent 7449f269

354 line, change `childNode` to `children`

因childNode包括注释节点,所以改为children
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/table/table.vue
@@ -351,7 +351,7 @@ @@ -351,7 +351,7 @@
351 if (allWidth) autoWidthIndex = this.cloneColumns.findIndex(cell => !cell.width);//todo 这行可能有问题 351 if (allWidth) autoWidthIndex = this.cloneColumns.findIndex(cell => !cell.width);//todo 这行可能有问题
352 352
353 if (this.data.length) { 353 if (this.data.length) {
354 - const $td = this.$refs.tbody.$el.querySelectorAll('tbody tr')[0].childNodes; 354 + const $td = this.$refs.tbody.$el.querySelectorAll('tbody tr')[0].children;
355 for (let i = 0; i < $td.length; i++) { // can not use forEach in Firefox 355 for (let i = 0; i < $td.length; i++) { // can not use forEach in Firefox
356 const column = this.cloneColumns[i]; 356 const column = this.cloneColumns[i];
357 357