export interface IConfigs { [key: string]: IConfig; } export interface IConfig { formType?: IFormType; label?: string; placeholder?: string; options?: any[]; props?: IProps; useNew?: boolean; mutexValues?: any[]; usePickerOptions?: IUsePickerOptions; fixInTop?: boolean; hide?: boolean | Function; hideInDropdown?: boolean; keys?: string[]; placeholders?: string[]; rangeSeparator?: string; onChange?: Function; useCheckAll?: boolean; nativeComponentEvent?: any; nativeComponentProps?: any; [key: string]: any; } export declare type IFormType = 'date-picker' | 'select' | 'cascader' | 'radio' | 'input' | 'input-range' | 'time-picker'; export declare type IUsePickerOptions = 'prev' | 'next' | ''; export interface IProps { label?: string; value?: string; [key: string]: any; } /***************************** 基础配置 start *********************************/ export interface ICondition { ref?: string; showTopRow?: boolean; showQuickFilter?: boolean; showCustomColumn?: boolean; showFormAction?: boolean; showDropdown?: boolean; showSearch?: boolean; showReset?: boolean; alignSearch?: 'left' | 'right'; form?: any; defaultForm?: any; formConfigs?: IFormConfigs; submitting?: boolean; complete?: boolean; error?: boolean; initing?: boolean; EmitChangeOnReset?: boolean; formProps?: IFormProps; pageUri?: string; typeMap?: any; autoSave?: boolean; saveParams?: any; autoUpdateDate?: string[]; events?: Record; [key: string]: any; } export interface IFormProps { validate?: boolean; [key: string]: any; } export interface IFormConfigs { [key: string]: IFormConfig; } export interface IFormConfig extends IConfig { multiple?: boolean; sort?: number; props?: IConfigProps; initWithIgnoreHide?: boolean; onInited?: Function; tableColumn?: string; submitToArray?: boolean; submitToNumber?: boolean; cacheOptions?: any[]; customSlot?: boolean; [key: string]: any; } export interface IConfigProps extends IProps { hideAll?: boolean; hasGather?: boolean; allLabel?: string; gatherLabel?: string; getOptions?: IGetOptions; clearOnOpen?: boolean; resetOnOpen?: boolean; reinitOnOpen?: boolean; history?: boolean; cache?: boolean; [key: string]: any; } export interface IGetOptions { module?: string; action?: string; state?: string; method?: string; api?: Function; params?: any; dataPath?: string; } /***************************** 基础配置 end *********************************/ /***************************** 额外功能配置 start *********************************/ export interface IChangeData { key?: string; value?: any; form?: any; configs?: IFormConfigs; unresetValue?: boolean; [key: string]: any; } export interface IChangeRequest { childKey?: string; api?: Function; params?: any; unresetValue?: boolean; otherParentKeys?: string[]; disabled?: boolean; unresetDisabled?: boolean; [key: string]: any; } export interface IExportExcel { exportColumns?: any[]; autoSetExportColumns?: boolean; exportType?: 'excel' | 'list'; fileName?: string; [key: string]: any; } export interface IGetFormatFormOptions { addPagination?: boolean; updateByConfig?: boolean; convdates?: IConvdate[]; [key: string]: any; } export interface IConvdate { originKey: string; beginKeys: string[]; endKeys: string[]; } /***************************** 额外功能配置 end *********************************/