import { IBaseForm } from '../baseForm' import { paramsInterfaceValidKey } from '../../../script/index' export interface SelectInterface extends IBaseForm { filterable?: boolean isCustom?: boolean clearable?: boolean collapseTags?: boolean multiple?: boolean noDataText?: string popperClass?: string loading?: Function valueItem?: Boolean optionsLabel?: string optionsValue?: string options: Function visibleChanges?: Function teleported?: boolean i18n?: boolean } export interface listInterface { list: any } export class CustomSelectConfig implements SelectInterface { model = '' label = '' valueItem = false optionsLabel = 'label' optionsValue = 'value' type = 'infoCustomSelect' filterable = false isCustom = false clearable = false collapseTags = false multiple = false noDataText = 'noData' popperClass = '' size = '' options = () => [] loading = (): void => {} methods = (): void => {} placeholder = (): string => 'pleaseSelect' constructor (params: SelectInterface) { paramsInterfaceValidKey(this, params) } }