yxuse 1.0.19 → 1.0.21
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/index.cjs4.js +1 -123
- package/lib/index.es4.js +108 -108
- package/package.json +1 -1
- package/lib/themeConfig.json +0 -102
package/lib/index.cjs4.js
CHANGED
|
@@ -1,123 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const s = {
|
|
3
|
-
common: {
|
|
4
|
-
color: {
|
|
5
|
-
"main-100": "rgba(80, 165, 122, 1)",
|
|
6
|
-
"main-50": "rgba(80, 165, 122, 0.5)",
|
|
7
|
-
"main-25": "rgba(80, 165, 122, 0.25)",
|
|
8
|
-
"main-15": "rgba(80, 165, 122, 0.15)",
|
|
9
|
-
"main-5": "rgba(80, 165, 122, 0.05)",
|
|
10
|
-
"error-100": "rgba(255, 152, 146, 1)",
|
|
11
|
-
"error-50": "rgba(255, 152, 146, 0.5)",
|
|
12
|
-
"error-25": "rgba(255, 152, 146, 0.25)",
|
|
13
|
-
"error-15": "rgba(255, 152, 146, 0.15)",
|
|
14
|
-
"error-5": "rgba(255, 152, 146, 0.05)",
|
|
15
|
-
"warning-100": "rgba(249, 162, 33, 1)",
|
|
16
|
-
"warning-50": "rgba(249, 162, 33, 0.5)",
|
|
17
|
-
"warning-25": "rgba(249, 162, 33, 0.25)",
|
|
18
|
-
"warning-15": "rgba(249, 162, 33, 0.15)",
|
|
19
|
-
"warning-5": "rgba(249, 162, 33, 0.05)",
|
|
20
|
-
"info-100": "rgba(133, 233, 183, 1)",
|
|
21
|
-
"info-50": "rgba(133, 233, 183, 0.5)",
|
|
22
|
-
"info-25": "rgba(133, 233, 183, 0.25)",
|
|
23
|
-
"info-15": "rgba(133, 233, 183, 0.15)",
|
|
24
|
-
"info-5": "rgba(133, 233, 183, 0.05)",
|
|
25
|
-
"neutral-100": "rgba(85, 221, 221, 1)",
|
|
26
|
-
"neutral-50": "rgba(85, 221, 221, 0.5)",
|
|
27
|
-
"neutral-25": "rgba(85, 221, 221, 0.25)",
|
|
28
|
-
"neutral-15": "rgba(85, 221, 221, 0.15)",
|
|
29
|
-
"neutral-5": "rgba(85, 221, 221, 0.05)"
|
|
30
|
-
},
|
|
31
|
-
background: {
|
|
32
|
-
"error-gradual": "linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)",
|
|
33
|
-
"warning-gradual": "linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)",
|
|
34
|
-
"success-gradual": "linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)"
|
|
35
|
-
},
|
|
36
|
-
button: {
|
|
37
|
-
background: "rgba(103, 186, 145, 0.10)",
|
|
38
|
-
"border-color": "rgba(80, 165, 122, 1)",
|
|
39
|
-
"text-color": "rgba(80, 165, 122, 1)",
|
|
40
|
-
"active-background-color": "rgba(80, 165, 122, 1)",
|
|
41
|
-
"active-border-color": "rgba(154, 209, 162, 1)",
|
|
42
|
-
"active-text-color": "#fff"
|
|
43
|
-
},
|
|
44
|
-
checkbox: {
|
|
45
|
-
background: "rgba(216, 233, 219, 1)",
|
|
46
|
-
"icon-color": "rgba(80, 165, 122, 0)",
|
|
47
|
-
"border-color": "rgba(154, 209, 162, 1)",
|
|
48
|
-
"text-color": "#9AD1A2",
|
|
49
|
-
"checked-text-color": "#1D4B34",
|
|
50
|
-
"checked-background": "rgba(216, 233, 219, 1)",
|
|
51
|
-
"checked-icon-color": "rgba(80, 165, 122, 1)",
|
|
52
|
-
"checked-border-color": "rgba(154, 209, 162, 1)"
|
|
53
|
-
},
|
|
54
|
-
input: {
|
|
55
|
-
background: "rgba(237, 246, 239, 1)",
|
|
56
|
-
"border-color": "rgba(80, 165, 122, 1)",
|
|
57
|
-
color: "rgba(29, 75, 52, 1)",
|
|
58
|
-
"placeholder-color": "rgba(80, 165, 122, 1)",
|
|
59
|
-
"hover-background": "rgba(237, 246, 239, 0.30)",
|
|
60
|
-
"hover-border-color": "rgba(80, 165, 122, 1)",
|
|
61
|
-
"hover-color": "rgba(80, 165, 122, 1)",
|
|
62
|
-
"active-background": "rgba(237, 246, 239, 0.30)",
|
|
63
|
-
"active-border-color": "rgba(80, 165, 122, 1)",
|
|
64
|
-
"active-color": "rgba(80, 165, 122, 1)",
|
|
65
|
-
"disabled-background": "rgba(237, 246, 239, 1)",
|
|
66
|
-
"disabled-border-color": "rgba(237, 246, 239, 1)",
|
|
67
|
-
"disabled-color": "rgba(83, 83, 83, 1)"
|
|
68
|
-
},
|
|
69
|
-
select: {
|
|
70
|
-
"dropdown-background": "rgba(237, 246, 239, 1)",
|
|
71
|
-
"dropdown-border-color": "rgba(80, 165, 122, 1)",
|
|
72
|
-
"dropdown-item-color": "rgba(80, 165, 122, 1)",
|
|
73
|
-
"dropdown-item-hover-background": "rgba(178, 220, 198, 1)",
|
|
74
|
-
"dropdown-item-hover-color": "rgba(29, 75, 52, 1)",
|
|
75
|
-
"dropdown-item-selected-background": "rgba(178, 220, 198, 1)",
|
|
76
|
-
"dropdown-item-selected-color": "rgba(29, 75, 52, 1)"
|
|
77
|
-
},
|
|
78
|
-
tree: {},
|
|
79
|
-
layout: {},
|
|
80
|
-
table: {},
|
|
81
|
-
chart: {},
|
|
82
|
-
message: {},
|
|
83
|
-
text: { main: "#50A57A", deep: "#1D4B34", light: "rgba(80, 165, 122, 0.50)", paler: "#637B6B", warning: "#F8B85A" }
|
|
84
|
-
},
|
|
85
|
-
cloud: {},
|
|
86
|
-
"station-control-center": {}
|
|
87
|
-
},
|
|
88
|
-
m = { common: { "--test1": "#fff", "--test2": "#ccc" }, cloud: {}, "station-control-center": {} },
|
|
89
|
-
b = { green: s, blue: m },
|
|
90
|
-
o = "yxTheme",
|
|
91
|
-
u = "green",
|
|
92
|
-
c = () => {
|
|
93
|
-
const r = e();
|
|
94
|
-
localStorage.getItem(o) || localStorage.setItem(o, r);
|
|
95
|
-
const a = document.documentElement,
|
|
96
|
-
g = b[r].common;
|
|
97
|
-
Object.keys(g).forEach(t => {
|
|
98
|
-
Object.keys(g[t]).forEach(n => {
|
|
99
|
-
const i = `--${t}-${n}`;
|
|
100
|
-
a.style.setProperty(i, g[t][n]);
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
},
|
|
104
|
-
l = r => {
|
|
105
|
-
localStorage.setItem(o, r), c();
|
|
106
|
-
},
|
|
107
|
-
e = () => localStorage.getItem(o) || u,
|
|
108
|
-
d = r => {
|
|
109
|
-
const a = e();
|
|
110
|
-
return b[a][r] || {};
|
|
111
|
-
},
|
|
112
|
-
h = Object.freeze(
|
|
113
|
-
Object.defineProperty(
|
|
114
|
-
{ __proto__: null, changeTheme: l, getCurTheme: e, getSystemThemeConfig: d, install: c },
|
|
115
|
-
Symbol.toStringTag,
|
|
116
|
-
{ value: "Module" }
|
|
117
|
-
)
|
|
118
|
-
);
|
|
119
|
-
exports.changeTheme = l;
|
|
120
|
-
exports.getCurTheme = e;
|
|
121
|
-
exports.getSystemThemeConfig = d;
|
|
122
|
-
exports.install = c;
|
|
123
|
-
exports.theme = h;
|
|
1
|
+
"use strict";const b={green:{common:{color:{"main-100":"rgba(80, 165, 122, 1)","main-50":"rgba(80, 165, 122, 0.5)","main-25":"rgba(80, 165, 122, 0.25)","main-15":"rgba(80, 165, 122, 0.15)","main-5":"rgba(80, 165, 122, 0.05)","error-100":"rgba(255, 152, 146, 1)","error-50":"rgba(255, 152, 146, 0.5)","error-25":"rgba(255, 152, 146, 0.25)","error-15":"rgba(255, 152, 146, 0.15)","error-5":"rgba(255, 152, 146, 0.05)","warning-100":"rgba(249, 162, 33, 1)","warning-50":"rgba(249, 162, 33, 0.5)","warning-25":"rgba(249, 162, 33, 0.25)","warning-15":"rgba(249, 162, 33, 0.15)","warning-5":"rgba(249, 162, 33, 0.05)","info-100":"rgba(133, 233, 183, 1)","info-50":"rgba(133, 233, 183, 0.5)","info-25":"rgba(133, 233, 183, 0.25)","info-15":"rgba(133, 233, 183, 0.15)","info-5":"rgba(133, 233, 183, 0.05)","neutral-100":"rgba(85, 221, 221, 1)","neutral-50":"rgba(85, 221, 221, 0.5)","neutral-25":"rgba(85, 221, 221, 0.25)","neutral-15":"rgba(85, 221, 221, 0.15)","neutral-5":"rgba(85, 221, 221, 0.05)"},background:{"error-gradual":"linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)","warning-gradual":"linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)","success-gradual":"linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)"},button:{background:"rgba(103, 186, 145, 0.10)","border-color":"rgba(80, 165, 122, 1)","text-color":"rgba(80, 165, 122, 1)","active-background-color":"rgba(80, 165, 122, 1)","active-border-color":"rgba(154, 209, 162, 1)","active-text-color":"#fff"},checkbox:{background:"rgba(216, 233, 219, 1)","icon-color":"rgba(80, 165, 122, 0)","border-color":"rgba(154, 209, 162, 1)","text-color":"#9AD1A2","checked-text-color":"#1D4B34","checked-background":"rgba(216, 233, 219, 1)","checked-icon-color":"rgba(80, 165, 122, 1)","checked-border-color":"rgba(154, 209, 162, 1)"},input:{background:"rgba(237, 246, 239, 1)","border-color":"rgba(80, 165, 122, 1)",color:"rgba(29, 75, 52, 1)","placeholder-color":"rgba(80, 165, 122, 1)","hover-background":"rgba(237, 246, 239, 0.30)","hover-border-color":"rgba(80, 165, 122, 1)","hover-color":"rgba(80, 165, 122, 1)","active-background":"rgba(237, 246, 239, 0.30)","active-border-color":"rgba(80, 165, 122, 1)","active-color":"rgba(80, 165, 122, 1)","disabled-background":"rgba(237, 246, 239, 1)","disabled-border-color":"rgba(237, 246, 239, 1)","disabled-color":"rgba(83, 83, 83, 1)"},select:{"dropdown-background":"rgba(237, 246, 239, 1)","dropdown-border-color":"rgba(80, 165, 122, 1)","dropdown-item-color":"rgba(80, 165, 122, 1)","dropdown-item-hover-background":"rgba(178, 220, 198, 1)","dropdown-item-hover-color":"rgba(29, 75, 52, 1)","dropdown-item-selected-background":"rgba(178, 220, 198, 1)","dropdown-item-selected-color":"rgba(29, 75, 52, 1)"},tree:{},layout:{},table:{},chart:{},message:{},text:{main:"#50A57A",deep:"#1D4B34",light:"rgba(80, 165, 122, 0.50)",paler:"#637B6B",warning:"#F8B85A"}},cloud:{},"station-control-center":{}},blue:{common:{"--test1":"#fff","--test2":"#ccc"},cloud:{},"station-control-center":{}}},o="yxTheme",m="green",c=()=>{const r=e();localStorage.getItem(o)||localStorage.setItem(o,r);const a=document.documentElement,g=b[r].common;Object.keys(g).forEach(t=>{Object.keys(g[t]).forEach(n=>{const i=`--${t}-${n}`;a.style.setProperty(i,g[t][n])})})},l=r=>{localStorage.setItem(o,r),c()},e=()=>localStorage.getItem(o)||m,d=r=>{const a=e();return b[a][r]||{}},s=Object.freeze(Object.defineProperty({__proto__:null,changeTheme:l,getCurTheme:e,getSystemThemeConfig:d,install:c},Symbol.toStringTag,{value:"Module"}));exports.changeTheme=l;exports.getCurTheme=e;exports.getSystemThemeConfig=d;exports.install=c;exports.theme=s;
|
package/lib/index.es4.js
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
const n = {
|
|
2
|
+
green: {
|
|
3
|
+
common: {
|
|
4
|
+
color: {
|
|
5
|
+
"main-100": "rgba(80, 165, 122, 1)",
|
|
6
|
+
"main-50": "rgba(80, 165, 122, 0.5)",
|
|
7
|
+
"main-25": "rgba(80, 165, 122, 0.25)",
|
|
8
|
+
"main-15": "rgba(80, 165, 122, 0.15)",
|
|
9
|
+
"main-5": "rgba(80, 165, 122, 0.05)",
|
|
10
|
+
"error-100": "rgba(255, 152, 146, 1)",
|
|
11
|
+
"error-50": "rgba(255, 152, 146, 0.5)",
|
|
12
|
+
"error-25": "rgba(255, 152, 146, 0.25)",
|
|
13
|
+
"error-15": "rgba(255, 152, 146, 0.15)",
|
|
14
|
+
"error-5": "rgba(255, 152, 146, 0.05)",
|
|
15
|
+
"warning-100": "rgba(249, 162, 33, 1)",
|
|
16
|
+
"warning-50": "rgba(249, 162, 33, 0.5)",
|
|
17
|
+
"warning-25": "rgba(249, 162, 33, 0.25)",
|
|
18
|
+
"warning-15": "rgba(249, 162, 33, 0.15)",
|
|
19
|
+
"warning-5": "rgba(249, 162, 33, 0.05)",
|
|
20
|
+
"info-100": "rgba(133, 233, 183, 1)",
|
|
21
|
+
"info-50": "rgba(133, 233, 183, 0.5)",
|
|
22
|
+
"info-25": "rgba(133, 233, 183, 0.25)",
|
|
23
|
+
"info-15": "rgba(133, 233, 183, 0.15)",
|
|
24
|
+
"info-5": "rgba(133, 233, 183, 0.05)",
|
|
25
|
+
"neutral-100": "rgba(85, 221, 221, 1)",
|
|
26
|
+
"neutral-50": "rgba(85, 221, 221, 0.5)",
|
|
27
|
+
"neutral-25": "rgba(85, 221, 221, 0.25)",
|
|
28
|
+
"neutral-15": "rgba(85, 221, 221, 0.15)",
|
|
29
|
+
"neutral-5": "rgba(85, 221, 221, 0.05)"
|
|
30
|
+
},
|
|
31
|
+
background: {
|
|
32
|
+
"error-gradual": "linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)",
|
|
33
|
+
"warning-gradual": "linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)",
|
|
34
|
+
"success-gradual": "linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)"
|
|
35
|
+
},
|
|
36
|
+
button: {
|
|
37
|
+
background: "rgba(103, 186, 145, 0.10)",
|
|
38
|
+
"border-color": "rgba(80, 165, 122, 1)",
|
|
39
|
+
"text-color": "rgba(80, 165, 122, 1)",
|
|
40
|
+
"active-background-color": "rgba(80, 165, 122, 1)",
|
|
41
|
+
"active-border-color": "rgba(154, 209, 162, 1)",
|
|
42
|
+
"active-text-color": "#fff"
|
|
43
|
+
},
|
|
44
|
+
checkbox: {
|
|
45
|
+
background: "rgba(216, 233, 219, 1)",
|
|
46
|
+
"icon-color": "rgba(80, 165, 122, 0)",
|
|
47
|
+
"border-color": "rgba(154, 209, 162, 1)",
|
|
48
|
+
"text-color": "#9AD1A2",
|
|
49
|
+
"checked-text-color": "#1D4B34",
|
|
50
|
+
"checked-background": "rgba(216, 233, 219, 1)",
|
|
51
|
+
"checked-icon-color": "rgba(80, 165, 122, 1)",
|
|
52
|
+
"checked-border-color": "rgba(154, 209, 162, 1)"
|
|
53
|
+
},
|
|
54
|
+
input: {
|
|
55
|
+
background: "rgba(237, 246, 239, 1)",
|
|
56
|
+
"border-color": "rgba(80, 165, 122, 1)",
|
|
57
|
+
color: "rgba(29, 75, 52, 1)",
|
|
58
|
+
"placeholder-color": "rgba(80, 165, 122, 1)",
|
|
59
|
+
"hover-background": "rgba(237, 246, 239, 0.30)",
|
|
60
|
+
"hover-border-color": "rgba(80, 165, 122, 1)",
|
|
61
|
+
"hover-color": "rgba(80, 165, 122, 1)",
|
|
62
|
+
"active-background": "rgba(237, 246, 239, 0.30)",
|
|
63
|
+
"active-border-color": "rgba(80, 165, 122, 1)",
|
|
64
|
+
"active-color": "rgba(80, 165, 122, 1)",
|
|
65
|
+
"disabled-background": "rgba(237, 246, 239, 1)",
|
|
66
|
+
"disabled-border-color": "rgba(237, 246, 239, 1)",
|
|
67
|
+
"disabled-color": "rgba(83, 83, 83, 1)"
|
|
68
|
+
},
|
|
69
|
+
select: {
|
|
70
|
+
"dropdown-background": "rgba(237, 246, 239, 1)",
|
|
71
|
+
"dropdown-border-color": "rgba(80, 165, 122, 1)",
|
|
72
|
+
"dropdown-item-color": "rgba(80, 165, 122, 1)",
|
|
73
|
+
"dropdown-item-hover-background": "rgba(178, 220, 198, 1)",
|
|
74
|
+
"dropdown-item-hover-color": "rgba(29, 75, 52, 1)",
|
|
75
|
+
"dropdown-item-selected-background": "rgba(178, 220, 198, 1)",
|
|
76
|
+
"dropdown-item-selected-color": "rgba(29, 75, 52, 1)"
|
|
77
|
+
},
|
|
78
|
+
tree: {},
|
|
79
|
+
layout: {},
|
|
80
|
+
table: {},
|
|
81
|
+
chart: {},
|
|
82
|
+
message: {},
|
|
83
|
+
text: {
|
|
84
|
+
main: "#50A57A",
|
|
85
|
+
deep: "#1D4B34",
|
|
86
|
+
light: "rgba(80, 165, 122, 0.50)",
|
|
87
|
+
paler: "#637B6B",
|
|
88
|
+
warning: "#F8B85A"
|
|
89
|
+
}
|
|
29
90
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"warning-gradual": "linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)",
|
|
33
|
-
"success-gradual": "linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)"
|
|
34
|
-
},
|
|
35
|
-
button: {
|
|
36
|
-
background: "rgba(103, 186, 145, 0.10)",
|
|
37
|
-
"border-color": "rgba(80, 165, 122, 1)",
|
|
38
|
-
"text-color": "rgba(80, 165, 122, 1)",
|
|
39
|
-
"active-background-color": "rgba(80, 165, 122, 1)",
|
|
40
|
-
"active-border-color": "rgba(154, 209, 162, 1)",
|
|
41
|
-
"active-text-color": "#fff"
|
|
42
|
-
},
|
|
43
|
-
checkbox: {
|
|
44
|
-
background: "rgba(216, 233, 219, 1)",
|
|
45
|
-
"icon-color": "rgba(80, 165, 122, 0)",
|
|
46
|
-
"border-color": "rgba(154, 209, 162, 1)",
|
|
47
|
-
"text-color": "#9AD1A2",
|
|
48
|
-
"checked-text-color": "#1D4B34",
|
|
49
|
-
"checked-background": "rgba(216, 233, 219, 1)",
|
|
50
|
-
"checked-icon-color": "rgba(80, 165, 122, 1)",
|
|
51
|
-
"checked-border-color": "rgba(154, 209, 162, 1)"
|
|
52
|
-
},
|
|
53
|
-
input: {
|
|
54
|
-
background: "rgba(237, 246, 239, 1)",
|
|
55
|
-
"border-color": "rgba(80, 165, 122, 1)",
|
|
56
|
-
color: "rgba(29, 75, 52, 1)",
|
|
57
|
-
"placeholder-color": "rgba(80, 165, 122, 1)",
|
|
58
|
-
"hover-background": "rgba(237, 246, 239, 0.30)",
|
|
59
|
-
"hover-border-color": "rgba(80, 165, 122, 1)",
|
|
60
|
-
"hover-color": "rgba(80, 165, 122, 1)",
|
|
61
|
-
"active-background": "rgba(237, 246, 239, 0.30)",
|
|
62
|
-
"active-border-color": "rgba(80, 165, 122, 1)",
|
|
63
|
-
"active-color": "rgba(80, 165, 122, 1)",
|
|
64
|
-
"disabled-background": "rgba(237, 246, 239, 1)",
|
|
65
|
-
"disabled-border-color": "rgba(237, 246, 239, 1)",
|
|
66
|
-
"disabled-color": "rgba(83, 83, 83, 1)"
|
|
67
|
-
},
|
|
68
|
-
select: {
|
|
69
|
-
"dropdown-background": "rgba(237, 246, 239, 1)",
|
|
70
|
-
"dropdown-border-color": "rgba(80, 165, 122, 1)",
|
|
71
|
-
"dropdown-item-color": "rgba(80, 165, 122, 1)",
|
|
72
|
-
"dropdown-item-hover-background": "rgba(178, 220, 198, 1)",
|
|
73
|
-
"dropdown-item-hover-color": "rgba(29, 75, 52, 1)",
|
|
74
|
-
"dropdown-item-selected-background": "rgba(178, 220, 198, 1)",
|
|
75
|
-
"dropdown-item-selected-color": "rgba(29, 75, 52, 1)"
|
|
76
|
-
},
|
|
77
|
-
tree: {},
|
|
78
|
-
layout: {},
|
|
79
|
-
table: {},
|
|
80
|
-
chart: {},
|
|
81
|
-
message: {},
|
|
82
|
-
text: {
|
|
83
|
-
main: "#50A57A",
|
|
84
|
-
deep: "#1D4B34",
|
|
85
|
-
light: "rgba(80, 165, 122, 0.50)",
|
|
86
|
-
paler: "#637B6B",
|
|
87
|
-
warning: "#F8B85A"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
cloud: {},
|
|
91
|
-
"station-control-center": {}
|
|
92
|
-
}, i = {
|
|
93
|
-
common: {
|
|
94
|
-
"--test1": "#fff",
|
|
95
|
-
"--test2": "#ccc"
|
|
91
|
+
cloud: {},
|
|
92
|
+
"station-control-center": {}
|
|
96
93
|
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
},
|
|
94
|
+
blue: {
|
|
95
|
+
common: {
|
|
96
|
+
"--test1": "#fff",
|
|
97
|
+
"--test2": "#ccc"
|
|
98
|
+
},
|
|
99
|
+
cloud: {},
|
|
100
|
+
"station-control-center": {}
|
|
101
|
+
}
|
|
102
|
+
}, o = "yxTheme", d = "green", b = () => {
|
|
103
103
|
const r = c();
|
|
104
104
|
localStorage.getItem(o) || localStorage.setItem(o, r);
|
|
105
105
|
const e = document.documentElement, a = n[r].common;
|
|
@@ -109,22 +109,22 @@ const d = {
|
|
|
109
109
|
e.style.setProperty(l, a[g][t]);
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
|
-
},
|
|
112
|
+
}, i = (r) => {
|
|
113
113
|
localStorage.setItem(o, r), b();
|
|
114
|
-
}, c = () => localStorage.getItem(o) ||
|
|
114
|
+
}, c = () => localStorage.getItem(o) || d, s = (r) => {
|
|
115
115
|
const e = c();
|
|
116
116
|
return n[e][r] || {};
|
|
117
|
-
},
|
|
117
|
+
}, u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
118
118
|
__proto__: null,
|
|
119
|
-
changeTheme:
|
|
119
|
+
changeTheme: i,
|
|
120
120
|
getCurTheme: c,
|
|
121
|
-
getSystemThemeConfig:
|
|
121
|
+
getSystemThemeConfig: s,
|
|
122
122
|
install: b
|
|
123
123
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
124
124
|
export {
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
s as a,
|
|
126
|
+
i as c,
|
|
127
127
|
c as g,
|
|
128
128
|
b as i,
|
|
129
|
-
|
|
129
|
+
u as t
|
|
130
130
|
};
|
package/package.json
CHANGED
package/lib/themeConfig.json
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"green": {
|
|
3
|
-
"common": {
|
|
4
|
-
"color": {
|
|
5
|
-
"main-100": "rgba(80, 165, 122, 1)",
|
|
6
|
-
"main-50": "rgba(80, 165, 122, 0.5)",
|
|
7
|
-
"main-25": "rgba(80, 165, 122, 0.25)",
|
|
8
|
-
"main-15": "rgba(80, 165, 122, 0.15)",
|
|
9
|
-
"main-5": "rgba(80, 165, 122, 0.05)",
|
|
10
|
-
"error-100": "rgba(255, 152, 146, 1)",
|
|
11
|
-
"error-50": "rgba(255, 152, 146, 0.5)",
|
|
12
|
-
"error-25": "rgba(255, 152, 146, 0.25)",
|
|
13
|
-
"error-15": "rgba(255, 152, 146, 0.15)",
|
|
14
|
-
"error-5": "rgba(255, 152, 146, 0.05)",
|
|
15
|
-
"warning-100": "rgba(249, 162, 33, 1)",
|
|
16
|
-
"warning-50": "rgba(249, 162, 33, 0.5)",
|
|
17
|
-
"warning-25": "rgba(249, 162, 33, 0.25)",
|
|
18
|
-
"warning-15": "rgba(249, 162, 33, 0.15)",
|
|
19
|
-
"warning-5": "rgba(249, 162, 33, 0.05)",
|
|
20
|
-
"info-100": "rgba(133, 233, 183, 1)",
|
|
21
|
-
"info-50": "rgba(133, 233, 183, 0.5)",
|
|
22
|
-
"info-25": "rgba(133, 233, 183, 0.25)",
|
|
23
|
-
"info-15": "rgba(133, 233, 183, 0.15)",
|
|
24
|
-
"info-5": "rgba(133, 233, 183, 0.05)",
|
|
25
|
-
"neutral-100": "rgba(85, 221, 221, 1)",
|
|
26
|
-
"neutral-50": "rgba(85, 221, 221, 0.5)",
|
|
27
|
-
"neutral-25": "rgba(85, 221, 221, 0.25)",
|
|
28
|
-
"neutral-15": "rgba(85, 221, 221, 0.15)",
|
|
29
|
-
"neutral-5": "rgba(85, 221, 221, 0.05)"
|
|
30
|
-
},
|
|
31
|
-
"background": {
|
|
32
|
-
"error-gradual": "linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)",
|
|
33
|
-
"warning-gradual": "linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)",
|
|
34
|
-
"success-gradual": "linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)"
|
|
35
|
-
},
|
|
36
|
-
"button": {
|
|
37
|
-
"background": "rgba(103, 186, 145, 0.10)",
|
|
38
|
-
"border-color": "rgba(80, 165, 122, 1)",
|
|
39
|
-
"text-color": "rgba(80, 165, 122, 1)",
|
|
40
|
-
"active-background-color": "rgba(80, 165, 122, 1)",
|
|
41
|
-
"active-border-color": "rgba(154, 209, 162, 1)",
|
|
42
|
-
"active-text-color": "#fff"
|
|
43
|
-
},
|
|
44
|
-
"checkbox": {
|
|
45
|
-
"background": "rgba(216, 233, 219, 1)",
|
|
46
|
-
"icon-color": "rgba(80, 165, 122, 0)",
|
|
47
|
-
"border-color": "rgba(154, 209, 162, 1)",
|
|
48
|
-
"text-color": "#9AD1A2",
|
|
49
|
-
"checked-text-color": "#1D4B34",
|
|
50
|
-
"checked-background": "rgba(216, 233, 219, 1)",
|
|
51
|
-
"checked-icon-color": "rgba(80, 165, 122, 1)",
|
|
52
|
-
"checked-border-color": "rgba(154, 209, 162, 1)"
|
|
53
|
-
},
|
|
54
|
-
"input": {
|
|
55
|
-
"background": "rgba(237, 246, 239, 1)",
|
|
56
|
-
"border-color": "rgba(80, 165, 122, 1)",
|
|
57
|
-
"color": "rgba(29, 75, 52, 1)",
|
|
58
|
-
"placeholder-color": "rgba(80, 165, 122, 1)",
|
|
59
|
-
"hover-background": "rgba(237, 246, 239, 0.30)",
|
|
60
|
-
"hover-border-color": "rgba(80, 165, 122, 1)",
|
|
61
|
-
"hover-color": "rgba(80, 165, 122, 1)",
|
|
62
|
-
"active-background": "rgba(237, 246, 239, 0.30)",
|
|
63
|
-
"active-border-color": "rgba(80, 165, 122, 1)",
|
|
64
|
-
"active-color": "rgba(80, 165, 122, 1)",
|
|
65
|
-
"disabled-background": "rgba(237, 246, 239, 1)",
|
|
66
|
-
"disabled-border-color": "rgba(237, 246, 239, 1)",
|
|
67
|
-
"disabled-color": "rgba(83, 83, 83, 1)"
|
|
68
|
-
},
|
|
69
|
-
"select": {
|
|
70
|
-
"dropdown-background": "rgba(237, 246, 239, 1)",
|
|
71
|
-
"dropdown-border-color": "rgba(80, 165, 122, 1)",
|
|
72
|
-
"dropdown-item-color": "rgba(80, 165, 122, 1)",
|
|
73
|
-
"dropdown-item-hover-background": "rgba(178, 220, 198, 1)",
|
|
74
|
-
"dropdown-item-hover-color": "rgba(29, 75, 52, 1)",
|
|
75
|
-
"dropdown-item-selected-background": "rgba(178, 220, 198, 1)",
|
|
76
|
-
"dropdown-item-selected-color": "rgba(29, 75, 52, 1)"
|
|
77
|
-
},
|
|
78
|
-
"tree": {},
|
|
79
|
-
"layout": {},
|
|
80
|
-
"table": {},
|
|
81
|
-
"chart": {},
|
|
82
|
-
"message": {},
|
|
83
|
-
"text": {
|
|
84
|
-
"main": "#50A57A",
|
|
85
|
-
"deep": "#1D4B34",
|
|
86
|
-
"light": "rgba(80, 165, 122, 0.50)",
|
|
87
|
-
"paler": "#637B6B",
|
|
88
|
-
"warning": "#F8B85A"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"cloud": {},
|
|
92
|
-
"station-control-center": {}
|
|
93
|
-
},
|
|
94
|
-
"blue": {
|
|
95
|
-
"common": {
|
|
96
|
-
"--test1": "#fff",
|
|
97
|
-
"--test2": "#ccc"
|
|
98
|
-
},
|
|
99
|
-
"cloud": {},
|
|
100
|
-
"station-control-center": {}
|
|
101
|
-
}
|
|
102
|
-
}
|