40 lines
599 B
Vue
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> |