yxuse 3.0.37 → 3.0.38
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/lib/app.cjs.js +1 -0
- package/lib/app.es.js +4 -0
- package/lib/components.cjs.js +1 -1
- package/lib/components.es.js +11 -10
- package/lib/index.cjs.js +1 -1
- package/lib/index.cjs10.js +1 -0
- package/lib/index.cjs2.js +14 -14
- package/lib/index.cjs2.js.gz +0 -0
- package/lib/index.es.js +11 -9
- package/lib/index.es10.js +11 -0
- package/lib/index.es2.js +1061 -1044
- package/lib/index.es2.js.gz +0 -0
- package/lib/theme.cjs.js +1 -1
- package/lib/theme.es.js +8 -5
- package/lib/translate.cjs.js +1 -1
- package/lib/translate.es.js +7 -6
- package/package.json +6 -1
- package/types/app/index.d.ts +1 -0
- package/types/index.d.ts +3 -0
- package/types/theme/index.d.ts +8 -0
- package/types/translate/index.d.ts +1 -1
package/lib/index.es2.js.gz
CHANGED
|
Binary file
|
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.installCssVarInSystemTheme=e.installCssVarInSystemTheme;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");require("./index.cjs10.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.saveCssVar=e.saveCssVar;exports.setCssVar=e.setCssVar;exports.updateTheme=e.updateTheme;
|
package/lib/theme.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as T,
|
|
1
|
+
import { m as T, t as n, p as u, q as g, o as V, r as f, l as d, v, s as y, n as c, u as q } from "./index.es2.js";
|
|
2
2
|
import "./index.es5.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "./index.es7.js";
|
|
@@ -8,14 +8,17 @@ import "element-plus";
|
|
|
8
8
|
import "./index.es8.js";
|
|
9
9
|
import "./index.es6.js";
|
|
10
10
|
import "./index.es9.js";
|
|
11
|
+
import "./index.es10.js";
|
|
11
12
|
export {
|
|
12
13
|
T as changeTheme,
|
|
13
14
|
n as findColorByTheme,
|
|
14
15
|
u as getCurTheme,
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
g as getCurThemeCssVar,
|
|
17
|
+
V as getDefaultThemeUrl,
|
|
17
18
|
f as getGroupColor,
|
|
18
19
|
d as install,
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
v as installCssVarInSystemTheme,
|
|
21
|
+
y as saveCssVar,
|
|
22
|
+
c as setCssVar,
|
|
23
|
+
q as updateTheme
|
|
21
24
|
};
|
package/lib/translate.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");require("./index.cjs3.js");require("./index.cjs7.js");require("element-plus");require("./index.cjs4.js");require("./index.cjs8.js");require("./index.cjs5.js");require("vue");require("./index.cjs6.js");require("./index.cjs9.js");exports.changeLang=e.changeLang;exports.getLang=e.getLang;exports.getWordByYxI18nThesaurus=e.getWordByYxI18nThesaurus;exports.getZhWordByYxI18nThesaurus=e.getZhWordByYxI18nThesaurus;exports.initTranslate=e.initTranslate;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");require("./index.cjs3.js");require("./index.cjs7.js");require("element-plus");require("./index.cjs4.js");require("./index.cjs8.js");require("./index.cjs5.js");require("vue");require("./index.cjs6.js");require("./index.cjs9.js");require("./index.cjs10.js");exports.changeLang=e.changeLang;exports.getLang=e.getLang;exports.getWordByYxI18nThesaurus=e.getWordByYxI18nThesaurus;exports.getZhWordByYxI18nThesaurus=e.getZhWordByYxI18nThesaurus;exports.initTranslate=e.initTranslate;
|
package/lib/translate.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as u, g as x, a as T, b as c, i as d } from "./index.es2.js";
|
|
2
2
|
import "./index.es3.js";
|
|
3
3
|
import "./index.es7.js";
|
|
4
4
|
import "element-plus";
|
|
@@ -8,10 +8,11 @@ import "./index.es5.js";
|
|
|
8
8
|
import "vue";
|
|
9
9
|
import "./index.es6.js";
|
|
10
10
|
import "./index.es9.js";
|
|
11
|
+
import "./index.es10.js";
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
u as changeLang,
|
|
14
|
+
x as getLang,
|
|
15
|
+
T as getWordByYxI18nThesaurus,
|
|
16
|
+
c as getZhWordByYxI18nThesaurus,
|
|
17
|
+
d as initTranslate
|
|
17
18
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yxuse",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.38",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"yx"
|
|
6
6
|
],
|
|
@@ -71,6 +71,11 @@
|
|
|
71
71
|
"require": "./lib/hooks.cls.js",
|
|
72
72
|
"types": "./types/hooks/index.d.ts"
|
|
73
73
|
},
|
|
74
|
+
"./app": {
|
|
75
|
+
"import": "./lib/app.es.js",
|
|
76
|
+
"require": "./lib/app.cls.js",
|
|
77
|
+
"types": "./types/app/index.d.ts"
|
|
78
|
+
},
|
|
74
79
|
"./style": {
|
|
75
80
|
"import": "./lib/style.css",
|
|
76
81
|
"require": "./lib/style.css"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isWebApp: (key?: string) => boolean;
|
package/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * as translate from "./translate";
|
|
|
7
7
|
export * as yxi18n from "./yxi18n";
|
|
8
8
|
export * from "./directives";
|
|
9
9
|
export * from "./hooks";
|
|
10
|
+
export * from "./app";
|
|
10
11
|
export declare const BC: BroadcastChannel;
|
|
11
12
|
export * from "./components/type";
|
|
12
13
|
import * as utils from "./utils";
|
|
@@ -18,9 +19,11 @@ import * as translate from "./translate";
|
|
|
18
19
|
import * as yxi18n from "./yxi18n";
|
|
19
20
|
import * as yxHooks from "./hooks";
|
|
20
21
|
import * as yxIcon from "./yxIcon";
|
|
22
|
+
import * as app from "./app";
|
|
21
23
|
declare const _default: {
|
|
22
24
|
utils: typeof utils;
|
|
23
25
|
api: typeof api;
|
|
26
|
+
app: typeof app;
|
|
24
27
|
theme: typeof theme;
|
|
25
28
|
components: typeof components;
|
|
26
29
|
directives: typeof directives;
|
package/types/theme/index.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ import type { ThemeDTO, YxuseOptions } from "./type.ts";
|
|
|
5
5
|
* @param isJumpLogin :是否在没有token或token过期时自动跳转至登录页
|
|
6
6
|
*/
|
|
7
7
|
export declare const install: (config: YxuseOptions) => Promise<void>;
|
|
8
|
+
export declare const saveCssVar: ({ themeCssVar, themeId }: {
|
|
9
|
+
themeCssVar: any;
|
|
10
|
+
themeId: any;
|
|
11
|
+
}) => void;
|
|
8
12
|
/**
|
|
9
13
|
* @description:修改主题
|
|
10
14
|
* @param theme 主题
|
|
@@ -14,6 +18,10 @@ export declare const changeTheme: (theme: ThemeDTO) => Promise<void>;
|
|
|
14
18
|
* @description:更新主题
|
|
15
19
|
*/
|
|
16
20
|
export declare const updateTheme: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* 注册主题变量
|
|
23
|
+
*/
|
|
24
|
+
export declare const setCssVar: (themeUrl: string) => Promise<any>;
|
|
17
25
|
/**
|
|
18
26
|
* @description:获取默认主题URl
|
|
19
27
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const initTranslate: ({ to, systemKey, translateApiUrl }: {
|
|
2
2
|
to: any;
|
|
3
3
|
systemKey: any;
|
|
4
|
-
translateApiUrl
|
|
4
|
+
translateApiUrl?: any;
|
|
5
5
|
}) => Promise<void>;
|
|
6
6
|
export declare const changeLang: (to: any) => Promise<void>;
|
|
7
7
|
export declare const getLang: () => Promise<any>;
|