docs: Mention filterOption params change in doc (#23501)

* Update migration-v4.zh-CN.md

* Update migration-v4.en-US.md
This commit is contained in:
二货机器人 2020-04-22 21:24:36 +08:00 committed by GitHub
parent 17f7e2f4d2
commit d77c2e8ba7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,7 @@ const Demo = () => (
- AutoComplete no longer support `optionLabelProp`. Please set Option `value` directly.
- Select remove `dropdownMenuStyle` prop.
- Use `listHeight` to config popup height instead of `dropdownStyle`.
- `filterOption` return origin data with second params instead. No need to use `option.props.children` for matching.
- The Grid component uses flex layout.
- Button's `danger` is now treated as a property instead of a button type.
- Input, Select set `value` to `undefined` is uncontrolled mode now.

View File

@ -123,6 +123,7 @@ const Demo = () => (
- AutoComplete 不再支持 `optionLabelProp`,请直接设置 Option `value` 属性。
- Select 移除 `dropdownMenuStyle` 属性。
- 如果你需要设置弹窗高度请使用 `listHeight` 来代替 `dropdownStyle` 的高度样式。
- `filterOption` 第二个参数直接返回原数据,不在需要通过 `option.props.children` 来进行匹配。
- Grid 组件使用 flex 布局。
- Button 的 `danger` 现在作为一个属性而不是按钮类型。
- Input、Select 的 `value``undefined` 时改为非受控状态。