feat: 增加存储详情功能

This commit is contained in:
2026-08-25 10:42:42 +08:00
parent 8ff7d4548e
commit e42d0854ec
13 changed files with 176 additions and 62 deletions

4
src/type/index.ts Normal file
View File

@@ -0,0 +1,4 @@
export interface IStats {
name: string;
value: number
}

View File

@@ -0,0 +1,6 @@
export interface IProfile {
name: string
gender: 'male' | 'female' | ''
height: number | null
weight: number | null
}

View File

@@ -0,0 +1,18 @@
export interface IHealthRecord {
id: string
type: string
time: string
date?: string
[key: string]: any
}
export interface IRecordMeta {
icon: string
label: string
color: string
}
export interface IRecordStats {
label: string
type: 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'volcano' | 'lightblue' | 'cyan' | 'pink' | 'purple'
}