Files
vue-element-plus-admin/src/views/Authorization/Department/components/Detail.vue
kailong321200875 c72b3a33aa feat: 菜单管理
2023-08-05 17:43:24 +08:00

21 lines
504 B
Vue

<script setup lang="ts">
import { PropType } from 'vue'
import { DepartmentItem } from '@/api/department/types'
import { Descriptions, DescriptionsSchema } from '@/components/Descriptions'
defineProps({
currentRow: {
type: Object as PropType<Nullable<DepartmentItem>>,
default: () => null
},
detailSchema: {
type: Array as PropType<DescriptionsSchema[]>,
default: () => []
}
})
</script>
<template>
<Descriptions :schema="detailSchema" :data="currentRow || {}" />
</template>