fix(components): [tree] the issue with retrieving childrenKey (#13798)

* fix(components): [tree] the issue with retrieving childrenKey

* Update tree-node.vue

* Update tree-node.vue
This commit is contained in:
zepeng
2023-08-07 21:31:43 +08:00
committed by GitHub
parent b4927b0d86
commit b10eae152c

View File

@@ -158,7 +158,7 @@ export default defineComponent({
childNodeRendered.value = true
}
const childrenKey = tree.props['children'] || 'children'
const childrenKey = tree.props.props['children'] || 'children'
watch(
() => {
const children = props.node.data[childrenKey]