import * as React from "react"; import { ConfigConsumerProps } from "../Config"; interface IGroupItem { groupName: string; groupContent: React.ReactNode; } interface IColumnItem { columnContent: React.ReactNode; } interface IFormProps { /** * 默认前缀 * * @default 'lg' **/ prefixCls?: string; /** * 自定义组件类名 * * @default '' **/ className?: string; /** * 自定义组件样式 * * @default **/ style?: React.CSSProperties; /** * 组件包含的内容 * * @default null **/ children?: React.ReactNode; /** * 对齐方式 * * @default 'right' **/ alignment?: "right" | "top" | "left"; /** * 表单分组信息 * * @default null **/ groupInfo?: IGroupItem[]; /** * 是否一行多列 * * @default null **/ column?: IColumnItem[]; /** * 表单提交回调方法 * * @default () => void; **/ onSubmit?: () => void; /** * 提交url * * @default ''; **/ action?: ''; /** * 表单提交方法 * * @default 'get'; **/ method?: 'get' | 'post'; } declare class Form extends React.Component { static defaultProps: { className: string; alignment: string; }; constructor(props: IFormProps); handleSubmit: () => void; renderForm: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default Form;