Skip to content

Commit

Permalink
feat(components): el-tree.currentNodekey responsive. close element-pl…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanzmj committed Sep 1, 2022
1 parent f0414c7 commit c063276
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/components/tree/src/tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ export default defineComponent({
)
})

watch(
() => props.currentNodeKey,
(newVal) => {
store.value.setCurrentNodeKey(newVal)
}
)

watch(
() => props.defaultCheckedKeys,
(newVal) => {
Expand Down

0 comments on commit c063276

Please sign in to comment.