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 +11 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +6 -6
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +11 -10
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +6 -6
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/WaterFall/List.js +3 -3
- package/es/core/components/SxpPageRender/WaterFall/index.js +2 -2
- package/es/materials/sxp/HashTag/index.d.ts +2 -4
- package/es/materials/sxp/HashTag/material.js +2 -1
- package/es/materials/sxp/HashTag/settingRender.js +1 -1
- package/lib/core/components/SxpPageRender/WaterFall/List.js +3 -3
- package/lib/core/components/SxpPageRender/WaterFall/index.js +2 -2
- package/lib/materials/sxp/HashTag/index.d.ts +2 -4
- package/lib/materials/sxp/HashTag/material.js +2 -1
- package/lib/materials/sxp/HashTag/settingRender.js +1 -1
- package/package.json +1 -1
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-
|
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'
|
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:
|
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:
|
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-
|
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
|
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
|
-
(
|
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-
|
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:
|
15593
|
+
openFixedSize: true,
|
15594
|
+
fixedSizeRatio: '1'
|
15594
15595
|
}
|
15595
15596
|
},
|
15596
15597
|
w: 100,
|