0👍
✅
You have to write your own custom validation:
data() {
var validateInput5 = (rule, value, callback) => {
if (value === '') {
callback(new Error('Please enter an input'));
} else if (value !== this.form.select) {
callback(new Error('Please select something'));
} else {
callback();
}
};
return {
form: {
input5: '',
select: '',
},
rules: {
input5: [
{ validator: validateInput5, trigger: 'blur' }
],
}
}
},
Source:stackexchange.com