Commit 9ebeb99cd086a2d08aa959a040f9ecabb2b05edd

Authored by BarZu
1 parent 7449f269

将childNodes改为children

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/table/table.vue
... ... @@ -351,7 +351,7 @@
351 351 if (allWidth) autoWidthIndex = this.cloneColumns.findIndex(cell => !cell.width);//todo 这行可能有问题
352 352  
353 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 355 for (let i = 0; i < $td.length; i++) { // can not use forEach in Firefox
356 356 const column = this.cloneColumns[i];
357 357  
... ...