/** * 下拉列表 */ export interface OptionProps { value: string | number | boolean label: string id: string disabled?: boolean children: Array [key: PropertyKey]: unknown } /** * 替换 title,value,key,children 字段为 中对应的字段 * {children:'children', label:'title', key:'key', value: 'value' } */ export interface OptionKeys { /** * label 对应的字段 */ label: string /** * value 对应的字段 */ value: string /** * children对应的字段 */ children?: string /** * name 对应的字段 */ name?: string /** * key 对应的字段 */ key?: string }