2020-01-29 19:37:25 +00:00
|
|
|
<template>
|
|
|
|
<div class="fpezltsf" :class="{ warn }">
|
2022-12-19 10:01:30 +00:00
|
|
|
<i v-if="warn" class="ti ti-alert-triangle"></i>
|
|
|
|
<i v-else class="ti ti-info-circle"></i>
|
2020-01-29 19:37:25 +00:00
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-09-06 09:09:17 +00:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2022-09-06 09:09:17 +00:00
|
|
|
const props = defineProps<{
|
|
|
|
warn?: boolean;
|
|
|
|
}>();
|
2020-01-29 19:37:25 +00:00
|
|
|
</script>
|
|
|
|
|
2022-12-27 09:01:06 +00:00
|
|
|
<style lang="scss">
|
2020-01-29 19:37:25 +00:00
|
|
|
.fpezltsf {
|
2022-12-20 04:12:32 +00:00
|
|
|
padding: 12px 14px;
|
2020-01-29 19:37:25 +00:00
|
|
|
font-size: 90%;
|
|
|
|
background: var(--infoBg);
|
|
|
|
color: var(--infoFg);
|
2021-01-11 11:38:34 +00:00
|
|
|
border-radius: var(--radius);
|
2020-01-29 19:37:25 +00:00
|
|
|
|
|
|
|
&.warn {
|
|
|
|
background: var(--infoWarnBg);
|
|
|
|
color: var(--infoWarnFg);
|
|
|
|
}
|
|
|
|
|
|
|
|
> i {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|