- There should not be any lifecycle warning now!
- Field option add
preserve
to enable you keep value even if field removed.
createForm
addname
prop. It will be as prefix withfieldNameProp
validateFieldsAndScroll
should ignoreinput[type=hidden]
#169 @HsuTingmapPropsToFields
and so on support field withnull
value #159 @normanrz
- Support callback in setFieldsValue #144
- Expose formShape #154 @sylvainar
- Fix bug with disordered array #143
- 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 rc-form@2.0.0:After rc-form@2.0.0: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: #56
- support onValuesChange: #55
- support nested field: #48
- support getFieldDecorator. stable.
- support checkbox radio #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