You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a bunch of components, and one of them includes a mixin, all the following components having a prop with the same name already defined in that mixin will have their documentation overridden with the one coming from the mixin.
So, for example, if in test.mixin.js you have
props: {
/**
* a prop from the mixin
*/
test: {
type: String,
required: false,
default: null
}
all the components with the same prop, parsed after this mixin is processed get as a Descriptiona prop from the mixin instead of the local description you might have added in the specific component - that does not use or reference the mixin.
The HelloWorld component includes a mixin with a prop named testProp, the local testProp documentation is overridden (but the same happens to the testProp of HelloWorld2 component but it does not include the mixin!) The BeforeComponent, instead, looks good.
If you have a bunch of components, and one of them includes a mixin, all the following components having a prop with the same name already defined in that mixin will have their documentation overridden with the one coming from the mixin.
So, for example, if in
test.mixin.js
you haveall the components with the same prop, parsed after this mixin is processed get as a Description a prop from the mixin instead of the local description you might have added in the specific component - that does not use or reference the mixin.
note:
a use case has been built here:
https://github.com/bwcgn/vue-styleguidist-test/tree/repro/mixin-and-documentation
The HelloWorld component includes a mixin with a prop named testProp, the local testProp documentation is overridden (but the same happens to the testProp of HelloWorld2 component but it does not include the mixin!) The BeforeComponent, instead, looks good.
Not sure if this somehow relates to #7
The text was updated successfully, but these errors were encountered: