Nuxt/examples/storybook/stories/Welcome.story.js

16 lines
472 B
JavaScript
Raw Normal View History

2018-02-06 02:36:22 +00:00
import { storiesOf } from '@storybook/vue';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import Welcome from '~/components/Welcome.vue';
storiesOf('Welcome', module).add('to Storybook', () => ({
render: h => h(Welcome),
}))
.add("with Link To Button", () => ({
components: { Welcome },
template: '<div align=center><welcome :showApp="action" /></div>',
methods: { action: linkTo("Button") }
}));