Compare commits
3 Commits
b47971cc82
...
33644ad408
| Author | SHA1 | Date |
|---|---|---|
|
|
33644ad408 | 2 years ago |
|
|
cdec15860a | 2 years ago |
|
|
f37de440ad | 2 years ago |
@ -1,30 +1,31 @@
|
||||
<template>
|
||||
<div
|
||||
class="bg-secondary flex h-fit w-full justify-start gap-8 p-4 text-center"
|
||||
:class="props.mode === 'horizontal' ? 'flex-row' : 'flex-col'">
|
||||
<div class="flex flex-row items-center justify-start gap-4">
|
||||
<Icon :name="props.icon" />
|
||||
<div class="text-2xl font-bold">
|
||||
{{ props.title }}
|
||||
<el-card>
|
||||
<div
|
||||
class="flex h-fit w-full justify-start gap-8 text-center"
|
||||
:class="props.mode === 'horizontal' ? 'flex-row' : 'flex-col'">
|
||||
<div class="flex flex-row items-center justify-start gap-4">
|
||||
<Icon :name="props.icon" />
|
||||
<div class="text-2xl font-bold">
|
||||
{{ props.title }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-grow flex-row items-center gap-4">
|
||||
<div class="w-full text-right text-2xl font-bold">
|
||||
{{ props.data }}
|
||||
<div class="flex flex-grow flex-row items-center gap-4">
|
||||
<div class="w-full text-right text-2xl font-bold">
|
||||
{{ props.data }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-row items-center gap-4"> </div>
|
||||
</div>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
interface Props {
|
||||
mode: 'horizontal' | 'vertical'
|
||||
icon: string
|
||||
title: string
|
||||
description?: string
|
||||
data: string | number
|
||||
}
|
||||
interface Props {
|
||||
mode: 'horizontal' | 'vertical'
|
||||
icon: string
|
||||
title: string
|
||||
description?: string
|
||||
data: string | number
|
||||
}
|
||||
|
||||
const props = defineProps<Props>()
|
||||
const props = defineProps<Props>()
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue