forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMaskUnmaskedModel.vue
More file actions
50 lines (46 loc) · 1.04 KB
/
MaskUnmaskedModel.vue
File metadata and controls
50 lines (46 loc) · 1.04 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
<template>
<div class="q-pa-md" style="max-width: 300px">
<div class="q-gutter-md">
<q-badge color="secondary">Id model: "{{ id }}"</q-badge>
<q-input
filled
v-model="id"
label="Special Id"
mask="###/##"
unmasked-value
hint="Mask: ###/##"
/>
<q-badge color="secondary">Phone model: "{{ phone }}"</q-badge>
<q-input
filled
v-model="phone"
label="Phone"
mask="(###) ### - ####"
unmasked-value
hint="Mask: (###) ### - ####"
/>
<q-badge color="secondary">Card model: "{{ card }}"</q-badge>
<q-input
filled
v-model="card"
label="Card"
mask="#### - #### - #### - ####"
fill-mask="#"
unmasked-value
hint="Mask: #### - #### - #### - ####, FillMask: #"
/>
</div>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
id: ref(null),
phone: ref(null),
card: ref(null)
}
}
}
</script>