-
Notifications
You must be signed in to change notification settings - Fork 138
/
Copy pathinterface.ts
41 lines (38 loc) · 1.03 KB
/
interface.ts
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
import * as React from 'react';
export interface CollapseProps {
prefixCls?: string;
activeKey?: React.Key | React.Key[];
defaultActiveKey?: React.Key | React.Key[];
openAnimation?: object;
onChange?: (key: React.Key | React.Key[]) => void;
accordion?: boolean;
className?: string;
style?: object;
destroyInactivePanel?: boolean;
expandIcon?: (props: object) => React.ReactNode;
}
export interface CollapseState {
openAnimation: object;
activeKey: React.Key[];
}
export interface CollapsePanelProps {
id?: string;
header?: string | React.ReactNode;
prefixCls?: string;
headerClass?: string;
contentClass?: string;
showArrow?: boolean;
className?: string;
style?: object;
isActive?: boolean;
openAnimation?: object;
disabled?: boolean;
destroyInactivePanel?: boolean;
accordion?: boolean;
forceRender?: boolean;
extra?: string | React.ReactNode;
onItemClick?: (panelKey: string | number) => void;
expandIcon?: (props: object) => React.ReactNode;
panelKey?: string | number;
role?: string;
}