pb-sxp-ui 1.3.5 → 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
  }
@@ -9275,7 +9275,7 @@ const CommodityDetail$1 = (_a) => {
9275
9275
  background: '#fff',
9276
9276
  borderRadius: '3px'
9277
9277
  }, onClick: () => setShow3DModal(true) },
9278
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '60px' })))),
9278
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
9279
9279
  renderCommodityGroup(),
9280
9280
  React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
9281
9281
  renderBtn(),
@@ -9935,7 +9935,7 @@ var settingRender$7 = [
9935
9935
  label: '弹窗按钮',
9936
9936
  type: 'Upload',
9937
9937
  name: ['props', 'iframeIcon'],
9938
- text: '建议尺寸:106 * 41'
9938
+ text: '建议尺寸:72 * 41'
9939
9939
  }
9940
9940
  ]
9941
9941
  }
@@ -10139,7 +10139,7 @@ Made in Italy` })));
10139
10139
  background: '#fff',
10140
10140
  borderRadius: '3px'
10141
10141
  }, onClick: () => setShow3DModal(true) },
10142
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '60px' })))),
10142
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
10143
10143
  renderCommodityGroup(),
10144
10144
  React.createElement("div", { className: 'pb-commondityDiroNew-content' },
10145
10145
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
@@ -10763,11 +10763,11 @@ const Iframe$1 = (_a) => {
10763
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"]);
10764
10764
  const { popupDetailData } = useSxpDataSource();
10765
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;
10766
- 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),
10767
10767
  React.createElement("iframe", { src: iframeUrl, style: {
10768
10768
  width: '100%',
10769
10769
  height: 'calc(100% - 50px)',
10770
- marginTop: '40px',
10770
+ marginTop: '50px',
10771
10771
  border: 'none'
10772
10772
  } })));
10773
10773
  };
@@ -16873,7 +16873,7 @@ var index$1 = memo(DiyPortalPreview);
16873
16873
  * @Author: binruan@chatlabs.com
16874
16874
  * @Date: 2023-10-31 10:56:01
16875
16875
  * @LastEditors: binruan@chatlabs.com
16876
- * @LastEditTime: 2024-08-06 17:15:56
16876
+ * @LastEditTime: 2024-08-23 10:28:15
16877
16877
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
16878
16878
  *
16879
16879
  */
@@ -16898,6 +16898,20 @@ const Popup = () => {
16898
16898
  setVisible(popup);
16899
16899
  }
16900
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]);
16901
16915
  const handleClose = () => {
16902
16916
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
16903
16917
  if (!popup ||
@@ -16946,7 +16960,7 @@ const Popup = () => {
16946
16960
  }
16947
16961
  });
16948
16962
  }, [schema, popup, resolver, handleClose]);
16949
- 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));
16950
16964
  };
16951
16965
 
16952
16966
  /*