Open celorodovalho opened 7 years ago
I have my component:
const vm = new Vue({ el: '#FormVue', directives: {mask}, validator: null, data() { return Object.assign({ name: '', email: '', errors: null }, $_POST); } });
How to use mask without directive? Example:
const vm = new Vue({ el: '#FormVue', directives: {mask}, validator: null, data() { return Object.assign({ phone: {mask: '####-####'}, cpf: {mask: '###.###.###-##'}, errors: null }, $_POST); } });
It seems that the best way in your example is to use regular expressions.
I have my component:
How to use mask without directive? Example: