未验证 提交 ce7f382b 编写于 作者: 爱吃薯片的内存条 提交者: GitHub

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

上级 1832d0c0
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
selectedKeys: state.selectedKeys, selectedKeys: state.selectedKeys,
checkedKeys: state.checkedKeys, checkedKeys: state.checkedKeys,
checkStrictly: state.checkStrictly, checkStrictly: state.checkStrictly,
filedNames: unref(getFieldNames), fieldNames: unref(getFieldNames),
'onUpdate:expandedKeys': (v: KeyType[]) => { 'onUpdate:expandedKeys': (v: KeyType[]) => {
state.expandedKeys = v; state.expandedKeys = v;
emit('update:expandedKeys', v); emit('update:expandedKeys', v);
...@@ -293,6 +293,7 @@ ...@@ -293,6 +293,7 @@
() => { () => {
state.checkedKeys = toRaw(props.value || []); state.checkedKeys = toRaw(props.value || []);
}, },
{ immediate: true },
); );
watch( watch(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册