Skip to content

Commit

Permalink
docs(VSteppers): update API for 2.0 (#7975)
Browse files Browse the repository at this point in the history
* docs(VStepperContent): Update default-slots list.

Add v-stepper-content component.

* docs(VStepperStep): Update maps

Add missing click event.

* docs(VStepperStep): Add click event description.

* chore(VStepperStep): Organize props alphabetically.

* chore(VStepper): Organize props alphabetically.
  • Loading branch information
ElijahKotyluk authored and MajesticPotatoe committed Jul 24, 2019
1 parent 644ff59 commit 422b449
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 12 deletions.
1 change: 1 addition & 0 deletions packages/api-generator/src/helpers/default-slots.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ module.exports = [
'v-stepper-items',
'v-stepper-step',
'v-stepper',
'v-stepper-content',
'v-subheader',
'v-tab-item',
'v-tab',
Expand Down
28 changes: 18 additions & 10 deletions packages/api-generator/src/maps/v-stepper.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
module.exports = {
'v-stepper': {
events: [
{
name: 'input',
value: 'number',
},
],
},
}
module.exports = {
'v-stepper': {
events: [
{
name: 'input',
value: 'number',
},
],
},
'v-stepper-step': {
events: [
{
name: 'click',
value: 'MouseEvent',
},
],
},
}
5 changes: 5 additions & 0 deletions packages/docs/src/lang/en/components/Steppers.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,10 @@
"v-stepper-content": {
"step": "Sets step to associate the content to"
}
},
"events": {
"v-stepper-step": {
"click": "Emitted when component is clicked"
}
}
}
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VStepper/VStepper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export default baseMixins.extend({
},

props: {
nonLinear: Boolean,
altLabels: Boolean,
nonLinear: Boolean,
vertical: Boolean,
},

Expand Down
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VStepper/VStepperStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default baseMixins.extend<options>().extend({
type: String,
default: '$vuetify.icons.complete',
},
editable: Boolean,
editIcon: {
type: String,
default: '$vuetify.icons.edit',
Expand All @@ -51,7 +52,6 @@ export default baseMixins.extend<options>().extend({
type: String,
default: '$vuetify.icons.error',
},
editable: Boolean,
rules: {
type: Array,
default: () => [],
Expand Down

0 comments on commit 422b449

Please sign in to comment.