mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user