@smart100/spu-web-plugin 0.0.24 → 0.0.26
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 +27 -25
- package/dist/spu-web-plugin.mjs +26274 -17147
- package/package.json +6 -4
- package/src/apaasSpuTrack.ts +5 -4
- package/src/axios.ts +4 -4
- package/src/components/expandexp/index.ts +30 -29
- package/src/core.js +7 -230
- package/src/index.ts +115 -7
- package/src/login.ts +242 -62
- package/src/oss/downloadService.ts +5 -5
- package/src/oss/servtoken.ts +1 -1
- package/src/oss/uploadService.ts +7 -6
- package/src/package/ali-oss/aliyun-oss-sdk.js +25121 -25121
- package/src/package/ali-oss/aliyun-oss-sdk.min.js +14 -14
- package/src/package/ali-oss/package.json +162 -162
- package/src/spuConfig.ts +2 -2
- package/src/storageProxy.ts +1 -3
- package/src/test.ts +4 -2
- package/src/types/global.d.ts +0 -8
- package/src/types/index.d.ts +95 -0
- package/src/types/shims-lib.d.ts +1 -0
- package/src/utils.ts +2 -2
- package/src/install.ts +0 -80
- package/src/tenantInfo.ts +0 -74
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
// import type { App } from 'vue'
|
|
2
2
|
// import type { AxiosInstance } from 'axios'
|
|
3
3
|
|
|
4
|
-
interface ISPUWebPluginOptions {
|
|
5
|
-
modulekey: string
|
|
6
|
-
modulename: string
|
|
7
|
-
moduleversion: string
|
|
8
|
-
storageproxyprefix?: string
|
|
9
|
-
router?: any
|
|
10
|
-
}
|
|
11
|
-
|
|
12
4
|
interface IAMapLoader {
|
|
13
5
|
load: (options?: {
|
|
14
6
|
plugins?: Array<string>
|
|
@@ -36,7 +28,6 @@ interface IDownloadService {
|
|
|
36
28
|
downloadFile: (options: IDownload) => Promise<any>
|
|
37
29
|
}
|
|
38
30
|
|
|
39
|
-
|
|
40
31
|
interface IUpload {
|
|
41
32
|
type?: 'att' | 'img',
|
|
42
33
|
file: File,
|
|
@@ -50,18 +41,36 @@ interface IUploadService {
|
|
|
50
41
|
upload: (options: IUpload) => Promise<any>
|
|
51
42
|
}
|
|
52
43
|
|
|
44
|
+
// interface ISPUWebPluginOptions {
|
|
45
|
+
// modulekey: string
|
|
46
|
+
// modulename: string
|
|
47
|
+
// moduleversion: string
|
|
48
|
+
// storageproxyprefix?: string
|
|
49
|
+
// router?: any
|
|
50
|
+
// }
|
|
53
51
|
|
|
54
|
-
type Location = {
|
|
55
|
-
longitude: string
|
|
56
|
-
latitude: string
|
|
57
|
-
address: string
|
|
58
|
-
[propName: string]: any
|
|
59
|
-
} | null
|
|
60
52
|
|
|
53
|
+
interface ISPUWebPlugin {
|
|
54
|
+
// install (app: App, option: ISPUWebPluginOptions): void
|
|
55
|
+
install (app: any, option: any): void
|
|
56
|
+
// install: any
|
|
57
|
+
version: string
|
|
58
|
+
}
|
|
61
59
|
|
|
60
|
+
declare const SPUWebPlugin: ISPUWebPlugin
|
|
61
|
+
|
|
62
|
+
export default SPUWebPlugin
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
export const globalOptions: any
|
|
62
66
|
export const lsProxy: any
|
|
63
67
|
export const ssProxy: any
|
|
64
|
-
export const getLocation: () => Promise<
|
|
68
|
+
export const getLocation: () => Promise<{
|
|
69
|
+
longitude: string
|
|
70
|
+
latitude: string
|
|
71
|
+
address: string
|
|
72
|
+
[propName: string]: any
|
|
73
|
+
} | null>
|
|
65
74
|
export const getDistance: (p1: [number, number], p2: [number, number]) => Promise<any>
|
|
66
75
|
export const spuAxios: any
|
|
67
76
|
export const apaasAxios: any
|
|
@@ -78,16 +87,9 @@ export const getTokenExpires: () => string
|
|
|
78
87
|
export const getRefreshToken: () => string
|
|
79
88
|
export const getUser: (key?: string) => any
|
|
80
89
|
export const checkLogin: () => boolean
|
|
90
|
+
export const singleLogin: any
|
|
91
|
+
export const startRefreshtoken: any
|
|
81
92
|
export const Module: any
|
|
82
93
|
export const components: any
|
|
83
94
|
export const expandexp: (options: any) => void
|
|
84
95
|
export const wxworkSuite: any
|
|
85
|
-
|
|
86
|
-
interface ISPUWebPlugin {
|
|
87
|
-
// install (app: App, option: ISPUWebPluginOptions): void
|
|
88
|
-
install (app: any, option: ISPUWebPluginOptions): void
|
|
89
|
-
// install: any
|
|
90
|
-
version: string
|
|
91
|
-
}
|
|
92
|
-
declare const SPUWebPlugin: ISPUWebPlugin
|
|
93
|
-
export default SPUWebPlugin
|