diff --git a/package.json b/package.json index c68881e..6576e14 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "axp-ts", - "version": "1.9.7", + "version": "1.9.8", "description": "TypeScript helper library", "author": "AntoXa PRO ", "homepage": "https://antoxahub.ru/antoxa/axp-ts", diff --git a/src/forms/model.ts b/src/forms/model.ts index 34ffa4b..11179a9 100644 --- a/src/forms/model.ts +++ b/src/forms/model.ts @@ -97,4 +97,8 @@ export class BaseFormModel implements IFormModel { setValidError(code: string, text: string) { this._errors[code] = code + ' - ' + text } + + mergeObj(obj: any) { + this.obj = Object.assign(this.obj, obj) + } }