refactor: use icon instead of character

This commit is contained in:
Methapon Metanipat 2024-10-28 14:22:11 +07:00
parent 79fbba07fa
commit 032797d1da

View file

@ -13,8 +13,7 @@ defineProps<{
class="rounded q-px-sm flex-center"
:style="`color: hsla(var(${!!hslaColor ? hslaColor : '--green-6-hsl'}) / 0.8); background: hsla(var(${!!hslaColor ? hslaColor : '--green-6-hsl'}) / 0.1); `"
>
<template v-if="!icon">&#128900;</template>
<Icon v-else :icon style="margin-right: 0.25rem" />
<Icon :icon="icon || 'mdi-circle-medium'" style="margin-right: 0.25rem" />
{{ title || (!!titleI18n ? $t(titleI18n) : '-') }}
</div>
</template>