yxuse 1.0.22 → 1.0.24
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 -1
- package/lib/index.es4.js +167 -141
- package/lib/theme.cjs.js +8 -1
- package/package.json +1 -1
package/lib/index.cjs4.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t={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%)",page:"rgba(241, 243, 242, 1)","main-content-special":"rgba(103, 186, 145, 0.10)",section:"rgba(252, 255, 253, 1)"},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:{"nav-background":"#fff","view-background":"#F1F3F2"},table:{"header-background":"#67BA91","header-text-color":"#fff","row-background":"#D1EFDA","row-odd-background":"#EAF9ED","row-border-bottom-color":"#9AD1A2","row-text-color":"#1D4B34","row-error-background":"linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)","row-warning-background":"linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)","row-hover-background":"#b2dcc6","row-hover-text-color":"rgba(29, 75, 52, 1)"},chart:{pie_color_1:"#50A57A",pie_color_2:"#F8B85A",pie_color_3:"#FF9892",pie_color_4:"#55DDDD",pie_color_5:"#85E9B7"},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":{}}},a="yxTheme",m="green",n=()=>{const r=e();localStorage.getItem(a)||localStorage.setItem(a,r);const o=document.documentElement,g=t[r].common;Object.keys(g).forEach(c=>{Object.keys(g[c]).forEach(b=>{const u=`--${c}-${b}`;o.style.setProperty(u,g[c][b])})})},l=r=>{localStorage.setItem(a,r),n()},e=()=>localStorage.getItem(a)||m,d=r=>{const o=e();return t[o][r]||{}},i=r=>{const o=e();return t[o].common[r]||{}},s=Object.freeze(Object.defineProperty({__proto__:null,changeTheme:l,getCurTheme:e,getGroupColor:i,getSystemThemeConfig:d,install:n},Symbol.toStringTag,{value:"Module"}));exports.changeTheme=l;exports.getCurTheme=e;exports.getGroupColor=i;exports.getSystemThemeConfig=d;exports.install=n;exports.theme=s;
|
package/lib/index.es4.js
CHANGED
|
@@ -1,141 +1,167 @@
|
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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
|
+
page: "rgba(241, 243, 242, 1)",
|
|
36
|
+
"main-content-special": "rgba(103, 186, 145, 0.10)",
|
|
37
|
+
section: "rgba(252, 255, 253, 1)"
|
|
38
|
+
},
|
|
39
|
+
button: {
|
|
40
|
+
background: "rgba(103, 186, 145, 0.10)",
|
|
41
|
+
"border-color": "rgba(80, 165, 122, 1)",
|
|
42
|
+
"text-color": "rgba(80, 165, 122, 1)",
|
|
43
|
+
"active-background-color": "rgba(80, 165, 122, 1)",
|
|
44
|
+
"active-border-color": "rgba(154, 209, 162, 1)",
|
|
45
|
+
"active-text-color": "#fff"
|
|
46
|
+
},
|
|
47
|
+
checkbox: {
|
|
48
|
+
background: "rgba(216, 233, 219, 1)",
|
|
49
|
+
"icon-color": "rgba(80, 165, 122, 0)",
|
|
50
|
+
"border-color": "rgba(154, 209, 162, 1)",
|
|
51
|
+
"text-color": "#9AD1A2",
|
|
52
|
+
"checked-text-color": "#1D4B34",
|
|
53
|
+
"checked-background": "rgba(216, 233, 219, 1)",
|
|
54
|
+
"checked-icon-color": "rgba(80, 165, 122, 1)",
|
|
55
|
+
"checked-border-color": "rgba(154, 209, 162, 1)"
|
|
56
|
+
},
|
|
57
|
+
input: {
|
|
58
|
+
background: "rgba(237, 246, 239, 1)",
|
|
59
|
+
"border-color": "rgba(80, 165, 122, 1)",
|
|
60
|
+
color: "rgba(29, 75, 52, 1)",
|
|
61
|
+
"placeholder-color": "rgba(80, 165, 122, 1)",
|
|
62
|
+
"hover-background": "rgba(237, 246, 239, 0.30)",
|
|
63
|
+
"hover-border-color": "rgba(80, 165, 122, 1)",
|
|
64
|
+
"hover-color": "rgba(80, 165, 122, 1)",
|
|
65
|
+
"active-background": "rgba(237, 246, 239, 0.30)",
|
|
66
|
+
"active-border-color": "rgba(80, 165, 122, 1)",
|
|
67
|
+
"active-color": "rgba(80, 165, 122, 1)",
|
|
68
|
+
"disabled-background": "rgba(237, 246, 239, 1)",
|
|
69
|
+
"disabled-border-color": "rgba(237, 246, 239, 1)",
|
|
70
|
+
"disabled-color": "rgba(83, 83, 83, 1)"
|
|
71
|
+
},
|
|
72
|
+
select: {
|
|
73
|
+
"dropdown-background": "rgba(237, 246, 239, 1)",
|
|
74
|
+
"dropdown-border-color": "rgba(80, 165, 122, 1)",
|
|
75
|
+
"dropdown-item-color": "rgba(80, 165, 122, 1)",
|
|
76
|
+
"dropdown-item-hover-background": "rgba(178, 220, 198, 1)",
|
|
77
|
+
"dropdown-item-hover-color": "rgba(29, 75, 52, 1)",
|
|
78
|
+
"dropdown-item-selected-background": "rgba(178, 220, 198, 1)",
|
|
79
|
+
"dropdown-item-selected-color": "rgba(29, 75, 52, 1)"
|
|
80
|
+
},
|
|
81
|
+
tree: {},
|
|
82
|
+
layout: {
|
|
83
|
+
"nav-background": "#fff",
|
|
84
|
+
"view-background": "#F1F3F2"
|
|
85
|
+
},
|
|
86
|
+
table: {
|
|
87
|
+
"header-background": "#67BA91",
|
|
88
|
+
"header-text-color": "#fff",
|
|
89
|
+
"row-background": "#D1EFDA",
|
|
90
|
+
"row-odd-background": "#EAF9ED",
|
|
91
|
+
//奇数行色值
|
|
92
|
+
"row-border-bottom-color": "#9AD1A2",
|
|
93
|
+
"row-text-color": "#1D4B34",
|
|
94
|
+
"row-error-background": "linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)",
|
|
95
|
+
"row-warning-background": "linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)",
|
|
96
|
+
"row-hover-background": "#b2dcc6",
|
|
97
|
+
"row-hover-text-color": "rgba(29, 75, 52, 1)"
|
|
98
|
+
},
|
|
99
|
+
chart: {
|
|
100
|
+
pie_color_1: "#50A57A",
|
|
101
|
+
pie_color_2: "#F8B85A",
|
|
102
|
+
pie_color_3: "#FF9892",
|
|
103
|
+
pie_color_4: "#55DDDD",
|
|
104
|
+
pie_color_5: "#85E9B7"
|
|
105
|
+
},
|
|
106
|
+
message: {},
|
|
107
|
+
text: {
|
|
108
|
+
main: "#50A57A",
|
|
109
|
+
deep: "#1D4B34",
|
|
110
|
+
light: "rgba(80, 165, 122, 0.50)",
|
|
111
|
+
paler: "#637B6B",
|
|
112
|
+
warning: "#F8B85A"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
cloud: {},
|
|
116
|
+
"station-control-center": {}
|
|
117
|
+
},
|
|
118
|
+
blue: {
|
|
119
|
+
common: {
|
|
120
|
+
"--test1": "#fff",
|
|
121
|
+
"--test2": "#ccc"
|
|
122
|
+
},
|
|
123
|
+
cloud: {},
|
|
124
|
+
"station-control-center": {}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
e = "yxTheme",
|
|
128
|
+
l = "green",
|
|
129
|
+
b = () => {
|
|
130
|
+
const r = a();
|
|
131
|
+
localStorage.getItem(e) || localStorage.setItem(e, r);
|
|
132
|
+
const o = document.documentElement,
|
|
133
|
+
c = n[r].common;
|
|
134
|
+
Object.keys(c).forEach(g => {
|
|
135
|
+
Object.keys(c[g]).forEach(t => {
|
|
136
|
+
const d = `--${g}-${t}`;
|
|
137
|
+
o.style.setProperty(d, c[g][t]);
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
},
|
|
141
|
+
i = r => {
|
|
142
|
+
localStorage.setItem(e, r), b();
|
|
143
|
+
},
|
|
144
|
+
a = () => localStorage.getItem(e) || l,
|
|
145
|
+
u = r => {
|
|
146
|
+
const o = a();
|
|
147
|
+
return n[o][r] || {};
|
|
148
|
+
},
|
|
149
|
+
s = r => {
|
|
150
|
+
const o = a();
|
|
151
|
+
return n[o].common[r] || {};
|
|
152
|
+
},
|
|
153
|
+
m = /* @__PURE__ */ Object.freeze(
|
|
154
|
+
/* @__PURE__ */ Object.defineProperty(
|
|
155
|
+
{
|
|
156
|
+
__proto__: null,
|
|
157
|
+
changeTheme: i,
|
|
158
|
+
getCurTheme: a,
|
|
159
|
+
getGroupColor: s,
|
|
160
|
+
getSystemThemeConfig: u,
|
|
161
|
+
install: b
|
|
162
|
+
},
|
|
163
|
+
Symbol.toStringTag,
|
|
164
|
+
{ value: "Module" }
|
|
165
|
+
)
|
|
166
|
+
);
|
|
167
|
+
export { u as a, s as b, i as c, a as g, b as i, m as t };
|
package/lib/theme.cjs.js
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("./index.cjs4.js");
|
|
4
|
+
exports.changeTheme = e.changeTheme;
|
|
5
|
+
exports.getCurTheme = e.getCurTheme;
|
|
6
|
+
exports.getGroupColor = e.getGroupColor;
|
|
7
|
+
exports.getSystemThemeConfig = e.getSystemThemeConfig;
|
|
8
|
+
exports.install = e.install;
|