import type { PropType } from 'vue' import type { JrComponent } from './_shared' import FormCombobox from '@antfu/design/components/Form/FormCombobox.vue' import FormSelect from '@antfu/design/components/Form/FormSelect.vue' import { useBoundProp } from '@json-render/vue' import { computed, defineComponent, h, ref } from 'vue' interface SelectOption { value: string label?: string /** Icon/description are accepted by the catalog but not rendered by the reference select. */ icon?: string description?: string } interface SelectProps { value?: string options?: (string | SelectOption)[] placeholder?: string label?: string disabled?: boolean /** Swap the plain select for a searchable combobox. */ searchable?: boolean /** * Renders a real `