@ningboyz/types 1.3.141 → 1.3.142

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
3
  "type": "module",
4
- "version": "1.3.141",
4
+ "version": "1.3.142",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -2,6 +2,7 @@ import { construct } from "@aximario/json-tree";
2
2
  import { IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
3
3
  import _ from "lodash";
4
4
  import { TSkdwType, USER_ACNO_DATA_TYPE_NULL } from "../const/const_user_acno";
5
+ import { TWtui } from "..";
5
6
 
6
7
  export interface IViewCtrlResponse extends IBaseResponse<IViewCtrlResponse> {
7
8
  asParent: number;
@@ -92,6 +93,13 @@ export class TViewCtrlResponse extends TBaseResponse<IViewCtrlResponse> implemen
92
93
  } catch (e: any) {}
93
94
  return result;
94
95
  }
96
+
97
+ static toWtuiNode(viewCtrl: TWtui.IViewCtrlResponse) {
98
+ const node = new TWtui.TWtuiNodeResponse();
99
+ _.merge(node, viewCtrl);
100
+ node.nodeName = viewCtrl.viewName;
101
+ return node;
102
+ }
95
103
  }
96
104
 
97
105
  export interface IViewCtrlResponseWithParaConv {
@@ -120,7 +128,7 @@ export class TViewCtrlResponseWithParaConv implements IViewCtrlResponseWithParaC
120
128
  keepAlive: boolean = false;
121
129
  componentName: string = "";
122
130
  skdwType: TSkdwType = USER_ACNO_DATA_TYPE_NULL;
123
- defaultKey: string= "";
131
+ defaultKey: string = "";
124
132
  menuUUID: string = "";
125
133
  gzjgMain?: number = 0;
126
134
  showTab: string | string[] = "";