import {IBaseForm} from '../baseForm' import {paramsInterfaceValidKey, ObjectInterface} from '../../../script/index' interface AttrDynamicInterface { rule: Function } interface ListInterface { show?: Function tipDisable?: boolean label: Function type?: string icon?: string loading?: Function disabled?: Function plain?: string text?: boolean circle?: boolean method?: Function } interface OperatesInterface { width: string height?: string fixed?: string list: ListInterface[] i18n?: boolean } export interface RuleInterInter { tips: Function } export type GetResultInter = (init?: boolean, searchFiled?: string) => void export interface DynamicInterface extends IBaseForm { tableSize?: string height?: string showIndex?: boolean indexLabel?: string indexWidth?: number // dynamic?: AttrDynamicInterface rule: Function | Array noOper?: Function hiddenAdd?: Function showUpload?: boolean hiddenRemove?: Function disabledRemove?: Function disabledAdd?: Function disabledUpload?: Function disabledAddAll?: Function showAddAll?: Function deleteRow?: Function dropEnd?: Function operates?: OperatesInterface pagination?: boolean isSplit?: boolean id?: string modelFormat?: string addRow?: Function addAll?: Function delRow?: Function rowKey?: string isValidDate?: boolean isDrop?: boolean isSearch?: boolean disabledHeader?: Function } export interface ResultInterface { list: any[] } export class DynamicConfig implements DynamicInterface { model = '' label = '' type = 'infoDynamic' height = '100%' tableSize = '' showIndex = false indexLabel = (window as any).$t('tableIndex') indexWidth = 55 rule = () => [] noOper = () => false showUpload = false pagination = false isSplit = false isDrop = false hiddenAdd = () => false hiddenRemove = () => false showAddAll = () => false constructor (params: DynamicInterface) { paramsInterfaceValidKey(this, params) } }