优化样式

This commit is contained in:
2025-10-04 11:42:20 +08:00
parent f6a1568719
commit 2dd634c921
9 changed files with 48 additions and 31 deletions

View File

@@ -18,6 +18,10 @@ const ListContainer = (props) => {
reload,
// recommendList,
loadMoreMatches,
errorImg,
emptyText,
btnText,
btnImg,
} = props;
const timerRef = useRef<NodeJS.Timeout | null>(null);
@@ -78,7 +82,7 @@ const ListContainer = (props) => {
const renderList = (list) => {
// 请求数据为空
if (!loading && (!list || list?.length === 0)) {
return <ListLoadError reload={reload} text="暂无数据" />;
return <ListLoadError reload={reload} errorImg={errorImg} btnText={btnText} btnImg={btnImg} text={emptyText || "暂无数据"} />;
}
// 渲染数据