forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSteppersView.vue
executable file
·134 lines (133 loc) · 5.01 KB
/
SteppersView.vue
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<template lang="pug">
component-view(v-bind:doc="doc")
</template>
<script>
export default {
data () {
return {
doc: {
component: 'steppers',
edit: 'SteppersView',
title: 'stepper',
desc: 'The <code>v-stepper</code> component displays progress through numbered steps.',
examples: [
{ header: "Example", file: "steppers/1", desc: 'A stepper can be used for a multitude of scenarios, including shopping carts, record creation and more.' },
{ header: "Editable steps", file: "steppers/2", desc: 'An editable step can be selected by a user at any point and will navigate them to that step.' },
{ header: "Non-editable steps", file: "steppers/3", desc: 'Non-editable steps force a user to process linearly through your process.' },
{ header: "Optional steps", file: "steppers/4", desc: 'An optional step can be called out with sub-text.' },
{ header: "Horizontal steps", file: "steppers/5", desc: 'Horizontal steppers move users along the x-axis through the defined steps.' },
{ header: "Vertical steppers", file: "steppers/6", desc: 'Vertical steppers move users along the y-axis and otherwise work exactly the same as their horizontal counterpart.' },
{ header: "Linear steppers", file: "steppers/7", desc: 'Linear steppers will always move a user through your defined path.' },
{ header: "Non-linear steppers", file: "steppers/8", desc: 'Non-linear steppers allow the user to move through your process in whatever way they choose.' },
{ header: "Alternate labels", file: "steppers/9", desc: 'Steppers also have an alternative label style which places the title under the step itself.' },
{ header: "Multi-line error state", file: "steppers/10", desc: 'An error state can be displayed to notify the user of some action that must be taken.' },
{ header: "Alternative label multi-line error state", file: "steppers/11", desc: 'The error state can also be applied to the alternative label style.' },
{ header: "Vertical multi-line error state", file: "steppers/12", desc: 'The same state also applies to Vertical steppers.' }
],
props: {
'v-stepper': {
params: [
[
'non-linear',
'Boolean',
'False',
'Allow user to jump to any step'
],
[
'alt-labels',
'Boolean',
'False',
'Places the labels beneath the step',
],
[
'vertical',
'Boolean',
'False',
'Display steps vertically',
],
],
model: {
type: ['Number', 'String'],
default: '-',
description: 'Sets current selected step'
}
},
'v-stepper-step': {
params: [
[
'complete',
'Boolean',
'False',
'Marks step as complete',
],
[
'complete-icon',
'String',
'check',
'Icon to display when step is marked as completed',
],
[
'edit-icon',
'String',
'edit',
'Icon to display when step is editable',
],
[
'error-icon',
'String',
'warning',
'Icon to display when step has an error',
],
[
'editable',
'Boolean',
'False',
'Marks step as editable',
],
[
'rules',
'Array',
'[]',
'If any rule is falsy, step will be marked with error',
],
[
'step',
'Number, String',
'-',
'Will be displayed inside the step circle',
]
]
},
'v-stepper-content': {
params: [
[
'step',
'Number, String',
'-',
'Sets step to associate the content to',
]
]
}
},
functional: {
'v-stepper': {
params: [
[
'v-stepper-header',
'.stepper__header'
]
]
}
},
events: {
'v-stepper': {
params: [
['input', "Number, String", 'Current step'],
]
}
}
}
}
}
}
</script>