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/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +13 -0
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +5 -5
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +5 -5
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +13 -13
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +5 -5
- 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 +4 -1
- package/es/materials/sxp/HashTag/material.js +2 -1
- package/es/materials/sxp/HashTag/settingRender.d.ts +0 -2
- package/es/materials/sxp/HashTag/settingRender.js +2 -3
- 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 +4 -1
- package/lib/materials/sxp/HashTag/material.js +2 -1
- package/lib/materials/sxp/HashTag/settingRender.d.ts +0 -2
- package/lib/materials/sxp/HashTag/settingRender.js +2 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -13337,7 +13337,7 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
|
|
13337
13337
|
* @Author: binruan@chatlabs.com
|
13338
13338
|
* @Date: 2024-04-07 14:07:12
|
13339
13339
|
* @LastEditors: binruan@chatlabs.com
|
13340
|
-
* @LastEditTime:
|
13340
|
+
* @LastEditTime: 2025-02-17 17:16:56
|
13341
13341
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\settingRender.tsx
|
13342
13342
|
*
|
13343
13343
|
*/
|
@@ -13362,10 +13362,9 @@ var settingRender$7 = [
|
|
13362
13362
|
addonAfter: 'px'
|
13363
13363
|
},
|
13364
13364
|
{
|
13365
|
-
type: '
|
13365
|
+
type: 'HashTagFixedSize',
|
13366
13366
|
label: '固定宽高',
|
13367
|
-
name: ['props', 'openFixedSize']
|
13368
|
-
initialValue: true
|
13367
|
+
name: ['props', 'openFixedSize']
|
13369
13368
|
}
|
13370
13369
|
]
|
13371
13370
|
},
|
@@ -15173,7 +15172,7 @@ var img$6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeA
|
|
15173
15172
|
|
15174
15173
|
const WaterfallFlowItem = (props) => {
|
15175
15174
|
var _a;
|
15176
|
-
const { rec, index, list, reportTagsView, textStyles, space } = props;
|
15175
|
+
const { rec, index, list, reportTagsView, textStyles, space, openFixedSize } = props;
|
15177
15176
|
const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
|
15178
15177
|
const [showVideo, setShowVideo] = React.useState(false);
|
15179
15178
|
const imgDom = React.useRef(null);
|
@@ -15282,11 +15281,11 @@ const WaterfallFlowItem = (props) => {
|
|
15282
15281
|
}, 0);
|
15283
15282
|
};
|
15284
15283
|
return (React.createElement("div", { ref: ref, className: 'list-content-listItem', key: index, onClick: handleClickToDetail, style: { marginBottom: space } },
|
15285
|
-
React.createElement("div", { className: 'list-content-listItem-picture' },
|
15284
|
+
React.createElement("div", { className: (openFixedSize === null || openFixedSize === void 0 ? void 0 : openFixedSize.ratio) === '1' ? 'list-content-listItem-picture' : 'list-content-listItem-picture1609' },
|
15286
15285
|
showVideo && (React.createElement("div", { style: { display: 'none' } },
|
15287
15286
|
React.createElement("video", { ref: videoDom, crossOrigin: 'anonymous', className: 'list-content-listItem-picture-img' }),
|
15288
15287
|
React.createElement("canvas", { ref: canvasRef }))),
|
15289
|
-
React.createElement(FormatImage$1, { loading: 'lazy', className: 'list-content-listItem-picture-img', ref: imgDom })),
|
15288
|
+
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 })),
|
15290
15289
|
React.createElement("div", { className: 'list-content-listItem-info' },
|
15291
15290
|
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: {
|
15292
15291
|
__html: setFontForText(title, textStyles === null || textStyles === void 0 ? void 0 : textStyles.title)
|
@@ -15397,12 +15396,12 @@ function WaterfallList(_a) {
|
|
15397
15396
|
* @Author: binruan@chatlabs.com
|
15398
15397
|
* @Date: 2024-01-10 10:58:24
|
15399
15398
|
* @LastEditors: binruan@chatlabs.com
|
15400
|
-
* @LastEditTime:
|
15399
|
+
* @LastEditTime: 2025-02-17 16:25:30
|
15401
15400
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
|
15402
15401
|
*
|
15403
15402
|
*/
|
15404
15403
|
const WaterFall = (props) => {
|
15405
|
-
var _a;
|
15404
|
+
var _a, _b;
|
15406
15405
|
const { waterFallData, setOpenHashtag, openHashtag, swiperRef, setWaterFallData, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, setCacheRtcList, setIsFromHashtag, isFromHashtag, bffEventReport, themeTag, selectTag, bffFbReport } = useSxpDataSource();
|
15407
15406
|
const { backMainFeed } = useEventReport();
|
15408
15407
|
const modalEleRef = React.useRef(null);
|
@@ -15491,7 +15490,7 @@ const WaterFall = (props) => {
|
|
15491
15490
|
display: openHashtag ? 'block' : 'none'
|
15492
15491
|
} },
|
15493
15492
|
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 }),
|
15494
|
-
(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);
|
15493
|
+
((_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);
|
15495
15494
|
};
|
15496
15495
|
var WaterFall$1 = React.memo(WaterFall);
|
15497
15496
|
|
@@ -15499,7 +15498,7 @@ var WaterFall$1 = React.memo(WaterFall);
|
|
15499
15498
|
* @Author: binruan@chatlabs.com
|
15500
15499
|
* @Date: 2024-01-15 19:03:09
|
15501
15500
|
* @LastEditors: binruan@chatlabs.com
|
15502
|
-
* @LastEditTime:
|
15501
|
+
* @LastEditTime: 2025-02-17 16:24:14
|
15503
15502
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\index.tsx
|
15504
15503
|
*
|
15505
15504
|
*/
|
@@ -15512,7 +15511,7 @@ var HashTagComponent = React.memo(HashTag$1);
|
|
15512
15511
|
* @Author: binruan@chatlabs.com
|
15513
15512
|
* @Date: 2023-07-28 18:29:57
|
15514
15513
|
* @LastEditors: binruan@chatlabs.com
|
15515
|
-
* @LastEditTime:
|
15514
|
+
* @LastEditTime: 2025-02-17 17:45:40
|
15516
15515
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
|
15517
15516
|
*
|
15518
15517
|
*/
|
@@ -15571,7 +15570,8 @@ const HashTag = createMaterial(HashTagComponent, {
|
|
15571
15570
|
paddingLeft: 20,
|
15572
15571
|
paddingRight: 20,
|
15573
15572
|
paddingBottom: 20
|
15574
|
-
}
|
15573
|
+
},
|
15574
|
+
openFixedSize: { open: true, ratio: '1' }
|
15575
15575
|
}
|
15576
15576
|
},
|
15577
15577
|
w: 100,
|