forked from ant-design/ant-design
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterface.tsx
49 lines (46 loc) · 1.33 KB
/
interface.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import React from 'react';
export interface TreeData {
key: string;
value: string;
label: React.ReactNode;
children?: Array<TreeData>;
}
export interface TreeSelectProps {
style?: React.CSSProperties;
value?: string | Array<any>;
defaultValue?: string | Array<any>;
multiple?: boolean;
tags?: boolean;
onSelect?: (value: any) => void;
onChange?: (value: any, label: any) => void;
allowClear?: boolean;
onSearch?: (value: any) => void;
placeholder?: string;
searchPlaceholder?: string;
dropdownStyle?: React.CSSProperties;
dropdownMatchSelectWidth?: boolean;
combobox?: boolean;
size?: 'large' | 'small';
showSearch?: boolean;
disabled?: boolean;
treeDefaultExpandAll?: boolean;
treeCheckable?: boolean | React.ReactNode;
filterTreeNode?: (inputValue: string, treeNode: any) => boolean | boolean;
treeNodeFilterProp?: string;
treeNodeLabelProp?: string;
treeData?: Array<TreeData>;
treeDataSimpleMode?: boolean | Object;
loadData?: (node: any) => void;
showCheckedStrategy?: 'SHOW_ALL' | 'SHOW_PARENT' | 'SHOW_CHILD';
className?: string;
prefixCls?: string;
notFoundContent?: React.ReactNode;
labelInValue?: boolean;
treeCheckStrictly?: boolean;
getPopupContainer?: (triggerNode: React.ReactNode) => HTMLElement;
}
export interface TreeSelectContext {
antLocale?: {
Select?: any,
};
}