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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'dataDate',
    label: '数据日期'
  },
  {
    field: 'orgNo',
    label: '金融许可证号'
  },
  {
    field: 'dicCode',
    label: '关键基础数据编码'
  },
  {
    field: 'dicColVal1',
    label: '关键基础数据_第一列'
  },
  {
    field: 'dicColVal2',
    label: '关键基础数据_第二列'
  }
])

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

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