pb-sxp-ui 1.3.6 → 1.3.7

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.
Files changed (29) hide show
  1. package/dist/index.cjs +20 -10
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +20 -10
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.cjs +3 -3
  6. package/dist/index.min.cjs.map +1 -1
  7. package/dist/index.min.js +3 -3
  8. package/dist/index.min.js.map +1 -1
  9. package/dist/pb-ui.js +20 -10
  10. package/dist/pb-ui.js.map +1 -1
  11. package/dist/pb-ui.min.js +3 -3
  12. package/dist/pb-ui.min.js.map +1 -1
  13. package/es/materials/sxp/popup/CommodityDetail/index.d.ts +1 -0
  14. package/es/materials/sxp/popup/CommodityDetail/index.js +3 -3
  15. package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +7 -2
  16. package/es/materials/sxp/popup/CommodityDetail/settingRender.js +6 -1
  17. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +1 -0
  18. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +3 -3
  19. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +7 -2
  20. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +6 -1
  21. package/lib/materials/sxp/popup/CommodityDetail/index.d.ts +1 -0
  22. package/lib/materials/sxp/popup/CommodityDetail/index.js +3 -3
  23. package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +7 -2
  24. package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +6 -1
  25. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +1 -0
  26. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +3 -3
  27. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +7 -2
  28. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +6 -1
  29. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1977,7 +1977,12 @@ var settingRender$9 = [
1977
1977
  label: '弹窗按钮',
1978
1978
  type: 'Upload',
1979
1979
  name: ['props', 'iframeIcon'],
1980
- text: '建议尺寸:72 * 41'
1980
+ text: '建议尺寸:72 * 30'
1981
+ },
1982
+ {
1983
+ label: '背景色',
1984
+ type: 'Color',
1985
+ name: ['props', 'iframeBgColor']
1981
1986
  }
1982
1987
  ]
1983
1988
  }
@@ -9109,7 +9114,7 @@ var CommodityGroup$1 = memo(CommodityGroup);
9109
9114
 
9110
9115
  const CommodityDetail$1 = (_a) => {
9111
9116
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
9112
- var { content, style, bgImg, onClick, schema, isDefault, bottom_image, tipText, isPost, viewTime, rec, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel } = _a, props = __rest(_a, ["content", "style", "bgImg", "onClick", "schema", "isDefault", "bottom_image", "tipText", "isPost", "viewTime", "rec", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio", "isTel"]);
9117
+ var { content, style, bgImg, onClick, schema, isDefault, bottom_image, tipText, isPost, viewTime, rec, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel, iframeBgColor } = _a, props = __rest(_a, ["content", "style", "bgImg", "onClick", "schema", "isDefault", "bottom_image", "tipText", "isPost", "viewTime", "rec", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio", "isTel", "iframeBgColor"]);
9113
9118
  const { sxpParameter, popupDetailData, isPreview, bffFbReport, popupCurTimeRef, checkCommodityIndexRef } = useSxpDataSource();
9114
9119
  const { jumpToWeb, productView } = useEventReport();
9115
9120
  const curTimeRef = useRef(null);
@@ -9283,10 +9288,10 @@ const CommodityDetail$1 = (_a) => {
9283
9288
  React.createElement("div", { style: { paddingBottom: '80px' } }, renderContent({ isPost: false })),
9284
9289
  renderBtn()),
9285
9290
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
9286
- React.createElement("div", { style: { height: window.innerHeight } },
9291
+ React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
9287
9292
  React.createElement("iframe", { src: iframeUrl, style: {
9288
9293
  width: '100%',
9289
- height: isTel ? `${664 - 50}px` : `${window.innerHeight - 50}px`,
9294
+ height: 'calc(100% - 50px)',
9290
9295
  marginTop: '50px',
9291
9296
  border: 'none'
9292
9297
  } })))));
@@ -9628,7 +9633,7 @@ const Prompt = createMaterial(PromptComponent, {
9628
9633
  * @Author: binruan@chatlabs.com
9629
9634
  * @Date: 2024-03-26 16:50:25
9630
9635
  * @LastEditors: binruan@chatlabs.com
9631
- * @LastEditTime: 2024-08-20 15:50:06
9636
+ * @LastEditTime: 2024-08-23 10:58:38
9632
9637
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\settingRender.tsx
9633
9638
  *
9634
9639
  */
@@ -9935,7 +9940,12 @@ var settingRender$7 = [
9935
9940
  label: '弹窗按钮',
9936
9941
  type: 'Upload',
9937
9942
  name: ['props', 'iframeIcon'],
9938
- text: '建议尺寸:72 * 41'
9943
+ text: '建议尺寸:72 * 30'
9944
+ },
9945
+ {
9946
+ label: '背景色',
9947
+ type: 'Color',
9948
+ name: ['props', 'iframeBgColor']
9939
9949
  }
9940
9950
  ]
9941
9951
  }
@@ -9943,7 +9953,7 @@ var settingRender$7 = [
9943
9953
 
9944
9954
  const CommodityDetailDiroNew$1 = (_a) => {
9945
9955
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
9946
- var { style, isDefault, rec, viewTime, isPost, bottom_image, tipText, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel } = _a, props = __rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "tipText", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio", "isTel"]);
9956
+ var { style, isDefault, rec, viewTime, isPost, bottom_image, tipText, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel, iframeBgColor } = _a, props = __rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "tipText", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio", "isTel", "iframeBgColor"]);
9947
9957
  useState(true);
9948
9958
  const { sxpParameter, popupCurTimeRef, popupDetailData, isPreview, bffFbReport, checkCommodityIndexRef } = useSxpDataSource();
9949
9959
  const { jumpToWeb, productView } = useEventReport();
@@ -10164,10 +10174,10 @@ Made in Italy` })));
10164
10174
  productInfoText({ isPost }))),
10165
10175
  React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) }, productInfoText({ isPost: false })),
10166
10176
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
10167
- React.createElement("div", { style: { height: window.innerHeight } },
10177
+ React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
10168
10178
  React.createElement("iframe", { src: iframeUrl, style: {
10169
10179
  width: '100%',
10170
- height: isTel ? `${664 - 50}px` : `${window.innerHeight - 50}px`,
10180
+ height: 'calc(100% - 50px)',
10171
10181
  marginTop: '50px',
10172
10182
  border: 'none'
10173
10183
  } })))));
@@ -16004,7 +16014,7 @@ var Tagbar$1 = memo(Tagbar);
16004
16014
  * @Author: binruan@chatlabs.com
16005
16015
  * @Date: 2024-01-15 19:03:09
16006
16016
  * @LastEditors: binruan@chatlabs.com
16007
- * @LastEditTime: 2024-08-22 18:34:01
16017
+ * @LastEditTime: 2024-08-23 11:35:02
16008
16018
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
16009
16019
  *
16010
16020
  */