Files
LuckyDiamond/luckydiamond/src/components/NotiicationwindowComponent.vue
2024-01-28 00:00:38 +01:00

36 lines
648 B
Vue

<template>
<div class="notification" v-if="notification">
<div class="notification__content">
<h3>Операция вывода отправлена</h3>
</div>
</div>
</template>
<script>
import '@/assets/css/ComponentsStyles/notification.css'
export default {
props: {
notification: Boolean
},
emits: ['notificationremove'],
methods: {
NotificationsTimer() {
setTimeout(() => {
this.$emit('notificationremove')
}, 4000)
}
},
watch: {
notification(newVal, oldVal) {
if (newVal !== oldVal) {
this.NotificationsTimer()
}
}
}
}
</script>
<style>
</style>