@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.
Files changed (31) hide show
  1. package/README.md +1 -5
  2. package/lib/index.css +1 -1
  3. package/lib/index.css.br +0 -0
  4. package/lib/index.css.gz +0 -0
  5. package/lib/packages/ls-components/components/chart/Index.vue/index.cjs +1 -1
  6. package/lib/packages/ls-components/components/chart/Index.vue/index.js +2 -2
  7. package/lib/packages/ls-components/components/chart/config/template/bar/index.cjs +1 -1
  8. package/lib/packages/ls-components/components/chart/config/template/bar/index.js +61 -61
  9. package/lib/packages/ls-components/components/chart/config/template/bar/index.js.br +0 -0
  10. package/lib/packages/ls-components/components/chart/config/template/bar/index.js.gz +0 -0
  11. package/lib/packages/ls-components/components/chart/config/template/line/index.cjs +1 -1
  12. package/lib/packages/ls-components/components/chart/config/template/line/index.js +75 -75
  13. package/lib/packages/ls-components/components/chart/config/template/line/index.js.br +0 -0
  14. package/lib/packages/ls-components/components/chart/config/template/line/index.js.gz +0 -0
  15. package/lib/packages/ls-components/components/form/Form.vue/index.cjs +1 -1
  16. package/lib/packages/ls-components/components/form/Form.vue/index.js +2 -2
  17. package/lib/packages/ls-components/components/form/Form.vue/index2.cjs +1 -1
  18. package/lib/packages/ls-components/components/form/Form.vue/index2.js +109 -103
  19. package/lib/packages/ls-components/components/form/Form.vue/index2.js.br +0 -0
  20. package/lib/packages/ls-components/components/form/Form.vue/index2.js.gz +0 -0
  21. package/lib/packages/ls-components/components/form/types/index.cjs +1 -1
  22. package/lib/packages/ls-components/components/form/types/index.js +12 -2
  23. package/lib/packages/ls-components/components/form/types/index.js.br +0 -0
  24. package/lib/packages/ls-components/components/form/types/index.js.gz +0 -0
  25. package/lib/packages/ls-components/components/upload/Index.vue/index.cjs +1 -1
  26. package/lib/packages/ls-components/components/upload/Index.vue/index.js +2 -2
  27. package/lib/packages/ls-components/components/upload/Index.vue/index2.cjs +1 -1
  28. package/lib/packages/ls-components/components/upload/Index.vue/index2.js +22 -23
  29. package/lib/packages/ls-components/components/upload/Index.vue/index2.js.br +0 -0
  30. package/lib/packages/ls-components/components/upload/Index.vue/index2.js.gz +0 -0
  31. 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-b09c0399"]]);exports.default=u;
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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b09c0399"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2cc80a46"]]);
5
5
  export {
6
- m as default
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 E=require("../../../../_utils/utils/index.cjs"),o=require("../../base/index.cjs"),y=d((r,t,e,a)=>{const{name:i,seriesName:s,value:l,color:O}=r,u=e==0?`<div class="name">${i}</div>`:"",n=t&&l!=="-"&&s!=="temp"?`<span class="serise-name">${t?s:""}</span>`:"",c=l!=="-"&&s!=="temp"?`<span class="value">${l||"-"}</span>`:"",m=l!=="-"&&s!=="temp"?`<div class="content-badge" style="background-color: ${typeof O=="string"?O:a};"></div>`:"";return` ${u} <div class="content"> <div class="serise-wrap"> ${m} ${n} </div> ${c} </div> `},"setTooltipFormat"),A=d(r=>{let{legend:t,tooltip:e="shadow",theme:a="default",tooltipFormatter:i,barColorList:s}=r;const l=s||o.BAR_COLOR_MAP[a||o.DEF_THEME][0];return i=i||function(O){let u=`<div class="ls-bar-tooltip-wrap ${a}">`;return O.forEach((n,c)=>{u+=y(n,t,c,l)}),u+"</div>"},e?{trigger:"axis",axisPointer:{type:e,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:i}:null},"setTooltip"),C=d(r=>{const{legend:t,legendIcon:e="rect",theme:a}=r;return{type:"scroll",data:t||[],icon:e,itemWidth:12,itemHeight:10,textStyle:{color:o.FONT_COLOR_MAP[a||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"),p=d((r,t,e)=>{const{axisData:a,seriesData:i}=r,{axis:s="x",theme:l,dynamicAxis:O,type:u="simple"}=t,n={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&&(n.data=a),s!==e&&O&&["simple","multiBar"].includes(u)){let c=[];u==="simple"?c=(i||[]).map(_=>E.numberFixed(_)):u==="multiBar"&&(c=i.reduce((_,T)=>_.concat(T.data),[]));const m=Math.max(...c),g=Math.min(...c),{aInterval:f,aMax:M,aMin:h}=E.formatChartAxis(m,g);n.min=h,n.max=M,n.interval=f}return[n]},"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"),b=d((r,t,e)=>{const a=r==="x"?"top":"left";let i="inside";return e?i=o.LABEL_POSITION_MAP[t][a]:i=o.LABEL_POSITION_MAP[t][`-${a}`],i},"getPos"),D=d((r,t,e)=>{const{type:a="simple",showBarFont:i=!0,labelPosition:s="inside",axis:l="x",showBackground:O,theme:u}=r,n={type:"bar",name:t.name,label:{show:i,position:s,formatter:d(function(c){const m=c.value;return m!==0?m:""},"formatter")},showBackground:O,backgroundStyle:{color:o.BG_BAR_COLOR_MAP[u||o.DEF_THEME]},data:t.data||[],barCategoryGap:"30%",barWidth:a==="multiBar"?"auto":"40%",barGap:"4%"};return["negative","categoryStack","waterfall"].includes(a)&&(n.stack="total",a==="negative"&&["both","insideBoth"].includes(s)?n.label.position=b(l,s,(t.data||[]).reduce((c,m)=>c+m)>0):a==="categoryStack"&&e>0&&(n.itemStyle={borderColor:o.BG_COLOR_MAP[u||o.DEF_THEME],borderWidth:2})),a==="waterfall"&&(n.itemStyle=e==0?{borderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"}:null,n.emphasis=e==0?{itemStyle:{borderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"}}:null,n.label=t.label||{show:e>0&&i,position:s,formatter:d(function(c){const m=c.value;return m!==0?m:""},"formatter")},["both","insideBoth"].includes(s)&&(n.label.position=b(l,s,e===1))),n},"setSeriesOption"),F=d((r,t)=>{const{seriesData:e}=r,{type:a="simple",legend:i=[]}=t;return(a=="simple"?[{name:i[0],data:e}]:e||[]).map((s,l)=>D(t,s,l))},"setSeries"),S=d((r,t)=>{const{theme:e,barColorList:a}=t,i={textStyle:{},backgroundColor:o.BG_COLOR_MAP[e||o.DEF_THEME],color:a||o.BAR_COLOR_MAP[e||o.DEF_THEME],legend:C(t),grid:v(t),xAxis:p(r,t,"x"),yAxis:p(r,t,"y"),series:F(r,t),dataZoom:x(t)},s=A(t);return s&&(i.tooltip=s),i},"setOption");function H(r={},t={}){return S(r,t)}d(H,"dealOption");exports.dealOption=H;
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 O, DEF_THEME as n, BAR_COLOR_MAP as C, TOOLTIP_COLOR_MAP as g, FONT_COLOR_MAP as f, DATA_ZOOM_COLOR as h, SPLIT_LINE_COLOR as k, BG_BAR_COLOR_MAP as D, LABEL_POSITION_MAP as y } from "../../base/index.js";
5
- const R = /* @__PURE__ */ d((o, t, e, r) => {
6
- const { name: s, seriesName: a, value: l, color: p } = o, m = e == 0 ? `<div class="name">${s}</div>` : "", i = t && l !== "-" && a !== "temp" ? `<span class="serise-name">${t ? a : ""}</span>` : "", c = l !== "-" && a !== "temp" ? `<span class="value">${l || "-"}</span>` : "", u = l !== "-" && a !== "temp" ? `<div class="content-badge" style="background-color: ${typeof p == "string" ? p : r};"></div>` : "";
7
- return ` ${m} <div class="content"> <div class="serise-wrap"> ${u} ${i} </div> ${c} </div> `;
8
- }, "setTooltipFormat"), I = /* @__PURE__ */ d((o) => {
9
- let { legend: t, tooltip: e = "shadow", theme: r = "default", tooltipFormatter: s, barColorList: a } = o;
10
- const l = a || C[r || n][0];
11
- return s = s || function(p) {
12
- let m = `<div class="ls-bar-tooltip-wrap ${r}">`;
13
- return p.forEach((i, c) => {
14
- m += R(i, t, c, l);
15
- }), m + "</div>";
16
- }, e ? {
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: e,
19
+ type: s,
20
20
  z: 1,
21
21
  label: {
22
- color: g[r || n].color
22
+ color: h[r || i].color
23
23
  }
24
24
  },
25
25
  textStyle: {
26
- color: f[r || n]
26
+ color: f[r || i]
27
27
  },
28
28
  padding: 12,
29
- backgroundColor: g[r || n].bgColor,
30
- extraCssText: `box-shadow: ${g[r || n].shadowColor};`,
31
- formatter: s
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: r } = o;
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[r || n],
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"), x = /* @__PURE__ */ d((o, t, e) => {
62
- const { axisData: r, seriesData: s } = o, { axis: a = "x", theme: l, dynamicAxis: p, type: m = "simple" } = t, i = {
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 || n]
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 || n]
80
+ color: k[l || i]
81
81
  }
82
82
  }
83
83
  };
84
- if (a == e && (i.data = r), a !== e && p && ["simple", "multiBar"].includes(m)) {
84
+ if (a == e && (n.data = s), a !== e && p && ["simple", "multiBar"].includes(u)) {
85
85
  let c = [];
86
- m === "simple" ? c = (s || []).map((b) => M(b)) : m === "multiBar" && (c = s.reduce((b, _) => b.concat(_.data), []));
87
- const u = Math.max(...c), w = Math.min(...c), { aInterval: S, aMax: L, aMin: A } = $(u, w);
88
- i.min = A, i.max = L, i.interval = S;
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 [i];
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: h[e || n][0]
102
+ color: y[e || i][0]
103
103
  }
104
104
  },
105
- fillerColor: h[e || n][1],
105
+ fillerColor: y[e || i][1],
106
106
  borderColor: null,
107
107
  textStyle: {
108
- color: f[e || n]
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"), v = /* @__PURE__ */ d((o, t, e) => {
126
- const r = o === "x" ? "top" : "left";
127
- let s = "inside";
128
- return e ? s = y[t][r] : s = y[t][`-${r}`], s;
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: r = "simple", showBarFont: s = !0, labelPosition: a = "inside", axis: l = "x", showBackground: p, theme: m } = o, i = {
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: s,
134
+ show: r,
135
135
  position: a,
136
136
  formatter: /* @__PURE__ */ d(function(c) {
137
- const u = c.value;
138
- return u !== 0 ? u : "";
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[m || n]
143
+ color: D[u || i]
144
144
  },
145
145
  data: t.data || [],
146
146
  barCategoryGap: "30%",
147
- barWidth: r === "multiBar" ? "auto" : "40%",
147
+ barWidth: s === "multiBar" ? "auto" : "40%",
148
148
  barGap: "4%"
149
149
  };
150
- return ["negative", "categoryStack", "waterfall"].includes(r) && (i.stack = "total", r === "negative" && ["both", "insideBoth"].includes(a) ? i.label.position = v(l, a, (t.data || []).reduce((c, u) => c + u) > 0) : r === "categoryStack" && e > 0 && (i.itemStyle = {
151
- borderColor: O[m || n],
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
- })), r === "waterfall" && (i.itemStyle = e == 0 ? {
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, i.emphasis = e == 0 ? {
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, i.label = t.label || {
162
- show: e > 0 && s,
161
+ } : null, n.label = t.label || {
162
+ show: e > 0 && r,
163
163
  position: a,
164
164
  formatter: /* @__PURE__ */ d(function(c) {
165
- const u = c.value;
166
- return u !== 0 ? u : "";
165
+ const m = c.value;
166
+ return m !== 0 ? m : "";
167
167
  }, "formatter")
168
- }, ["both", "insideBoth"].includes(a) && (i.label.position = v(l, a, e === 1))), i;
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: r = "simple", legend: s = [] } = t;
171
- return (r == "simple" ? [{ name: s[0], data: e }] : e || []).map((a, l) => F(t, a, l));
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: r } = t, s = {
173
+ const { theme: e, barColorList: s } = t, r = {
174
174
  textStyle: {},
175
- backgroundColor: O[e || n],
176
- color: r || C[e || n],
175
+ backgroundColor: C[e || i],
176
+ color: s || w[e || i],
177
177
  legend: T(t),
178
178
  grid: H(t),
179
- xAxis: x(o, t, "x"),
180
- yAxis: x(o, t, "y"),
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 = I(t);
184
- return a && (s.tooltip = a), s;
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);
@@ -1 +1 @@
1
- "use strict";var A=Object.defineProperty;var c=(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=c((a,t,o,r)=>{const{name:i,seriesName:s,value:l,color:n}=a,d=o==0?`<div class="name">${i}</div>`:"",E=t&&l!=="-"&&s!=="temp"?`<span class="serise-name">${t?s:""}</span>`:"",O=l!=="-"&&s!=="temp"?`<span class="value">${l||"-"}</span>`:"",_=l!=="-"&&s!=="temp"?`<div class="content-badge" style="background-color: ${typeof n=="string"?n:r};"></div>`:"";return` ${d} <div class="content"> <div class="serise-wrap"> ${_} ${E} </div> ${O} </div> `},"setTooltipFormat"),b=c(a=>{let{legend:t,tooltip:o="shadow",theme:r,tooltipFormatter:i,barColorList:s}=a;const l=s||e.BAR_COLOR_MAP[r||e.DEF_THEME][0];return i=i||function(n){let d=`<div class="ls-bar-tooltip-wrap ${r}">`;return n.forEach((E,O)=>{d+=C(E,t,O,l)}),d+"</div>"},o?{trigger:"axis",axisPointer:{type:o,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:i}:null},"setTooltip"),D=c(a=>{const{legend:t,legendIcon:o="rect",theme:r}=a;return{type:"scroll",data:t||[],icon:o,itemWidth:12,itemHeight:10,textStyle:{color:e.FONT_COLOR_MAP[r||e.DEF_THEME],fontSize:12,height:10,rich:{a:{verticalAlign:"middle"}}}}},"setLegend"),F=c(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=c((a,t,o)=>{const{axisData:r,seriesData:i}=a,{axis:s="x",theme:l,lineBar:n,dynamicAxis:d,type:E}=t;let O=[{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?r:[]}];if(s!==o&&(n&&(O=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"}]),d)){let _=[];E==="multiple"&&(!n||s=="y"&&n)&&(_=i.reduce((u,m)=>u.concat(m.data),[])),O.map((u,m)=>{var L;E==="multiple"?n&&s=="x"&&(_=(((L=i[m])==null?void 0:L.data)||[]).map(h=>M.numberFixed(h))):_=(i||[]).map(h=>M.numberFixed(h));const y=Math.max(..._),p=Math.min(..._),{aInterval:T,aMax:f,aMin:g}=M.formatChartAxis(y,p);return u.min=g,u.max=f,u.interval=T,u})}return O},"setAxis"),S=c(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=c((a,t)=>{const{seriesData:o}=a,{type:r="simple",showBarFont:i=!0,labelPosition:s="inside",smooth:l=!0,areaStyle:n=void 0,showBackground:d,theme:E,name:O,lineBar:_,axis:u}=t;return r==="multiple"?(o||[]).map((m,y)=>{const p={name:m.name,type:m.type,emphasis:m.emphasis||{focus:"series"},smooth:l,areaStyle:n||{opacity:.2},label:{show:i,position:s},showBackground:d,backgroundStyle:{color:e.BG_BAR_COLOR_MAP[E||e.DEF_THEME]},itemStyle:m.itemStyle||{},data:m.data||[]};return _&&(u!=="y"&&y===1?p.yAxisIndex=y:p.yAxisIndex&&delete p.yAxisIndex),p}):[{name:O,label:{show:i,position:s},showBackground:d,backgroundStyle:{color:e.BG_BAR_COLOR_MAP[E||e.DEF_THEME]},data:o||[],smooth:l,areaStyle:n||{opacity:.2},type:"line"}]},"setSeries"),H=c((a,t)=>{const{theme:o,barColorList:r}=t,i={textStyle:{},backgroundColor:e.BG_COLOR_MAP[o||e.DEF_THEME],color:r||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&&(i.tooltip=s),i},"setOption");function R(a={},t={}){return H(a,t)}c(R,"dealOption");exports.dealOption=R;
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 c = (o, t) => D(o, "name", { value: t, configurable: !0 });
3
- import { numberFixed as w, formatChartAxis as R } from "../../../../_utils/utils/index.js";
4
- import { BG_COLOR_MAP as k, DEF_THEME as s, 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 I = /* @__PURE__ */ c((o, t, e, r) => {
6
- const { name: i, seriesName: a, value: l, color: n } = o, d = e == 0 ? `<div class="name">${i}</div>` : "", m = t && l !== "-" && a !== "temp" ? `<span class="serise-name">${t ? a : ""}</span>` : "", p = l !== "-" && a !== "temp" ? `<span class="value">${l || "-"}</span>` : "", u = l !== "-" && a !== "temp" ? `<div class="content-badge" style="background-color: ${typeof n == "string" ? n : r};"></div>` : "";
7
- return ` ${d} <div class="content"> <div class="serise-wrap"> ${u} ${m} </div> ${p} </div> `;
8
- }, "setTooltipFormat"), H = /* @__PURE__ */ c((o) => {
9
- let { legend: t, tooltip: e = "shadow", theme: r, tooltipFormatter: i, barColorList: a } = o;
10
- const l = a || _[r || s][0];
11
- return i = i || function(n) {
12
- let d = `<div class="ls-bar-tooltip-wrap ${r}">`;
13
- return n.forEach((m, p) => {
14
- d += I(m, t, p, l);
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
- }, e ? {
16
+ }, n ? {
17
17
  trigger: "axis",
18
18
  axisPointer: {
19
- type: e,
19
+ type: n,
20
20
  z: 1,
21
21
  label: {
22
- color: v[r || s].color
22
+ color: v[s || r].color
23
23
  }
24
24
  },
25
25
  textStyle: {
26
- color: g[r || s]
26
+ color: g[s || r]
27
27
  },
28
28
  padding: 12,
29
- backgroundColor: v[r || s].bgColor,
30
- extraCssText: `box-shadow: ${v[r || s].shadowColor};`,
31
- formatter: i
29
+ backgroundColor: v[s || r].bgColor,
30
+ extraCssText: `box-shadow: ${v[s || r].shadowColor};`,
31
+ formatter: a
32
32
  } : null;
33
- }, "setTooltip"), T = /* @__PURE__ */ c((o) => {
34
- const { legend: t, legendIcon: e = "rect", theme: r } = o;
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[r || s],
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__ */ c((o) => {
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__ */ c((o, t, e) => {
62
- const { axisData: r, seriesData: i } = o, { axis: a = "x", theme: l, lineBar: n, dynamicAxis: d, type: m } = t;
63
- let p = [
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 || s]
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 || s]
82
+ color: O[l || r]
83
83
  }
84
84
  },
85
- data: a == e ? r : []
85
+ data: a == e ? n : []
86
86
  }
87
87
  ];
88
- if (a !== e && (n && (p = a == "x" ? [
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 || s]
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 || s],
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
- ]), d)) {
114
- let u = [];
115
- m === "multiple" && (!n || a == "y" && n) && (u = i.reduce((h, y) => h.concat(y.data), [])), p.map((h, y) => {
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
- m === "multiple" ? n && a == "x" && (u = (((S = i[y]) == null ? void 0 : S.data) || []).map((b) => w(b))) : u = (i || []).map((b) => w(b));
118
- const f = Math.max(...u), x = Math.min(...u), { aInterval: M, aMax: B, aMin: $ } = R(f, x);
119
- return h.min = $, h.max = B, h.interval = M, h;
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 p;
123
- }, "setAxis"), E = /* @__PURE__ */ c((o) => {
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 || s][0]
134
+ color: L[e || r][0]
135
135
  }
136
136
  },
137
- fillerColor: L[e || s][1],
137
+ fillerColor: L[e || r][1],
138
138
  borderColor: null,
139
139
  textStyle: {
140
- color: g[e || s]
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__ */ c((o, t) => {
156
+ }, "setDataZoom"), Z = /* @__PURE__ */ p((o, t) => {
157
157
  const { seriesData: e } = o, {
158
- type: r = "simple",
159
- showBarFont: i = !0,
158
+ type: n = "simple",
159
+ showBarFont: s = !0,
160
160
  labelPosition: a = "inside",
161
161
  smooth: l = !0,
162
- areaStyle: n = void 0,
163
- showBackground: d,
164
- theme: m,
165
- name: p,
166
- lineBar: u,
167
- axis: h
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 r === "multiple" ? (e || []).map((y, f) => {
169
+ return n === "multiple" ? (e || []).map((h, f) => {
170
170
  const x = {
171
- name: y.name,
172
- type: y.type,
173
- emphasis: y.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: n || {
177
+ areaStyle: i || {
178
178
  opacity: 0.2
179
179
  },
180
180
  label: {
181
- show: i,
181
+ show: s,
182
182
  position: a
183
183
  },
184
- showBackground: d,
184
+ showBackground: u,
185
185
  backgroundStyle: {
186
- color: A[m || s]
186
+ color: A[d || r]
187
187
  },
188
- itemStyle: y.itemStyle || {},
189
- data: y.data || []
188
+ itemStyle: h.itemStyle || {},
189
+ data: h.data || []
190
190
  };
191
- return u && (h !== "y" && f === 1 ? x.yAxisIndex = f : x.yAxisIndex && delete x.yAxisIndex), x;
191
+ return c && (m !== "y" && f === 1 ? x.yAxisIndex = f : x.yAxisIndex && delete x.yAxisIndex), x;
192
192
  }) : [
193
193
  {
194
- name: p,
194
+ name: y,
195
195
  label: {
196
- show: i,
196
+ show: s,
197
197
  position: a
198
198
  },
199
- showBackground: d,
199
+ showBackground: u,
200
200
  backgroundStyle: {
201
- color: A[m || s]
201
+ color: A[d || r]
202
202
  },
203
203
  data: e || [],
204
204
  smooth: l,
205
205
  // 设置填充透明度
206
- areaStyle: n || { opacity: 0.2 },
206
+ areaStyle: i || { opacity: 0.2 },
207
207
  type: "line"
208
208
  }
209
209
  ];
210
- }, "setSeries"), z = /* @__PURE__ */ c((o, t) => {
211
- const { theme: e, barColorList: r } = t, i = {
210
+ }, "setSeries"), z = /* @__PURE__ */ p((o, t) => {
211
+ const { theme: e, barColorList: n } = t, s = {
212
212
  textStyle: {},
213
- backgroundColor: k[e || s],
214
- color: r || _[e || s],
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 && (i.tooltip = a), i;
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
- c(W, "dealOption");
227
+ p(W, "dealOption");
228
228
  export {
229
229
  W as dealOption
230
230
  };
@@ -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-48b38c22"]]);exports.default=r;
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 _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-48b38c22"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a5e4ec76"]]);
5
5
  export {
6
- _ as default
6
+ e as default
7
7
  };