1
0
mirror of synced 2024-11-22 21:36:04 +03:00

feat!: FormularioInput context.allErrors now is string array

This commit is contained in:
Zaytsev Kirill 2020-10-26 16:53:52 +03:00
parent ad7336d595
commit 07f3168e1e

View File

@ -93,10 +93,7 @@ export default class FormularioInput extends Vue {
runValidation: this.runValidation.bind(this), runValidation: this.runValidation.bind(this),
violations: this.violations, violations: this.violations,
errors: this.localErrors, errors: this.localErrors,
allErrors: [ allErrors: [...this.localErrors, ...this.violations.map(v => v.message)],
...this.localErrors.map(message => ({ rule: null, args: [], context: null, message })),
...arrayify(this.violations),
],
}, 'model', { }, 'model', {
get: () => this.model, get: () => this.model,
set: (value: any) => { set: (value: any) => {