This commit is contained in:
zyj
2025-10-14 17:56:28 +08:00
commit 81c18c94e3
74 changed files with 12668 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<template>
<a-card :bordered="false" class="widget-1" style="margin-bottom: 20px;">
<a-statistic
:title="title"
:value="value"
:prefix="prefix"
:suffix="suffix"
:precision="0"
class="text-success"
:class="'text-' + status"
/>
<div class="icon" v-html="icon"></div>
</a-card>
</template>
<script setup lang="ts">
const props = defineProps<{
title?: string
value?: number
prefix?: string
suffix?: string
icon?: string
status?: string
}>()
// 默认值处理(可选)
const {
title = '',
value = 0,
prefix = '',
suffix = '',
icon = '',
status = 'success'
} = props
</script>