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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'calender',
    label: '节假日期'
  },
  {
    field: 'week',
    label: '节假类型'
  }
])

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

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