scs-no-data.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!--
  2. * @Author: jmy
  3. * @Date: 2026-01-18 12:02:41
  4. * @LastEditors: Please set LastEditors
  5. * @LastEditTime: 2026-01-18 15:02:10
  6. * @Description:
  7. -->
  8. <template>
  9. <view class="scs-no-data">
  10. <image class="no-image" :style="{ 'width': width + 'px', 'height': height + 'px', 'margin-top': top + 'px' }" src="https://cos.his.cdwjyyh.com/fs/20240423/cf4a86b913a04341bb44e34bb4d37aa2.png">
  11. </image>
  12. <text class="no-desc" v-if="desc">{{ desc }}</text>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. props: {
  18. width: {
  19. type: Number,
  20. default: 80
  21. },
  22. height: {
  23. type: Number,
  24. default: 60
  25. },
  26. top: {
  27. type: Number,
  28. default: 80
  29. },
  30. desc: {
  31. type: String,
  32. default: '暂无数据'
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. //暂无数据
  39. .scs-no-data {
  40. width: 100%;
  41. display: flex;
  42. flex-direction: column;
  43. align-items: center;
  44. .no-image {
  45. width: 140px;
  46. height: 140px;
  47. margin-top: 100px;
  48. }
  49. .no-desc {
  50. font-size: 28rpx;
  51. color: #999999;
  52. }
  53. }
  54. </style>