merge obj
This commit is contained in:
@@ -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",
|
||||||
|
@@ -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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user