@smart100/spu-web-plugin 1.0.16 → 1.0.18
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 +5 -9
- package/dist/spu-web-plugin.mjs +349 -218
- package/package.json +1 -1
- package/src/envService.ts +1 -1
- package/src/index.ts +11 -2
- package/src/login.ts +96 -8
- package/src/map/MapService.ts +51 -38
- package/src/map/index.ts +32 -29
- package/src/tenantSetting.ts +0 -58
- package/src/types/index.d.ts +5 -9
- package/src/utils.ts +37 -1
package/dist/index.d.ts
CHANGED
|
@@ -31,12 +31,11 @@ interface IAMapLoader {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
interface IMapService {
|
|
34
|
-
init: () => Promise<
|
|
34
|
+
init: () => Promise<void>
|
|
35
35
|
type: 'amap' | 'tencent' | 'baidu'
|
|
36
36
|
AMap: any
|
|
37
37
|
BMap: any
|
|
38
38
|
TMap: any
|
|
39
|
-
MapCore: any
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
type StorageType = 'storage' | 'storage-1d' | 'storage-3m' | 'storage-1y'
|
|
@@ -98,18 +97,14 @@ export default SPUWebPlugin
|
|
|
98
97
|
export const globalOptions: any
|
|
99
98
|
export const lsProxy: any
|
|
100
99
|
export const ssProxy: any
|
|
101
|
-
export const getLocation: () => Promise<{
|
|
100
|
+
export const getLocation: (isuseiplocation?: boolean) => Promise<{
|
|
102
101
|
longitude: string
|
|
103
102
|
latitude: string
|
|
104
103
|
address: string
|
|
105
104
|
[propName: string]: any
|
|
106
105
|
} | null>
|
|
107
106
|
export const getDistance: (p1: [number, number], p2: [number, number]) => Promise<any>
|
|
108
|
-
export const getAddress: (location: {
|
|
109
|
-
longitude: string
|
|
110
|
-
latitude: string
|
|
111
|
-
[propName: string]: any
|
|
112
|
-
}) => Promise<string>
|
|
107
|
+
export const getAddress: (location: { longitude: string; latitude: string; [propName: string]: any }) => Promise<string>
|
|
113
108
|
export const spuAxios: any
|
|
114
109
|
export const apaasAxios: any
|
|
115
110
|
export const axios: any
|
|
@@ -123,10 +118,11 @@ export const getServToken: () => Promise<{
|
|
|
123
118
|
securitytoken: string
|
|
124
119
|
expiration: string
|
|
125
120
|
}>
|
|
126
|
-
export const getCloudServ: () => any
|
|
121
|
+
export const getCloudServ: (type?: StorageType) => any
|
|
127
122
|
export const getUniqueid: () => string
|
|
128
123
|
export const getUuid: () => string
|
|
129
124
|
export const functionCheck: (functioncode?: string) => boolean
|
|
125
|
+
export const getServerTime: () => Promise<string>
|
|
130
126
|
export const setTitle: (pagetitle?: string) => void
|
|
131
127
|
export const isInApp: () => boolean
|
|
132
128
|
export const AMapLoader: IAMapLoader
|