2
  1. 使用

{this.props.form.getFieldDecorator("key",{})(<Input />)}

  1. 设值

this.props.form.setFieldsValue({

key: '123',

})

  1. 取值

this.props.form.validateFields((err, values) => {

if (!err) {
   console.log("表单信息", values);
}

});

  1. 清空值

this.props.form.resetFields();


娜娜
33 声望6 粉丝

前端工程师一枚