custom-app
Version:
ITIMS��Ʒ�鿪��ר��React���,�Dz��ý��ּ�dhcc-app���������
26 lines (25 loc) • 670 B
TypeScript
import * as React from 'react';
import { TreeNodeProps } from './TreeNode';
export interface DataNode {
key: string;
title: string;
disabled?: boolean;
selectable?: boolean;
children?: DataNode[];
}
export declare type IconType = React.ReactNode | ((props: TreeNodeProps) => React.ReactNode);
export declare type Key = string | number;
export declare type NodeElement = React.ReactElement<TreeNodeProps> & {
selectHandle: HTMLSpanElement;
type: {
isTreeNode: boolean;
};
};
export interface Entity {
node: NodeElement;
index: number;
key: Key;
pos: string | number;
parent?: Entity;
children?: Entity[];
}