<script setup lang="tsx">
import { PropType, ref } from 'vue'
import { TableData } from '@/api/dataset/RepDataModel/types'
import { Descriptions, DescriptionsSchema } from '@/components/Descriptions'

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'modelCode',
    label: '模型编码'
  },
  {
    field: 'modelName',
    label: '模型名称'
  },
  {
    field: 'description',
    label: '描述'
  },
  {
    field: 'organCode',
    label: '用户所属机构'
  },
  {
    field: 'createUser',
    label: '登录用户'
  },
  {
    field: 'createDate',
    label: '创建日期'
  }
])

defineProps({
  currentRow: {
    type: Object as PropType<TableData>,
    default: () => {}
  }
})
</script>

<template>
  <Descriptions :schema="detailSchema" :data="currentRow || {}" />
</template>
