354 line, change childNode to children

因childNode包括注释节点,所以改为children
This commit is contained in:
BarZu 2017-09-22 21:51:30 +08:00 committed by GitHub
parent 7449f269a6
commit 87bc6e08c5

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