Skip to content

Commit

Permalink
Vue-kitchen-sink add component docgen description
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Jan 17, 2020
1 parent 3e52df6 commit 3bcaaeb
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions examples/vue-kitchen-sink/src/stories/components/InfoButton.vue
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
<script>
/**
* InfoButton component description
*/
export default {
props: {
/**
* Whether to disable button
*/
disabled: {
type: Boolean
type: Boolean,
},
/**
* Button type
*/
type: {
type: String,
default: 'normal'
default: 'normal',
},
label: {
type: String,
required: true
}
required: true,
},
},
methods: {
click(ev) {
/**
* Passthrough click event
* @type {Event}
*/
this.$emit('click', ev)
}
}
}
this.$emit('click', ev);
},
},
};
</script>

<template>
Expand Down Expand Up @@ -64,4 +67,4 @@ export default {
background-color: #eee;
color: #777;
}
</style>
</style>

1 comment on commit 3bcaaeb

@vercel
Copy link

@vercel vercel bot commented on 3bcaaeb Jan 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.