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>
);
這里怎么獲取這兩個表單的數(shù)據(jù)?上面的做法是被報錯的,會提示getFieldProps2 未定義
同一個js中寫了多張form表單,數(shù)據(jù)如何傳出,也就是getFieldProps怎么綁定
喵喵時光機
2018-10-11 14:13:28