pb-sxp-ui 1.3.4 → 1.3.6

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/dist/index.js CHANGED
@@ -1977,7 +1977,7 @@ var settingRender$9 = [
1977
1977
  label: '弹窗按钮',
1978
1978
  type: 'Upload',
1979
1979
  name: ['props', 'iframeIcon'],
1980
- text: '建议尺寸:106 * 41'
1980
+ text: '建议尺寸:72 * 41'
1981
1981
  }
1982
1982
  ]
1983
1983
  }
@@ -9266,7 +9266,6 @@ const CommodityDetail$1 = (_a) => {
9266
9266
  height: '100%'
9267
9267
  }), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
9268
9268
  (iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
9269
- padding: '5px 10px',
9270
9269
  display: 'flex',
9271
9270
  alignItems: 'center',
9272
9271
  position: 'absolute',
@@ -9276,7 +9275,7 @@ const CommodityDetail$1 = (_a) => {
9276
9275
  background: '#fff',
9277
9276
  borderRadius: '3px'
9278
9277
  }, onClick: () => setShow3DModal(true) },
9279
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px' })))),
9278
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
9280
9279
  renderCommodityGroup(),
9281
9280
  React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
9282
9281
  renderBtn(),
@@ -9936,7 +9935,7 @@ var settingRender$7 = [
9936
9935
  label: '弹窗按钮',
9937
9936
  type: 'Upload',
9938
9937
  name: ['props', 'iframeIcon'],
9939
- text: '建议尺寸:106 * 41'
9938
+ text: '建议尺寸:72 * 41'
9940
9939
  }
9941
9940
  ]
9942
9941
  }
@@ -10131,7 +10130,6 @@ Made in Italy` })));
10131
10130
  height: '100%'
10132
10131
  }), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
10133
10132
  (iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
10134
- padding: '5px 10px',
10135
10133
  display: 'flex',
10136
10134
  alignItems: 'center',
10137
10135
  position: 'absolute',
@@ -10141,7 +10139,7 @@ Made in Italy` })));
10141
10139
  background: '#fff',
10142
10140
  borderRadius: '3px'
10143
10141
  }, onClick: () => setShow3DModal(true) },
10144
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px' })))),
10142
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
10145
10143
  renderCommodityGroup(),
10146
10144
  React.createElement("div", { className: 'pb-commondityDiroNew-content' },
10147
10145
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
@@ -10765,11 +10763,11 @@ const Iframe$1 = (_a) => {
10765
10763
  var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick, submitButtonStyle, contentStyle, isTel } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick", "submitButtonStyle", "contentStyle", "isTel"]);
10766
10764
  const { popupDetailData } = useSxpDataSource();
10767
10765
  const iframeUrl = (_c = (_b = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.video) === null || _b === void 0 ? void 0 : _b.bindCta) === null || _c === void 0 ? void 0 : _c.remark;
10768
- return (React.createElement("div", Object.assign({ className: `${css(Object.assign(Object.assign({}, style), { height: isTel ? 664 : window === null || window === void 0 ? void 0 : window.innerHeight }))}` }, props),
10766
+ return (React.createElement("div", Object.assign({ className: `${css(Object.assign({}, style))}` }, props),
10769
10767
  React.createElement("iframe", { src: iframeUrl, style: {
10770
10768
  width: '100%',
10771
10769
  height: 'calc(100% - 50px)',
10772
- marginTop: '40px',
10770
+ marginTop: '50px',
10773
10771
  border: 'none'
10774
10772
  } })));
10775
10773
  };
@@ -16875,7 +16873,7 @@ var index$1 = memo(DiyPortalPreview);
16875
16873
  * @Author: binruan@chatlabs.com
16876
16874
  * @Date: 2023-10-31 10:56:01
16877
16875
  * @LastEditors: binruan@chatlabs.com
16878
- * @LastEditTime: 2024-08-06 17:15:56
16876
+ * @LastEditTime: 2024-08-23 10:28:15
16879
16877
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
16880
16878
  *
16881
16879
  */
@@ -16900,6 +16898,20 @@ const Popup = () => {
16900
16898
  setVisible(popup);
16901
16899
  }
16902
16900
  }, [popup]);
16901
+ const isFullScreen = useMemo(() => {
16902
+ var _a, _b, _c, _d;
16903
+ const valueItem = (_c = (_b = (_a = schema === null || schema === void 0 ? void 0 : schema.sxpPageConf) === null || _a === void 0 ? void 0 : _a.globalConfig) === null || _b === void 0 ? void 0 : _b.popupList) === null || _c === void 0 ? void 0 : _c.find((value, index) => {
16904
+ if ((value === null || value === void 0 ? void 0 : value.id) === (popup === null || popup === void 0 ? void 0 : popup.id)) {
16905
+ return value;
16906
+ }
16907
+ });
16908
+ if (valueItem !== -1 && ((_d = valueItem === null || valueItem === void 0 ? void 0 : valueItem.item) === null || _d === void 0 ? void 0 : _d.type) === 'Iframe') {
16909
+ return true;
16910
+ }
16911
+ else {
16912
+ return false;
16913
+ }
16914
+ }, [popup, schema]);
16903
16915
  const handleClose = () => {
16904
16916
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
16905
16917
  if (!popup ||
@@ -16948,7 +16960,7 @@ const Popup = () => {
16948
16960
  }
16949
16961
  });
16950
16962
  }, [schema, popup, resolver, handleClose]);
16951
- return (React.createElement(Modal$1, { popup: visible, onClose: handleClose, padding: 0, modalStyle: { position: 'fixed' } }, renderPopupDetail));
16963
+ return (React.createElement(Modal$1, { popup: visible, onClose: handleClose, padding: 0, modalStyle: { position: 'fixed' }, isFullScreen: isFullScreen }, renderPopupDetail));
16952
16964
  };
16953
16965
 
16954
16966
  /*