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.js CHANGED
@@ -11962,7 +11962,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
11962
11962
  * @Author: binruan@chatlabs.com
11963
11963
  * @Date: 2023-10-27 14:06:35
11964
11964
  * @LastEditors: binruan@chatlabs.com
11965
- * @LastEditTime: 2024-08-08 17:32:11
11965
+ * @LastEditTime: 2024-12-12 15:12:57
11966
11966
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
11967
11967
  *
11968
11968
  */
@@ -11976,16 +11976,32 @@ var settingRender$8 = [
11976
11976
  name: ['style', 'backgroundColor']
11977
11977
  }
11978
11978
  ]
11979
+ },
11980
+ {
11981
+ title: 'iframe',
11982
+ child: [
11983
+ {
11984
+ type: 'TextArea',
11985
+ label: 'url',
11986
+ name: ['props', 'iframe', 'src']
11987
+ },
11988
+ {
11989
+ type: 'TextArea',
11990
+ label: 'allow',
11991
+ name: ['props', 'iframe', 'allow']
11992
+ }
11993
+ ]
11979
11994
  }
11980
11995
  ];
11981
11996
 
11982
11997
  const Iframe$1 = (_a) => {
11983
11998
  var _b, _c;
11984
- 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"]);
11999
+ 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"]);
11985
12000
  const { popupDetailData } = useSxpDataSource();
11986
- 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;
11987
- return (React.createElement("div", Object.assign({ className: `${css(Object.assign({}, style))}` }, props),
11988
- React.createElement("iframe", { src: iframeUrl, style: {
12001
+ const { src, allow } = iframe || {};
12002
+ 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);
12003
+ return (React.createElement("div", Object.assign({ className: `${css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
12004
+ React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
11989
12005
  width: '100%',
11990
12006
  height: 'calc(100% - 50px)',
11991
12007
  marginTop: '50px',
@@ -18890,7 +18906,7 @@ var index$1 = memo(DiyPortalPreview);
18890
18906
  * @Author: binruan@chatlabs.com
18891
18907
  * @Date: 2023-10-31 10:56:01
18892
18908
  * @LastEditors: binruan@chatlabs.com
18893
- * @LastEditTime: 2024-10-23 15:07:29
18909
+ * @LastEditTime: 2024-12-12 14:48:31
18894
18910
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
18895
18911
  *
18896
18912
  */