0👍
Found the answer in the github Issues:
const MaskedInput = window.vueTextMask.default
new Vue({
el: '#app',
components: { MaskedInput },
data: {
date: '',
mask: [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/]
}
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-text-mask@6.1.2/dist/vueTextMask.min.js"></script>
<div id="app">
Date:
<masked-input v-model="date" :mask="mask" placeholder="__/__/____"></masked-input>
</div>
- [Vuejs]-Delete register DB in laravel 8 with vue
- [Vuejs]-How do you handle it if you don't upload photos on vue Js?
Source:stackexchange.com