pb-sxp-ui 1.12.2 → 1.12.3
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 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -6
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +22 -6
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/materials/sxp/popup/Iframe/index.d.ts +4 -0
- package/es/materials/sxp/popup/Iframe/index.js +5 -4
- package/es/materials/sxp/popup/Iframe/settingRender.js +15 -0
- package/lib/materials/sxp/popup/Iframe/index.d.ts +4 -0
- package/lib/materials/sxp/popup/Iframe/index.js +5 -4
- package/lib/materials/sxp/popup/Iframe/settingRender.js +15 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -12025,7 +12025,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
|
|
12025
12025
|
* @Author: binruan@chatlabs.com
|
12026
12026
|
* @Date: 2023-10-27 14:06:35
|
12027
12027
|
* @LastEditors: binruan@chatlabs.com
|
12028
|
-
* @LastEditTime: 2024-
|
12028
|
+
* @LastEditTime: 2024-12-12 15:12:57
|
12029
12029
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
|
12030
12030
|
*
|
12031
12031
|
*/
|
@@ -12039,16 +12039,32 @@ var settingRender$8 = [
|
|
12039
12039
|
name: ['style', 'backgroundColor']
|
12040
12040
|
}
|
12041
12041
|
]
|
12042
|
+
},
|
12043
|
+
{
|
12044
|
+
title: 'iframe',
|
12045
|
+
child: [
|
12046
|
+
{
|
12047
|
+
type: 'TextArea',
|
12048
|
+
label: 'url',
|
12049
|
+
name: ['props', 'iframe', 'src']
|
12050
|
+
},
|
12051
|
+
{
|
12052
|
+
type: 'TextArea',
|
12053
|
+
label: 'allow',
|
12054
|
+
name: ['props', 'iframe', 'allow']
|
12055
|
+
}
|
12056
|
+
]
|
12042
12057
|
}
|
12043
12058
|
];
|
12044
12059
|
|
12045
12060
|
const Iframe$1 = (_a) => {
|
12046
12061
|
var _b, _c;
|
12047
|
-
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"]);
|
12062
|
+
var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick, submitButtonStyle, contentStyle, isTel, iframe } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick", "submitButtonStyle", "contentStyle", "isTel", "iframe"]);
|
12048
12063
|
const { popupDetailData } = useSxpDataSource();
|
12049
|
-
const
|
12050
|
-
|
12051
|
-
|
12064
|
+
const { src, allow } = iframe || {};
|
12065
|
+
const iframeUrl = src || ((_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);
|
12066
|
+
return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
|
12067
|
+
React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
|
12052
12068
|
width: '100%',
|
12053
12069
|
height: 'calc(100% - 50px)',
|
12054
12070
|
marginTop: '50px',
|
@@ -18953,7 +18969,7 @@ var index$1 = React.memo(DiyPortalPreview);
|
|
18953
18969
|
* @Author: binruan@chatlabs.com
|
18954
18970
|
* @Date: 2023-10-31 10:56:01
|
18955
18971
|
* @LastEditors: binruan@chatlabs.com
|
18956
|
-
* @LastEditTime: 2024-
|
18972
|
+
* @LastEditTime: 2024-12-12 14:48:31
|
18957
18973
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
|
18958
18974
|
*
|
18959
18975
|
*/
|