@airpower/web 1.8.4 → 1.8.5
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/components/group/Group.vue.d.ts +4 -3
- package/dist/config/WebConfig.d.ts +7 -3
- package/dist/config/WebConstant.d.ts +2 -2
- package/dist/feedback/FeedbackUtil.d.ts +3 -0
- package/dist/http/Http.d.ts +14 -5
- package/dist/main.js +1614 -2149
- package/dist/model/export/ExportModel.d.ts +2 -2
- package/dist/model/query/QueryPage.d.ts +2 -2
- package/dist/model/query/QueryRequest.d.ts +3 -2
- package/dist/model/query/QueryResponsePage.d.ts +2 -2
- package/dist/model/query/QuerySort.d.ts +2 -2
- package/dist/service/AbstractService.d.ts +3 -2
- package/dist/service/type.d.ts +3 -0
- package/dist/util/ClipboardUtil.d.ts +1 -1
- package/dist/validator/WebValidator.d.ts +1 -1
- package/dist/web.css +15 -15
- package/package.json +16 -16
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { QueryRequest } from '../query/QueryRequest';
|
|
2
|
-
import {
|
|
2
|
+
import { RootModel } from '../RootModel';
|
|
3
3
|
/**
|
|
4
4
|
* ### 导出的数据模型
|
|
5
5
|
* @author Hamm.cn
|
|
6
6
|
*/
|
|
7
|
-
export declare class ExportModel<R extends QueryRequest = QueryRequest> extends
|
|
7
|
+
export declare class ExportModel<R extends QueryRequest = QueryRequest> extends RootModel {
|
|
8
8
|
/**
|
|
9
9
|
* ### 创建导出任务的API地址
|
|
10
10
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootModel } from '../RootModel';
|
|
2
2
|
/**
|
|
3
3
|
* ### 分页类
|
|
4
4
|
* @author Hamm.cn
|
|
5
5
|
*/
|
|
6
|
-
export declare class QueryPage extends
|
|
6
|
+
export declare class QueryPage extends RootModel {
|
|
7
7
|
/**
|
|
8
8
|
* ### 分页页数
|
|
9
9
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ITransformerConstructor
|
|
1
|
+
import { ITransformerConstructor } from '@airpower/transformer';
|
|
2
2
|
import { RootEntity } from '../RootEntity';
|
|
3
|
+
import { RootModel } from '../RootModel';
|
|
3
4
|
import { QuerySort } from './QuerySort';
|
|
4
5
|
/**
|
|
5
6
|
* ### 请求类
|
|
6
7
|
* @author Hamm.cn
|
|
7
8
|
*/
|
|
8
|
-
export declare class QueryRequest<E extends RootEntity = RootEntity> extends
|
|
9
|
+
export declare class QueryRequest<E extends RootEntity = RootEntity> extends RootModel {
|
|
9
10
|
/**
|
|
10
11
|
* ### 查询信息
|
|
11
12
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RootEntity } from '../RootEntity';
|
|
2
|
-
import {
|
|
2
|
+
import { RootModel } from '../RootModel';
|
|
3
3
|
import { QueryPage } from './QueryPage';
|
|
4
4
|
import { QuerySort } from './QuerySort';
|
|
5
5
|
/**
|
|
6
6
|
* ### 响应分页类
|
|
7
7
|
* @author Hamm.cn
|
|
8
8
|
*/
|
|
9
|
-
export declare class QueryResponsePage<E extends RootEntity> extends
|
|
9
|
+
export declare class QueryResponsePage<E extends RootEntity> extends RootModel {
|
|
10
10
|
/**
|
|
11
11
|
* ### 返回的当前页数据列表
|
|
12
12
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SortType } from './type';
|
|
2
|
-
import {
|
|
2
|
+
import { RootModel } from '../RootModel';
|
|
3
3
|
/**
|
|
4
4
|
* ### 排序类
|
|
5
5
|
* @author Hamm.cn
|
|
6
6
|
*/
|
|
7
|
-
export declare class QuerySort extends
|
|
7
|
+
export declare class QuerySort extends RootModel {
|
|
8
8
|
/**
|
|
9
9
|
* ### 排序字段 默认 `id`
|
|
10
10
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ITransformerConstructor
|
|
1
|
+
import { ITransformerConstructor } from '@airpower/transformer';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
import { Http } from '../http/Http';
|
|
4
|
+
import { RootModel } from '../model/RootModel';
|
|
4
5
|
/**
|
|
5
6
|
* ### `API` 服务超类
|
|
6
7
|
* @author Hamm.cn
|
|
7
8
|
*/
|
|
8
|
-
export declare abstract class AbstractService extends
|
|
9
|
+
export declare abstract class AbstractService extends RootModel {
|
|
9
10
|
/**
|
|
10
11
|
* ### `API` 目录地址
|
|
11
12
|
* 一般对应后端的 `分组/控制器/目录` 等
|
package/dist/service/type.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export declare class WebValidator {
|
|
|
40
40
|
* ### 创建一个验证器
|
|
41
41
|
* @param rule 验证规则
|
|
42
42
|
*/
|
|
43
|
-
static create(rule: WebValidateRule): WebValidateRule
|
|
43
|
+
static create<E extends RootEntity = RootEntity>(rule: WebValidateRule<E>): WebValidateRule<E>;
|
|
44
44
|
/**
|
|
45
45
|
* ### 创建验证器
|
|
46
46
|
* @param service 接口服务对象
|