added directory for archive components or test components in /components/archive

This commit is contained in:
Kostya
2023-11-26 00:33:09 +03:00
parent a3531dfda8
commit 753432e7b7

View File

@@ -1,38 +0,0 @@
<template>
<transition name="fade">
<div class="notification" v-if="isAnimationOn">
<div class="notification__content">
<h3>Анимации выключены</h3>
</div>
</div>
</transition>
</template>
<script>
import '@/assets/css/ComponentsStyles/notification.css'
export default {
props: {
isAnimationOn: Boolean
},
emits: ['animationchange'],
methods: {
NotificationsTimer() {
setTimeout(() => {
this.$emit('animationchange', false)
}, 4000)
}
},
watch: {
isAnimationOn(newVal, oldVal) {
if (newVal !== oldVal) {
this.NotificationsTimer()
}
}
}
}
</script>
<style>
</style>