-
-
Notifications
You must be signed in to change notification settings - Fork 414
Sfc description tags #1621
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
base: dev
Are you sure you want to change the base?
Sfc description tags #1621
Conversation
|
PR Summary
|
Passing run #544 ↗︎Details:
Review all test suite changes for PR #1621 ↗︎ |
I would prefer to use the following syntax to keep common matters together: <script setup lang="ts">
import { ... } from "vue";
/**
* My super description
*/
defineOptions({
name: 'ComponentNameInDevTools'
})
... This way, all features added to the options would be available in setup too. What do you think? |
Sure ! But I am confused: I used the And then, where to put the logic if not in a specific handler ? In the |
Hi there, this PR aims to provide a way to handle
@description
tag in SFC components.Motivation
In the old vue syntax,
vue-docgen-api
parses the JSDoc comment on top of theexport default
as a description for the component:results in
But with the new syntax, there is no way to get this description. So I just added an handler to take care of it:
Now results in
Solves this