yxuse 3.0.33 → 3.0.37

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.
Binary file
package/lib/index.es8.js CHANGED
@@ -1,5 +1,11 @@
1
1
  import { h as o, U as s } from "./index.es7.js";
2
- const r = (e, t) => o.post(`${s.ttc.INTEGRATED_BASE_URL}/file/upload`, e, t), i = () => o.get(`${s.ttc.INTEGRATED_BASE_URL}/resource/group/list`, {}, { headers: { noLoading: !0 } }), a = (e, t) => o.get(`${s.ttc.INTEGRATED_BASE_URL}/resource/file/list/${t}/${e}`, {}, { headers: { noLoading: !0 } }), c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2
+ const r = (e, t) => o.post(`${s.ttc.INTEGRATED_BASE_URL}/file/upload`, e, t), i = () => o.get(
3
+ `${s.ttc.INTEGRATED_BASE_URL}/resource/group/list`,
4
+ {},
5
+ {
6
+ headers: { noLoading: !0 }
7
+ }
8
+ ), a = (e, t) => o.get(`${s.ttc.INTEGRATED_BASE_URL}/resource/file/list/${t}/${e}`, {}, { headers: { noLoading: !0 } }), c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
9
  __proto__: null,
4
10
  getGroupListApi: i,
5
11
  getResourceListApi: a,
package/lib/theme.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");require("./index.cjs5.js");require("vue");require("./index.cjs7.js");require("./index.cjs3.js");require("./index.cjs4.js");require("element-plus");require("./index.cjs8.js");require("./index.cjs6.js");require("./index.cjs9.js");exports.changeTheme=e.changeTheme;exports.findColorByTheme=e.findColorByTheme;exports.getCurTheme=e.getCurTheme;exports.getCurThemeCssVar=e.getCurThemeCssVar;exports.getDefaultThemeUrl=e.getDefaultThemeUrl;exports.getGroupColor=e.getGroupColor;exports.install=e.install;exports.updateTheme=e.updateTheme;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");require("./index.cjs5.js");require("vue");require("./index.cjs7.js");require("./index.cjs3.js");require("./index.cjs4.js");require("element-plus");require("./index.cjs8.js");require("./index.cjs6.js");require("./index.cjs9.js");exports.changeTheme=e.changeTheme;exports.findColorByTheme=e.findColorByTheme;exports.getCurTheme=e.getCurTheme;exports.getCurThemeCssVar=e.getCurThemeCssVar;exports.getDefaultThemeUrl=e.getDefaultThemeUrl;exports.getGroupColor=e.getGroupColor;exports.install=e.install;exports.installCssVarInSystemTheme=e.installCssVarInSystemTheme;exports.updateTheme=e.updateTheme;
package/lib/theme.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { m as u, r as T, o as g, p as C, n, q as f, l as d, u as c } from "./index.es2.js";
1
+ import { m as T, r as n, o as u, p as C, n as g, q as f, l as d, s as y, u as V } from "./index.es2.js";
2
2
  import "./index.es5.js";
3
3
  import "vue";
4
4
  import "./index.es7.js";
@@ -9,12 +9,13 @@ import "./index.es8.js";
9
9
  import "./index.es6.js";
10
10
  import "./index.es9.js";
11
11
  export {
12
- u as changeTheme,
13
- T as findColorByTheme,
14
- g as getCurTheme,
12
+ T as changeTheme,
13
+ n as findColorByTheme,
14
+ u as getCurTheme,
15
15
  C as getCurThemeCssVar,
16
- n as getDefaultThemeUrl,
16
+ g as getDefaultThemeUrl,
17
17
  f as getGroupColor,
18
18
  d as install,
19
- c as updateTheme
19
+ y as installCssVarInSystemTheme,
20
+ V as updateTheme
20
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yxuse",
3
- "version": "3.0.33",
3
+ "version": "3.0.37",
4
4
  "keywords": [
5
5
  "yx"
6
6
  ],
@@ -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,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;