Skip to content

Commit b9a7979

Browse files
authored
docs(accessibility,theme): switch examples to plain markup (#14548)
1 parent 3bedc1f commit b9a7979

File tree

2 files changed

+34
-66
lines changed

2 files changed

+34
-66
lines changed
Lines changed: 12 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,19 @@
11
<template>
2-
<v-card
3-
class="mx-auto"
4-
max-width="500"
5-
>
2+
<v-card class="mx-auto" max-width="500">
63
<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>
1615
</v-list-item>
1716
</v-list-item-group>
1817
</v-list>
1918
</v-card>
2019
</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>
Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
<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">
104
<v-switch
115
v-model="$vuetify.theme.dark"
126
hint="This toggles the global state of the Vuetify theme"
@@ -20,11 +14,16 @@
2014
<v-list>
2115
<v-subheader>I inherit dark from my parent</v-subheader>
2216

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>
2827
</v-list-item>
2928
</v-list>
3029

@@ -38,27 +37,19 @@
3837
<strong>&nbsp;$vuetify.theme.dark</strong>
3938
</v-subheader>
4039

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>
4650
</v-list-item>
4751
</v-list>
4852
</v-theme-provider>
4953
</v-card-text>
5054
</v-card>
5155
</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>

0 commit comments

Comments
 (0)