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/pb-ui.js CHANGED
@@ -12018,7 +12018,7 @@ Made in Italy` })));
12018
12018
  * @Author: binruan@chatlabs.com
12019
12019
  * @Date: 2023-10-27 14:06:35
12020
12020
  * @LastEditors: binruan@chatlabs.com
12021
- * @LastEditTime: 2024-08-08 17:32:11
12021
+ * @LastEditTime: 2024-12-12 15:12:57
12022
12022
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
12023
12023
  *
12024
12024
  */
@@ -12032,16 +12032,32 @@ Made in Italy` })));
12032
12032
  name: ['style', 'backgroundColor']
12033
12033
  }
12034
12034
  ]
12035
+ },
12036
+ {
12037
+ title: 'iframe',
12038
+ child: [
12039
+ {
12040
+ type: 'TextArea',
12041
+ label: 'url',
12042
+ name: ['props', 'iframe', 'src']
12043
+ },
12044
+ {
12045
+ type: 'TextArea',
12046
+ label: 'allow',
12047
+ name: ['props', 'iframe', 'allow']
12048
+ }
12049
+ ]
12035
12050
  }
12036
12051
  ];
12037
12052
 
12038
12053
  const Iframe$1 = (_a) => {
12039
12054
  var _b, _c;
12040
- 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"]);
12055
+ 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"]);
12041
12056
  const { popupDetailData } = useSxpDataSource();
12042
- 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;
12043
- return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign({}, style))}` }, props),
12044
- React.createElement("iframe", { src: iframeUrl, style: {
12057
+ const { src, allow } = iframe || {};
12058
+ 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);
12059
+ return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
12060
+ React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
12045
12061
  width: '100%',
12046
12062
  height: 'calc(100% - 50px)',
12047
12063
  marginTop: '50px',
@@ -18946,7 +18962,7 @@ Made in Italy` })));
18946
18962
  * @Author: binruan@chatlabs.com
18947
18963
  * @Date: 2023-10-31 10:56:01
18948
18964
  * @LastEditors: binruan@chatlabs.com
18949
- * @LastEditTime: 2024-10-23 15:07:29
18965
+ * @LastEditTime: 2024-12-12 14:48:31
18950
18966
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
18951
18967
  *
18952
18968
  */