mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 20:29:35 +02:00
added directory for archive components or test components in /components/archive
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user