index.vue 904 B

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