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.cjs CHANGED
@@ -12003,7 +12003,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
12003
12003
  * @Author: binruan@chatlabs.com
12004
12004
  * @Date: 2023-10-27 14:06:35
12005
12005
  * @LastEditors: binruan@chatlabs.com
12006
- * @LastEditTime: 2024-12-12 15:12:57
12006
+ * @LastEditTime: 2024-08-08 17:32:11
12007
12007
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
12008
12008
  *
12009
12009
  */
@@ -12017,32 +12017,16 @@ var settingRender$8 = [
12017
12017
  name: ['style', 'backgroundColor']
12018
12018
  }
12019
12019
  ]
12020
- },
12021
- {
12022
- title: 'iframe',
12023
- child: [
12024
- {
12025
- type: 'TextArea',
12026
- label: 'url',
12027
- name: ['props', 'iframe', 'src']
12028
- },
12029
- {
12030
- type: 'TextArea',
12031
- label: 'allow',
12032
- name: ['props', 'iframe', 'allow']
12033
- }
12034
- ]
12035
12020
  }
12036
12021
  ];
12037
12022
 
12038
12023
  const Iframe$1 = (_a) => {
12039
12024
  var _b, _c;
12040
- 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"]);
12025
+ 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"]);
12041
12026
  const { popupDetailData } = useSxpDataSource();
12042
- const { src, allow } = iframe || {};
12043
- 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);
12044
- return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
12045
- React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
12027
+ 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;
12028
+ return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign({}, style))}` }, props),
12029
+ React.createElement("iframe", { src: iframeUrl, style: {
12046
12030
  width: '100%',
12047
12031
  height: 'calc(100% - 50px)',
12048
12032
  marginTop: '50px',
@@ -18947,7 +18931,7 @@ var index$1 = React.memo(DiyPortalPreview);
18947
18931
  * @Author: binruan@chatlabs.com
18948
18932
  * @Date: 2023-10-31 10:56:01
18949
18933
  * @LastEditors: binruan@chatlabs.com
18950
- * @LastEditTime: 2024-12-12 14:48:31
18934
+ * @LastEditTime: 2024-10-23 15:07:29
18951
18935
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
18952
18936
  *
18953
18937
  */