cineclub-site/front/components/admin/alert.vue

15 lines
338 B
Vue
Raw Normal View History

2022-06-10 01:38:04 +02:00
<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>