@alipay/ams-checkout 0.0.1744283958-dev.12 → 0.0.1744283958-dev.13

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.
@@ -26,7 +26,7 @@ import PaymentProcessor from "../../../../core/component/element/elementProcesso
26
26
  import { IElementStatus } from "../../../../foundation";
27
27
  import { AntomSDKCore } from "../../../../foundation/core";
28
28
  import { ElementProcessor } from "../../../../foundation/product-processor/element";
29
- import { destroyModal } from "../../../../plugin/component/popupWindow.style";
29
+ import { cleanMockup, removeRetentionPopup } from "../../../../component/component.popup.style";
30
30
  import { ProductSceneEnum } from "../../../../types";
31
31
  import { ElementContainerService } from "../elementContainerService"; // 引入 ElementContainerService
32
32
  import { IContainerStatus } from "../elementContainerService/containerService";
@@ -434,13 +434,14 @@ var ElementController = /*#__PURE__*/function () {
434
434
  }, {
435
435
  key: "destroyHandle",
436
436
  value: function destroyHandle() {
437
+ var _this7 = this;
437
438
  this.elementContainer.destroy();
438
- this.elementContainerService.destroy();
439
- this.serviceMap.EventCenter.cleanIFrames();
440
- // popup未注册会报错,但element不需要感知popup是否被注册
441
- try {
442
- destroyModal(); // 关闭popup弹窗
443
- } catch (error) {}
439
+ cleanMockup();
440
+ removeRetentionPopup();
441
+ setTimeout(function () {
442
+ _this7.serviceMap.EventCenter.cleanIFrames();
443
+ _this7.elementContainerService.destroy();
444
+ }, 0);
444
445
  }
445
446
  }, {
446
447
  key: "destroy",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1744283958-dev.12",
3
+ "version": "0.0.1744283958-dev.13",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",