2
0
mirror of https://github.com/tenrok/maska.git synced 2026-05-15 11:59:38 +03:00

Updated raw mask example

This commit is contained in:
Alexander Shabunevich
2021-07-06 19:07:29 +03:00
parent 1209e09dc6
commit e3c87c4026
+1 -7
View File
@@ -25,7 +25,7 @@
<div class="field">
<label class="label">Phone with code: {{ phone }} (raw value: {{ phoneRaw }})</label>
<div class="control">
<input v-maska="['+1 (###) ##-##-##', '+1 (###) ###-##-##']" class="input" type="tel" autocomplete="tel" v-model="phone" @maska="onMaska">
<input v-maska="['+1 (###) ##-##-##', '+1 (###) ###-##-##']" class="input" type="tel" autocomplete="tel" v-model="phone" @maska="phoneRaw = $event.target.dataset.maskRawValue">
</div>
<p class="help is-family-code">v-maska="['+1 (###) ##-##-##', '+1 (###) ###-##-##']"</p>
</div>
@@ -165,12 +165,6 @@
dateMask: function() {
return this.dotFormat ? '##.##.####' : '##/##/####'
}
},
methods: {
onMaska: function(event) {
this.phoneRaw = event.target.dataset.maskRawValue
}
}
});