forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSizing.vue
More file actions
95 lines (82 loc) · 2.37 KB
/
Sizing.vue
File metadata and controls
95 lines (82 loc) · 2.37 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
<template>
<div class="q-pa-md q-gutter-sm">
<q-btn label="Small" color="primary" @click="small = true" />
<q-btn label="Medium" color="primary" @click="medium = true" />
<q-btn label="Full Width" color="primary" @click="fullWidth = true" />
<q-btn label="Full Height" color="primary" @click="fullHeight = true" />
<q-dialog
v-model="small"
>
<q-card style="width: 300px">
<q-card-section>
<div class="text-h6">Small</div>
</q-card-section>
<q-card-section class="q-pt-none">
Click/Tap on the backdrop.
</q-card-section>
<q-card-actions align="right" class="bg-white text-teal">
<q-btn flat label="OK" v-close-popup />
</q-card-actions>
</q-card>
</q-dialog>
<q-dialog
v-model="medium"
>
<q-card style="width: 700px; max-width: 80vw;">
<q-card-section>
<div class="text-h6">Medium</div>
</q-card-section>
<q-card-section class="q-pt-none">
Click/Tap on the backdrop.
</q-card-section>
<q-card-actions align="right" class="bg-white text-teal">
<q-btn flat label="OK" v-close-popup />
</q-card-actions>
</q-card>
</q-dialog>
<q-dialog
v-model="fullWidth"
full-width
>
<q-card>
<q-card-section>
<div class="text-h6">Full Width</div>
</q-card-section>
<q-card-section class="q-pt-none">
Click/Tap on the backdrop.
</q-card-section>
<q-card-actions align="right" class="bg-white text-teal">
<q-btn flat label="OK" v-close-popup />
</q-card-actions>
</q-card>
</q-dialog>
<q-dialog
v-model="fullHeight"
full-height
>
<q-card class="column full-height" style="width: 300px">
<q-card-section>
<div class="text-h6">Full Height</div>
</q-card-section>
<q-card-section class="col q-pt-none">
Click/Tap on the backdrop.
</q-card-section>
<q-card-actions align="right" class="bg-white text-teal">
<q-btn flat label="OK" v-close-popup />
</q-card-actions>
</q-card>
</q-dialog>
</div>
</template>
<script>
export default {
data () {
return {
small: false,
medium: false,
fullWidth: false,
fullHeight: false
}
}
}
</script>