index.vue 795 B

12345678910111213141516171819202122232425262728293031323334
  1. <!-- @format -->
  2. <script lang="ts" setup>
  3. defineProps<{
  4. emptyImg?: string
  5. title?: string
  6. description?: string
  7. }>()
  8. </script>
  9. <template>
  10. <div class="flex items-center justify-center w-full">
  11. <div class="flex items-center flex-col w-76 text-#999999">
  12. <slot name="icon" />
  13. <div v-if="!$slots.icon">
  14. <img
  15. src="~/assets/images/featured_empty.png"
  16. alt=""
  17. class="w-200px h-200px"
  18. srcset=""
  19. >
  20. </div>
  21. <div class="mb-4px mt-24px font-size-4 fw-500 line-height-6 break-all">
  22. {{ title }}
  23. </div>
  24. <div class="mb-6 font-size-3.5 fw-400 line-height-5 text-center">
  25. {{ description }}
  26. </div>
  27. <div class="flex gap-4">
  28. <slot />
  29. </div>
  30. </div>
  31. </div>
  32. </template>