import { FormComponentProps, WrappedFormUtils } from 'antd/lib/form/Form'; import { ColProps, RowProps } from 'antd/lib/grid'; import { ButtonProps } from '../ActionGroup'; import { Props as FieldGroupProps } from './FieldGroup'; import { Props as FieldProps } from './Field'; import AbstractForm from './AbstractForm'; export interface Props extends FormComponentProps { form: WrappedFormUtils; loading?: boolean; /** * 初始值 */ initialValue?: any; /** * 字段组包装组件 */ groupWrapper?: any; /** * 字段组信息 */ fieldGroups?: Array; fieldProps?: FieldProps; buttonContainerProps?: any; /** * 是否展示form按钮组,默认展示 */ isStatusActionGroup?: boolean; submitButton?: ButtonProps; resetButton?: ButtonProps; onSubmit?: (value: any, form: WrappedFormUtils) => void; /** * 表单重置 */ onReset?: (form: WrappedFormUtils) => void; /** * 按钮Item Props */ buttonItem?: any; /** * field group Row props */ row?: RowProps; /** * field group Col props */ col?: ColProps; [key: string]: any; } /** * @author 田尘殇Sean(sean.snow@live.com) create at 2018/7/28 */ export declare class Form extends AbstractForm { handleSubmit(): void; /** * 清空表单 */ handleReset(): void; render(): JSX.Element; }