import type { VueNode } from '../../_util/type'; import { objectType, anyType } from '../../_util/type'; import type { ExtractPropTypes, HTMLAttributes } from 'vue'; import { defineComponent } from 'vue'; export const baseOptionsProps = { value: String, disabled: Boolean, payload: objectType>(), }; export const optionProps = { ...baseOptionsProps, label: anyType VueNode)>([]), }; export type BaseOptionsProps = Partial> & Partial; export type OptionProps = Partial> & Partial; export default defineComponent({ compatConfig: { MODE: 3 }, name: 'Option', props: optionProps, render(_props: any, { slots }: any) { return slots.default?.(); }, });