23 lines
478 B
Vue
23 lines
478 B
Vue
<script setup lang="ts">
|
|
import BaseCheckbox from './base-checkbox.vue'
|
|
import { specialEduCode } from '~/lib/clinical.constants'
|
|
import { mapToCheckItems } from '~/lib/utils'
|
|
interface Props {
|
|
label: string
|
|
fieldName: string
|
|
colSpan?: number
|
|
}
|
|
defineProps<Props>()
|
|
|
|
const specialItems = mapToCheckItems(specialEduCode)
|
|
</script>
|
|
|
|
<template>
|
|
<BaseCheckbox
|
|
:field-name="fieldName"
|
|
:label="label"
|
|
:col-span="colSpan"
|
|
:items="specialItems"
|
|
/>
|
|
</template>
|