2024-10-25 17:27:32 +07:00
|
|
|
<script setup lang="ts">
|
2024-10-28 10:23:35 +07:00
|
|
|
import { Icon } from '@iconify/vue';
|
2024-10-25 17:27:32 +07:00
|
|
|
defineProps<{
|
2024-10-28 10:23:35 +07:00
|
|
|
icon?: string;
|
2024-10-25 17:37:04 +07:00
|
|
|
title?: string;
|
|
|
|
|
titleI18n?: string;
|
2024-10-25 17:27:32 +07:00
|
|
|
hslaColor?: string;
|
|
|
|
|
}>();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2024-10-25 17:37:04 +07:00
|
|
|
<div
|
|
|
|
|
class="rounded q-px-sm flex-center"
|
2024-10-25 17:27:32 +07:00
|
|
|
:style="`color: hsla(var(${!!hslaColor ? hslaColor : '--green-6-hsl'}) / 0.8); background: hsla(var(${!!hslaColor ? hslaColor : '--green-6-hsl'}) / 0.1); `"
|
|
|
|
|
>
|
2024-10-28 14:22:11 +07:00
|
|
|
<Icon :icon="icon || 'mdi-circle-medium'" style="margin-right: 0.25rem" />
|
2024-10-25 17:37:04 +07:00
|
|
|
{{ title || (!!titleI18n ? $t(titleI18n) : '-') }}
|
|
|
|
|
</div>
|
2024-10-25 17:27:32 +07:00
|
|
|
</template>
|
|
|
|
|
|
2024-10-25 17:37:04 +07:00
|
|
|
<style scoped>
|
|
|
|
|
div {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
}
|
|
|
|
|
</style>
|