update treeSelect doc

This commit is contained in:
zombiej 2018-07-02 12:27:16 +08:00
parent 567eaf9ff4
commit fb96c9db35
3 changed files with 5 additions and 1 deletions

View File

@ -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 | | 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 | | 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) | - | | 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 | | multiple | Support multiple or not, will be `true` when enable `treeCheckable`. | boolean | false |
| placeholder | Placeholder of the select input | string | - | | placeholder | Placeholder of the select input | string | - |
| searchPlaceholder | Placeholder of the search input | string | - | | searchPlaceholder | Placeholder of the search input | string | - |

View File

@ -28,6 +28,8 @@ title: TreeSelect
| getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。[示例](https://codepen.io/afc163/pen/zEjNOy?editors=0010) | Function(triggerNode) | () => document.body | | 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 | | labelInValue | 是否把每个选项的 label 包装到 value 中,会把 value 类型从 `string` 变为 `{value: string, label: ReactNode, halfChecked(treeCheckStrictly 时有效): string[] }` 的格式 | boolean | false |
| loadData | 异步加载数据 | function(node) | - | | loadData | 异步加载数据 | function(node) | - |
| maxTagCount | 最多显示多少个 tag | number | - |
| maxTagPlaceholder | 隐藏 tag 时显示的内容 | ReactNode/function(omittedValues) | - |
| multiple | 支持多选(当设置 treeCheckable 时自动变为true | boolean | false | | multiple | 支持多选(当设置 treeCheckable 时自动变为true | boolean | false |
| placeholder | 选择框默认文字 | string | - | | placeholder | 选择框默认文字 | string | - |
| searchPlaceholder | 搜索框默认文字 | string | - | | searchPlaceholder | 搜索框默认文字 | string | - |

View File

@ -76,7 +76,7 @@
"rc-time-picker": "~3.3.0", "rc-time-picker": "~3.3.0",
"rc-tooltip": "~3.7.0", "rc-tooltip": "~3.7.0",
"rc-tree": "~1.12.0", "rc-tree": "~1.12.0",
"rc-tree-select": "~2.0.2", "rc-tree-select": "~2.0.5",
"rc-upload": "~2.5.0", "rc-upload": "~2.5.0",
"rc-util": "^4.0.4", "rc-util": "^4.0.4",
"react-lazy-load": "^3.0.12", "react-lazy-load": "^3.0.12",