fix tree table get children item bug
This commit is contained in:
parent
462766bbf7
commit
2f57837303
1 changed files with 12 additions and 7 deletions
|
@ -842,7 +842,9 @@
|
|||
break;
|
||||
} else if (thisData.children && thisData.children.length) {
|
||||
data = this.getChildrenByRowKey(rowKey, thisData);
|
||||
if (data && data._rowKey === rowKey) return data;
|
||||
if (data) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return data;
|
||||
|
@ -857,6 +859,9 @@
|
|||
break;
|
||||
} else if (item.children && item.children.length) {
|
||||
data = this.getChildrenByRowKey(rowKey, item);
|
||||
if (data) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue