完成大图标小图标切换

This commit is contained in:
Sun
2024-01-04 16:22:33 +08:00
parent baf64a9272
commit 1474f796fc
9 changed files with 759 additions and 159 deletions
@@ -0,0 +1,22 @@
export enum MonitorType {
'cpu' = 'cpu', // 图标风格
'memory' = 'memory', // 详情风格
'disk' = 'disk',
}
export interface CardStyle {
background: string
}
export interface MonitorData {
monitorType: MonitorType
extendParam?: { [key: string]: [value:any] } | any
description?: string
cardStyle: CardStyle
}
export interface ProgressStyle {
color: string
railColor: string
height: number
}