fix: 修复tree组件初次渲染时无法应用已勾选的节点数组及一处字段名错误 (#1854)

This commit is contained in:
爱吃薯片的内存条 2022-04-29 09:54:43 +08:00 committed by GitHub
parent 1832d0c07a
commit ce7f382b9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@
selectedKeys: state.selectedKeys,
checkedKeys: state.checkedKeys,
checkStrictly: state.checkStrictly,
filedNames: unref(getFieldNames),
fieldNames: unref(getFieldNames),
'onUpdate:expandedKeys': (v: KeyType[]) => {
state.expandedKeys = v;
emit('update:expandedKeys', v);
@ -293,6 +293,7 @@
() => {
state.checkedKeys = toRaw(props.value || []);
},
{ immediate: true },
);
watch(