feat: quotation stats

This commit is contained in:
Methapon Metanipat 2024-10-07 16:58:45 +07:00
parent c5b3e4dbd7
commit 1d73d8084e
4 changed files with 89 additions and 179 deletions

View file

@ -2,6 +2,7 @@
const props = withDefaults(
defineProps<{
branch: {
hidden?: boolean;
icon: string;
count: number;
label: string;
@ -32,7 +33,7 @@ const props = withDefaults(
<template>
<div class="row no-wrap" style="gap: var(--size-4)" :class="{ dark }">
<div
v-for="v in props.branch"
v-for="v in branch.filter((v) => !v.hidden)"
class="no-padding stat-card"
:class="{ [`stat-card__${v.color}`]: true }"
:key="v.label"