merge obj
This commit is contained in:
parent
58770bf89f
commit
a6c220b499
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "axp-ts",
|
||||
"version": "1.9.7",
|
||||
"version": "1.9.8",
|
||||
"description": "TypeScript helper library",
|
||||
"author": "AntoXa PRO <info@antoxa.pro>",
|
||||
"homepage": "https://antoxahub.ru/antoxa/axp-ts",
|
||||
|
@ -97,4 +97,8 @@ export class BaseFormModel<T extends object = {}> implements IFormModel<T> {
|
||||
setValidError(code: string, text: string) {
|
||||
this._errors[code] = code + ' - ' + text
|
||||
}
|
||||
|
||||
mergeObj(obj: any) {
|
||||
this.obj = Object.assign(this.obj, obj)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user