@tmsfe/tms-core 0.0.85 → 0.0.86

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.85",
3
+ "version": "0.0.86",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,7 +10,7 @@ import AutoReport from './report/proxy/index';
10
10
  import md5 from './md5';
11
11
  import { serialize } from './objUtils';
12
12
  import { calCoordinateDistance, formatDistance } from './distanceUtils';
13
- import { getNavBarConfigData } from './navbarUtils';
13
+ import { getNavBarConfigData, compareVersion } from './navbarUtils';
14
14
  import * as uiUtil from './tmsuiUtils';
15
15
  import * as rpxUtil from './rpx';
16
16
  import * as stringUtils from './stringUtils';
@@ -216,6 +216,7 @@ const api = {
216
216
  calCoordinateDistance,
217
217
  formatDistance,
218
218
  getNavBarConfigData,
219
+ compareVersion,
219
220
  createRequest,
220
221
  getEnvInfo,
221
222
  isAppPageExist,
package/src/index.js CHANGED
@@ -12,7 +12,7 @@ import EventDispatcher from './eventDispatcher';
12
12
  import { serialize } from './objUtils';
13
13
  import { calCoordinateDistance, formatDistance } from './distanceUtils';
14
14
  import { rpxToPx, pxToRpx } from './rpx';
15
- import { getNavBarConfigData } from './navbarUtils';
15
+ import { getNavBarConfigData, compareVersion } from './navbarUtils';
16
16
  import {
17
17
  formatPlate,
18
18
  subStr,
@@ -196,6 +196,8 @@ const api = {
196
196
  rpxToPx,
197
197
  pxToRpx,
198
198
 
199
+ /** 版本比较 */
200
+ compareVersion,
199
201
  getNavBarConfigData,
200
202
 
201
203
  storage,
@@ -194,4 +194,5 @@ const getEnterOptions = () => {
194
194
 
195
195
  export {
196
196
  getNavBarConfigData,
197
+ compareVersion,
197
198
  };