From 31267c56481f00315d03a21f2d1f0b020d1caab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Sat, 18 Apr 2020 21:10:01 +0800 Subject: [PATCH] docs: Update migration for Select events (#23376) * docs: Update migration for Select events * Update migration-v4.en-US.md --- docs/react/migration-v4.en-US.md | 2 +- docs/react/migration-v4.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/react/migration-v4.en-US.md b/docs/react/migration-v4.en-US.md index 28f11eb843..e4b71dbe01 100644 --- a/docs/react/migration-v4.en-US.md +++ b/docs/react/migration-v4.en-US.md @@ -119,7 +119,7 @@ const Demo = () => ( - [Date cell className of Custom style demo](/components/date-picker/#components-date-picker-demo-date-render) changed from `ant-calendar-date` to `ant-picker-cell-inner`. - Tree, Select, TreeSelect, AutoComplete rewrite - use virtual scrolling. - - `onBlur` no longer trigger value change. + - `onBlur` no longer trigger value change and return React origin `event` object instead. - AutoComplete no longer support `optionLabelProp`. Please set Option `value` directly. - Select remove `dropdownMenuStyle` prop. - Use `listHeight` to config popup height instead of `dropdownStyle`. diff --git a/docs/react/migration-v4.zh-CN.md b/docs/react/migration-v4.zh-CN.md index f18c961194..bc95368a1b 100644 --- a/docs/react/migration-v4.zh-CN.md +++ b/docs/react/migration-v4.zh-CN.md @@ -119,7 +119,7 @@ const Demo = () => ( - [自定义单元格样式](/components/date-picker-cn/#components-date-picker-demo-date-render)的类名从 `ant-calendar-date` 改为 `ant-picker-cell-inner`。 - Tree、Select、TreeSelect、AutoComplete 重新写 - 使用虚拟滚动。 - - `onBlur` 时不再修改选中值。 + - `onBlur` 时不再修改选中值,且返回 React 原生的 `event` 对象。 - AutoComplete 不再支持 `optionLabelProp`,请直接设置 Option `value` 属性。 - Select 移除 `dropdownMenuStyle` 属性。 - 如果你需要设置弹窗高度请使用 `listHeight` 来代替 `dropdownStyle` 的高度样式。