mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
export specific TreeSelect treeData types
This commit is contained in:
parent
e610830a1a
commit
09aaafe573
@ -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…
Reference in New Issue
Block a user