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.js CHANGED
@@ -11981,7 +11981,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
11981
11981
  * @Author: binruan@chatlabs.com
11982
11982
  * @Date: 2023-10-27 14:06:35
11983
11983
  * @LastEditors: binruan@chatlabs.com
11984
- * @LastEditTime: 2024-12-12 15:12:57
11984
+ * @LastEditTime: 2024-08-08 17:32:11
11985
11985
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
11986
11986
  *
11987
11987
  */
@@ -11995,32 +11995,16 @@ var settingRender$8 = [
11995
11995
  name: ['style', 'backgroundColor']
11996
11996
  }
11997
11997
  ]
11998
- },
11999
- {
12000
- title: 'iframe',
12001
- child: [
12002
- {
12003
- type: 'TextArea',
12004
- label: 'url',
12005
- name: ['props', 'iframe', 'src']
12006
- },
12007
- {
12008
- type: 'TextArea',
12009
- label: 'allow',
12010
- name: ['props', 'iframe', 'allow']
12011
- }
12012
- ]
12013
11998
  }
12014
11999
  ];
12015
12000
 
12016
12001
  const Iframe$1 = (_a) => {
12017
12002
  var _b, _c;
12018
- 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"]);
12003
+ 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"]);
12019
12004
  const { popupDetailData } = useSxpDataSource();
12020
- const { src, allow } = iframe || {};
12021
- 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);
12022
- return (React.createElement("div", Object.assign({ className: `${css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
12023
- React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
12005
+ 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;
12006
+ return (React.createElement("div", Object.assign({ className: `${css(Object.assign({}, style))}` }, props),
12007
+ React.createElement("iframe", { src: iframeUrl, style: {
12024
12008
  width: '100%',
12025
12009
  height: 'calc(100% - 50px)',
12026
12010
  marginTop: '50px',
@@ -13533,7 +13517,7 @@ var settingRender$5 = [
13533
13517
  * @Author: binruan@chatlabs.com
13534
13518
  * @Date: 2023-12-26 16:11:34
13535
13519
  * @LastEditors: binruan@chatlabs.com
13536
- * @LastEditTime: 2025-01-17 18:55:14
13520
+ * @LastEditTime: 2024-10-11 18:22:21
13537
13521
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
13538
13522
  *
13539
13523
  */
@@ -13544,7 +13528,7 @@ const Navbar = ({ icon, styles, textStyle, onClose }) => {
13544
13528
  React.createElement("button", { className: 'clc-sxp-nav-left', role: 'button', "aria-label": 'back button', onClick: onClose },
13545
13529
  React.createElement("img", { src: icon, alt: 'back button' })),
13546
13530
  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: {
13547
- __html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : 'title'}`, textStyle)
13531
+ __html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
13548
13532
  } })));
13549
13533
  };
13550
13534
  var Navbar$1 = memo(Navbar);
@@ -15770,7 +15754,7 @@ const AniLink$1 = (_a) => {
15770
15754
  onClick === null || onClick === void 0 ? void 0 : onClick();
15771
15755
  }
15772
15756
  };
15773
- const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || 'Show More';
15757
+ const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情';
15774
15758
  const aniTimStyle = useMemo(() => {
15775
15759
  var _a, _b;
15776
15760
  const ani = event === null || event === void 0 ? void 0 : event.animation;
@@ -16217,7 +16201,7 @@ const AniLinkPopup$1 = (_a) => {
16217
16201
  onClick === null || onClick === void 0 ? void 0 : onClick();
16218
16202
  }
16219
16203
  };
16220
- const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || 'Show More';
16204
+ const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情';
16221
16205
  const aniTimStyle = useMemo(() => {
16222
16206
  const ani = event === null || event === void 0 ? void 0 : event.animation;
16223
16207
  if (ani) {
@@ -18880,7 +18864,7 @@ var index$1 = memo(DiyPortalPreview);
18880
18864
  * @Author: binruan@chatlabs.com
18881
18865
  * @Date: 2023-10-31 10:56:01
18882
18866
  * @LastEditors: binruan@chatlabs.com
18883
- * @LastEditTime: 2024-12-12 14:48:31
18867
+ * @LastEditTime: 2024-10-23 15:07:29
18884
18868
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
18885
18869
  *
18886
18870
  */