@smart100/spu-web-plugin 1.0.0 → 1.0.3

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/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # @smart100/spu-web-plugin
2
2
 
3
3
  ## 文档
4
+
4
5
  [@smart100/spu-web-plugin](https://tarymee.github.io/spu-web-plugin/)
package/dist/index.d.ts CHANGED
@@ -12,15 +12,15 @@ interface IAMapLoader {
12
12
 
13
13
  type StorageType = 'storage' | 'storage-1d' | 'storage-3m' | 'storage-1y'
14
14
 
15
- type Cope = { width?: number, height?: number } | string | boolean
15
+ type Cope = { width?: number; height?: number } | string | boolean
16
16
 
17
17
  interface IDownload {
18
- type?: 'att' | 'img',
19
- source: string,
20
- datetime: string | number,
21
- storagetype?: StorageType,
22
- cope?: Cope,
23
- filename?: string, // 下载文件名
18
+ type?: 'att' | 'img'
19
+ source: string
20
+ datetime: string | number
21
+ storagetype?: StorageType
22
+ cope?: Cope
23
+ filename?: string // 下载文件名
24
24
  }
25
25
 
26
26
  interface IDownloadService {
@@ -29,11 +29,11 @@ interface IDownloadService {
29
29
  }
30
30
 
31
31
  interface IUpload {
32
- type?: 'att' | 'img',
33
- file: File,
34
- source?: string,
35
- datetime?: string | number,
36
- storagetype?: StorageType,
32
+ type?: 'att' | 'img'
33
+ file: File
34
+ source?: string
35
+ datetime?: string | number
36
+ storagetype?: StorageType
37
37
  onprogress?: (p: number, _checkpoint?: any) => void
38
38
  }
39
39
 
@@ -49,10 +49,9 @@ interface IUploadService {
49
49
  // router?: any
50
50
  // }
51
51
 
52
-
53
52
  interface ISPUWebPlugin {
54
53
  // install (app: App, option: ISPUWebPluginOptions): void
55
- install (app: any, option: any): void
54
+ install(app: any, option: any): void
56
55
  // install: any
57
56
  version: string
58
57
  }
@@ -61,7 +60,6 @@ declare const SPUWebPlugin: ISPUWebPlugin
61
60
 
62
61
  export default SPUWebPlugin
63
62
 
64
-
65
63
  export const globalOptions: any
66
64
  export const lsProxy: any
67
65
  export const ssProxy: any