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