forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMaskSimple.vue
More file actions
42 lines (38 loc) · 899 Bytes
/
MaskSimple.vue
File metadata and controls
42 lines (38 loc) · 899 Bytes
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
<template>
<div class="q-pa-md">
<div class="q-gutter-md row items-start">
<div>
<div class="q-pb-sm q-gutter-sm">
<q-badge color="teal">
Model: {{ model1 }}
</q-badge>
<q-badge color="purple" text-color="white">
Mask: hh:mm A
</q-badge>
</div>
<q-time v-model="model1" mask="hh:mm A" />
</div>
<div>
<div class="q-pb-sm q-gutter-sm">
<q-badge color="teal">
Model: {{ model2 }}
</q-badge>
<q-badge color="purple" text-color="white">
Mask: HH*mm**ss
</q-badge>
</div>
<q-time v-model="model2" mask="HH*mm**ss" with-seconds />
</div>
</div>
</div>
</template>
<script>
export default {
data () {
return {
model1: '01:51 PM',
model2: '08*22**10'
}
}
}
</script>