Browse Source

export specific TreeSelect treeData types

pull/11884/head
mmmveggies 6 years ago
committed by 偏右
parent
commit
09aaafe573
  1. 6
      components/tree-select/interface.tsx

6
components/tree-select/interface.tsx

@ -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;

Loading…
Cancel
Save