import {ReactNode} from 'react' export type ObjectId = string | number export type OptionObjectValue = ObjectId export interface OptionObject { /** * 唯一标识 */ id?: OptionObjectValue /** * 作为 id 的 alias */ value: OptionObjectValue /** * 显示文字 * - 作为"已选择"显示值 * - 如不指定 OptionObject['content'],则亦作为"选项"的显示内容 */ label?: string /** * "选项"显示容,如不指定,则使用 OptionObject['label'] 作为"选项"的显示内容 */ content?: ReactNode /** * 是否禁用 */ disabled?: boolean /** * 子选项 */ children?: OptionObject[] } export type TimeoutId = ReturnType