mirror of
https://github.com/tenrok/maska.git
synced 2026-05-15 11:59:38 +03:00
cd1e9f3564
- new directive format: pass options as value, bound as argument with modifiers - update and checkValue methods in MaskInput
20 lines
265 B
Vue
20 lines
265 B
Vue
<script lang="ts">
|
|
import { vMaska } from '../../src'
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
bound: ''
|
|
}
|
|
},
|
|
directives: {
|
|
maska: vMaska
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<input v-maska:bound data-maska="#-#" />
|
|
<div>{{ bound }}</div>
|
|
</template>
|