Merge pull request #1955 from chjtx/2.0
修复table里嵌套table报 Cannot read property 'width' of undefined"的错误
This commit is contained in:
commit
a6bb1d9023
1 changed files with 1 additions and 1 deletions
|
@ -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].children;
|
||||
for (let i = 0; i < $td.length; i++) { // can not use forEach in Firefox
|
||||
const column = this.cloneColumns[i];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue