@@ -7,33 +7,34 @@ function isString(str: any): str is string {
7
7
return typeof str === 'string' ;
8
8
}
9
9
function noop ( ) { }
10
+ export const VcStepProps = ( ) => ( {
11
+ prefixCls : PropTypes . string ,
12
+ wrapperStyle : PropTypes . style ,
13
+ itemWidth : PropTypes . string ,
14
+ active : PropTypes . looseBool ,
15
+ disabled : PropTypes . looseBool ,
16
+ status : PropTypes . string ,
17
+ iconPrefix : PropTypes . string ,
18
+ icon : PropTypes . any ,
19
+ adjustMarginRight : PropTypes . string ,
20
+ stepNumber : PropTypes . number ,
21
+ stepIndex : PropTypes . number ,
22
+ description : PropTypes . any ,
23
+ title : PropTypes . any ,
24
+ subTitle : PropTypes . any ,
25
+ progressDot : withUndefined ( PropTypes . oneOfType ( [ PropTypes . looseBool , PropTypes . func ] ) ) ,
26
+ tailContent : PropTypes . any ,
27
+ icons : PropTypes . shape ( {
28
+ finish : PropTypes . any ,
29
+ error : PropTypes . any ,
30
+ } ) . loose ,
31
+ onClick : PropTypes . func ,
32
+ onStepClick : PropTypes . func ,
33
+ stepIcon : PropTypes . func ,
34
+ } ) ;
10
35
export default defineComponent ( {
11
36
name : 'Step' ,
12
- props : {
13
- prefixCls : PropTypes . string ,
14
- wrapperStyle : PropTypes . style ,
15
- itemWidth : PropTypes . string ,
16
- active : PropTypes . looseBool ,
17
- disabled : PropTypes . looseBool ,
18
- status : PropTypes . string ,
19
- iconPrefix : PropTypes . string ,
20
- icon : PropTypes . any ,
21
- adjustMarginRight : PropTypes . string ,
22
- stepNumber : PropTypes . number ,
23
- stepIndex : PropTypes . number ,
24
- description : PropTypes . any ,
25
- title : PropTypes . any ,
26
- subTitle : PropTypes . any ,
27
- progressDot : withUndefined ( PropTypes . oneOfType ( [ PropTypes . looseBool , PropTypes . func ] ) ) ,
28
- tailContent : PropTypes . any ,
29
- icons : PropTypes . shape ( {
30
- finish : PropTypes . any ,
31
- error : PropTypes . any ,
32
- } ) . loose ,
33
- onClick : PropTypes . func ,
34
- onStepClick : PropTypes . func ,
35
- stepIcon : PropTypes . func ,
36
- } ,
37
+ props : VcStepProps ( ) ,
37
38
slots : [ 'title' , 'subTitle' , 'description' , 'tailContent' , 'stepIcon' , 'progressDot' ] ,
38
39
emits : [ 'click' , 'stepClick' ] ,
39
40
setup ( props , { slots, emit } ) {
0 commit comments