forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButtonSize.vue
More file actions
91 lines (86 loc) · 1.61 KB
/
ButtonSize.vue
File metadata and controls
91 lines (86 loc) · 1.61 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
<template>
<div class="q-pa-md q-gutter-sm">
<q-btn
v-for="size in sizes" :key="`btn_size_sq_${size}`"
color="primary"
:size="size"
:label="`Size ${size}`"
/>
<br>
<q-btn
v-for="size in sizes" :key="`btn_size_rd_${size}`"
rounded
color="primary"
:size="size"
:label="`Size ${size}`"
/>
<br>
<q-btn
v-for="(size, i) in sizes" :key="`btn_size_round_${size}`"
round
color="primary"
:size="size"
:icon="icons[i]"
/>
<br>
<q-btn
v-for="size in sizes" :key="`btn_size_dense_sq_${size}`"
dense
color="primary"
:size="size"
:label="`Size ${size}`"
/>
<br>
<q-btn
v-for="size in sizes" :key="`btn_size_dense_rd_${size}`"
rounded
dense
color="primary"
:size="size"
:label="`Size ${size}`"
/>
<br>
<q-btn
v-for="(size, i) in sizes" :key="`btn_size_dense_round_${size}`"
round
dense
color="primary"
:size="size"
:icon="icons[i]"
/>
<br>
<q-btn
size="10px"
color="black"
label="Text height: 10px"
/>
<q-btn
size="22px"
class="q-px-xl q-py-xs"
color="purple"
label="Custom"
/>
<q-btn
size="35px"
round
color="teal"
icon="map"
/>
</div>
</template>
<script>
export default {
setup () {
return {
sizes: [ 'xs', 'sm', 'md', 'lg', 'xl' ],
icons: [
'navigation',
'add_a_photo',
'camera',
'camera_front',
'my_location'
]
}
}
}
</script>