forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCardsView.vue
executable file
·95 lines (94 loc) · 3.86 KB
/
CardsView.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
<template lang="pug">
component-view(v-bind:doc="doc")
</template>
<script>
export default {
data () {
return {
doc: {
component: 'card',
edit: 'CardsView',
title: 'Card',
desc: 'The <code>v-card</code> component is a versatile component that can be used for anything from a panel to a static image. The <strong>card</strong> component has numerous helper components to make markup as easy as possible. Components that have no listed options use <strong class="green--text">Vue\'s</strong> functional component option for faster rendering and serve as markup sugar to make building easier.',
examples: [
{ header: 'Components', file: 'cards/1', desc: `A card has 4 basic components, <code>v-card-media</code>, <code>v-card-title</code>, <code>v-card-text</code> and <code>v-card-actions</code>.` },
{ header: 'Media with text', file: 'cards/2', desc: 'Using the layout system, we can add custom text anywhere within the background.' },
{ header: 'Horizontal cards', file: 'cards/3', desc: 'Using <code>v-flex</code>, you can create customized horizontal cards. Use the to the <code>contain</code> property to shrink the <code>v-card-media</code> to fit inside the container, instead of covering.' },
{ header: 'Grids', file: 'cards/4', desc: 'Using grid lists, you can create beautiful layouts.' },
{ header: 'Custom actions', file: 'cards/5', desc: 'With a simple conditional, you can easily add supplementary text that is hidden until opened.' },
// { header: 'Colored', file: 'cards/6', desc: 'You can use any color in the Material design palette as a background of a card.' },
// { header: 'Hover and raised', file: 'cards/7', desc: 'Use the <code>raised</code> and/or <code>hover</code> props to emphasize a card.' },
],
props: {
'v-card': {
params: [
[
'height',
'String',
'auto',
'Manually define the height of the Card',
],
[
'img',
'String',
`-`,
'Specifies an image background',
],
[
'hover',
'Boolean',
'False',
'Apply a higher elevation on hover',
],
[
'raised',
'Boolean',
'False',
'Specifies a higher default elevation',
],
[
'flat',
'Boolean',
'False',
'Specifies a 0 elevation',
],
[
'tile',
'Boolean',
'False',
'Turn the card into a tile by removing the border radius',
]
]
},
'v-card-media': {
params: [
['contain', 'Boolean', 'False', 'Change the background-size to contain.'],
['src', 'String', '-', 'The image to display as a background.'],
['height', 'Number, String', 'False', 'Manually set the height of the component.']
]
},
'v-card-title': {
params: [
['primary-title', 'Boolean', 'False', 'Applies primary title specific padding.']
]
}
},
functional: {
'v-card': {
params: [
[
'v-card-text',
'.card__text'
],
[
'v-card-actions',
'.card__actions'
]
]
}
}
}
}
}
}
</script>