-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] - can't set Required? #364
Comments
Hi, and thanks for your words. I think you need to use this to make a property required: /**
* @vue-prop {String} bgColor - hexadecimal color value for loader
*/ Since it uses See https://github.com/Kocal/jsdoc-vuejs#usage and https://jsdoc.app/tags-param.html#optional-parameters-and-default-values for more information |
How can a Vue props can be required if it has a default value? |
@Kocal fair enough, but the documentation is then confusing since |
I will be honest here and admit that I also find the documentation might benefit from being a little clearer on what part of that syntax designates what. I am currently doing a lot of trial and error . I got there eventually, but knowing that the default value needs to be sqashed in the square brackets with the name, whereas other bits are simply separated by spaces. The hyphens before "description" seem to be more of a stylistic best practice? I could easily remove them. |
Awesome plugin, really liking how it works so far.
Not sure if this a bug, known or other, but I can't seem to set the
Required?
table cell in the@vue-props
declaration.Nothing seems to work, and
Required?
is alwaysNo
The text was updated successfully, but these errors were encountered: