DemoDialogFullscreen.vue
3 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
<script setup>
const isDialogVisible = ref(false)
</script>
<template>
<VDialog
v-model="isDialogVisible"
fullscreen
:scrim="false"
transition="dialog-bottom-transition"
>
<!-- Dialog Activator -->
<template #activator="{ props }">
<VBtn v-bind="props">
Open Dialog
</VBtn>
</template>
<!-- Dialog Content -->
<VCard>
<!-- Toolbar -->
<div>
<VToolbar color="primary">
<VBtn
icon
variant="plain"
@click="isDialogVisible = false"
>
<VIcon
color="white"
icon="ri-close-line"
/>
</VBtn>
<VToolbarTitle>Settings</VToolbarTitle>
<VSpacer />
<VToolbarItems>
<VBtn
variant="text"
@click="isDialogVisible = false"
>
Save
</VBtn>
</VToolbarItems>
</VToolbar>
</div>
<!-- List -->
<VList lines="two">
<VListSubheader>User Controls</VListSubheader>
<VListItem
title="Content filtering"
subtitle="Set the content filtering level to restrict apps that can be downloaded"
/>
<VListItem
title="Password"
subtitle="Require password for purchase or use password to restrict purchase"
/>
</VList>
<VDivider />
<!-- List -->
<VList
lines="two"
select-strategy="classic"
>
<VListSubheader>General</VListSubheader>
<VListItem
title="Notifications"
subtitle="Notify me about updates to apps or games that I downloaded"
value="Notifications"
>
<template #prepend="{ isActive }">
<VListItemAction start>
<VCheckbox
:model-value="isActive"
color="primary"
/>
</VListItemAction>
</template>
</VListItem>
<VListItem
title="Sound"
subtitle="Auto-update apps at any time. Data charges may apply"
value="Sound"
>
<template #prepend="{ isActive }">
<VListItemAction start>
<VCheckbox
:model-value="isActive"
color="primary"
/>
</VListItemAction>
</template>
</VListItem>
<VListItem
title="Auto-add widgets"
subtitle="Automatically add home screen widgets"
value="Auto-add widgets"
>
<template #prepend="{ isActive }">
<VListItemAction start>
<VCheckbox
:model-value="isActive"
color="primary"
/>
</VListItemAction>
</template>
</VListItem>
</VList>
</VCard>
</VDialog>
</template>
<style lang="scss">
.dialog-bottom-transition-enter-active,
.dialog-bottom-transition-leave-active {
transition: transform 0.2s ease-in-out;
}
</style>