yxuse 2.0.28 → 2.0.30

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 (46) hide show
  1. package/lib/api.cjs.js +1 -1
  2. package/lib/api.es.js +1 -1
  3. package/lib/components.cjs.js +1 -1
  4. package/lib/components.es.js +11 -12
  5. package/lib/directives.cjs.js +1 -1
  6. package/lib/directives.es.js +1 -1
  7. package/lib/hooks.cjs.js +1 -1
  8. package/lib/hooks.es.js +1 -1
  9. package/lib/index.cjs.js +1 -1
  10. package/lib/index.cjs2.js +20 -18
  11. package/lib/index.cjs2.js.gz +0 -0
  12. package/lib/index.cjs3.js +1 -1
  13. package/lib/index.cjs4.js +1 -1
  14. package/lib/index.cjs5.js +1 -1
  15. package/lib/index.cjs6.js +1 -1
  16. package/lib/index.cjs7.js +3 -3
  17. package/lib/index.cjs7.js.gz +0 -0
  18. package/lib/index.es.js +16 -17
  19. package/lib/index.es2.js +2418 -2362
  20. package/lib/index.es2.js.gz +0 -0
  21. package/lib/index.es3.js +24 -21
  22. package/lib/index.es4.js +2 -3
  23. package/lib/index.es5.js +16 -16
  24. package/lib/index.es6.js +1 -1
  25. package/lib/index.es6.js.gz +0 -0
  26. package/lib/index.es7.js +2968 -750
  27. package/lib/index.es7.js.gz +0 -0
  28. package/lib/index.es8.js +7 -1
  29. package/lib/index.es9.js +4 -4
  30. package/lib/theme.cjs.js +1 -1
  31. package/lib/theme.es.js +10 -10
  32. package/lib/translate.cjs.js +1 -1
  33. package/lib/translate.es.js +7 -8
  34. package/lib/utils.cjs.js +1 -1
  35. package/lib/utils.es.js +1 -1
  36. package/lib/vue.runtime.esm-bundler.cjs.js +8 -0
  37. package/lib/vue.runtime.esm-bundler.cjs.js.gz +0 -0
  38. package/lib/vue.runtime.esm-bundler.es.js +4588 -0
  39. package/lib/vue.runtime.esm-bundler.es.js.gz +0 -0
  40. package/lib/yxIcon.cjs.js +1 -1
  41. package/lib/yxIcon.es.js +1 -1
  42. package/package.json +1 -1
  43. package/types/api/auth/index.d.ts +1 -0
  44. package/types/theme/index.d.ts +1 -0
  45. package/types/translate/index.d.ts +2 -1
  46. package/types/utils/http/index.d.ts +13 -5
package/lib/yxIcon.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index.cjs7.js");require("element-plus");require("./index.cjs8.js");const e=require("./index.cjs4.js");exports.default=e.index;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index.cjs7.js");require("./index.cjs8.js");const e=require("./index.cjs4.js");require("./vue.runtime.esm-bundler.cjs.js");exports.default=e.index;
package/lib/yxIcon.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./index.es7.js";
2
- import "element-plus";
3
2
  import "./index.es8.js";
4
3
  import { i as p } from "./index.es4.js";
4
+ import "./vue.runtime.esm-bundler.es.js";
5
5
  export {
6
6
  p as default
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yxuse",
3
- "version": "2.0.28",
3
+ "version": "2.0.30",
4
4
  "keywords": [
5
5
  "yx"
6
6
  ],
@@ -15,6 +15,7 @@ export declare const getUserRouteList: () => Promise<any>;
15
15
  export declare const jumpToLogin: () => void;
16
16
  /**@description 自动跳转home */
17
17
  export declare const jumpToHome: () => void;
18
+ export declare const getLoginUrl: () => any;
18
19
  /**获取当前部署的系统前缀 */
19
20
  export declare const getHomeUrl: () => any;
20
21
  /**设置系统配置信息 */
@@ -41,3 +41,4 @@ export declare const findColorByTheme: (cssVarName: string, color: string) => st
41
41
  * @description:注册当前系统私有css变量
42
42
  * @param systemName 系统名称
43
43
  */
44
+ export declare const installCssVarInSystemTheme: (cssVar?: any, className?: string) => void;
@@ -1,6 +1,7 @@
1
- export declare const initTranslate: ({ to, systemKey }: {
1
+ export declare const initTranslate: ({ to, systemKey, translateApiUrl }: {
2
2
  to: any;
3
3
  systemKey: any;
4
+ translateApiUrl: any;
4
5
  }) => Promise<void>;
5
6
  export declare const changeLang: (to: any) => Promise<void>;
6
7
  export declare const getLang: () => Promise<any>;
@@ -1,7 +1,15 @@
1
1
  import type { AxiosInstance, AxiosRequestConfig } from "axios";
2
+ interface CustomAxiosRequestConfig extends AxiosRequestConfig {
3
+ /** 自定义响应处理 */
4
+ customResHandler?: (res: any) => void;
5
+ }
2
6
  declare class YxHttp {
3
7
  service: AxiosInstance;
4
- constructor(config: AxiosRequestConfig);
8
+ /** 自定义响应处理map */
9
+ customResMap: {
10
+ [key: string]: Function;
11
+ };
12
+ constructor(config: CustomAxiosRequestConfig);
5
13
  private setupInterceptors;
6
14
  private handleOverdueResponse;
7
15
  private handleErrorResponse;
@@ -12,7 +20,7 @@ declare class YxHttp {
12
20
  * @param options : AxiosRequestConfig
13
21
  * @description get 请求
14
22
  */
15
- get<T = any>(url: string, params?: object, options?: AxiosRequestConfig): Promise<T>;
23
+ get<T = any>(url: string, params?: object, options?: CustomAxiosRequestConfig): Promise<T>;
16
24
  /**
17
25
  *
18
26
  * @param url
@@ -20,21 +28,21 @@ declare class YxHttp {
20
28
  * @param options : AxiosRequestConfig
21
29
  * @description post 请求
22
30
  */
23
- post<T = any>(url: string, params?: object, options?: AxiosRequestConfig): Promise<T>;
31
+ post<T = any>(url: string, params?: object, options?: CustomAxiosRequestConfig): Promise<T>;
24
32
  /**
25
33
  *
26
34
  * @param url
27
35
  * @param params
28
36
  * @param options : AxiosRequestConfig
29
37
  */
30
- put<T = any>(url: string, params?: object, options?: AxiosRequestConfig): Promise<T>;
38
+ put<T = any>(url: string, params?: object, options?: CustomAxiosRequestConfig): Promise<T>;
31
39
  /**
32
40
  *
33
41
  * @param url
34
42
  * @param params
35
43
  * @param options : AxiosRequestConfig
36
44
  */
37
- delete<T = any>(url: string, params?: any, options?: AxiosRequestConfig): Promise<T>;
45
+ delete<T = any>(url: string, params?: any, options?: CustomAxiosRequestConfig): Promise<T>;
38
46
  }
39
47
  declare const _default: YxHttp;
40
48
  export default _default;