Skip to content

Commit 03d8e52

Browse files
zkwolftangjinzhou
authored andcommitted
docs: add two props of treeselect (#1210)
- maxTagCount - maxTagPlaceholder
1 parent f3d0e23 commit 03d8e52

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

components/tree-select/index.en-US.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
| 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. | Function(triggerNode) | () => document.body |
1616
| labelInValue | whether to embed label in value, turn the format of value from `string` to `{value: string, label: VNode, halfChecked: string[]}` | boolean | false |
1717
| loadData | Load data asynchronously. | function(node) | - |
18+
| maxTagCount | Max tag count to show | number | - |
19+
| maxTagPlaceholder | Placeholder for not showing tags | slot/function(omittedValues) | - |
1820
| multiple | Support multiple or not, will be `true` when enable `treeCheckable`. | boolean | false |
1921
| placeholder | Placeholder of the select input | string\|slot | - |
2022
| searchPlaceholder | Placeholder of the search input | string\|slot | - |

components/tree-select/index.zh-CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
| getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。 | Function(triggerNode) | () => document.body |
1616
| labelInValue | 是否把每个选项的 label 包装到 value 中,会把 value 类型从 `string` 变为 `{value: string, label: VNode, halfChecked(treeCheckStrictly 时有效): string[] }` 的格式 | boolean | false |
1717
| loadData | 异步加载数据 | function(node) | - |
18+
| maxTagCount | 最多显示多少个 tag | number | - |
19+
| maxTagPlaceholder | 隐藏 tag 时显示的内容 | slot/function(omittedValues) | - |
1820
| multiple | 支持多选(当设置 treeCheckable 时自动变为true) | boolean | false |
1921
| placeholder | 选择框默认文字 | string\|slot | - |
2022
| searchPlaceholder | 搜索框默认文字 | string\|slot | - |

0 commit comments

Comments
 (0)