loading.vue 708 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="loading-box">
  3. <view class="rotate iconfont icon-loading" ></view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {};
  10. },
  11. methods: {
  12. },
  13. computed: {
  14. }
  15. };
  16. </script>
  17. <style>
  18. .loading-box {
  19. width: 100%;
  20. height: 100%;
  21. background-color: rgba(0, 0, 0, 0.4);
  22. position: absolute;
  23. left: 0;
  24. top: 0;
  25. z-index: 10000;
  26. display: flex;
  27. justify-content: center;
  28. align-items: center;
  29. }
  30. .rotate {
  31. animation: rotate 2s ease-in-out infinite;
  32. font-size: 100rpx;
  33. }
  34. @keyframes rotate {
  35. from {
  36. transform: rotate(0deg)
  37. }
  38. to {
  39. transform: rotate(360deg)
  40. }
  41. }
  42. </style>