pocka / storybook-addon-vue-info

Info addon for Vue components
https://storybook-addon-vue-info.netlify.com/?path=/story/examples-basic-usage--simple-example
MIT License
164 stars 28 forks source link

Support mixin #117

Closed beyzacaliskan closed 5 years ago

beyzacaliskan commented 5 years ago

When a component is created using mixin, I can not see the props that come from mixin. I created checkbox component using selectable mixin and added indeterminate props.

import Selectable from '../../components/selectable'

export default {
  name: 'my-checkbox',

  mixins: [
    Selectable
  ],
  props: {
    indeterminate: Boolean,
  }

When I write a story for checkbox component I didn't see props of selectable component. I saw only indeterminate prop in the props table. How can I show props come from selectable component?

pocka commented 5 years ago

@beyzacaliskan Please use issue templates.

The addon shows props/events/methods which defined in mixins only when you use the docgen loader. Otherwise, the addon displays props only come from the component itself.