@smart100/spu-web-plugin 1.0.8 → 1.0.10
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/dist/index.d.ts +30 -0
- package/dist/spu-web-plugin.mjs +1346 -367
- package/package.json +1 -1
- package/src/index.ts +4 -2
- package/src/login.ts +5 -43
- package/src/map/AMapKey.ts +31 -0
- package/src/map/AMapLoader.ts +43 -0
- package/src/map/MapService.ts +186 -0
- package/src/map/index.ts +564 -0
- package/src/map/utils.ts +98 -0
- package/src/tenantSetting.ts +86 -0
- package/src/types/global.d.ts +0 -4
- package/src/types/index.d.ts +30 -0
- package/src/types/shims-lib.d.ts +14 -3
- package/src/utils.ts +41 -1
- package/src/AMapLoader.ts +0 -46
- package/src/location.ts +0 -208
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
// import type { App } from 'vue'
|
|
2
2
|
// import type { AxiosInstance } from 'axios'
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
// 高德地图
|
|
6
|
+
AMapLoader: any
|
|
7
|
+
_AMapSecurityConfig: {
|
|
8
|
+
securityJsCode: string
|
|
9
|
+
}
|
|
10
|
+
AMap: any
|
|
11
|
+
AMapUI: any
|
|
12
|
+
// 百度地图
|
|
13
|
+
BMap: any
|
|
14
|
+
BMAP_ANCHOR_TOP_LEFT: any
|
|
15
|
+
BMAP_ANCHOR_TOP_RIGHT: any
|
|
16
|
+
BMAP_ANCHOR_BOTTOM_LEFT: any
|
|
17
|
+
BMAP_ANCHOR_BOTTOM_RIGHT: any
|
|
18
|
+
BMAP_INITIAL_CALLBACK: any
|
|
19
|
+
// 腾讯地图
|
|
20
|
+
TMap: any
|
|
21
|
+
}
|
|
22
|
+
}
|
|
3
23
|
|
|
4
24
|
interface IAMapLoader {
|
|
5
25
|
load: (options?: {
|
|
@@ -10,6 +30,15 @@ interface IAMapLoader {
|
|
|
10
30
|
}) => Promise<any>
|
|
11
31
|
}
|
|
12
32
|
|
|
33
|
+
interface IMapService {
|
|
34
|
+
init: () => Promise<any>
|
|
35
|
+
type: 'amap' | 'tencent' | 'baidu'
|
|
36
|
+
AMap: any
|
|
37
|
+
BMap: any
|
|
38
|
+
TMap: any
|
|
39
|
+
MapCore: any
|
|
40
|
+
}
|
|
41
|
+
|
|
13
42
|
type StorageType = 'storage' | 'storage-1d' | 'storage-3m' | 'storage-1y'
|
|
14
43
|
|
|
15
44
|
type Cope = { width?: number; height?: number } | string | boolean
|
|
@@ -83,6 +112,7 @@ export const functionCheck: (functioncode?: string) => boolean
|
|
|
83
112
|
export const setTitle: (pagetitle?: string) => void
|
|
84
113
|
export const isInApp: () => boolean
|
|
85
114
|
export const AMapLoader: IAMapLoader
|
|
115
|
+
export const mapService: IMapService
|
|
86
116
|
export const singleLogin: any
|
|
87
117
|
export const updateToken: () => Promise<void>
|
|
88
118
|
export const getToken: () => string
|