diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 1d6b091af6..a558288864 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -108,7 +108,7 @@ There are some breaking changes in `antd@2.0.0`, and you need to modify your cod // send data to server } ``` -* For the value of time-related components becomes an instance of `moment`, you should replace `type='date'` with `type='object'` in form validation. +* For the value of time-related components becomes an instance of `moment`, you should replace `type: 'date'` with `type: 'object'` in form validation. * The `format` of time-related components is changed from [gregorian-calendar-format](https://github.com/yiminghe/gregorian-calendar-format#api) to [moment format](http://momentjs.com/docs/#/parsing/string-format/) now, for instance the format `yyyy-MM-dd` should change to `YYYY-MM-DD`. * `linkRender` and `nameRender` of Breadcrumb are removed, please use `itemRender`. * `onClose` and `onOpen` of Menu are removed, please use `onOpenChange`. As being totally different, please check [this demo](http://beta.ant.design/components/menu/#components-menu-demo-sider-current) first. diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 307d77bc6c..4b3988d1fc 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -107,7 +107,7 @@ timeline: true } ``` -* 时间类组件与表单校验一起使用时,`type='date'` 改为 `type='object'`。 +* 时间类组件与表单校验一起使用时,`type: 'date'` 改为 `type: 'object'`。 * 时间类组件的 `format` 属性也发生了变化,从 [gregorian-calendar-format 的格式](https://github.com/yiminghe/gregorian-calendar-format#api) 变化为与 [moment 的格式](http://momentjs.com/docs/#/parsing/string-format/),例如原来的 `yyyy-MM-dd` 将变为 `YYYY-MM-DD`。 * Breadcrumb 移除 `linkRender` 和 `nameRender`,请使用 `itemRender`。 * Menu 移除 `onClose` `onOpen`,请使用 `onOpenChange`。API 差异较大,请先研究 [demo](http://beta.ant.design/components/menu/#components-menu-demo-sider-current)。