fix and add
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled

This commit is contained in:
2025-12-29 16:13:31 +08:00
parent 48a102b0a5
commit 00523bae4c
8 changed files with 353 additions and 132 deletions

View File

@@ -28,13 +28,13 @@ withDefaults(defineProps<Props>(), {
<Card v-for="(item, index) in items" :key="index" class="relative overflow-hidden">
<CardHeader class="flex flex-row items-center justify-between space-y-0 pb-2">
<CardTitle class="text-sm font-medium">
{{ item.title }}
{{ item.title }}
</CardTitle>
<VbenIcon :icon="item.icon" class="h-4 w-4 text-muted-foreground" />
</CardHeader>
<CardContent>
<div class="text-2xl font-bold">
<VbenCountToAnimator :end-val="item.value" />
<VbenCountToAnimator :end-val="item.value" />
</div>
<p class="text-xs text-muted-foreground">
{{ item.todaytitle }}
@@ -50,11 +50,23 @@ withDefaults(defineProps<Props>(), {
</span>
</p>
<p class="text-xs text-muted-foreground flex justify-between mt-1">
<span>{{ item.todaySubtitle }}</span>
<span class="font-medium text-foreground">
+<VbenCountToAnimator :end-val="item.todaySubValue" />
</span>
</p>
<span>{{ item.todaySubtitle }}</span>
<span class="font-medium text-foreground">
+<VbenCountToAnimator :end-val="item.todaySubValue" />
</span>
</p>
<p v-if="item.extraTitle" class="text-xs text-muted-foreground flex justify-between mt-1">
<span>{{ item.extraTitle }}</span>
<span class="font-medium text-foreground">
<VbenCountToAnimator :end-val="item.extraValue || 0" />
</span>
</p>
<p v-if="item.extra2Title" class="text-xs text-muted-foreground flex justify-between mt-1">
<span>{{ item.extra2Title }}</span>
<span class="font-medium text-foreground">
+<VbenCountToAnimator :end-val="item.extra2Value || 0" />
</span>
</p>
</div>
</CardContent>
</Card>

View File

@@ -10,6 +10,10 @@ interface AnalysisOverviewItem {
SubValue: number;
todaySubtitle: string;
todaySubValue: number;
extraTitle?: string;
extraValue?: number;
extra2Title?: string;
extra2Value?: number;
}
interface WorkbenchProjectItem {