From ce7f382b9b9008bbda422ac8c5b59c6cde9ac81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=B1=E5=90=83=E8=96=AF=E7=89=87=E7=9A=84=E5=86=85?= =?UTF-8?q?=E5=AD=98=E6=9D=A1?= Date: Fri, 29 Apr 2022 09:54:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dtree=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=88=9D=E6=AC=A1=E6=B8=B2=E6=9F=93=E6=97=B6=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=B7=B2=E5=8B=BE=E9=80=89=E7=9A=84=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E6=95=B0=E7=BB=84=E5=8F=8A=E4=B8=80=E5=A4=84=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=90=8D=E9=94=99=E8=AF=AF=20(#1854)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tree/src/Tree.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Tree/src/Tree.vue b/src/components/Tree/src/Tree.vue index 5942e578..7e05d113 100644 --- a/src/components/Tree/src/Tree.vue +++ b/src/components/Tree/src/Tree.vue @@ -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(