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