merge obj

This commit is contained in:
AntoXa PRO 2023-09-19 20:42:13 +03:00
parent 58770bf89f
commit a6c220b499
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "axp-ts", "name": "axp-ts",
"version": "1.9.7", "version": "1.9.8",
"description": "TypeScript helper library", "description": "TypeScript helper library",
"author": "AntoXa PRO <info@antoxa.pro>", "author": "AntoXa PRO <info@antoxa.pro>",
"homepage": "https://antoxahub.ru/antoxa/axp-ts", "homepage": "https://antoxahub.ru/antoxa/axp-ts",

View File

@ -97,4 +97,8 @@ export class BaseFormModel<T extends object = {}> implements IFormModel<T> {
setValidError(code: string, text: string) { setValidError(code: string, text: string) {
this._errors[code] = code + ' - ' + text this._errors[code] = code + ' - ' + text
} }
mergeObj(obj: any) {
this.obj = Object.assign(this.obj, obj)
}
} }