element-less 0.0.10 → 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.
Files changed (36) hide show
  1. package/config/index.d.ts +69 -0
  2. package/element-less.cjs +1 -1
  3. package/element-less.iife.js +1 -1
  4. package/element-less.js +1 -1
  5. package/element-less.umd.cjs +1 -1
  6. package/elementui/checkbox/index.d.ts +1 -1
  7. package/elementui/checkbox/src/checkbox.vue.d.ts +1 -1
  8. package/elementui/checkbox-button/index.d.ts +3 -3
  9. package/elementui/checkbox-button/src/CheckboxButton.vue.d.ts +1 -1
  10. package/elementui/radio/index.d.ts +1 -1
  11. package/elementui/radio/src/radio.vue.d.ts +1 -1
  12. package/elementui/radio-button/index.d.ts +3 -3
  13. package/elementui/radio-button/src/radioButton.vue.d.ts +1 -1
  14. package/elementui/upload/index.d.ts +3 -3
  15. package/elementui/upload/src/upload.vue.d.ts +3 -3
  16. package/{index-Cig-voSg.js → index-BPJ2MJz9.js} +163 -115
  17. package/index-j-lC_R_c.cjs +1 -0
  18. package/index.d.ts +2 -1
  19. package/{innerItem-CG9tFZWx.cjs → innerItem-7Bq-Z4KW.cjs} +1 -1
  20. package/{innerItem-vzH3yn3m.js → innerItem-ZAXmJCe9.js} +1 -1
  21. package/{mode-csharp-CJYppySx.js → mode-csharp-BZlGXkBn.js} +1 -1
  22. package/{mode-csharp-0fcUEF6U.cjs → mode-csharp-CTRIUYoz.cjs} +1 -1
  23. package/{mode-css-CT2qzIxT.js → mode-css-BYh5hBCw.js} +1 -1
  24. package/{mode-css-QcqXaNmq.cjs → mode-css-D2kK6Yr6.cjs} +1 -1
  25. package/{mode-javascript-DvlWhLv-.cjs → mode-javascript-CZ7N0sfz.cjs} +1 -1
  26. package/{mode-javascript-BiP9yoWP.js → mode-javascript-iVD-CtBw.js} +1 -1
  27. package/{mode-json-D4gQolS_.cjs → mode-json-BbwpZBCH.cjs} +1 -1
  28. package/{mode-json-W24VUbho.js → mode-json-D50dzohZ.js} +1 -1
  29. package/{mode-mysql-Cdzottjb.cjs → mode-mysql-5VYrOvsS.cjs} +1 -1
  30. package/{mode-mysql-D2Rn7oSL.js → mode-mysql-CVg2QeEJ.js} +1 -1
  31. package/package.json +1 -1
  32. package/style.css +1 -1
  33. package/utils/axiosInstance.d.ts +4 -0
  34. package/utils/index.d.ts +44 -73
  35. package/utils/lessPrototype.d.ts +4 -4
  36. package/index-CFPPQMDb.cjs +0 -1
@@ -0,0 +1,4 @@
1
+ import { AxiosInstance } from 'axios';
2
+ export declare function createAxiosInstance(): AxiosInstance;
3
+ export declare function getAxiosInstance(): AxiosInstance;
4
+ export declare function setJwtToken(token: string): void;
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?: undefined;
9
- $messageField?: undefined;
10
- $dataField?: undefined;
11
- $eventData?: undefined;
12
- $success?: undefined;
13
- } | {
14
- $codeField: any;
15
- $messageField: any;
16
- $dataField: any;
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?: undefined;
22
- $actionField?: undefined;
23
- $nameField?: undefined;
24
- $actionNameField?: undefined;
25
- $areaField?: undefined;
26
- $controllerField?: undefined;
27
- $iconField?: undefined;
28
- $urlField?: undefined;
29
- $buttonColorField?: undefined;
30
- $buttonTypeField?: undefined;
31
- $groupField?: undefined;
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?: undefined;
51
- $avgDayField?: undefined;
52
- $pageDataField?: undefined;
53
- $pageSizeField?: undefined;
54
- $currentPageField?: undefined;
55
- $totalField?: undefined;
56
- $pageCountField?: undefined;
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?: undefined;
68
- $homeUrl?: undefined;
69
- } | {
70
- $serverUrl: any;
71
- $homeUrl: any;
50
+ $serverUrl: string;
51
+ $homeUrl: string;
72
52
  };
73
53
  getWangEditorConfig(): {
74
- $serverUrl?: undefined;
75
- } | {
76
- $serverUrl: any;
54
+ $serverUrl: string;
77
55
  };
78
56
  getUploadConfig(): {
79
- $uploadUrl?: undefined;
80
- $dataField?: undefined;
81
- $pathField?: undefined;
82
- $md5Field?: undefined;
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, alertCatchError?: boolean): Promise<unknown> | undefined;
124
- post(url: string, data: object, alertCatchError?: boolean, header?: {
125
- 'Content-Type': string;
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;
@@ -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, alertCatchError?: true): Promise<any>;
12
- get(postdata: object, alertCatchError?: true): Promise<any>;
13
- upload(formdata: FormData, alertCatchError?: true): Promise<any>;
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 {};