去掉滚动折叠

This commit is contained in:
2025-11-29 22:52:05 +08:00
parent f4951c18f8
commit 7b0b78c9a0
8 changed files with 36 additions and 20 deletions

View File

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