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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'reportCode',
    label: '报表编码'
  },
  {
    field: 'reportName',
    label: '报表名称'
  },
  {
    field: 'reportVersion',
    label: '报表版本'
  },
  {
    field: 'reportUnit',
    label: '报表单位'
  },
  {
    field: 'reportFrequency',
    label: '报表频度'
  },
  {
    field: 'itemName',
    label: '指标名称'
  },
  {
    field: 'itemType',
    label: '指标类型'
  },
  {
    field: 'itemRow',
    label: '指标行坐标'
  },
  {
    field: 'itemColumn',
    label: '指标列坐标'
  }
])

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

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