forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDividerView.vue
executable file
·59 lines (53 loc) · 1.54 KB
/
DividerView.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
<template lang="pug">
component-view(v-bind:doc="doc")
</template>
<script>
export default {
data () {
return {
doc: {
title: 'Dividers',
component: 'divider',
edit: 'DividerView',
desc: 'The <code>v-divider</code> component is used to separate sections of lists.',
examples: [
{ header: 'Full bleed', file: 'dividers/1', desc: 'Full bleed dividers extend the entire content width.' },
{ header: 'Full bleed', file: 'dividers/2', desc: 'Dividers have light and dark variants.' },
{ header: 'Inset dividers', file: 'dividers/3', desc: 'Inset dividers are moved 72px to the right. This will cause them to line up with list items.' },
{ header: 'Subheaders and dividers', file: 'dividers/4', desc: 'Subheaders can be lined up with inset dividers by using the same prop.' },
],
props: {
'v-divider': {
shared: ['theme'],
params: [
[
'inset',
'Boolean',
'False',
'Adds identation (72px)'
]
]
}
}
}
}
}
}
</script>
<style lang="stylus">
#divider-view
.grid
max-height: 500px
overflow-y: auto
.component-example
position: relative
z-index: 1
.card
max-width: 400px
margin: 0 auto
.image
width: 100%
.toolbar
height: 64px
min-height: none
</style>