@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 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<Location>
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