blob: ee320b7ea15f5f43b0eaa2ea24d77477a4a1aba9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import { storiesOf } from '@storybook/vue'
import { routes } from './TheFooter.stories'
import TheHeader from './TheHeader'
const header = {
routes,
title: '19 PDH Puszcza',
logo: '/assets/krajka-logo.svg'
}
const alwaysTop = () => ({
template: `<div style="display:flex;flex-direction:column;min-height:100vh"><story/><div style="flex:1"></div></div>`
})
storiesOf('TheHeader', module)
.addDecorator(alwaysTop)
.add('default', () => {
return {
components: { TheHeader },
template: `<the-header :routes="routes" :title="title" :logo="logo"/>`,
data: () => header
}
})
|