@lingshugroup/web-plus 1.0.17 → 1.0.19
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 -5
- 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/chart/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/chart/Index.vue/index.js +2 -2
- 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 +61 -61
- 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 +75 -75
- 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/lib/packages/ls-components/components/form/Form.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index.js +2 -2
- package/lib/packages/ls-components/components/form/Form.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index2.js +109 -103
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/form/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/types/index.js +12 -2
- package/lib/packages/ls-components/components/form/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/form/types/index.js.gz +0 -0
- package/lib/packages/ls-components/components/upload/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/upload/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js +22 -23
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js.gz +0 -0
- package/package.json +1 -1
package/lib/index.css.br
CHANGED
|
Binary file
|
package/lib/index.css.gz
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-2cc80a46"]]);exports.default=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2cc80a46"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var L=Object.defineProperty;var d=(r,t)=>L(r,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";var L=Object.defineProperty;var d=(r,t)=>L(r,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../../../../_utils/utils/index.cjs"),o=require("../../base/index.cjs"),y=d((r,t,e,n,a)=>{const{name:s,seriesName:l,value:O,color:m}=r,i=n==0?`<div class="name">${s}</div>`:"",c=t&&O!=="-"&&l!=="temp"?`<span class="serise-name">${t?l:""}</span>`:"",u=O!=="-"&&l!=="temp"?`<span class="value">${O||"-"}</span>`:"",_=O!=="-"&&l!=="temp"?`<div class="content-badge ${e}" style="background-color: ${typeof m=="string"?m:a};"></div>`:"";return` ${i} <div class="content"> <div class="serise-wrap"> ${_} ${c} </div> ${u} </div> `},"setTooltipFormat"),A=d(r=>{let{legend:t,legendIcon:e,tooltip:n="shadow",theme:a="default",tooltipFormatter:s,barColorList:l}=r;const O=l||o.BAR_COLOR_MAP[a||o.DEF_THEME][0];return s=s||function(m){let i=`<div class="ls-bar-tooltip-wrap ${a}">`;return m.forEach((c,u)=>{i+=y(c,t,e,u,O)}),i+"</div>"},n?{trigger:"axis",axisPointer:{type:n,z:1,label:{color:o.TOOLTIP_COLOR_MAP[a||o.DEF_THEME].color}},textStyle:{color:o.FONT_COLOR_MAP[a||o.DEF_THEME]},padding:12,backgroundColor:o.TOOLTIP_COLOR_MAP[a||o.DEF_THEME].bgColor,extraCssText:`box-shadow: ${o.TOOLTIP_COLOR_MAP[a||o.DEF_THEME].shadowColor};`,formatter:s}:null},"setTooltip"),C=d(r=>{const{legend:t,legendIcon:e="rect",theme:n}=r;return{type:"scroll",data:t||[],icon:e,itemWidth:12,itemHeight:10,textStyle:{color:o.FONT_COLOR_MAP[n||o.DEF_THEME],fontSize:12,height:10,rich:{a:{verticalAlign:"middle"}}}}},"setLegend"),v=d(r=>{const{dataZoom:t}=r,e={left:"3%",right:"3%",top:"12%",bottom:"3%",containLabel:!0};return t==="vertical"&&delete e.right,t==="horizontal"&&delete e.bottom,e},"setGrid"),b=d((r,t,e)=>{const{axisData:n,seriesData:a}=r,{axis:s="x",theme:l,dynamicAxis:O,type:m="simple"}=t,i={type:s==e?"category":"value",axisTick:{show:!1},axisLine:{show:s==e,lineStyle:{width:1,color:o.FONT_COLOR_MAP[l||o.DEF_THEME]}},axisLabel:{margin:18},splitLine:{lineStyle:{type:"dashed",color:o.SPLIT_LINE_COLOR[l||o.DEF_THEME]}}};if(s==e&&(i.data=n),s!==e&&O&&["simple","multiBar"].includes(m)){let c=[];m==="simple"?c=(a||[]).map(E=>p.numberFixed(E)):m==="multiBar"&&(c=a.reduce((E,T)=>E.concat(T.data),[]));const u=Math.max(...c),_=Math.min(...c),{aInterval:f,aMax:M,aMin:h}=p.formatChartAxis(u,_);i.min=h,i.max=M,i.interval=f}return[i]},"setAxis"),x=d(r=>{const{dataZoom:t,theme:e}=r;return t?[{show:!0,start:0,end:100,orient:t,showDataShadow:!0,dataBackground:{areaStyle:{color:o.DATA_ZOOM_COLOR[e||o.DEF_THEME][0]}},fillerColor:o.DATA_ZOOM_COLOR[e||o.DEF_THEME][1],borderColor:null,textStyle:{color:o.FONT_COLOR_MAP[e||o.DEF_THEME]}},{type:"inside",start:0,end:100,orient:t},{show:!1,yAxisIndex:0,filterMode:"empty",right:0,showDataShadow:!0}]:null},"setDataZoom"),g=d((r,t,e)=>{const n=r==="x"?"top":"left";let a="inside";return e?a=o.LABEL_POSITION_MAP[t][n]:a=o.LABEL_POSITION_MAP[t][`-${n}`],a},"getPos"),D=d((r,t,e)=>{const{type:n="simple",showBarFont:a=!0,labelPosition:s="inside",axis:l="x",showBackground:O,theme:m}=r,i={type:"bar",name:t.name,label:{show:a,position:s,formatter:d(function(c){const u=c.value;return u!==0?u:""},"formatter")},showBackground:O,backgroundStyle:{color:o.BG_BAR_COLOR_MAP[m||o.DEF_THEME]},data:t.data||[],barCategoryGap:"30%",barWidth:n==="multiBar"?"auto":"40%",barGap:"4%"};return["negative","categoryStack","waterfall"].includes(n)&&(i.stack="total",n==="negative"&&["both","insideBoth"].includes(s)?i.label.position=g(l,s,(t.data||[]).reduce((c,u)=>c+u)>0):n==="categoryStack"&&e>0&&(i.itemStyle={borderColor:o.BG_COLOR_MAP[m||o.DEF_THEME],borderWidth:2})),n==="waterfall"&&(i.itemStyle=e==0?{borderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"}:null,i.emphasis=e==0?{itemStyle:{borderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"}}:null,i.label=t.label||{show:e>0&&a,position:s,formatter:d(function(c){const u=c.value;return u!==0?u:""},"formatter")},["both","insideBoth"].includes(s)&&(i.label.position=g(l,s,e===1))),i},"setSeriesOption"),F=d((r,t)=>{const{seriesData:e}=r,{type:n="simple",legend:a=[]}=t;return(n=="simple"?[{name:a[0],data:e}]:e||[]).map((s,l)=>D(t,s,l))},"setSeries"),S=d((r,t)=>{const{theme:e,barColorList:n}=t,a={textStyle:{},backgroundColor:o.BG_COLOR_MAP[e||o.DEF_THEME],color:n||o.BAR_COLOR_MAP[e||o.DEF_THEME],legend:C(t),grid:v(t),xAxis:b(r,t,"x"),yAxis:b(r,t,"y"),series:F(r,t),dataZoom:x(t)},s=A(t);return s&&(a.tooltip=s),a},"setOption");function H(r={},t={}){return S(r,t)}d(H,"dealOption");exports.dealOption=H;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
var B = Object.defineProperty;
|
|
2
2
|
var d = (o, t) => B(o, "name", { value: t, configurable: !0 });
|
|
3
3
|
import { numberFixed as M, formatChartAxis as $ } from "../../../../_utils/utils/index.js";
|
|
4
|
-
import { BG_COLOR_MAP as
|
|
5
|
-
const
|
|
6
|
-
const { name:
|
|
7
|
-
return ` ${
|
|
8
|
-
}, "setTooltipFormat"),
|
|
9
|
-
let { legend: t,
|
|
10
|
-
const
|
|
11
|
-
return
|
|
12
|
-
let
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
}),
|
|
16
|
-
},
|
|
4
|
+
import { BG_COLOR_MAP as C, DEF_THEME as i, BAR_COLOR_MAP as w, TOOLTIP_COLOR_MAP as h, FONT_COLOR_MAP as f, DATA_ZOOM_COLOR as y, SPLIT_LINE_COLOR as k, BG_BAR_COLOR_MAP as D, LABEL_POSITION_MAP as x } from "../../base/index.js";
|
|
5
|
+
const I = /* @__PURE__ */ d((o, t, e, s, r) => {
|
|
6
|
+
const { name: a, seriesName: l, value: p, color: u } = o, n = s == 0 ? `<div class="name">${a}</div>` : "", c = t && p !== "-" && l !== "temp" ? `<span class="serise-name">${t ? l : ""}</span>` : "", m = p !== "-" && l !== "temp" ? `<span class="value">${p || "-"}</span>` : "", g = p !== "-" && l !== "temp" ? `<div class="content-badge ${e}" style="background-color: ${typeof u == "string" ? u : r};"></div>` : "";
|
|
7
|
+
return ` ${n} <div class="content"> <div class="serise-wrap"> ${g} ${c} </div> ${m} </div> `;
|
|
8
|
+
}, "setTooltipFormat"), R = /* @__PURE__ */ d((o) => {
|
|
9
|
+
let { legend: t, legendIcon: e, tooltip: s = "shadow", theme: r = "default", tooltipFormatter: a, barColorList: l } = o;
|
|
10
|
+
const p = l || w[r || i][0];
|
|
11
|
+
return a = a || function(u) {
|
|
12
|
+
let n = `<div class="ls-bar-tooltip-wrap ${r}">`;
|
|
13
|
+
return u.forEach((c, m) => {
|
|
14
|
+
n += I(c, t, e, m, p);
|
|
15
|
+
}), n + "</div>";
|
|
16
|
+
}, s ? {
|
|
17
17
|
trigger: "axis",
|
|
18
18
|
axisPointer: {
|
|
19
|
-
type:
|
|
19
|
+
type: s,
|
|
20
20
|
z: 1,
|
|
21
21
|
label: {
|
|
22
|
-
color:
|
|
22
|
+
color: h[r || i].color
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
textStyle: {
|
|
26
|
-
color: f[r ||
|
|
26
|
+
color: f[r || i]
|
|
27
27
|
},
|
|
28
28
|
padding: 12,
|
|
29
|
-
backgroundColor:
|
|
30
|
-
extraCssText: `box-shadow: ${
|
|
31
|
-
formatter:
|
|
29
|
+
backgroundColor: h[r || i].bgColor,
|
|
30
|
+
extraCssText: `box-shadow: ${h[r || i].shadowColor};`,
|
|
31
|
+
formatter: a
|
|
32
32
|
} : null;
|
|
33
33
|
}, "setTooltip"), T = /* @__PURE__ */ d((o) => {
|
|
34
|
-
const { legend: t, legendIcon: e = "rect", theme:
|
|
34
|
+
const { legend: t, legendIcon: e = "rect", theme: s } = o;
|
|
35
35
|
return {
|
|
36
36
|
type: "scroll",
|
|
37
37
|
data: t || [],
|
|
@@ -39,7 +39,7 @@ const R = /* @__PURE__ */ d((o, t, e, r) => {
|
|
|
39
39
|
itemWidth: 12,
|
|
40
40
|
itemHeight: 10,
|
|
41
41
|
textStyle: {
|
|
42
|
-
color: f[
|
|
42
|
+
color: f[s || i],
|
|
43
43
|
fontSize: 12,
|
|
44
44
|
height: 10,
|
|
45
45
|
rich: {
|
|
@@ -58,8 +58,8 @@ const R = /* @__PURE__ */ d((o, t, e, r) => {
|
|
|
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:
|
|
61
|
+
}, "setGrid"), v = /* @__PURE__ */ d((o, t, e) => {
|
|
62
|
+
const { axisData: s, seriesData: r } = o, { axis: a = "x", theme: l, dynamicAxis: p, type: u = "simple" } = t, n = {
|
|
63
63
|
type: a == e ? "category" : "value",
|
|
64
64
|
axisTick: {
|
|
65
65
|
show: !1
|
|
@@ -68,7 +68,7 @@ const R = /* @__PURE__ */ d((o, t, e, r) => {
|
|
|
68
68
|
show: a == e,
|
|
69
69
|
lineStyle: {
|
|
70
70
|
width: 1,
|
|
71
|
-
color: f[l ||
|
|
71
|
+
color: f[l || i]
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
axisLabel: {
|
|
@@ -77,17 +77,17 @@ const R = /* @__PURE__ */ d((o, t, e, r) => {
|
|
|
77
77
|
splitLine: {
|
|
78
78
|
lineStyle: {
|
|
79
79
|
type: "dashed",
|
|
80
|
-
color: k[l ||
|
|
80
|
+
color: k[l || i]
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
|
-
if (a == e && (
|
|
84
|
+
if (a == e && (n.data = s), a !== e && p && ["simple", "multiBar"].includes(u)) {
|
|
85
85
|
let c = [];
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
|
|
86
|
+
u === "simple" ? c = (r || []).map((b) => M(b)) : u === "multiBar" && (c = r.reduce((b, _) => b.concat(_.data), []));
|
|
87
|
+
const m = Math.max(...c), g = Math.min(...c), { aInterval: S, aMax: L, aMin: A } = $(m, g);
|
|
88
|
+
n.min = A, n.max = L, n.interval = S;
|
|
89
89
|
}
|
|
90
|
-
return [
|
|
90
|
+
return [n];
|
|
91
91
|
}, "setAxis"), E = /* @__PURE__ */ d((o) => {
|
|
92
92
|
const { dataZoom: t, theme: e } = o;
|
|
93
93
|
return t ? [
|
|
@@ -99,13 +99,13 @@ const R = /* @__PURE__ */ d((o, t, e, r) => {
|
|
|
99
99
|
showDataShadow: !0,
|
|
100
100
|
dataBackground: {
|
|
101
101
|
areaStyle: {
|
|
102
|
-
color:
|
|
102
|
+
color: y[e || i][0]
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
-
fillerColor:
|
|
105
|
+
fillerColor: y[e || i][1],
|
|
106
106
|
borderColor: null,
|
|
107
107
|
textStyle: {
|
|
108
|
-
color: f[e ||
|
|
108
|
+
color: f[e || i]
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
{
|
|
@@ -122,66 +122,66 @@ const R = /* @__PURE__ */ d((o, t, e, r) => {
|
|
|
122
122
|
showDataShadow: !0
|
|
123
123
|
}
|
|
124
124
|
] : null;
|
|
125
|
-
}, "setDataZoom"),
|
|
126
|
-
const
|
|
127
|
-
let
|
|
128
|
-
return e ?
|
|
125
|
+
}, "setDataZoom"), O = /* @__PURE__ */ d((o, t, e) => {
|
|
126
|
+
const s = o === "x" ? "top" : "left";
|
|
127
|
+
let r = "inside";
|
|
128
|
+
return e ? r = x[t][s] : r = x[t][`-${s}`], r;
|
|
129
129
|
}, "getPos"), F = /* @__PURE__ */ d((o, t, e) => {
|
|
130
|
-
const { type:
|
|
130
|
+
const { type: s = "simple", showBarFont: r = !0, labelPosition: a = "inside", axis: l = "x", showBackground: p, theme: u } = o, n = {
|
|
131
131
|
type: "bar",
|
|
132
132
|
name: t.name,
|
|
133
133
|
label: {
|
|
134
|
-
show:
|
|
134
|
+
show: r,
|
|
135
135
|
position: a,
|
|
136
136
|
formatter: /* @__PURE__ */ d(function(c) {
|
|
137
|
-
const
|
|
138
|
-
return
|
|
137
|
+
const m = c.value;
|
|
138
|
+
return m !== 0 ? m : "";
|
|
139
139
|
}, "formatter")
|
|
140
140
|
},
|
|
141
141
|
showBackground: p,
|
|
142
142
|
backgroundStyle: {
|
|
143
|
-
color: D[
|
|
143
|
+
color: D[u || i]
|
|
144
144
|
},
|
|
145
145
|
data: t.data || [],
|
|
146
146
|
barCategoryGap: "30%",
|
|
147
|
-
barWidth:
|
|
147
|
+
barWidth: s === "multiBar" ? "auto" : "40%",
|
|
148
148
|
barGap: "4%"
|
|
149
149
|
};
|
|
150
|
-
return ["negative", "categoryStack", "waterfall"].includes(
|
|
151
|
-
borderColor:
|
|
150
|
+
return ["negative", "categoryStack", "waterfall"].includes(s) && (n.stack = "total", s === "negative" && ["both", "insideBoth"].includes(a) ? n.label.position = O(l, a, (t.data || []).reduce((c, m) => c + m) > 0) : s === "categoryStack" && e > 0 && (n.itemStyle = {
|
|
151
|
+
borderColor: C[u || i],
|
|
152
152
|
borderWidth: 2
|
|
153
|
-
})),
|
|
153
|
+
})), s === "waterfall" && (n.itemStyle = e == 0 ? {
|
|
154
154
|
borderColor: "rgba(0,0,0,0)",
|
|
155
155
|
color: "rgba(0,0,0,0)"
|
|
156
|
-
} : null,
|
|
156
|
+
} : null, n.emphasis = e == 0 ? {
|
|
157
157
|
itemStyle: {
|
|
158
158
|
borderColor: "rgba(0,0,0,0)",
|
|
159
159
|
color: "rgba(0,0,0,0)"
|
|
160
160
|
}
|
|
161
|
-
} : null,
|
|
162
|
-
show: e > 0 &&
|
|
161
|
+
} : null, n.label = t.label || {
|
|
162
|
+
show: e > 0 && r,
|
|
163
163
|
position: a,
|
|
164
164
|
formatter: /* @__PURE__ */ d(function(c) {
|
|
165
|
-
const
|
|
166
|
-
return
|
|
165
|
+
const m = c.value;
|
|
166
|
+
return m !== 0 ? m : "";
|
|
167
167
|
}, "formatter")
|
|
168
|
-
}, ["both", "insideBoth"].includes(a) && (
|
|
168
|
+
}, ["both", "insideBoth"].includes(a) && (n.label.position = O(l, a, e === 1))), n;
|
|
169
169
|
}, "setSeriesOption"), G = /* @__PURE__ */ d((o, t) => {
|
|
170
|
-
const { seriesData: e } = o, { type:
|
|
171
|
-
return (
|
|
170
|
+
const { seriesData: e } = o, { type: s = "simple", legend: r = [] } = t;
|
|
171
|
+
return (s == "simple" ? [{ name: r[0], data: e }] : e || []).map((a, l) => F(t, a, l));
|
|
172
172
|
}, "setSeries"), Z = /* @__PURE__ */ d((o, t) => {
|
|
173
|
-
const { theme: e, barColorList:
|
|
173
|
+
const { theme: e, barColorList: s } = t, r = {
|
|
174
174
|
textStyle: {},
|
|
175
|
-
backgroundColor:
|
|
176
|
-
color:
|
|
175
|
+
backgroundColor: C[e || i],
|
|
176
|
+
color: s || w[e || i],
|
|
177
177
|
legend: T(t),
|
|
178
178
|
grid: H(t),
|
|
179
|
-
xAxis:
|
|
180
|
-
yAxis:
|
|
179
|
+
xAxis: v(o, t, "x"),
|
|
180
|
+
yAxis: v(o, t, "y"),
|
|
181
181
|
series: G(o, t),
|
|
182
182
|
dataZoom: E(t)
|
|
183
|
-
}, a =
|
|
184
|
-
return a && (
|
|
183
|
+
}, a = R(t);
|
|
184
|
+
return a && (r.tooltip = a), r;
|
|
185
185
|
}, "setOption");
|
|
186
186
|
function W(o = {}, t = {}) {
|
|
187
187
|
return Z(o, t);
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty;var
|
|
1
|
+
"use strict";var A=Object.defineProperty;var O=(a,t)=>A(a,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("../../../../_utils/utils/index.cjs"),e=require("../../base/index.cjs"),C=O((a,t,o,n,r)=>{const{name:s,seriesName:l,value:i,color:_}=a,d=n==0?`<div class="name">${s}</div>`:"",m=t&&i!=="-"&&l!=="temp"?`<span class="serise-name">${t?l:""}</span>`:"",c=i!=="-"&&l!=="temp"?`<span class="value">${i||"-"}</span>`:"",E=i!=="-"&&l!=="temp"?`<div class="content-badge ${o}" style="background-color: ${typeof _=="string"?_:r};"></div>`:"";return` ${d} <div class="content"> <div class="serise-wrap"> ${E} ${m} </div> ${c} </div> `},"setTooltipFormat"),b=O(a=>{let{legend:t,legendIcon:o,tooltip:n="shadow",theme:r,tooltipFormatter:s,barColorList:l}=a;const i=l||e.BAR_COLOR_MAP[r||e.DEF_THEME][0];return s=s||function(_){let d=`<div class="ls-bar-tooltip-wrap ${r}">`;return _.forEach((m,c)=>{d+=C(m,t,o,c,i)}),d+"</div>"},n?{trigger:"axis",axisPointer:{type:n,z:1,label:{color:e.TOOLTIP_COLOR_MAP[r||e.DEF_THEME].color}},textStyle:{color:e.FONT_COLOR_MAP[r||e.DEF_THEME]},padding:12,backgroundColor:e.TOOLTIP_COLOR_MAP[r||e.DEF_THEME].bgColor,extraCssText:`box-shadow: ${e.TOOLTIP_COLOR_MAP[r||e.DEF_THEME].shadowColor};`,formatter:s}:null},"setTooltip"),D=O(a=>{const{legend:t,legendIcon:o="rect",theme:n}=a;return{type:"scroll",data:t||[],icon:o,itemWidth:12,itemHeight:10,textStyle:{color:e.FONT_COLOR_MAP[n||e.DEF_THEME],fontSize:12,height:10,rich:{a:{verticalAlign:"middle"}}}}},"setLegend"),F=O(a=>{const{dataZoom:t}=a,o={left:"3%",right:"3%",top:"12%",bottom:"3%",containLabel:!0};return t==="vertical"&&delete o.right,t==="horizontal"&&delete o.bottom,o},"setGrid"),x=O((a,t,o)=>{const{axisData:n,seriesData:r}=a,{axis:s="x",theme:l,lineBar:i,dynamicAxis:_,type:d}=t;let m=[{type:s==o?"category":"value",axisTick:{show:!1},axisLine:{show:s==o,lineStyle:{width:1,color:e.FONT_COLOR_MAP[l||e.DEF_THEME]}},axisLabel:{margin:18},splitLine:{lineStyle:{type:"dashed",color:e.SPLIT_LINE_COLOR[l||e.DEF_THEME]}},data:s==o?n:[]}];if(s!==o&&(i&&(m=s=="x"?[{type:"value",splitLine:{show:!1,lineStyle:{color:e.SPLIT_LINE_COLOR[l||e.DEF_THEME]}}},{type:"value",splitLine:{lineStyle:{color:e.SPLIT_LINE_COLOR[l||e.DEF_THEME],type:"dashed",width:2,dashOffset:2}}}]:[{type:"value"}]),_)){let c=[];d==="multiple"&&(!i||s=="y"&&i)&&(c=r.reduce((E,u)=>E.concat(u.data),[])),m.map((E,u)=>{var L;d==="multiple"?i&&s=="x"&&(c=(((L=r[u])==null?void 0:L.data)||[]).map(h=>M.numberFixed(h))):c=(r||[]).map(h=>M.numberFixed(h));const y=Math.max(...c),p=Math.min(...c),{aInterval:T,aMax:f,aMin:g}=M.formatChartAxis(y,p);return E.min=g,E.max=f,E.interval=T,E})}return m},"setAxis"),S=O(a=>{const{dataZoom:t,theme:o}=a;return t?[{show:!0,start:0,end:100,orient:t,showDataShadow:!0,dataBackground:{areaStyle:{color:e.DATA_ZOOM_COLOR[o||e.DEF_THEME][0]}},fillerColor:e.DATA_ZOOM_COLOR[o||e.DEF_THEME][1],borderColor:null,textStyle:{color:e.FONT_COLOR_MAP[o||e.DEF_THEME]}},{type:"inside",start:0,end:100,orient:t},{show:!1,filterMode:"empty",right:0,showDataShadow:!0}]:null},"setDataZoom"),v=O((a,t)=>{const{seriesData:o}=a,{type:n="simple",showBarFont:r=!0,labelPosition:s="inside",smooth:l=!0,areaStyle:i=void 0,showBackground:_,theme:d,name:m,lineBar:c,axis:E}=t;return n==="multiple"?(o||[]).map((u,y)=>{const p={name:u.name,type:u.type,emphasis:u.emphasis||{focus:"series"},smooth:l,areaStyle:i||{opacity:.2},label:{show:r,position:s},showBackground:_,backgroundStyle:{color:e.BG_BAR_COLOR_MAP[d||e.DEF_THEME]},itemStyle:u.itemStyle||{},data:u.data||[]};return c&&(E!=="y"&&y===1?p.yAxisIndex=y:p.yAxisIndex&&delete p.yAxisIndex),p}):[{name:m,label:{show:r,position:s},showBackground:_,backgroundStyle:{color:e.BG_BAR_COLOR_MAP[d||e.DEF_THEME]},data:o||[],smooth:l,areaStyle:i||{opacity:.2},type:"line"}]},"setSeries"),H=O((a,t)=>{const{theme:o,barColorList:n}=t,r={textStyle:{},backgroundColor:e.BG_COLOR_MAP[o||e.DEF_THEME],color:n||e.BAR_COLOR_MAP[o||e.DEF_THEME],legend:D(t),grid:F(t),xAxis:x(a,t,"x"),yAxis:x(a,t,"y"),series:v(a,t),dataZoom:S(t)},s=b(t);return s&&(r.tooltip=s),r},"setOption");function R(a={},t={}){return H(a,t)}O(R,"dealOption");exports.dealOption=R;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
var D = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
import { numberFixed as w, formatChartAxis as
|
|
4
|
-
import { BG_COLOR_MAP as
|
|
5
|
-
const
|
|
6
|
-
const { name:
|
|
7
|
-
return ` ${d} <div class="content"> <div class="serise-wrap"> ${
|
|
8
|
-
}, "setTooltipFormat"), H = /* @__PURE__ */
|
|
9
|
-
let { legend: t,
|
|
10
|
-
const
|
|
11
|
-
return
|
|
12
|
-
let d = `<div class="ls-bar-tooltip-wrap ${
|
|
13
|
-
return
|
|
14
|
-
d +=
|
|
2
|
+
var p = (o, t) => D(o, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { numberFixed as w, formatChartAxis as I } from "../../../../_utils/utils/index.js";
|
|
4
|
+
import { BG_COLOR_MAP as R, DEF_THEME as r, BAR_COLOR_MAP as _, TOOLTIP_COLOR_MAP as v, FONT_COLOR_MAP as g, DATA_ZOOM_COLOR as L, BG_BAR_COLOR_MAP as A, SPLIT_LINE_COLOR as O } from "../../base/index.js";
|
|
5
|
+
const k = /* @__PURE__ */ p((o, t, e, n, s) => {
|
|
6
|
+
const { name: a, seriesName: l, value: i, color: u } = o, d = n == 0 ? `<div class="name">${a}</div>` : "", y = t && i !== "-" && l !== "temp" ? `<span class="serise-name">${t ? l : ""}</span>` : "", c = i !== "-" && l !== "temp" ? `<span class="value">${i || "-"}</span>` : "", m = i !== "-" && l !== "temp" ? `<div class="content-badge ${e}" style="background-color: ${typeof u == "string" ? u : s};"></div>` : "";
|
|
7
|
+
return ` ${d} <div class="content"> <div class="serise-wrap"> ${m} ${y} </div> ${c} </div> `;
|
|
8
|
+
}, "setTooltipFormat"), H = /* @__PURE__ */ p((o) => {
|
|
9
|
+
let { legend: t, legendIcon: e, tooltip: n = "shadow", theme: s, tooltipFormatter: a, barColorList: l } = o;
|
|
10
|
+
const i = l || _[s || r][0];
|
|
11
|
+
return a = a || function(u) {
|
|
12
|
+
let d = `<div class="ls-bar-tooltip-wrap ${s}">`;
|
|
13
|
+
return u.forEach((y, c) => {
|
|
14
|
+
d += k(y, t, e, c, i);
|
|
15
15
|
}), d + "</div>";
|
|
16
|
-
},
|
|
16
|
+
}, n ? {
|
|
17
17
|
trigger: "axis",
|
|
18
18
|
axisPointer: {
|
|
19
|
-
type:
|
|
19
|
+
type: n,
|
|
20
20
|
z: 1,
|
|
21
21
|
label: {
|
|
22
|
-
color: v[
|
|
22
|
+
color: v[s || r].color
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
textStyle: {
|
|
26
|
-
color: g[
|
|
26
|
+
color: g[s || r]
|
|
27
27
|
},
|
|
28
28
|
padding: 12,
|
|
29
|
-
backgroundColor: v[
|
|
30
|
-
extraCssText: `box-shadow: ${v[
|
|
31
|
-
formatter:
|
|
29
|
+
backgroundColor: v[s || r].bgColor,
|
|
30
|
+
extraCssText: `box-shadow: ${v[s || r].shadowColor};`,
|
|
31
|
+
formatter: a
|
|
32
32
|
} : null;
|
|
33
|
-
}, "setTooltip"), T = /* @__PURE__ */
|
|
34
|
-
const { legend: t, legendIcon: e = "rect", theme:
|
|
33
|
+
}, "setTooltip"), T = /* @__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 I = /* @__PURE__ */ c((o, t, e, r) => {
|
|
|
39
39
|
itemWidth: 12,
|
|
40
40
|
itemHeight: 10,
|
|
41
41
|
textStyle: {
|
|
42
|
-
color: g[
|
|
42
|
+
color: g[n || r],
|
|
43
43
|
fontSize: 12,
|
|
44
44
|
height: 10,
|
|
45
45
|
rich: {
|
|
@@ -49,7 +49,7 @@ const I = /* @__PURE__ */ c((o, t, e, r) => {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
}, "setLegend"), F = /* @__PURE__ */
|
|
52
|
+
}, "setLegend"), F = /* @__PURE__ */ p((o) => {
|
|
53
53
|
const { dataZoom: t } = o, e = {
|
|
54
54
|
left: "3%",
|
|
55
55
|
right: "3%",
|
|
@@ -58,9 +58,9 @@ const I = /* @__PURE__ */ c((o, t, e, r) => {
|
|
|
58
58
|
containLabel: !0
|
|
59
59
|
};
|
|
60
60
|
return t === "vertical" && delete e.right, t === "horizontal" && delete e.bottom, e;
|
|
61
|
-
}, "setGrid"), C = /* @__PURE__ */
|
|
62
|
-
const { axisData:
|
|
63
|
-
let
|
|
61
|
+
}, "setGrid"), C = /* @__PURE__ */ p((o, t, e) => {
|
|
62
|
+
const { axisData: n, seriesData: s } = o, { axis: a = "x", theme: l, lineBar: i, dynamicAxis: u, type: d } = t;
|
|
63
|
+
let y = [
|
|
64
64
|
{
|
|
65
65
|
type: a == e ? "category" : "value",
|
|
66
66
|
axisTick: {
|
|
@@ -70,7 +70,7 @@ const I = /* @__PURE__ */ c((o, t, e, r) => {
|
|
|
70
70
|
show: a == e,
|
|
71
71
|
lineStyle: {
|
|
72
72
|
width: 1,
|
|
73
|
-
color: g[l ||
|
|
73
|
+
color: g[l || r]
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
axisLabel: {
|
|
@@ -79,19 +79,19 @@ const I = /* @__PURE__ */ c((o, t, e, r) => {
|
|
|
79
79
|
splitLine: {
|
|
80
80
|
lineStyle: {
|
|
81
81
|
type: "dashed",
|
|
82
|
-
color: O[l ||
|
|
82
|
+
color: O[l || r]
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
data: a == e ?
|
|
85
|
+
data: a == e ? n : []
|
|
86
86
|
}
|
|
87
87
|
];
|
|
88
|
-
if (a !== e && (
|
|
88
|
+
if (a !== e && (i && (y = a == "x" ? [
|
|
89
89
|
{
|
|
90
90
|
type: "value",
|
|
91
91
|
splitLine: {
|
|
92
92
|
show: !1,
|
|
93
93
|
lineStyle: {
|
|
94
|
-
color: O[l ||
|
|
94
|
+
color: O[l || r]
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
},
|
|
@@ -99,7 +99,7 @@ const I = /* @__PURE__ */ c((o, t, e, r) => {
|
|
|
99
99
|
type: "value",
|
|
100
100
|
splitLine: {
|
|
101
101
|
lineStyle: {
|
|
102
|
-
color: O[l ||
|
|
102
|
+
color: O[l || r],
|
|
103
103
|
type: "dashed",
|
|
104
104
|
width: 2,
|
|
105
105
|
dashOffset: 2
|
|
@@ -110,17 +110,17 @@ const I = /* @__PURE__ */ c((o, t, e, r) => {
|
|
|
110
110
|
{
|
|
111
111
|
type: "value"
|
|
112
112
|
}
|
|
113
|
-
]),
|
|
114
|
-
let
|
|
115
|
-
|
|
113
|
+
]), u)) {
|
|
114
|
+
let c = [];
|
|
115
|
+
d === "multiple" && (!i || a == "y" && i) && (c = s.reduce((m, h) => m.concat(h.data), [])), y.map((m, h) => {
|
|
116
116
|
var S;
|
|
117
|
-
|
|
118
|
-
const f = Math.max(...
|
|
119
|
-
return
|
|
117
|
+
d === "multiple" ? i && a == "x" && (c = (((S = s[h]) == null ? void 0 : S.data) || []).map((b) => w(b))) : c = (s || []).map((b) => w(b));
|
|
118
|
+
const f = Math.max(...c), x = Math.min(...c), { aInterval: M, aMax: $, aMin: B } = I(f, x);
|
|
119
|
+
return m.min = B, m.max = $, m.interval = M, m;
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
return
|
|
123
|
-
}, "setAxis"), E = /* @__PURE__ */
|
|
122
|
+
return y;
|
|
123
|
+
}, "setAxis"), E = /* @__PURE__ */ p((o) => {
|
|
124
124
|
const { dataZoom: t, theme: e } = o;
|
|
125
125
|
return t ? [
|
|
126
126
|
{
|
|
@@ -131,13 +131,13 @@ const I = /* @__PURE__ */ c((o, t, e, r) => {
|
|
|
131
131
|
showDataShadow: !0,
|
|
132
132
|
dataBackground: {
|
|
133
133
|
areaStyle: {
|
|
134
|
-
color: L[e ||
|
|
134
|
+
color: L[e || r][0]
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
|
-
fillerColor: L[e ||
|
|
137
|
+
fillerColor: L[e || r][1],
|
|
138
138
|
borderColor: null,
|
|
139
139
|
textStyle: {
|
|
140
|
-
color: g[e ||
|
|
140
|
+
color: g[e || r]
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
143
|
{
|
|
@@ -153,65 +153,65 @@ const I = /* @__PURE__ */ c((o, t, e, r) => {
|
|
|
153
153
|
showDataShadow: !0
|
|
154
154
|
}
|
|
155
155
|
] : null;
|
|
156
|
-
}, "setDataZoom"), Z = /* @__PURE__ */
|
|
156
|
+
}, "setDataZoom"), Z = /* @__PURE__ */ p((o, t) => {
|
|
157
157
|
const { seriesData: e } = o, {
|
|
158
|
-
type:
|
|
159
|
-
showBarFont:
|
|
158
|
+
type: n = "simple",
|
|
159
|
+
showBarFont: s = !0,
|
|
160
160
|
labelPosition: a = "inside",
|
|
161
161
|
smooth: l = !0,
|
|
162
|
-
areaStyle:
|
|
163
|
-
showBackground:
|
|
164
|
-
theme:
|
|
165
|
-
name:
|
|
166
|
-
lineBar:
|
|
167
|
-
axis:
|
|
162
|
+
areaStyle: i = void 0,
|
|
163
|
+
showBackground: u,
|
|
164
|
+
theme: d,
|
|
165
|
+
name: y,
|
|
166
|
+
lineBar: c,
|
|
167
|
+
axis: m
|
|
168
168
|
} = t;
|
|
169
|
-
return
|
|
169
|
+
return n === "multiple" ? (e || []).map((h, f) => {
|
|
170
170
|
const x = {
|
|
171
|
-
name:
|
|
172
|
-
type:
|
|
173
|
-
emphasis:
|
|
171
|
+
name: h.name,
|
|
172
|
+
type: h.type,
|
|
173
|
+
emphasis: h.emphasis || {
|
|
174
174
|
focus: "series"
|
|
175
175
|
},
|
|
176
176
|
smooth: l,
|
|
177
|
-
areaStyle:
|
|
177
|
+
areaStyle: i || {
|
|
178
178
|
opacity: 0.2
|
|
179
179
|
},
|
|
180
180
|
label: {
|
|
181
|
-
show:
|
|
181
|
+
show: s,
|
|
182
182
|
position: a
|
|
183
183
|
},
|
|
184
|
-
showBackground:
|
|
184
|
+
showBackground: u,
|
|
185
185
|
backgroundStyle: {
|
|
186
|
-
color: A[
|
|
186
|
+
color: A[d || r]
|
|
187
187
|
},
|
|
188
|
-
itemStyle:
|
|
189
|
-
data:
|
|
188
|
+
itemStyle: h.itemStyle || {},
|
|
189
|
+
data: h.data || []
|
|
190
190
|
};
|
|
191
|
-
return
|
|
191
|
+
return c && (m !== "y" && f === 1 ? x.yAxisIndex = f : x.yAxisIndex && delete x.yAxisIndex), x;
|
|
192
192
|
}) : [
|
|
193
193
|
{
|
|
194
|
-
name:
|
|
194
|
+
name: y,
|
|
195
195
|
label: {
|
|
196
|
-
show:
|
|
196
|
+
show: s,
|
|
197
197
|
position: a
|
|
198
198
|
},
|
|
199
|
-
showBackground:
|
|
199
|
+
showBackground: u,
|
|
200
200
|
backgroundStyle: {
|
|
201
|
-
color: A[
|
|
201
|
+
color: A[d || r]
|
|
202
202
|
},
|
|
203
203
|
data: e || [],
|
|
204
204
|
smooth: l,
|
|
205
205
|
// 设置填充透明度
|
|
206
|
-
areaStyle:
|
|
206
|
+
areaStyle: i || { opacity: 0.2 },
|
|
207
207
|
type: "line"
|
|
208
208
|
}
|
|
209
209
|
];
|
|
210
|
-
}, "setSeries"), z = /* @__PURE__ */
|
|
211
|
-
const { theme: e, barColorList:
|
|
210
|
+
}, "setSeries"), z = /* @__PURE__ */ p((o, t) => {
|
|
211
|
+
const { theme: e, barColorList: n } = t, s = {
|
|
212
212
|
textStyle: {},
|
|
213
|
-
backgroundColor:
|
|
214
|
-
color:
|
|
213
|
+
backgroundColor: R[e || r],
|
|
214
|
+
color: n || _[e || r],
|
|
215
215
|
legend: T(t),
|
|
216
216
|
grid: F(t),
|
|
217
217
|
xAxis: C(o, t, "x"),
|
|
@@ -219,12 +219,12 @@ const I = /* @__PURE__ */ c((o, t, e, r) => {
|
|
|
219
219
|
series: Z(o, t),
|
|
220
220
|
dataZoom: E(t)
|
|
221
221
|
}, a = H(t);
|
|
222
|
-
return a && (
|
|
222
|
+
return a && (s.tooltip = a), s;
|
|
223
223
|
}, "setOption");
|
|
224
224
|
function W(o = {}, t = {}) {
|
|
225
225
|
return z(o, t);
|
|
226
226
|
}
|
|
227
|
-
|
|
227
|
+
p(W, "dealOption");
|
|
228
228
|
export {
|
|
229
229
|
W as dealOption
|
|
230
230
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */r=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */r=t.default(e.default,[["__scopeId","data-v-a5e4ec76"]]);exports.default=r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a5e4ec76"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|