From 10eb6fdba595ae391b23a87bd35367c317b261b9 Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Sat, 1 Dec 2018 15:09:00 +0800 Subject: [PATCH] :memo: tree-select open custom icon --- components/tree-select/index.en-US.md | 1 + components/tree-select/index.zh-CN.md | 1 + 2 files changed, 2 insertions(+) diff --git a/components/tree-select/index.en-US.md b/components/tree-select/index.en-US.md index 63c007aa3a..a98a7459e2 100644 --- a/components/tree-select/index.en-US.md +++ b/components/tree-select/index.en-US.md @@ -34,6 +34,7 @@ Any data whose entries are defined in a hierarchical manner is fit to use this c | placeholder | Placeholder of the select input | string | - | | searchPlaceholder | Placeholder of the search input | string | - | | searchValue | work with `onSearch` to make search value controlled. | string | - | +| treeIcon | Shows the icon before a TreeNode's title. There is no default style; you must set a custom style for it if set to `true` | boolean | false | | showCheckedStrategy | The way show selected item in box. **Default:** just show child nodes. **`TreeSelect.SHOW_ALL`:** show all checked treeNodes (include parent treeNode). **`TreeSelect.SHOW_PARENT`:** show checked treeNodes (just show parent treeNode). | enum { TreeSelect.SHOW_ALL, TreeSelect.SHOW_PARENT, TreeSelect.SHOW_CHILD } | TreeSelect.SHOW_CHILD | | showSearch | Whether to display a search input in the dropdown menu(valid only in the single mode) | boolean | false | | size | To set the size of the select input, options: `large` `small` | string | 'default' | diff --git a/components/tree-select/index.zh-CN.md b/components/tree-select/index.zh-CN.md index b8fa670587..a165f4aac7 100644 --- a/components/tree-select/index.zh-CN.md +++ b/components/tree-select/index.zh-CN.md @@ -34,6 +34,7 @@ title: TreeSelect | placeholder | 选择框默认文字 | string | - | | searchPlaceholder | 搜索框默认文字 | string | - | | searchValue | 搜索框的值,可以通过 `onSearch` 获取用户输入 | string | - | +| treeIcon | 是否展示 TreeNode title 前的图标,没有默认样式,如设置为 true,需要自行定义图标相关样式 | boolean | false | | showCheckedStrategy | 定义选中项回填的方式。`TreeSelect.SHOW_ALL`: 显示所有选中节点(包括父节点). `TreeSelect.SHOW_PARENT`: 只显示父节点(当父节点下所有子节点都选中时). 默认只显示子节点. | enum{TreeSelect.SHOW_ALL, TreeSelect.SHOW_PARENT, TreeSelect.SHOW_CHILD } | TreeSelect.SHOW_CHILD | | showSearch | 在下拉中显示搜索框(仅在单选模式下生效) | boolean | false | | size | 选择框大小,可选 `large` `small` | string | 'default' |