mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:52:51 +00:00
fix: trigger node.add event on mergeChildren
This commit is contained in:
parent
73dacadaee
commit
f483970aef
@ -462,6 +462,9 @@ export class NodeChildren implements INodeChildren {
|
|||||||
const node: INode = this.owner.document?.createNode(child);
|
const node: INode = this.owner.document?.createNode(child);
|
||||||
this.children.push(node);
|
this.children.push(node);
|
||||||
node.internalSetParent(this.owner);
|
node.internalSetParent(this.owner);
|
||||||
|
/* istanbul ignore next */
|
||||||
|
const editor = node.document?.designer.editor;
|
||||||
|
editor?.eventBus.emit('node.add', { node });
|
||||||
});
|
});
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user