Skip to content

Commit

Permalink
chore: recover tree defaultExpanded type
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Oct 18, 2023
1 parent e8b0c9c commit 40784a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tree/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ export interface TdTreeProps<T extends TreeOptionData = TreeOptionData> {
* @default []
*/
expanded?: Array<TreeNodeValue>;
/**
* 展开的节点值,非受控属性
* @default []
*/
defaultExpanded?: Array<TreeNodeValue>;
/**
* 节点过滤方法,只呈现返回值为 true 的节点,泛型 `T` 表示树节点 TS 类型
*/
Expand Down

0 comments on commit 40784a8

Please sign in to comment.