在弹框中获取from数据的方法 在class类中 1.声明 formRef = React.createRef(); 2.Ref 绑定from 3. 获取表单数据的方法 this.formRef.current.validateFields().then(values=>{}) 在hooks中 绑定ref 获取表单数据 descFrom.current.validateFields().then(values=>{})