pocka / storybook-addon-vue-info

Info addon for Vue components
https://storybook-addon-vue-info.netlify.com/?path=/story/examples-basic-usage--simple-example
MIT License
164 stars 28 forks source link

'Failed to get default value' with Function type prop and default #126

Closed jackysee closed 4 years ago

jackysee commented 4 years ago

For prop like this:

getLabel: { type: Function, default: item => item.desp }

The addon would try to run the default function and result in prop table:

image

while it should print the function implementation itself.

Versions

pocka commented 4 years ago

Fixed in v1.4.2.

Please use an issue template.