zzz-pc-view 0.0.25 → 0.0.26
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 +15 -6
- package/src/index.es.js +7616 -117
- package/src/index.umd.js +7 -2
- package/src/pcViews/components/curd/CurdViewHandler.d.ts +1 -0
- package/src/pcViews/components/curd/FilterView.vue.d.ts +1 -0
- package/src/utils/index.d.ts +1 -0
- package/src/utils/interval/index.d.ts +2 -0
- package/src/utils/interval/useHttpRequestInterval.d.ts +12 -0
- package/src/utils/interval/useInterval.d.ts +11 -0
- package/src/utils/mock/index.d.ts +1 -0
- package/src/utils/mock/useCurd.d.ts +17 -0
- package/src/webUtils/useNavStore.d.ts +1 -2
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CombineClass, CombineInstanceType, KeyMatch, WithoutFirst } from '../../utils';
|
|
2
2
|
import { BasePropertyConfig, ComponentProps, EventHandlerMap, TypeWithPrototype } from '../DeclareType';
|
|
3
3
|
import { FilterHandler } from '../FilterKey';
|
|
4
4
|
import { EditTypeEnum, CurdApi, EditType, PaginationResponse } from './CurdApi';
|
|
5
5
|
import { Config as PrimaryKeyConfig } from './../PrimaryKey';
|
|
6
6
|
import { Config as NameKeyConfig } from './../NameKey';
|
|
7
7
|
import { RequestUtilResponse } from '../useRequestUtil';
|
|
8
|
+
import { ZUtils } from '../../index-decorators';
|
|
8
9
|
export * from './CurdApi';
|
|
9
10
|
/**
|
|
10
11
|
* 基础参数接口,用于定义通用的参数属性。
|
|
@@ -380,7 +381,7 @@ export declare abstract class CurdHandler<T extends object = object, P extends P
|
|
|
380
381
|
* @param {T} data - 包含名称的对象。
|
|
381
382
|
* @returns {string} - 数据的名称,如果没有配置名称键,则返回一个空字符串。
|
|
382
383
|
*/
|
|
383
|
-
getDataName(data: T): "" | T[KeyMatch<T,
|
|
384
|
+
getDataName(data: T): "" | T[KeyMatch<T, ZUtils.KeyValType>];
|
|
384
385
|
/**
|
|
385
386
|
* 获取名称键配置。
|
|
386
387
|
* 这个方法返回 nameKeyConfig 属性的值,它包含了名称键的配置信息。
|
|
@@ -533,11 +534,19 @@ export declare abstract class CurdHandler<T extends object = object, P extends P
|
|
|
533
534
|
*/
|
|
534
535
|
delete(data: T): void;
|
|
535
536
|
/**
|
|
536
|
-
*
|
|
537
|
-
*
|
|
538
|
-
* @
|
|
537
|
+
* 定义一个受保护的只读属性,用于存储导出数据请求工具的响应。
|
|
538
|
+
* 这个属性将用于在组件中处理导出数据请求的加载状态和取消请求。
|
|
539
|
+
* @type {RequestUtilResponse}
|
|
540
|
+
* @description 这个属性是受保护的,意味着它只能在当前类或其子类中访问。
|
|
541
|
+
* @description 它会在组件初始化时被设置,并且在组件的整个生命周期中保持不变。
|
|
542
|
+
*/
|
|
543
|
+
protected exportRequestUtil: RequestUtilResponse;
|
|
544
|
+
/**
|
|
545
|
+
* 执行数据导出操作。
|
|
546
|
+
* 该方法会设置导出请求的加载状态,发起导出请求,处理请求结果,并在请求结束后重置加载状态。
|
|
547
|
+
* @returns {Promise<any>} - 返回一个Promise,表示导出请求的结果。
|
|
539
548
|
*/
|
|
540
|
-
export():
|
|
549
|
+
export(): Promise<void>;
|
|
541
550
|
/**
|
|
542
551
|
* 创建一个浅引用,用于存储当前步骤的索引。
|
|
543
552
|
* 这个引用将用于在组件中存储和更新当前步骤的索引。
|