cwg-empty-state.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <view class="empty-state">
  3. <image class="img" src="/static/images/no-data.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: 0 px2rpx(20);
  20. flex-direction: column;
  21. justify-content: center;
  22. align-items: center;
  23. border-radius: 12px;
  24. gap: px2rpx(24);
  25. .img {
  26. width: px2rpx(200) !important;
  27. height: px2rpx(200) !important;
  28. flex-shrink: 0;
  29. }
  30. .title {
  31. color: var(--bs-emphasis-color);
  32. font-family: Roboto;
  33. font-size: px2rpx(26);
  34. font-style: normal;
  35. font-weight: 600;
  36. line-height: px2rpx(44);
  37. margin-bottom: px2rpx(8);
  38. }
  39. .text {
  40. color: #474747;
  41. font-family: Roboto;
  42. font-size: px2rpx(14);
  43. font-style: normal;
  44. font-weight: 400;
  45. line-height: px2rpx(20);
  46. letter-spacing: px2rpx(0.07);
  47. }
  48. }
  49. </style>