@acorex/components 6.5.8 → 6.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15188,13 +15188,16 @@ class AXTreeViewComponent extends AXBaseComponent {
|
|
|
15188
15188
|
}
|
|
15189
15189
|
getLevel(item) {
|
|
15190
15190
|
return new Promise((resolve, reject) => {
|
|
15191
|
+
debugger;
|
|
15191
15192
|
if (item.parentNode) {
|
|
15192
15193
|
this.levelCount = this.levelCount + 1;
|
|
15193
|
-
this.getLevel(item.parentNode)
|
|
15194
|
+
this.getLevel(item.parentNode).then((res) => {
|
|
15195
|
+
resolve(this.levelCount);
|
|
15196
|
+
});
|
|
15194
15197
|
}
|
|
15195
15198
|
else {
|
|
15196
15199
|
this.levelCount = this.levelCount + 1;
|
|
15197
|
-
|
|
15200
|
+
resolve(this.levelCount);
|
|
15198
15201
|
}
|
|
15199
15202
|
});
|
|
15200
15203
|
}
|
|
@@ -15293,8 +15296,10 @@ class AXTreeViewComponent extends AXBaseComponent {
|
|
|
15293
15296
|
if (n.includes(result[i][this.keyField])) {
|
|
15294
15297
|
if (result[i][this.hasChildField] == true) {
|
|
15295
15298
|
this.levelCount = 0;
|
|
15299
|
+
debugger;
|
|
15296
15300
|
this.getLevel(result[i]).then((resLevel) => {
|
|
15297
|
-
|
|
15301
|
+
debugger;
|
|
15302
|
+
if (this.checkParents == false && this.checkChilds == false && n.length == this.levelCount) {
|
|
15298
15303
|
//select parent when check child and check parent is false TODO check this Action
|
|
15299
15304
|
this.selectItem(result[i]);
|
|
15300
15305
|
}
|