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.js CHANGED
@@ -11939,7 +11939,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
11939
11939
  * @Author: binruan@chatlabs.com
11940
11940
  * @Date: 2023-10-27 14:06:35
11941
11941
  * @LastEditors: binruan@chatlabs.com
11942
- * @LastEditTime: 2024-12-12 15:12:57
11942
+ * @LastEditTime: 2024-08-08 17:32:11
11943
11943
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
11944
11944
  *
11945
11945
  */
@@ -11953,32 +11953,16 @@ var settingRender$8 = [
11953
11953
  name: ['style', 'backgroundColor']
11954
11954
  }
11955
11955
  ]
11956
- },
11957
- {
11958
- title: 'iframe',
11959
- child: [
11960
- {
11961
- type: 'TextArea',
11962
- label: 'url',
11963
- name: ['props', 'iframe', 'src']
11964
- },
11965
- {
11966
- type: 'TextArea',
11967
- label: 'allow',
11968
- name: ['props', 'iframe', 'allow']
11969
- }
11970
- ]
11971
11956
  }
11972
11957
  ];
11973
11958
 
11974
11959
  const Iframe$1 = (_a) => {
11975
11960
  var _b, _c;
11976
- 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"]);
11961
+ 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"]);
11977
11962
  const { popupDetailData } = useSxpDataSource();
11978
- const { src, allow } = iframe || {};
11979
- 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);
11980
- return (React.createElement("div", Object.assign({ className: `${css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
11981
- React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
11963
+ 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;
11964
+ return (React.createElement("div", Object.assign({ className: `${css(Object.assign({}, style))}` }, props),
11965
+ React.createElement("iframe", { src: iframeUrl, style: {
11982
11966
  width: '100%',
11983
11967
  height: 'calc(100% - 50px)',
11984
11968
  marginTop: '50px',
@@ -18883,7 +18867,7 @@ var index$1 = memo(DiyPortalPreview);
18883
18867
  * @Author: binruan@chatlabs.com
18884
18868
  * @Date: 2023-10-31 10:56:01
18885
18869
  * @LastEditors: binruan@chatlabs.com
18886
- * @LastEditTime: 2024-12-12 14:48:31
18870
+ * @LastEditTime: 2024-10-23 15:07:29
18887
18871
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
18888
18872
  *
18889
18873
  */