Detail.vue 412 B

12345678910111213141516171819
  1. <script setup lang="ts">
  2. import { PropType } from 'vue'
  3. import { Descriptions, DescriptionsSchema } from '@common/src/components/Descriptions'
  4. defineProps({
  5. currentRow: {
  6. type: Object,
  7. default: () => {}
  8. },
  9. detailSchema: {
  10. type: Array as PropType<DescriptionsSchema[]>,
  11. default: () => []
  12. }
  13. })
  14. </script>
  15. <template>
  16. <Descriptions :schema="detailSchema" :data="currentRow" />
  17. </template>