index.vue 882 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view class="none-box">
  3. <img :src="icon" alt="" style="width: 267rpx; height: 267rpx;">
  4. <view class="none-text">{{value}}</view>
  5. </view>
  6. </template>
  7. <script setup>
  8. const props = defineProps({
  9. value: {
  10. type: String,
  11. default: '数据为空'
  12. },
  13. icon: {
  14. type: String,
  15. default: '/static/serverImg/list/null.png'
  16. }
  17. })
  18. </script>
  19. <style scoped lang="scss">
  20. .none-box{
  21. display: flex;
  22. flex-direction: column;
  23. align-items: center;
  24. justify-content: center;
  25. margin-top: 103rpx;
  26. .none-text {
  27. font-family: Inter;
  28. font-size: 27.63rpx;
  29. font-weight: bold;
  30. line-height: 33.63rpx;
  31. text-align: center;
  32. display: flex;
  33. align-items: center;
  34. letter-spacing: normal;
  35. color: #687383;
  36. margin-top: 14rpx;
  37. }
  38. }
  39. </style>