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.

39 lines
627 B

2 years ago
  1. <template>
  2. <div class="vld-parent">
  3. <loading
  4. :active="isLoading"
  5. :can-cancel="false"
  6. :on-cancel="onCancel"
  7. :is-full-page="fullPage"
  8. :color="color"
  9. :lock-scroll="true"
  10. />
  11. </div>
  12. </template>
  13. <script>
  14. import Loading from "vue-loading-overlay";
  15. import "vue-loading-overlay/dist/vue-loading.css";
  16. export default {
  17. props: {
  18. isLoading: {
  19. type: Boolean,
  20. },
  21. },
  22. data() {
  23. return {
  24. fullPage: true,
  25. color: "#F48800",
  26. };
  27. },
  28. components: {
  29. Loading,
  30. },
  31. methods: {
  32. onCancel() {
  33. this.$emit("loading", false);
  34. },
  35. },
  36. };
  37. </script>