This commit is contained in:
2025-11-22 15:46:23 +08:00
parent b2b665dfb6
commit cba231ab3d
11 changed files with 197 additions and 127 deletions

View File

@@ -29,6 +29,7 @@ const ListContainer = (props) => {
collapse = false,
defaultShowNum,
evaluateFlag,
listLoadErrorHeight,
} = props;
const timerRef = useRef<NodeJS.Timeout | null>(null);
const loadingStartTimeRef = useRef<number | null>(null);
@@ -132,7 +133,7 @@ const ListContainer = (props) => {
if (hasTestInLastMonth) {
return list;
}
if (list.length <= 2) {
return [...list, { type: "evaluateCard" }];
}
@@ -156,6 +157,7 @@ const ListContainer = (props) => {
btnText={btnText}
btnImg={btnImg}
text={emptyText || "暂无数据"}
height={listLoadErrorHeight || ""}
/>
);
}