pb-sxp-ui 1.15.9 → 1.15.10

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
@@ -13356,7 +13356,7 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
13356
13356
  * @Author: binruan@chatlabs.com
13357
13357
  * @Date: 2024-04-07 14:07:12
13358
13358
  * @LastEditors: binruan@chatlabs.com
13359
- * @LastEditTime: 2025-02-17 17:16:56
13359
+ * @LastEditTime: 2025-02-28 09:49:43
13360
13360
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\settingRender.tsx
13361
13361
  *
13362
13362
  */
@@ -13383,7 +13383,7 @@ var settingRender$7 = [
13383
13383
  {
13384
13384
  type: 'HashTagFixedSize',
13385
13385
  label: '固定宽高',
13386
- name: ['props', 'openFixedSize']
13386
+ name: ['props']
13387
13387
  }
13388
13388
  ]
13389
13389
  },
@@ -15191,7 +15191,7 @@ var img$6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeA
15191
15191
 
15192
15192
  const WaterfallFlowItem = (props) => {
15193
15193
  var _a;
15194
- const { rec, index, list, reportTagsView, textStyles, space, openFixedSize } = props;
15194
+ const { rec, index, list, reportTagsView, textStyles, space, openFixedSize, fixedSizeRatio } = props;
15195
15195
  const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
15196
15196
  const [showVideo, setShowVideo] = useState(false);
15197
15197
  const imgDom = useRef(null);
@@ -15300,11 +15300,11 @@ const WaterfallFlowItem = (props) => {
15300
15300
  }, 0);
15301
15301
  };
15302
15302
  return (React.createElement("div", { ref: ref, className: 'list-content-listItem', key: index, onClick: handleClickToDetail, style: { marginBottom: space } },
15303
- React.createElement("div", { className: (openFixedSize === null || openFixedSize === void 0 ? void 0 : openFixedSize.ratio) === '1' ? 'list-content-listItem-picture' : 'list-content-listItem-picture1609' },
15303
+ React.createElement("div", { className: fixedSizeRatio === '1' ? 'list-content-listItem-picture' : 'list-content-listItem-picture1609' },
15304
15304
  showVideo && (React.createElement("div", { style: { display: 'none' } },
15305
15305
  React.createElement("video", { ref: videoDom, crossOrigin: 'anonymous', className: 'list-content-listItem-picture-img' }),
15306
15306
  React.createElement("canvas", { ref: canvasRef }))),
15307
- 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 })),
15307
+ React.createElement(FormatImage$1, { loading: 'lazy', className: fixedSizeRatio === '1' ? 'list-content-listItem-picture-img' : 'list-content-listItem-picture1609-img', ref: imgDom })),
15308
15308
  React.createElement("div", { className: 'list-content-listItem-info' },
15309
15309
  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: {
15310
15310
  __html: setFontForText(title, textStyles === null || textStyles === void 0 ? void 0 : textStyles.title)
@@ -15415,12 +15415,12 @@ function WaterfallList(_a) {
15415
15415
  * @Author: binruan@chatlabs.com
15416
15416
  * @Date: 2024-01-10 10:58:24
15417
15417
  * @LastEditors: binruan@chatlabs.com
15418
- * @LastEditTime: 2025-02-17 16:25:30
15418
+ * @LastEditTime: 2025-02-28 10:00:31
15419
15419
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
15420
15420
  *
15421
15421
  */
15422
15422
  const WaterFall = (props) => {
15423
- var _a, _b;
15423
+ var _a;
15424
15424
  const { waterFallData, setOpenHashtag, openHashtag, swiperRef, setWaterFallData, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, setCacheRtcList, setIsFromHashtag, isFromHashtag, bffEventReport, themeTag, selectTag, bffFbReport } = useSxpDataSource();
15425
15425
  const { backMainFeed } = useEventReport();
15426
15426
  const modalEleRef = useRef(null);
@@ -15509,7 +15509,7 @@ const WaterFall = (props) => {
15509
15509
  display: openHashtag ? 'block' : 'none'
15510
15510
  } },
15511
15511
  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 }),
15512
- ((_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);
15512
+ (props === null || props === void 0 ? void 0 : props.openFixedSize) || (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);
15513
15513
  };
15514
15514
  var WaterFall$1 = memo(WaterFall);
15515
15515
 
@@ -15517,7 +15517,7 @@ var WaterFall$1 = memo(WaterFall);
15517
15517
  * @Author: binruan@chatlabs.com
15518
15518
  * @Date: 2024-01-15 19:03:09
15519
15519
  * @LastEditors: binruan@chatlabs.com
15520
- * @LastEditTime: 2025-02-17 16:24:14
15520
+ * @LastEditTime: 2025-02-28 09:59:36
15521
15521
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\index.tsx
15522
15522
  *
15523
15523
  */
@@ -15590,7 +15590,8 @@ const HashTag = createMaterial(HashTagComponent, {
15590
15590
  paddingRight: 20,
15591
15591
  paddingBottom: 20
15592
15592
  },
15593
- openFixedSize: { open: true, ratio: '1' }
15593
+ openFixedSize: true,
15594
+ fixedSizeRatio: '1'
15594
15595
  }
15595
15596
  },
15596
15597
  w: 100,