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 +22 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -10
- 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 +22 -10
- 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.js +1 -2
- package/es/materials/sxp/popup/CommodityDetail/settingRender.js +1 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -2
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +1 -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.js +1 -2
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +1 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -2
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +1 -1
- package/lib/materials/sxp/popup/Iframe/index.js +2 -2
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -1992,7 +1992,7 @@
|
|
1992
1992
|
label: '弹窗按钮',
|
1993
1993
|
type: 'Upload',
|
1994
1994
|
name: ['props', 'iframeIcon'],
|
1995
|
-
text: '建议尺寸:
|
1995
|
+
text: '建议尺寸:72 * 41'
|
1996
1996
|
}
|
1997
1997
|
]
|
1998
1998
|
}
|
@@ -9281,7 +9281,6 @@
|
|
9281
9281
|
height: '100%'
|
9282
9282
|
}), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
|
9283
9283
|
(iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
|
9284
|
-
padding: '5px 10px',
|
9285
9284
|
display: 'flex',
|
9286
9285
|
alignItems: 'center',
|
9287
9286
|
position: 'absolute',
|
@@ -9291,7 +9290,7 @@
|
|
9291
9290
|
background: '#fff',
|
9292
9291
|
borderRadius: '3px'
|
9293
9292
|
}, onClick: () => setShow3DModal(true) },
|
9294
|
-
React.createElement("img", { src: iframeIcon, alt: '3d', width: '
|
9293
|
+
React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
|
9295
9294
|
renderCommodityGroup(),
|
9296
9295
|
React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
|
9297
9296
|
renderBtn(),
|
@@ -9951,7 +9950,7 @@
|
|
9951
9950
|
label: '弹窗按钮',
|
9952
9951
|
type: 'Upload',
|
9953
9952
|
name: ['props', 'iframeIcon'],
|
9954
|
-
text: '建议尺寸:
|
9953
|
+
text: '建议尺寸:72 * 41'
|
9955
9954
|
}
|
9956
9955
|
]
|
9957
9956
|
}
|
@@ -10146,7 +10145,6 @@ Made in Italy` })));
|
|
10146
10145
|
height: '100%'
|
10147
10146
|
}), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
|
10148
10147
|
(iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
|
10149
|
-
padding: '5px 10px',
|
10150
10148
|
display: 'flex',
|
10151
10149
|
alignItems: 'center',
|
10152
10150
|
position: 'absolute',
|
@@ -10156,7 +10154,7 @@ Made in Italy` })));
|
|
10156
10154
|
background: '#fff',
|
10157
10155
|
borderRadius: '3px'
|
10158
10156
|
}, onClick: () => setShow3DModal(true) },
|
10159
|
-
React.createElement("img", { src: iframeIcon, alt: '3d', width: '
|
10157
|
+
React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
|
10160
10158
|
renderCommodityGroup(),
|
10161
10159
|
React.createElement("div", { className: 'pb-commondityDiroNew-content' },
|
10162
10160
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
|
@@ -10780,11 +10778,11 @@ Made in Italy` })));
|
|
10780
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"]);
|
10781
10779
|
const { popupDetailData } = useSxpDataSource();
|
10782
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;
|
10783
|
-
return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(
|
10781
|
+
return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign({}, style))}` }, props),
|
10784
10782
|
React.createElement("iframe", { src: iframeUrl, style: {
|
10785
10783
|
width: '100%',
|
10786
10784
|
height: 'calc(100% - 50px)',
|
10787
|
-
marginTop: '
|
10785
|
+
marginTop: '50px',
|
10788
10786
|
border: 'none'
|
10789
10787
|
} })));
|
10790
10788
|
};
|
@@ -16890,7 +16888,7 @@ Made in Italy` })));
|
|
16890
16888
|
* @Author: binruan@chatlabs.com
|
16891
16889
|
* @Date: 2023-10-31 10:56:01
|
16892
16890
|
* @LastEditors: binruan@chatlabs.com
|
16893
|
-
* @LastEditTime: 2024-08-
|
16891
|
+
* @LastEditTime: 2024-08-23 10:28:15
|
16894
16892
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
|
16895
16893
|
*
|
16896
16894
|
*/
|
@@ -16915,6 +16913,20 @@ Made in Italy` })));
|
|
16915
16913
|
setVisible(popup);
|
16916
16914
|
}
|
16917
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]);
|
16918
16930
|
const handleClose = () => {
|
16919
16931
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
16920
16932
|
if (!popup ||
|
@@ -16963,7 +16975,7 @@ Made in Italy` })));
|
|
16963
16975
|
}
|
16964
16976
|
});
|
16965
16977
|
}, [schema, popup, resolver, handleClose]);
|
16966
|
-
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));
|
16967
16979
|
};
|
16968
16980
|
|
16969
16981
|
/*
|