2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-14 18:42:27 +03:00

New version code prepare

This commit is contained in:
Alexander Shabunevich
2022-12-04 16:50:18 +03:00
parent fadf78f5bb
commit 31c286bb6b
48 changed files with 15195 additions and 5502 deletions
+21
View File
@@ -0,0 +1,21 @@
<script setup lang="ts">
import { reactive } from 'vue'
import { vMaska, MaskaDetail, MaskInputOptions } from '../../src'
const binded = reactive<Partial<MaskaDetail>>({})
const config = reactive<MaskInputOptions>({
mask: 'A A',
tokens: {
A: {
pattern: /[A-Z]/,
multiple: true,
transform: (chr) => chr.toUpperCase()
}
}
})
</script>
<template>
<input v-maska:[config]="binded" />
<div>{{ binded.masked }}</div>
</template>