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/pb-ui.js CHANGED
@@ -1992,7 +1992,7 @@
1992
1992
  label: '弹窗按钮',
1993
1993
  type: 'Upload',
1994
1994
  name: ['props', 'iframeIcon'],
1995
- text: '建议尺寸:106 * 41'
1995
+ text: '建议尺寸:72 * 41'
1996
1996
  }
1997
1997
  ]
1998
1998
  }
@@ -9290,7 +9290,7 @@
9290
9290
  background: '#fff',
9291
9291
  borderRadius: '3px'
9292
9292
  }, onClick: () => setShow3DModal(true) },
9293
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '60px' })))),
9293
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
9294
9294
  renderCommodityGroup(),
9295
9295
  React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
9296
9296
  renderBtn(),
@@ -9950,7 +9950,7 @@
9950
9950
  label: '弹窗按钮',
9951
9951
  type: 'Upload',
9952
9952
  name: ['props', 'iframeIcon'],
9953
- text: '建议尺寸:106 * 41'
9953
+ text: '建议尺寸:72 * 41'
9954
9954
  }
9955
9955
  ]
9956
9956
  }
@@ -10154,7 +10154,7 @@ Made in Italy` })));
10154
10154
  background: '#fff',
10155
10155
  borderRadius: '3px'
10156
10156
  }, onClick: () => setShow3DModal(true) },
10157
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '60px' })))),
10157
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
10158
10158
  renderCommodityGroup(),
10159
10159
  React.createElement("div", { className: 'pb-commondityDiroNew-content' },
10160
10160
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
@@ -10778,11 +10778,11 @@ Made in Italy` })));
10778
10778
  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"]);
10779
10779
  const { popupDetailData } = useSxpDataSource();
10780
10780
  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;
10781
- 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),
10781
+ return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign({}, style))}` }, props),
10782
10782
  React.createElement("iframe", { src: iframeUrl, style: {
10783
10783
  width: '100%',
10784
10784
  height: 'calc(100% - 50px)',
10785
- marginTop: '40px',
10785
+ marginTop: '50px',
10786
10786
  border: 'none'
10787
10787
  } })));
10788
10788
  };
@@ -16888,7 +16888,7 @@ Made in Italy` })));
16888
16888
  * @Author: binruan@chatlabs.com
16889
16889
  * @Date: 2023-10-31 10:56:01
16890
16890
  * @LastEditors: binruan@chatlabs.com
16891
- * @LastEditTime: 2024-08-06 17:15:56
16891
+ * @LastEditTime: 2024-08-23 10:28:15
16892
16892
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
16893
16893
  *
16894
16894
  */
@@ -16913,6 +16913,20 @@ Made in Italy` })));
16913
16913
  setVisible(popup);
16914
16914
  }
16915
16915
  }, [popup]);
16916
+ const isFullScreen = React.useMemo(() => {
16917
+ var _a, _b, _c, _d;
16918
+ 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) => {
16919
+ if ((value === null || value === void 0 ? void 0 : value.id) === (popup === null || popup === void 0 ? void 0 : popup.id)) {
16920
+ return value;
16921
+ }
16922
+ });
16923
+ if (valueItem !== -1 && ((_d = valueItem === null || valueItem === void 0 ? void 0 : valueItem.item) === null || _d === void 0 ? void 0 : _d.type) === 'Iframe') {
16924
+ return true;
16925
+ }
16926
+ else {
16927
+ return false;
16928
+ }
16929
+ }, [popup, schema]);
16916
16930
  const handleClose = () => {
16917
16931
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
16918
16932
  if (!popup ||
@@ -16961,7 +16975,7 @@ Made in Italy` })));
16961
16975
  }
16962
16976
  });
16963
16977
  }, [schema, popup, resolver, handleClose]);
16964
- return (React.createElement(Modal$1, { popup: visible, onClose: handleClose, padding: 0, modalStyle: { position: 'fixed' } }, renderPopupDetail));
16978
+ return (React.createElement(Modal$1, { popup: visible, onClose: handleClose, padding: 0, modalStyle: { position: 'fixed' }, isFullScreen: isFullScreen }, renderPopupDetail));
16965
16979
  };
16966
16980
 
16967
16981
  /*