@cc-component/cc-core 1.4.8 → 1.4.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.
|
@@ -333,8 +333,10 @@ export class App {
|
|
|
333
333
|
* param:参数
|
|
334
334
|
*/
|
|
335
335
|
const closeEvent: { eventName: string, param?: any } = view.closeEvent?.()
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
if (closeEvent) {
|
|
337
|
+
const close: Function = view[closeEvent.eventName]
|
|
338
|
+
if (close) { close.call(view, closeEvent.param) }
|
|
339
|
+
}
|
|
338
340
|
if (view && view.node && view.node.isValid) view.node.destroy(); // 关闭窗口
|
|
339
341
|
}
|
|
340
342
|
}
|