Open DreFalPoetry opened 7 years ago
https://github.com/react-component/form#option-object 详情链接
const EnhancedForm = createForm()(Form); //定义的组件 <EnhancedForm wrappedComponentRef={(inst) => this.formRef = inst} /> 通过该方式为组件添加标识 this.formRef //直接通过this.formRef获取到该组件
https://github.com/react-component/form#option-object 详情链接
const EnhancedForm = createForm()(Form); //定义的组件 <EnhancedForm wrappedComponentRef={(inst) => this.formRef = inst} /> 通过该方式为组件添加标识 this.formRef //直接通过this.formRef获取到该组件