@ningboyz/types 1.0.8 → 1.0.10

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "private": false,
5
5
  "description": "宁波甬政类型库",
6
6
  "author": "nbyt-syq",
@@ -15,6 +15,7 @@
15
15
  "registry": "https://registry.npmjs.org/"
16
16
  },
17
17
  "dependencies": {
18
+ "@aximario/json-tree": "2.2.4"
18
19
  },
19
20
  "devDependencies": {
20
21
  }
package/src/app/ITab.ts CHANGED
@@ -1,18 +1,18 @@
1
- import { Micro } from "../..";
1
+ import { IAppTab, TAppTab } from "../micro";
2
2
 
3
- export interface ITabQuery {
3
+ interface ITabQuery {
4
4
  sourceId: number;
5
5
  sourceNd: number;
6
6
  bizIndex: number;
7
7
  }
8
8
 
9
- export class TTabQuery implements ITabQuery {
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
- export interface ITab {
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?: Micro.IAppTab;
25
+ microAppInfo?: IAppTab;
26
26
  }
27
27
 
28
- export class TTab implements ITab {
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?: Micro.IAppTab = new Micro.TAppTab();
38
+ micorAppInfo?: IAppTab = new TAppTab();
39
39
  }
40
+
41
+ export type { ITab, ITabQuery };
42
+
43
+ export { TTab, TTabQuery };
@@ -3,3 +3,5 @@ interface IUserData {
3
3
  templateId: string;
4
4
  dataUrl: string;
5
5
  }
6
+
7
+ export type { IUserData };