- Support switching from different components with same field name. #117
- Remove
option.exclusive
ofgetFieldProps
andgetFieldDecorator
, just use something likeantd.Radio.Group
orantd.Checkbox.Group
as workaround. - Add
createFormField
, and you must use it to wrap field data inoption.mapPropsToFields
ofcreateForm
orcreateDOMForm
: Before [email protected]:After [email protected]:import { createForm } from 'rc-form'; createFrom({ mapPropsToFields() { return { name: { value: 'rc-form' }, }; }, })
import { createForm, createFormField } from 'rc-form'; createFrom({ mapPropsToFields() { return { name: createFormField({ value: 'rc-form' }), }; }, })
- Deprecate
form.isSubmitting
andform.submit
, just handle submit status in your own code.
- support wrappedComponentRef and deprecate withRef #87
- support touch checking: react-component#56
- support onValuesChange: react-component#55
- support nested field: react-component#48
- support getFieldDecorator. stable.
- support checkbox radio react-component#21
- add exclusive config
- move instance to this.instances
- add getValueFromEvent/getValueProps
- remove refComponent prop.(defaults to true), so you must use getFieldInstance method to get instance instead of ref
- support rc-form/lib/createDOMForm
- support refComponent/mapProps option for createForm to scroll error fields into view.
- support validateMessages of createForm option.
- support setFieldsInitialValue/submit/isFieldsValidating/isSubmitting method for this.props.form
- support force, force to revalidate.
this.props.validateFields(['xx'], {force: true}).
- support validate/validateFirst option for getFieldProps
- support this.props.form.resetFields
- support normalize in getFieldProps option