1
0
mirror of synced 2024-11-25 14:56:03 +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),
violations: this.violations,
errors: this.localErrors,
allErrors: [
...this.localErrors.map(message => ({ rule: null, args: [], context: null, message })),
...arrayify(this.violations),
],
allErrors: [...this.localErrors, ...this.violations.map(v => v.message)],
}, 'model', {
get: () => this.model,
set: (value: any) => {