|
@@ -12,6 +12,7 @@
|
|
|
v-if="badge"
|
|
v-if="badge"
|
|
|
:color="badgeColor"
|
|
:color="badgeColor"
|
|
|
:label="badge"
|
|
:label="badge"
|
|
|
|
|
+ :style="customStyle"
|
|
|
class="stat-badge"
|
|
class="stat-badge"
|
|
|
/>
|
|
/>
|
|
|
<span v-else-if="subtitle" class="text-caption text-foreground">{{
|
|
<span v-else-if="subtitle" class="text-caption text-foreground">{{
|
|
@@ -29,6 +30,7 @@ defineProps({
|
|
|
subtitle: { type: String, default: "" },
|
|
subtitle: { type: String, default: "" },
|
|
|
badge: { type: String, default: "" },
|
|
badge: { type: String, default: "" },
|
|
|
badgeColor: { type: String, default: "accent-1" },
|
|
badgeColor: { type: String, default: "accent-1" },
|
|
|
|
|
+ customStyle: { type: String, default: "padding: 4px" },
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
@@ -58,7 +60,7 @@ defineProps({
|
|
|
|
|
|
|
|
.stat-badge {
|
|
.stat-badge {
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
|
- padding: 4px;
|
|
|
|
|
|
|
+
|
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
|
width: fit-content;
|
|
width: fit-content;
|
|
|
color: $primary;
|
|
color: $primary;
|