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

Addon-docs: Fix Vue argTypes default values #11534

Merged
merged 4 commits into from
Jul 16, 2020

Conversation

shilman
Copy link
Member

@shilman shilman commented Jul 14, 2020

Issue: N/A

Vue argTypes extraction is broken for default values, e.g. booleans interpreted as strings. This appeared in #11505 but I'm fixing it separately to make it easier to track.

What I did

The default value returned by vue-docgen-api is a JS string that can be eval'ed, similar to what we're doing already in the react-equivalent code.

How to test

See updated vue-kitchen-sink

@shilman
Copy link
Member Author

shilman commented Jul 16, 2020

self-merging @tmeasday

@shilman shilman changed the title Addon-docs: Fix default values for vue argTypes Addon-docs: Fix Vue argTypes default values Jul 16, 2020
@shilman shilman merged commit 1902272 into next Jul 16, 2020
@stof stof deleted the fix/vue-docgen-default-properties branch May 25, 2022 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant