import {IBaseForm} from '../baseForm' import {paramsInterfaceValidKey} from '../../../script/index' export interface SelectInterface extends IBaseForm { filterable?: boolean isCustom?: boolean clearable?: boolean | Function collapseTags?: boolean multipleLimit?: number multiple?: boolean noDataText?: string popperClass?: string loading?: Function valueItem?: Boolean optionsLabel?: string optionsValue?: string options: Function prefixIcon?: string visibleChanges?: Function teleported?: boolean removeTag?: Function clear?: Function } export interface OptionsInterface { list: any } export class SelectConfig implements SelectInterface { valueItem = false optionsLabel = 'label' optionsValue = 'value' type = 'infoSelect' label = '' model = '' size = '' filterable = false isCustom = false collapseTags = false multipleLimit = 0 multiple = false noDataText = '暂无数据' popperClass = '' prefixIcon = '' constructor (params: SelectInterface) { paramsInterfaceValidKey(this, params) } defaultVal = () => '' placeholder = (): string => '请选择' disabled = (): boolean => false loading = (): boolean => false options = () => [] }