Skip to content

Commit 983318b

Browse files
committed
feat: treeSelect treeExpandedKeys support .sync modifier
1 parent 6373ce8 commit 983318b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
| treeDataSimpleMode | Enable simple mode of treeData.(treeData should like this: [{id:1, pId:0, value:'1', label:"test1",...},...], pId is parent node's id) | false\|Array<{ id: string, pId: string, rootPId: null }> | false |
2929
| treeDefaultExpandAll | Whether to expand all treeNodes by default | boolean | false |
3030
| treeDefaultExpandedKeys | Default expanded treeNodes | string\[] \| number\[] | - |
31-
| treeExpandedKeys | Set expanded keys | string\[] \| number\[] | - |
31+
| treeExpandedKeys(.sync) | Set expanded keys | string\[] \| number\[] | - |
3232
| treeNodeFilterProp | Will be used for filtering if `filterTreeNode` returns true | string | 'value' |
3333
| treeNodeLabelProp | Will render as content of select | string | 'title' |
3434
| value(v-model) | To set the current selected treeNode(s). | string\|string\[] | - |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
| treeDataSimpleMode | 使用简单格式的 treeData,具体设置参考可设置的类型 (此时 treeData 应变为这样的数据结构: [{id:1, pId:0, value:'1', label:"test1",...},...], `pId` 是父节点的 id) | false\|Array<{ id: string, pId: string, rootPId: null }> | false |
2929
| treeDefaultExpandAll | 默认展开所有树节点 | boolean | false |
3030
| treeDefaultExpandedKeys | 默认展开的树节点 | string\[] \| number\[] | - |
31-
| treeExpandedKeys | 设置展开的树节点 | string\[] \| number\[] | - |
31+
| treeExpandedKeys(.sync) | 设置展开的树节点 | string\[] \| number\[] | - |
3232
| treeNodeFilterProp | 输入项过滤对应的 treeNode 属性 | string | 'value' |
3333
| treeNodeLabelProp | 作为显示的 prop 设置 | string | 'title' |
3434
| value(v-model) | 指定当前选中的条目 | string/string\[] | - |

components/vc-tree-select/src/Base/BasePopup.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ const BasePopup = {
140140
this.__emit('treeExpanded')
141141
})
142142
}
143+
this.__emit('update:treeExpandedKeys', expandedKeyList)
143144
this.__emit('treeExpand', expandedKeyList)
144145
},
145146

0 commit comments

Comments
 (0)