forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGridView.vue
executable file
·254 lines (253 loc) · 9.16 KB
/
GridView.vue
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<template lang="pug">
component-view(v-bind:doc="doc")
v-alert(info value="true" slot="top") If you are looking for <strong>Grid lists</strong>, please navigate <router-link class="white--text" to="/components/grid-lists">here</router-link>.
v-card(slot="top").my-5
v-table-overflow
table.table
caption.mt-3
strong Material Design Viewport Breakpoints
thead
tr.text-xs-left
th Device
th Types
th Range
tbody
tr
td
v-icon.mr-3 phone_iphone
span Extra small
td small to large handset
td < 600px
tr
td
v-icon.mr-3 tablet
span Small
td small to medium tablet
td 600px > < 1024px
tr
td
v-icon.mr-3 laptop
span Medium
td large tablet to laptop
td 1024px > < 1440px
tr
td
v-icon.mr-3 desktop_windows
span Large
td desktop
td 1440px > < 1920px
tr
td
v-icon.mr-3 tv
span Extra large
td 4k and ultra-wides
td > 1920px
</template>
<script>
export default {
data () {
return {
doc: {
title: 'Grid',
component: 'grid',
edit: 'GridView',
desc: `Vuetify.js uses a 12 point grid system. The grid is used to layout an application\'s content and contains 5 types of media breakpoints. The 5 ranges of breakpoints are used for targeting specific screen sizes or orientations.`,
examples: [
{ header: 'Grid', file: 'grid/1', desc: `The <code>v-container</code> can be used for a center focused page, or given the <code>fluid</code> prop to extend its full width. <code>v-layout</code> is used for separating sections and contains the <code>v-flex</code>. The structure of your layout will be as follows, <strong>v-layout</strong> » <strong>v-flex</strong>.` },
{ header: 'Offset', file: 'grid/2', desc: `Offsets are useful for compensating for elements that may not be visible yet, or to control the position of content. Just as with breakpoints, you can set an offset for any available sizes.` },
{ header: 'Order', file: 'grid/3', desc: 'You can control the ordering of grid items. As with offsets, you can set different orders for different sizes' },
{ header: 'Direction and Align', file: 'grid/4', desc: 'Designate the direction and alignment in a variety of ways.' },
{ header: 'Row and column based on breakpoint', file: 'grid/5', desc: 'Dynamically change your layout based upon resolution. <strong>(resize your screen and watch the layout change on small breakpoints)</strong>' }
],
props: {
'v-container': {
params: [
[
'fluid',
'Boolean',
'False',
'Removes viewport size breakpoints'
],
[
'grid-list-{xs through xl}',
'Boolean',
'False',
'Sets the gutter between grid list items ranging from 1px to 24px'
]
]
},
'v-layout': {
params: [
[
'row[-size]',
'Boolean',
'False',
'Sets flex direction to row for the designated breakpoints. Available for all breakpoints xs => xl.'
],
[
'column[-size]',
'Boolean',
'False',
'Sets flex direction to column for designated breakpoints. Available for all breakpoints xs => xl.'
],
[
'child-flex',
'Boolean',
'False',
'Apply flex: 1 to all direct children'
],
[
'child-flex[-size]',
'Boolean',
'False',
'Apply flex: 1 to all direct children for designated breakpoints. Available for all breakpoints xs => xl'
],
[
'reverse',
'Boolean',
'False',
'Reverses the currently selected direction (column, row).'
],
[
'justify-space-around',
'Boolean',
'False',
'Justify content to the space around.'
],
[
'justify-space-between',
'Boolean',
'False',
'Justify content to the space between.'
],
[
'justify-center',
'Boolean',
'False',
'Justify content to the center..'
],
[
'justify-start',
'Boolean',
'False',
'Space between child elements.'
],
[
'justify-end',
'Boolean',
'False',
'Space between child elements.'
],
[
'align-center',
'Boolean',
'False',
'Align items to the center.'
],
[
'align-baseline',
'Boolean',
'False',
'Align items to the baseline.'
],
[
'align-start',
'Boolean',
'False',
'Align items to the start.'
],
[
'align-end',
'Boolean',
'False',
'Align items to the end.'
],
[
'align-content-start',
'Boolean',
'False',
'Align content to the start.'
],
[
'align-content-end',
'Boolean',
'False',
'Align content to the end.'
],
[
'align-content-center',
'Boolean',
'False',
'Align content to the center.'
],
[
'align-content-space-around',
'Boolean',
'False',
'Align content to the space around.'
],
[
'align-content-space-between',
'Boolean',
'False',
'Align content to the space between.'
],
[
'wrap',
'Boolean',
'False',
'Allows children to wrap within the container if the elements use more than 100%.'
]
]
},
'v-flex': {
params: [
[
'xs(1-12)',
'Boolean',
'False',
'xs:extra small, sm:small, md:medium, lg:large, xl:extra large - 1 through 12'
], [
'offset-[size](0-12)',
'Boolean',
'False',
'offset-xs:extra small, offset-sm:small, offset-md:medium, offset-lg:large, offset-xl:extra large. Example: offset-xs3'
], [
'order-[size](1-12)',
'Boolean',
'False',
'order-xs:extra small, order-sm:small, order-md:medium, order-lg:large, order-xl:extra large. Example: order-xs1'
],
[
'fill-height',
'Boolean',
'False',
'Make sure that col element height is filled with parent and child. Important for Safari/Firefox if children is column element.'
]
]
}
},
slots: {
'v-container': {
default: true
},
'v-layout': {
default: true
},
'v-flex': {
default: true
}
},
functional: {
'grid': {
params: [
['v-content', 'The main content wrapper for your application'],
['v-spacer', 'Spacer for flexbox grids']
]
}
}
}
}
}
}
</script>