forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExpansionPanelView.vue
executable file
·63 lines (62 loc) · 2.01 KB
/
ExpansionPanelView.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
<template lang="pug">
component-view(v-bind:doc="doc")
</template>
<script>
export default {
data () {
return {
doc: {
title: 'Expansion Panel',
edit: 'ExpansionPanelView',
component: 'expansion-panel',
desc: `The <code>v-expansion-panel</code> component is useful for reducing vertical space with large amounts of information. The default functionality of the component is to only display one expansion-panel body at a time, however, with the <code>expandable</code> property, the expansion-panel can remain open until explicity closed.`,
examples: [
{ header: 'Accordion', file: 'expansion-panel/1', desc: 'Accordion expansion panels can only have 1 panel open at a time.' },
{ header: 'Expand', file: 'expansion-panel/2', desc: 'Expand expansion panels will stay open until closed.' }
],
props: {
'v-expansion-panel': {
params: [
[
'expand',
'Boolean',
'False',
'Leaves expansion-panel open when selecting another'
]
]
},
'v-expansion-panel-content': {
params: [
[
'ripple',
'Boolean',
'False',
'Applies the ripple directive'
]
],
model: {
types: ['Boolean'],
default: 'False',
description: 'Designates whether content is expanded or not'
}
}
},
slots: {
'v-expansion-panel': {
shared: ['default']
},
'v-expansion-panel-content': {
shared: ['default'],
params: [
[
'header',
'Expansion header content'
]
]
}
}
}
}
}
}
</script>