From 6e8e36080e44fe6f093fe3c78770d9b6c1efb780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Wed, 6 May 2020 15:04:08 +0800 Subject: [PATCH] docs: :book: update notFoundContent (#23901) --- components/auto-complete/index.en-US.md | 1 + components/auto-complete/index.zh-CN.md | 1 + components/select/index.en-US.md | 2 +- components/select/index.zh-CN.md | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/auto-complete/index.en-US.md b/components/auto-complete/index.en-US.md index f96022bba7..36648c65e5 100644 --- a/components/auto-complete/index.en-US.md +++ b/components/auto-complete/index.en-US.md @@ -34,6 +34,7 @@ When there is a need for autocomplete functionality. | defaultOpen | Initial open state of dropdown | boolean | - | | | open | Controlled open state of dropdown | boolean | - | | | onDropdownVisibleChange | Call when dropdown open | function(open) | - | | +| notFoundContent | Specify content to show when no result matches.. | string | 'Not Found' | | ## Methods diff --git a/components/auto-complete/index.zh-CN.md b/components/auto-complete/index.zh-CN.md index 989458ea7b..b63a3c7fab 100644 --- a/components/auto-complete/index.zh-CN.md +++ b/components/auto-complete/index.zh-CN.md @@ -36,6 +36,7 @@ title: AutoComplete | defaultOpen | 是否默认展开下拉菜单 | boolean | - | | | open | 是否展开下拉菜单 | boolean | - | | | onDropdownVisibleChange | 展开下拉菜单的回调 | function(open) | - | | +| notFoundContent | 当下拉列表为空时显示的内容 | ReactNode | - | | ## 方法 diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index f1bc51ad95..93292794f4 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -42,7 +42,7 @@ Select component to select value from options. | maxTagPlaceholder | Placeholder for not showing tags | ReactNode/function(omittedValues) | - | | | tagRender | Customize tag render | (props) => ReactNode | - | | | mode | Set mode of Select | `multiple` \| `tags` | - | | -| notFoundContent | Specify content to show when no result matches.. | string | 'Not Found' | | +| notFoundContent | Specify content to show when no result matches.. | ReactNode | 'Not Found' | | | 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 | | | placeholder | Placeholder of select | string\|ReactNode | - | | diff --git a/components/select/index.zh-CN.md b/components/select/index.zh-CN.md index a02092d528..a8fd0a4120 100644 --- a/components/select/index.zh-CN.md +++ b/components/select/index.zh-CN.md @@ -43,7 +43,7 @@ title: Select | maxTagPlaceholder | 隐藏 tag 时显示的内容 | ReactNode/function(omittedValues) | - | | | tagRender | 自定义 tag 内容 render | (props) => ReactNode | - | | | mode | 设置 Select 的模式为多选或标签 | `multiple` \| `tags` | - | | -| notFoundContent | 当下拉列表为空时显示的内容 | string | 'Not Found' | | +| notFoundContent | 当下拉列表为空时显示的内容 | ReactNode | 'Not Found' | | | optionFilterProp | 搜索时过滤对应的 option 属性,如设置为 children 表示对内嵌内容进行搜索。[示例](https://codesandbox.io/s/antd-reproduction-template-tk678) | string | value | | | optionLabelProp | 回填到选择框的 Option 的属性值,默认是 Option 的子元素。比如在子元素需要高亮效果时,此值可以设为 `value`。 | string | `children` (combobox 模式下为 `value`) | | | placeholder | 选择框默认文字 | string | - | |