-
-
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
Support slots, events and external .js #102
Comments
Hello, Nope I didn't plan anything, but this can be nice to have slots and events with For mixins, do you think to a particular behavior?
For external .js files, I don't see why it should be useful to have them. 🤔 |
To dont dificult temlate, to .vue was max clear and contains only template. This bad? |
This main aimp! |
Mmmh, okay. I understand what you are saying, and yes those are interesting functionalities (but not really for external
Feel free to open a pull request, thanks! 🙂 |
Why? What is the reason? |
Firstly, I think it's counter-productive to split a Secondly, this is not how JSDoc works (I think?). |
In such cases, how will myxins belong to this component? Mixins are precisely defined in separate files. |
https://vuejs.org/v2/guide/single-file-components.html#What-About-Separation-of-Concerns |
Thank you, I know this feature exists, that why I said "I think". For mixins, you should use |
I also use computed and data selection in mixin, but all definitions
are located in .vue. How to deal with these fields? |
Mmmh... Good question. Maybe What do you think? |
@kolesoffac Did you find a solution when using external files? Or did you switch to another solution? |
Hi guys Both slots (scoped) and events have an ability to pass parameters. It would be great if we had a For example /**
* The s-popup component displays a popup window with your text and an optional title.
*
* @vue-slot activator Clicking this content will display the popup
* @param {object} item This is purely fictional, just to demonstrate how the @param would be used
*
* @vue-slot [title] An optional popup title
* @vue-slot default The content to be displayed
*
* @vue-event close
* @param {string} result The button that the user clicked (OK or Cancel)
* Is this feasible? |
I don't think this is feasible, because in JSDoc core, when you have one comment block, |
Update: @event can be used to document events already, like this /**
* Toggle flag that displays this list
* @event toggle-show-list
* @property val
*/
/**
* Emits event to the parent to remove the given UUID
* @event remove-delegate
* @property {uuid} UUID
*/
/**
* Tell the parent to close the delegate form
* @event close-delegate-form
*/ |
@Kocal did you ever get around to building out the |
@Elaniobro hi, no I didn't work on it, but you are free to send a PR if you need it. |
@Elaniobro Sorry, I don’t remember exactly what I did with that. It’s been almost two years since then. |
@Kocal have you seen vuese? It works really well for documenting vue components. Personally the only reason I've avoided using it is because it seems to be specific to vue and I don't think integrates the rest of jsdocs like your plugin does. But it might provide ideas for implementation |
Do you plan to add support for support slots, events, mixins and external .js?
my .vue:
The text was updated successfully, but these errors were encountered: