@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,3 +1,4 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
declare function __VLS_template(): {
|
|
2
3
|
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
@@ -36,7 +37,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
36
37
|
* 配置范围 `1~3`, 默认为 `1`
|
|
37
38
|
*/
|
|
38
39
|
column: {
|
|
39
|
-
type:
|
|
40
|
+
type: PropType<1 | 2 | 3>;
|
|
40
41
|
default: number;
|
|
41
42
|
};
|
|
42
43
|
/**
|
|
@@ -94,7 +95,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
94
95
|
* 配置范围 `1~3`, 默认为 `1`
|
|
95
96
|
*/
|
|
96
97
|
column: {
|
|
97
|
-
type:
|
|
98
|
+
type: PropType<1 | 2 | 3>;
|
|
98
99
|
default: number;
|
|
99
100
|
};
|
|
100
101
|
/**
|
|
@@ -130,7 +131,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
130
131
|
minHeight: string;
|
|
131
132
|
collapse: boolean;
|
|
132
133
|
hideTitle: boolean;
|
|
133
|
-
column:
|
|
134
|
+
column: 3 | 2 | 1;
|
|
134
135
|
autoHeight: boolean;
|
|
135
136
|
autoCol: boolean;
|
|
136
137
|
disableCollapse: boolean;
|
|
@@ -70,6 +70,9 @@ export declare class WebConfig {
|
|
|
70
70
|
defaultLabel: string;
|
|
71
71
|
description: string;
|
|
72
72
|
alphaLabel: string;
|
|
73
|
+
alphaDescription: string;
|
|
74
|
+
hueLabel: string;
|
|
75
|
+
hueDescription: string;
|
|
73
76
|
};
|
|
74
77
|
datepicker: {
|
|
75
78
|
now: string;
|
|
@@ -147,12 +150,12 @@ export declare class WebConfig {
|
|
|
147
150
|
noData: string;
|
|
148
151
|
placeholder: string;
|
|
149
152
|
};
|
|
150
|
-
dropdown: {
|
|
151
|
-
toggleDropdown: string;
|
|
152
|
-
};
|
|
153
153
|
mention: {
|
|
154
154
|
loading: string;
|
|
155
155
|
};
|
|
156
|
+
dropdown: {
|
|
157
|
+
toggleDropdown: string;
|
|
158
|
+
};
|
|
156
159
|
cascader: {
|
|
157
160
|
noMatch: string;
|
|
158
161
|
loading: string;
|
|
@@ -207,6 +210,7 @@ export declare class WebConfig {
|
|
|
207
210
|
next: string;
|
|
208
211
|
previous: string;
|
|
209
212
|
finish: string;
|
|
213
|
+
close: string;
|
|
210
214
|
};
|
|
211
215
|
tree: {
|
|
212
216
|
emptyText: string;
|
|
@@ -7,9 +7,9 @@ export declare class WebConstant {
|
|
|
7
7
|
/**
|
|
8
8
|
* ### HTTP 请求前缀
|
|
9
9
|
*/
|
|
10
|
-
static readonly PREFIX_HTTP
|
|
10
|
+
static readonly PREFIX_HTTP: string;
|
|
11
11
|
/**
|
|
12
12
|
* ### HTTPS 请求前缀
|
|
13
13
|
*/
|
|
14
|
-
static readonly PREFIX_HTTPS
|
|
14
|
+
static readonly PREFIX_HTTPS: string;
|
|
15
15
|
}
|
package/dist/http/Http.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IJson, ITransformerConstructor
|
|
1
|
+
import { IJson, ITransformerConstructor } from '@airpower/transformer';
|
|
2
|
+
import { RootModel } from '../model/RootModel';
|
|
2
3
|
import { HttpContentType } from './enum/HttpContentType';
|
|
3
4
|
import { HttpHeader } from './enum/HttpHeader';
|
|
4
5
|
import { HttpMethod } from './enum/HttpMethod';
|
|
@@ -49,7 +50,15 @@ export declare class Http {
|
|
|
49
50
|
* @param handlers.loading 加载
|
|
50
51
|
*/
|
|
51
52
|
static create(url: string, handlers?: {
|
|
53
|
+
/**
|
|
54
|
+
* ### 错误回调
|
|
55
|
+
* @param error 错误信息
|
|
56
|
+
*/
|
|
52
57
|
error?: (error: HttpResponse) => void;
|
|
58
|
+
/**
|
|
59
|
+
* ### 加载状态
|
|
60
|
+
* @param loading 加载状态
|
|
61
|
+
*/
|
|
53
62
|
loading?: (loading: boolean) => void;
|
|
54
63
|
}): Http;
|
|
55
64
|
/**
|
|
@@ -91,25 +100,25 @@ export declare class Http {
|
|
|
91
100
|
* ### 无返回发送请求
|
|
92
101
|
* @param postData 发送的数据模型(数组)
|
|
93
102
|
*/
|
|
94
|
-
request<REQ extends
|
|
103
|
+
request<REQ extends RootModel>(postData?: REQ | REQ[]): Promise<void>;
|
|
95
104
|
/**
|
|
96
105
|
* ### 发送请求并获取转换后的模型
|
|
97
106
|
* @param postData 发送的数据模型(数组)
|
|
98
107
|
* @param parseClass 返回的模型
|
|
99
108
|
*/
|
|
100
|
-
requestModel<REQ extends
|
|
109
|
+
requestModel<REQ extends RootModel, RES extends RootModel>(postData: REQ | REQ[] | undefined, parseClass: ITransformerConstructor<RES>): Promise<RES>;
|
|
101
110
|
/**
|
|
102
111
|
* ### 发送请求并获取转换后的模型数组
|
|
103
112
|
* @param postData 发送的数据模型(数组)
|
|
104
113
|
* @param parseClass 返回的模型数组
|
|
105
114
|
*/
|
|
106
|
-
requestModelList<REQ extends
|
|
115
|
+
requestModelList<REQ extends RootModel, RES extends RootModel>(postData: REQ | REQ[] | undefined, parseClass: ITransformerConstructor<RES>): Promise<RES[]>;
|
|
107
116
|
/**
|
|
108
117
|
* ### POST 发送请求并获取原始 `data`
|
|
109
118
|
* @param postData 发送的数据模型(数组)
|
|
110
119
|
* @returns 响应的原始 `data`
|
|
111
120
|
*/
|
|
112
|
-
requestRaw<REQ extends
|
|
121
|
+
requestRaw<REQ extends RootModel>(postData?: REQ | REQ[]): Promise<IJson | IJson[]>;
|
|
113
122
|
/**
|
|
114
123
|
* 发送请求
|
|
115
124
|
* @param request 请求
|