-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I was unable to make this work in typescript it just kept whingeing at me and refused to build.
Just in case someone else tries to google how to make this work in Vue 3 with typescript, do the following.
Step 1: Install inputmask
npm i inputmask
Step 2: Set up your app.ts
import Inputmask from "inputmask";
import createApp from "vue";
const app = createApp({});
app.directive("mask", (el, binding) => Inputmask(binding.value).mask(el));
Step 3: That's it.
Use it with <input v-mask="{put all your normal RobinHerbots options here}"
Metadata
Metadata
Assignees
Labels
No labels