2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-05 16:42:28 +03:00

Update masked input on binded value change

This commit is contained in:
Alexander Shabunevich
2022-12-24 17:49:08 +03:00
parent 591ff1b0bc
commit 3b44a9b4a9
4 changed files with 40 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
<script setup>
import { ref } from 'vue'
import { vMaska } from '../../src'
const data = ref('123')
</script>
<template>
<input v-maska data-maska="#-#" v-model="data" />
<button @click="data = '345'">Set</button>
</template>