From 53b4c5d8b29d10d735d55533c1880e9681b4c9c1 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Tue, 26 Apr 2022 21:32:23 +0800 Subject: [PATCH] doc: update tree-select doc --- components/tree-select/demo/replaceFields.vue | 1 - components/tree-select/index.en-US.md | 2 +- components/tree-select/index.zh-CN.md | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/tree-select/demo/replaceFields.vue b/components/tree-select/demo/replaceFields.vue index 86b90c986..14a61ddf0 100644 --- a/components/tree-select/demo/replaceFields.vue +++ b/components/tree-select/demo/replaceFields.vue @@ -29,7 +29,6 @@ Replace the title,key and children fields in treeNode with the corresponding fie :field-names="{ children: 'children', label: 'name', - key: 'key', value: 'value', }" > diff --git a/components/tree-select/index.en-US.md b/components/tree-select/index.en-US.md index 8a6c6cdcf..19becd3a9 100644 --- a/components/tree-select/index.en-US.md +++ b/components/tree-select/index.en-US.md @@ -34,7 +34,7 @@ Tree selection control. | multiple | Support multiple or not, will be `true` when enable `treeCheckable`. | boolean | false | | | | notFoundContent | Specify content to show when no result matches | slot | `Not Found` | | | | placeholder | Placeholder of the select input | string\|slot | - | | | -| replaceFields | Replace the title,value, key and children fields in treeNode with the corresponding fields in treeData | object | { children:'children', label:'title', key:'key', value: 'value' } | | 1.6.1 (3.0.0 deprecated) | +| replaceFields | Replace the title,value, key and children fields in treeNode with the corresponding fields in treeData | object | { children:'children', label:'title', value: 'value' } | | 1.6.1 (3.0.0 deprecated) | | searchPlaceholder | Placeholder of the search input | string\|slot | - | | | | searchValue(v-model) | work with `search` event to make search value controlled. | string | - | | | | 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 | | | diff --git a/components/tree-select/index.zh-CN.md b/components/tree-select/index.zh-CN.md index e513d904c..e41aef1ae 100644 --- a/components/tree-select/index.zh-CN.md +++ b/components/tree-select/index.zh-CN.md @@ -24,7 +24,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/Ax4DA0njr/TreeSelect.svg | dropdownClassName | 下拉菜单的 className 属性 | string | - | | | | dropdownMatchSelectWidth | 下拉菜单和选择器同宽。默认将设置 `min-width`,当值小于选择框宽度时会被忽略。false 时会关闭虚拟滚动 | boolean \| number | true | | | | dropdownStyle | 下拉菜单的样式 | object | - | | | -| fieldNames | 替换 treeNode 中 title,value,key,children 字段为 treeData 中对应的字段 | object | {children:'children', label:'title', key:'key', value: 'value' } | | 3.0.0 | +| fieldNames | 替换 treeNode 中 title,value,key,children 字段为 treeData 中对应的字段 | object | {children:'children', label:'title', value: 'value' } | | 3.0.0 | | filterTreeNode | 是否根据输入项进行筛选,默认用 treeNodeFilterProp 的值作为要筛选的 TreeNode 的属性值 | boolean\|Function(inputValue: string, treeNode: TreeNode) (函数需要返回 bool 值) | Function | | | | getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。 | Function(triggerNode) | () => document.body | | | | labelInValue | 是否把每个选项的 label 包装到 value 中,会把 value 类型从 `string` 变为 `{value: string, label: VNode, halfChecked(treeCheckStrictly 时有效): string[] }` 的格式 | boolean | false | | |