@alipay/ams-checkout 0.0.1754894468-dev.4 → 0.0.1754894468-dev.5

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.
@@ -68,6 +68,7 @@ export function createCloseIcon(onClose) {
68
68
  closeIcon.onclick = onClose;
69
69
  return closeIcon;
70
70
  }
71
+ // TODO 这里固定?
71
72
  var modalDevice = 'desktop';
72
73
  // 插入弹窗
73
74
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -139,7 +140,9 @@ export var destroyModal = function destroyModal() {
139
140
  if (!overlay) {
140
141
  return;
141
142
  }
142
- var modal = modalDevice === 'desktop' ? document.querySelector(".".concat(AMSPOPUP_PREFIX, "modal")) : document.querySelector(".".concat(AMSPOPUP_PREFIX, "modal-mobile"));
143
+ var modal =
144
+ //TODO modalDevice固定'desktop'?
145
+ modalDevice === 'desktop' ? document.querySelector(".".concat(AMSPOPUP_PREFIX, "modal")) : document.querySelector(".".concat(AMSPOPUP_PREFIX, "modal-mobile"));
143
146
  overlay.classList.remove("".concat(AMSPOPUP_PREFIX, "fadeIn"));
144
147
  overlay.classList.add("".concat(AMSPOPUP_PREFIX, "fadeOut"));
145
148
  if (modalDevice === 'desktop') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1754894468-dev.4",
3
+ "version": "0.0.1754894468-dev.5",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",