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.cjs CHANGED
@@ -13378,7 +13378,7 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
13378
13378
  * @Author: binruan@chatlabs.com
13379
13379
  * @Date: 2024-04-07 14:07:12
13380
13380
  * @LastEditors: binruan@chatlabs.com
13381
- * @LastEditTime: 2025-02-17 17:16:56
13381
+ * @LastEditTime: 2025-02-28 09:49:43
13382
13382
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\settingRender.tsx
13383
13383
  *
13384
13384
  */
@@ -13405,7 +13405,7 @@ var settingRender$7 = [
13405
13405
  {
13406
13406
  type: 'HashTagFixedSize',
13407
13407
  label: '固定宽高',
13408
- name: ['props', 'openFixedSize']
13408
+ name: ['props']
13409
13409
  }
13410
13410
  ]
13411
13411
  },
@@ -15213,7 +15213,7 @@ var img$6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeA
15213
15213
 
15214
15214
  const WaterfallFlowItem = (props) => {
15215
15215
  var _a;
15216
- const { rec, index, list, reportTagsView, textStyles, space, openFixedSize } = props;
15216
+ const { rec, index, list, reportTagsView, textStyles, space, openFixedSize, fixedSizeRatio } = props;
15217
15217
  const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
15218
15218
  const [showVideo, setShowVideo] = React.useState(false);
15219
15219
  const imgDom = React.useRef(null);
@@ -15322,11 +15322,11 @@ const WaterfallFlowItem = (props) => {
15322
15322
  }, 0);
15323
15323
  };
15324
15324
  return (React.createElement("div", { ref: ref, className: 'list-content-listItem', key: index, onClick: handleClickToDetail, style: { marginBottom: space } },
15325
- React.createElement("div", { className: (openFixedSize === null || openFixedSize === void 0 ? void 0 : openFixedSize.ratio) === '1' ? 'list-content-listItem-picture' : 'list-content-listItem-picture1609' },
15325
+ React.createElement("div", { className: fixedSizeRatio === '1' ? 'list-content-listItem-picture' : 'list-content-listItem-picture1609' },
15326
15326
  showVideo && (React.createElement("div", { style: { display: 'none' } },
15327
15327
  React.createElement("video", { ref: videoDom, crossOrigin: 'anonymous', className: 'list-content-listItem-picture-img' }),
15328
15328
  React.createElement("canvas", { ref: canvasRef }))),
15329
- 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 })),
15329
+ React.createElement(FormatImage$1, { loading: 'lazy', className: fixedSizeRatio === '1' ? 'list-content-listItem-picture-img' : 'list-content-listItem-picture1609-img', ref: imgDom })),
15330
15330
  React.createElement("div", { className: 'list-content-listItem-info' },
15331
15331
  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: {
15332
15332
  __html: setFontForText(title, textStyles === null || textStyles === void 0 ? void 0 : textStyles.title)
@@ -15437,12 +15437,12 @@ function WaterfallList(_a) {
15437
15437
  * @Author: binruan@chatlabs.com
15438
15438
  * @Date: 2024-01-10 10:58:24
15439
15439
  * @LastEditors: binruan@chatlabs.com
15440
- * @LastEditTime: 2025-02-17 16:25:30
15440
+ * @LastEditTime: 2025-02-28 10:00:31
15441
15441
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
15442
15442
  *
15443
15443
  */
15444
15444
  const WaterFall = (props) => {
15445
- var _a, _b;
15445
+ var _a;
15446
15446
  const { waterFallData, setOpenHashtag, openHashtag, swiperRef, setWaterFallData, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, setCacheRtcList, setIsFromHashtag, isFromHashtag, bffEventReport, themeTag, selectTag, bffFbReport } = useSxpDataSource();
15447
15447
  const { backMainFeed } = useEventReport();
15448
15448
  const modalEleRef = React.useRef(null);
@@ -15531,7 +15531,7 @@ const WaterFall = (props) => {
15531
15531
  display: openHashtag ? 'block' : 'none'
15532
15532
  } },
15533
15533
  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 }),
15534
- ((_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);
15534
+ (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);
15535
15535
  };
15536
15536
  var WaterFall$1 = React.memo(WaterFall);
15537
15537
 
@@ -15539,7 +15539,7 @@ var WaterFall$1 = React.memo(WaterFall);
15539
15539
  * @Author: binruan@chatlabs.com
15540
15540
  * @Date: 2024-01-15 19:03:09
15541
15541
  * @LastEditors: binruan@chatlabs.com
15542
- * @LastEditTime: 2025-02-17 16:24:14
15542
+ * @LastEditTime: 2025-02-28 09:59:36
15543
15543
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\index.tsx
15544
15544
  *
15545
15545
  */
@@ -15612,7 +15612,8 @@ const HashTag = createMaterial(HashTagComponent, {
15612
15612
  paddingRight: 20,
15613
15613
  paddingBottom: 20
15614
15614
  },
15615
- openFixedSize: { open: true, ratio: '1' }
15615
+ openFixedSize: true,
15616
+ fixedSizeRatio: '1'
15616
15617
  }
15617
15618
  },
15618
15619
  w: 100,