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/pb-ui.js CHANGED
@@ -11977,7 +11977,7 @@ Made in Italy` })));
11977
11977
  * @Author: binruan@chatlabs.com
11978
11978
  * @Date: 2023-10-27 14:06:35
11979
11979
  * @LastEditors: binruan@chatlabs.com
11980
- * @LastEditTime: 2024-08-08 17:32:11
11980
+ * @LastEditTime: 2024-12-12 15:12:57
11981
11981
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
11982
11982
  *
11983
11983
  */
@@ -11991,16 +11991,32 @@ Made in Italy` })));
11991
11991
  name: ['style', 'backgroundColor']
11992
11992
  }
11993
11993
  ]
11994
+ },
11995
+ {
11996
+ title: 'iframe',
11997
+ child: [
11998
+ {
11999
+ type: 'TextArea',
12000
+ label: 'url',
12001
+ name: ['props', 'iframe', 'src']
12002
+ },
12003
+ {
12004
+ type: 'TextArea',
12005
+ label: 'allow',
12006
+ name: ['props', 'iframe', 'allow']
12007
+ }
12008
+ ]
11994
12009
  }
11995
12010
  ];
11996
12011
 
11997
12012
  const Iframe$1 = (_a) => {
11998
12013
  var _b, _c;
11999
- 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"]);
12014
+ 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"]);
12000
12015
  const { popupDetailData } = useSxpDataSource();
12001
- 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;
12002
- return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign({}, style))}` }, props),
12003
- React.createElement("iframe", { src: iframeUrl, style: {
12016
+ const { src, allow } = iframe || {};
12017
+ 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);
12018
+ return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
12019
+ React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
12004
12020
  width: '100%',
12005
12021
  height: 'calc(100% - 50px)',
12006
12022
  marginTop: '50px',
@@ -18905,7 +18921,7 @@ Made in Italy` })));
18905
18921
  * @Author: binruan@chatlabs.com
18906
18922
  * @Date: 2023-10-31 10:56:01
18907
18923
  * @LastEditors: binruan@chatlabs.com
18908
- * @LastEditTime: 2024-10-23 15:07:29
18924
+ * @LastEditTime: 2024-12-12 14:48:31
18909
18925
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
18910
18926
  *
18911
18927
  */