feat [front]: alert component

This commit is contained in:
Alice 2022-06-10 01:38:04 +02:00
parent ebc0af117b
commit e9f3574279

View file

@ -0,0 +1,14 @@
<template>
<div class="notification is-light" :class="`is-${type}`">
<button class="delete" @click="show = false" />
<slot />
</div>
</template>
<script setup lang="ts">
defineProps({
type: { type: String, default: "info" },
modelValue: { type: Boolean, default: false },
})
const show = useModel("modelValue")
</script>