mirror of
https://github.com/tenrok/maska.git
synced 2026-05-15 11:59:38 +03:00
test: add BindModel component
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { vMaska } from '../../src'
|
||||
|
||||
const value = ref('123')
|
||||
const bound = ref('')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<input v-maska:bound.unmasked data-maska="#-#" data-maska-eager v-model="value" />
|
||||
<div id="value1">{{ value }}</div>
|
||||
<div id="value2">{{ bound }}</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user