Open jfrag opened 2 years ago
Hi @jfrag , recommend you to upgrade to 10.8.x
export default {
data() {
return {
formValidation: {
validMsg: {},
// new verifications definition since 10.8.0
login: [
{
key: 'username',
label: 'Identifiant',
validator: 'required'
},
{
key: 'pwd',
label: 'Mot de passe',
validator: 'required'
}
]
},
signIn: {
username: '',
pwd: ''
}
};
},
methods: {
login() {
this.$validator.set(this.formValidation.login);
let { valid, validMsg } = this.$validator.validate(this.signIn);
this.formValidation.validMsg = validMsg;
if (valid) {
// your code
}
}
}
};
Hi,
I just updated BamUI for a project (from 9.x to 10.x). I have an error when i use the validator plugin.
i don't have the error when i remove the custom validations