no-data.vue 614 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <view class="no_data">
  3. <image class="no_data_img" src="@/static/image/bg/no_data.png"></image>
  4. <text class="no_data_text">{{text}}</text>
  5. </view>
  6. </template>
  7. <script setup>
  8. const props = defineProps({
  9. text:{
  10. type: String,
  11. default: '暂无数据'
  12. }
  13. })
  14. </script>
  15. <style scoped lang="scss">
  16. .no_data{
  17. display: flex;
  18. flex-direction: column;
  19. justify-content: center;
  20. align-items: center;
  21. height: 362rpx;
  22. .no_data_img{
  23. width: 464rpx;
  24. height: 278rpx;
  25. }
  26. .no_data_text{
  27. color: #999999;
  28. font-weight: 400;
  29. font-size: 24rpx;
  30. line-height: 36rpx;
  31. }
  32. }
  33. </style>