/** * @desc 抽屉表单布局根组件 * @author 智慧能源事业部-蔡利平 */ import { FormProps } from 'antd'; import React, { ReactNode } from 'react'; import { IDrawerFormRowType } from './FormLayoutRow'; type FormContextType = { rowCols: number; maxItemWidth: string; gap: number; readOnly?: boolean; }; export declare const FormContext: React.Context; interface FormLayoutProps extends Omit { /** label统一宽度(方便做对齐效果) */ labelWidth?: string; /** 表单元素最大宽度 */ maxItemWidth?: string; /** 每行列数,默认3 */ rowCols?: 1 | 2 | 3 | 4 | 6 | 8 | 12 | 24; /** 每列之间的间隔 */ gap?: number; /** 全局只读状态,,默认false,优先级低于Item的readOnly */ readOnly?: boolean; style?: React.CSSProperties; children: ReactNode; } declare const FormLayout: { (props: FormLayoutProps): React.JSX.Element; Row: React.NamedExoticComponent; Item: React.NamedExoticComponent & { readOnly?: boolean | undefined; span?: string | number | undefined; }>; useForm: typeof import("antd/lib/form/Form").useForm; }; export default FormLayout;