import { IBaseForm } from '../baseForm' import { ObjectInterface, paramsInterfaceValidKey } from '../../../script/index' export interface AddFormInterface extends IBaseForm { closable?: boolean addable?: boolean // rule: Array rule: Function filterPane?: Function paneLabel?: string labelWidth?: string model: string afterAdd?: Function afterRemove?: Function } export interface dynamicInter { fields: ObjectInterface[] } export interface EditableTabsInter { list: ObjectInterface[] } export class AddFormConfig implements AddFormInterface { model = '' type = 'infoAddForm' label = '' closable = false addable = false paneLabel = '' labelWidth = '' rule = () => [] afterAdd = (): void => {} afterRemove = (): void => {} filterPane = (): void => {} constructor (params: AddFormInterface) { paramsInterfaceValidKey(this, params) } }