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 i18n?: boolean } 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 = 'noData' popperClass = '' prefixIcon = '' constructor (params: SelectInterface) { paramsInterfaceValidKey(this, params) } defaultVal = () => '' placeholder = (): string => 'pleaseSelect' disabled = (): boolean => false loading = (): boolean => false options = () => [] }