Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

37 wiersze
703 B

  1. <template>
  2. <view class="ai-empty">
  3. <text class="ai-empty__title">{{ title }}</text>
  4. <text v-if="desc" class="ai-empty__desc">{{ desc }}</text>
  5. <slot />
  6. </view>
  7. </template>
  8. <script setup>
  9. /**
  10. * 通用空状态组件(easycom 自动注册,模板中直接写 <ai-empty />)
  11. */
  12. defineProps({
  13. title: { type: String, default: '暂无数据' },
  14. desc: { type: String, default: '' }
  15. })
  16. </script>
  17. <style lang="scss" scoped>
  18. .ai-empty {
  19. padding: 160rpx 40rpx 0;
  20. display: flex;
  21. flex-direction: column;
  22. align-items: center;
  23. &__title {
  24. font-size: 32rpx;
  25. font-weight: 700;
  26. }
  27. &__desc {
  28. margin-top: 12rpx;
  29. font-size: 26rpx;
  30. color: $ai-muted;
  31. }
  32. }
  33. </style>