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.

24 lines
483 B

  1. <template lang="pug">
  2. transition(name='page-loader')
  3. .page-loader(v-if='isShown')
  4. i
  5. span {{ msg }}
  6. </template>
  7. <script>
  8. export default {
  9. name: 'page-loader',
  10. props: ['text'],
  11. data () {
  12. return {}
  13. },
  14. computed: {
  15. msg () { return this.$store.state.pageLoader.msg },
  16. isShown () { return this.$store.state.pageLoader.shown }
  17. },
  18. mounted() {
  19. this.$store.commit('pageLoader/msgChange', this.text)
  20. }
  21. }
  22. }
  23. </script>