@ningboyz/types 1.0.9 → 1.0.11
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 +1 -1
- package/src/app/ITab.ts +11 -7
- package/src/app/IUserData.ts +2 -0
package/package.json
CHANGED
package/src/app/ITab.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAppTab, TAppTab } from "../micro";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
interface ITabQuery {
|
|
4
4
|
sourceId: number;
|
|
5
5
|
sourceNd: number;
|
|
6
6
|
bizIndex: number;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
class TTabQuery implements ITabQuery {
|
|
10
10
|
sourceId: number = 0;
|
|
11
11
|
sourceNd: number = 0;
|
|
12
12
|
bizIndex: number = 0;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
interface ITab {
|
|
16
16
|
id: string;
|
|
17
17
|
name: string;
|
|
18
18
|
title: string;
|
|
@@ -22,10 +22,10 @@ export interface ITab {
|
|
|
22
22
|
closable: boolean;
|
|
23
23
|
refresh: boolean;
|
|
24
24
|
query: ITabQuery;
|
|
25
|
-
microAppInfo?:
|
|
25
|
+
microAppInfo?: IAppTab;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
class TTab implements ITab {
|
|
29
29
|
id: string = "";
|
|
30
30
|
key: string = "";
|
|
31
31
|
name: string = "";
|
|
@@ -35,5 +35,9 @@ export class TTab implements ITab {
|
|
|
35
35
|
closable: boolean = false;
|
|
36
36
|
refresh: boolean = false;
|
|
37
37
|
query: ITabQuery = new TTabQuery();
|
|
38
|
-
micorAppInfo?:
|
|
38
|
+
micorAppInfo?: IAppTab = new TAppTab();
|
|
39
39
|
}
|
|
40
|
+
|
|
41
|
+
export type { ITab, ITabQuery };
|
|
42
|
+
|
|
43
|
+
export { TTab, TTabQuery };
|