From fb96c9db351e44a202f64f780470c6319a8a9626 Mon Sep 17 00:00:00 2001 From: zombiej Date: Mon, 2 Jul 2018 12:27:16 +0800 Subject: [PATCH] update treeSelect doc --- components/tree-select/index.en-US.md | 2 ++ components/tree-select/index.zh-CN.md | 2 ++ package.json | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/components/tree-select/index.en-US.md b/components/tree-select/index.en-US.md index b7b4103ed9..3a69219f03 100644 --- a/components/tree-select/index.en-US.md +++ b/components/tree-select/index.en-US.md @@ -28,6 +28,8 @@ Any data whose entries are defined in a hierarchical manner is fit to use this c | getPopupContainer | To set the container of the dropdown menu. The default is to create a `div` element in `body`, you can reset it to the scrolling area and make a relative reposition. [example](https://codepen.io/afc163/pen/zEjNOy?editors=0010) | Function(triggerNode) | () => document.body | | labelInValue | whether to embed label in value, turn the format of value from `string` to `{value: string, label: ReactNode, halfChecked: string[]}` | boolean | false | | loadData | Load data asynchronously. | function(node) | - | +| maxTagCount | Max tag count to show | number | - | +| maxTagPlaceholder | Placeholder for not showing tags | ReactNode/function(omittedValues) | - | | multiple | Support multiple or not, will be `true` when enable `treeCheckable`. | boolean | false | | placeholder | Placeholder of the select input | string | - | | searchPlaceholder | Placeholder of the search input | string | - | diff --git a/components/tree-select/index.zh-CN.md b/components/tree-select/index.zh-CN.md index 57986e6527..486a47cc50 100644 --- a/components/tree-select/index.zh-CN.md +++ b/components/tree-select/index.zh-CN.md @@ -28,6 +28,8 @@ title: TreeSelect | getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。[示例](https://codepen.io/afc163/pen/zEjNOy?editors=0010) | Function(triggerNode) | () => document.body | | labelInValue | 是否把每个选项的 label 包装到 value 中,会把 value 类型从 `string` 变为 `{value: string, label: ReactNode, halfChecked(treeCheckStrictly 时有效): string[] }` 的格式 | boolean | false | | loadData | 异步加载数据 | function(node) | - | +| maxTagCount | 最多显示多少个 tag | number | - | +| maxTagPlaceholder | 隐藏 tag 时显示的内容 | ReactNode/function(omittedValues) | - | | multiple | 支持多选(当设置 treeCheckable 时自动变为true) | boolean | false | | placeholder | 选择框默认文字 | string | - | | searchPlaceholder | 搜索框默认文字 | string | - | diff --git a/package.json b/package.json index 37ae9b798f..af558a7829 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "rc-time-picker": "~3.3.0", "rc-tooltip": "~3.7.0", "rc-tree": "~1.12.0", - "rc-tree-select": "~2.0.2", + "rc-tree-select": "~2.0.5", "rc-upload": "~2.5.0", "rc-util": "^4.0.4", "react-lazy-load": "^3.0.12",