1
1
import type { Key } from '../_util/type' ;
2
- import { tuple , booleanType , someType , stringType , functionType } from '../_util/type' ;
2
+ import { booleanType , someType , stringType , functionType } from '../_util/type' ;
3
3
import PropTypes from '../_util/vue-types' ;
4
4
5
5
export type CollapsibleType = 'header' | 'icon' | 'disabled' ;
@@ -26,7 +26,7 @@ const collapseProps = () => ({
26
26
bordered : booleanType ( ) ,
27
27
expandIcon : functionType < ( panelProps : PanelProps ) => any > ( ) ,
28
28
openAnimation : PropTypes . object ,
29
- expandIconPosition : PropTypes . oneOf ( tuple ( 'start' , 'end' ) ) ,
29
+ expandIconPosition : stringType < 'start' | 'end' > ( ) ,
30
30
collapsible : stringType < CollapsibleType > ( ) ,
31
31
ghost : booleanType ( ) ,
32
32
onChange : functionType < ( key : Key | Key [ ] ) => void > ( ) ,
@@ -47,7 +47,7 @@ const collapsePanelProps = () => ({
47
47
forceRender : booleanType ( ) ,
48
48
expandIcon : functionType < ( panelProps : PanelProps ) => any > ( ) ,
49
49
extra : PropTypes . any ,
50
- panelKey : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ,
50
+ panelKey : someType < number | string > ( ) ,
51
51
collapsible : stringType < CollapsibleType > ( ) ,
52
52
role : String ,
53
53
onItemClick : functionType < ( panelKey : Key ) => void > ( ) ,
0 commit comments