st-comp 0.0.71 → 0.0.72

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 (97) hide show
  1. package/{lib/ChartLayout.cjs.js → es/ChartLayout.cjs} +1 -1
  2. package/{lib/ChartLayout.es.js → es/ChartLayout.js} +15 -14
  3. package/es/Dialog.cjs +1 -0
  4. package/{lib/Dialog.es.js → es/Dialog.js} +21 -20
  5. package/{lib/HeatMap.cjs.js → es/HeatMap.cjs} +1 -1
  6. package/{lib/HeatMap.es.js → es/HeatMap.js} +21 -20
  7. package/{lib/Kline.es.js → es/Kline.js} +82 -82
  8. package/{lib/KlineNew.cjs.js → es/KlineNew.cjs} +1 -1
  9. package/es/LinearLegend.cjs +1 -0
  10. package/{lib/LinearLegend.es.js → es/LinearLegend.js} +20 -19
  11. package/{lib/Map.cjs.js → es/Map.cjs} +1 -1
  12. package/{lib/Map.es.js → es/Map.js} +25 -24
  13. package/es/Pagination.cjs +1 -0
  14. package/{lib/Pagination.es.js → es/Pagination.js} +103 -102
  15. package/es/Pie.cjs +2 -0
  16. package/{lib/Pie.es.js → es/Pie.js} +20 -19
  17. package/{lib/Table.cjs.js → es/Table.cjs} +3 -3
  18. package/{lib/Table.es.js → es/Table.js} +345 -344
  19. package/{lib/TreeMap.cjs.js → es/TreeMap.cjs} +2 -2
  20. package/{lib/TreeMap.es.js → es/TreeMap.js} +17 -16
  21. package/{lib/VarietySearch.cjs.js → es/VarietySearch.cjs} +2 -2
  22. package/{lib/VarietySearch.es.js → es/VarietySearch.js} +365 -364
  23. package/{lib/VirtualTable.cjs.js → es/VirtualTable.cjs} +5 -5
  24. package/{lib/VirtualTable.es.js → es/VirtualTable.js} +203 -202
  25. package/es/style.css +1 -0
  26. package/es/talib.wasm +0 -0
  27. package/es/vite.svg +1 -0
  28. package/lib/bundle.js +144404 -0
  29. package/lib/bundle.umd.cjs +139 -0
  30. package/lib/style.css +1 -1
  31. package/package.json +6 -4
  32. package/packages/ChartLayout/index.ts +5 -5
  33. package/packages/Dialog/index.ts +5 -5
  34. package/packages/HeatMap/index.ts +5 -5
  35. package/packages/LinearLegend/index.ts +5 -5
  36. package/packages/Map/index.ts +5 -5
  37. package/packages/Pagination/index.ts +5 -5
  38. package/packages/Pie/index.ts +5 -5
  39. package/packages/Table/index.ts +5 -5
  40. package/packages/TreeMap/index.ts +5 -5
  41. package/packages/VarietySearch/index.ts +5 -5
  42. package/packages/VirtualTable/index.ts +5 -5
  43. package/vitePlugins/createExportFile.ts +5 -5
  44. package/lib/Dialog.cjs.js +0 -1
  45. package/lib/LinearLegend.cjs.js +0 -1
  46. package/lib/Pagination.cjs.js +0 -1
  47. package/lib/Pie.cjs.js +0 -2
  48. package/lib/bundle.cjs.js +0 -1
  49. package/lib/bundle.es.js +0 -46
  50. /package/{lib/Kline.cjs.js → es/Kline.cjs} +0 -0
  51. /package/{lib/KlineNew.es.js → es/KlineNew.js} +0 -0
  52. /package/{lib → es}/_commonjsHelpers-10dfc225.js +0 -0
  53. /package/{lib → es}/_commonjsHelpers-87b0abe8.cjs +0 -0
  54. /package/{lib → es}/_plugin-vue_export-helper-dad06003.js +0 -0
  55. /package/{lib → es}/_plugin-vue_export-helper-f246444f.cjs +0 -0
  56. /package/{lib → es}/base-4865d432.cjs +0 -0
  57. /package/{lib → es}/base-a240bf62.js +0 -0
  58. /package/{lib → es}/bundle.umd-4967d574.js +0 -0
  59. /package/{lib → es}/bundle.umd-c5698c50.cjs +0 -0
  60. /package/{lib → es}/castArray-3341cbb4.cjs +0 -0
  61. /package/{lib → es}/castArray-a723a736.js +0 -0
  62. /package/{lib → es}/config-provider-3db4dac6.js +0 -0
  63. /package/{lib → es}/config-provider-cf4edc1e.cjs +0 -0
  64. /package/{lib → es}/el-button-c24606d0.cjs +0 -0
  65. /package/{lib → es}/el-button-fa6a5742.js +0 -0
  66. /package/{lib → es}/el-empty-282e5e93.js +0 -0
  67. /package/{lib → es}/el-empty-608948d9.cjs +0 -0
  68. /package/{lib → es}/el-icon-7718f55e.cjs +0 -0
  69. /package/{lib → es}/el-icon-d9ef9ccc.js +0 -0
  70. /package/{lib → es}/el-overlay-7fceb816.cjs +0 -0
  71. /package/{lib → es}/el-overlay-9b7bdd18.js +0 -0
  72. /package/{lib → es}/el-scrollbar-7dc53299.js +0 -0
  73. /package/{lib → es}/el-scrollbar-bc381e35.cjs +0 -0
  74. /package/{lib → es}/el-select-85ed2643.js +0 -0
  75. /package/{lib → es}/el-select-a50741c1.cjs +0 -0
  76. /package/{lib → es}/el-tag-308f715a.js +0 -0
  77. /package/{lib → es}/el-tag-87fd3960.cjs +0 -0
  78. /package/{lib → es}/el-tooltip-0ea8fbf8.cjs +0 -0
  79. /package/{lib → es}/el-tooltip-4ed993c7.js +0 -0
  80. /package/{lib → es}/focus-trap-2a734f35.cjs +0 -0
  81. /package/{lib → es}/focus-trap-6922b96b.js +0 -0
  82. /package/{lib → es}/index-1508a06b.js +0 -0
  83. /package/{lib → es}/index-48a9f60d.cjs +0 -0
  84. /package/{lib → es}/index-657047bb.js +0 -0
  85. /package/{lib → es}/index-eea0bcb3.cjs +0 -0
  86. /package/{lib → es}/index.esm-8d9a2abe.js +0 -0
  87. /package/{lib → es}/index.esm-94a95a2a.cjs +0 -0
  88. /package/{lib → es}/raf-5e5c53db.cjs +0 -0
  89. /package/{lib → es}/raf-fc8a56cf.js +0 -0
  90. /package/{lib → es}/scroll-bb8039ba.cjs +0 -0
  91. /package/{lib → es}/scroll-cfdae01b.js +0 -0
  92. /package/{lib → es}/typescript-7ae59c4c.js +0 -0
  93. /package/{lib → es}/typescript-b63f8e83.cjs +0 -0
  94. /package/{lib → es}/vnode-a9714179.js +0 -0
  95. /package/{lib → es}/vnode-abafec9e.cjs +0 -0
  96. /package/{lib → es}/zh-cn-92978806.js +0 -0
  97. /package/{lib → es}/zh-cn-d4df7172.cjs +0 -0
@@ -8,8 +8,8 @@ import { b as Le } from "./bundle.umd-4967d574.js";
8
8
  import { i as Tt, t as It } from "./index.esm-8d9a2abe.js";
9
9
  import { u as mt } from "./el-scrollbar-7dc53299.js";
10
10
  import { a as Dt, b as Lt, E as ot, m as vt } from "./index-1508a06b.js";
11
- import { E as J, u as ht, i as Ne, a as We } from "./focus-trap-6922b96b.js";
12
- import { T as xt } from "./index-657047bb.js";
11
+ import { E as J, u as xt, i as Ne, a as We } from "./focus-trap-6922b96b.js";
12
+ import { T as ht } from "./index-657047bb.js";
13
13
  import { m as At } from "./typescript-7ae59c4c.js";
14
14
  import { f as Yt } from "./vnode-a9714179.js";
15
15
  import { E as Ct, a as bt } from "./el-select-85ed2643.js";
