blob: 830dd6a440ca46669a8285342297c6c587db2860 (
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
25
26
|
import { storiesOf } from '@storybook/vue'
import { center } from '../../.storybook/decorators'
import RankingList from './RankingList'
import { rankingEntry } from './RankingEntry.stories'
const rankingList = {
scores: Array.from(Array(3).keys()).map(i => ({
...rankingEntry,
troop: `Troop${i}`
}))
}
storiesOf('Ranking/RankingList', module)
.addDecorator(center)
.add('default', () => {
return {
components: { RankingList },
template: `<ranking-list :scores="scores" />`,
data: () => {
console.log(rankingList)
return rankingList
}
}
})
|