cwg-empty-state.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <view class="empty-state">
  3. <image class="img" src="/static/images/undraw.png" alt="" />
  4. <view class="r">
  5. <view class="title" v-if="title" v-t="title" />
  6. <view class="title" v-else v-t="'Documentary.tradingCenter.item143'" />
  7. </view>
  8. </view>
  9. </template>
  10. <script setup lang="ts">
  11. const props = defineProps({
  12. title: { type: String, default: '' }
  13. });
  14. </script>
  15. <style scoped lang="scss">
  16. @import "@/uni.scss";
  17. .empty-state {
  18. display: flex;
  19. padding: px2rpx(31) px2rpx(20);
  20. justify-content: center;
  21. align-items: center;
  22. border-radius: 12px;
  23. gap: px2rpx(24);
  24. .img {
  25. width: px2rpx(100) !important;
  26. height: px2rpx(98) !important;
  27. flex-shrink: 0;
  28. }
  29. .title {
  30. color: #fff;
  31. font-family: Roboto;
  32. font-size: px2rpx(26);
  33. font-style: normal;
  34. font-weight: 600;
  35. line-height: px2rpx(44);
  36. margin-bottom: px2rpx(8);
  37. }
  38. .text {
  39. color: #474747;
  40. font-family: Roboto;
  41. font-size: px2rpx(14);
  42. font-style: normal;
  43. font-weight: 400;
  44. line-height: px2rpx(20);
  45. letter-spacing: px2rpx(0.07);
  46. }
  47. }
  48. </style>