@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 +1 -0
- package/dist/index.d.ts +13 -15
- package/dist/spu-web-plugin.mjs +19324 -19345
- package/package.json +2 -2
- package/src/apaasSpuTrack.ts +42 -72
- package/src/axios.ts +135 -135
- package/src/cloudServ.ts +4 -4
- package/src/components/expandexp/index.ts +260 -205
- package/src/core.js +120 -59
- package/src/globalConfig.ts +5 -7
- package/src/index.ts +48 -111
- package/src/location.ts +20 -23
- package/src/login.ts +496 -431
- package/src/nativeApi.ts +7 -10
- package/src/oss/OSSClient.ts +20 -0
- package/src/oss/downloadService.ts +73 -73
- package/src/oss/index.ts +1 -5
- package/src/oss/multiUpload.ts +7 -4
- package/src/oss/servtoken.ts +2 -52
- package/src/oss/uploadService.ts +64 -78
- package/src/spuConfig.ts +7 -10
- package/src/storageProxy.ts +11 -13
- package/src/test.ts +3 -17
- package/src/types/global.d.ts +1 -1
- package/src/types/index.d.ts +13 -15
- package/src/types/shims-lib.d.ts +4 -10
- package/src/urlquery.ts +37 -5
- package/src/utils.ts +15 -31
- package/src/wxworksuitePlugin.ts +25 -0
package/README.md
CHANGED
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
|
|
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
|
|
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
|