mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-21 21:12:37 +00:00
feat: enhance subtree modified
This commit is contained in:
parent
13e7ad0b69
commit
5232cf4931
@ -353,14 +353,6 @@ export class NodeChildren {
|
|||||||
return 'Array';
|
return 'Array';
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @deprecated
|
|
||||||
// * 为了兼容vision体系存量api
|
|
||||||
// */
|
|
||||||
// getChildrenArray() {
|
|
||||||
// return this.children;
|
|
||||||
// }
|
|
||||||
|
|
||||||
private reportModified(node: Node, owner: Node, options = {}) {
|
private reportModified(node: Node, owner: Node, options = {}) {
|
||||||
if (!node) {
|
if (!node) {
|
||||||
return;
|
return;
|
||||||
@ -378,7 +370,7 @@ export class NodeChildren {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (owner.parent && !owner.parent.isRoot()) {
|
if (owner.parent && !owner.parent.isRoot()) {
|
||||||
this.reportModified(node, owner.parent, options);
|
this.reportModified(node, owner.parent, { ...options, propagated: true, });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user