2023-07-10 19:54:13 +02:00
|
|
|
<template>
|
|
|
|
<div class="root bg-sky-100 dark:bg-sky-900 dark:bg-opacity-25 border border-sky-200 dark:border-sky-500 rounded-lg px-4 py-3 mb-4">
|
2023-07-12 15:51:05 +02:00
|
|
|
<div class="mb-1.5 text-sm font-sans text-sky-700 dark:text-sky-300">
|
2023-07-13 17:38:17 +02:00
|
|
|
<InfoIco class="mr-1" />{{ realLabel }}
|
2023-07-12 15:51:05 +02:00
|
|
|
</div>
|
2023-07-10 19:54:13 +02:00
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2023-07-13 17:38:17 +02:00
|
|
|
import InfoIco from 'bi/info-circle.svg';
|
2023-07-12 15:51:05 +02:00
|
|
|
const { t } = useI18n();
|
2023-07-10 19:54:13 +02:00
|
|
|
|
2023-07-12 15:51:05 +02:00
|
|
|
const props = defineProps<{
|
|
|
|
label?: string;
|
|
|
|
}>();
|
|
|
|
|
|
|
|
const realLabel = computed(() => props.label ? props.label : t('_content.tip'));
|
2023-07-10 19:54:13 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.root > ::v-deep(*:last-child) {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
</style>
|