mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
Fix the problem that nodeKey initialization is invalid
This commit is contained in:
@@ -20,7 +20,7 @@ export default defineComponent({
|
||||
const select = ref<InstanceType<typeof ElSelect>>()
|
||||
const tree = ref<InstanceType<typeof ElTree>>()
|
||||
|
||||
const key = computed(() => props.valueKey || props.nodeKey || 'value')
|
||||
const key = computed(() => props.nodeKey || props.valueKey || 'value')
|
||||
|
||||
const selectProps = useSelect(props, context, { select, tree, key })
|
||||
const treeProps = useTree(props, context, { select, tree, key })
|
||||
|
||||
Reference in New Issue
Block a user