element-less 0.0.9 → 0.0.11
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/config/index.d.ts +69 -0
- package/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +1 -1
- package/element-less.umd.cjs +1 -1
- package/elementui/checkbox/index.d.ts +1 -1
- package/elementui/checkbox/src/checkbox.vue.d.ts +1 -1
- package/elementui/checkbox-button/index.d.ts +3 -3
- package/elementui/checkbox-button/src/CheckboxButton.vue.d.ts +1 -1
- package/elementui/radio/index.d.ts +1 -1
- package/elementui/radio/src/radio.vue.d.ts +1 -1
- package/elementui/radio-button/index.d.ts +3 -3
- package/elementui/radio-button/src/radioButton.vue.d.ts +1 -1
- package/elementui/upload/index.d.ts +3 -3
- package/elementui/upload/src/upload.vue.d.ts +3 -3
- package/{index-CLrh82uM.js → index-BPJ2MJz9.js} +166 -116
- package/index-j-lC_R_c.cjs +1 -0
- package/index.d.ts +2 -1
- package/{innerItem-BU5rzWOS.cjs → innerItem-7Bq-Z4KW.cjs} +1 -1
- package/{innerItem-Ecpkpr_1.js → innerItem-ZAXmJCe9.js} +1 -1
- package/{mode-csharp-8Qr7KA7-.js → mode-csharp-BZlGXkBn.js} +1 -1
- package/{mode-csharp-BHvsSZJJ.cjs → mode-csharp-CTRIUYoz.cjs} +1 -1
- package/{mode-css-7HePkEyP.js → mode-css-BYh5hBCw.js} +1 -1
- package/{mode-css-BYCUXfz9.cjs → mode-css-D2kK6Yr6.cjs} +1 -1
- package/{mode-javascript-DEtLS6uH.cjs → mode-javascript-CZ7N0sfz.cjs} +1 -1
- package/{mode-javascript-BsWAOCK9.js → mode-javascript-iVD-CtBw.js} +1 -1
- package/{mode-json-ClFqizaF.cjs → mode-json-BbwpZBCH.cjs} +1 -1
- package/{mode-json-CNw4Ad6L.js → mode-json-D50dzohZ.js} +1 -1
- package/{mode-mysql-yfRDxj8Z.cjs → mode-mysql-5VYrOvsS.cjs} +1 -1
- package/{mode-mysql-Brju4QkM.js → mode-mysql-CVg2QeEJ.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/utils/axiosInstance.d.ts +4 -0
- package/utils/index.d.ts +44 -73
- package/utils/lessPrototype.d.ts +4 -4
- package/index-CfHEZDgc.cjs +0 -1
package/utils/index.d.ts
CHANGED
|
@@ -1,90 +1,63 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
1
2
|
export * from './message';
|
|
2
3
|
export * from './types';
|
|
3
4
|
export * from './loadComponent';
|
|
5
|
+
export * from './axiosInstance';
|
|
4
6
|
declare const _default: {
|
|
5
7
|
jsonFormatter(obj: string | undefined): string;
|
|
6
8
|
isDef(val: any): boolean;
|
|
9
|
+
getAxiosConfig(): import('axios').CreateAxiosDefaults<any> | {
|
|
10
|
+
headers: {
|
|
11
|
+
'Content-Type': string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
7
14
|
getApiConfig(): {
|
|
8
|
-
$codeField
|
|
9
|
-
$messageField
|
|
10
|
-
$dataField
|
|
11
|
-
$eventData
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
$
|
|
17
|
-
$eventData: any;
|
|
18
|
-
$success: any;
|
|
15
|
+
$codeField: string;
|
|
16
|
+
$messageField: string;
|
|
17
|
+
$dataField: string;
|
|
18
|
+
$eventData: {
|
|
19
|
+
data: string;
|
|
20
|
+
data_key: string;
|
|
21
|
+
data_value: string;
|
|
22
|
+
};
|
|
23
|
+
$success: string;
|
|
19
24
|
};
|
|
20
25
|
getMenuConfig(): {
|
|
21
|
-
$idField
|
|
22
|
-
$actionField
|
|
23
|
-
$nameField
|
|
24
|
-
$
|
|
25
|
-
$areaField
|
|
26
|
-
$controllerField
|
|
27
|
-
$iconField
|
|
28
|
-
$urlField
|
|
29
|
-
$buttonColorField
|
|
30
|
-
$buttonTypeField
|
|
31
|
-
$groupField
|
|
32
|
-
$confirmField?: undefined;
|
|
33
|
-
$confirmPasswordField?: undefined;
|
|
34
|
-
} | {
|
|
35
|
-
$idField: any;
|
|
36
|
-
$actionField: any;
|
|
37
|
-
$nameField: any;
|
|
38
|
-
$actionNameField: any;
|
|
39
|
-
$areaField: any;
|
|
40
|
-
$controllerField: any;
|
|
41
|
-
$iconField: any;
|
|
42
|
-
$urlField: any;
|
|
43
|
-
$buttonColorField: any;
|
|
44
|
-
$buttonTypeField: any;
|
|
45
|
-
$groupField: any;
|
|
26
|
+
$idField: string;
|
|
27
|
+
$actionField: string;
|
|
28
|
+
$nameField: string;
|
|
29
|
+
$actionTypeField: any;
|
|
30
|
+
$areaField: string;
|
|
31
|
+
$controllerField: string;
|
|
32
|
+
$iconField: string;
|
|
33
|
+
$urlField: string;
|
|
34
|
+
$buttonColorField: string;
|
|
35
|
+
$buttonTypeField: string;
|
|
36
|
+
$groupField: string;
|
|
46
37
|
$confirmField: any;
|
|
47
38
|
$confirmPasswordField: any;
|
|
48
39
|
};
|
|
49
40
|
getTableConfig(): {
|
|
50
|
-
$menuField
|
|
51
|
-
$avgDayField
|
|
52
|
-
$pageDataField
|
|
53
|
-
$pageSizeField
|
|
54
|
-
$currentPageField
|
|
55
|
-
$totalField
|
|
56
|
-
$pageCountField
|
|
57
|
-
} | {
|
|
58
|
-
$menuField: any;
|
|
59
|
-
$avgDayField: any;
|
|
60
|
-
$pageDataField: any;
|
|
61
|
-
$pageSizeField: any;
|
|
62
|
-
$currentPageField: any;
|
|
63
|
-
$totalField: any;
|
|
64
|
-
$pageCountField: any;
|
|
41
|
+
$menuField: string;
|
|
42
|
+
$avgDayField: string;
|
|
43
|
+
$pageDataField: string;
|
|
44
|
+
$pageSizeField: string;
|
|
45
|
+
$currentPageField: string;
|
|
46
|
+
$totalField: string;
|
|
47
|
+
$pageCountField: string;
|
|
65
48
|
};
|
|
66
49
|
getUEditorConfig(): {
|
|
67
|
-
$serverUrl
|
|
68
|
-
$homeUrl
|
|
69
|
-
} | {
|
|
70
|
-
$serverUrl: any;
|
|
71
|
-
$homeUrl: any;
|
|
50
|
+
$serverUrl: string;
|
|
51
|
+
$homeUrl: string;
|
|
72
52
|
};
|
|
73
53
|
getWangEditorConfig(): {
|
|
74
|
-
$serverUrl
|
|
75
|
-
} | {
|
|
76
|
-
$serverUrl: any;
|
|
54
|
+
$serverUrl: string;
|
|
77
55
|
};
|
|
78
56
|
getUploadConfig(): {
|
|
79
|
-
$uploadUrl
|
|
80
|
-
$dataField
|
|
81
|
-
$pathField
|
|
82
|
-
$md5Field
|
|
83
|
-
} | {
|
|
84
|
-
$uploadUrl: any;
|
|
85
|
-
$dataField: any;
|
|
86
|
-
$pathField: any;
|
|
87
|
-
$md5Field: any;
|
|
57
|
+
$uploadUrl: string;
|
|
58
|
+
$dataField: string;
|
|
59
|
+
$pathField: string;
|
|
60
|
+
$md5Field: string;
|
|
88
61
|
};
|
|
89
62
|
getCompareClass(val: string): "" | "txt-color-green" | "txt-color-red";
|
|
90
63
|
getAvgDayResult(val: number, fixed?: number, dayCount?: number): string;
|
|
@@ -120,11 +93,9 @@ declare const _default: {
|
|
|
120
93
|
key: string;
|
|
121
94
|
value: any;
|
|
122
95
|
}[];
|
|
123
|
-
upload(url: any, formData: FormData
|
|
124
|
-
post(url: string, data: object,
|
|
125
|
-
|
|
126
|
-
}): Promise<unknown>;
|
|
127
|
-
get(url: string, data: object, alertCatchError?: boolean): Promise<unknown>;
|
|
96
|
+
upload(url: any, formData: FormData): Promise<unknown> | undefined;
|
|
97
|
+
post(url: string, data: object, axiosInstance?: AxiosInstance): Promise<unknown>;
|
|
98
|
+
get(url: string, data?: object, axiosInstance?: AxiosInstance): Promise<unknown>;
|
|
128
99
|
removeUndefinedOrWhiteSpaceProps(obj: any): {};
|
|
129
100
|
clip(text: any): void;
|
|
130
101
|
isEmptyObject(obj: any): boolean;
|
package/utils/lessPrototype.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
1
2
|
declare global {
|
|
2
3
|
interface Number {
|
|
3
4
|
appendPx(): string;
|
|
@@ -8,9 +9,9 @@ declare global {
|
|
|
8
9
|
trimQuotes(): string;
|
|
9
10
|
trimComma(): string;
|
|
10
11
|
replacePowerUrl(): string;
|
|
11
|
-
post(postdata: object,
|
|
12
|
-
get(postdata
|
|
13
|
-
upload(formdata: FormData
|
|
12
|
+
post(postdata: object, axiosInstance?: AxiosInstance): Promise<any>;
|
|
13
|
+
get(postdata?: object, axiosInstance?: AxiosInstance): Promise<any>;
|
|
14
|
+
upload(formdata: FormData): Promise<any>;
|
|
14
15
|
toList(valueSeparator: string): string[];
|
|
15
16
|
toListNumber(valueSeparator: string): number[];
|
|
16
17
|
appendPx(): string;
|
|
@@ -24,4 +25,3 @@ declare global {
|
|
|
24
25
|
md5(): string;
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
|
-
export {};
|