Skip to content

Latest commit

 

History

History
132 lines (81 loc) · 3.56 KB

HISTORY.md

File metadata and controls

132 lines (81 loc) · 3.56 KB

History


2.4.10 / 2019-11-09

  • There should not be any lifecycle warning now!

2.4.0 / 2018-12-21

  • Field option add preserve to enable you keep value even if field removed.

2.3.0 / 2018-12-17

  • createForm add name prop. It will be as prefix with fieldNameProp

2.2.1 / 2018-07-11

  • validateFieldsAndScroll should ignore input[type=hidden] #169 @HsuTing
  • mapPropsToFields and so on support field with null value #159 @normanrz

2.2.0 / 2018-04-04

2.1.0 / 2017-11-22

  • Support switching from different components with same field name. #117

2.0.0 / 2017-11-07

  • Remove option.exclusive of getFieldProps and getFieldDecorator, just use something like antd.Radio.Group or antd.Checkbox.Group as workaround.
  • Add 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' }),
        };
      },
    })
  • Deprecate form.isSubmitting and form.submit, just handle submit status in your own code.

1.4.0 / 2017-06-13

  • support wrappedComponentRef and deprecate withRef #87

1.3.0 / 2017-01-07

  • support touch checking: #56

1.2.0 / 2017-01-05

  • support onValuesChange: #55

1.1.0 / 2016-12-28

  • support nested field: #48

1.0.0 / 2016-08-29

  • support getFieldDecorator. stable.

0.17.0 / 2016-06-12

  • support checkbox radio #21
  • add exclusive config

0.16.0 / 2016-05-19

  • move instance to this.instances

0.15.0 / 2016-03-28

  • add getValueFromEvent/getValueProps

0.14.0 / 2016-02-27

  • remove refComponent prop.(defaults to true), so you must use getFieldInstance method to get instance instead of ref

0.13.0 / 2016-02-14

  • support rc-form/lib/createDOMForm

0.12.0 / 2016-02-02

  • support refComponent/mapProps option for createForm to scroll error fields into view.

0.11.0 / 2016-02-02

  • support validateMessages of createForm option.

0.10.0 / 2016-01-27

  • support setFieldsInitialValue/submit/isFieldsValidating/isSubmitting method for this.props.form

0.9.0 / 2016-01-18

  • support force, force to revalidate.
this.props.validateFields(['xx'], {force: true}).

0.8.0 / 2016-01-13

  • support validate/validateFirst option for getFieldProps

0.7.0 / 2015-12-29

  • support this.props.form.resetFields

0.6.0 / 2015-12-28

  • support normalize in getFieldProps option