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/pb-ui.js
CHANGED
@@ -13371,7 +13371,7 @@ Made in Italy` })));
|
|
13371
13371
|
* @Author: binruan@chatlabs.com
|
13372
13372
|
* @Date: 2024-04-07 14:07:12
|
13373
13373
|
* @LastEditors: binruan@chatlabs.com
|
13374
|
-
* @LastEditTime: 2025-02-
|
13374
|
+
* @LastEditTime: 2025-02-28 09:49:43
|
13375
13375
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\settingRender.tsx
|
13376
13376
|
*
|
13377
13377
|
*/
|
@@ -13398,7 +13398,7 @@ Made in Italy` })));
|
|
13398
13398
|
{
|
13399
13399
|
type: 'HashTagFixedSize',
|
13400
13400
|
label: '固定宽高',
|
13401
|
-
name: ['props'
|
13401
|
+
name: ['props']
|
13402
13402
|
}
|
13403
13403
|
]
|
13404
13404
|
},
|
@@ -15206,7 +15206,7 @@ Made in Italy` })));
|
|
15206
15206
|
|
15207
15207
|
const WaterfallFlowItem = (props) => {
|
15208
15208
|
var _a;
|
15209
|
-
const { rec, index, list, reportTagsView, textStyles, space, openFixedSize } = props;
|
15209
|
+
const { rec, index, list, reportTagsView, textStyles, space, openFixedSize, fixedSizeRatio } = props;
|
15210
15210
|
const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
|
15211
15211
|
const [showVideo, setShowVideo] = React.useState(false);
|
15212
15212
|
const imgDom = React.useRef(null);
|
@@ -15315,11 +15315,11 @@ Made in Italy` })));
|
|
15315
15315
|
}, 0);
|
15316
15316
|
};
|
15317
15317
|
return (React.createElement("div", { ref: ref, className: 'list-content-listItem', key: index, onClick: handleClickToDetail, style: { marginBottom: space } },
|
15318
|
-
React.createElement("div", { className:
|
15318
|
+
React.createElement("div", { className: fixedSizeRatio === '1' ? 'list-content-listItem-picture' : 'list-content-listItem-picture1609' },
|
15319
15319
|
showVideo && (React.createElement("div", { style: { display: 'none' } },
|
15320
15320
|
React.createElement("video", { ref: videoDom, crossOrigin: 'anonymous', className: 'list-content-listItem-picture-img' }),
|
15321
15321
|
React.createElement("canvas", { ref: canvasRef }))),
|
15322
|
-
React.createElement(FormatImage$1, { loading: 'lazy', className:
|
15322
|
+
React.createElement(FormatImage$1, { loading: 'lazy', className: fixedSizeRatio === '1' ? 'list-content-listItem-picture-img' : 'list-content-listItem-picture1609-img', ref: imgDom })),
|
15323
15323
|
React.createElement("div", { className: 'list-content-listItem-info' },
|
15324
15324
|
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: {
|
15325
15325
|
__html: setFontForText(title, textStyles === null || textStyles === void 0 ? void 0 : textStyles.title)
|
@@ -15430,12 +15430,12 @@ Made in Italy` })));
|
|
15430
15430
|
* @Author: binruan@chatlabs.com
|
15431
15431
|
* @Date: 2024-01-10 10:58:24
|
15432
15432
|
* @LastEditors: binruan@chatlabs.com
|
15433
|
-
* @LastEditTime: 2025-02-
|
15433
|
+
* @LastEditTime: 2025-02-28 10:00:31
|
15434
15434
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
|
15435
15435
|
*
|
15436
15436
|
*/
|
15437
15437
|
const WaterFall = (props) => {
|
15438
|
-
var _a
|
15438
|
+
var _a;
|
15439
15439
|
const { waterFallData, setOpenHashtag, openHashtag, swiperRef, setWaterFallData, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, setCacheRtcList, setIsFromHashtag, isFromHashtag, bffEventReport, themeTag, selectTag, bffFbReport } = useSxpDataSource();
|
15440
15440
|
const { backMainFeed } = useEventReport();
|
15441
15441
|
const modalEleRef = React.useRef(null);
|
@@ -15524,7 +15524,7 @@ Made in Italy` })));
|
|
15524
15524
|
display: openHashtag ? 'block' : 'none'
|
15525
15525
|
} },
|
15526
15526
|
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 }),
|
15527
|
-
(
|
15527
|
+
(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);
|
15528
15528
|
};
|
15529
15529
|
var WaterFall$1 = React.memo(WaterFall);
|
15530
15530
|
|
@@ -15532,7 +15532,7 @@ Made in Italy` })));
|
|
15532
15532
|
* @Author: binruan@chatlabs.com
|
15533
15533
|
* @Date: 2024-01-15 19:03:09
|
15534
15534
|
* @LastEditors: binruan@chatlabs.com
|
15535
|
-
* @LastEditTime: 2025-02-
|
15535
|
+
* @LastEditTime: 2025-02-28 09:59:36
|
15536
15536
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\index.tsx
|
15537
15537
|
*
|
15538
15538
|
*/
|
@@ -15605,7 +15605,8 @@ Made in Italy` })));
|
|
15605
15605
|
paddingRight: 20,
|
15606
15606
|
paddingBottom: 20
|
15607
15607
|
},
|
15608
|
-
openFixedSize:
|
15608
|
+
openFixedSize: true,
|
15609
|
+
fixedSizeRatio: '1'
|
15609
15610
|
}
|
15610
15611
|
},
|
15611
15612
|
w: 100,
|