@ives_xxz/framework 1.2.17 → 1.2.18

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.
package/FW.d.ts CHANGED
@@ -964,6 +964,7 @@ declare namespace FW {
964
964
  /** 是否允许重复打开 */
965
965
  isRepeatOpen: boolean;
966
966
  initialize?();
967
+ destroy?();
967
968
  /** 生命周期函数 */
968
969
  onInit?(...args: any);
969
970
  onLoad?();
@@ -391,6 +391,7 @@ export class FWLayerManager extends FWManager implements FW.LayerManager {
391
391
 
392
392
  if (cc.isValid(ctr.layer?.node)) {
393
393
  ctr.layer.node.destroy?.();
394
+ ctr.destroy?.();
394
395
  ctr.onClose?.();
395
396
  if (ctr.autoRelease) {
396
397
  FW.Entry.resMgr.releaseAsset(ctr.layerData.layerAssetProperty);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ives_xxz/framework",
3
- "version": "1.2.17",
3
+ "version": "1.2.18",
4
4
  "description": "cocoscreator 2.x mvc framework",
5
5
  "main": "index.js",
6
6
  "keywords": [