From 40784a8db6325b458ed82aff06fd625bc1d1561c Mon Sep 17 00:00:00 2001 From: Uyarn Date: Wed, 18 Oct 2023 19:57:33 +0800 Subject: [PATCH] chore: recover tree defaultExpanded type --- src/tree/type.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tree/type.ts b/src/tree/type.ts index 064e431dcf..d5bc2456a5 100644 --- a/src/tree/type.ts +++ b/src/tree/type.ts @@ -99,6 +99,11 @@ export interface TdTreeProps { * @default [] */ expanded?: Array; + /** + * 展开的节点值,非受控属性 + * @default [] + */ + defaultExpanded?: Array; /** * 节点过滤方法,只呈现返回值为 true 的节点,泛型 `T` 表示树节点 TS 类型 */