import React, { useRef } from 'react'; import { Button, Form } from 'antd'; import { ModalForm, ProFormText, } from '@ant-design/pro-form'; export default (props) => { const { title, triggerRender, editData = null, onFinish } = props; const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 16 } }; const initialValues = {}; const [form] = Form.useForm(); const formRef = useRef(); return ( {title || ''} } layout="horizontal" grid={true} {...formItemLayout} modalProps={{ destroyOnClose: true, onCancel: () => { }, }} onFinish={async (values) => { return onFinish && await onFinish({ ...values, msg: '重置密码' }, editData, '重置密码') }} width={500} > ); };