Vue input mask
npm install vue-imask

npm i vue-imaskfor Vue 2 also do:
npm i -D @vue/composition-api
If you are using NuxtJS with Vue 2 you also need to install:
npm i -D @nuxtjs/composition-api
And then add @nuxtjs/composition-api/module in the buildModules option in your nuxt.config.js.
html
v-model="numberModel"
:mask="Number"
radix="."
:unmask="true"
@accept="onAccept"
placeholder='Enter number here'
/>
`
Mask Component Example (Vue 3)
`html
v-model:typed="numberModel"
:mask="Number"
radix="."
@accept:masked="onAccept"
@accept:unmasked="onAcceptUnmasked"
placeholder='Enter number here'
/>
`Mask Directive Example
In some cases value bindings (v-model) might not work for directive, you can use @accept or @complete events to update the value.
`html
:value="value"
v-imask="mask"
@accept="onAccept"
@complete="onComplete">
`
More options see in a guide.Mask Composable (Vue 3)
`html
``