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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'systemName',
    label: '系统名称'
  },
  {
    field: 'systemVersion',
    label: '系统版本号'
  },
  {
    field: 'modelId',
    label: '模型ID'
  },
  {
    field: 'modelName',
    label: '模型名称'
  },
  {
    field: 'storeType',
    label: '存储方式'
  },
  {
    field: 'storeFrequency',
    label: '存储频度'
  }
])

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

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