@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
|
@@ -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
|
}
|