More refactor

This commit is contained in:
huchenlei
2024-08-31 17:54:06 -04:00
committed by Chenlei Hu
parent bc3ec65967
commit 488f0d82b4
2 changed files with 14 additions and 44 deletions

View File

@@ -6,7 +6,8 @@ export interface TreeExplorerNode<T = any> {
data: T
leaf: boolean
children?: TreeExplorerNode<T>[]
icon?: string | ((node: TreeExplorerNode<T>) => string)
icon?: string
getIcon?: (node: TreeExplorerNode<T>) => string
}
export interface RenderedTreeExplorerNode<T = any> extends TreeExplorerNode<T> {