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/pb-ui.js CHANGED
@@ -11954,7 +11954,7 @@ Made in Italy` })));
11954
11954
  * @Author: binruan@chatlabs.com
11955
11955
  * @Date: 2023-10-27 14:06:35
11956
11956
  * @LastEditors: binruan@chatlabs.com
11957
- * @LastEditTime: 2024-12-12 15:12:57
11957
+ * @LastEditTime: 2024-08-08 17:32:11
11958
11958
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
11959
11959
  *
11960
11960
  */
@@ -11968,32 +11968,16 @@ Made in Italy` })));
11968
11968
  name: ['style', 'backgroundColor']
11969
11969
  }
11970
11970
  ]
11971
- },
11972
- {
11973
- title: 'iframe',
11974
- child: [
11975
- {
11976
- type: 'TextArea',
11977
- label: 'url',
11978
- name: ['props', 'iframe', 'src']
11979
- },
11980
- {
11981
- type: 'TextArea',
11982
- label: 'allow',
11983
- name: ['props', 'iframe', 'allow']
11984
- }
11985
- ]
11986
11971
  }
11987
11972
  ];
11988
11973
 
11989
11974
  const Iframe$1 = (_a) => {
11990
11975
  var _b, _c;
11991
- 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"]);
11976
+ 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"]);
11992
11977
  const { popupDetailData } = useSxpDataSource();
11993
- const { src, allow } = iframe || {};
11994
- 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);
11995
- return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
11996
- React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
11978
+ 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;
11979
+ return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign({}, style))}` }, props),
11980
+ React.createElement("iframe", { src: iframeUrl, style: {
11997
11981
  width: '100%',
11998
11982
  height: 'calc(100% - 50px)',
11999
11983
  marginTop: '50px',
@@ -18898,7 +18882,7 @@ Made in Italy` })));
18898
18882
  * @Author: binruan@chatlabs.com
18899
18883
  * @Date: 2023-10-31 10:56:01
18900
18884
  * @LastEditors: binruan@chatlabs.com
18901
- * @LastEditTime: 2024-12-12 14:48:31
18885
+ * @LastEditTime: 2024-10-23 15:07:29
18902
18886
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
18903
18887
  *
18904
18888
  */