From 39ce074f965ec652eb70506c445c8aa8c419f232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Mon, 13 Jul 2020 09:30:30 +0800 Subject: [PATCH] fix #573 #579 --- src/components/table/table.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 65966918..42a4455f 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -838,7 +838,8 @@ const newData = this.getDataByRowKey(rowKey); newData._isShowChildren = !newData._isShowChildren; // 由于 updateDataStatus 是基于原数据修改,导致单选、多选等状态重置,所以暂不处理 _showChildren 状态,而是通过事件 @on-expand-tree - // this.updateDataStatus(rowKey, '_showChildren', newData._isShowChildren); + // 异步时,需设置 _showChildren,否则嵌套子集展开,会自动收起父级 + this.updateDataStatus(rowKey, '_showChildren', newData._isShowChildren); }); } });