mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-10 07:31:41 +08:00
修改GUI窗口的onRemoved事件在节点移除父节点时触发
This commit is contained in:
@@ -100,11 +100,12 @@ export class DelegateComponent extends Component {
|
||||
else {
|
||||
this.node.removeFromParent();
|
||||
}
|
||||
|
||||
// 触发窗口组件上窗口移除之后的事件
|
||||
this.applyComponentsFunction(this.node, EventOnRemoved, this.vp.params);
|
||||
}
|
||||
|
||||
onDestroy() {
|
||||
// 触发窗口组件上窗口移除之后的事件
|
||||
this.applyComponentsFunction(this.node, EventOnRemoved, this.vp.params);
|
||||
this.vp = null!;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user