EN: Component that allows you to use imask with vuetify. The source code of vue-imask was used as the basis.
RU: Компонент для использование imask с vuetify. За основу был взят исходный код vue-imask.
You need to put the component file in your project and make sure you have these libraries enabled:
You can see a live example on codesandbox.
HTML Template
<template>
<v-masked-text-field
v-model="value"
:mask="usd"
label="Currency"
/>
</template>
<script>
export default {
data: () => ({
value: '',
usd: {
mask: '$ num',
blocks: {
num: {
mask: Number,
scale: 2,
thousandsSeparator: ' ',
},
},
},
})
}
</script>