|
|
|
@ -1,6 +1,7 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
|
|
|
|
<el-card>
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
class="bg-secondary flex h-fit w-full justify-start gap-8 p-4 text-center"
|
|
|
|
class="flex h-fit w-full justify-start gap-8 text-center"
|
|
|
|
:class="props.mode === 'horizontal' ? 'flex-row' : 'flex-col'">
|
|
|
|
:class="props.mode === 'horizontal' ? 'flex-row' : 'flex-col'">
|
|
|
|
<div class="flex flex-row items-center justify-start gap-4">
|
|
|
|
<div class="flex flex-row items-center justify-start gap-4">
|
|
|
|
<Icon :name="props.icon" />
|
|
|
|
<Icon :name="props.icon" />
|
|
|
|
@ -13,18 +14,18 @@
|
|
|
|
{{ props.data }}
|
|
|
|
{{ props.data }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex flex-row items-center gap-4"> </div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
<script setup lang="ts">
|
|
|
|
interface Props {
|
|
|
|
interface Props {
|
|
|
|
mode: 'horizontal' | 'vertical'
|
|
|
|
mode: 'horizontal' | 'vertical'
|
|
|
|
icon: string
|
|
|
|
icon: string
|
|
|
|
title: string
|
|
|
|
title: string
|
|
|
|
description?: string
|
|
|
|
description?: string
|
|
|
|
data: string | number
|
|
|
|
data: string | number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps<Props>()
|
|
|
|
const props = defineProps<Props>()
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|