钱包、下载记录添加空状态

This commit is contained in:
2025-10-19 18:46:12 +08:00
parent df26f89086
commit 51e103cebc
4 changed files with 13 additions and 9 deletions

View File

@@ -3,7 +3,7 @@
flex-direction: column;
align-items: center;
justify-content: center;
padding: 124px 16px;
padding: 60px 16px;
min-height: 400px;
.empty-icon {

View File

@@ -4,14 +4,16 @@ import "./index.scss";
interface EmptyStateProps {
text?: string;
icon?: any; // 图片资源
styles?: any;
}
const EmptyState = ({
text = "暂无数据",
icon = require("@/static/message/emi.svg")
icon = require("@/static/message/emi.svg"),
styles,
}: EmptyStateProps) => {
return (
<View className="empty-state">
<View className="empty-state" style={styles && {...styles}}>
<View className="empty-icon">
<Image className="img" src={icon} />
</View>