Open EdieLemoine opened 1 year ago
Describe the bug When I use defineComponent, Vuese does not extract props.
defineComponent
To Reproduce You can see it in the sandbox: https://vuese.github.io/vuese-explorer/
First, try it without defineComponent:
<template> <div /> </template> <script> export default { name: 'MyComponent', props: { // Loading loading: { type: Boolean, }, }, }; </script>
This will output a props section with the loading prop, its type and the comment above it.
loading
Then with:
<template> <div /> </template> <script> import {defineComponent} from 'vue'; export default defineComponent({ name: 'MyComponent', props: { // Loading loading: { type: Boolean, }, }, }); </script>
This will output nothing.
Expected behavior Props to show up in the example where I use defineComponent, just as they do in the one without it.
Facing this issue as well, any resolutions ?
Describe the bug When I use
defineComponent
, Vuese does not extract props.To Reproduce You can see it in the sandbox: https://vuese.github.io/vuese-explorer/
First, try it without
defineComponent
:This will output a props section with the
loading
prop, its type and the comment above it.Then with:
This will output nothing.
Expected behavior Props to show up in the example where I use
defineComponent
, just as they do in the one without it.