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/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',
@@ -13555,7 +13539,7 @@ var settingRender$5 = [
13555
13539
  * @Author: binruan@chatlabs.com
13556
13540
  * @Date: 2023-12-26 16:11:34
13557
13541
  * @LastEditors: binruan@chatlabs.com
13558
- * @LastEditTime: 2025-01-17 18:55:14
13542
+ * @LastEditTime: 2024-10-11 18:22:21
13559
13543
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
13560
13544
  *
13561
13545
  */
@@ -13566,7 +13550,7 @@ const Navbar = ({ icon, styles, textStyle, onClose }) => {
13566
13550
  React.createElement("button", { className: 'clc-sxp-nav-left', role: 'button', "aria-label": 'back button', onClick: onClose },
13567
13551
  React.createElement("img", { src: icon, alt: 'back button' })),
13568
13552
  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: {
13569
- __html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : 'title'}`, textStyle)
13553
+ __html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
13570
13554
  } })));
13571
13555
  };
13572
13556
  var Navbar$1 = React.memo(Navbar);
@@ -15792,7 +15776,7 @@ const AniLink$1 = (_a) => {
15792
15776
  onClick === null || onClick === void 0 ? void 0 : onClick();
15793
15777
  }
15794
15778
  };
15795
- const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || 'Show More';
15779
+ const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情';
15796
15780
  const aniTimStyle = React.useMemo(() => {
15797
15781
  var _a, _b;
15798
15782
  const ani = event === null || event === void 0 ? void 0 : event.animation;
@@ -16239,7 +16223,7 @@ const AniLinkPopup$1 = (_a) => {
16239
16223
  onClick === null || onClick === void 0 ? void 0 : onClick();
16240
16224
  }
16241
16225
  };
16242
- const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || 'Show More';
16226
+ const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情';
16243
16227
  const aniTimStyle = React.useMemo(() => {
16244
16228
  const ani = event === null || event === void 0 ? void 0 : event.animation;
16245
16229
  if (ani) {
@@ -18902,7 +18886,7 @@ var index$1 = React.memo(DiyPortalPreview);
18902
18886
  * @Author: binruan@chatlabs.com
18903
18887
  * @Date: 2023-10-31 10:56:01
18904
18888
  * @LastEditors: binruan@chatlabs.com
18905
- * @LastEditTime: 2024-12-12 14:48:31
18889
+ * @LastEditTime: 2024-10-23 15:07:29
18906
18890
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
18907
18891
  *
18908
18892
  */