index.vue 510 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <div :class="['search-result-loading', !isPC && 'search-result-loading-h5']">
  3. <Loading
  4. width="40px"
  5. height="40px"
  6. />
  7. </div>
  8. </template>
  9. <script setup lang="ts">
  10. import Loading from '../../../common/Loading/index.vue';
  11. import { isPC } from '../../../../utils/env';
  12. </script>
  13. <style scoped lang="scss">
  14. .search-result-loading {
  15. width: 100%;
  16. flex: 1;
  17. display: flex;
  18. justify-content: center;
  19. align-items: center;
  20. &-h5 {
  21. background-color: #f4f4f4;
  22. }
  23. }
  24. </style>