File tree Expand file tree Collapse file tree 2 files changed +34
-66
lines changed
packages/docs/src/examples Expand file tree Collapse file tree 2 files changed +34
-66
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <v-card
3
- class =" mx-auto"
4
- max-width =" 500"
5
- >
2
+ <v-card class =" mx-auto" max-width =" 500" >
6
3
<v-list >
7
- <v-list-item-group v-model =" model" >
8
- <v-list-item
9
- v-for =" (item, i) in items"
10
- :key =" i"
11
- :disabled =" item.disabled"
12
- >
13
- <v-list-item-content >
14
- <v-list-item-title v-text =" item.text" ></v-list-item-title >
15
- </v-list-item-content >
4
+ <v-list-item-group >
5
+ <v-list-item >
6
+ <v-list-item-title > Item 1 </v-list-item-title >
7
+ </v-list-item >
8
+
9
+ <v-list-item disabled >
10
+ <v-list-item-title > Item 2 </v-list-item-title >
11
+ </v-list-item >
12
+
13
+ <v-list-item >
14
+ <v-list-item-title > Item 3 </v-list-item-title >
16
15
</v-list-item >
17
16
</v-list-item-group >
18
17
</v-list >
19
18
</v-card >
20
19
</template >
21
-
22
- <script >
23
- export default {
24
- data : () => ({
25
- items: [
26
- {
27
- text: ' Item 1' ,
28
- disabled: false ,
29
- },
30
- {
31
- text: ' Item 2' ,
32
- disabled: true ,
33
- },
34
- {
35
- text: ' Item 3' ,
36
- disabled: false ,
37
- },
38
- ],
39
- model: 0 ,
40
- }),
41
- }
42
- </script >
Original file line number Diff line number Diff line change 1
1
<template >
2
- <v-card
3
- dark
4
- flat
5
- >
6
- <v-toolbar
7
- flat
8
- height =" 72"
9
- >
2
+ <v-card dark flat >
3
+ <v-toolbar flat height =" 72" >
10
4
<v-switch
11
5
v-model =" $vuetify.theme.dark"
12
6
hint =" This toggles the global state of the Vuetify theme"
20
14
<v-list >
21
15
<v-subheader >I inherit dark from my parent</v-subheader >
22
16
23
- <v-list-item
24
- v-for =" item in items"
25
- :key =" item"
26
- >
27
- <v-list-item-title v-text =" item" ></v-list-item-title >
17
+ <v-list-item >
18
+ <v-list-item-title >One</v-list-item-title >
19
+ </v-list-item >
20
+
21
+ <v-list-item >
22
+ <v-list-item-title >Two</v-list-item-title >
23
+ </v-list-item >
24
+
25
+ <v-list-item >
26
+ <v-list-item-title >Three</v-list-item-title >
28
27
</v-list-item >
29
28
</v-list >
30
29
38
37
<strong >  ; $vuetify.theme.dark</strong >
39
38
</v-subheader >
40
39
41
- <v-list-item
42
- v-for =" item in items"
43
- :key =" item"
44
- >
45
- <v-list-item-title v-text =" item" ></v-list-item-title >
40
+ <v-list-item >
41
+ <v-list-item-title >One</v-list-item-title >
42
+ </v-list-item >
43
+
44
+ <v-list-item >
45
+ <v-list-item-title >Two</v-list-item-title >
46
+ </v-list-item >
47
+
48
+ <v-list-item >
49
+ <v-list-item-title >Three</v-list-item-title >
46
50
</v-list-item >
47
51
</v-list >
48
52
</v-theme-provider >
49
53
</v-card-text >
50
54
</v-card >
51
55
</template >
52
-
53
- <script >
54
- export default {
55
- props: {
56
- attrs: {
57
- type: Object ,
58
- default : () => ({}),
59
- },
60
- },
61
-
62
- data : () => ({ items: [' One' , ' Two' , ' Three' ] }),
63
- }
64
- </script >
You can’t perform that action at this time.
0 commit comments