-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
vuetify.story.js
110 lines (105 loc) · 1.96 KB
/
vuetify.story.js
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import { storiesOf } from '@storybook/vue'
import Centered from '@storybook/addon-centered'
import VuetifyLogo from '~/components/VuetifyLogo.vue'
storiesOf('Vuetify/Logo', module)
.addDecorator(Centered)
.add('Logo', () => ({
render: h => h(VuetifyLogo)
}))
const menuItems = [
{
action: 'local_activity',
title: 'Attractions',
items: [{ title: 'List Item' }]
},
{
action: 'restaurant',
title: 'Dining',
active: true,
items: [
{ title: 'Breakfast & brunch' },
{ title: 'New American' },
{ title: 'Sushi' }
]
},
{
action: 'school',
title: 'Education',
items: [{ title: 'List Item' }]
},
{
action: 'directions_run',
title: 'Family',
items: [{ title: 'List Item' }]
},
{
action: 'healing',
title: 'Health',
items: [{ title: 'List Item' }]
},
{
action: 'content_cut',
title: 'Office',
items: [{ title: 'List Item' }]
},
{
action: 'local_offer',
title: 'Promotions',
items: [{ title: 'List Item' }]
}
]
const menuItemsAlt = [
{
action: 'inbox',
title: 'Mailbox'
},
{
action: 'note',
title: 'My Address'
},
{
action: 'assignment',
title: 'In Progress',
active: true,
items: [
{ title: 'Consolidation' },
{ title: 'Repacking' },
{ title: 'Shipping' }
]
},
{
action: 'playlist_add_check',
title: 'Registration'
},
{
action: 'account_circle',
title: 'Account'
},
{
action: 'view_headline',
title: 'Shipped'
}
]
storiesOf('Vuetify/V-Btn', module)
.add('Square Button', () => ({
components: {},
data() {
return {
items: menuItems
}
},
template:
'<v-btn color="success">Success</v-btn>'
}))
.add('with rounded button', () => ({
components: {},
data() {
return {
items: menuItemsAlt
}
},
template:
`<v-btn color="warning" large round dark>
Rounded button
</v-btn>`
}))