@smart100/spu-web-plugin 0.0.8 → 0.0.12

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,11 +1,11 @@
1
- import type { App } from 'vue'
1
+ // import type { App } from 'vue'
2
2
  // import type { AxiosInstance } from 'axios'
3
3
 
4
4
  interface ISPUWebPluginOptions {
5
5
  modulekey: string
6
6
  modulename: string
7
7
  moduleversion: string
8
- router: any
8
+ router?: any
9
9
  }
10
10
 
11
11
  interface IAMapLoader {
@@ -26,17 +26,13 @@ interface IDownload {
26
26
  source: string,
27
27
  datetime: string | number,
28
28
  storagetype?: StorageType,
29
- cope?: Cope
29
+ cope?: Cope,
30
+ filename?: string, // 下载文件名
30
31
  }
31
32
 
32
33
  interface IDownloadService {
33
- getUrl: ({
34
- type = 'img',
35
- source = '',
36
- datetime = '',
37
- storagetype = 'storage',
38
- cope = ''
39
- }: IDownload) => Promise<any>
34
+ getUrl: (options: IDownload) => Promise<any>
35
+ downloadFile: (options: IDownload) => Promise<any>
40
36
  }
41
37
 
42
38
 
@@ -50,14 +46,7 @@ interface IUpload {
50
46
  }
51
47
 
52
48
  interface IUploadService {
53
- upload: ({
54
- type = 'img',
55
- file,
56
- source = '',
57
- datetime = '',
58
- storagetype = 'storage',
59
- onprogress,
60
- }: IUpload) => Promise<any>
49
+ upload: (options: IUpload) => Promise<any>
61
50
  }
62
51
 
63
52
 
@@ -88,9 +77,13 @@ export const getTokenExpires: () => string
88
77
  export const getRefreshToken: () => string
89
78
  export const getUser: (key?: string) => any
90
79
  export const checkLogin: () => boolean
80
+ export const Module: any
81
+ export const components: any
82
+ export const expandexp: (options: any) => void
91
83
 
92
84
  interface ISPUWebPlugin {
93
- install (app: App, option: ISPUWebPluginOptions): void
85
+ // install (app: App, option: ISPUWebPluginOptions): void
86
+ install (app: any, option: ISPUWebPluginOptions): void
94
87
  // install: any
95
88
  version: string
96
89
  }