ArtifactDetail.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <script setup lang="ts">
  2. import CommonDetail from './CommonDetail.vue';
  3. </script>
  4. <template>
  5. <CommonDetail v-bind="$attrs">
  6. <template #afterTitle="{ content }">
  7. <div class="desc">
  8. <div>地址: {{ content?.address }}</div>
  9. <div>年代: {{ content?.age }}</div>
  10. <div>级别: {{ content?.levelText }}</div>
  11. <div>所属区域: {{ content?.regionText }}</div>
  12. <div>文物类型: {{ content?.crTypeText }}</div>
  13. </div>
  14. </template>
  15. <template #beforeContent="{ content }">
  16. <h3>文物介绍:</h3>
  17. </template>
  18. <template #afterContent="{ content }">
  19. <h3>文物价值:</h3>
  20. <SimpleRichHtml :contents="[ content?.value as string || '暂无' ]" noScroll />
  21. </template>
  22. </CommonDetail>
  23. </template>
  24. <style lang="scss" scoped>
  25. h3 {
  26. font-size: 0.8rem;
  27. color: var(--color-text-primary);
  28. text-align: left;
  29. width: 100%;
  30. margin-top: 0.5rem;
  31. }
  32. .desc {
  33. display: flex;
  34. flex-direction: row;
  35. flex-wrap: wrap;
  36. justify-content: space-between;
  37. div {
  38. width: 48%;
  39. color: var(--color-text-primary);
  40. font-size: 0.8rem;
  41. }
  42. }
  43. </style>