mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
957 B
59 lines
957 B
<template lang='pug'>
|
|
v-snackbar.nav-notify(
|
|
:color='notification.style'
|
|
top
|
|
multi-line
|
|
auto-height
|
|
v-model='notificationState'
|
|
)
|
|
.text-xs-left
|
|
v-icon.mr-3(dark) {{ notification.icon }}
|
|
span {{ notification.message }}
|
|
</template>
|
|
|
|
<script>
|
|
import { get, sync } from 'vuex-pathify'
|
|
|
|
export default {
|
|
data() {
|
|
return { }
|
|
},
|
|
computed: {
|
|
notification: get('notification'),
|
|
notificationState: sync('notification@isActive')
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang='scss'>
|
|
.nav-notify {
|
|
top: 60px;
|
|
z-index: 999;
|
|
|
|
.v-snack__content {
|
|
position: relative;
|
|
|
|
&::after {
|
|
content: '';
|
|
display: block;
|
|
width: 100%;
|
|
height: 2px;
|
|
background-color: rgba(255,255,255,.4);
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
animation: nav-notify-anim 6s linear;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes nav-notify-anim {
|
|
0% {
|
|
width: 100%;
|
|
}
|
|
100% {
|
|
width: 0%;
|
|
}
|
|
}
|
|
</style>
|