2
0
mirror of https://github.com/tenrok/maska.git synced 2026-05-15 11:59:38 +03:00
Files
maska/test/vue/BindModel.vue
2024-06-11 10:17:10 +03:00

16 lines
406 B
Vue

<script setup lang="ts">
import { ref } from 'vue'
import { vMaska } from '../../src/vue'
const valueMasked = ref('123')
const boundUnmasked = ref('')
defineExpose({ boundUnmasked })
</script>
<template>
<input v-maska:boundUnmasked.unmasked data-maska="#-#" data-maska-eager v-model="valueMasked" />
<div id="value1">{{ valueMasked }}</div>
<div id="value2">{{ boundUnmasked }}</div>
</template>