pb-sxp-ui 14.0.7 → 15.0.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
@@ -13330,7 +13330,7 @@ Made in Italy` })));
13330
13330
  * @Author: binruan@chatlabs.com
13331
13331
  * @Date: 2024-04-07 14:07:12
13332
13332
  * @LastEditors: binruan@chatlabs.com
13333
- * @LastEditTime: 2024-08-22 10:14:36
13333
+ * @LastEditTime: 2025-02-17 17:16:56
13334
13334
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\settingRender.tsx
13335
13335
  *
13336
13336
  */
@@ -13355,10 +13355,9 @@ Made in Italy` })));
13355
13355
  addonAfter: 'px'
13356
13356
  },
13357
13357
  {
13358
- type: 'Switch',
13358
+ type: 'HashTagFixedSize',
13359
13359
  label: '固定宽高',
13360
- name: ['props', 'openFixedSize'],
13361
- initialValue: true
13360
+ name: ['props', 'openFixedSize']
13362
13361
  }
13363
13362
  ]
13364
13363
  },
@@ -15166,7 +15165,7 @@ Made in Italy` })));
15166
15165
 
15167
15166
  const WaterfallFlowItem = (props) => {
15168
15167
  var _a;
15169
- const { rec, index, list, reportTagsView, textStyles, space } = props;
15168
+ const { rec, index, list, reportTagsView, textStyles, space, openFixedSize } = props;
15170
15169
  const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
15171
15170
  const [showVideo, setShowVideo] = React.useState(false);
15172
15171
  const imgDom = React.useRef(null);
@@ -15275,11 +15274,11 @@ Made in Italy` })));
15275
15274
  }, 0);
15276
15275
  };
15277
15276
  return (React.createElement("div", { ref: ref, className: 'list-content-listItem', key: index, onClick: handleClickToDetail, style: { marginBottom: space } },
15278
- React.createElement("div", { className: 'list-content-listItem-picture' },
15277
+ React.createElement("div", { className: (openFixedSize === null || openFixedSize === void 0 ? void 0 : openFixedSize.ratio) === '1' ? 'list-content-listItem-picture' : 'list-content-listItem-picture1609' },
15279
15278
  showVideo && (React.createElement("div", { style: { display: 'none' } },
15280
15279
  React.createElement("video", { ref: videoDom, crossOrigin: 'anonymous', className: 'list-content-listItem-picture-img' }),
15281
15280
  React.createElement("canvas", { ref: canvasRef }))),
15282
- React.createElement(FormatImage$1, { loading: 'lazy', className: 'list-content-listItem-picture-img', ref: imgDom })),
15281
+ React.createElement(FormatImage$1, { loading: 'lazy', className: (openFixedSize === null || openFixedSize === void 0 ? void 0 : openFixedSize.ratio) === '1' ? 'list-content-listItem-picture-img' : 'list-content-listItem-picture1609-img', ref: imgDom })),
15283
15282
  React.createElement("div", { className: 'list-content-listItem-info' },
15284
15283
  React.createElement("div", { className: `${'list-content-listItem-info-title'} ${priceText ? 'list-content-listItem-info-nowrap' : ''}`, style: textStyles === null || textStyles === void 0 ? void 0 : textStyles.title, dangerouslySetInnerHTML: {
15285
15284
  __html: setFontForText(title, textStyles === null || textStyles === void 0 ? void 0 : textStyles.title)
@@ -15390,12 +15389,12 @@ Made in Italy` })));
15390
15389
  * @Author: binruan@chatlabs.com
15391
15390
  * @Date: 2024-01-10 10:58:24
15392
15391
  * @LastEditors: binruan@chatlabs.com
15393
- * @LastEditTime: 2024-12-09 11:18:32
15392
+ * @LastEditTime: 2025-02-17 16:25:30
15394
15393
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
15395
15394
  *
15396
15395
  */
15397
15396
  const WaterFall = (props) => {
15398
- var _a;
15397
+ var _a, _b;
15399
15398
  const { waterFallData, setOpenHashtag, openHashtag, swiperRef, setWaterFallData, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, setCacheRtcList, setIsFromHashtag, isFromHashtag, bffEventReport, themeTag, selectTag, bffFbReport } = useSxpDataSource();
15400
15399
  const { backMainFeed } = useEventReport();
15401
15400
  const modalEleRef = React.useRef(null);
@@ -15484,7 +15483,7 @@ Made in Italy` })));
15484
15483
  display: openHashtag ? 'block' : 'none'
15485
15484
  } },
15486
15485
  React.createElement(Navbar$1, { icon: img$6, styles: { top: '32px' }, textStyle: (_a = props === null || props === void 0 ? void 0 : props.textStyles) === null || _a === void 0 ? void 0 : _a.hashTagTitle, onClose: handleClose }),
15487
- (props === null || props === void 0 ? void 0 : props.openFixedSize) === true || (props === null || props === void 0 ? void 0 : props.openFixedSize) === undefined ? (React.createElement(WaterfallList, Object.assign({ key: waterFallData, reportTagsView: reportTagsView }, props))) : (React.createElement(WaterfallList$1, Object.assign({ key: waterFallData, reportTagsView: reportTagsView }, props)))), modalEleRef.current);
15486
+ ((_b = props === null || props === void 0 ? void 0 : props.openFixedSize) === null || _b === void 0 ? void 0 : _b.open) === true || (props === null || props === void 0 ? void 0 : props.openFixedSize) === undefined ? (React.createElement(WaterfallList, Object.assign({ key: waterFallData, reportTagsView: reportTagsView }, props))) : (React.createElement(WaterfallList$1, Object.assign({ key: waterFallData, reportTagsView: reportTagsView }, props)))), modalEleRef.current);
15488
15487
  };
15489
15488
  var WaterFall$1 = React.memo(WaterFall);
15490
15489
 
@@ -15492,7 +15491,7 @@ Made in Italy` })));
15492
15491
  * @Author: binruan@chatlabs.com
15493
15492
  * @Date: 2024-01-15 19:03:09
15494
15493
  * @LastEditors: binruan@chatlabs.com
15495
- * @LastEditTime: 2024-08-22 10:15:23
15494
+ * @LastEditTime: 2025-02-17 16:24:14
15496
15495
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\index.tsx
15497
15496
  *
15498
15497
  */
@@ -15505,7 +15504,7 @@ Made in Italy` })));
15505
15504
  * @Author: binruan@chatlabs.com
15506
15505
  * @Date: 2023-07-28 18:29:57
15507
15506
  * @LastEditors: binruan@chatlabs.com
15508
- * @LastEditTime: 2024-09-18 10:48:44
15507
+ * @LastEditTime: 2025-02-17 17:45:40
15509
15508
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
15510
15509
  *
15511
15510
  */
@@ -15564,7 +15563,8 @@ Made in Italy` })));
15564
15563
  paddingLeft: 20,
15565
15564
  paddingRight: 20,
15566
15565
  paddingBottom: 20
15567
- }
15566
+ },
15567
+ openFixedSize: { open: true, ratio: '1' }
15568
15568
  }
15569
15569
  },
15570
15570
  w: 100,