yxuse 3.0.10 → 3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yxuse",
3
- "version": "3.0.10",
3
+ "version": "3.0.11",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "yx"
@@ -115,7 +115,6 @@
115
115
  "rollup-plugin-visualizer": "^5.9.2",
116
116
  "sass": "^1.58.3",
117
117
  "stylelint": "^15.6.0",
118
- "stylelint-config-html": "^1.1.0",
119
118
  "stylelint-config-prettier": "^9.0.3",
120
119
  "stylelint-config-recess-order": "^4.0.0",
121
120
  "stylelint-config-recommended-scss": "^11.0.0",
@@ -7,4 +7,6 @@ export declare const defaultConfig: {
7
7
  loginApiUrl: string;
8
8
  translateApiUrl: string;
9
9
  environment: string;
10
+ isRenderToolbar: boolean;
11
+ isRenderIssue: boolean;
10
12
  };
@@ -32,11 +32,11 @@ export declare const getCurThemeCssVar: () => any;
32
32
  */
33
33
  export declare const getGroupColor: (groupName: string) => object;
34
34
  /**
35
- * @description:判断当前色值是否在当前主题中
36
- * @param key 色值变量
35
+ * @description:判断当前css变量的色值是否在所有主题中
36
+ * @param cssVarName 色值变量
37
37
  * @param color 名称
38
38
  */
39
- export declare const findColorByTheme: (key: string, color: string) => boolean;
39
+ export declare const findColorByTheme: (cssVarName: string, color: string) => string | null;
40
40
  /**
41
41
  * @description:注册当前系统私有css变量
42
42
  * @param systemName 系统名称
@@ -6,7 +6,7 @@ export interface ThemeDTO {
6
6
  }
7
7
  export interface YxuseOptions {
8
8
  /** 是否渲染悬浮球*/
9
- isRenderToolbar?: boolean;
9
+ isRenderToolbar: boolean;
10
10
  /** 是否加载工单*/
11
11
  isRenderIssue?: boolean;
12
12
  /** 是否加载语言切换*/
@@ -18,7 +18,7 @@ export interface YxuseOptions {
18
18
  /** 翻译Api地址,非运管系统项目使用*/
19
19
  translateApiUrl?: string;
20
20
  /** 主题列表接口,非运管系统项目使用*/
21
- themeApiUrl: string;
21
+ themeApiUrl?: string;
22
22
  /** 首页地址*/
23
23
  homeUrl?: string;
24
24
  /** 系统语言*/