pb-sxp-ui 1.15.1 → 1.15.2

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
@@ -11996,7 +11996,7 @@ Made in Italy` })));
11996
11996
  * @Author: binruan@chatlabs.com
11997
11997
  * @Date: 2023-10-27 14:06:35
11998
11998
  * @LastEditors: binruan@chatlabs.com
11999
- * @LastEditTime: 2024-12-12 15:12:57
11999
+ * @LastEditTime: 2024-08-08 17:32:11
12000
12000
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
12001
12001
  *
12002
12002
  */
@@ -12010,32 +12010,16 @@ Made in Italy` })));
12010
12010
  name: ['style', 'backgroundColor']
12011
12011
  }
12012
12012
  ]
12013
- },
12014
- {
12015
- title: 'iframe',
12016
- child: [
12017
- {
12018
- type: 'TextArea',
12019
- label: 'url',
12020
- name: ['props', 'iframe', 'src']
12021
- },
12022
- {
12023
- type: 'TextArea',
12024
- label: 'allow',
12025
- name: ['props', 'iframe', 'allow']
12026
- }
12027
- ]
12028
12013
  }
12029
12014
  ];
12030
12015
 
12031
12016
  const Iframe$1 = (_a) => {
12032
12017
  var _b, _c;
12033
- 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"]);
12018
+ 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"]);
12034
12019
  const { popupDetailData } = useSxpDataSource();
12035
- const { src, allow } = iframe || {};
12036
- 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);
12037
- return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
12038
- React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
12020
+ 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;
12021
+ return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign({}, style))}` }, props),
12022
+ React.createElement("iframe", { src: iframeUrl, style: {
12039
12023
  width: '100%',
12040
12024
  height: 'calc(100% - 50px)',
12041
12025
  marginTop: '50px',
@@ -13548,7 +13532,7 @@ Made in Italy` })));
13548
13532
  * @Author: binruan@chatlabs.com
13549
13533
  * @Date: 2023-12-26 16:11:34
13550
13534
  * @LastEditors: binruan@chatlabs.com
13551
- * @LastEditTime: 2025-01-17 18:55:14
13535
+ * @LastEditTime: 2024-10-11 18:22:21
13552
13536
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
13553
13537
  *
13554
13538
  */
@@ -13559,7 +13543,7 @@ Made in Italy` })));
13559
13543
  React.createElement("button", { className: 'clc-sxp-nav-left', role: 'button', "aria-label": 'back button', onClick: onClose },
13560
13544
  React.createElement("img", { src: icon, alt: 'back button' })),
13561
13545
  React.createElement("div", { className: 'clc-sxp-nav-title', style: Object.assign(Object.assign({}, textStyle), { paddingLeft: (textStyle === null || textStyle === void 0 ? void 0 : textStyle.textAlign) === 'left' ? '35px' : 0 }), dangerouslySetInnerHTML: {
13562
- __html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : 'title'}`, textStyle)
13546
+ __html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
13563
13547
  } })));
13564
13548
  };
13565
13549
  var Navbar$1 = React.memo(Navbar);
@@ -15785,7 +15769,7 @@ Made in Italy` })));
15785
15769
  onClick === null || onClick === void 0 ? void 0 : onClick();
15786
15770
  }
15787
15771
  };
15788
- const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || 'Show More';
15772
+ const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情';
15789
15773
  const aniTimStyle = React.useMemo(() => {
15790
15774
  var _a, _b;
15791
15775
  const ani = event === null || event === void 0 ? void 0 : event.animation;
@@ -16232,7 +16216,7 @@ Made in Italy` })));
16232
16216
  onClick === null || onClick === void 0 ? void 0 : onClick();
16233
16217
  }
16234
16218
  };
16235
- const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || 'Show More';
16219
+ const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情';
16236
16220
  const aniTimStyle = React.useMemo(() => {
16237
16221
  const ani = event === null || event === void 0 ? void 0 : event.animation;
16238
16222
  if (ani) {
@@ -18895,7 +18879,7 @@ Made in Italy` })));
18895
18879
  * @Author: binruan@chatlabs.com
18896
18880
  * @Date: 2023-10-31 10:56:01
18897
18881
  * @LastEditors: binruan@chatlabs.com
18898
- * @LastEditTime: 2024-12-12 14:48:31
18882
+ * @LastEditTime: 2024-10-23 15:07:29
18899
18883
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
18900
18884
  *
18901
18885
  */