2
0

loader.vue 956 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template lang='pug'>
  2. v-dialog(v-model='value', persistent, max-width='350')
  3. v-card.loader-dialog.radius-7(:color='color', dark)
  4. v-card-text.text-xs-center.py-4
  5. atom-spinner.is-inline(
  6. :animation-duration='1000'
  7. :size='60'
  8. color='#FFF'
  9. )
  10. .subheading {{ title }}
  11. .caption {{ subtitle }}
  12. </template>
  13. <script>
  14. import { AtomSpinner } from 'epic-spinners'
  15. export default {
  16. components: {
  17. AtomSpinner
  18. },
  19. props: {
  20. value: {
  21. type: Boolean,
  22. default: false
  23. },
  24. color: {
  25. type: String,
  26. default: 'blue darken-3'
  27. },
  28. title: {
  29. type: String,
  30. default: 'Working...'
  31. },
  32. subtitle: {
  33. type: String,
  34. default: 'Please wait'
  35. }
  36. }
  37. }
  38. </script>
  39. <style lang='scss'>
  40. .loader-dialog {
  41. .atom-spinner.is-inline {
  42. display: inline-block;
  43. }
  44. .caption {
  45. color: rgba(255,255,255,.7);
  46. }
  47. }
  48. </style>