forked from ant-design/ant-design-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpropTypes.tsx
52 lines (46 loc) · 972 Bytes
/
propTypes.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
50
51
52
import * as React from 'react';
export interface DataItem {
label?: any;
value?: any;
children?: any;
isLeaf?: boolean;
[key: string]: any;
}
export interface SubDataItem {
label?: string;
value?: any;
disabled?: boolean;
[key: string]: any;
}
export interface MenuProps {
/** web only */
prefixCls?: string;
/** web only */
className?: string;
style?: React.CSSProperties;
data?: Array<DataItem>;
value?: Array<string>;
onChange?: Function;
level?: number;
height?: number;
}
export interface MenuState {
SubMenuData: Array<SubDataItem>;
firstValue?: any;
}
export interface SubMenuProps {
/** web only */
prefixCls?: string;
/** web only */
radioPrefixCls?: string;
/** web only */
className?: string;
style?: React.CSSProperties;
value?: Array<SubDataItem>;
data?: Array<SubDataItem>;
onChange?: Function;
}
export interface SubMenuState {
value?: Array<SubDataItem>;
data?: Array<SubDataItem>;
}