Changelog
2.0.0 / 2017-11-07
option.exclusive
of getFieldProps
and getFieldDecorator
, just use something like antd.Radio.Group
or antd.Checkbox.Group
as workaround.createFormField
, and you must use it to wrap field data in option.mapPropsToFields
of createForm
or createDOMForm
:
Before rc-form@2.0.0:
import { createForm } from 'rc-form';
createFrom({
mapPropsToFields() {
return {
name: { value: 'rc-form' },
};
},
})
After rc-form@2.0.0:
import { createForm, createFormField } from 'rc-form';
createFrom({
mapPropsToFields() {
return {
name: createFormField({ value: 'rc-form' }),
};
},
})
form.isSubmitting
and form.submit
, just handle submit status in your own code.