const fields = ['notifyUrl'];
@reduxForm(
{form:"callback", fields},
state=> {
return {
notifyUrl: state.organization.notifications,
params: state.router.params,
onSubmit: (values,dispatch) => { }
}
})
render中的 代码
let {fields:{notifyUrl},handleSubmit} = this.props;
<TextField style={style.textField} {...notifyUrl}
fullWidth={true}
hintText="请输入通知地址"
/>
输入框无法显示已经存在的 notifyUrl