pb-sxp-ui 1.3.5 → 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.
- package/dist/index.cjs +40 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +40 -16
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +40 -16
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/Popup/index.js +15 -1
- package/es/materials/sxp/popup/CommodityDetail/index.d.ts +1 -0
- package/es/materials/sxp/popup/CommodityDetail/index.js +4 -4
- package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +7 -2
- package/es/materials/sxp/popup/CommodityDetail/settingRender.js +6 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +1 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +4 -4
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +7 -2
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +6 -1
- package/es/materials/sxp/popup/Iframe/index.js +2 -2
- package/lib/core/components/SxpPageRender/Popup/index.js +15 -1
- package/lib/materials/sxp/popup/CommodityDetail/index.d.ts +1 -0
- package/lib/materials/sxp/popup/CommodityDetail/index.js +4 -4
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +7 -2
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +6 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +1 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +4 -4
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +7 -2
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +6 -1
- package/lib/materials/sxp/popup/Iframe/index.js +2 -2
- 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: '建议尺寸:
|
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);
|
@@ -9275,7 +9280,7 @@ const CommodityDetail$1 = (_a) => {
|
|
9275
9280
|
background: '#fff',
|
9276
9281
|
borderRadius: '3px'
|
9277
9282
|
}, onClick: () => setShow3DModal(true) },
|
9278
|
-
React.createElement("img", { src: iframeIcon, alt: '3d', width: '
|
9283
|
+
React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
|
9279
9284
|
renderCommodityGroup(),
|
9280
9285
|
React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
|
9281
9286
|
renderBtn(),
|
@@ -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:
|
9291
|
+
React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
|
9287
9292
|
React.createElement("iframe", { src: iframeUrl, style: {
|
9288
9293
|
width: '100%',
|
9289
|
-
height:
|
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-
|
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: '建议尺寸:
|
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();
|
@@ -10139,7 +10149,7 @@ Made in Italy` })));
|
|
10139
10149
|
background: '#fff',
|
10140
10150
|
borderRadius: '3px'
|
10141
10151
|
}, onClick: () => setShow3DModal(true) },
|
10142
|
-
React.createElement("img", { src: iframeIcon, alt: '3d', width: '
|
10152
|
+
React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
|
10143
10153
|
renderCommodityGroup(),
|
10144
10154
|
React.createElement("div", { className: 'pb-commondityDiroNew-content' },
|
10145
10155
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
|
@@ -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:
|
10177
|
+
React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
|
10168
10178
|
React.createElement("iframe", { src: iframeUrl, style: {
|
10169
10179
|
width: '100%',
|
10170
|
-
height:
|
10180
|
+
height: 'calc(100% - 50px)',
|
10171
10181
|
marginTop: '50px',
|
10172
10182
|
border: 'none'
|
10173
10183
|
} })))));
|
@@ -10763,11 +10773,11 @@ const Iframe$1 = (_a) => {
|
|
10763
10773
|
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
10774
|
const { popupDetailData } = useSxpDataSource();
|
10765
10775
|
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(
|
10776
|
+
return (React.createElement("div", Object.assign({ className: `${css(Object.assign({}, style))}` }, props),
|
10767
10777
|
React.createElement("iframe", { src: iframeUrl, style: {
|
10768
10778
|
width: '100%',
|
10769
10779
|
height: 'calc(100% - 50px)',
|
10770
|
-
marginTop: '
|
10780
|
+
marginTop: '50px',
|
10771
10781
|
border: 'none'
|
10772
10782
|
} })));
|
10773
10783
|
};
|
@@ -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-
|
16017
|
+
* @LastEditTime: 2024-08-23 11:35:02
|
16008
16018
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
16009
16019
|
*
|
16010
16020
|
*/
|
@@ -16873,7 +16883,7 @@ var index$1 = memo(DiyPortalPreview);
|
|
16873
16883
|
* @Author: binruan@chatlabs.com
|
16874
16884
|
* @Date: 2023-10-31 10:56:01
|
16875
16885
|
* @LastEditors: binruan@chatlabs.com
|
16876
|
-
* @LastEditTime: 2024-08-
|
16886
|
+
* @LastEditTime: 2024-08-23 10:28:15
|
16877
16887
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
|
16878
16888
|
*
|
16879
16889
|
*/
|
@@ -16898,6 +16908,20 @@ const Popup = () => {
|
|
16898
16908
|
setVisible(popup);
|
16899
16909
|
}
|
16900
16910
|
}, [popup]);
|
16911
|
+
const isFullScreen = useMemo(() => {
|
16912
|
+
var _a, _b, _c, _d;
|
16913
|
+
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) => {
|
16914
|
+
if ((value === null || value === void 0 ? void 0 : value.id) === (popup === null || popup === void 0 ? void 0 : popup.id)) {
|
16915
|
+
return value;
|
16916
|
+
}
|
16917
|
+
});
|
16918
|
+
if (valueItem !== -1 && ((_d = valueItem === null || valueItem === void 0 ? void 0 : valueItem.item) === null || _d === void 0 ? void 0 : _d.type) === 'Iframe') {
|
16919
|
+
return true;
|
16920
|
+
}
|
16921
|
+
else {
|
16922
|
+
return false;
|
16923
|
+
}
|
16924
|
+
}, [popup, schema]);
|
16901
16925
|
const handleClose = () => {
|
16902
16926
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
16903
16927
|
if (!popup ||
|
@@ -16946,7 +16970,7 @@ const Popup = () => {
|
|
16946
16970
|
}
|
16947
16971
|
});
|
16948
16972
|
}, [schema, popup, resolver, handleClose]);
|
16949
|
-
return (React.createElement(Modal$1, { popup: visible, onClose: handleClose, padding: 0, modalStyle: { position: 'fixed' } }, renderPopupDetail));
|
16973
|
+
return (React.createElement(Modal$1, { popup: visible, onClose: handleClose, padding: 0, modalStyle: { position: 'fixed' }, isFullScreen: isFullScreen }, renderPopupDetail));
|
16950
16974
|
};
|
16951
16975
|
|
16952
16976
|
/*
|