Skip to content

Commit 53b4c5d

Browse files
committed
doc: update tree-select doc
1 parent 646f0c6 commit 53b4c5d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

components/tree-select/demo/replaceFields.vue

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Replace the title,key and children fields in treeNode with the corresponding fie
2929
:field-names="{
3030
children: 'children',
3131
label: 'name',
32-
key: 'key',
3332
value: 'value',
3433
}"
3534
></a-tree-select>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Tree selection control.
3434
| multiple | Support multiple or not, will be `true` when enable `treeCheckable`. | boolean | false | | |
3535
| notFoundContent | Specify content to show when no result matches | slot | `Not Found` | | |
3636
| placeholder | Placeholder of the select input | string\|slot | - | | |
37-
| 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) |
37+
| 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) |
3838
| searchPlaceholder | Placeholder of the search input | string\|slot | - | | |
3939
| searchValue(v-model) | work with `search` event to make search value controlled. | string | - | | |
4040
| 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 | | |

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/Ax4DA0njr/TreeSelect.svg
2424
| dropdownClassName | 下拉菜单的 className 属性 | string | - | | |
2525
| dropdownMatchSelectWidth | 下拉菜单和选择器同宽。默认将设置 `min-width`,当值小于选择框宽度时会被忽略。false 时会关闭虚拟滚动 | boolean \| number | true | | |
2626
| dropdownStyle | 下拉菜单的样式 | object | - | | |
27-
| fieldNames | 替换 treeNode 中 title,value,key,children 字段为 treeData 中对应的字段 | object | {children:'children', label:'title', key:'key', value: 'value' } | | 3.0.0 |
27+
| fieldNames | 替换 treeNode 中 title,value,key,children 字段为 treeData 中对应的字段 | object | {children:'children', label:'title', value: 'value' } | | 3.0.0 |
2828
| filterTreeNode | 是否根据输入项进行筛选,默认用 treeNodeFilterProp 的值作为要筛选的 TreeNode 的属性值 | boolean\|Function(inputValue: string, treeNode: TreeNode) (函数需要返回 bool 值) | Function | | |
2929
| getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。 | Function(triggerNode) | () => document.body | | |
3030
| labelInValue | 是否把每个选项的 label 包装到 value 中,会把 value 类型从 `string` 变为 `{value: string, label: VNode, halfChecked(treeCheckStrictly 时有效): string[] }` 的格式 | boolean | false | | |

0 commit comments

Comments
 (0)