@@ -6,32 +6,32 @@ export type CollapsibleType = 'header' | 'disabled';
6
6
7
7
export type ActiveKeyType = Array < string | number > | string | number ;
8
8
const collapseProps = ( ) => ( {
9
- prefixCls : PropTypes . string ,
9
+ prefixCls : String ,
10
10
activeKey : { type : [ Array , Number , String ] as PropType < ActiveKeyType > } ,
11
11
defaultActiveKey : { type : [ Array , Number , String ] as PropType < ActiveKeyType > } ,
12
- accordion : PropTypes . looseBool ,
13
- destroyInactivePanel : PropTypes . looseBool ,
14
- bordered : PropTypes . looseBool ,
15
- expandIcon : PropTypes . func ,
12
+ accordion : { type : Boolean , default : undefined } ,
13
+ destroyInactivePanel : { type : Boolean , default : undefined } ,
14
+ bordered : { type : Boolean , default : undefined } ,
15
+ expandIcon : Function ,
16
16
openAnimation : PropTypes . object ,
17
17
expandIconPosition : PropTypes . oneOf ( tuple ( 'left' , 'right' ) ) ,
18
18
collapsible : { type : String as PropType < CollapsibleType > } ,
19
- ghost : PropTypes . looseBool ,
19
+ ghost : { type : Boolean , default : undefined } ,
20
20
} ) ;
21
21
22
22
const collapsePanelProps = ( ) => ( {
23
23
openAnimation : PropTypes . object ,
24
- prefixCls : PropTypes . string ,
24
+ prefixCls : String ,
25
25
header : PropTypes . any ,
26
- headerClass : PropTypes . string ,
27
- showArrow : PropTypes . looseBool ,
28
- isActive : PropTypes . looseBool ,
29
- destroyInactivePanel : PropTypes . looseBool ,
26
+ headerClass : String ,
27
+ showArrow : { type : Boolean , default : undefined } ,
28
+ isActive : { type : Boolean , default : undefined } ,
29
+ destroyInactivePanel : { type : Boolean , default : undefined } ,
30
30
/** @deprecated Use `collapsible="disabled"` instead */
31
- disabled : PropTypes . looseBool ,
32
- accordion : PropTypes . looseBool ,
33
- forceRender : PropTypes . looseBool ,
34
- expandIcon : PropTypes . func ,
31
+ disabled : { type : Boolean , default : undefined } ,
32
+ accordion : { type : Boolean , default : undefined } ,
33
+ forceRender : { type : Boolean , default : undefined } ,
34
+ expandIcon : Function ,
35
35
extra : PropTypes . any ,
36
36
panelKey : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ,
37
37
collapsible : { type : String as PropType < CollapsibleType > } ,
0 commit comments