将childNodes改为children

This commit is contained in:
BarZu 2017-09-22 22:13:34 +08:00
parent 7449f269a6
commit 9ebeb99cd0

View file

@ -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];