@cloud-app-dev/vidc 2.0.0-alpha.23 → 2.0.0-alpha.27
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.
|
@@ -40,7 +40,7 @@ function InitialConfig(_ref) {
|
|
|
40
40
|
|
|
41
41
|
Config.registerBSConfig(BSConfig);
|
|
42
42
|
Config.registerAppConfig(AppConfig);
|
|
43
|
-
Config.registerThemeConfig(ThemeConfig);
|
|
43
|
+
Config.registerThemeConfig(ThemeConfig.content);
|
|
44
44
|
setState(function () {
|
|
45
45
|
return {
|
|
46
46
|
isUpdate: SystemConfig.isUpdate,
|
package/es/LoaderApp/index.d.ts
CHANGED
package/es/LoaderApp/index.js
CHANGED
package/es/LoaderApp/utils.js
CHANGED
|
@@ -70,7 +70,8 @@ function ruleStyle(rule, prefix) {
|
|
|
70
70
|
// handle :root { ... }
|
|
71
71
|
|
|
72
72
|
if (selector === 'html' || selector === 'body' || selector === ':root') {
|
|
73
|
-
return
|
|
73
|
+
return ''; //微应用模式下清楚顶层样式
|
|
74
|
+
// return cssText.replace(rootSelectorRE, prefix);
|
|
74
75
|
} // handle html body { ... }
|
|
75
76
|
// handle html > body { ... }
|
|
76
77
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { AxiosInstance, AxiosRequestConfig } from 'fetch-like-axios';
|
|
2
|
-
|
|
1
|
+
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'fetch-like-axios';
|
|
3
2
|
export type RsponseType = AxiosRequestConfig & { requestId?: string; cancelHttp?: (cancel: Function) => void; loggerIndex?: number };
|
|
4
3
|
|
|
5
4
|
export type XHRResponse = {
|
|
@@ -12,7 +11,7 @@ export type XHRResponse = {
|
|
|
12
11
|
requestId?: string;
|
|
13
12
|
};
|
|
14
13
|
|
|
15
|
-
export type MiddleWareType = (config: any) => any;
|
|
14
|
+
export type MiddleWareType = (config: AxiosResponse<any>) => any;
|
|
16
15
|
|
|
17
16
|
export type IServiceInterface = {
|
|
18
17
|
http(options: RsponseType): Promise<any>;
|
package/es/Service/middleware.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _global = window;
|
|
2
2
|
export var responseMiddleware = _global.responseMiddleware || [];
|
|
3
|
-
export var responseErrorMiddleware = _global.
|
|
3
|
+
export var responseErrorMiddleware = _global.responseErrorMiddleware || [];
|
|
4
4
|
export function registerResponseMiddleware(fn) {
|
|
5
5
|
if (!responseMiddleware.includes(fn)) {
|
|
6
6
|
responseMiddleware.push(fn);
|