feat!: FormularioInput context.allErrors now is string array
This commit is contained in:
parent
ad7336d595
commit
07f3168e1e
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user