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