File tree 4 files changed +36
-21
lines changed
components/antdv-token-previewer/component-demos/steps
4 files changed +36
-21
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ const Steps = defineComponent({
96
96
< Progress
97
97
type = "circle"
98
98
percent = { mergedPercent . value }
99
- width = { progressWidth }
99
+ size = { progressWidth }
100
100
strokeWidth = { 4 }
101
101
format = { ( ) => null }
102
102
/>
@@ -146,7 +146,7 @@ const Steps = defineComponent({
146
146
/* istanbul ignore next */
147
147
export const Step = defineComponent ( {
148
148
compatConfig : { MODE : 3 } ,
149
- ...VcStep ,
149
+ ...( VcStep as any ) ,
150
150
name : 'AStep' ,
151
151
props : VcStepProps ( ) ,
152
152
} ) ;
Original file line number Diff line number Diff line change @@ -3,20 +3,25 @@ import { Steps } from 'ant-design-vue';
3
3
4
4
import type { ComponentDemo } from '../../interface' ;
5
5
6
- const { Step } = Steps ;
7
-
8
6
const Demo = defineComponent ( {
9
7
setup ( ) {
10
8
return ( ) => (
11
- < Steps current = { 1 } >
12
- < Step title = "Error" status = { 'error' } description = "This is a description." />
13
- < Step
14
- status = { 'error' }
15
- title = "In Progress"
16
- subTitle = "Left 00:00:08"
17
- description = "This is a description."
18
- />
19
- </ Steps >
9
+ < Steps
10
+ current = { 1 }
11
+ items = { [
12
+ {
13
+ title : 'Error' ,
14
+ status : 'error' ,
15
+ description : 'This is a description.' ,
16
+ } ,
17
+ {
18
+ title : 'In Progress"' ,
19
+ status : 'error' ,
20
+ subTitle : 'Left 00:00:08' ,
21
+ description : 'This is a description.' ,
22
+ } ,
23
+ ] }
24
+ />
20
25
) ;
21
26
} ,
22
27
} ) ;
Original file line number Diff line number Diff line change @@ -3,16 +3,27 @@ import { Steps } from 'ant-design-vue';
3
3
4
4
import type { ComponentDemo } from '../../interface' ;
5
5
6
- const { Step } = Steps ;
7
-
8
6
const Demo = defineComponent ( {
9
7
setup ( ) {
10
8
return ( ) => (
11
- < Steps current = { 1 } >
12
- < Step title = "Finished" description = "This is a description." />
13
- < Step title = "In Progress" subTitle = "Left 00:00:08" description = "This is a description." />
14
- < Step title = "Waiting" description = "This is a description." />
15
- </ Steps >
9
+ < Steps
10
+ current = { 1 }
11
+ items = { [
12
+ {
13
+ title : 'Finished' ,
14
+ description : 'This is a description.' ,
15
+ } ,
16
+ {
17
+ title : 'In Progress"' ,
18
+ subTitle : 'Left 00:00:08' ,
19
+ description : 'This is a description.' ,
20
+ } ,
21
+ {
22
+ title : 'Waiting"' ,
23
+ description : 'This is a description.' ,
24
+ } ,
25
+ ] }
26
+ />
16
27
) ;
17
28
} ,
18
29
} ) ;
Original file line number Diff line number Diff line change 13
13
>
14
14
<a-select-option :value =" antdVersion" >{{ antdVersion }}</a-select-option >
15
15
<a-select-option value =" 3.x" @click =" changeVersion('3x')" >3.x</a-select-option >
16
- <a-select-option value =" next" @click =" changeVersion('next')" >4.x (Next)</a-select-option >
17
16
<a-select-option value =" 2.x" @click =" changeVersion('2x')" >
18
17
2.x (Not Recommended)
19
18
</a-select-option >
You can’t perform that action at this time.
0 commit comments