zent
Version:
一套前端设计语言和基于React的实现
27 lines (26 loc) • 656 B
TypeScript
declare type TArray<T> = T[];
export declare type TreeRootIdArray = TArray<string | number>;
export declare const DEFAULT_RENDER_KEY: ITreeRenderKey;
export interface ITreeRenderKey {
id: string;
title: string;
children: string;
parentId: string;
}
export interface ITreeData {
expand?: boolean;
isLeaf?: boolean;
[key: string]: any;
}
export interface ITreeRootInfoMap {
[key: string]: {
id: string | number;
parentId?: string | number;
root: ITreeData;
isExpand: boolean;
isParent: boolean;
son: TreeRootIdArray;
rootIncludeIds: TreeRootIdArray;
};
}
export {};