@ningboyz/types 1.5.86 → 1.5.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -140,6 +140,12 @@ export class TSysMenuWithCoreResponse implements ISysMenuWithCoreResponse {
|
|
|
140
140
|
wldyPage: IWldyPageResponse[] = [];
|
|
141
141
|
listGAMS: IGamsCnfgResponse[] = [];
|
|
142
142
|
|
|
143
|
+
constructor(menu: any = {}) {
|
|
144
|
+
if (menu) {
|
|
145
|
+
_.merge(this, _.pick(menu, Object.keys(this)));
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
143
149
|
static parseJson(menuPara: string) {
|
|
144
150
|
const defaultMenuPara = new TSysMenuWithCoreResponseMenuPara();
|
|
145
151
|
if (_.isEmpty(menuPara)) {
|