Empty.vue 505 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div class="Empty">
  3. <img src="./imgs/nomore.png" alt="" />
  4. <div class="text">{{ props.text }}</div>
  5. </div>
  6. </template>
  7. <script setup lang="ts">
  8. const props = withDefaults(
  9. defineProps<{
  10. text?: string
  11. }>(),
  12. {
  13. text: "暂无内容"
  14. }
  15. )
  16. </script>
  17. <style lang="scss" scoped>
  18. .Empty {
  19. display: flex;
  20. flex-direction: column;
  21. align-items: center;
  22. > img {
  23. width: 158px;
  24. }
  25. .text {
  26. margin-top: 6px;
  27. font-size: 16px;
  28. color: #777777;
  29. }
  30. }
  31. </style>