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.
25 lines
483 B
25 lines
483 B
8 years ago
|
<template lang="pug">
|
||
|
transition(name='page-loader')
|
||
|
.page-loader(v-if='isShown')
|
||
|
i
|
||
|
span {{ msg }}
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: 'page-loader',
|
||
|
props: ['text'],
|
||
|
data () {
|
||
|
return {}
|
||
|
},
|
||
|
computed: {
|
||
|
msg () { return this.$store.state.pageLoader.msg },
|
||
|
isShown () { return this.$store.state.pageLoader.shown }
|
||
|
},
|
||
|
mounted() {
|
||
|
this.$store.commit('pageLoader/msgChange', this.text)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|