import React from 'react'; import { Addon } from '../aop'; import { ReactAddon, SelectionType } from './base'; import { DataPanel } from './dataPanel'; import { Style } from './style'; export interface TreeNodeData { /** * 标题 */ title?: string; /** * 值 */ value?: any; /** * 类别 */ category?: string; /** * 子节点 */ children?: TreeNodeData[]; } export interface ClickTreeNodeEventArgs { node: TreeNode; data: TreeNodeData; checked: boolean; } export declare class TreeLevel extends Addon { mainPanelStyle?: Style & React.CSSProperties; childPanelStyle?: Style & React.CSSProperties; } export declare class TreeNode extends DataPanel { } export declare class TreeMap extends ReactAddon { levelDefs?: TreeLevel[]; node?: TreeNode; selectionType?: keyof typeof SelectionType; noCancelSelect?: boolean; selectedStyle?: Style & React.CSSProperties; selectedKeys?: string[] | string; onClick?: (e: ClickTreeNodeEventArgs) => void; onRender?: (() => JSX.Element) | undefined; } export declare const TreeMapControl: any;