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