From c8a49c45fc1cb8388d57a6937940b6b52f146d86 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Tue, 28 Nov 2017 09:51:29 +0800 Subject: [PATCH] Upgrade rc-select --- components/select/index.en-US.md | 2 +- components/select/index.zh-CN.md | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index eae0334bad..2d44703a28 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -37,7 +37,7 @@ Select component to select value from options. | getPopupContainer | Parent Node which the selector should be rendered to. Default to `body`. When position issues happen, try to modify it into scrollable content and position it relative.[example](http://codepen.io/anon/pen/xVBOVQ?editors=001) | function(triggerNode) | () => document.body | | labelInValue | whether to embed label in value, turn the format of value from `string` to `{key: string, label: ReactNode}` | boolean | false | | maxTagCount | Max tag count to show | number | - | -| maxTagPlaceholder | Placeholder for not showing tags | ReactNode | - | +| maxTagPlaceholder | Placeholder for not showing tags | ReactNode/function(omittedValues) | - | | mode | Set mode of Select (Support after 2.9) | 'multiple' \| 'tags' \| 'combobox' | - | | multiple | Allow multiple select (Deprecated after 2.9, use `mode` instead) | boolean | false | | notFoundContent | Specify content to show when no result matches.. | string | 'Not Found' | diff --git a/components/select/index.zh-CN.md b/components/select/index.zh-CN.md index 0b4ea7ae81..eeae01c59d 100644 --- a/components/select/index.zh-CN.md +++ b/components/select/index.zh-CN.md @@ -38,7 +38,7 @@ title: Select | getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。[示例](https://codepen.io/afc163/pen/zEjNOy?editors=0010) | Function(triggerNode) | () => document.body | | labelInValue | 是否把每个选项的 label 包装到 value 中,会把 Select 的 value 类型从 `string` 变为 `{key: string, label: ReactNode}` 的格式 | boolean | false | | maxTagCount | 最多显示多少个 tag | number | - | -| maxTagPlaceholder | 隐藏 tag 时显示的内容 | ReactNode | - | +| maxTagPlaceholder | 隐藏 tag 时显示的内容 | ReactNode/function(omittedValues) | - | | mode | 设置 Select 的模式(2.9 之后支持) | 'multiple' \| 'tags' \| 'combobox' | - | | multiple | 支持多选(2.9 之后废弃,请使用 `mode`) | boolean | false | | notFoundContent | 当下拉列表为空时显示的内容 | string | 'Not Found' | diff --git a/package.json b/package.json index 675956ac44..6f0e10a7d3 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "rc-pagination": "~1.12.4", "rc-progress": "~2.2.2", "rc-rate": "~2.2.0", - "rc-select": "~7.2.0", + "rc-select": "~7.3.2", "rc-slider": "~8.4.0", "rc-steps": "~3.0.0", "rc-switch": "~1.6.0",