17 lines
359 B
TypeScript
17 lines
359 B
TypeScript
|
import {IconType} from "../utils";
|
||
|
|
||
|
export default interface TreeNode {
|
||
|
key?: string | number;
|
||
|
label?: string;
|
||
|
data?: any;
|
||
|
icon?: IconType<TreeNode>;
|
||
|
children?: TreeNode[];
|
||
|
style?: object;
|
||
|
className?: string;
|
||
|
droppable?: boolean;
|
||
|
draggable?: boolean;
|
||
|
selectable?: boolean;
|
||
|
leaf?: boolean;
|
||
|
expanded?: boolean;
|
||
|
}
|