export specific TreeSelect treeData types

This commit is contained in:
mmmveggies 2018-08-21 14:16:47 -06:00 committed by 偏右
parent e610830a1a
commit 09aaafe573

View File

@ -3,7 +3,7 @@ import { AbstractSelectProps } from '../select';
export type TreeNode = TreeNodeNormal | TreeNodeSimpleMode;
interface TreeNodeNormal {
export interface TreeNodeNormal {
value: string;
/**
* @deprecated Please use `title` instead.
@ -18,12 +18,12 @@ interface TreeNodeNormal {
children?: TreeNodeNormal[];
}
interface TreeNodeSimpleMode {
export interface TreeNodeSimpleMode {
/* It is possible to change `id` and `pId` prop keys using TreeDataSimpleMode so those keys can be anything */
[key: string]: string | boolean | React.ReactNode;
}
interface TreeDataSimpleMode {
export interface TreeDataSimpleMode {
id?: string;
pId?: string;
rootPId?: string;