@skyfox2000/microbase 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/lib/index.d.ts +20 -1
- package/package.json +1 -1
- package/src/utils/micro-app.ts +19 -1
package/lib/index.d.ts
CHANGED
|
@@ -168,6 +168,25 @@ 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
|
+
|
|
171
190
|
/**
|
|
172
191
|
* 从页面加载处获取接口
|
|
173
192
|
*/
|
|
@@ -271,7 +290,7 @@ export declare interface MainOpenApis {
|
|
|
271
290
|
/**
|
|
272
291
|
* 主机解析图标库并同步到子应用
|
|
273
292
|
*/
|
|
274
|
-
|
|
293
|
+
createIconLib: (options: IconFontOptions, iconLib: Ref<Record<string, any>>) => void;
|
|
275
294
|
/**
|
|
276
295
|
* 获取当前用户信息
|
|
277
296
|
*/
|
package/package.json
CHANGED
package/src/utils/micro-app.ts
CHANGED
|
@@ -45,6 +45,24 @@ export interface MainAppData {
|
|
|
45
45
|
pageUrl: string;
|
|
46
46
|
}
|
|
47
47
|
|
|
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
|
+
};
|
|
48
66
|
/**
|
|
49
67
|
* 主应用开放接口
|
|
50
68
|
*/
|
|
@@ -69,7 +87,7 @@ export interface MainOpenApis {
|
|
|
69
87
|
/**
|
|
70
88
|
* 主机解析图标库并同步到子应用
|
|
71
89
|
*/
|
|
72
|
-
|
|
90
|
+
createIconLib: (options:IconFontOptions, iconLib: Ref<Record<string, any>>) => void;
|
|
73
91
|
/**
|
|
74
92
|
* 获取当前用户信息
|
|
75
93
|
*/
|