pb-sxp-ui 14.0.5 → 14.0.6

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
@@ -11996,7 +11996,7 @@ Made in Italy` })));
11996
11996
  * @Author: binruan@chatlabs.com
11997
11997
  * @Date: 2023-10-27 14:06:35
11998
11998
  * @LastEditors: binruan@chatlabs.com
11999
- * @LastEditTime: 2024-12-12 15:12:57
11999
+ * @LastEditTime: 2024-08-08 17:32:11
12000
12000
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
12001
12001
  *
12002
12002
  */
@@ -12010,32 +12010,16 @@ Made in Italy` })));
12010
12010
  name: ['style', 'backgroundColor']
12011
12011
  }
12012
12012
  ]
12013
- },
12014
- {
12015
- title: 'iframe',
12016
- child: [
12017
- {
12018
- type: 'TextArea',
12019
- label: 'url',
12020
- name: ['props', 'iframe', 'src']
12021
- },
12022
- {
12023
- type: 'TextArea',
12024
- label: 'allow',
12025
- name: ['props', 'iframe', 'allow']
12026
- }
12027
- ]
12028
12013
  }
12029
12014
  ];
12030
12015
 
12031
12016
  const Iframe$1 = (_a) => {
12032
12017
  var _b, _c;
12033
- 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"]);
12018
+ 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"]);
12034
12019
  const { popupDetailData } = useSxpDataSource();
12035
- const { src, allow } = iframe || {};
12036
- 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);
12037
- return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
12038
- React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
12020
+ 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;
12021
+ return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign({}, style))}` }, props),
12022
+ React.createElement("iframe", { src: iframeUrl, style: {
12039
12023
  width: '100%',
12040
12024
  height: 'calc(100% - 50px)',
12041
12025
  marginTop: '50px',
@@ -18940,7 +18924,7 @@ Made in Italy` })));
18940
18924
  * @Author: binruan@chatlabs.com
18941
18925
  * @Date: 2023-10-31 10:56:01
18942
18926
  * @LastEditors: binruan@chatlabs.com
18943
- * @LastEditTime: 2024-12-12 14:48:31
18927
+ * @LastEditTime: 2024-10-23 15:07:29
18944
18928
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
18945
18929
  *
18946
18930
  */