const { getFieldProps } = this.props.form; const { getFieldProps2 } = this.props.form2;return( <Form inline form={this.props.form} onSubmit={this.handleActivitySearch}> ... <Input style={{}} type="text" placeholder="" {...getFieldProps('userID', {initialValue: '' })} /> </Form> <Form inline form={this.props.form2} onSubmit={this.handleActivitySearch}> <Input style={{}} type="text" placeholder="" {...getFieldProps2('userID', {initialValue: '' })} /> ... </Form> ); 这里怎么获取这两个表单的数据?上面的做法是被报错的,会提示getFieldProps2 未定义
相关分类