forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDesignStandard.vue
More file actions
152 lines (124 loc) · 4.33 KB
/
DesignStandard.vue
File metadata and controls
152 lines (124 loc) · 4.33 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<template>
<div class="q-pa-md">
<div class="q-gutter-y-md column" style="max-width: 300px">
<q-toggle v-model="dense" label="Dense QField" />
<q-field :dense="dense">
<template v-slot:control>
<div class="self-center full-width no-outline" tabindex="0">{{text}}</div>
</template>
</q-field>
<q-field label="Label" stack-label :dense="dense">
<template v-slot:control>
<div class="self-center full-width no-outline" tabindex="0">{{text}}</div>
</template>
</q-field>
<q-field :dense="dense">
<template v-slot:prepend>
<q-icon name="event" />
</template>
<template v-slot:control>
<div class="self-center full-width no-outline" tabindex="0">{{text}}</div>
</template>
</q-field>
<q-field :dense="dense">
<template v-slot:control>
<div class="self-center full-width no-outline" tabindex="0">{{text}}</div>
</template>
<template v-slot:append>
<q-avatar>
<img src="https://cdn.quasar.dev/logo-v2/svg/logo.svg">
</q-avatar>
</template>
</q-field>
<q-field :model-value="text" bottom-slots label="Label" stack-label counter :dense="dense">
<template v-slot:prepend>
<q-icon name="place" />
</template>
<template v-slot:control>
<div class="self-center full-width no-outline" tabindex="0">{{text}}</div>
</template>
<template v-slot:append>
<q-icon name="close" class="cursor-pointer" />
</template>
<template v-slot:hint>
Field hint
</template>
</q-field>
<q-field :model-value="text" bottom-slots label="Label" stack-label counter maxlength="12" :dense="dense">
<template v-slot:before>
<q-icon name="flight_takeoff" />
</template>
<template v-slot:control>
<div class="self-center full-width no-outline" tabindex="0">{{text}}</div>
</template>
<template v-slot:append>
<q-icon v-if="text !== ''" name="close" class="cursor-pointer" />
<q-icon name="search" />
</template>
<template v-slot:hint>
Field hint
</template>
</q-field>
<q-field :model-value="text" bottom-slots label="Label" stack-label counter maxlength="12" :dense="dense">
<template v-slot:before>
<q-avatar>
<img src="https://cdn.quasar.dev/img/avatar5.jpg">
</q-avatar>
</template>
<template v-slot:control>
<div class="self-center full-width no-outline" tabindex="0">{{text}}</div>
</template>
<template v-slot:append>
<q-icon v-if="text !== ''" name="close" class="cursor-pointer" />
<q-icon name="schedule" />
</template>
<template v-slot:hint>
Field hint
</template>
<template v-slot:after>
<q-btn round dense flat icon="send" />
</template>
</q-field>
<q-field :model-value="text" bottom-slots label="Label" stack-label counter maxlength="12" :dense="dense">
<template v-slot:before>
<q-icon name="event" />
</template>
<template v-slot:control>
<div class="self-center full-width no-outline" tabindex="0">{{text}}</div>
</template>
<template v-slot:hint>
Field hint
</template>
<template v-slot:append>
<q-btn round dense flat icon="add" />
</template>
</q-field>
<q-field hint="Disable" :dense="dense" disable>
<template v-slot:control>
<div class="self-center full-width no-outline">{{text}}</div>
</template>
</q-field>
<q-field hint="Readonly" :dense="dense" readonly>
<template v-slot:control>
<div class="self-center full-width no-outline">{{text}}</div>
</template>
</q-field>
<q-field hint="Disable and readonly" :dense="dense" disable readonly>
<template v-slot:control>
<div class="self-center full-width no-outline">{{text}}</div>
</template>
</q-field>
</div>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
text: ref('Field content'),
dense: ref(false)
}
}
}
</script>