import { FormProps, FormInstance } from 'antd'; import React, { CSSProperties } from 'react'; import 'antd/es/button/style/index'; import 'antd/es/form/style/index'; import 'antd/es/modal/style/index'; import 'antd/es/input/style/index'; import './index.less'; interface ILxModalFormIndexProps { /** * @description 回显数据 */ data?: any; /** * @description 对话框是否可见 * @default false */ open: boolean; /** * @description 表单配置 */ formConf?: FormProps; /** * @description 对话框标题 */ title?: any; /** * @description Modal body 样式 */ bodyStyle?: CSSProperties; /** * @description 表单实例 */ form?: FormInstance; /** * @description 表单唯一标识 */ formName?: string; /** * @description 表单初始值 */ initialValues?: any | undefined; /** * @description 对话框外层容器的类名 */ wrapClassName?: string; /** * @description 对话框数据加载 */ loading?: boolean; /** * @description 对话框宽度 */ width?: number; /** * @description 表单字段 */ children?: any; /** * @description 对话框保存方法 */ onSubmit?: (data: any, formVal?: any) => Promise; /** * @description 对话框关闭方法 */ onClose?: () => void; footer?: React.ReactNode; } declare const ModalForm: React.FC; export default ModalForm;