Skip to content

Commit

Permalink
Merge pull request #16975 from linkerGitHub/next
Browse files Browse the repository at this point in the history
Addon-docs/Vue: Include methods in ArgsTable
  • Loading branch information
shilman authored Jan 3, 2022
2 parents 578082b + 072a9d4 commit f32cdfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/docs/src/frameworks/vue/extractArgTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '../../lib/docgen';
import { convert } from '../../lib/convert';

const SECTIONS = ['props', 'events', 'slots'];
const SECTIONS = ['props', 'events', 'slots', 'methods'];

/**
* Check if "@values" tag is defined within docgenInfo.
Expand Down
4 changes: 4 additions & 0 deletions examples/vue-kitchen-sink/src/stories/Welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
<script>
export default {
methods: {
/**
* emit buttonRequested event
* @public
**/
requestButton() {
/**
* Emitted when the button example is requested
Expand Down

0 comments on commit f32cdfd

Please sign in to comment.