|
|
@ -142,6 +142,9 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
descriptor[this.prop] = rules;
|
|
|
|
descriptor[this.prop] = rules;
|
|
|
|
const validator = new AsyncValidator(descriptor);
|
|
|
|
const validator = new AsyncValidator(descriptor);
|
|
|
|
|
|
|
|
if (this.FormContext && this.FormContext.validateMessages) {
|
|
|
|
|
|
|
|
validator.messages(this.FormContext.validateMessages);
|
|
|
|
|
|
|
|
}
|
|
|
|
const model = {};
|
|
|
|
const model = {};
|
|
|
|
model[this.prop] = this.fieldValue;
|
|
|
|
model[this.prop] = this.fieldValue;
|
|
|
|
validator.validate(model, { firstFields: true }, (errors, invalidFields) => {
|
|
|
|
validator.validate(model, { firstFields: true }, (errors, invalidFields) => {
|
|
|
|