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.cjs CHANGED
@@ -1999,7 +1999,7 @@ var settingRender$9 = [
1999
1999
  label: '弹窗按钮',
2000
2000
  type: 'Upload',
2001
2001
  name: ['props', 'iframeIcon'],
2002
- text: '建议尺寸:106 * 41'
2002
+ text: '建议尺寸:72 * 41'
2003
2003
  }
2004
2004
  ]
2005
2005
  }
@@ -9288,7 +9288,6 @@ const CommodityDetail$1 = (_a) => {
9288
9288
  height: '100%'
9289
9289
  }), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
9290
9290
  (iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
9291
- padding: '5px 10px',
9292
9291
  display: 'flex',
9293
9292
  alignItems: 'center',
9294
9293
  position: 'absolute',
@@ -9298,7 +9297,7 @@ const CommodityDetail$1 = (_a) => {
9298
9297
  background: '#fff',
9299
9298
  borderRadius: '3px'
9300
9299
  }, onClick: () => setShow3DModal(true) },
9301
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px' })))),
9300
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
9302
9301
  renderCommodityGroup(),
9303
9302
  React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
9304
9303
  renderBtn(),
@@ -9958,7 +9957,7 @@ var settingRender$7 = [
9958
9957
  label: '弹窗按钮',
9959
9958
  type: 'Upload',
9960
9959
  name: ['props', 'iframeIcon'],
9961
- text: '建议尺寸:106 * 41'
9960
+ text: '建议尺寸:72 * 41'
9962
9961
  }
9963
9962
  ]
9964
9963
  }
@@ -10153,7 +10152,6 @@ Made in Italy` })));
10153
10152
  height: '100%'
10154
10153
  }), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
10155
10154
  (iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
10156
- padding: '5px 10px',
10157
10155
  display: 'flex',
10158
10156
  alignItems: 'center',
10159
10157
  position: 'absolute',
@@ -10163,7 +10161,7 @@ Made in Italy` })));
10163
10161
  background: '#fff',
10164
10162
  borderRadius: '3px'
10165
10163
  }, onClick: () => setShow3DModal(true) },
10166
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px' })))),
10164
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
10167
10165
  renderCommodityGroup(),
10168
10166
  React.createElement("div", { className: 'pb-commondityDiroNew-content' },
10169
10167
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
@@ -10787,11 +10785,11 @@ const Iframe$1 = (_a) => {
10787
10785
  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"]);
10788
10786
  const { popupDetailData } = useSxpDataSource();
10789
10787
  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;
10790
- return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { height: isTel ? 664 : window === null || window === void 0 ? void 0 : window.innerHeight }))}` }, props),
10788
+ return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign({}, style))}` }, props),
10791
10789
  React.createElement("iframe", { src: iframeUrl, style: {
10792
10790
  width: '100%',
10793
10791
  height: 'calc(100% - 50px)',
10794
- marginTop: '40px',
10792
+ marginTop: '50px',
10795
10793
  border: 'none'
10796
10794
  } })));
10797
10795
  };
@@ -16897,7 +16895,7 @@ var index$1 = React.memo(DiyPortalPreview);
16897
16895
  * @Author: binruan@chatlabs.com
16898
16896
  * @Date: 2023-10-31 10:56:01
16899
16897
  * @LastEditors: binruan@chatlabs.com
16900
- * @LastEditTime: 2024-08-06 17:15:56
16898
+ * @LastEditTime: 2024-08-23 10:28:15
16901
16899
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
16902
16900
  *
16903
16901
  */
@@ -16922,6 +16920,20 @@ const Popup = () => {
16922
16920
  setVisible(popup);
16923
16921
  }
16924
16922
  }, [popup]);
16923
+ const isFullScreen = React.useMemo(() => {
16924
+ var _a, _b, _c, _d;
16925
+ 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) => {
16926
+ if ((value === null || value === void 0 ? void 0 : value.id) === (popup === null || popup === void 0 ? void 0 : popup.id)) {
16927
+ return value;
16928
+ }
16929
+ });
16930
+ if (valueItem !== -1 && ((_d = valueItem === null || valueItem === void 0 ? void 0 : valueItem.item) === null || _d === void 0 ? void 0 : _d.type) === 'Iframe') {
16931
+ return true;
16932
+ }
16933
+ else {
16934
+ return false;
16935
+ }
16936
+ }, [popup, schema]);
16925
16937
  const handleClose = () => {
16926
16938
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
16927
16939
  if (!popup ||
@@ -16970,7 +16982,7 @@ const Popup = () => {
16970
16982
  }
16971
16983
  });
16972
16984
  }, [schema, popup, resolver, handleClose]);
16973
- return (React.createElement(Modal$1, { popup: visible, onClose: handleClose, padding: 0, modalStyle: { position: 'fixed' } }, renderPopupDetail));
16985
+ return (React.createElement(Modal$1, { popup: visible, onClose: handleClose, padding: 0, modalStyle: { position: 'fixed' }, isFullScreen: isFullScreen }, renderPopupDetail));
16974
16986
  };
16975
16987
 
16976
16988
  /*