list.vue
4.68 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
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
<script setup>
import * as demoCode from '@/views/demos/components/list/demoCodeList'
</script>
<template>
<VRow class="match-height">
<VCol
cols="12"
md="6"
>
<!-- 👉 Basic -->
<AppCardCode
title="Basic"
no-padding
:code="demoCode.basic"
>
<VCardText><code>v-list</code> component can contain an avatar, content, actions and much more.</VCardText>
<VCardText>
<DemoListBasic />
</VCardText>
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Rounded -->
<AppCardCode
title="Rounded"
no-padding
:code="demoCode.rounded"
>
<VCardText>You can make <code>v-list-item</code> rounded using <code>rounded</code> prop.</VCardText>
<VCardText>
<DemoListRounded />
</VCardText>
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Density -->
<AppCardCode
title="Density"
:code="demoCode.density"
no-padding
>
<VCardText>Use <code>density</code> prop to adjusts the spacing within the component. Available options are: <code>default</code>, <code>comfortable</code>, and <code>compact</code>.</VCardText>
<VCardText>
<DemoListDensity />
</VCardText>
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Nav -->
<AppCardCode
title="Nav"
no-padding
:code="demoCode.nav"
>
<VCardText>Lists can receive an alternative <code>nav</code> styling that reduces the width <code>v-list-item</code> takes up as well as adding a border radius.</VCardText>
<VCardText>
<DemoListNav />
</VCardText>
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Action and item group -->
<AppCardCode
title="Action and item group"
no-padding
:code="demoCode.actionAndItemGroup"
>
<VCardText>A <code>three-line</code> list with actions. Utilizing <code>v-list-group</code>, easily connect actions to your tiles.</VCardText>
<VCardText>
<DemoListActionAndItemGroup />
</VCardText>
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Sub Group -->
<AppCardCode
title="Sub Group"
no-padding
:code="demoCode.subGroup"
>
<VCardText>
Using the <code>v-list-group</code> component you can create up to 2 levels in depth using the sub-group prop.
</VCardText>
<VCardText>
<DemoListSubGroup />
</VCardText>
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Two lines and Subheader -->
<AppCardCode
title="Two lines and subheader"
no-padding
:code="demoCode.twoLinesAndSubheader"
>
<VCardText>Lists can contain subheaders, dividers, and can contain 1 or more lines. The subtitle will overflow with ellipsis if it extends past one line.</VCardText>
<VCardText>
<DemoListTwoLinesAndSubheader />
</VCardText>
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Three Line -->
<AppCardCode
title="Three Line"
no-padding
:code="demoCode.threeLine"
>
<VCardText>For three line lists, the subtitle will clamp vertically at 2 lines and then ellipsis. This feature uses line-clamp and is not supported in all browsers.</VCardText>
<VCardText>
<DemoListThreeLine />
</VCardText>
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Users List -->
<AppCardCode
title="User List"
no-padding
:code="demoCode.userList"
>
<VCardText>
<DemoListUserList />
</VCardText>
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Progress List -->
<AppCardCode
title="Progress List"
no-padding
:code="demoCode.progressList"
>
<VCardText>
<DemoListProgressList />
</VCardText>
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Shaped -->
<AppCardCode
title="Shaped"
no-padding
:code="demoCode.shaped"
>
<VCardText>
Shaped lists have rounded borders on one side of the <code>v-list-item</code>.
</VCardText>
<VCardText>
<DemoListShaped />
</VCardText>
</AppCardCode>
</VCol>
</VRow>
</template>