@cloud-app-dev/vidc 3.0.23 → 3.0.25

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.
@@ -156,14 +156,16 @@ function Provider(_ref) {
156
156
  updateLoginStatus: updateLoginStatus,
157
157
  updateStore: updateStore
158
158
  };
159
- }, [state.user, state.operation, state.loginStatus]);
159
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
160
+ [state.user, state.operation, state.loginStatus]);
160
161
  return /*#__PURE__*/React.createElement(Context.Provider, {
161
162
  value: providerValue
162
163
  }, children, /*#__PURE__*/React.createElement(Sync, {
163
164
  stateChange: stateChange,
164
165
  storeChange: storeChange
165
166
  }));
166
- }
167
+ } // eslint-disable-next-line import/no-anonymous-default-export
168
+
167
169
 
168
170
  export default {
169
171
  Provider: Provider,
@@ -1,5 +1,5 @@
1
1
  import produce from 'immer';
2
- import { insertThemeStyle } from './utils';
2
+ import { insertThemeStyle, lock } from './utils';
3
3
  var Config = {
4
4
  app: produce({}, function () {}),
5
5
  bs: produce({}, function () {}),
@@ -73,6 +73,7 @@ var LMConfig = function () {
73
73
  return window['_CONFIG_'];
74
74
  } else {
75
75
  window['_CONFIG_'] = Config;
76
+ lock();
76
77
  return Config;
77
78
  }
78
79
  }();
@@ -18,11 +18,12 @@ export type FeatureItemType = {
18
18
  type: 1 | 2 | 3; //功能类型1:实际菜单,2:权限,3:虚拟分组
19
19
  interfaceCodes: string[];
20
20
  icon: string;
21
- routeUrl: string;
21
+ routerUrl: string;
22
22
  sort: number;
23
23
  children?: FeatureItemType[];
24
24
  parentId?: string;
25
25
  level?: number;
26
+ functionName?: string;
26
27
  };
27
28
 
28
29
  export type BSConfigType = {
@@ -1,2 +1,4 @@
1
1
  import { ThemeInfoType } from './interface';
2
2
  export declare function insertThemeStyle(options: ThemeInfoType): void;
3
+ export declare function lock(): void;
4
+ export declare function unlock(): void;
@@ -40,4 +40,14 @@ export function insertThemeStyle(options) {
40
40
  isInit = true;
41
41
  document.head.appendChild(style);
42
42
  }
43
+ }
44
+ export function lock() {
45
+ Object.defineProperty(window, '_CONFIG_', {
46
+ writable: false
47
+ });
48
+ }
49
+ export function unlock() {
50
+ Object.defineProperty(window, '_CONFIG_', {
51
+ writable: true
52
+ });
43
53
  }
@@ -31,7 +31,7 @@ function LoaderMap(_a) {
31
31
 
32
32
  var glaobalKey = useMemo(function () {
33
33
  return MAP_GLABAL_KEY ? MAP_GLABAL_KEY : Config.BSConfig.MAP_GLABAL_KEY || 'L';
34
- }, []);
34
+ }, [MAP_GLABAL_KEY]);
35
35
  var isL = useMemo(function () {
36
36
  return glaobalKey === 'L';
37
37
  }, [glaobalKey]);
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": "3.0.23",
5
+ "version": "3.0.25",
6
6
  "scripts": {
7
7
  "start": "dumi dev",
8
8
  "docs:build": "dumi build",