I am using Vue.js 2 with Element and I would like to make use of Cleave.js for masking.
I understand how to make a basic masker in Vue, using data and computed properties. However I don't want to redo all the good work done in Cleave.
I have also discovered vue-cleave. That seems like a good way of using Cleave with Vue. Although vue-cleave ads a standard input
element to the page. I am using Element so I would need a way of using el-input
.
This is a common problem with most of the Vue maskers, they seem to add a standard input
element to the page.
So, my question is: what is the Vue way of integrating Cleave.js when using Element?
References:
Element: http://element.eleme.io
Cleave.js: https://github.com/nosir/cleave.js
Vue-Cleave: https://github.com/vue-bulma/cleave