Skip to content
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

Props not read when using defineComponent #264

Open
EdieLemoine opened this issue Sep 27, 2022 · 1 comment
Open

Props not read when using defineComponent #264

EdieLemoine opened this issue Sep 27, 2022 · 1 comment

Comments

@EdieLemoine
Copy link

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:

<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.

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.

@TheCelebrimbor
Copy link

Facing this issue as well, any resolutions ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants