-
Notifications
You must be signed in to change notification settings - Fork 138
/
Copy pathinterface.ts
43 lines (40 loc) · 1.28 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
42
43
import type * as React from 'react';
import type { CSSMotionProps } from 'rc-motion';
export type CollapsibleType = 'header' | 'disabled';
export interface CollapseProps {
prefixCls?: string;
activeKey?: React.Key | React.Key[];
defaultActiveKey?: React.Key | React.Key[];
openMotion?: CSSMotionProps;
onChange?: (key: React.Key | React.Key[]) => void;
accordion?: boolean;
className?: string;
style?: object;
destroyInactivePanel?: boolean;
expandIcon?: (props: object) => React.ReactNode;
collapsible?: CollapsibleType;
children?: React.ReactNode;
headerRender?: (props: object) => React.ReactNode;
}
export interface CollapsePanelProps extends React.DOMAttributes<HTMLDivElement> {
id?: string;
header?: string | React.ReactNode;
prefixCls?: string;
headerClass?: string;
showArrow?: boolean;
className?: string;
style?: object;
isActive?: boolean;
openMotion?: CSSMotionProps;
destroyInactivePanel?: boolean;
accordion?: boolean;
forceRender?: boolean;
extra?: string | React.ReactNode;
onItemClick?: (panelKey: string | number) => void;
expandIcon?: (props: object) => React.ReactNode;
headerRender?: (props: object) => React.ReactNode;
panelKey?: string | number;
role?: string;
collapsible?: CollapsibleType;
children?: React.ReactNode;
}