修复bug
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 400px;
|
||||
height: calc(100vh - 94px - 72px - 110px);
|
||||
|
||||
.listLoadErrorImg {
|
||||
width: 154px;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Image, View, Text, Button } from "@tarojs/components";
|
||||
import { Image, View, Text } from "@tarojs/components";
|
||||
import styles from "./index.module.scss";
|
||||
import img from "@/config/images";
|
||||
|
||||
@@ -24,10 +24,10 @@ const ListLoadError = (props: IProps) => {
|
||||
/>
|
||||
{text && <Text className={styles.listLoadErrorText}>{text}</Text>}
|
||||
{reload && (
|
||||
<Button className={styles.listLoadErrorBtn} onClick={handleReload}>
|
||||
<View className={styles.listLoadErrorBtn} onClick={handleReload}>
|
||||
<Image src={btnImg ? img[btnImg] : img?.ICON_LIST_RELOAD} className={styles.reloadIcon} />
|
||||
{btnText ? " " + btnText : "重试"}
|
||||
</Button>
|
||||
</View>
|
||||
)}
|
||||
</View>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user