mirror of
https://github.com/tenrok/maska.git
synced 2026-05-15 11:59:38 +03:00
359f446d72
Fix #133 where eager mask used with v-model
12 lines
252 B
Vue
12 lines
252 B
Vue
<script setup>
|
|
import { ref } from 'vue'
|
|
import { vMaska } from '../../src'
|
|
|
|
const data = ref('1234')
|
|
</script>
|
|
|
|
<template>
|
|
<input v-maska data-maska="##-#" v-model="data" data-maska-eager />
|
|
<button @click="data = '5678'">Set</button>
|
|
</template>
|