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

Default value is not parsed when the keyword "default" is wrapped with quotes #581

Closed
Guobacai opened this issue Sep 20, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@Guobacai
Copy link

Guobacai commented Sep 20, 2019

Current behavior

In a Vue component, if a prop is defined like the following:

{
  props: {
    items: {
       type: Boolean,
       "default": false
    }
  }
}

The default value is not shown in styleguide doc. However, if the quotes are removed, the default value works. In our project, we have an eslint rule "quote-props" which requires the reserved word to be quoted.

Expected behavior

Even the default is quoted, the default value should work.

@elevatebart elevatebart added bug Something isn't working vue-docgen-api labels Sep 20, 2019
elevatebart added a commit that referenced this issue Sep 20, 2019
@Guobacai
Copy link
Author

Thanks so much for your quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants