From 718f362aea29e7418c74ed1cf36bb82026492f05 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Thu, 11 Jun 2020 21:19:58 +0800 Subject: [PATCH] docs: remove combobox related descriptions of Select (#24923) --- components/select/index.en-US.md | 4 ++-- components/select/index.zh-CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index 345992e7e1..556fe9b7ab 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -46,7 +46,7 @@ Select component to select value from options. | notFoundContent | Specify content to show when no result matches.. | ReactNode | 'Not Found' | | | options | Select options. Will get better perf than jsx definition | { label, value }[] | - | | | optionFilterProp | Which prop value of option will be used for filter if filterOption is true | string | value | | -| optionLabelProp | Which prop value of option will render as content of select. [Example](https://codesandbox.io/s/antd-reproduction-template-tk678) | string | `value` for `combobox`, `children` for other modes | | +| optionLabelProp | Which prop value of option will render as content of select. [Example](https://codesandbox.io/s/antd-reproduction-template-tk678) | string | 'children' | | | placeholder | Placeholder of select | string\|ReactNode | - | | | showArrow | Whether to show the drop-down arrow | boolean | true | | | showSearch | Whether show search input in single mode. | boolean | false | | @@ -59,7 +59,7 @@ Select component to select value from options. | value | Current selected option. | string\|string\[]
number\|number\[]
LabeledValue\|LabeledValue[] | - | | | virtual | Disable virtual scroll when set to `false` | boolean | true | 4.1.0 | | onBlur | Called when blur | function | - | | -| onChange | Called when select an option or input value change, or value of input is changed in combobox mode | function(value, option:Option/Array<Option>) | - | | +| onChange | Called when select an option or input value change | function(value, option:Option/Array<Option>) | - | | | onDeselect | Called when a option is deselected, param is the selected option's value. Only called for multiple or tags, effective in multiple or tags mode only. | function(string\|number\|LabeledValue) | - | | | onFocus | Called when focus | function | - | | | onInputKeyDown | Called when key pressed | function | - | | diff --git a/components/select/index.zh-CN.md b/components/select/index.zh-CN.md index 286cde07f2..d7d66faa2e 100644 --- a/components/select/index.zh-CN.md +++ b/components/select/index.zh-CN.md @@ -47,7 +47,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/_0XzgOis7/Select.svg | notFoundContent | 当下拉列表为空时显示的内容 | ReactNode | 'Not Found' | | | options | 数据化配置选项内容,相比 jsx 定义会获得更好的渲染性能 | { label, value }[] | - | | | optionFilterProp | 搜索时过滤对应的 option 属性,如设置为 children 表示对内嵌内容进行搜索。[示例](https://codesandbox.io/s/antd-reproduction-template-tk678) | string | value | | -| optionLabelProp | 回填到选择框的 Option 的属性值,默认是 Option 的子元素。比如在子元素需要高亮效果时,此值可以设为 `value`。 | string | `children` (combobox 模式下为 `value`) | | +| optionLabelProp | 回填到选择框的 Option 的属性值,默认是 Option 的子元素。比如在子元素需要高亮效果时,此值可以设为 `value`。 | string | 'children' | | | placeholder | 选择框默认文字 | string | - | | | showArrow | 是否显示下拉小箭头 | boolean | true | | | showSearch | 使单选模式可搜索 | boolean | false | | @@ -60,7 +60,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/_0XzgOis7/Select.svg | value | 指定当前选中的条目 | string\|string\[]
number\|number\[]
LabeledValue\|LabeledValue[] | - | | | virtual | 设置 `false` 时关闭虚拟滚动 | boolean | true | 4.1.0 | | onBlur | 失去焦点时回调 | function | - | | -| onChange | 选中 option,或 input 的 value 变化(combobox 模式下)时,调用此函数 | function(value, option:Option/Array<Option>) | - | | +| onChange | 选中 option,或 input 的 value 变化时,调用此函数 | function(value, option:Option/Array<Option>) | - | | | onDeselect | 取消选中时调用,参数为选中项的 value (或 key) 值,仅在 multiple 或 tags 模式下生效 | function(string\|number\|LabeledValue) | - | | | onFocus | 获得焦点时回调 | function | - | | | onInputKeyDown | 按键按下时回调 | function | - | |