From 1947d2154cc1b262cdae67391a697a877cbd50a3 Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 23 Jul 2024 20:39:10 +0800 Subject: [PATCH] * list: check children on self item is checked already. --- lib/list/src/component/list.tsx | 9 +++++++-- lib/list/src/component/nested-list.tsx | 8 ++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/lib/list/src/component/list.tsx b/lib/list/src/component/list.tsx index e72dc5e4c1..9c41a1b923 100644 --- a/lib/list/src/component/list.tsx +++ b/lib/list/src/component/list.tsx @@ -51,6 +51,11 @@ export class List

CustomContentType | undefined).call(this, error as Error) : onLoadFail) || String(error) : undefined, - }); + } as S); } load(): void { diff --git a/lib/list/src/component/nested-list.tsx b/lib/list/src/component/nested-list.tsx index 46163ad415..ad39a53b52 100644 --- a/lib/list/src/component/nested-list.tsx +++ b/lib/list/src/component/nested-list.tsx @@ -162,11 +162,15 @@ export class NestedList

x.key!), true); + } + return state; } getItemMap() {