xframelib 1.2.2 → 1.2.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/dist/controls/layoutcontainer/LayoutManager.d.ts +4 -0
- package/dist/controls/layoutcontainer/layout.vue.d.ts +8 -8
- package/dist/controls/splitpanes/pane.vue.d.ts +7 -0
- package/dist/controls/splitpanes/splitpanes.vue.d.ts +3 -0
- package/dist/index.css +1 -1
- package/dist/index.js.js +1 -1
- package/dist/utils/FileUpload.d.ts +11 -2
- package/package.json +11 -10
|
@@ -22,6 +22,7 @@ export interface FileUploadOptions {
|
|
|
22
22
|
headers?: XhrHeaders;
|
|
23
23
|
maxFileSize?: number;
|
|
24
24
|
chunkSize?: number;
|
|
25
|
+
/** 每个分片的最大尝试次数,包含首次请求,默认为 5。 */
|
|
25
26
|
attempts?: number;
|
|
26
27
|
threadNumber?: number;
|
|
27
28
|
/**
|
|
@@ -49,13 +50,18 @@ export declare class FileUpload {
|
|
|
49
50
|
private maxFileBytes;
|
|
50
51
|
private endpointValue?;
|
|
51
52
|
private totalChunks;
|
|
52
|
-
private
|
|
53
|
+
private chunkAttempts;
|
|
54
|
+
private retryTimers;
|
|
55
|
+
private activeChunks;
|
|
53
56
|
private offline;
|
|
54
57
|
private paused;
|
|
55
58
|
private success;
|
|
56
59
|
private isResumed;
|
|
57
60
|
private mapXhrRequest;
|
|
58
|
-
private
|
|
61
|
+
private okRecordSet;
|
|
62
|
+
private destroyed;
|
|
63
|
+
private readonly onlineHandler;
|
|
64
|
+
private readonly offlineHandler;
|
|
59
65
|
private eventTarget;
|
|
60
66
|
private fileName;
|
|
61
67
|
constructor(options: FileUploadOptions);
|
|
@@ -64,6 +70,8 @@ export declare class FileUpload {
|
|
|
64
70
|
*/
|
|
65
71
|
on(FileEventName: FileEventName, fn: (event: any) => void): void;
|
|
66
72
|
abort(): void;
|
|
73
|
+
/** 停止上传并释放监听器、定时器和事件订阅。可重复调用。 */
|
|
74
|
+
destroy(): void;
|
|
67
75
|
pause(): void;
|
|
68
76
|
resume(): Promise<void>;
|
|
69
77
|
/**
|
|
@@ -90,6 +98,7 @@ export declare class FileUpload {
|
|
|
90
98
|
/**
|
|
91
99
|
* 失败处理和尝试
|
|
92
100
|
*/
|
|
101
|
+
private manageRetries;
|
|
93
102
|
/**
|
|
94
103
|
* 进行分片上传,并处理错误和重试
|
|
95
104
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xframelib",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "The accumulated front-end development foundation library originates from projects and serves projects.",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "vite build",
|
|
20
|
+
"typecheck": "tsc --noEmit --pretty false",
|
|
20
21
|
"clean": "rimraf dist && rimraf package-lock.json && rimraf node_modules/.cache && rimraf node_modules/.vite"
|
|
21
22
|
},
|
|
22
23
|
"keywords": [
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
"@hprose/rpc-core": "^3.0.10",
|
|
44
45
|
"@hprose/rpc-html5": "^3.0.10",
|
|
45
46
|
"@iconify-icons/ant-design": "^2.0.1",
|
|
46
|
-
"@iconify/vue": "^5.0.
|
|
47
|
+
"@iconify/vue": "^5.0.3",
|
|
47
48
|
"@microsoft/signalr": "^10.0.11",
|
|
48
49
|
"axios": "^1.20.0",
|
|
49
50
|
"buffer": "^6.0.3",
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"iconv-lite": "^0.7.3",
|
|
52
53
|
"localforage": "^1.10.0",
|
|
53
54
|
"loglevel": "^1.9.2",
|
|
54
|
-
"lru-cache": "^11.5.
|
|
55
|
+
"lru-cache": "^11.5.3",
|
|
55
56
|
"qs": "^6.16.0",
|
|
56
57
|
"spark-md5": "^3.0.2",
|
|
57
58
|
"tippy.js": "^6.3.7",
|
|
@@ -62,25 +63,25 @@
|
|
|
62
63
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
63
64
|
"@rollup/plugin-terser": "^1.0.0",
|
|
64
65
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
65
|
-
"@types/node": "^26.
|
|
66
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
67
|
-
"@vue/language-core": "^3.3.
|
|
66
|
+
"@types/node": "^26.6.4",
|
|
67
|
+
"@vitejs/plugin-vue": "^6.0.9",
|
|
68
|
+
"@vue/language-core": "^3.3.12",
|
|
68
69
|
"comlink": "^4.4.2",
|
|
69
70
|
"esbuild": "^0.28.2",
|
|
70
71
|
"rollup-plugin-copy": "^3.5.0",
|
|
71
72
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
72
73
|
"rollup-plugin-scss": "^4.0.1",
|
|
73
74
|
"rollup-plugin-vue": "^6.0.0",
|
|
74
|
-
"sass": "^1.
|
|
75
|
+
"sass": "^1.105.1",
|
|
75
76
|
"tslib": "^2.8.1",
|
|
76
77
|
"typescript": "^6.x",
|
|
77
|
-
"unplugin-dts": "1.1.
|
|
78
|
-
"vite": "^8.
|
|
78
|
+
"unplugin-dts": "1.1.2",
|
|
79
|
+
"vite": "^8.3.2",
|
|
79
80
|
"vite-plugin-comlink": "^5.3.0",
|
|
80
81
|
"vite-plugin-commonjs": "^0.10.4",
|
|
81
82
|
"vite-plugin-node-polyfills": "^0.28.0",
|
|
82
83
|
"vite-plugin-static-copy": "^4.1.1",
|
|
83
|
-
"vue": "^3.5.
|
|
84
|
+
"vue": "^3.5.43",
|
|
84
85
|
"vue-router": "^5.3.1"
|
|
85
86
|
}
|
|
86
87
|
}
|