loading.vue 557 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <div class="loadingBox" v-show="displayStatus" ref="alertMsg">
  3. <img class="contentImg" src="../assets/loading.gif" alt="">
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name:"loading",
  9. props:{
  10. displayStatus: Boolean,
  11. }
  12. }
  13. </script>
  14. <style scoped>
  15. .loadingBox{
  16. position: fixed;
  17. left: 0;
  18. top: 0;
  19. z-index: 999;
  20. width: 375px;
  21. height: 100vh;
  22. display: flex;
  23. justify-content: center;
  24. align-items: center;
  25. }
  26. .contentImg{
  27. z-index: 999;
  28. width: 60px;
  29. height: 60px;
  30. }
  31. </style>