mirror of
https://github.com/tenrok/maska.git
synced 2026-05-15 11:59:38 +03:00
14 lines
276 B
Vue
14 lines
276 B
Vue
<script setup lang="ts">
|
|
import { MaskaDetail, vMaska } from '../../src'
|
|
|
|
const emit = defineEmits(['mask'])
|
|
|
|
const onMaska = (e: CustomEvent<MaskaDetail>) => {
|
|
emit('mask', e.detail)
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<input v-maska data-maska="#-#" @maska="onMaska" />
|
|
</template>
|