forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActiveState.vue
More file actions
43 lines (38 loc) · 1.18 KB
/
ActiveState.vue
File metadata and controls
43 lines (38 loc) · 1.18 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
<template>
<div class="q-pa-md q-gutter-md" style="max-width: 350px">
<q-toggle v-model="active" label="Active" />
<q-list bordered separator>
<q-item clickable v-ripple :active="active">
<q-item-section avatar>
<q-icon name="signal_wifi_off" />
</q-item-section>
<q-item-section>Active</q-item-section>
<q-item-section side>Side</q-item-section>
</q-item>
<q-item clickable v-ripple :active="active" active-class="text-orange">
<q-item-section avatar>
<q-icon name="signal_wifi_off" />
</q-item-section>
<q-item-section>Active, Active class</q-item-section>
<q-item-section side>Side</q-item-section>
</q-item>
<q-item clickable v-ripple :active="active" active-class="bg-teal-1 text-grey-8">
<q-item-section avatar>
<q-icon name="signal_wifi_off" />
</q-item-section>
<q-item-section>Active, Active class</q-item-section>
<q-item-section side>Side</q-item-section>
</q-item>
</q-list>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
active: ref(true)
}
}
}
</script>