pb-sxp-ui 1.0.77 → 1.0.78
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 +96 -284
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +27 -95
- package/dist/index.js +96 -284
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +96 -284
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +35 -49
- package/es/core/components/SxpPageRender/WaterFall/index.js +1 -1
- package/es/materials/sxp/HashTag/index.d.ts +0 -2
- package/es/materials/sxp/HashTag/settingRender.d.ts +2 -7
- package/es/materials/sxp/HashTag/settingRender.js +0 -15
- package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +35 -49
- package/lib/core/components/SxpPageRender/WaterFall/index.js +2 -2
- package/lib/materials/sxp/HashTag/index.d.ts +0 -2
- package/lib/materials/sxp/HashTag/settingRender.d.ts +2 -7
- package/lib/materials/sxp/HashTag/settingRender.js +0 -15
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -10353,29 +10353,19 @@ Made in Italy` })));
|
|
10353
10353
|
*
|
10354
10354
|
*/
|
10355
10355
|
var settingRender = [
|
10356
|
-
{
|
10357
|
-
title: 'Banner',
|
10358
|
-
child: [
|
10359
|
-
{
|
10360
|
-
type: 'Switch',
|
10361
|
-
label: 'Banner图开关',
|
10362
|
-
name: ['props', 'showBanner']
|
10363
|
-
}
|
10364
|
-
]
|
10365
|
-
},
|
10366
10356
|
{
|
10367
10357
|
title: '卡片样式',
|
10368
10358
|
child: [
|
10359
|
+
// {
|
10360
|
+
// type: 'Number',
|
10361
|
+
// label: '文本行数',
|
10362
|
+
// name: ['props', 'lineClamp']
|
10363
|
+
// },
|
10369
10364
|
{
|
10370
10365
|
type: 'Number',
|
10371
10366
|
label: '上下边距',
|
10372
10367
|
name: ['props', 'space'],
|
10373
10368
|
addonAfter: 'px'
|
10374
|
-
},
|
10375
|
-
{
|
10376
|
-
type: 'Switch',
|
10377
|
-
label: '固定宽高',
|
10378
|
-
name: ['props', 'isWaterfallFlow']
|
10379
10369
|
}
|
10380
10370
|
]
|
10381
10371
|
},
|
@@ -11845,14 +11835,9 @@ Made in Italy` })));
|
|
11845
11835
|
};
|
11846
11836
|
|
11847
11837
|
const WaterfallFlowItem = (props) => {
|
11848
|
-
const { rec,
|
11849
|
-
const { swiperRef, setRtcList, setOpenHashtag, sxpParameter } = useSxpDataSource();
|
11838
|
+
const { rec, index, list, reportTagsView, textStyles, space } = props;
|
11839
|
+
const { swiperRef, setRtcList, setOpenHashtag, bffEventReport, sxpParameter } = useSxpDataSource();
|
11850
11840
|
const [showVideo, setShowVideo] = React.useState(false);
|
11851
|
-
const [isLoading, setIsLoading] = React.useState(false);
|
11852
|
-
const [imgInfo, setImgInfo] = React.useState({
|
11853
|
-
height: 1,
|
11854
|
-
width: 1
|
11855
|
-
});
|
11856
11841
|
const imgDom = React.useRef(null);
|
11857
11842
|
const ref = React.useRef(null);
|
11858
11843
|
const videoDom = React.useRef(null);
|
@@ -11877,26 +11862,6 @@ Made in Italy` })));
|
|
11877
11862
|
var _a, _b;
|
11878
11863
|
return ((_a = rec === null || rec === void 0 ? void 0 : rec.product) === null || _a === void 0 ? void 0 : _a.title) || ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.title) || null;
|
11879
11864
|
}, [rec]);
|
11880
|
-
/** 离父亲上边框的距离 */
|
11881
|
-
const top = React.useMemo(() => {
|
11882
|
-
var _a;
|
11883
|
-
const y = style.transform
|
11884
|
-
? Number((_a = style.transform) === null || _a === void 0 ? void 0 : _a.substring(style.transform.indexOf(',', 0) + 1, style.transform.length - 3))
|
11885
|
-
: undefined;
|
11886
|
-
return y;
|
11887
|
-
}, [style]);
|
11888
|
-
/** 是否加载图片 */
|
11889
|
-
const isImgShow = React.useMemo(() => {
|
11890
|
-
if (top === undefined) {
|
11891
|
-
return false;
|
11892
|
-
}
|
11893
|
-
if (top <= showBorder) {
|
11894
|
-
return true;
|
11895
|
-
}
|
11896
|
-
else {
|
11897
|
-
return false;
|
11898
|
-
}
|
11899
|
-
}, [top, showBorder]);
|
11900
11865
|
const priceText = React.useMemo(() => {
|
11901
11866
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
11902
11867
|
if (((_a = rec === null || rec === void 0 ? void 0 : rec.product) === null || _a === void 0 ? void 0 : _a.currency) && ((_b = rec === null || rec === void 0 ? void 0 : rec.product) === null || _b === void 0 ? void 0 : _b.price)) {
|
@@ -11909,55 +11874,42 @@ Made in Italy` })));
|
|
11909
11874
|
}
|
11910
11875
|
}, [rec]);
|
11911
11876
|
// useEffect(() => {
|
11912
|
-
//
|
11913
|
-
//
|
11914
|
-
//
|
11915
|
-
//
|
11916
|
-
//
|
11917
|
-
//
|
11918
|
-
//
|
11919
|
-
//
|
11920
|
-
//
|
11921
|
-
//
|
11922
|
-
//
|
11923
|
-
//
|
11924
|
-
//
|
11925
|
-
// });
|
11926
|
-
// });
|
11927
|
-
// observer.observe(ref.current);
|
11928
|
-
// return () => {
|
11929
|
-
// observer.disconnect();
|
11930
|
-
// };
|
11877
|
+
// if (imgDom.current === null || src === '') {
|
11878
|
+
// return;
|
11879
|
+
// }
|
11880
|
+
// const img = new Image();
|
11881
|
+
// if (showVideo && firstFrameSrc) {
|
11882
|
+
// img.src = firstFrameSrc;
|
11883
|
+
// } else {
|
11884
|
+
// img.src = src;
|
11885
|
+
// }
|
11886
|
+
// // img.onload = () => {
|
11887
|
+
// // setIsLoading(true);
|
11888
|
+
// // };
|
11889
|
+
// imgDom.current.src = img.src;
|
11931
11890
|
// }, [src, showVideo, firstFrameSrc]);
|
11932
11891
|
React.useEffect(() => {
|
11933
|
-
|
11934
|
-
|
11935
|
-
|
11936
|
-
|
11937
|
-
|
11938
|
-
|
11939
|
-
|
11940
|
-
|
11941
|
-
|
11942
|
-
|
11943
|
-
|
11944
|
-
|
11945
|
-
|
11946
|
-
|
11892
|
+
const observer = new IntersectionObserver((entries) => {
|
11893
|
+
entries.forEach((entry) => {
|
11894
|
+
if (entry.isIntersecting) {
|
11895
|
+
if (ref.current === null || src === '') {
|
11896
|
+
return;
|
11897
|
+
}
|
11898
|
+
if (showVideo && firstFrameSrc) {
|
11899
|
+
imgDom.current.setSrc(firstFrameSrc);
|
11900
|
+
}
|
11901
|
+
else {
|
11902
|
+
imgDom.current.setSrc(src);
|
11903
|
+
}
|
11904
|
+
observer.unobserve(ref.current);
|
11905
|
+
}
|
11947
11906
|
});
|
11948
|
-
|
11907
|
+
});
|
11908
|
+
observer.observe(ref.current);
|
11909
|
+
return () => {
|
11910
|
+
observer.disconnect();
|
11949
11911
|
};
|
11950
|
-
|
11951
|
-
imgDom.current.src = img.src;
|
11952
|
-
}, [src, showVideo, firstFrameSrc, isImgShow]);
|
11953
|
-
React.useEffect(() => {
|
11954
|
-
// 通过宽度比例获取图片高度
|
11955
|
-
const height = imgInfo.height * (unitWidth / imgInfo.width);
|
11956
|
-
if (isLoading) {
|
11957
|
-
// 加40是因为下方文字部分高度为40,可以自己设置
|
11958
|
-
sizeChange(height + 76 + space, index);
|
11959
|
-
}
|
11960
|
-
}, [imgInfo, index, unitWidth, isLoading, space]); /* 增加sizeChange依赖项会导致在admin预览编辑时无限刷新 */
|
11912
|
+
}, [src, showVideo, firstFrameSrc]);
|
11961
11913
|
const calculateHeightForWidth = (videoWidth, videoHeight, targetWidth) => {
|
11962
11914
|
const aspectRatio = videoWidth / videoHeight;
|
11963
11915
|
const targetHeight = targetWidth / aspectRatio;
|
@@ -11995,135 +11947,40 @@ Made in Italy` })));
|
|
11995
11947
|
setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(false);
|
11996
11948
|
}, 0);
|
11997
11949
|
};
|
11998
|
-
return (React.createElement("div", { ref: ref,
|
11999
|
-
React.createElement("div", { className: '
|
11950
|
+
return (React.createElement("div", { ref: ref, className: 'list-content-listItem', key: index, onClick: handleClickToDetail, style: { marginBottom: space } },
|
11951
|
+
React.createElement("div", { className: 'list-content-listItem-picture' },
|
12000
11952
|
showVideo && (React.createElement("div", { style: { display: 'none' } },
|
12001
|
-
React.createElement("video", { ref: videoDom,
|
11953
|
+
React.createElement("video", { ref: videoDom, crossOrigin: 'anonymous', className: 'list-content-listItem-picture-img' }),
|
12002
11954
|
React.createElement("canvas", { ref: canvasRef }))),
|
12003
|
-
React.createElement(
|
12004
|
-
React.createElement("div", { className: '
|
12005
|
-
React.createElement("div", { className: `${'
|
12006
|
-
React.createElement("div", { className: '
|
11955
|
+
React.createElement(FormatImage$1, { loading: 'lazy', className: 'list-content-listItem-picture-img', ref: imgDom })),
|
11956
|
+
React.createElement("div", { className: 'list-content-listItem-info' },
|
11957
|
+
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 }, title && title),
|
11958
|
+
React.createElement("div", { className: 'list-content-listItem-info-price', style: textStyles === null || textStyles === void 0 ? void 0 : textStyles.price, hidden: !priceText }, priceText))));
|
12007
11959
|
};
|
12008
11960
|
function WaterfallList(_a) {
|
12009
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
11961
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
12010
11962
|
var { reportTagsView } = _a, props = __rest(_a, ["reportTagsView"]);
|
12011
11963
|
const { waterFallData, getRecommendVideos, hashTagSize, loadingImage, isOpenHashTag } = useSxpDataSource();
|
12012
|
-
|
12013
|
-
const scrollParent = React.useRef(null);
|
12014
|
-
/** 向上滚动的距离 */
|
12015
|
-
const [scrollTop, setScrollTop] = React.useState(0);
|
12016
|
-
/** 数据列表 */
|
11964
|
+
const [list, setList] = React.useState();
|
12017
11965
|
const [data, setData] = React.useState();
|
12018
|
-
const waterfallFlowDom = React.useRef(null);
|
12019
|
-
/** 样式列表 */
|
12020
|
-
const [styleList, setStyleList] = React.useState([]);
|
12021
|
-
const styleListRef = React.useRef();
|
12022
|
-
/** 自定义骨架屏高度 */
|
12023
|
-
const heightList = [170, 230, 300];
|
12024
|
-
/** 到达底部 */
|
12025
11966
|
const [isLoadingData, setIsLoadingData] = React.useState(false);
|
12026
|
-
const
|
12027
|
-
const
|
12028
|
-
|
12029
|
-
|
12030
|
-
|
12031
|
-
|
12032
|
-
|
12033
|
-
|
12034
|
-
|
12035
|
-
|
12036
|
-
|
12037
|
-
|
12038
|
-
|
12039
|
-
|
12040
|
-
|
12041
|
-
|
12042
|
-
|
12043
|
-
}
|
12044
|
-
else {
|
12045
|
-
return 2;
|
12046
|
-
}
|
12047
|
-
}, [frameInfo]);
|
12048
|
-
/** 每一个的宽度 */
|
12049
|
-
const unitWidth = React.useMemo(() => {
|
12050
|
-
return frameInfo.width / rowsNum - 2;
|
12051
|
-
}, [rowsNum, frameInfo]);
|
12052
|
-
/** 获取位置 */
|
12053
|
-
const getStyleList = React.useCallback(() => {
|
12054
|
-
var _a;
|
12055
|
-
const temporaryStyleList = (_a = styleListRef.current) !== null && _a !== void 0 ? _a : [];
|
12056
|
-
/** 目前最下一行的index */
|
12057
|
-
const bottomItemIndex = [];
|
12058
|
-
for (let i = 0; i < (list === null || list === void 0 ? void 0 : list.length); i++) {
|
12059
|
-
// 原本应对应的行数
|
12060
|
-
const currentRow = Math.floor(i / rowsNum);
|
12061
|
-
//
|
12062
|
-
const remainder = (i % rowsNum) + 1;
|
12063
|
-
// 最低item下标
|
12064
|
-
let minHeightInd = 0;
|
12065
|
-
// 最低高度
|
12066
|
-
let minHeight = 9999999999;
|
12067
|
-
// 寻找最低高度的下标
|
12068
|
-
if (currentRow === 0) {
|
12069
|
-
bottomItemIndex[i] = i;
|
12070
|
-
}
|
12071
|
-
else {
|
12072
|
-
for (let j = 0; j < bottomItemIndex.length; j++) {
|
12073
|
-
if (waterfallFlowListInfo.current[bottomItemIndex[j]].top +
|
12074
|
-
waterfallFlowListInfo.current[bottomItemIndex[j]].height <
|
12075
|
-
minHeight) {
|
12076
|
-
minHeightInd = j;
|
12077
|
-
minHeight =
|
12078
|
-
waterfallFlowListInfo.current[bottomItemIndex[j]].top +
|
12079
|
-
waterfallFlowListInfo.current[bottomItemIndex[j]].height;
|
12080
|
-
}
|
12081
|
-
}
|
12082
|
-
bottomItemIndex[minHeightInd] = i;
|
12083
|
-
}
|
12084
|
-
if (waterfallFlowListInfo.current[i] === undefined) {
|
12085
|
-
waterfallFlowListInfo.current[i] = {};
|
12086
|
-
}
|
12087
|
-
// 第一行特殊处理,一定是从左到右铺的
|
12088
|
-
if (currentRow === 0) {
|
12089
|
-
if (remainder === 1) {
|
12090
|
-
waterfallFlowListInfo.current[i].left = 0;
|
12091
|
-
}
|
12092
|
-
else {
|
12093
|
-
waterfallFlowListInfo.current[i].left = waterfallFlowListInfo.current[i - 1].left + unitWidth + 4;
|
12094
|
-
}
|
12095
|
-
waterfallFlowListInfo.current[i].top = 0;
|
12096
|
-
}
|
12097
|
-
// 剩下的行数,铺在当前最低高度下面
|
12098
|
-
else {
|
12099
|
-
waterfallFlowListInfo.current[i].left = waterfallFlowListInfo.current[minHeightInd].left;
|
12100
|
-
waterfallFlowListInfo.current[i].top = minHeight;
|
12101
|
-
}
|
12102
|
-
// 是否已经有高度,有高度使用已有高度,否则随机生成
|
12103
|
-
waterfallFlowListInfo.current[i].height =
|
12104
|
-
waterfallFlowListInfo.current[i].height || heightList[createRandomNum(0, 2)];
|
12105
|
-
temporaryStyleList[i] = {
|
12106
|
-
transform: `translate(${waterfallFlowListInfo.current[i].left}px,${waterfallFlowListInfo.current[i].top}px)`,
|
12107
|
-
width: `${unitWidth}px`,
|
12108
|
-
height: waterfallFlowListInfo.current[i].height
|
12109
|
-
};
|
12110
|
-
}
|
12111
|
-
setStyleList([...temporaryStyleList]);
|
12112
|
-
return [...temporaryStyleList];
|
12113
|
-
}, [unitWidth, rowsNum, heightList, createRandomNum, list]);
|
12114
|
-
/** 图片加载完更新高度 */
|
12115
|
-
const onSizeChange = React.useCallback((height, index) => {
|
12116
|
-
if (waterfallFlowListInfo.current[index] === undefined) {
|
12117
|
-
waterfallFlowListInfo.current[index] = {};
|
12118
|
-
}
|
12119
|
-
waterfallFlowListInfo.current[index].height = height;
|
12120
|
-
styleListRef.current = getStyleList();
|
12121
|
-
}, [getStyleList]);
|
12122
|
-
/** 大小、数量发生变化时触发 */
|
12123
|
-
React.useEffect(() => {
|
12124
|
-
styleListRef.current = getStyleList();
|
12125
|
-
}, [unitWidth, rowsNum, list]); /* 增加getStyleList依赖项会导致在admin预览编辑时无限刷新 */
|
12126
|
-
/** 初始化请求数据 */
|
11967
|
+
const containerRef = React.useRef(null);
|
11968
|
+
const [isLoadMore, setIsLoadMore] = React.useState(false);
|
11969
|
+
React.useCallback(() => {
|
11970
|
+
if (isLoadMore)
|
11971
|
+
return;
|
11972
|
+
setIsLoadMore(true);
|
11973
|
+
waterFallData &&
|
11974
|
+
(getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({
|
11975
|
+
hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag,
|
11976
|
+
'itemFilter.itemId': waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.itemId,
|
11977
|
+
'itemFilter.itemType': waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.itemType
|
11978
|
+
}).then((res) => {
|
11979
|
+
var _a;
|
11980
|
+
setList(list === null || list === void 0 ? void 0 : list.concat((_a = res === null || res === void 0 ? void 0 : res.recList) !== null && _a !== void 0 ? _a : []));
|
11981
|
+
setIsLoadMore(false);
|
11982
|
+
}));
|
11983
|
+
}, [waterFallData, getRecommendVideos, list, isLoadMore]);
|
12127
11984
|
React.useEffect(() => {
|
12128
11985
|
var _a, _b;
|
12129
11986
|
setIsLoadingData(true);
|
@@ -12147,60 +12004,22 @@ Made in Italy` })));
|
|
12147
12004
|
setIsLoadingData(false);
|
12148
12005
|
}
|
12149
12006
|
}, [waterFallData, getRecommendVideos, hashTagSize, isOpenHashTag]);
|
12150
|
-
|
12151
|
-
|
12152
|
-
|
12153
|
-
|
12154
|
-
|
12155
|
-
|
12156
|
-
|
12157
|
-
|
12158
|
-
|
12159
|
-
|
12160
|
-
|
12161
|
-
|
12162
|
-
|
12163
|
-
|
12164
|
-
|
12165
|
-
|
12166
|
-
resizeObserver.observe(waterfallFlowDom.current);
|
12167
|
-
return () => {
|
12168
|
-
resizeObserver.disconnect();
|
12169
|
-
};
|
12170
|
-
}, [onResize]);
|
12171
|
-
React.useCallback(() => {
|
12172
|
-
setIsLoadingData(true);
|
12173
|
-
waterFallData &&
|
12174
|
-
(getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({
|
12175
|
-
hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag,
|
12176
|
-
'itemFilter.itemId': waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.itemId,
|
12177
|
-
'itemFilter.itemType': waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.itemType
|
12178
|
-
}).then((res) => {
|
12179
|
-
var _a, _b;
|
12180
|
-
setList(list === null || list === void 0 ? void 0 : list.concat((_b = (_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.filter((item) => !(item === null || item === void 0 ? void 0 : item.video))) !== null && _b !== void 0 ? _b : []));
|
12181
|
-
setIsLoadingData(false);
|
12182
|
-
}));
|
12183
|
-
}, [waterFallData, getRecommendVideos, list]);
|
12184
|
-
const onScroll = React.useCallback(() => {
|
12185
|
-
// 记录滚动值
|
12186
|
-
setScrollTop(scrollParent.current.scrollTop);
|
12187
|
-
// const top = (scrollParent.current as any).scrollTop;
|
12188
|
-
// const clientHeight = (scrollParent.current as any).clientHeight;
|
12189
|
-
// const scrollHeight = (scrollParent.current as any).scrollHeight;
|
12190
|
-
// // 做底部加载
|
12191
|
-
// if (scrollHeight <= top + clientHeight && !isLoadingData) {
|
12192
|
-
// loadMoreData();
|
12193
|
-
// }
|
12194
|
-
}, []);
|
12195
|
-
/** 监听滚动 */
|
12196
|
-
React.useEffect(() => {
|
12197
|
-
var _a;
|
12198
|
-
(_a = scrollParent === null || scrollParent === void 0 ? void 0 : scrollParent.current) === null || _a === void 0 ? void 0 : _a.addEventListener('scroll', onScroll);
|
12199
|
-
return () => {
|
12200
|
-
var _a;
|
12201
|
-
(_a = scrollParent === null || scrollParent === void 0 ? void 0 : scrollParent.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('scroll', onScroll);
|
12202
|
-
};
|
12203
|
-
}, [onScroll, scrollParent]);
|
12007
|
+
// useEffect(() => {
|
12008
|
+
// const container = containerRef?.current;
|
12009
|
+
// if (!container) return;
|
12010
|
+
// const handleScroll = () => {
|
12011
|
+
// const top = (container as any)?.scrollTop;
|
12012
|
+
// const clientHeight = (container as any)?.clientHeight;
|
12013
|
+
// const scrollHeight = (container as any)?.scrollHeight;
|
12014
|
+
// if (scrollHeight <= top + clientHeight && !isLoadingData) {
|
12015
|
+
// loadMoreData();
|
12016
|
+
// }
|
12017
|
+
// };
|
12018
|
+
// container?.addEventListener('scroll', handleScroll);
|
12019
|
+
// return () => {
|
12020
|
+
// container?.removeEventListener('scroll', handleScroll); // 在组件卸载时移除事件监听器
|
12021
|
+
// };
|
12022
|
+
// }, [isLoadingData, containerRef, loadMoreData]);
|
12204
12023
|
const handleClickLink = () => {
|
12205
12024
|
var _a, _b;
|
12206
12025
|
if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
|
@@ -12209,27 +12028,20 @@ Made in Italy` })));
|
|
12209
12028
|
}
|
12210
12029
|
};
|
12211
12030
|
return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
12212
|
-
React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement("div", { className: '
|
12213
|
-
React.createElement("div", { className: '
|
12214
|
-
React.createElement("div", { className: '
|
12215
|
-
React.createElement("div", { hidden: !((_d = data === null || data === void 0 ? void 0 : data.tag) === null || _d === void 0 ? void 0 : _d.link), className: '
|
12216
|
-
React.createElement("div", { className: '
|
12217
|
-
|
12218
|
-
|
12219
|
-
|
12220
|
-
|
12221
|
-
|
12222
|
-
|
12223
|
-
|
12224
|
-
|
12225
|
-
|
12226
|
-
height: ((_o = data === null || data === void 0 ? void 0 : data.tag) === null || _o === void 0 ? void 0 : _o.link)
|
12227
|
-
? ((_p = buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) === null || _p === void 0 ? void 0 : _p.offsetHeight) || ((_q = props === null || props === void 0 ? void 0 : props.buttonBgStyle) === null || _q === void 0 ? void 0 : _q.height) || '100px'
|
12228
|
-
: 0
|
12229
|
-
} }))),
|
12230
|
-
React.createElement("div", { className: 'waterFallList-bottom', hidden: !((_r = data === null || data === void 0 ? void 0 : data.tag) === null || _r === void 0 ? void 0 : _r.link), style: props === null || props === void 0 ? void 0 : props.buttonBgStyle }),
|
12231
|
-
React.createElement("div", { ref: buttonRef, hidden: !((_s = data === null || data === void 0 ? void 0 : data.tag) === null || _s === void 0 ? void 0 : _s.link), className: 'waterFallList-btn-wrap', style: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.buttonBgStyle), { height: 'auto', backgroundColor: 'transparent' }) },
|
12232
|
-
React.createElement("button", { className: 'waterFallList-btn', style: props === null || props === void 0 ? void 0 : props.buttonStyle, onClick: handleClickLink }, ((_t = data === null || data === void 0 ? void 0 : data.tag) === null || _t === void 0 ? void 0 : _t.linkTitle) || 'Shop the collection'))))));
|
12031
|
+
React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement("div", { className: 'list' },
|
12032
|
+
React.createElement("div", { className: 'list-scroll', ref: containerRef },
|
12033
|
+
React.createElement("div", { className: 'list-info', style: (_b = props === null || props === void 0 ? void 0 : props.textStyles) === null || _b === void 0 ? void 0 : _b.hashTagDesc }, (_c = data === null || data === void 0 ? void 0 : data.tag) === null || _c === void 0 ? void 0 : _c.info),
|
12034
|
+
React.createElement("div", { hidden: !((_d = data === null || data === void 0 ? void 0 : data.tag) === null || _d === void 0 ? void 0 : _d.link), className: 'list-collection', onClick: handleClickLink, style: Object.assign(Object.assign({}, (_e = props === null || props === void 0 ? void 0 : props.textStyles) === null || _e === void 0 ? void 0 : _e.hashTagLink), { marginBottom: props === null || props === void 0 ? void 0 : props.space }) }, ((_f = data === null || data === void 0 ? void 0 : data.tag) === null || _f === void 0 ? void 0 : _f.linkTitle) || 'Shop the collection'),
|
12035
|
+
React.createElement("div", { className: 'list-content' }, list === null || list === void 0 ? void 0 : list.map((item, ind) => {
|
12036
|
+
return (React.createElement(WaterfallFlowItem, Object.assign({ key: ind, index: ind, rec: item, list: list, reportTagsView: reportTagsView }, props)));
|
12037
|
+
})),
|
12038
|
+
React.createElement("div", { hidden: !isLoadMore, style: { textAlign: 'center' } }, "loading..."),
|
12039
|
+
React.createElement("div", { hidden: !((_g = data === null || data === void 0 ? void 0 : data.tag) === null || _g === void 0 ? void 0 : _g.link), style: {
|
12040
|
+
height: ((_h = data === null || data === void 0 ? void 0 : data.tag) === null || _h === void 0 ? void 0 : _h.link) ? ((_j = props === null || props === void 0 ? void 0 : props.buttonBgStyle) === null || _j === void 0 ? void 0 : _j.height) || ((_k = props === null || props === void 0 ? void 0 : props.buttonStyle) === null || _k === void 0 ? void 0 : _k.height) || '100px' : 0
|
12041
|
+
} })),
|
12042
|
+
React.createElement("div", { className: 'list-bottom', hidden: !((_l = data === null || data === void 0 ? void 0 : data.tag) === null || _l === void 0 ? void 0 : _l.link), style: props === null || props === void 0 ? void 0 : props.buttonBgStyle }),
|
12043
|
+
React.createElement("div", { hidden: !((_m = data === null || data === void 0 ? void 0 : data.tag) === null || _m === void 0 ? void 0 : _m.link), className: 'list-btn-wrap', style: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.buttonBgStyle), { height: 'auto', backgroundColor: 'transparent' }) },
|
12044
|
+
React.createElement("button", { className: 'list-btn', style: props === null || props === void 0 ? void 0 : props.buttonStyle, onClick: handleClickLink }, ((_o = data === null || data === void 0 ? void 0 : data.tag) === null || _o === void 0 ? void 0 : _o.linkTitle) || 'Shop the collection'))))));
|
12233
12045
|
}
|
12234
12046
|
|
12235
12047
|
var img$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAaZJREFUeF7t2jFKBEEQRuG3mSJeQTARURDMTL2EqXfwAnoKD6FHMDEzNVIw2tzQC2gFggyDrExX1V92T7wz9PumFnqbXdH5teq8nwEwJqBzgfEVKDYAW8Ae8NZq3ZUm4Aa4AnaBR+C8BUIVAIu/ngSfAs9LESoAWLgB/LzWwP7SeLtfHWAu3tZ9Adz/dwD3eOUJCIlXBQiLVwQIjVcDCI9XAkiJVwFIi1cASI3PBpjb3jbd5GyyUcraCUrEZ02ATHwGgFR8NIBcfCSAZHwUgGx8BIB0vDeAfLwnQIl4L4Ay8R4ApeJbA2wD78DOZA/e7ABzk739Xz/T8rfAIfA6WYCd3BqA7NUSwCKfgLNKCK0BjoC7rzP74yoIrQGsuxSCB0ApBC+AMgieACUQvAHkESIApBGiAGQRIgEkEaIB5BAyAKQQsgBkEDIBJBCyAdIRFABSEVQA0hCUAFIQ1ADCERQBQhFUAcIQlAFCENQBfkOwg9eXpeftFQDmEOzv8ifARy8A3wiXwAHwANwujbf7q0xAi9bZZwwAN9oiDx4TUORFuS2z+wn4BAiAaEHnKChjAAAAAElFTkSuQmCC";
|
@@ -12238,7 +12050,7 @@ Made in Italy` })));
|
|
12238
12050
|
* @Author: binruan@chatlabs.com
|
12239
12051
|
* @Date: 2024-01-10 10:58:24
|
12240
12052
|
* @LastEditors: binruan@chatlabs.com
|
12241
|
-
* @LastEditTime: 2024-
|
12053
|
+
* @LastEditTime: 2024-04-15 17:57:59
|
12242
12054
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
|
12243
12055
|
*
|
12244
12056
|
*/
|