优化
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user