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.cjs +22 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -8
- 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 -8
- 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 -1
- package/es/materials/sxp/popup/CommodityDetail/settingRender.js +1 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- 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 -1
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +1 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- 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/index.cjs
CHANGED
@@ -1999,7 +1999,7 @@ var settingRender$9 = [
|
|
1999
1999
|
label: '弹窗按钮',
|
2000
2000
|
type: 'Upload',
|
2001
2001
|
name: ['props', 'iframeIcon'],
|
2002
|
-
text: '建议尺寸:
|
2002
|
+
text: '建议尺寸:72 * 41'
|
2003
2003
|
}
|
2004
2004
|
]
|
2005
2005
|
}
|
@@ -9297,7 +9297,7 @@ const CommodityDetail$1 = (_a) => {
|
|
9297
9297
|
background: '#fff',
|
9298
9298
|
borderRadius: '3px'
|
9299
9299
|
}, onClick: () => setShow3DModal(true) },
|
9300
|
-
React.createElement("img", { src: iframeIcon, alt: '3d', width: '
|
9300
|
+
React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
|
9301
9301
|
renderCommodityGroup(),
|
9302
9302
|
React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
|
9303
9303
|
renderBtn(),
|
@@ -9957,7 +9957,7 @@ var settingRender$7 = [
|
|
9957
9957
|
label: '弹窗按钮',
|
9958
9958
|
type: 'Upload',
|
9959
9959
|
name: ['props', 'iframeIcon'],
|
9960
|
-
text: '建议尺寸:
|
9960
|
+
text: '建议尺寸:72 * 41'
|
9961
9961
|
}
|
9962
9962
|
]
|
9963
9963
|
}
|
@@ -10161,7 +10161,7 @@ Made in Italy` })));
|
|
10161
10161
|
background: '#fff',
|
10162
10162
|
borderRadius: '3px'
|
10163
10163
|
}, onClick: () => setShow3DModal(true) },
|
10164
|
-
React.createElement("img", { src: iframeIcon, alt: '3d', width: '
|
10164
|
+
React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
|
10165
10165
|
renderCommodityGroup(),
|
10166
10166
|
React.createElement("div", { className: 'pb-commondityDiroNew-content' },
|
10167
10167
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
|
@@ -10785,11 +10785,11 @@ const Iframe$1 = (_a) => {
|
|
10785
10785
|
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"]);
|
10786
10786
|
const { popupDetailData } = useSxpDataSource();
|
10787
10787
|
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;
|
10788
|
-
return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(
|
10788
|
+
return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign({}, style))}` }, props),
|
10789
10789
|
React.createElement("iframe", { src: iframeUrl, style: {
|
10790
10790
|
width: '100%',
|
10791
10791
|
height: 'calc(100% - 50px)',
|
10792
|
-
marginTop: '
|
10792
|
+
marginTop: '50px',
|
10793
10793
|
border: 'none'
|
10794
10794
|
} })));
|
10795
10795
|
};
|
@@ -16895,7 +16895,7 @@ var index$1 = React.memo(DiyPortalPreview);
|
|
16895
16895
|
* @Author: binruan@chatlabs.com
|
16896
16896
|
* @Date: 2023-10-31 10:56:01
|
16897
16897
|
* @LastEditors: binruan@chatlabs.com
|
16898
|
-
* @LastEditTime: 2024-08-
|
16898
|
+
* @LastEditTime: 2024-08-23 10:28:15
|
16899
16899
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
|
16900
16900
|
*
|
16901
16901
|
*/
|
@@ -16920,6 +16920,20 @@ const Popup = () => {
|
|
16920
16920
|
setVisible(popup);
|
16921
16921
|
}
|
16922
16922
|
}, [popup]);
|
16923
|
+
const isFullScreen = React.useMemo(() => {
|
16924
|
+
var _a, _b, _c, _d;
|
16925
|
+
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) => {
|
16926
|
+
if ((value === null || value === void 0 ? void 0 : value.id) === (popup === null || popup === void 0 ? void 0 : popup.id)) {
|
16927
|
+
return value;
|
16928
|
+
}
|
16929
|
+
});
|
16930
|
+
if (valueItem !== -1 && ((_d = valueItem === null || valueItem === void 0 ? void 0 : valueItem.item) === null || _d === void 0 ? void 0 : _d.type) === 'Iframe') {
|
16931
|
+
return true;
|
16932
|
+
}
|
16933
|
+
else {
|
16934
|
+
return false;
|
16935
|
+
}
|
16936
|
+
}, [popup, schema]);
|
16923
16937
|
const handleClose = () => {
|
16924
16938
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
16925
16939
|
if (!popup ||
|
@@ -16968,7 +16982,7 @@ const Popup = () => {
|
|
16968
16982
|
}
|
16969
16983
|
});
|
16970
16984
|
}, [schema, popup, resolver, handleClose]);
|
16971
|
-
return (React.createElement(Modal$1, { popup: visible, onClose: handleClose, padding: 0, modalStyle: { position: 'fixed' } }, renderPopupDetail));
|
16985
|
+
return (React.createElement(Modal$1, { popup: visible, onClose: handleClose, padding: 0, modalStyle: { position: 'fixed' }, isFullScreen: isFullScreen }, renderPopupDetail));
|
16972
16986
|
};
|
16973
16987
|
|
16974
16988
|
/*
|