zzz-pc-view 0.0.32 → 0.0.34
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/package.json +1 -1
- package/src/decorators/CurdKey/index.d.ts +6 -0
- package/src/decorators/NameKey/index.d.ts +1 -1
- package/src/index.es.js +16 -1
- package/src/index.umd.js +1 -1
- package/src/pcViews/components/forms/CheckboxGroupView.vue.d.ts +2 -1
- package/src/pcViews/components/forms/RadioButtonGroupView.vue.d.ts +2 -1
- package/src/pcViews/components/forms/RadioGroupView.vue.d.ts +2 -1
- package/src/pcViews/components/forms/SelectView.vue.d.ts +2 -1
- package/src/pcViews/components/utils.d.ts +1 -1
package/package.json
CHANGED
|
@@ -548,6 +548,12 @@ export declare abstract class CurdHandler<T extends object = object, P extends P
|
|
|
548
548
|
* @returns {boolean} - 导出数据请求的加载状态,true 表示正在加载,false 表示加载完成。
|
|
549
549
|
*/
|
|
550
550
|
get exportLoadStatus(): boolean;
|
|
551
|
+
/**
|
|
552
|
+
* 执行数据导出操作。
|
|
553
|
+
* 此方法通过 `exportRequestUtil` 发起导出请求,处理请求结果并记录错误信息。
|
|
554
|
+
*
|
|
555
|
+
* @returns {Promise<any>} 一个 Promise,代表导出请求的结果。
|
|
556
|
+
*/
|
|
551
557
|
export(): Promise<void>;
|
|
552
558
|
/**
|
|
553
559
|
* 创建一个浅引用,用于存储当前步骤的索引。
|
|
@@ -65,4 +65,4 @@ export declare const getByPrototype: <T extends object>(target: T) => undefined
|
|
|
65
65
|
propertyKey: 'name'
|
|
66
66
|
}
|
|
67
67
|
*/
|
|
68
|
-
export declare const getByClass: (Class:
|
|
68
|
+
export declare const getByClass: <T extends ClassType>(Class: T) => undefined | Config<InstanceType<T>>;
|
package/src/index.es.js
CHANGED
|
@@ -1776,7 +1776,16 @@ const useHttpRequestInterval = (request, ms) => {
|
|
|
1776
1776
|
let httpRequestPromise;
|
|
1777
1777
|
const callback = () => {
|
|
1778
1778
|
httpRequestPromise = request();
|
|
1779
|
-
|
|
1779
|
+
let isAbort = false;
|
|
1780
|
+
httpRequestPromise.catch((error) => {
|
|
1781
|
+
if (error.code === ABORTED_CODE) {
|
|
1782
|
+
isAbort = true;
|
|
1783
|
+
}
|
|
1784
|
+
return Promise.reject(error);
|
|
1785
|
+
}).finally(() => {
|
|
1786
|
+
if (isAbort) {
|
|
1787
|
+
return;
|
|
1788
|
+
}
|
|
1780
1789
|
httpRequestPromise = void 0;
|
|
1781
1790
|
});
|
|
1782
1791
|
return httpRequestPromise;
|
|
@@ -4008,6 +4017,12 @@ class CurdHandler extends FilterHandler {
|
|
|
4008
4017
|
get exportLoadStatus() {
|
|
4009
4018
|
return this.exportRequestUtil.loadStatus;
|
|
4010
4019
|
}
|
|
4020
|
+
/**
|
|
4021
|
+
* 执行数据导出操作。
|
|
4022
|
+
* 此方法通过 `exportRequestUtil` 发起导出请求,处理请求结果并记录错误信息。
|
|
4023
|
+
*
|
|
4024
|
+
* @returns {Promise<any>} 一个 Promise,代表导出请求的结果。
|
|
4025
|
+
*/
|
|
4011
4026
|
export() {
|
|
4012
4027
|
return this.exportRequestUtil.requestData(this.api.export(this.query)).then(fn).catch(console.error).finally(() => {
|
|
4013
4028
|
});
|