@alipay/ams-checkout 0.0.1730706734-dev.1 → 0.0.1730706734-dev.3

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.
@@ -500,7 +500,7 @@ export var ElementComponent = /*#__PURE__*/function () {
500
500
  key: "createIframeSrc",
501
501
  value: function createIframeSrc() {
502
502
  var env = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ELEMENT_ENVIRONMENT.DEV;
503
- var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '1.24.1';
503
+ var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '1.24.0';
504
504
  var baseUrl = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ELEMENT_ENVIRONMENT.DEV, 'http://dev.page.alipay.net/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.TEST, 'http://page.test.alipay.net/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.PRE, 'https://cdn-pre.marmot-cloud.com/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.PROD, 'https://checkout.antom.com');
505
505
  var _env = (env === null || env === void 0 ? void 0 : env.toLocaleUpperCase()) || ELEMENT_ENVIRONMENT.DEV;
506
506
  return {
@@ -1782,14 +1782,18 @@ var ComponentApp = /*#__PURE__*/function () {
1782
1782
  key: "hideComponentAnimation",
1783
1783
  value: function hideComponentAnimation() {
1784
1784
  var _container$style;
1785
- var container = document.getElementById(COMPONENT_CONTAINER_ID);
1786
- if (this.app) this.app.style.height = container === null || container === void 0 || (_container$style = container.style) === null || _container$style === void 0 ? void 0 : _container$style.height;
1785
+ // 修改需当前文件搜索,这段注释appendAliasContainerId
1786
+ var _selector = this._renderParams.selector.indexOf('#') === -1 ? this._renderParams.selector : this._renderParams.selector.slice(1);
1787
+ var appendAliasContainerId = this._renderParams.appendAliasContainerId ? "-".concat(_selector) : '';
1788
+ var inlineId = "".concat(COMPONENT_CONTAINER_ID).concat(appendAliasContainerId);
1789
+ var container = document.getElementById(inlineId);
1790
+ if (this.app && container) this.app.style.height = container === null || container === void 0 || (_container$style = container.style) === null || _container$style === void 0 ? void 0 : _container$style.height;
1787
1791
  if (container) {
1788
1792
  // size变化动画取消
1789
1793
  container.style.transition = '';
1790
- container === null || container === void 0 || container.classList.remove("".concat(COMPONENT_CONTAINER_ID, "-").concat(this.platform));
1791
- container === null || container === void 0 || container.classList.remove("".concat(COMPONENT_CONTAINER_ID, "-").concat(this.platform, "-animation"));
1792
- container === null || container === void 0 || container.classList.add("".concat(COMPONENT_CONTAINER_ID, "-hidden-").concat(this.platform));
1794
+ container === null || container === void 0 || container.classList.remove("".concat(inlineId, "-").concat(this.platform));
1795
+ container === null || container === void 0 || container.classList.remove("".concat(inlineId, "-").concat(this.platform, "-animation"));
1796
+ container === null || container === void 0 || container.classList.add("".concat(inlineId, "-hidden-").concat(this.platform));
1793
1797
  }
1794
1798
  }
1795
1799
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1730706734-dev.1",
3
+ "version": "0.0.1730706734-dev.3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",