mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [tree-v2] fix issue in tree-v2 for setCheckedKeys invalid (#15997)
* fix(components): fix #15992 closed #15992 * fix(components): [tree-v2]setCheckedKeys ineffective closed #15992 --------- Co-authored-by: 黄嘉伟1 <huangjw1@xmmy.com>
This commit is contained in:
@@ -179,7 +179,9 @@ export function useCheck(props: TreeProps, tree: Ref<Tree | undefined>) {
|
||||
function setCheckedKeys(keys: TreeKey[]) {
|
||||
checkedKeys.value.clear()
|
||||
indeterminateKeys.value.clear()
|
||||
_setCheckedKeys(keys)
|
||||
nextTick(() => {
|
||||
_setCheckedKeys(keys)
|
||||
})
|
||||
}
|
||||
|
||||
function setChecked(key: TreeKey, isChecked: boolean) {
|
||||
|
||||
Reference in New Issue
Block a user