vue-docgen support mixin
See original GitHub issueHi,
I have a question about vue-docgen-loader support mixin. 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,
}
I am using vue-docgen-loader in my webpack.config.js file. 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?
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:9 (5 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hello @sense-it-gmbh Can you please try 4.3.0? it should be working for your case now.
I added a test with your mixin and it works 😉
https://github.com/vue-styleguidist/vue-styleguidist/blob/dev/packages/vue-docgen-api/tests/components/jsfile/button-js.test.ts