Files
PORTAL_COD2/src/front/src/components/UI/alerts-dialog.vue
T
2023-11-27 15:53:14 +03:00

40 lines
599 B
Vue

<template>
<v-alert
width = "500"
position="fixed"
class="bottom-alert"
type="success"
title="Успех!"
text="Файл загружен"
:value="alert"
closable
></v-alert>
</template>
<script>
import { ref } from 'vue'
export default {
// props: {
// alert: {
// type: Boolean,
// default: false
// }
// },
setup(){
defineProps(['alert'])
// defineEmits(['update:alert'])
// const alert = ref(true)
return {defineProps}
}
}
</script>
<style>
.bottom-alert {
bottom: 10px;
left: 40%;
}
</style>