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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'pkid',
    label: '主键'
  },
  {
    field: 'filename',
    label: '文件名'
  },
  {
    field: 'documentcontent',
    label: '文档内容'
  },
  {
    field: 'createdate',
    label: '创建日期'
  },
  {
    field: 'createuser',
    label: '创建者'
  },
  {
    field: 'status',
    label: '状态'
  },
  {
    field: 'attribute1',
    label: '时间'
  },
  {
    field: 'attribute2',
    label: '附件名'
  },
  {
    field: 'uploadid',
    label: '附件id'
  }
])

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

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