feat [front]: alert component
This commit is contained in:
parent
ebc0af117b
commit
e9f3574279
1 changed files with 14 additions and 0 deletions
14
front/components/admin/alert.vue
Normal file
14
front/components/admin/alert.vue
Normal 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>
|
Loading…
Reference in a new issue