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

@@ -8,16 +8,17 @@ interface IProps {
errorImg?: string;
btnText?: string;
btnImg?: string;
height?: string
}
const ListLoadError = (props: IProps) => {
const { reload, text, errorImg, btnText, btnImg } = props;
const { reload, text, errorImg, btnText, btnImg, height = "unset" } = props;
const handleReload = () => {
reload && typeof reload === "function" && reload();
};
return (
<View className={styles.listLoadError}>
<View className={styles.listLoadError} style={{ height }}>
<Image
className={styles.listLoadErrorImg}
src={errorImg ? img[errorImg] : img.ICON_LIST_LOAD_ERROR}