From a0a3c52132ea78045b03e381a734f2722a689c99 Mon Sep 17 00:00:00 2001 From: "jin.chang" <2475477667@qq.com> Date: Fri, 28 Feb 2025 07:23:05 +0800 Subject: [PATCH 1/2] Update index.zh-CN.md Add prompt information for showSearch --- components/select/index.zh-CN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/select/index.zh-CN.md b/components/select/index.zh-CN.md index bb8be2a13..a8ea28eeb 100644 --- a/components/select/index.zh-CN.md +++ b/components/select/index.zh-CN.md @@ -86,7 +86,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*5oPiTqPxGAUAAA | mouseenter | 鼠标移入时回调 | function | | mouseleave | 鼠标移出时回调 | function | | popupScroll | 下拉列表滚动时的回调 | function | -| search | 文本框值变化时回调 | function(value: string) | +| search | 文本框值变化时回调(需要设置 filterOption 为 false) | function(value: string) | | select | 被选中时调用,参数为选中项的 value (或 key) 值 | function(value, option:Option) | ### Select Methods From 8558378b158add70ed9d31af9dcc3b57bdb07428 Mon Sep 17 00:00:00 2001 From: "jin.chang" <2475477667@qq.com> Date: Fri, 28 Feb 2025 07:30:31 +0800 Subject: [PATCH 2/2] Update index.zh-CN.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正代码提交位置 --- components/select/index.zh-CN.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/select/index.zh-CN.md b/components/select/index.zh-CN.md index a8ea28eeb..8139a3d9c 100644 --- a/components/select/index.zh-CN.md +++ b/components/select/index.zh-CN.md @@ -62,7 +62,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*5oPiTqPxGAUAAA | removeIcon | 自定义的多选框清除图标 | VNode \| slot | - | | | searchValue | 控制搜索文本 | string | - | | | showArrow | 是否显示下拉小箭头 | boolean | 单选为 true,多选为 false | | -| showSearch | 配置是否可搜索 | boolean | 单选为 false,多选为 true | | +| showSearch | 配置是否可搜索 (需要设置 `filterOption` 为 `false`) | boolean | 单选为 false,多选为 true | | | size | 选择框大小,可选 `middle` `large` `small` | string | middle | | | status | 设置校验状态 | 'error' \| 'warning' | - | 3.3.0 | | suffixIcon | 自定义的选择框后缀图标 | VNode \| slot | - | | @@ -86,7 +86,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*5oPiTqPxGAUAAA | mouseenter | 鼠标移入时回调 | function | | mouseleave | 鼠标移出时回调 | function | | popupScroll | 下拉列表滚动时的回调 | function | -| search | 文本框值变化时回调(需要设置 filterOption 为 false) | function(value: string) | +| search | 文本框值变化时回调 | function(value: string) | | select | 被选中时调用,参数为选中项的 value (或 key) 值 | function(value, option:Option) | ### Select Methods