Current behavior


In the table of props, I am getting the value prop still, even though I'm using the @model tag and the v-model prop is showing.
This is a functional component.
Expected behavior
I expect the v-model prop to show but the value prop to not show.
Solved with this in styleguide.config.js
propsParser(filePath, source) {
const component = vda.parse(filePath)
// remove second instance of value if v-model
if (component.props) {
if (component.props.value && component.props['v-model']) {
delete component.props.value;
}
}
return component;
},
Thank you for the report.
Interesting fix you got here ;)
Hope you will soon not need it anymore.
I should have it repaired by the end of the week.
Thanks for your quick reply. Don't really need it fast at all as my workaround works just fine. But thanks for working on it. Would be interested to start my first pr but we are pretty busy. However I'm liking V-Styleguidist. I wrote a crazy parser for my inline use of attributes, which are over the top.
I just found the issue.
It is a combination of both propHandlers.
The script propHandler detects the @model but the template propHandler does not.
Template handler then creates a new prop.
Give me a minute.
fixed ;)
Thank you :)
Most helpful comment
Solved with this in styleguide.config.js