mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
14 lines
415 B
JavaScript
14 lines
415 B
JavaScript
import { storiesOf } from '@storybook/vue'
|
|
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') }
|
|
}))
|