@skyfox2000/microbase 1.0.11 → 1.0.13

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/lib/index.d.ts CHANGED
@@ -168,25 +168,6 @@ export declare interface HostInfo {
168
168
  [key: string]: any;
169
169
  }
170
170
 
171
- declare type IconFontOptions = {
172
- /**
173
- * 加载的图标集地址
174
- */
175
- iconUrl: string;
176
- /**
177
- * 是否单色图标集,会替换清空所有fill参数
178
- */
179
- monoColor?: boolean;
180
- /**
181
- * 图标名称
182
- */
183
- icon?: string;
184
- /**
185
- * 图标集
186
- */
187
- icons?: string[];
188
- };
189
-
190
171
  /**
191
172
  * 从页面加载处获取接口
192
173
  */
@@ -274,6 +255,14 @@ export declare interface MainOpenApis {
274
255
  * 获取HostInfo
275
256
  */
276
257
  getHostInfo: () => HostInfo;
258
+ /**
259
+ * 获取当前应用AppInfo
260
+ */
261
+ getAppInfo: () => AppInfo;
262
+ /**
263
+ * 主机解析图标库并同步到子应用
264
+ */
265
+ createIconLib: (iconLib: Ref<Record<string, any>>) => void;
277
266
  /**
278
267
  * 用户注册接口
279
268
  */
@@ -287,10 +276,6 @@ export declare interface MainOpenApis {
287
276
  * @returns 授权码
288
277
  */
289
278
  getToken: () => string;
290
- /**
291
- * 主机解析图标库并同步到子应用
292
- */
293
- createIconLib: (options: IconFontOptions, iconLib: Ref<Record<string, any>>) => void;
294
279
  /**
295
280
  * 获取当前用户信息
296
281
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyfox2000/microbase",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "微前端通用功能与数据类型定义",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -1,3 +1,4 @@
1
+ import { AppInfo } from "@/stores/appInfo";
1
2
  import { HostInfo } from "@/stores/hostInfo";
2
3
  import { SettingInfo } from "@/stores/settingInfo";
3
4
  import { LoginInfo, UserInfo } from "@/stores/userInfo";
@@ -45,24 +46,6 @@ export interface MainAppData {
45
46
  pageUrl: string;
46
47
  }
47
48
 
48
- export type IconFontOptions = {
49
- /**
50
- * 加载的图标集地址
51
- */
52
- iconUrl: string;
53
- /**
54
- * 是否单色图标集,会替换清空所有fill参数
55
- */
56
- monoColor?: boolean;
57
- /**
58
- * 图标名称
59
- */
60
- icon?: string;
61
- /**
62
- * 图标集
63
- */
64
- icons?: string[];
65
- };
66
49
  /**
67
50
  * 主应用开放接口
68
51
  */
@@ -71,6 +54,14 @@ export interface MainOpenApis {
71
54
  * 获取HostInfo
72
55
  */
73
56
  getHostInfo: () => HostInfo;
57
+ /**
58
+ * 获取当前应用AppInfo
59
+ */
60
+ getAppInfo: () => AppInfo;
61
+ /**
62
+ * 主机解析图标库并同步到子应用
63
+ */
64
+ createIconLib: (iconLib: Ref<Record<string, any>>) => void;
74
65
  /**
75
66
  * 用户注册接口
76
67
  */
@@ -84,10 +75,6 @@ export interface MainOpenApis {
84
75
  * @returns 授权码
85
76
  */
86
77
  getToken: () => string;
87
- /**
88
- * 主机解析图标库并同步到子应用
89
- */
90
- createIconLib: (options:IconFontOptions, iconLib: Ref<Record<string, any>>) => void;
91
78
  /**
92
79
  * 获取当前用户信息
93
80
  */