@smart100/spu-web-plugin 0.0.9 → 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 +12 -19
- package/dist/spu-web-plugin.mjs +44388 -6
- package/package.json +1 -5
- package/src/axios.ts +1 -1
- package/src/components/common/index.ts +19 -0
- package/src/components/expandexp/export.vue +820 -0
- package/src/components/expandexp/icons/icon_csv.png +0 -0
- package/src/components/expandexp/icons/icon_excel.png +0 -0
- package/src/components/expandexp/icons/icon_pdf.png +0 -0
- package/src/components/expandexp/icons/icon_zip.png +0 -0
- package/src/components/expandexp/index.ts +697 -0
- package/src/components/expandexp/step.ts +46 -0
- package/src/components/expandexp/template.ts +320 -0
- package/src/components/expandexp/util.ts +91 -0
- package/src/components/index.ts +7 -0
- package/src/components/loadding/index.ts +152 -0
- package/src/core.js +471 -0
- package/src/index.ts +8 -4
- package/src/install.ts +38 -12
- package/src/login.ts +27 -10
- package/src/oss/downloadService.ts +72 -9
- package/src/test.ts +23 -0
- package/src/types/global.d.ts +1 -1
- package/src/types/shims-lib.d.ts +2 -2
- /package/src/{loadding → components/loadding-vue3}/img/loading.gif +0 -0
- /package/src/{loadding → components/loadding-vue3}/index.ts +0 -0
- /package/src/{loadding → components/loadding-vue3}/index.vue +0 -0
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
|
|
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
|
-
|
|
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
|
}
|