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