expansion-panel.vue
2.95 KB
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
<script setup>
import * as demoCode from '@/views/demos/components/expansion-panel/demoCodeExpansionPanel'
</script>
<template>
<VRow class="match-height">
<VCol
cols="12"
md="6"
>
<!-- 👉 Basic -->
<AppCardCode
title="Basic"
variant="outlined"
:code="demoCode.basic"
>
<p>Expansion panels in their simplest form display a list of expandable items. However, with the <code>multiple</code> prop, the expansion-panel can remain open until explicitly closed.</p>
<DemoExpansionPanelBasic />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Accordion -->
<AppCardCode
title="Accordion"
variant="outlined"
:code="demoCode.accordion"
>
<p>Use <code>accordion</code> variant option to create <strong>Accordion</strong> Panels. Accordion expansion-panel hasn't got margins around active panel.</p>
<DemoExpansionPanelAccordion />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Inset -->
<AppCardCode
title="Inset"
variant="outlined"
:code="demoCode.inset"
>
<p>Use <code>inset</code> variant option to create Inset Panels. The Inset expansion-panel becomes smaller when activated.</p>
<DemoExpansionPanelInset />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Popout -->
<AppCardCode
title="Popout"
variant="outlined"
:code="demoCode.popout"
>
<p>
Use <code>popout</code> variant option to create expansion-panel with popout design. With it, expansion-panel is enlarged when activated.
</p>
<DemoExpansionPanelPopout />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Custom Icon -->
<AppCardCode
title="Custom Icon"
variant="outlined"
:code="demoCode.customIcon"
>
<p>Expand action icon can be customized with <code>expand-icon</code> prop or the <code>actions</code> slot.</p>
<DemoExpansionPanelCustomIcon />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Model -->
<AppCardCode
title="Model"
variant="outlined"
:code="demoCode.model"
>
<p>Expansion panels can be controlled externally by modifying the <code>v-model</code>. If <code>multiple</code> prop is used then it is an array containing the indices of the open items.</p>
<DemoExpansionPanelModel />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Customized Accordion -->
<AppCardCode
title="Customized Accordion"
variant="outlined"
:code="demoCode.customizedAccordion"
>
<DemoExpansionPanelCustomizedAccordion />
</AppCardCode>
</VCol>
</VRow>
</template>