pb-sxp-ui 1.13.0 → 1.13.1
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 +1 -1
- 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
@@ -11984,7 +11984,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
|
|
11984
11984
|
* @Author: binruan@chatlabs.com
|
11985
11985
|
* @Date: 2023-10-27 14:06:35
|
11986
11986
|
* @LastEditors: binruan@chatlabs.com
|
11987
|
-
* @LastEditTime: 2024-
|
11987
|
+
* @LastEditTime: 2024-12-12 15:12:57
|
11988
11988
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
|
11989
11989
|
*
|
11990
11990
|
*/
|
@@ -11998,16 +11998,32 @@ var settingRender$8 = [
|
|
11998
11998
|
name: ['style', 'backgroundColor']
|
11999
11999
|
}
|
12000
12000
|
]
|
12001
|
+
},
|
12002
|
+
{
|
12003
|
+
title: 'iframe',
|
12004
|
+
child: [
|
12005
|
+
{
|
12006
|
+
type: 'TextArea',
|
12007
|
+
label: 'url',
|
12008
|
+
name: ['props', 'iframe', 'src']
|
12009
|
+
},
|
12010
|
+
{
|
12011
|
+
type: 'TextArea',
|
12012
|
+
label: 'allow',
|
12013
|
+
name: ['props', 'iframe', 'allow']
|
12014
|
+
}
|
12015
|
+
]
|
12001
12016
|
}
|
12002
12017
|
];
|
12003
12018
|
|
12004
12019
|
const Iframe$1 = (_a) => {
|
12005
12020
|
var _b, _c;
|
12006
|
-
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"]);
|
12021
|
+
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"]);
|
12007
12022
|
const { popupDetailData } = useSxpDataSource();
|
12008
|
-
const
|
12009
|
-
|
12010
|
-
|
12023
|
+
const { src, allow } = iframe || {};
|
12024
|
+
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);
|
12025
|
+
return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
|
12026
|
+
React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
|
12011
12027
|
width: '100%',
|
12012
12028
|
height: 'calc(100% - 50px)',
|
12013
12029
|
marginTop: '50px',
|
@@ -18912,7 +18928,7 @@ var index$1 = React.memo(DiyPortalPreview);
|
|
18912
18928
|
* @Author: binruan@chatlabs.com
|
18913
18929
|
* @Date: 2023-10-31 10:56:01
|
18914
18930
|
* @LastEditors: binruan@chatlabs.com
|
18915
|
-
* @LastEditTime: 2024-
|
18931
|
+
* @LastEditTime: 2024-12-12 14:48:31
|
18916
18932
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
|
18917
18933
|
*
|
18918
18934
|
*/
|