@@ -204,7 +204,7 @@ function at(e, n) {
204
204
  function Pt(e) {
205
205
  return O(() => {
206
206
  const a = e.backgroundColor;
207
- return a ? new xt(a).shade(20).toString() : "";
207
+ return a ? new ht(a).shade(20).toString() : "";
208
208
  });
209
209
  }
210
210
  const it = (e, n) => {
@@ -261,7 +261,7 @@ var Ue = G({
261
261
  name: ye,
262
262
  props: Rt,
263
263
  setup(e, { slots: n, expose: a }) {
264
- ht({
264
+ xt({
265
265
  from: "popper-append-to-body",
266
266
  replacement: "teleported",
267
267
  scope: ye,
@@ -305,7 +305,7 @@ var Ue = G({
305
305
  index: e.index,
306
306
  indexPath: t,
307
307
  active: A
308
- }), h = it(i.props, s.level + 1), y = O(() => T.value !== "horizontal" ? {
308
+ }), x = it(i.props, s.level + 1), y = O(() => T.value !== "horizontal" ? {
309
309
  color: P.value
310
310
  } : {
311
311
  borderBottomColor: A.value ? i.props.activeTextColor ? Q.value : "" : "transparent",
@@ -321,7 +321,7 @@ var Ue = G({
321
321
  indexPath: t.value,
322
322
  active: A.value
323
323
  });
324
- }, x = (Y, w = e.showTimeout) => {
324
+ }, h = (Y, w = e.showTimeout) => {
325
325
  var F;
326
326
  Y.type !== "focus" && (i.props.menuTrigger === "click" && i.props.mode === "horizontal" || !i.props.collapse && i.props.mode === "vertical" || e.disabled || (s.mouseInChild.value = !0, M == null || M(), { stop: M } = Ve(() => {
327
327
  i.openMenu(e.index, t.value);
@@ -386,9 +386,9 @@ var Ue = G({
386
386
  r.m("popup-container"),
387
387
  e.popperClass
388
388
  ],
389
- onMouseenter: (W) => x(W, 100),
389
+ onMouseenter: (W) => h(W, 100),
390
390
  onMouseleave: () => E(!0),
391
- onFocus: (W) => x(W, 100)
391
+ onFocus: (W) => h(W, 100)
392
392
  }, [
393
393
  U("ul", {
394
394
  class: [
@@ -396,7 +396,7 @@ var Ue = G({
396
396
  r.m("popup"),
397
397
  r.m(`popup-${v.value}`)
398
398
  ],
399
- style: h.value
399
+ style: x.value
400
400
  }, [(V = n.default) == null ? void 0 : V.call(n)])
401
401
  ]);
402
402
  },
@@ -424,7 +424,7 @@ var Ue = G({
424
424
  return zt(U("ul", {
425
425
  role: "menu",
426
426
  class: [r.b(), r.m("inline")],
427
- style: h.value
427
+ style: x.value
428
428
  }, [(V = n.default) == null ? void 0 : V.call(n)]), [[jt, f.value]]);
429
429
  }
430
430
  })
@@ -439,9 +439,9 @@ var Ue = G({
439
439
  role: "menuitem",
440
440
  ariaHaspopup: !0,
441
441
  ariaExpanded: f.value,
442
- onMouseenter: x,
442
+ onMouseenter: h,
443
443
  onMouseleave: () => E(!0),
444
- onFocus: x
444
+ onFocus: h
445
445
  }, [F]);
446
446
  };
447
447
  }
@@ -484,10 +484,10 @@ const Ut = Se({
484
484
  values: ["dark", "light"],
485
485
  default: "dark"
486
486
  }
487
- }), he = (e) => Array.isArray(e) && e.every((n) => ae(n)), $t = {
488
- close: (e, n) => ae(e) && he(n),
489
- open: (e, n) => ae(e) && he(n),
490
- select: (e, n, a, o) => ae(e) && he(n) && ct(a) && (o === void 0 || o instanceof Promise)
487
+ }), xe = (e) => Array.isArray(e) && e.every((n) => ae(n)), $t = {
488
+ close: (e, n) => ae(e) && xe(n),
489
+ open: (e, n) => ae(e) && xe(n),
490
+ select: (e, n, a, o) => ae(e) && xe(n) && ct(a) && (o === void 0 || o instanceof Promise)
491
491
  };
492
492
  var Vt = G({
493
493
  name: "ElMenu",
@@ -498,12 +498,12 @@ var Vt = G({
498
498
  const T = g.value && M.value[g.value];
499
499
  if (!T || e.mode === "horizontal" || e.collapse)
500
500
  return;
501
- T.indexPath.forEach((h) => {
502
- const y = N.value[h];
503
- y && v(h, y.indexPath);
501
+ T.indexPath.forEach((x) => {
502
+ const y = N.value[x];
503
+ y && v(x, y.indexPath);
504
504
  });
505
505
  }, v = (T, D) => {
506
- d.value.includes(T) || (e.uniqueOpened && (d.value = d.value.filter((h) => D.includes(h))), d.value.push(T), n("open", T, D));
506
+ d.value.includes(T) || (e.uniqueOpened && (d.value = d.value.filter((x) => D.includes(x))), d.value.push(T), n("open", T, D));
507
507
  }, b = (T) => {
508
508
  const D = d.value.indexOf(T);
509
509
  D !== -1 && d.value.splice(D, 1);
@@ -516,29 +516,29 @@ var Vt = G({
516
516
  d.value.includes(T) ? k(T, D) : v(T, D);
517
517
  }, z = (T) => {
518
518
  (e.mode === "horizontal" || e.collapse) && (d.value = []);
519
- const { index: D, indexPath: h } = T;
520
- if (!(We(D) || We(h)))
519
+ const { index: D, indexPath: x } = T;
520
+ if (!(We(D) || We(x)))
521
521
  if (e.router && l) {
522
522
  const y = T.route || D, L = l.push(y).then((m) => (m || (g.value = D), m));
523
- n("select", D, h, { index: D, indexPath: h, route: y }, L);
523
+ n("select", D, x, { index: D, indexPath: x, route: y }, L);
524
524
  } else
525
- g.value = D, n("select", D, h, { index: D, indexPath: h });
525
+ g.value = D, n("select", D, x, { index: D, indexPath: x });
526
526
  }, p = (T) => {
527
- const D = M.value, h = D[T] || g.value && D[g.value] || D[e.defaultActive];
528
- h ? g.value = h.index : g.value = T;
527
+ const D = M.value, x = D[T] || g.value && D[g.value] || D[e.defaultActive];
528
+ x ? g.value = x.index : g.value = T;
529
529
  }, f = () => {
530
530
  var T, D;
531
531
  if (!r.value)
532
532
  return -1;
533
- const h = Array.from((D = (T = r.value) == null ? void 0 : T.childNodes) != null ? D : []).filter((Y) => Y.nodeName !== "#comment" && (Y.nodeName !== "#text" || Y.nodeValue)), y = 64, L = Number.parseInt(getComputedStyle(r.value).paddingLeft, 10), m = Number.parseInt(getComputedStyle(r.value).paddingRight, 10), j = r.value.clientWidth - L - m;
534
- let x = 0, E = 0;
535
- return h.forEach((Y, w) => {
536
- x += Y.offsetWidth || 0, x <= j - y && (E = w + 1);
537
- }), E === h.length ? -1 : E;
533
+ const x = Array.from((D = (T = r.value) == null ? void 0 : T.childNodes) != null ? D : []).filter((Y) => Y.nodeName !== "#comment" && (Y.nodeName !== "#text" || Y.nodeValue)), y = 64, L = Number.parseInt(getComputedStyle(r.value).paddingLeft, 10), m = Number.parseInt(getComputedStyle(r.value).paddingRight, 10), j = r.value.clientWidth - L - m;
534
+ let h = 0, E = 0;
535
+ return x.forEach((Y, w) => {
536
+ h += Y.offsetWidth || 0, h <= j - y && (E = w + 1);
537
+ }), E === x.length ? -1 : E;
538
538
  }, A = (T, D = 33.34) => {
539
- let h;
539
+ let x;
540
540
  return () => {
541
- h && clearTimeout(h), h = setTimeout(() => {
541
+ x && clearTimeout(x), x = setTimeout(() => {
542
542
  T();
543
543
  }, D);
544
544
  };
@@ -597,18 +597,18 @@ var Vt = G({
597
597
  e.mode === "horizontal" && new _t(t.vnode.el, u.namespace.value);
598
598
  }), o({
599
599
  open: (D) => {
600
- const { indexPath: h } = N.value[D];
601
- h.forEach((y) => v(y, h));
600
+ const { indexPath: x } = N.value[D];
601
+ x.forEach((y) => v(y, x));
602
602
  },
603
603
  close: b,
604
604
  handleResize: Q
605
605
  }), () => {
606
606
  var T, D;
607
- let h = (D = (T = a.default) == null ? void 0 : T.call(a)) != null ? D : [];
607
+ let x = (D = (T = a.default) == null ? void 0 : T.call(a)) != null ? D : [];
608
608
  const y = [];
609
609
  if (e.mode === "horizontal" && r.value) {
610
- const j = Yt(h), x = s.value === -1 ? j : j.slice(0, s.value), E = s.value === -1 ? [] : j.slice(s.value);
611
- E != null && E.length && e.ellipsis && (h = x, y.push(U(Ue, {
610
+ const j = Yt(x), h = s.value === -1 ? j : j.slice(0, s.value), E = s.value === -1 ? [] : j.slice(s.value);
611
+ E != null && E.length && e.ellipsis && (x = h, y.push(U(Ue, {
612
612
  index: "sub-menu-more",
613
613
  class: i.e("hide-arrow")
614
614
  }, {
@@ -628,7 +628,7 @@ var Vt = G({
628
628
  [u.m(e.mode)]: !0,
629
629
  [u.m("collapse")]: e.collapse
630
630
  }
631
- }, [...h, ...y]);
631
+ }, [...x, ...y]);
632
632
  return e.collapseTransition && e.mode === "vertical" ? U(Bt, () => m) : m;
633
633
  };
634
634
  }
@@ -644,8 +644,8 @@ const Wt = Se({
644
644
  disabled: Boolean
645
645
  }), Zt = {
646
646
  click: (e) => ae(e.index) && Array.isArray(e.indexPath)
647
- }, xe = "ElMenuItem", Gt = G({
648
- name: xe,
647
+ }, he = "ElMenuItem", Gt = G({
648
+ name: he,
649
649
  components: {
650
650
  ElTooltip: Xe
651
651
  },
@@ -653,9 +653,9 @@ const Wt = Se({
653
653
  emits: Zt,
654
654
  setup(e, { emit: n }) {
655
655
  const a = Fe(), o = fe("rootMenu"), t = q("menu"), l = q("menu-item");
656
- o || pe(xe, "can not inject root menu");
656
+ o || pe(he, "can not inject root menu");
657
657
  const { parentMenu: r, indexPath: u } = at(a, pt(e, "index")), i = fe(`subMenu:${r.value.uid}`);
658
- i || pe(xe, "can not inject sub menu");
658
+ i || pe(he, "can not inject sub menu");
659
659
  const s = O(() => e.index === o.activeIndex), d = Qe({
660
660
  index: e.index,
661
661
  indexPath: u,
@@ -1326,10 +1326,10 @@ const Je = (e) => {
1326
1326
  const { key: P, data: T } = Q;
1327
1327
  if (P === "sellBuy") {
1328
1328
  const D = T.filter((L) => L.time === C.axisValue);
1329
- let h = 0, y = 0;
1329
+ let x = 0, y = 0;
1330
1330
  D.forEach((L) => {
1331
- L.tradeType === "开多" || L.tradeType === "平空" ? h += L.amount : y += L.amount;
1332
- }), h && (A += `<div>买: ${h}</div>`), y && (A += `<div>卖: ${y}</div>`);
1331
+ L.tradeType === "开多" || L.tradeType === "平空" ? x += L.amount : y += L.amount;
1332
+ }), x && (A += `<div>买: ${x}</div>`), y && (A += `<div>卖: ${y}</div>`);
1333
1333
  }
1334
1334
  P === "openClose" && T.forEach((D) => {
1335
1335
  D.time === C.axisValue && (A += D.tooltip);
@@ -1522,7 +1522,7 @@ const Je = (e) => {
1522
1522
  };
1523
1523
  return [...z, Nn(P)];
1524
1524
  }, d)), k.length > 0 && (d = k.reduce((z, p) => {
1525
- const { value: f, text: A, profitValue: C, profitText: Q, lossValue: P, lossText: T, info: D, config: h } = p;
1525
+ const { value: f, text: A, profitValue: C, profitText: Q, lossValue: P, lossText: T, info: D, config: x } = p;
1526
1526
  if (f > N || f < M)
1527
1527
  return z;
1528
1528
  const y = {
@@ -1532,7 +1532,7 @@ const Je = (e) => {
1532
1532
  profitText: Q,
1533
1533
  lossY: a.convertToPixel({ yAxisIndex: 0 }, P),
1534
1534
  lossText: T,
1535
- info: { info: D, config: { ...i, ...h }, event: { ...B } },
1535
+ info: { info: D, config: { ...i, ...x }, event: { ...B } },
1536
1536
  gridLeft: o,
1537
1537
  gridRight: t,
1538
1538
  echartsWidth: a.getWidth(),
@@ -1547,7 +1547,7 @@ const Je = (e) => {
1547
1547
  p.forEach((y) => {
1548
1548
  f[y[1]] ? f[y[1]] += 1 : f[y[1]] = 1;
1549
1549
  });
1550
- const A = p[p.length - 1][1], C = p.reduce((y, L) => y + L[1], 0) / p.length, Q = A - C, P = Tn(p, 1, 50), T = In(p), D = T ? Q / T : 0, h = fn(p, 1, A);
1550
+ const A = p[p.length - 1][1], C = p.reduce((y, L) => y + L[1], 0) / p.length, Q = A - C, P = Tn(p, 1, 50), T = In(p), D = T ? Q / T : 0, x = fn(p, 1, A);
1551
1551
  d = [
1552
1552
  ...d,
1553
1553
  {
@@ -1579,7 +1579,7 @@ const Je = (e) => {
1579
1579
  )}    中值: ${$(P)}    标准差: ${$(
1580
1580
  T
1581
1581
  )}    距均值/标准差: ${$(D)}    百分位: ${$(
1582
- h
1582
+ x
1583
1583
  )}%`,
1584
1584
  lineWidth: 1,
1585
1585
  opacity: 1
@@ -1734,8 +1734,8 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
1734
1734
  }, o = O(() => ({ ...a, ...n.config })), t = S(null), l = S(-1), r = O(() => {
1735
1735
  var y, L;
1736
1736
  if (t.value && ((L = (y = t.value.dataset[0]) == null ? void 0 : y.source) != null && L.klineData[l.value])) {
1737
- const m = t.value.dataset[0].source.klineData[l.value], j = [], { open: x, heigh: E, low: Y, close: w, business: F, riseAndFall: V } = o.value.tipsConfig;
1738
- if (x && j.push({ label: "开", value: $(m[0]), color: "rgb(153, 153, 153)" }), E && j.push({ label: "高", value: $(m[3]), color: "rgb(153, 153, 153)" }), Y && j.push({ label: "低", value: $(m[2]), color: "rgb(153, 153, 153)" }), w && j.push({ label: "收", value: $(m[1]), color: "rgb(153, 153, 153)" }), F && j.push({ label: "额", value: cn(m[4]), color: "rgb(153, 153, 153)" }), V) {
1737
+ const m = t.value.dataset[0].source.klineData[l.value], j = [], { open: h, heigh: E, low: Y, close: w, business: F, riseAndFall: V } = o.value.tipsConfig;
1738
+ if (h && j.push({ label: "开", value: $(m[0]), color: "rgb(153, 153, 153)" }), E && j.push({ label: "高", value: $(m[3]), color: "rgb(153, 153, 153)" }), Y && j.push({ label: "低", value: $(m[2]), color: "rgb(153, 153, 153)" }), w && j.push({ label: "收", value: $(m[1]), color: "rgb(153, 153, 153)" }), F && j.push({ label: "额", value: cn(m[4]), color: "rgb(153, 153, 153)" }), V) {
1739
1739
  let W = ((m[1] - m[5]) / m[1] * 100).toFixed(2), Z = +W == 0 ? "white" : +W > 0 ? "red" : "#00ff00";
1740
1740
  j.push({ label: "涨跌", value: `${W}%`, color: Z });
1741
1741
  }
@@ -1775,12 +1775,12 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
1775
1775
  }
1776
1776
  if (n.priceTrendPercentData.length > 0) {
1777
1777
  const L = [];
1778
- return c.getOption().series.filter((j) => j.name.includes("二腿价格走势百分比图")).forEach((j, x) => {
1778
+ return c.getOption().series.filter((j) => j.name.includes("二腿价格走势百分比图")).forEach((j, h) => {
1779
1779
  var Y;
1780
1780
  (j.data[l.value] ? $(j.data[l.value][1]) : null) !== null && L.push({
1781
1781
  label: j.name.split("-")[1],
1782
1782
  value: `${$((Y = j.data[l.value]) == null ? void 0 : Y[1])}%`,
1783
- color: y[x]
1783
+ color: y[h]
1784
1784
  });
1785
1785
  }), L;
1786
1786
  }
@@ -1844,16 +1844,16 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
1844
1844
  o.value,
1845
1845
  n.netPositionData,
1846
1846
  n.relevanceData
1847
- ), { graphic: x } = c.getOption() ?? { graphic: [] };
1848
- t.value = { ...j, graphic: x }, c.setOption(t.value, !0), se("st-kline组件消息:K线绘制完毕-draw", { color: "green" });
1847
+ ), { graphic: h } = c.getOption() ?? { graphic: [] };
1848
+ t.value = { ...j, graphic: h }, c.setOption(t.value, !0), se("st-kline组件消息:K线绘制完毕-draw", { color: "green" });
1849
1849
  }
1850
1850
  ],
1851
1851
  // line-额外线条绘制
1852
1852
  [
1853
1853
  "line",
1854
1854
  () => {
1855
- const j = c.getOption(), x = pn(n.lineData, o.value, c);
1856
- t.value = { ...j, graphic: x }, c.setOption(t.value, {
1855
+ const j = c.getOption(), h = pn(n.lineData, o.value, c);
1856
+ t.value = { ...j, graphic: h }, c.setOption(t.value, {
1857
1857
  replaceMerge: ["graphic"]
1858
1858
  }), se("st-kline组件消息:额外画线绘制完毕-draw", { color: "green" });
1859
1859
  }
@@ -1886,17 +1886,17 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
1886
1886
  [
1887
1887
  "history",
1888
1888
  async () => {
1889
- const j = c.getOption(), x = await we(
1889
+ const j = c.getOption(), h = await we(
1890
1890
  n.klineData,
1891
1891
  n.markData,
1892
1892
  n.indicator,
1893
1893
  o.value,
1894
1894
  n.netPositionData,
1895
1895
  n.relevanceData
1896
- ), E = x.dataset.source.klineData.length - j.dataset[0].source.klineData.length;
1896
+ ), E = h.dataset.source.klineData.length - j.dataset[0].source.klineData.length;
1897
1897
  c.setOption(
1898
1898
  {
1899
- ...x,
1899
+ ...h,
1900
1900
  dataZoom: [
1901
1901
  {
1902
1902
  type: "inside",
@@ -1916,7 +1916,7 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
1916
1916
  [
1917
1917
  "future",
1918
1918
  async () => {
1919
- const j = c.getOption(), x = await we(
1919
+ const j = c.getOption(), h = await we(
1920
1920
  n.klineData,
1921
1921
  n.markData,
1922
1922
  n.indicator,
@@ -1924,7 +1924,7 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
1924
1924
  n.netPositionData,
1925
1925
  n.relevanceData
1926
1926
  );
1927
- x.dataZoom[0].start = (n.klineData.length - j.dataZoom[0].endValue + j.dataZoom[0].startValue) / n.klineData.length * 100, c.setOption(x, !0), await s("priceTrend");
1927
+ h.dataZoom[0].start = (n.klineData.length - j.dataZoom[0].endValue + j.dataZoom[0].startValue) / n.klineData.length * 100, c.setOption(h, !0), await s("priceTrend");
1928
1928
  }
1929
1929
  ],
1930
1930
  // priceTrend-二腿价格趋势绘制
@@ -1933,7 +1933,7 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
1933
1933
  () => {
1934
1934
  if (n.priceTrendData.length === 0)
1935
1935
  return;
1936
- const j = c.getOption(), x = [
1936
+ const j = c.getOption(), h = [
1937
1937
  "#FFFFFF",
1938
1938
  "#FFDD00",
1939
1939
  "#FF00FF",
@@ -1953,7 +1953,7 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
1953
1953
  yAxisIndex: 1,
1954
1954
  connectNulls: !0,
1955
1955
  itemStyle: {
1956
- color: x[F]
1956
+ color: h[F]
1957
1957
  },
1958
1958
  lineStyle: {
1959
1959
  type: "dashed",
@@ -1974,7 +1974,7 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
1974
1974
  async () => {
1975
1975
  if (n.priceTrendPercentData.length === 0)
1976
1976
  return;
1977
- const j = c.getOption(), x = [
1977
+ const j = c.getOption(), h = [
1978
1978
  "#FFFFFF",
1979
1979
  "#FFDD00",
1980
1980
  "#FF00FF",
@@ -1994,7 +1994,7 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
1994
1994
  yAxisIndex: 1,
1995
1995
  connectNulls: !0,
1996
1996
  itemStyle: {
1997
- color: x[V]
1997
+ color: h[V]
1998
1998
  },
1999
1999
  lineStyle: {
2000
2000
  type: "dashed",
@@ -2021,8 +2021,8 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
2021
2021
  if (y)
2022
2022
  l.value = typeof ((m = y == null ? void 0 : y.batch[0]) == null ? void 0 : m.dataIndex) == "number" ? (j = y == null ? void 0 : y.batch[0]) == null ? void 0 : j.dataIndex : -1;
2023
2023
  else {
2024
- const x = L.getOption();
2025
- x.dataZoom instanceof Array && (l.value = x.dataZoom[0].endValue);
2024
+ const h = L.getOption();
2025
+ h.dataZoom instanceof Array && (l.value = h.dataZoom[0].endValue);
2026
2026
  }
2027
2027
  };
2028
2028
  let k = null, B = !1, z = S(!1), p = !1, f = S(!1);
@@ -2060,7 +2060,7 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
2060
2060
  if (!c || !(y.ctrlKey || n.isSelect))
2061
2061
  return;
2062
2062
  const L = c.getOption();
2063
- let { startValue: m, endValue: j, start: x, end: E } = L.dataZoom[0];
2063
+ let { startValue: m, endValue: j, start: h, end: E } = L.dataZoom[0];
2064
2064
  const Y = () => {
2065
2065
  m !== 0 && (m = m - 1, j = j - 1, c.dispatchAction({
2066
2066
  type: "dataZoom",
@@ -2099,9 +2099,9 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
2099
2099
  maxValueSpan: o.value.maxValueSpan
2100
2100
  });
2101
2101
  }, V = () => {
2102
- x = x - (E - x) / 4, c.dispatchAction({
2102
+ h = h - (E - h) / 4, c.dispatchAction({
2103
2103
  type: "dataZoom",
2104
- start: x,
2104
+ start: h,
2105
2105
  end: E,
2106
2106
  actionIsWheel: !0,
2107
2107
  // 标记为缩放
@@ -2114,7 +2114,7 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
2114
2114
  ["ArrowDown", V]
2115
2115
  ])).get(y.code);
2116
2116
  Z instanceof Function && Z();
2117
- }, h = async () => {
2117
+ }, x = async () => {
2118
2118
  let y = !0;
2119
2119
  c = Te.init(I.value), await s(), g.value = n.defaultMenuData, l.value = c.getOption().dataZoom[0].endValue ?? -1, P(), v = new ResizeObserver(() => {
2120
2120
  if (y) {
@@ -2125,7 +2125,7 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
2125
2125
  }), v.observe(I.value), window.addEventListener("keydown", D);
2126
2126
  };
2127
2127
  return le(() => {
2128
- h();
2128
+ x();
2129
2129
  }), Re(() => {
2130
2130
  T(), window.removeEventListener("keydown", D), c.dispose(), v.disconnect(), v = null;
2131
2131
  }), (y, L) => {
@@ -2143,14 +2143,14 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
2143
2143
  popover: ee(() => [
2144
2144
  K(j, { class: "menu" }, {
2145
2145
  default: ee(() => [
2146
- (_(!0), R(ne, null, De(g.value, (x) => (_(), ue(m, {
2147
- key: x.label,
2148
- index: x.label,
2146
+ (_(!0), R(ne, null, De(g.value, (h) => (_(), ue(m, {
2147
+ key: h.label,
2148
+ index: h.label,
2149
2149
  class: "menuItem",
2150
- onClick: (E) => M(x)
2150
+ onClick: (E) => M(h)
2151
2151
  }, {
2152
2152
  default: ee(() => [
2153
- tt(ie(x.label), 1)
2153
+ tt(ie(h.label), 1)
2154
2154
  ]),
2155
2155
  _: 2
2156
2156
  }, 1032, ["index", "onClick"]))), 128))
@@ -2171,7 +2171,7 @@ const mn = { class: "st-kline" }, Dn = { class: "st-kline-header" }, Ln = 300, v
2171
2171
  };
2172
2172
  }
2173
2173
  });
2174
- const hn = /* @__PURE__ */ oe(vn, [["__scopeId", "data-v-7f014d0e"]]), xn = { class: "kline-tips" }, An = /* @__PURE__ */ G({
2174
+ const xn = /* @__PURE__ */ oe(vn, [["__scopeId", "data-v-7f014d0e"]]), hn = { class: "kline-tips" }, An = /* @__PURE__ */ G({
2175
2175
  __name: "index",
2176
2176
  props: {
2177
2177
  // 提示数据
@@ -2181,7 +2181,7 @@ const hn = /* @__PURE__ */ oe(vn, [["__scopeId", "data-v-7f014d0e"]]), xn = { cl
2181
2181
  }
2182
2182
  },
2183
2183
  setup(e) {
2184
- return (n, a) => (_(), R("div", xn, [
2184
+ return (n, a) => (_(), R("div", hn, [
2185
2185
  (_(!0), R(ne, null, De(e.data, (o, t) => (_(), R("div", {
2186
2186
  key: t,
2187
2187
  class: "kline-tips-item",
@@ -2623,7 +2623,7 @@ const Fn = {
2623
2623
  }
2624
2624
  }, Qn = /* @__PURE__ */ oe(Fn, [["__scopeId", "data-v-7a2f3dd0"]]), io = {
2625
2625
  install(e) {
2626
- e.component("st-kline", hn), e.component("st-kline-sub-new", On), e.component("st-kline-tips-new", Sn), e.component("st-kline-slide-new", Qn), e.component("st-kline-utils-new", _n);
2626
+ e.component("st-kline", xn), e.component("st-kline-sub-new", On), e.component("st-kline-tips-new", Sn), e.component("st-kline-slide-new", Qn), e.component("st-kline-utils-new", _n);
2627
2627
  }
2628
2628
  };
2629
2629
  export {
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),B=require("./index.esm-94a95a2a.cjs"),E=require("./_plugin-vue_export-helper-f246444f.cjs"),z=require("./bundle.umd-c5698c50.cjs");require("./base-4865d432.cjs");const R=require("./el-select-a50741c1.cjs");require("./el-tag-87fd3960.cjs");require("./el-scrollbar-bc381e35.cjs");const N=require("echarts");require("./_commonjsHelpers-87b0abe8.cjs");require("./index-48a9f60d.cjs");require("./focus-trap-2a734f35.cjs");require("./typescript-b63f8e83.cjs");require("./scroll-bb8039ba.cjs");function M(m){const v=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(m){for(const A in m)if(A!=="default"){const h=Object.getOwnPropertyDescriptor(m,A);Object.defineProperty(v,A,h.get?h:{enumerable:!0,get:()=>m[A]})}}return v.default=m,Object.freeze(v)}const L=M(N),$=t.defineComponent({__name:"index",setup(m,{expose:v}){let A=!1,h=!0,y=[];const S=(f,u)=>f.length>u?f.slice(f.length-u):f;return v({initTalib:async()=>{if(!A)A=!0,await B.init("./talib.wasm"),h=!1,y.forEach(f=>{f()});else if(h)return new Promise(f=>{y.push(f)})},handleKeyDown:(f,u)=>{let{startValue:o,endValue:d,maxIndex:x}=u;if(f.code==="ArrowLeft"){if(o===0)return;o=o-1,d=d-1}else if(f.code==="ArrowRight"){if(d===x)return;o=o+1,d=d+1}else if(f.code==="ArrowUp"){if(d-o<5)return;const p=Math.floor((d-o)/2)+1;o=o+p,d-o<5&&(o=d-4)}else if(f.code==="ArrowDown"){const p=Math.min(500,d-o);o=o-p-1}return{startValue:o,endValue:d}},getDataZoomInfoByTime:f=>{const{showStartTime:u,showEndTime:o,xAxisData:d,maxShowDays:x}=f;let p=-1,e=-1,i={};return d.forEach((a,l)=>{const r=a.split(" ")[0];i[r]=i[r]||0,i[r]+=1,new Date(a)>=new Date(u)&&p===-1&&(p=l),new Date(a)<=new Date(o)&&(e=l)}),{startValue:p,endValue:e,maxValueSpan:Math.max(...Object.values(i))*x}},formatDataBySlide:f=>{const{originDrawData:u,addData:o,startTime:d,endTime:x}=f,{mainIndicator:p,mainIndicatorList:e,subIndicator:i,subIndicatorList:a,config:l,timeRange:r}=f,{loadAddCount:D,preLoadCount:F}=l;let _=[],b=[],V=[],w=[];d&&x?(_=o.filter(s=>new Date(s[0])>=new Date(d)&&new Date(s[0])<=new Date(x)),w=[...o]):x?(_=[...o.filter((s,n)=>n>=o.length-D&&new Date(r[0])<=new Date(s[0])&&new Date(s[0])<=new Date(r[1])),...u.originData],w=[...o,...u.originData]):d&&(_=[...u.originData,...o.filter((s,n)=>n>=F&&new Date(r[0])<=new Date(s[0])&&new Date(s[0])<=new Date(r[1]))],w=_),_.forEach((s,n)=>{b.push([s[1],s[4],s[3],s[2],n===0?0:_[n-1][4],s[6]]),V.push(s[0])});let c=[],g=[];const I={time:[],open:[],close:[],high:[],low:[],originData:w};let C=null,q=null;return w.forEach((s,n)=>{I.time.push(s[0]),I.open.push(s[1]),I.close.push(s[4]),I.high.push(s[2]),I.low.push(s[3]),s[0]===_[0][0]&&(C=n),s[0]===_[_.length-1][0]&&(q=n+1)}),c=e.find(({value:s})=>s===p).config.map(s=>{const{calculationFn:n}=s,k={time:[],open:[],close:[],high:[],low:[],originData:[]};return{...s,data:n?n(B.talib,I,k).slice(C,q):[]}}),g=a.find(({value:s})=>s===i).config.reduce((s,n)=>{const{source:k,calculationFn:T}=n;return k==="calculation"?[...s,{...n,data:T?T(B.talib,I).slice(C,q):[]}]:s},[]),{originData:_,candlestickData:b,mainIndicatorData:c,subIndicatorData:g,xAxisData:V,startTime:_[0][0],endTime:_[_.length-1][0],length:_.length}},formatDataByCount:f=>{const{originDrawData:u,addData:o,mainIndicator:d,mainIndicatorList:x,subIndicator:p,subIndicatorList:e,config:i}=f;let a={};const{addCount:l,preLoadCount:r}=i,D=[],F=[],_=[],b=[],V=[];let w=[],c=[];const g=o.filter((n,k)=>(D.push(n[0]),F.push(n[1]),_.push(n[4]),b.push(n[2]),V.push(n[3]),w.push(n[0]),c.push([n[1],n[4],n[3],n[2],k===0?0:o[k-1][4],n[6]]),o.length>=l+r-1?k>=r:!0));w=S(w,g.length),c=S(c,g.length);const I={time:D,open:F,close:_,high:b,low:V,originData:o},q=x.find(n=>n.value===d).config.map(n=>({...n,data:S(n.calculationFn?n.calculationFn(B.talib,I,{time:[],open:[],close:[],high:[],low:[],originData:[]}):[],w.length)}));let s=[];return p&&e&&(s=e.find(k=>k.value===p).config.reduce((k,T)=>T.source==="calculation"?[...k,{...T,data:S(T.calculationFn?T.calculationFn(B.talib,I):[],w.length)}]:k,[])),u.length?a={originData:[...g,...u.originData],xAxisData:[...w,...u.xAxisData],candlestickData:[...c,...u.candlestickData],mainIndicatorData:u.mainIndicatorData.map((n,k)=>({...n,data:[...q[k].data,...n.data]})),subIndicatorData:u.subIndicatorData.map((n,k)=>({...n,data:[...s[k].data,...n.data]}))}:a={originData:g,xAxisData:w,candlestickData:c,mainIndicatorData:q,subIndicatorData:s},a.length=a.xAxisData.length,a.startTime=a.xAxisData[0],a.endTime=a.xAxisData[a.length-1],a},fn:()=>{}}),(f,u)=>null}}),j={class:"kline-tips"},P=t.defineComponent({__name:"index",props:{data:{type:Array,require:!0}},setup(m){return(v,A)=>(t.openBlock(),t.createElementBlock("div",j,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.data,(h,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"kline-tips-item",style:t.normalizeStyle({color:h.color})},t.toDisplayString(h.label)+" "+t.toDisplayString(h.value),5))),128))]))}});const O=E._export_sfc(P,[["__scopeId","data-v-2a02e841"]]),K={class:"kline-tips"},U=t.defineComponent({__name:"index",props:{drawData:{type:Object,require:!0},activeIndex:{type:Number,require:!0}},setup(m){const{round:v,multiply:A,divide:h,subtract:y,formatValue:S}=z.bundle_umdExports.stMath,f=m,u=t.computed(()=>{const{drawData:d,activeIndex:x}=f;if(d.candlestickData&&d.candlestickData[x]){const p=d.candlestickData[x],e=[{label:"开",value:v(p[0])},{label:"高",value:v(p[3])},{label:"低",value:v(p[2])},{label:"收",value:v(p[1])}];p[5]!==void 0&&e.push({label:"额",value:S(p[5])});const i=v(A(h(y(p[1],p[4]),Math.abs(p[4])),100));let a;return i>0?a="red":i<0&&(a="green"),e.push({label:"涨跌",value:`${i}%`,color:a}),e}return[]}),o=t.computed(()=>{var p;const{drawData:d,activeIndex:x}=f;return((p=d==null?void 0:d.mainIndicatorData)==null?void 0:p.map(e=>({label:e.key,value:v(e.data[x]),color:e.color})))||[]});return(d,x)=>(t.openBlock(),t.createElementBlock("div",K,[t.createVNode(O,{data:u.value},null,8,["data"]),t.createVNode(O,{data:o.value},null,8,["data"])]))}});const Z=E._export_sfc(U,[["__scopeId","data-v-a1302914"]]),Y={class:"klineSub"},H={class:"klineSub-tips"},G={key:0,class:"klineSub-tips-select"},J=t.defineComponent({__name:"index",props:{drawData:{type:Object,require:!0},activeIndex:{type:Number,require:!0},modelValue:{type:String,required:!0},subIndicatorList:{type:Array,required:!0},config:{type:Object,require:!0}},emits:["update:modelValue"],setup(m,{expose:v,emit:A}){const{round:h}=z.bundle_umdExports.stMath;let y,S;const f=A,u=m,o=t.ref(),d=t.computed({get(){return u.modelValue},set(e){f("update:modelValue",e)}}),x=t.computed(()=>{const{drawData:e,activeIndex:i}=u,a=u.subIndicatorList.find(l=>l.value===d.value);return e.originData&&e.originData[i]?a.config.map(l=>{var D,F;let r="-";return l.source==="origin"?r=e.originData[i][l.dataIndex]||"-":l.source==="calculation"&&(r=(((F=(D=e.subIndicatorData)==null?void 0:D.find(b=>b.key===l.key))==null?void 0:F.data)||[])[i]),{label:l.key,color:l.color,value:r==="-"?r:h(r)}}):[]});t.onMounted(()=>{y=L.init(o.value);let e=!0;S=new ResizeObserver(()=>{if(e){e=null;return}y.resize()}),S.observe(o.value)}),t.onUnmounted(()=>{y.dispose(),S.disconnect(),S=null});const p=(e,i)=>{const a=e[i],l=i===0?e[i]:e[i-1];return a[0]===a[1]?a[0]>=l[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:a[1]>a[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}};return v({connect:e=>{L.connect([e,y])},draw:e=>{t.nextTick(()=>{var w;const{startValue:i,endValue:a,maxValueSpan:l}=e,{xAxisData:r,subIndicatorData:D,candlestickData:F,originData:_}=u.drawData,b=u.subIndicatorList.find(c=>c.value===d.value),V=[];if(b.series==="bar"){let c=[];b.source==="origin"?c=_.map(g=>g[b.dataIndex]):c=((w=D==null?void 0:D.find(g=>g.key===b.dataIndex))==null?void 0:w.data)||[],V.push({name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:c.map((g,I)=>b.color==="kline"?{value:g,itemStyle:p(F,I)}:b.color==="value"?{value:g,itemStyle:{color:g>=0?"#FF0000":"#00FFFF"}}:{value:g,itemStyle:{color:b.color}})})}D.forEach(c=>{if(c.series==="line"){let g=[];c.source==="origin"?g=_.map(I=>I[c.dataIndex]):c.source==="calculation"&&(g=c.data),V.push({xAxisIndex:0,yAxisIndex:c.yAxis==="right"?2:1,name:c.key,type:"line",silent:!0,symbol:"none",data:g,lineStyle:{width:1},itemStyle:{color:c.color}})}}),y.setOption({animation:!1,grid:{left:`${u.config.gridLeft}px`,top:"10px",right:`${u.config.gridRight}px`,bottom:"20px"},dataZoom:[{type:"inside",startValue:i,endValue:a,maxValueSpan:l}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:c=>{const{axisDimension:g,value:I}=c;if(g==="x")return I;if(c.axisIndex===1)return String(h(I))}}},formatter:()=>""},xAxis:{type:"category",data:r,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{show:!0,formatter:c=>c}},yAxis:[{position:"right"},{position:"left",min:b.leftYAxisRange==="cover"?c=>c.min:null,max:b.leftYAxisRange==="cover"?c=>c.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:b.rightYAxisRange==="cover"?c=>c.min:null,max:b.rightYAxisRange==="cover"?c=>c.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:V},!0)})}}),(e,i)=>{const a=R.ElOption,l=R.ElSelect;return t.openBlock(),t.createElementBlock("div",Y,[t.createElementVNode("div",H,[x.value.length?(t.openBlock(),t.createElementBlock("div",G,[t.createVNode(l,{modelValue:d.value,"onUpdate:modelValue":i[0]||(i[0]=r=>d.value=r),size:"small","popper-class":"element-dark",class:"element-dark subIndicator"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.subIndicatorList,r=>(t.openBlock(),t.createBlock(a,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.createVNode(O,{data:x.value},null,8,["data"])]),t.createElementVNode("div",{class:"klineSub-chart",ref_key:"subChartRef",ref:o},null,512)])}}});const Q=E._export_sfc(J,[["__scopeId","data-v-2ece79b3"]]),W=t.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]}},emits:["change"],setup(m,{expose:v,emit:A}){let h,y,S=null;const f=A,u=m,o=t.ref();t.watch(()=>u.data,()=>{p()},{deep:!0}),t.onMounted(()=>{h=L.init(o.value),d(),p();let e=!0;y=new ResizeObserver(()=>{if(e){e=null;return}h.resize()}),y.observe(o.value)}),t.onUnmounted(()=>{h.off("datazoom"),h.dispose(),y.disconnect(),y=null});const d=()=>{h.on("datazoom",e=>{e.dataZoomId&&(clearTimeout(S),S=setTimeout(()=>{const{data:i}=u,{start:a,end:l}=e,r=Math.floor(a*i.length/100),D=l===100?i.length-1:Math.floor(l*i.length/100);x(r,D),clearTimeout(S)},100))})},x=(e,i)=>{const a=u.data;if(a.length===0)return;const l=a[e][0].split(" ")[0],r=a[i][0].split(" ")[0];f("change",{startTime:`${l} 00:00:00`,endTime:`${r} 24:00:00`})},p=()=>{const{data:e}=u;if(e.length===0)return;const i=e.map(l=>l[0].split(" ")[0]),a=e.map(l=>l[1]);h.setOption({grid:{height:0,left:"80px",right:"80px"},xAxis:{type:"category",data:i,show:!1},yAxis:{type:"value"},series:[{data:a,type:"line"}]},!0)};return v({resetSlide:(e,i,a)=>{let l=-1,r=-1;u.data.forEach((D,F)=>{l===-1&&D[0]===e?l=F:l===-1&&new Date(D[0])>new Date(e)&&(l=F-1),(r===-1&&D[0]===i||r===-1&&new Date(D[0])>new Date(i))&&(r=F)}),r=r===-1?u.data.length-1:r,h.setOption({dataZoom:[{show:!0,startValue:l,endValue:r,maxValueSpan:a,textStyle:{color:"#ccc"}},{type:"inside",startValue:l,endValue:r,maxValueSpan:a}]})},resize:()=>{h==null||h.resize()}}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"klineSlide",ref_key:"slideChartRef",ref:o},null,512))}});const X=E._export_sfc(W,[["__scopeId","data-v-5008746a"]]),ee={install(m){m.component("st-klineUtils",$),m.component("st-klineSub",Q),m.component("st-klineTips",Z),m.component("st-klineSlide",X)}};module.exports=ee;
1
+ "use strict";const t=require("vue"),B=require("./index.esm-94a95a2a.cjs"),E=require("./_plugin-vue_export-helper-f246444f.cjs"),z=require("./bundle.umd-c5698c50.cjs");require("./base-4865d432.cjs");const R=require("./el-select-a50741c1.cjs");require("./el-tag-87fd3960.cjs");require("./el-scrollbar-bc381e35.cjs");const M=require("echarts");require("./_commonjsHelpers-87b0abe8.cjs");require("./index-48a9f60d.cjs");require("./focus-trap-2a734f35.cjs");require("./typescript-b63f8e83.cjs");require("./scroll-bb8039ba.cjs");function N(m){const v=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(m){for(const A in m)if(A!=="default"){const h=Object.getOwnPropertyDescriptor(m,A);Object.defineProperty(v,A,h.get?h:{enumerable:!0,get:()=>m[A]})}}return v.default=m,Object.freeze(v)}const L=N(M),$=t.defineComponent({__name:"index",setup(m,{expose:v}){let A=!1,h=!0,y=[];const S=(f,u)=>f.length>u?f.slice(f.length-u):f;return v({initTalib:async()=>{if(!A)A=!0,await B.init("./talib.wasm"),h=!1,y.forEach(f=>{f()});else if(h)return new Promise(f=>{y.push(f)})},handleKeyDown:(f,u)=>{let{startValue:o,endValue:d,maxIndex:x}=u;if(f.code==="ArrowLeft"){if(o===0)return;o=o-1,d=d-1}else if(f.code==="ArrowRight"){if(d===x)return;o=o+1,d=d+1}else if(f.code==="ArrowUp"){if(d-o<5)return;const p=Math.floor((d-o)/2)+1;o=o+p,d-o<5&&(o=d-4)}else if(f.code==="ArrowDown"){const p=Math.min(500,d-o);o=o-p-1}return{startValue:o,endValue:d}},getDataZoomInfoByTime:f=>{const{showStartTime:u,showEndTime:o,xAxisData:d,maxShowDays:x}=f;let p=-1,e=-1,i={};return d.forEach((a,l)=>{const r=a.split(" ")[0];i[r]=i[r]||0,i[r]+=1,new Date(a)>=new Date(u)&&p===-1&&(p=l),new Date(a)<=new Date(o)&&(e=l)}),{startValue:p,endValue:e,maxValueSpan:Math.max(...Object.values(i))*x}},formatDataBySlide:f=>{const{originDrawData:u,addData:o,startTime:d,endTime:x}=f,{mainIndicator:p,mainIndicatorList:e,subIndicator:i,subIndicatorList:a,config:l,timeRange:r}=f,{loadAddCount:D,preLoadCount:F}=l;let _=[],b=[],V=[],w=[];d&&x?(_=o.filter(s=>new Date(s[0])>=new Date(d)&&new Date(s[0])<=new Date(x)),w=[...o]):x?(_=[...o.filter((s,n)=>n>=o.length-D&&new Date(r[0])<=new Date(s[0])&&new Date(s[0])<=new Date(r[1])),...u.originData],w=[...o,...u.originData]):d&&(_=[...u.originData,...o.filter((s,n)=>n>=F&&new Date(r[0])<=new Date(s[0])&&new Date(s[0])<=new Date(r[1]))],w=_),_.forEach((s,n)=>{b.push([s[1],s[4],s[3],s[2],n===0?0:_[n-1][4],s[6]]),V.push(s[0])});let c=[],g=[];const I={time:[],open:[],close:[],high:[],low:[],originData:w};let C=null,q=null;return w.forEach((s,n)=>{I.time.push(s[0]),I.open.push(s[1]),I.close.push(s[4]),I.high.push(s[2]),I.low.push(s[3]),s[0]===_[0][0]&&(C=n),s[0]===_[_.length-1][0]&&(q=n+1)}),c=e.find(({value:s})=>s===p).config.map(s=>{const{calculationFn:n}=s,k={time:[],open:[],close:[],high:[],low:[],originData:[]};return{...s,data:n?n(B.talib,I,k).slice(C,q):[]}}),g=a.find(({value:s})=>s===i).config.reduce((s,n)=>{const{source:k,calculationFn:T}=n;return k==="calculation"?[...s,{...n,data:T?T(B.talib,I).slice(C,q):[]}]:s},[]),{originData:_,candlestickData:b,mainIndicatorData:c,subIndicatorData:g,xAxisData:V,startTime:_[0][0],endTime:_[_.length-1][0],length:_.length}},formatDataByCount:f=>{const{originDrawData:u,addData:o,mainIndicator:d,mainIndicatorList:x,subIndicator:p,subIndicatorList:e,config:i}=f;let a={};const{addCount:l,preLoadCount:r}=i,D=[],F=[],_=[],b=[],V=[];let w=[],c=[];const g=o.filter((n,k)=>(D.push(n[0]),F.push(n[1]),_.push(n[4]),b.push(n[2]),V.push(n[3]),w.push(n[0]),c.push([n[1],n[4],n[3],n[2],k===0?0:o[k-1][4],n[6]]),o.length>=l+r-1?k>=r:!0));w=S(w,g.length),c=S(c,g.length);const I={time:D,open:F,close:_,high:b,low:V,originData:o},q=x.find(n=>n.value===d).config.map(n=>({...n,data:S(n.calculationFn?n.calculationFn(B.talib,I,{time:[],open:[],close:[],high:[],low:[],originData:[]}):[],w.length)}));let s=[];return p&&e&&(s=e.find(k=>k.value===p).config.reduce((k,T)=>T.source==="calculation"?[...k,{...T,data:S(T.calculationFn?T.calculationFn(B.talib,I):[],w.length)}]:k,[])),u.length?a={originData:[...g,...u.originData],xAxisData:[...w,...u.xAxisData],candlestickData:[...c,...u.candlestickData],mainIndicatorData:u.mainIndicatorData.map((n,k)=>({...n,data:[...q[k].data,...n.data]})),subIndicatorData:u.subIndicatorData.map((n,k)=>({...n,data:[...s[k].data,...n.data]}))}:a={originData:g,xAxisData:w,candlestickData:c,mainIndicatorData:q,subIndicatorData:s},a.length=a.xAxisData.length,a.startTime=a.xAxisData[0],a.endTime=a.xAxisData[a.length-1],a},fn:()=>{}}),(f,u)=>null}}),j={class:"kline-tips"},P=t.defineComponent({__name:"index",props:{data:{type:Array,require:!0}},setup(m){return(v,A)=>(t.openBlock(),t.createElementBlock("div",j,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.data,(h,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"kline-tips-item",style:t.normalizeStyle({color:h.color})},t.toDisplayString(h.label)+" "+t.toDisplayString(h.value),5))),128))]))}});const O=E._export_sfc(P,[["__scopeId","data-v-2a02e841"]]),K={class:"kline-tips"},U=t.defineComponent({__name:"index",props:{drawData:{type:Object,require:!0},activeIndex:{type:Number,require:!0}},setup(m){const{round:v,multiply:A,divide:h,subtract:y,formatValue:S}=z.bundle_umdExports.stMath,f=m,u=t.computed(()=>{const{drawData:d,activeIndex:x}=f;if(d.candlestickData&&d.candlestickData[x]){const p=d.candlestickData[x],e=[{label:"开",value:v(p[0])},{label:"高",value:v(p[3])},{label:"低",value:v(p[2])},{label:"收",value:v(p[1])}];p[5]!==void 0&&e.push({label:"额",value:S(p[5])});const i=v(A(h(y(p[1],p[4]),Math.abs(p[4])),100));let a;return i>0?a="red":i<0&&(a="green"),e.push({label:"涨跌",value:`${i}%`,color:a}),e}return[]}),o=t.computed(()=>{var p;const{drawData:d,activeIndex:x}=f;return((p=d==null?void 0:d.mainIndicatorData)==null?void 0:p.map(e=>({label:e.key,value:v(e.data[x]),color:e.color})))||[]});return(d,x)=>(t.openBlock(),t.createElementBlock("div",K,[t.createVNode(O,{data:u.value},null,8,["data"]),t.createVNode(O,{data:o.value},null,8,["data"])]))}});const Z=E._export_sfc(U,[["__scopeId","data-v-a1302914"]]),Y={class:"klineSub"},H={class:"klineSub-tips"},G={key:0,class:"klineSub-tips-select"},J=t.defineComponent({__name:"index",props:{drawData:{type:Object,require:!0},activeIndex:{type:Number,require:!0},modelValue:{type:String,required:!0},subIndicatorList:{type:Array,required:!0},config:{type:Object,require:!0}},emits:["update:modelValue"],setup(m,{expose:v,emit:A}){const{round:h}=z.bundle_umdExports.stMath;let y,S;const f=A,u=m,o=t.ref(),d=t.computed({get(){return u.modelValue},set(e){f("update:modelValue",e)}}),x=t.computed(()=>{const{drawData:e,activeIndex:i}=u,a=u.subIndicatorList.find(l=>l.value===d.value);return e.originData&&e.originData[i]?a.config.map(l=>{var D,F;let r="-";return l.source==="origin"?r=e.originData[i][l.dataIndex]||"-":l.source==="calculation"&&(r=(((F=(D=e.subIndicatorData)==null?void 0:D.find(b=>b.key===l.key))==null?void 0:F.data)||[])[i]),{label:l.key,color:l.color,value:r==="-"?r:h(r)}}):[]});t.onMounted(()=>{y=L.init(o.value);let e=!0;S=new ResizeObserver(()=>{if(e){e=null;return}y.resize()}),S.observe(o.value)}),t.onUnmounted(()=>{y.dispose(),S.disconnect(),S=null});const p=(e,i)=>{const a=e[i],l=i===0?e[i]:e[i-1];return a[0]===a[1]?a[0]>=l[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:a[1]>a[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}};return v({connect:e=>{L.connect([e,y])},draw:e=>{t.nextTick(()=>{var w;const{startValue:i,endValue:a,maxValueSpan:l}=e,{xAxisData:r,subIndicatorData:D,candlestickData:F,originData:_}=u.drawData,b=u.subIndicatorList.find(c=>c.value===d.value),V=[];if(b.series==="bar"){let c=[];b.source==="origin"?c=_.map(g=>g[b.dataIndex]):c=((w=D==null?void 0:D.find(g=>g.key===b.dataIndex))==null?void 0:w.data)||[],V.push({name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:c.map((g,I)=>b.color==="kline"?{value:g,itemStyle:p(F,I)}:b.color==="value"?{value:g,itemStyle:{color:g>=0?"#FF0000":"#00FFFF"}}:{value:g,itemStyle:{color:b.color}})})}D.forEach(c=>{if(c.series==="line"){let g=[];c.source==="origin"?g=_.map(I=>I[c.dataIndex]):c.source==="calculation"&&(g=c.data),V.push({xAxisIndex:0,yAxisIndex:c.yAxis==="right"?2:1,name:c.key,type:"line",silent:!0,symbol:"none",data:g,lineStyle:{width:1},itemStyle:{color:c.color}})}}),y.setOption({animation:!1,grid:{left:`${u.config.gridLeft}px`,top:"10px",right:`${u.config.gridRight}px`,bottom:"20px"},dataZoom:[{type:"inside",startValue:i,endValue:a,maxValueSpan:l}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:c=>{const{axisDimension:g,value:I}=c;if(g==="x")return I;if(c.axisIndex===1)return String(h(I))}}},formatter:()=>""},xAxis:{type:"category",data:r,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{show:!0,formatter:c=>c}},yAxis:[{position:"right"},{position:"left",min:b.leftYAxisRange==="cover"?c=>c.min:null,max:b.leftYAxisRange==="cover"?c=>c.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:b.rightYAxisRange==="cover"?c=>c.min:null,max:b.rightYAxisRange==="cover"?c=>c.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:V},!0)})}}),(e,i)=>{const a=R.ElOption,l=R.ElSelect;return t.openBlock(),t.createElementBlock("div",Y,[t.createElementVNode("div",H,[x.value.length?(t.openBlock(),t.createElementBlock("div",G,[t.createVNode(l,{modelValue:d.value,"onUpdate:modelValue":i[0]||(i[0]=r=>d.value=r),size:"small","popper-class":"element-dark",class:"element-dark subIndicator"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.subIndicatorList,r=>(t.openBlock(),t.createBlock(a,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.createVNode(O,{data:x.value},null,8,["data"])]),t.createElementVNode("div",{class:"klineSub-chart",ref_key:"subChartRef",ref:o},null,512)])}}});const Q=E._export_sfc(J,[["__scopeId","data-v-2ece79b3"]]),W=t.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]}},emits:["change"],setup(m,{expose:v,emit:A}){let h,y,S=null;const f=A,u=m,o=t.ref();t.watch(()=>u.data,()=>{p()},{deep:!0}),t.onMounted(()=>{h=L.init(o.value),d(),p();let e=!0;y=new ResizeObserver(()=>{if(e){e=null;return}h.resize()}),y.observe(o.value)}),t.onUnmounted(()=>{h.off("datazoom"),h.dispose(),y.disconnect(),y=null});const d=()=>{h.on("datazoom",e=>{e.dataZoomId&&(clearTimeout(S),S=setTimeout(()=>{const{data:i}=u,{start:a,end:l}=e,r=Math.floor(a*i.length/100),D=l===100?i.length-1:Math.floor(l*i.length/100);x(r,D),clearTimeout(S)},100))})},x=(e,i)=>{const a=u.data;if(a.length===0)return;const l=a[e][0].split(" ")[0],r=a[i][0].split(" ")[0];f("change",{startTime:`${l} 00:00:00`,endTime:`${r} 24:00:00`})},p=()=>{const{data:e}=u;if(e.length===0)return;const i=e.map(l=>l[0].split(" ")[0]),a=e.map(l=>l[1]);h.setOption({grid:{height:0,left:"80px",right:"80px"},xAxis:{type:"category",data:i,show:!1},yAxis:{type:"value"},series:[{data:a,type:"line"}]},!0)};return v({resetSlide:(e,i,a)=>{let l=-1,r=-1;u.data.forEach((D,F)=>{l===-1&&D[0]===e?l=F:l===-1&&new Date(D[0])>new Date(e)&&(l=F-1),(r===-1&&D[0]===i||r===-1&&new Date(D[0])>new Date(i))&&(r=F)}),r=r===-1?u.data.length-1:r,h.setOption({dataZoom:[{show:!0,startValue:l,endValue:r,maxValueSpan:a,textStyle:{color:"#ccc"}},{type:"inside",startValue:l,endValue:r,maxValueSpan:a}]})},resize:()=>{h==null||h.resize()}}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"klineSlide",ref_key:"slideChartRef",ref:o},null,512))}});const X=E._export_sfc(W,[["__scopeId","data-v-5008746a"]]),ee={install(m){m.component("st-klineUtils",$),m.component("st-klineSub",Q),m.component("st-klineTips",Z),m.component("st-klineSlide",X)}};module.exports=ee;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),u=require("./_plugin-vue_export-helper-f246444f.cjs"),g={class:"linearLegend"},p={key:0,class:"linearLegend-unit"},_={class:"linearLegend-content"},h={class:"linearLegend-content-box"},v={class:"linearLegend-content-number"},f=e.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]},unit:{type:String,default:()=>null}},setup(c,{expose:i}){const r=c,d=e.computed(()=>r.data.reduce((t,n,o)=>o===r.data.length-1?t:n.type==="="?(t[t.length-1].width=2,t):n.range.length===1?[...t,{value:n.range[0],width:1}]:[...t,{value:n.range[1],width:1}],[]));return i({numberToColor:t=>{let n=1;r.unit==="亿"?n=1e8:r.unit==="万"&&(n=1e4);for(let o=0;o<r.data.length;o++){const{type:a,color:s,range:l}=r.data[o];if(a==="="&&t===l[0]*n||a===">"&&t>l[0]*n||a===">="&&t>=l[0]*n||a==="<"&&t<l[0]*n||a==="<="&&t<=l[0]*n||a==="()"&&t>l[0]*n&&t<l[1]*n||a==="(]"&&t>l[0]*n&&t<=l[1]*n||a==="[]"&&t>=l[0]*n&&t<=l[1]*n||a==="[)"&&t>=l[0]*n&&t<l[1]*n)return s}}}),(t,n)=>(e.openBlock(),e.createElementBlock("div",g,[c.unit?(e.openBlock(),e.createElementBlock("div",p,"(单位:"+e.toDisplayString(c.unit)+")",1)):e.createCommentVNode("",!0),e.createElementVNode("div",_,[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.data,o=>(e.openBlock(),e.createElementBlock("div",{class:"linearLegend-content-box-item",style:e.normalizeStyle({background:o.color})},null,4))),256))]),e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,o=>(e.openBlock(),e.createElementBlock("div",{class:"linearLegend-content-number-item",style:e.normalizeStyle({width:`${o.width*36}px`})},e.toDisplayString(o.value),5))),256))])])]))}});const k=u._export_sfc(f,[["__scopeId","data-v-88fd5500"]]),y={install(c){c.component("st-linearLegend",k)}};module.exports=y;
@@ -1,9 +1,9 @@
1
- import { defineComponent as y, computed as L, openBlock as d, createElementBlock as r, toDisplayString as c, createCommentVNode as x, createElementVNode as s, Fragment as u, renderList as _, normalizeStyle as g } from "vue";
2
- import { _ as m } from "./_plugin-vue_export-helper-dad06003.js";
3
- const w = { class: "linearLegend" }, k = {
1
+ import { defineComponent as v, computed as y, openBlock as d, createElementBlock as r, toDisplayString as c, createCommentVNode as x, createElementVNode as s, Fragment as u, renderList as _, normalizeStyle as g } from "vue";
2
+ import { _ as L } from "./_plugin-vue_export-helper-dad06003.js";
3
+ const m = { class: "linearLegend" }, w = {
4
4
  key: 0,
5
5
  class: "linearLegend-unit"
6
- }, S = { class: "linearLegend-content" }, C = { class: "linearLegend-content-box" }, B = { class: "linearLegend-content-number" }, D = /* @__PURE__ */ y({
6
+ }, k = { class: "linearLegend-content" }, S = { class: "linearLegend-content-box" }, C = { class: "linearLegend-content-number" }, B = /* @__PURE__ */ v({
7
7
  __name: "index",
8
8
  props: {
9
9
  data: {
@@ -17,23 +17,23 @@ const w = { class: "linearLegend" }, k = {
17
17
  }
18
18
  // 单位
19
19
  },
20
- setup(o, { expose: f }) {
21
- const i = o, h = L(() => i.data.reduce((e, t, a) => a === i.data.length - 1 ? e : t.type === "=" ? (e[e.length - 1].width = 2, e) : t.range.length === 1 ? [...e, { value: t.range[0], width: 1 }] : [...e, { value: t.range[1], width: 1 }], []));
22
- return f({
20
+ setup(o, { expose: p }) {
21
+ const i = o, f = y(() => i.data.reduce((e, t, a) => a === i.data.length - 1 ? e : t.type === "=" ? (e[e.length - 1].width = 2, e) : t.range.length === 1 ? [...e, { value: t.range[0], width: 1 }] : [...e, { value: t.range[1], width: 1 }], []));
22
+ return p({
23
23
  numberToColor: (e) => {
24
24
  let t = 1;
25
25
  i.unit === "亿" ? t = 1e8 : i.unit === "万" && (t = 1e4);
26
26
  for (let a = 0; a < i.data.length; a++) {
27
- const { type: l, color: v, range: n } = i.data[a];
27
+ const { type: l, color: h, range: n } = i.data[a];
28
28
  if (l === "=" && e === n[0] * t || l === ">" && e > n[0] * t || l === ">=" && e >= n[0] * t || l === "<" && e < n[0] * t || l === "<=" && e <= n[0] * t || l === "()" && e > n[0] * t && e < n[1] * t || l === "(]" && e > n[0] * t && e <= n[1] * t || l === "[]" && e >= n[0] * t && e <= n[1] * t || l === "[)" && e >= n[0] * t && e < n[1] * t)
29
- return v;
29
+ return h;
30
30
  }
31
31
  }
32
32
  // 数值转颜色
33
- }), (e, t) => (d(), r("div", w, [
34
- o.unit ? (d(), r("div", k, "(单位:" + c(o.unit) + ")", 1)) : x("", !0),
35
- s("div", S, [
36
- s("div", C, [
33
+ }), (e, t) => (d(), r("div", m, [
34
+ o.unit ? (d(), r("div", w, "(单位:" + c(o.unit) + ")", 1)) : x("", !0),
35
+ s("div", k, [
36
+ s("div", S, [
37
37
  (d(!0), r(u, null, _(o.data, (a) => (d(), r("div", {
38
38
  class: "linearLegend-content-box-item",
39
39
  style: g({
@@ -41,8 +41,8 @@ const w = { class: "linearLegend" }, k = {
41
41
  })
42
42
  }, null, 4))), 256))
43
43
  ]),
44
- s("div", B, [
45
- (d(!0), r(u, null, _(h.value, (a) => (d(), r("div", {
44
+ s("div", C, [
45
+ (d(!0), r(u, null, _(f.value, (a) => (d(), r("div", {
46
46
  class: "linearLegend-content-number-item",
47
47
  style: g({
48
48
  width: `${a.width * 36}px`
@@ -53,10 +53,11 @@ const w = { class: "linearLegend" }, k = {
53
53
  ]));
54
54
  }
55
55
  });
56
- const p = /* @__PURE__ */ m(D, [["__scopeId", "data-v-88fd5500"]]);
57
- p.install = (o) => {
58
- o.component("st-linearLegend", p);
56
+ const D = /* @__PURE__ */ L(B, [["__scopeId", "data-v-88fd5500"]]), V = {
57
+ install(o) {
58
+ o.component("st-linearLegend", D);
59
+ }
59
60
  };
60
61
  export {
61
- p as default
62
+ V as default
62
63
  };