@lingshugroup/web-plus 1.0.23 → 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/README.md +1 -1
- package/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/packages/ls-components/components/button/Button.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/button/Button.vue/index.js +2 -2
- package/lib/packages/ls-components/components/chart/config/base/index.cjs +1 -1
- package/lib/packages/ls-components/components/chart/config/base/index.js +7 -8
- package/lib/packages/ls-components/components/chart/config/base/index.js.br +0 -0
- package/lib/packages/ls-components/components/chart/config/base/index.js.gz +0 -0
- package/lib/packages/ls-components/components/chart/config/template/bar/index.cjs +1 -1
- package/lib/packages/ls-components/components/chart/config/template/bar/index.js +79 -79
- package/lib/packages/ls-components/components/chart/config/template/bar/index.js.br +0 -0
- package/lib/packages/ls-components/components/chart/config/template/bar/index.js.gz +0 -0
- package/lib/packages/ls-components/components/chart/config/template/line/index.cjs +1 -1
- package/lib/packages/ls-components/components/chart/config/template/line/index.js +78 -78
- package/lib/packages/ls-components/components/chart/config/template/line/index.js.br +0 -0
- package/lib/packages/ls-components/components/chart/config/template/line/index.js.gz +0 -0
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var p = (
|
|
3
|
-
import { numberFixed as C, formatChartAxis as
|
|
4
|
-
import { BG_COLOR_MAP as
|
|
5
|
-
const
|
|
6
|
-
const { name:
|
|
1
|
+
var B = Object.defineProperty;
|
|
2
|
+
var p = (o, t) => B(o, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { numberFixed as C, formatChartAxis as I } from "../../../../_utils/utils/index.js";
|
|
4
|
+
import { BG_COLOR_MAP as k, DEF_THEME as l, BAR_COLOR_MAP as _, TOOLTIP_COLOR_MAP as S, FONT_COLOR_MAP as b, BG_BAR_COLOR_MAP as L, SPLIT_LINE_COLOR as w } from "../../base/index.js";
|
|
5
|
+
const D = /* @__PURE__ */ p((o, t, e, n, a) => {
|
|
6
|
+
const { name: s, seriesName: i, value: r, color: u } = o, d = n == 0 ? `<div class="name">${s}</div>` : "", y = t && r !== "-" && i !== "temp" ? `<span class="serise-name">${t ? i : ""}</span>` : "", c = r !== "-" && i !== "temp" ? `<span class="value">${r || "-"}</span>` : "", m = r !== "-" && i !== "temp" ? `<div class="content-badge ${e}" style="background-color: ${typeof u == "string" ? u : a};"></div>` : "";
|
|
7
7
|
return ` ${d} <div class="content"> <div class="serise-wrap"> ${m} ${y} </div> ${c} </div> `;
|
|
8
|
-
}, "setTooltipFormat"),
|
|
9
|
-
let { legend: t, legendIcon: e, tooltip: n = "shadow", theme:
|
|
10
|
-
const
|
|
11
|
-
return
|
|
12
|
-
let d = `<div class="ls-bar-tooltip-wrap ${
|
|
8
|
+
}, "setTooltipFormat"), R = /* @__PURE__ */ p((o) => {
|
|
9
|
+
let { legend: t, legendIcon: e, tooltip: n = "shadow", theme: a, tooltipFormatter: s, barColorList: i } = o;
|
|
10
|
+
const r = i || _[a || l][0];
|
|
11
|
+
return s = s || function(u) {
|
|
12
|
+
let d = `<div class="ls-bar-tooltip-wrap ${a}">`;
|
|
13
13
|
return u.forEach((y, c) => {
|
|
14
|
-
d +=
|
|
14
|
+
d += D(y, t, e, c, r);
|
|
15
15
|
}), d + "</div>";
|
|
16
16
|
}, n ? {
|
|
17
17
|
trigger: "axis",
|
|
@@ -19,19 +19,19 @@ const k = /* @__PURE__ */ p((a, t, e, n, o) => {
|
|
|
19
19
|
type: n,
|
|
20
20
|
z: 1,
|
|
21
21
|
label: {
|
|
22
|
-
color:
|
|
22
|
+
color: S[a || l].color
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
textStyle: {
|
|
26
|
-
color: b[
|
|
26
|
+
color: b[a || l]
|
|
27
27
|
},
|
|
28
28
|
padding: 12,
|
|
29
|
-
backgroundColor:
|
|
30
|
-
extraCssText: `box-shadow: ${
|
|
31
|
-
formatter:
|
|
29
|
+
backgroundColor: S[a || l].bgColor,
|
|
30
|
+
extraCssText: `box-shadow: ${S[a || l].shadowColor};`,
|
|
31
|
+
formatter: s
|
|
32
32
|
} : null;
|
|
33
|
-
}, "setTooltip"),
|
|
34
|
-
const { legend: t, legendIcon: e = "rect", theme: n } =
|
|
33
|
+
}, "setTooltip"), H = /* @__PURE__ */ p((o) => {
|
|
34
|
+
const { legend: t, legendIcon: e = "rect", theme: n } = o;
|
|
35
35
|
return {
|
|
36
36
|
type: "scroll",
|
|
37
37
|
data: t || [],
|
|
@@ -39,7 +39,7 @@ const k = /* @__PURE__ */ p((a, t, e, n, o) => {
|
|
|
39
39
|
itemWidth: 12,
|
|
40
40
|
itemHeight: 10,
|
|
41
41
|
textStyle: {
|
|
42
|
-
color: b[n ||
|
|
42
|
+
color: b[n || l],
|
|
43
43
|
fontSize: 12,
|
|
44
44
|
height: 10,
|
|
45
45
|
rich: {
|
|
@@ -49,8 +49,8 @@ const k = /* @__PURE__ */ p((a, t, e, n, o) => {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
}, "setLegend"),
|
|
53
|
-
const { dataZoom: t } =
|
|
52
|
+
}, "setLegend"), F = /* @__PURE__ */ p((o) => {
|
|
53
|
+
const { dataZoom: t } = o, e = {
|
|
54
54
|
left: "3%",
|
|
55
55
|
right: "3%",
|
|
56
56
|
top: "12%",
|
|
@@ -58,19 +58,19 @@ const k = /* @__PURE__ */ p((a, t, e, n, o) => {
|
|
|
58
58
|
containLabel: !0
|
|
59
59
|
};
|
|
60
60
|
return t === "vertical" && delete e.right, t === "horizontal" && delete e.bottom, e;
|
|
61
|
-
}, "setGrid"),
|
|
62
|
-
const { axisData: n, seriesData:
|
|
61
|
+
}, "setGrid"), A = /* @__PURE__ */ p((o, t, e) => {
|
|
62
|
+
const { axisData: n, seriesData: a } = o, { axis: s = "x", theme: i, lineBar: r, dynamicAxis: u, type: d } = t;
|
|
63
63
|
let y = [
|
|
64
64
|
{
|
|
65
|
-
type:
|
|
65
|
+
type: s == e ? "category" : "value",
|
|
66
66
|
axisTick: {
|
|
67
67
|
show: !1
|
|
68
68
|
},
|
|
69
69
|
axisLine: {
|
|
70
|
-
show:
|
|
70
|
+
show: s == e,
|
|
71
71
|
lineStyle: {
|
|
72
72
|
width: 1,
|
|
73
|
-
color: b[i ||
|
|
73
|
+
color: b[i || l]
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
axisLabel: {
|
|
@@ -79,19 +79,19 @@ const k = /* @__PURE__ */ p((a, t, e, n, o) => {
|
|
|
79
79
|
splitLine: {
|
|
80
80
|
lineStyle: {
|
|
81
81
|
type: "dashed",
|
|
82
|
-
color:
|
|
82
|
+
color: w[i || l]
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
data:
|
|
85
|
+
data: s == e ? n : []
|
|
86
86
|
}
|
|
87
87
|
];
|
|
88
|
-
if (
|
|
88
|
+
if (s !== e && (r && (y = s == "x" ? [
|
|
89
89
|
{
|
|
90
90
|
type: "value",
|
|
91
91
|
splitLine: {
|
|
92
92
|
show: !1,
|
|
93
93
|
lineStyle: {
|
|
94
|
-
color:
|
|
94
|
+
color: w[i || l]
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
},
|
|
@@ -99,7 +99,7 @@ const k = /* @__PURE__ */ p((a, t, e, n, o) => {
|
|
|
99
99
|
type: "value",
|
|
100
100
|
splitLine: {
|
|
101
101
|
lineStyle: {
|
|
102
|
-
color:
|
|
102
|
+
color: w[i || l],
|
|
103
103
|
type: "dashed",
|
|
104
104
|
width: 2,
|
|
105
105
|
dashOffset: 2
|
|
@@ -112,16 +112,16 @@ const k = /* @__PURE__ */ p((a, t, e, n, o) => {
|
|
|
112
112
|
}
|
|
113
113
|
]), u)) {
|
|
114
114
|
let c = [];
|
|
115
|
-
d === "multiple" && (!
|
|
116
|
-
var
|
|
117
|
-
d === "multiple" ?
|
|
118
|
-
const h = Math.max(...c), g = Math.min(...c), { aInterval: f, aMax:
|
|
119
|
-
return m.min =
|
|
115
|
+
d === "multiple" && (!r || s == "y" && r) && (c = a.reduce((m, x) => m.concat(x.data), [])), y.map((m, x) => {
|
|
116
|
+
var O;
|
|
117
|
+
d === "multiple" ? r && s == "x" && (c = (((O = a[x]) == null ? void 0 : O.data) || []).map((v) => C(v))) : c = (a || []).map((v) => C(v));
|
|
118
|
+
const h = Math.max(...c), g = Math.min(...c), { aInterval: f, aMax: M, aMin: $ } = I(h, g);
|
|
119
|
+
return m.min = $, m.max = M, m.interval = f, m;
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
return y;
|
|
123
|
-
}, "setAxis"),
|
|
124
|
-
const { dataZoom: t, dataZoomColorOut: e, dataZoomColorIn: n, theme:
|
|
123
|
+
}, "setAxis"), T = /* @__PURE__ */ p((o) => {
|
|
124
|
+
const { dataZoom: t, dataZoomColorOut: e, dataZoomColorIn: n, theme: a } = o;
|
|
125
125
|
return t ? [
|
|
126
126
|
{
|
|
127
127
|
show: !0,
|
|
@@ -130,20 +130,20 @@ const k = /* @__PURE__ */ p((a, t, e, n, o) => {
|
|
|
130
130
|
orient: t,
|
|
131
131
|
showDataShadow: !0,
|
|
132
132
|
dataBackground: {
|
|
133
|
-
lineStyle: {
|
|
134
|
-
|
|
135
|
-
},
|
|
133
|
+
// lineStyle: {
|
|
134
|
+
// color: 'transparent'
|
|
135
|
+
// },
|
|
136
136
|
areaStyle: {
|
|
137
|
-
color: n ||
|
|
137
|
+
color: n || "#d2dbee"
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
|
-
fillerColor: e ||
|
|
141
|
-
moveHandleStyle: {
|
|
142
|
-
|
|
143
|
-
},
|
|
144
|
-
borderColor: null,
|
|
140
|
+
fillerColor: e || "rgba(207, 223, 243, 0.25)",
|
|
141
|
+
// moveHandleStyle: {
|
|
142
|
+
// opacity: 0
|
|
143
|
+
// },
|
|
144
|
+
// borderColor: null,
|
|
145
145
|
textStyle: {
|
|
146
|
-
color: b[
|
|
146
|
+
color: b[a || l]
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
{
|
|
@@ -159,13 +159,13 @@ const k = /* @__PURE__ */ p((a, t, e, n, o) => {
|
|
|
159
159
|
showDataShadow: !0
|
|
160
160
|
}
|
|
161
161
|
] : null;
|
|
162
|
-
}, "setDataZoom"),
|
|
163
|
-
const { seriesData: e } =
|
|
162
|
+
}, "setDataZoom"), Z = /* @__PURE__ */ p((o, t) => {
|
|
163
|
+
const { seriesData: e } = o, {
|
|
164
164
|
type: n = "simple",
|
|
165
|
-
showBarFont:
|
|
166
|
-
labelPosition:
|
|
165
|
+
showBarFont: a = !0,
|
|
166
|
+
labelPosition: s = "inside",
|
|
167
167
|
smooth: i = !0,
|
|
168
|
-
areaStyle:
|
|
168
|
+
areaStyle: r = void 0,
|
|
169
169
|
showBackground: u,
|
|
170
170
|
theme: d,
|
|
171
171
|
name: y,
|
|
@@ -182,14 +182,14 @@ const k = /* @__PURE__ */ p((a, t, e, n, o) => {
|
|
|
182
182
|
focus: "series"
|
|
183
183
|
},
|
|
184
184
|
smooth: i,
|
|
185
|
-
areaStyle:
|
|
185
|
+
areaStyle: r || null,
|
|
186
186
|
label: {
|
|
187
|
-
show:
|
|
188
|
-
position:
|
|
187
|
+
show: a,
|
|
188
|
+
position: s
|
|
189
189
|
},
|
|
190
190
|
showBackground: u,
|
|
191
191
|
backgroundStyle: {
|
|
192
|
-
color:
|
|
192
|
+
color: L[d || l]
|
|
193
193
|
},
|
|
194
194
|
itemStyle: h.itemStyle || {},
|
|
195
195
|
data: h.data || []
|
|
@@ -199,39 +199,39 @@ const k = /* @__PURE__ */ p((a, t, e, n, o) => {
|
|
|
199
199
|
{
|
|
200
200
|
name: y,
|
|
201
201
|
label: {
|
|
202
|
-
show:
|
|
203
|
-
position:
|
|
202
|
+
show: a,
|
|
203
|
+
position: s
|
|
204
204
|
},
|
|
205
205
|
showBackground: u,
|
|
206
206
|
backgroundStyle: {
|
|
207
|
-
color:
|
|
207
|
+
color: L[d || l]
|
|
208
208
|
},
|
|
209
209
|
data: e || [],
|
|
210
210
|
smooth: i,
|
|
211
211
|
symbol: x,
|
|
212
212
|
// 设置填充透明度
|
|
213
|
-
areaStyle:
|
|
213
|
+
areaStyle: r || null,
|
|
214
214
|
type: "line"
|
|
215
215
|
}
|
|
216
216
|
];
|
|
217
|
-
}, "setSeries"),
|
|
218
|
-
const { theme: e, barColorList: n } = t,
|
|
217
|
+
}, "setSeries"), E = /* @__PURE__ */ p((o, t) => {
|
|
218
|
+
const { theme: e, barColorList: n } = t, a = {
|
|
219
219
|
textStyle: {},
|
|
220
|
-
backgroundColor:
|
|
221
|
-
color: n ||
|
|
222
|
-
legend:
|
|
223
|
-
grid:
|
|
224
|
-
xAxis:
|
|
225
|
-
yAxis:
|
|
226
|
-
series:
|
|
227
|
-
dataZoom:
|
|
228
|
-
},
|
|
229
|
-
return
|
|
220
|
+
backgroundColor: k[e || l],
|
|
221
|
+
color: n || _[e || l],
|
|
222
|
+
legend: H(t),
|
|
223
|
+
grid: F(t),
|
|
224
|
+
xAxis: A(o, t, "x"),
|
|
225
|
+
yAxis: A(o, t, "y"),
|
|
226
|
+
series: Z(o, t),
|
|
227
|
+
dataZoom: T(t)
|
|
228
|
+
}, s = R(t);
|
|
229
|
+
return s && (a.tooltip = s), a;
|
|
230
230
|
}, "setOption");
|
|
231
|
-
function
|
|
232
|
-
return
|
|
231
|
+
function P(o = {}, t = {}) {
|
|
232
|
+
return E(o, t);
|
|
233
233
|
}
|
|
234
|
-
p(
|
|
234
|
+
p(P, "dealOption");
|
|
235
235
|
export {
|
|
236
|
-
|
|
236
|
+
P as dealOption
|
|
237
237
|
};
|
|
Binary file
|
|
Binary file
|