@cloud-app-dev/vidc 2.0.0-alpha.26 → 2.0.0-alpha.29

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.
@@ -60,12 +60,13 @@ var AppRoute = /*#__PURE__*/function (_React$Component) {
60
60
  value: function shouldComponentUpdate(props) {
61
61
  var tabId = props.currentId || _cache.getCache('currentTabKey', 'session');
62
62
 
63
- if (_global._IS_RUN_MICRO_BASIC && tabId !== props.tabId) {
64
- // 页签变化拦截
65
- return false;
66
- }
63
+ if (!_global._IS_RUN_MICRO_BASIC) {
64
+ return true;
65
+ } // 页签变化拦截
67
66
 
68
- return true;
67
+
68
+ console.debug("App \u66F4\u65B0\u62E6\u622A\uFF0C\u62E6\u622AAppId\uFF1A".concat(props.tabId, "\uFF0C\u53EF\u66F4\u65B0AppId\uFF1A").concat(tabId));
69
+ return tabId === props.tabId;
69
70
  }
70
71
  }, {
71
72
  key: "componentWillUnmount",
@@ -85,6 +86,7 @@ var AppRoute = /*#__PURE__*/function (_React$Component) {
85
86
  props = __rest(_a, ["routes"]);
86
87
 
87
88
  var component = matchIndex > -1 ? routes[matchIndex].element : undefined;
89
+ console.debug('Route Match Index', matchIndex);
88
90
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Routes, null, routes.map(function (item, index) {
89
91
  return /*#__PURE__*/React.createElement(Route, {
90
92
  path: item.path,
@@ -26,6 +26,7 @@ declare namespace LoaderApp {
26
26
  var defaultProps: {
27
27
  appConfig: {};
28
28
  appProps: {};
29
+ style: {};
29
30
  };
30
31
  }
31
32
  export default LoaderApp;
@@ -140,6 +140,7 @@ function LoaderApp(_ref) {
140
140
 
141
141
  LoaderApp.defaultProps = {
142
142
  appConfig: {},
143
- appProps: {}
143
+ appProps: {},
144
+ style: {}
144
145
  };
145
146
  export default LoaderApp;
@@ -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 cssText.replace(rootSelectorRE, prefix);
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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "2.0.0-alpha.26",
5
+ "version": "2.0.0-alpha.29",
6
6
  "scripts": {
7
7
  "start": "dumi dev",
8
8
  "docs:build": "dumi build",