Skip to content

Commit

Permalink
chore: recover tree defaultExpanded type (#2554)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Oct 18, 2023
1 parent e74b533 commit db201ca
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 db201ca

Please sign in to comment.