AppCardStatistic.vue 848B

123456789101112131415161718192021222324252627282930
  1. <script setup>
  2. defineProps({
  3. data: {
  4. type: Object,
  5. required: true,
  6. },
  7. })
  8. </script>
  9. <template>
  10. <Card class="h-full">
  11. <template #content>
  12. <div class="flex justify-content-between mb-3">
  13. <div>
  14. <span class="block text-500 font-medium mb-3">{{ data.title }}</span>
  15. <div v-if="data.value" class="text-900 font-medium text-xl">{{ data.value }}</div>
  16. </div>
  17. <div
  18. class="flex align-items-center justify-content-center bg-orange-100 border-round"
  19. style="width: 2.5rem; height: 2.5rem"
  20. >
  21. <i class="text-orange-500 text-xl" :class="data.icon"></i>
  22. </div>
  23. </div>
  24. <span class="text-green-500 font-medium">{{ data.amount }} </span>
  25. <span class="text-500"> {{ ' ' + data.amountLabel }}</span>
  26. </template>
  27. </Card>
  28. </template>