Add draggable/droppable flags

This commit is contained in:
huchenlei
2024-08-31 20:38:34 -04:00
committed by Chenlei Hu
parent 50f1ca8eaf
commit 86e7c12e27
2 changed files with 37 additions and 28 deletions

View File

@@ -15,6 +15,10 @@ export interface TreeExplorerNode<T = any> {
node: TreeExplorerNode<T>,
child: TreeExplorerNode<T>
) => void
// Whether the node is draggable
draggable?: boolean
// Whether the node is droppable
droppable?: boolean
}
export interface RenderedTreeExplorerNode<T = any> extends TreeExplorerNode<T> {