emptyPage.vue 554 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <view class="empty-box">
  3. <image src="../static/images/empty-box.png"></image>
  4. <view class="txt">{{ title }}</view>
  5. </view>
  6. </template>
  7. <script setup>
  8. defineProps({
  9. title: {
  10. type: String,
  11. default: '暂无记录'
  12. }
  13. })
  14. </script>
  15. <style lang="scss">
  16. .empty-box {
  17. display: flex;
  18. flex-direction: column;
  19. justify-content: center;
  20. align-items: center;
  21. margin-top: 200rpx;
  22. padding-bottom: 60rpx;
  23. image {
  24. width: 414rpx;
  25. height: 240rpx;
  26. }
  27. .txt {
  28. font-size: 26rpx;
  29. color: #999;
  30. }
  31. }
  32. </style>