@ningboyz/types 1.3.142 → 1.3.144

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.142",
4
+ "version": "1.3.144",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -98,8 +98,13 @@ export class TViewCtrlResponse extends TBaseResponse<IViewCtrlResponse> implemen
98
98
  const node = new TWtui.TWtuiNodeResponse();
99
99
  _.merge(node, viewCtrl);
100
100
  node.nodeName = viewCtrl.viewName;
101
+ node.wtuiView = viewCtrl.viewIndx;
101
102
  return node;
102
103
  }
104
+
105
+ static toListWtuiNode(listViewCtrl: TWtui.IViewCtrlResponse[]) {
106
+ return listViewCtrl.map((u) => this.toWtuiNode(u));
107
+ }
103
108
  }
104
109
 
105
110
  export interface IViewCtrlResponseWithParaConv {
@@ -36,6 +36,7 @@ export interface IWtuiNodeResponse {
36
36
  wtuiRoot: number;
37
37
  listNode: IWtuiNodeResponse[];
38
38
  rootIndx: number;
39
+ wtuiView: number;
39
40
  }
40
41
 
41
42
  export class TWtuiNodeResponse implements IWtuiNodeResponse {
@@ -76,4 +77,5 @@ export class TWtuiNodeResponse implements IWtuiNodeResponse {
76
77
  wtuiRoot: number = 0;
77
78
  listNode: IWtuiNodeResponse[] = [];
78
79
  rootIndx: number = -1;
80
+ wtuiView: number = 0;
79
81
  }