st-comp 0.0.192 → 0.0.194

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 (78) hide show
  1. package/es/ChartLayout.js +4 -4
  2. package/es/CustomFunction.cjs +1 -1
  3. package/es/CustomFunction.js +32 -32
  4. package/es/FactorWarning.js +29 -29
  5. package/es/Kline.js +15 -15
  6. package/es/KlineBasic.cjs +1 -1
  7. package/es/KlineBasic.js +110 -104
  8. package/es/KlineConfig.js +20 -20
  9. package/es/KlineNew.js +14 -14
  10. package/es/KlinePlus.js +17 -17
  11. package/es/Map.cjs +1 -1
  12. package/es/Map.js +1 -102944
  13. package/es/MonacoEditor.cjs +1 -1
  14. package/es/MonacoEditor.js +1 -1
  15. package/es/Pagination.js +69 -69
  16. package/es/PasswordPrompt.js +3 -3
  17. package/es/Table.js +29 -29
  18. package/es/User.js +21 -21
  19. package/es/VarSelectDialog.js +22 -22
  20. package/es/VarietyAutoComplete.js +9 -9
  21. package/es/VarietySearch.cjs +6 -6
  22. package/es/VarietySearch.js +523 -507
  23. package/es/VirtualTable.js +13 -13
  24. package/es/{_initCloneObject-d37d0044.js → _initCloneObject-25087817.js} +9 -9
  25. package/es/{base-62a70f61.js → base-f5b11441.js} +40 -40
  26. package/es/{config-provider-eb54307e.js → config-provider-95d27ce2.js} +6 -6
  27. package/es/{debounce-ccdceb02.js → debounce-06f59c68.js} +9 -9
  28. package/es/{dropdown-e0119d36.js → dropdown-7a853d45.js} +9 -9
  29. package/es/{el-autocomplete-fdd72342.js → el-autocomplete-e74d589c.js} +15 -15
  30. package/es/{el-button-17a2e708.js → el-button-5a260464.js} +33 -33
  31. package/es/{el-dialog-2fbffe7d.js → el-dialog-8d8f6443.js} +15 -15
  32. package/es/{el-divider-2f300113.js → el-divider-4e1c0fb8.js} +1 -1
  33. package/es/{el-empty-34086220.js → el-empty-deee6b39.js} +5 -5
  34. package/es/{el-form-item-5f9d8170.js → el-form-item-3167d76a.js} +33 -33
  35. package/es/{el-input-c2f1f98c.js → el-input-03aad76d.js} +33 -33
  36. package/es/{el-input-number-429626d1.js → el-input-number-12c09ac3.js} +35 -35
  37. package/es/{el-loading-a45d849f.js → el-loading-86fdef94.js} +5 -5
  38. package/es/{el-menu-item-1bbf217d.js → el-menu-item-1172154b.js} +22 -22
  39. package/es/{el-message-179d8e61.js → el-message-35d4e3ac.js} +23 -23
  40. package/es/{el-message-box-869d122c.js → el-message-box-f43b6e7a.js} +20 -20
  41. package/es/{el-overlay-56098a38.js → el-overlay-04659660.js} +47 -47
  42. package/es/{el-popconfirm-6f9a189f.js → el-popconfirm-29d538b6.js} +20 -20
  43. package/es/{el-popper-d236d5d3.js → el-popper-ee1f8186.js} +125 -125
  44. package/es/{el-scrollbar-191aee47.js → el-scrollbar-09769d9e.js} +48 -48
  45. package/es/{el-segmented-d74e1fd8.js → el-segmented-916b982a.js} +8 -8
  46. package/es/{el-select-b26edf16.js → el-select-8cb88e3c.js} +307 -307
  47. package/es/{el-table-column-cc880936.js → el-table-column-0c899664.js} +12 -12
  48. package/es/{el-tag-b79bf878.js → el-tag-554c333b.js} +21 -21
  49. package/es/{index-89502796.js → index-34048a1d.js} +36 -36
  50. package/es/{index-7926ee44.js → index-384ed4b0.js} +3 -3
  51. package/es/{index-5beb56b8.js → index-5b62ea0e.js} +52 -52
  52. package/es/{index-63a17b07.js → index-69a9bd75.js} +2 -2
  53. package/es/{index-a137018b.js → index-a8ee0e8c.js} +15 -3
  54. package/es/{index-524e4e84.js → index-b07f58c9.js} +31 -31
  55. package/es/{index-97658183.js → index-b7fd560c.js} +12 -12
  56. package/es/{index-482f09b5.js → index-cfeda35a.js} +1 -1
  57. package/es/{index-08cdcff5.js → index-df06f32a.js} +15 -15
  58. package/es/{index-b2b45b6e.cjs → index-fdb71325.cjs} +2 -2
  59. package/es/{python-2b765700.cjs → python-0405c62e.cjs} +1 -1
  60. package/es/{python-2cff7134.js → python-791e6a42.js} +1 -1
  61. package/es/raf-fa761d02.js +6 -0
  62. package/es/{scroll-7d352c1f.js → scroll-9e2dd92b.js} +5 -5
  63. package/es/style.css +1 -1
  64. package/es/{use-global-config-88d2fb63.js → use-global-config-1923bb6f.js} +16 -16
  65. package/es/{validator-6d37dbfa.js → validator-fd32f925.js} +1 -1
  66. package/es/{vnode-c51c8aa3.js → vnode-f9752526.js} +1 -1
  67. package/es/{zh-cn-47b11646.js → zh-cn-d667062d.js} +2 -2
  68. package/lib/bundle.js +1 -1
  69. package/lib/bundle.umd.cjs +33 -33
  70. package/lib/{index-e33e2a73.js → index-db060de6.js} +603 -569
  71. package/lib/{python-bfee2b7e.js → python-077c8efa.js} +1 -1
  72. package/lib/style.css +1 -1
  73. package/package.json +1 -1
  74. package/packages/KlineBasic/index.vue +2 -2
  75. package/packages/MonacoEditor/index.vue +22 -0
  76. package/packages/VarietySearch/components/FactorScreen/index.vue +33 -12
  77. package/packages/VarietySearch/config.js +2 -2
  78. package/es/raf-41aed4d4.js +0 -6
package/es/KlineBasic.js CHANGED
@@ -1,37 +1,37 @@
1
- import "./base-62a70f61.js";
2
- import { E as Ee } from "./el-dialog-2fbffe7d.js";
3
- import "./el-overlay-56098a38.js";
4
- import "./el-input-c2f1f98c.js";
5
- import { E as Be } from "./el-input-number-429626d1.js";
6
- import { E as Oe } from "./el-button-17a2e708.js";
7
- import { E as Ie } from "./el-empty-34086220.js";
8
- import { E as $e, a as Pe } from "./el-menu-item-1bbf217d.js";
1
+ import "./base-f5b11441.js";
2
+ import { E as Ee } from "./el-dialog-8d8f6443.js";
3
+ import "./el-overlay-04659660.js";
4
+ import "./el-input-03aad76d.js";
5
+ import { E as Be } from "./el-input-number-12c09ac3.js";
6
+ import { E as Oe } from "./el-button-5a260464.js";
7
+ import { E as Ie } from "./el-empty-deee6b39.js";
8
+ import { E as $e, a as Pe } from "./el-menu-item-1172154b.js";
9
9
  import "./el-tooltip-4ed993c7.js";
10
- import "./el-popper-d236d5d3.js";
11
- import { defineComponent as he, openBlock as E, createElementBlock as O, Fragment as le, renderList as me, normalizeStyle as ye, toDisplayString as ce, computed as G, createVNode as B, ref as R, onMounted as _e, onUnmounted as we, nextTick as De, createElementVNode as K, withCtx as z, createBlock as ke, createCommentVNode as Z, renderSlot as Ye, watch as We, createTextVNode as re, pushScopeId as Ne, popScopeId as qe } from "vue";
10
+ import "./el-popper-ee1f8186.js";
11
+ import { defineComponent as he, openBlock as E, createElementBlock as O, Fragment as le, renderList as me, normalizeStyle as ye, toDisplayString as ce, computed as J, createVNode as B, ref as R, onMounted as _e, onUnmounted as we, nextTick as De, createElementVNode as U, withCtx as K, createBlock as ke, createCommentVNode as X, renderSlot as Ye, watch as We, createTextVNode as re, pushScopeId as Ne, popScopeId as qe } from "vue";
12
12
  import * as fe from "echarts";
13
13
  import { d as u } from "./dayjs.min-8313b006.js";
14
- import { y as Ce, v as ze, U as Ke, K as Ue, V as J, x as ge, D as He } from "./index-7ed0999e.js";
15
- import { E as ie } from "./el-message-179d8e61.js";
16
- import { _ as Q } from "./_plugin-vue_export-helper-dad06003.js";
17
- import "./el-tag-b79bf878.js";
18
- import { E as je, a as Ze } from "./el-select-b26edf16.js";
19
- import "./el-scrollbar-191aee47.js";
20
- import "./index-524e4e84.js";
21
- import "./index-482f09b5.js";
22
- import "./index-89502796.js";
14
+ import { y as Ce, v as ze, U as Ke, K as Ue, V as Q, x as ge, D as He } from "./index-7ed0999e.js";
15
+ import { E as ie } from "./el-message-35d4e3ac.js";
16
+ import { _ as ee } from "./_plugin-vue_export-helper-dad06003.js";
17
+ import "./el-tag-554c333b.js";
18
+ import { E as je, a as Ze } from "./el-select-8cb88e3c.js";
19
+ import "./el-scrollbar-09769d9e.js";
20
+ import "./index-b07f58c9.js";
21
+ import "./index-cfeda35a.js";
22
+ import "./index-34048a1d.js";
23
23
  import "./index-2e331d74.js";
24
- import "./vnode-c51c8aa3.js";
25
- import "./scroll-7d352c1f.js";
26
- import "./use-global-config-88d2fb63.js";
27
- import "./index-5beb56b8.js";
24
+ import "./vnode-f9752526.js";
25
+ import "./scroll-9e2dd92b.js";
26
+ import "./use-global-config-1923bb6f.js";
27
+ import "./index-5b62ea0e.js";
28
28
  import "./typescript-7ae59c4c.js";
29
- import "./index-97658183.js";
29
+ import "./index-b7fd560c.js";
30
30
  import "./index-657047bb.js";
31
- import "./config-provider-eb54307e.js";
32
- import "./index-7926ee44.js";
33
- import "./debounce-ccdceb02.js";
34
- let j = null;
31
+ import "./config-provider-95d27ce2.js";
32
+ import "./index-384ed4b0.js";
33
+ import "./debounce-06f59c68.js";
34
+ let Z = null;
35
35
  const Xe = (n) => {
36
36
  const k = Ce(n, {
37
37
  handleReq: (A) => {
@@ -43,8 +43,8 @@ const Xe = (n) => {
43
43
  return location.origin.includes("localhost") ? location.href = `${location.origin}/#/404` : Ue(), !0;
44
44
  }
45
45
  });
46
- k.get, j = k.post;
47
- }, Ge = (n) => j("/middleLayer/kline/getKlineBasic", { ...n, userId: J("id") }), Je = (n) => j("/middleLayer/kline/getKline", n), Qe = async (n) => j("/alarm/deliversign/addAlarmPrice", { ...n, userId: J("id") }), et = async (n) => j("/alarm/deliversign/findAlarmPriceByUserId", { ...n, userId: J("id") }), Me = async (n) => j("/alarm/deliversign/updateAlarmPrice", { ...n, userId: J("id") }), tt = async (n) => j("/alarm/deliversign/deleteAlarmPrice", { ...n, userId: J("id") }), { round: X } = ge, nt = (n, k, A, D, g) => {
46
+ k.get, Z = k.post;
47
+ }, Ge = (n) => Z("/middleLayer/kline/getKlineBasic", { ...n, userId: Q("id") }), Je = (n) => Z("/middleLayer/kline/getKline", n), Qe = async (n) => Z("/alarm/deliversign/addAlarmPrice", { ...n, userId: Q("id") }), et = async (n) => Z("/alarm/deliversign/findAlarmPriceByUserId", { ...n, userId: Q("id") }), Me = async (n) => Z("/alarm/deliversign/updateAlarmPrice", { ...n, userId: Q("id") }), tt = async (n) => Z("/alarm/deliversign/deleteAlarmPrice", { ...n, userId: Q("id") }), { round: G } = ge, nt = (n, k, A, D, g) => {
48
48
  const { data: e, time: h } = n, { gridTop: b, gridRight: s, gridLeft: x, maxShowCounts: Y, showSubChart: r } = k;
49
49
  return {
50
50
  animation: !1,
@@ -72,7 +72,7 @@ const Xe = (n) => {
72
72
  rich: {},
73
73
  formatter: (a) => {
74
74
  const { axisDimension: _, value: p } = a;
75
- return _ === "x" ? r ? "" : ["6", "7", "8"].includes(g) ? u(p).format("YYYY-MM-DD") : p : String(X(p));
75
+ return _ === "x" ? r ? "" : ["6", "7", "8"].includes(g) ? u(p).format("YYYY-MM-DD") : p : String(G(p));
76
76
  }
77
77
  }
78
78
  },
@@ -101,8 +101,8 @@ const Xe = (n) => {
101
101
  color: "#333"
102
102
  }
103
103
  },
104
- min: (a) => X(a.min),
105
- max: (a) => X(a.max)
104
+ min: (a) => G(a.min),
105
+ max: (a) => G(a.max)
106
106
  },
107
107
  series: [
108
108
  {
@@ -204,7 +204,7 @@ const Xe = (n) => {
204
204
  var P;
205
205
  if (M.target && M.target.childAt(1)) {
206
206
  const S = n.convertFromPixel({ yAxisIndex: 0 }, p + (M.offsetY - F));
207
- (P = M.target.childAt(1)) == null || P.animate("style", !1).when(1, { text: X(S, 3) }).start();
207
+ (P = M.target.childAt(1)) == null || P.animate("style", !1).when(1, { text: G(S, 3) }).start();
208
208
  }
209
209
  },
210
210
  // 事件:结束拖拽
@@ -213,7 +213,7 @@ const Xe = (n) => {
213
213
  if (S !== 0) {
214
214
  const V = n == null ? void 0 : n.convertFromPixel({ yAxisIndex: 0 }, S + p), d = {
215
215
  id: a.id,
216
- warnPrice: X(V, 3),
216
+ warnPrice: G(V, 3),
217
217
  featureId: h,
218
218
  //品种id
219
219
  featureCode: e,
@@ -246,7 +246,7 @@ const Xe = (n) => {
246
246
  ]));
247
247
  }
248
248
  });
249
- const pe = /* @__PURE__ */ Q(rt, [["__scopeId", "data-v-f83b6b36"]]);
249
+ const pe = /* @__PURE__ */ ee(rt, [["__scopeId", "data-v-f83b6b36"]]);
250
250
  const it = { class: "kline-tips" }, lt = {
251
251
  __name: "index",
252
252
  props: {
@@ -261,7 +261,7 @@ const it = { class: "kline-tips" }, lt = {
261
261
  }
262
262
  },
263
263
  setup(n) {
264
- const { round: k, formatValue: A } = ge, D = n, g = G(() => {
264
+ const { round: k, formatValue: A } = ge, D = n, g = J(() => {
265
265
  const { data: h, activeIndex: b } = D;
266
266
  if (h.data && h.data[b]) {
267
267
  const s = h.data[b], x = [
@@ -275,7 +275,7 @@ const it = { class: "kline-tips" }, lt = {
275
275
  return s[6] > 0 ? Y = "red" : s[6] < 0 && (Y = "green"), x.push({ label: "涨跌", value: `${k(s[6])}%`, color: Y }), x;
276
276
  }
277
277
  return [];
278
- }), e = G(() => {
278
+ }), e = J(() => {
279
279
  var s;
280
280
  const { data: h, activeIndex: b } = D;
281
281
  return ((s = h == null ? void 0 : h.mainIndicator) == null ? void 0 : s.map((x) => ({ label: x.key, value: k(x.data[b]), color: x.color }))) || [];
@@ -285,7 +285,7 @@ const it = { class: "kline-tips" }, lt = {
285
285
  B(pe, { data: e.value }, null, 8, ["data"])
286
286
  ]));
287
287
  }
288
- }, st = /* @__PURE__ */ Q(lt, [["__scopeId", "data-v-64b5c2a3"]]);
288
+ }, st = /* @__PURE__ */ ee(lt, [["__scopeId", "data-v-64b5c2a3"]]);
289
289
  const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
290
290
  key: 0,
291
291
  class: "klineSub-tips-select"
@@ -308,14 +308,14 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
308
308
  setup(n, { expose: k, emit: A }) {
309
309
  const { round: D } = ge;
310
310
  let g, e;
311
- const h = A, b = n, s = R(), x = G({
311
+ const h = A, b = n, s = R(), x = J({
312
312
  get() {
313
313
  return b.modelValue;
314
314
  },
315
315
  set(a) {
316
316
  h("update:modelValue", a);
317
317
  }
318
- }), Y = G(() => {
318
+ }), Y = J(() => {
319
319
  var p;
320
320
  const { data: a, activeIndex: _ } = b;
321
321
  return ((p = a == null ? void 0 : a.subIndicator) == null ? void 0 : p.map((F) => ({ label: F.key, color: F.color, value: F.data[_] || "-" }))) || [];
@@ -490,7 +490,7 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
490
490
  }), (a, _) => {
491
491
  const p = je, F = Ze;
492
492
  return E(), O("div", ut, [
493
- K("div", dt, [
493
+ U("div", dt, [
494
494
  Y.value.length ? (E(), O("div", ct, [
495
495
  B(F, {
496
496
  modelValue: x.value,
@@ -499,7 +499,7 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
499
499
  "popper-class": "element-dark",
500
500
  class: "element-dark subIndicator"
501
501
  }, {
502
- default: z(() => [
502
+ default: K(() => [
503
503
  (E(!0), O(le, null, me(n.subIndicatorList, (M) => (E(), ke(p, {
504
504
  key: M.value,
505
505
  label: M.label,
@@ -508,10 +508,10 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
508
508
  ]),
509
509
  _: 1
510
510
  }, 8, ["modelValue"])
511
- ])) : Z("", !0),
511
+ ])) : X("", !0),
512
512
  B(pe, { data: Y.value }, null, 8, ["data"])
513
513
  ]),
514
- K("div", {
514
+ U("div", {
515
515
  class: "klineSub-chart",
516
516
  ref_key: "subChartRef",
517
517
  ref: s
@@ -519,7 +519,7 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
519
519
  ]);
520
520
  };
521
521
  }
522
- }, pt = /* @__PURE__ */ Q(ft, [["__scopeId", "data-v-ab519de5"]]), mt = /* @__PURE__ */ he({
522
+ }, pt = /* @__PURE__ */ ee(ft, [["__scopeId", "data-v-ab519de5"]]), mt = /* @__PURE__ */ he({
523
523
  __name: "index",
524
524
  emits: ["closeContextMenuCallBack"],
525
525
  setup(n, { emit: k }) {
@@ -560,12 +560,12 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
560
560
  style: ye(e.value)
561
561
  }, [
562
562
  Ye(s.$slots, "popover", {}, void 0, !0)
563
- ], 4)) : Z("", !0)
563
+ ], 4)) : X("", !0)
564
564
  ], 544));
565
565
  }
566
566
  });
567
- const yt = /* @__PURE__ */ Q(mt, [["__scopeId", "data-v-811db6b4"]]);
568
- const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klineBasic-tips" }, vt = {
567
+ const yt = /* @__PURE__ */ ee(mt, [["__scopeId", "data-v-811db6b4"]]);
568
+ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klineBasic-tips" }, vt = {
569
569
  key: 0,
570
570
  class: "klineBasic-sub"
571
571
  }, bt = {
@@ -574,7 +574,7 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
574
574
  }, xt = {
575
575
  key: 2,
576
576
  class: "klineBasic-error"
577
- }, Yt = /* @__PURE__ */ Se(() => /* @__PURE__ */ K("div", { class: "klineBasic-error-content" }, "加载失败,请刷新重试", -1)), ht = { style: { "text-align": "center" } }, _t = /* @__PURE__ */ Se(() => /* @__PURE__ */ K("span", { style: { "margin-right": "10px" } }, "预警价格:", -1)), wt = { class: "dialog-footer" }, Dt = {
577
+ }, Yt = /* @__PURE__ */ Se(() => /* @__PURE__ */ U("div", { class: "klineBasic-error-content" }, "加载失败,请刷新重试", -1)), ht = { style: { "text-align": "center" } }, _t = /* @__PURE__ */ Se(() => /* @__PURE__ */ U("span", { style: { "margin-right": "10px" } }, "预警价格:", -1)), wt = { class: "dialog-footer" }, Dt = {
578
578
  __name: "index",
579
579
  props: {
580
580
  variety: {
@@ -645,7 +645,7 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
645
645
  setup(n, { expose: k, emit: A }) {
646
646
  const D = [{ label: "画线预警", key: "drawWarningLine" }];
647
647
  let g = null, e = null, h, b, s = !1, x = !1;
648
- const Y = A, r = n, a = R(!1), _ = R(!1), p = R(!1), F = R(null), M = R(null), P = R("VOL"), S = R(0), V = R({}), d = R([]), N = R({}), C = R(!1), ee = R(""), se = R([...D]), U = G(() => ({
648
+ const Y = A, r = n, a = R(!1), _ = R(!1), p = R(!1), F = R(null), M = R(null), P = R("VOL"), S = R(0), V = R({}), d = R([]), N = R({}), C = R(!1), te = R(""), se = R([...D]), H = J(() => ({
649
649
  defaultShowCounts: 500,
650
650
  // 默认展示条数
651
651
  addCounts: 2e3,
@@ -683,7 +683,7 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
683
683
  e == null || e.off("datazoom"), e == null || e.off("highlight"), e == null || e.off("globalout"), e == null || e.dispose(), g == null || g.dispose(), window.removeEventListener("keydown", ve);
684
684
  });
685
685
  const Le = () => {
686
- e || (e = fe.init(F.value), Te(), U.value.showSubChart && M.value.connect(e), g = He(F.value), g.listen(() => {
686
+ e || (e = fe.init(F.value), Te(), H.value.showSubChart && M.value.connect(e), g = He(F.value), g.listen(() => {
687
687
  requestAnimationFrame(() => {
688
688
  e.resize();
689
689
  });
@@ -733,10 +733,10 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
733
733
  e == null || e.on("datazoom", (t) => {
734
734
  clearTimeout(b), b = setTimeout(() => {
735
735
  var c, f, o, l;
736
- const { loadCheckCounts: m } = U.value;
736
+ const { loadCheckCounts: m } = H.value;
737
737
  if ((f = (c = e == null ? void 0 : e.getOption()) == null ? void 0 : c.dataZoom) != null && f[0]) {
738
738
  const { startValue: w } = (l = (o = e == null ? void 0 : e.getOption()) == null ? void 0 : o.dataZoom) == null ? void 0 : l[0];
739
- w < m && s === !1 && x === !1 && (s = !0, Fe("history")), te();
739
+ w < m && s === !1 && x === !1 && (s = !0, Fe("history")), ne();
740
740
  }
741
741
  clearTimeout(b);
742
742
  }, 100);
@@ -765,17 +765,17 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
765
765
  try {
766
766
  if (!r.variety || !r.cycle)
767
767
  return;
768
- const { variety: l, featureId: w, cycle: L, indicatorStore: v, mainIndicator: q, right: oe, startTime: H, endTime: T } = r, { defaultShowCounts: I, addCounts: y, showWarningLine: de, getFactorData: ae } = U.value, $ = {
768
+ const { variety: l, featureId: w, cycle: L, indicatorStore: v, mainIndicator: q, right: z, startTime: j, endTime: T } = r, { defaultShowCounts: I, addCounts: y, showWarningLine: de, getFactorData: ae } = H.value, $ = {
769
769
  variety: l,
770
770
  featureId: w,
771
771
  cycle: L,
772
772
  mainIndicatorList: v.getIndicatorParams(q),
773
773
  subIndicator: P.value,
774
- right: oe,
774
+ right: z,
775
775
  showWarningLine: de,
776
776
  getFactorData: ae
777
777
  };
778
- H && T ? ($.startTime = H, $.endTime = T) : H ? ($.startTime = H, $.limit = I + y) : T ? ($.endTime = T, $.limit = I + y) : ($.endTime = u().add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), $.limit = I + y);
778
+ j && T ? ($.startTime = j, $.endTime = T) : j ? ($.startTime = j, $.limit = I + y) : T ? ($.endTime = T, $.limit = I + y) : ($.endTime = u().add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), $.limit = I + y);
779
779
  const W = await Ge($);
780
780
  if ((m = (t = (i = W == null ? void 0 : W.body) == null ? void 0 : i.kline) == null ? void 0 : t.time) != null && m.length)
781
781
  _.value = !1, p.value = !1;
@@ -783,12 +783,12 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
783
783
  _.value = !0, p.value = !1;
784
784
  return;
785
785
  }
786
- V.value = (c = W == null ? void 0 : W.body) == null ? void 0 : c.kline, d.value = ((f = W == null ? void 0 : W.body) == null ? void 0 : f.warningLine) || [], be(), te(), ae && Y("getFactorData", (o = W == null ? void 0 : W.body) == null ? void 0 : o.factor);
786
+ V.value = (c = W == null ? void 0 : W.body) == null ? void 0 : c.kline, d.value = ((f = W == null ? void 0 : W.body) == null ? void 0 : f.warningLine) || [], be(), ne(), ae && Y("getFactorData", (o = W == null ? void 0 : W.body) == null ? void 0 : o.factor);
787
787
  } catch (l) {
788
788
  throw p.value = !0, _.value = !1, new Error(l);
789
789
  }
790
790
  }, Fe = async (i) => {
791
- const { variety: t, cycle: m, indicatorStore: c, mainIndicator: f, right: o } = r, { addCounts: l } = U.value, { time: w } = V.value;
791
+ const { variety: t, cycle: m, indicatorStore: c, mainIndicator: f, right: o } = r, { addCounts: l } = H.value, { time: w } = V.value;
792
792
  if (i === "history") {
793
793
  const L = await Je({
794
794
  variety: t,
@@ -802,26 +802,32 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
802
802
  V.value = {
803
803
  time: [...L.body.time, ...V.value.time.slice(1)],
804
804
  data: [...L.body.data, ...V.value.data.slice(1)],
805
- mainIndicator: V.value.mainIndicator.map((v, q) => ({
806
- ...v,
807
- data: [...L.body.mainIndicator[q].data, ...v.data.slice(1)]
808
- })),
809
- subIndicator: V.value.subIndicator.map((v, q) => ({
810
- ...v,
811
- data: [...L.body.subIndicator[q].data, ...v.data.slice(1)]
812
- }))
805
+ mainIndicator: V.value.mainIndicator.map((v, q) => {
806
+ var z;
807
+ return {
808
+ ...v,
809
+ data: [...((z = L.body.mainIndicator[q]) == null ? void 0 : z.data) ?? [], ...v.data.slice(1)]
810
+ };
811
+ }),
812
+ subIndicator: V.value.subIndicator.map((v, q) => {
813
+ var z;
814
+ return {
815
+ ...v,
816
+ data: [...((z = L.body.subIndicator[q]) == null ? void 0 : z.data) ?? [], ...v.data.slice(1)]
817
+ };
818
+ })
813
819
  }, be(!0), L.body.data.length < l && (x = !0), s = !1;
814
820
  }
815
821
  }, be = (i = !1) => {
816
- var q, oe, H;
822
+ var q, z, j;
817
823
  Le();
818
- const { time: t } = V.value, { gridRight: m, gridLeft: c, defaultShowCounts: f, maxShowCounts: o, showSubChart: l } = U.value;
824
+ const { time: t } = V.value, { gridRight: m, gridLeft: c, defaultShowCounts: f, maxShowCounts: o, showSubChart: l } = H.value;
819
825
  let w = t.length - 1 - f, L = t.length - 1;
820
826
  if (i) {
821
- const T = e.getOption(), I = (oe = (q = T == null ? void 0 : T.xAxis) == null ? void 0 : q[0]) == null ? void 0 : oe.data, y = (H = T == null ? void 0 : T.dataZoom) == null ? void 0 : H[0], de = I[y == null ? void 0 : y.startValue], ae = I[y == null ? void 0 : y.endValue];
827
+ const T = e.getOption(), I = (z = (q = T == null ? void 0 : T.xAxis) == null ? void 0 : q[0]) == null ? void 0 : z.data, y = (j = T == null ? void 0 : T.dataZoom) == null ? void 0 : j[0], de = I[y == null ? void 0 : y.startValue], ae = I[y == null ? void 0 : y.endValue];
822
828
  w = t.findIndex(($) => $ === de), L = t.findIndex(($) => $ === ae);
823
829
  }
824
- const v = nt(V.value, U.value, w, L, r.cycle);
830
+ const v = nt(V.value, H.value, w, L, r.cycle);
825
831
  if (e.setOption(v, !0), S.value = L, r.brushRange) {
826
832
  let T = null, I = null;
827
833
  switch (r.cycle) {
@@ -852,7 +858,7 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
852
858
  });
853
859
  }
854
860
  l && M.value.draw({ startValue: w, endValue: L, maxValueSpan: o }, { gridLeft: c, gridRight: m }), xe();
855
- }, te = () => {
861
+ }, ne = () => {
856
862
  if (!e)
857
863
  return;
858
864
  const i = e == null ? void 0 : e.getOption();
@@ -860,8 +866,8 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
860
866
  {
861
867
  ...i,
862
868
  graphic: [
863
- ...ot(e, d.value, r, U.value, () => {
864
- ne();
869
+ ...ot(e, d.value, r, H.value, () => {
870
+ oe();
865
871
  })
866
872
  ]
867
873
  },
@@ -904,9 +910,9 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
904
910
  ]
905
911
  });
906
912
  }
907
- }, ne = async () => {
913
+ }, oe = async () => {
908
914
  const i = await et({ featureId: r.featureId });
909
- d.value = (i == null ? void 0 : i.body) || [], te(), Y("change", "warningLine", d.value);
915
+ d.value = (i == null ? void 0 : i.body) || [], ne(), Y("change", "warningLine", d.value);
910
916
  }, Re = async (i) => {
911
917
  const { variety: t, varietyName: m, featureId: c, featureType: f } = r;
912
918
  if (i.key === "drawWarningLine") {
@@ -972,11 +978,11 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
972
978
  featureType: f,
973
979
  //品种类型
974
980
  warnPrice: q
975
- }), ie.success("画线预警成功!"), ne();
981
+ }), ie.success("画线预警成功!"), oe();
976
982
  };
977
983
  e == null || e.getZr().on("mousedown", w);
978
984
  } else
979
- i.key === "deleteWarningLine" ? (await tt({ id: N.value.id }), ie.success("画线预警删除成功"), ne()) : i.key === "changeWarningLine" && (C.value = !0, ee.value = N.value.warnPrice);
985
+ i.key === "deleteWarningLine" ? (await tt({ id: N.value.id }), ie.success("画线预警删除成功"), oe()) : i.key === "changeWarningLine" && (C.value = !0, te.value = N.value.warnPrice);
980
986
  }, Ae = async () => {
981
987
  const { variety: i, varietyName: t, featureId: m, featureType: c } = r;
982
988
  await Me({
@@ -989,50 +995,50 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
989
995
  //品种id
990
996
  featureType: c,
991
997
  //品种类型
992
- warnPrice: ee.value
993
- }), ie.success("画线预警修改成功"), ne();
998
+ warnPrice: te.value
999
+ }), ie.success("画线预警修改成功"), oe();
994
1000
  }, Ve = () => {
995
1001
  se.value = [...D];
996
1002
  };
997
1003
  return k({
998
1004
  draw: (i, t) => {
999
- i === "warningLine" && (d.value = t, te());
1005
+ i === "warningLine" && (d.value = t, ne());
1000
1006
  }
1001
1007
  }), (i, t) => {
1002
1008
  var L;
1003
1009
  const m = $e, c = Pe, f = Ie, o = Oe, l = Be, w = Ee;
1004
1010
  return E(), O(le, null, [
1005
- K("div", {
1011
+ U("div", {
1006
1012
  class: "klineBasic",
1007
1013
  onMousemove: t[1] || (t[1] = (v) => a.value = !0),
1008
1014
  onMouseout: t[2] || (t[2] = (v) => a.value = !1)
1009
1015
  }, [
1010
- K("div", gt, [
1016
+ U("div", gt, [
1011
1017
  B(st, {
1012
1018
  data: V.value,
1013
1019
  activeIndex: S.value
1014
1020
  }, null, 8, ["data", "activeIndex"])
1015
1021
  ]),
1016
- K("div", {
1022
+ U("div", {
1017
1023
  class: "klineBasic-main",
1018
- style: ye({ height: U.value.showSubChart ? "70%" : "100%" })
1024
+ style: ye({ height: H.value.showSubChart ? "70%" : "100%" })
1019
1025
  }, [
1020
1026
  B(yt, { onCloseContextMenuCallBack: Ve }, {
1021
- popover: z(() => [
1027
+ popover: K(() => [
1022
1028
  B(c, { style: {
1023
1029
  borderRadius: "4px",
1024
1030
  overflow: "hidden",
1025
1031
  background: "#fff",
1026
1032
  borderRight: 0
1027
1033
  } }, {
1028
- default: z(() => [
1034
+ default: K(() => [
1029
1035
  (E(!0), O(le, null, me(se.value, (v) => (E(), ke(m, {
1030
1036
  style: { height: "36px" },
1031
1037
  key: v.key,
1032
1038
  index: v.key,
1033
1039
  onClick: (q) => Re(v)
1034
1040
  }, {
1035
- default: z(() => [
1041
+ default: K(() => [
1036
1042
  re(ce(v.label), 1)
1037
1043
  ]),
1038
1044
  _: 2
@@ -1041,8 +1047,8 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
1041
1047
  _: 1
1042
1048
  })
1043
1049
  ]),
1044
- default: z(() => [
1045
- K("div", {
1050
+ default: K(() => [
1051
+ U("div", {
1046
1052
  ref_key: "klineBasicMainRef",
1047
1053
  ref: F,
1048
1054
  style: { height: "100%" }
@@ -1051,7 +1057,7 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
1051
1057
  _: 1
1052
1058
  })
1053
1059
  ], 4),
1054
- U.value.showSubChart ? (E(), O("div", vt, [
1060
+ H.value.showSubChart ? (E(), O("div", vt, [
1055
1061
  B(pt, {
1056
1062
  ref_key: "klineSubRef",
1057
1063
  ref: M,
@@ -1062,24 +1068,24 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
1062
1068
  activeIndex: S.value,
1063
1069
  subIndicatorList: (L = n.indicatorStore) == null ? void 0 : L.subIndicatorList
1064
1070
  }, null, 8, ["modelValue", "data", "cycle", "activeIndex", "subIndicatorList"])
1065
- ])) : Z("", !0),
1071
+ ])) : X("", !0),
1066
1072
  _.value ? (E(), O("div", bt, [
1067
1073
  B(f, {
1068
1074
  class: "klineBasic-empty-content",
1069
1075
  description: "暂无数据"
1070
1076
  })
1071
- ])) : Z("", !0),
1077
+ ])) : X("", !0),
1072
1078
  p.value ? (E(), O("div", xt, [
1073
1079
  Yt,
1074
- K("div", ht, [
1080
+ U("div", ht, [
1075
1081
  B(o, { onClick: ue }, {
1076
- default: z(() => [
1082
+ default: K(() => [
1077
1083
  re("刷新")
1078
1084
  ]),
1079
1085
  _: 1
1080
1086
  })
1081
1087
  ])
1082
- ])) : Z("", !0)
1088
+ ])) : X("", !0)
1083
1089
  ], 32),
1084
1090
  B(w, {
1085
1091
  modelValue: C.value,
@@ -1088,12 +1094,12 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
1088
1094
  width: "30%",
1089
1095
  "align-center": ""
1090
1096
  }, {
1091
- footer: z(() => [
1092
- K("span", wt, [
1097
+ footer: K(() => [
1098
+ U("span", wt, [
1093
1099
  B(o, {
1094
1100
  onClick: t[4] || (t[4] = (v) => C.value = !1)
1095
1101
  }, {
1096
- default: z(() => [
1102
+ default: K(() => [
1097
1103
  re("取消")
1098
1104
  ]),
1099
1105
  _: 1
@@ -1102,18 +1108,18 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
1102
1108
  type: "primary",
1103
1109
  onClick: Ae
1104
1110
  }, {
1105
- default: z(() => [
1111
+ default: K(() => [
1106
1112
  re("确定")
1107
1113
  ]),
1108
1114
  _: 1
1109
1115
  })
1110
1116
  ])
1111
1117
  ]),
1112
- default: z(() => [
1118
+ default: K(() => [
1113
1119
  _t,
1114
1120
  B(l, {
1115
- modelValue: ee.value,
1116
- "onUpdate:modelValue": t[3] || (t[3] = (v) => ee.value = v),
1121
+ modelValue: te.value,
1122
+ "onUpdate:modelValue": t[3] || (t[3] = (v) => te.value = v),
1117
1123
  placeholder: "输入预警价格"
1118
1124
  }, null, 8, ["modelValue"])
1119
1125
  ]),
@@ -1122,7 +1128,7 @@ const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klin
1122
1128
  ], 64);
1123
1129
  };
1124
1130
  }
1125
- }, kt = /* @__PURE__ */ Q(Dt, [["__scopeId", "data-v-79254471"]]), an = {
1131
+ }, kt = /* @__PURE__ */ ee(Dt, [["__scopeId", "data-v-9e6456be"]]), an = {
1126
1132
  install(n) {
1127
1133
  n.component("st-klineBasic", kt);
1128
1134
  }
package/es/KlineConfig.js CHANGED
@@ -1,27 +1,27 @@
1
- import { b as ne, m as fe, n as ie, u as re, _ as ue, w as de, e as be, o as X, c as G, p as Q, q as oe } from "./base-62a70f61.js";
2
- import { d as ge, a as ye, u as he, E as _e } from "./el-overlay-56098a38.js";
3
- import { E as Ce } from "./el-button-17a2e708.js";
4
- import { b as we, c as Z, i as J, d as ke, e as Ve, f as Se, g as Ie } from "./el-scrollbar-191aee47.js";
5
- import { E as Ee } from "./el-segmented-d74e1fd8.js";
6
- import "./el-tag-b79bf878.js";
7
- import { E as Te, a as ze } from "./el-select-b26edf16.js";
8
- import { c as Be, e as Ne, u as Ae, U as x, C as ee, I as le, d as Pe, b as Le, g as Oe } from "./el-popper-d236d5d3.js";
9
- import { E as Ue } from "./el-divider-2f300113.js";
1
+ import { b as ne, C as fe, j as ie, u as re, _ as ue, w as de, d as be, g as X, e as G, f as Q, D as oe } from "./base-f5b11441.js";
2
+ import { c as ge, e as ye, u as he, E as _e } from "./el-overlay-04659660.js";
3
+ import { E as Ce } from "./el-button-5a260464.js";
4
+ import { q as we, b as Z, i as J, e as ke, a as Ve, f as Se, d as Ie } from "./el-scrollbar-09769d9e.js";
5
+ import { E as Ee } from "./el-segmented-916b982a.js";
6
+ import "./el-tag-554c333b.js";
7
+ import { E as Te, a as ze } from "./el-select-8cb88e3c.js";
8
+ import { g as Be, b as Ne, u as Ae, U as x, C as ee, I as le, d as Pe, t as Le, f as Oe } from "./el-popper-ee1f8186.js";
9
+ import { E as Ue } from "./el-divider-4e1c0fb8.js";
10
10
  import { computed as T, ref as z, watch as ae, onBeforeUnmount as Re, defineComponent as Y, useSlots as De, openBlock as s, createBlock as k, unref as e, withCtx as m, createVNode as p, Transition as Fe, withDirectives as $e, createElementVNode as n, mergeProps as Me, withModifiers as ce, normalizeClass as b, createElementBlock as g, renderSlot as $, toDisplayString as M, createCommentVNode as _, normalizeStyle as pe, vShow as Ke, onMounted as me, withKeys as qe, resolveDynamicComponent as K, nextTick as je, inject as He, reactive as Je, createTextVNode as q, Fragment as j, renderList as H, pushScopeId as We, popScopeId as Xe } from "vue";
11
11
  import { _ as Ye } from "./_plugin-vue_export-helper-dad06003.js";
12
- import { E as F, c as Ge, l as Qe } from "./index-524e4e84.js";
13
- import { i as Ze } from "./validator-6d37dbfa.js";
12
+ import { E as F, a as Ge, l as Qe } from "./index-b07f58c9.js";
13
+ import { i as Ze } from "./validator-fd32f925.js";
14
14
  import { u as xe } from "./index-2e331d74.js";
15
- import { u as el } from "./index-482f09b5.js";
16
- import "./vnode-c51c8aa3.js";
17
- import "./scroll-7d352c1f.js";
18
- import "./index-89502796.js";
19
- import "./use-global-config-88d2fb63.js";
20
- import "./index-5beb56b8.js";
15
+ import { u as el } from "./index-cfeda35a.js";
16
+ import "./vnode-f9752526.js";
17
+ import "./scroll-9e2dd92b.js";
18
+ import "./index-34048a1d.js";
19
+ import "./use-global-config-1923bb6f.js";
20
+ import "./index-5b62ea0e.js";
21
21
  import "./index-657047bb.js";
22
- import "./index-7926ee44.js";
23
- import "./index-97658183.js";
24
- import "./debounce-ccdceb02.js";
22
+ import "./index-384ed4b0.js";
23
+ import "./index-b7fd560c.js";
24
+ import "./debounce-06f59c68.js";
25
25
  const ll = ne({
26
26
  ...ge,
27
27
  direction: {
package/es/KlineNew.js CHANGED
@@ -2,21 +2,21 @@ import { defineComponent as R, openBlock as T, createElementBlock as L, Fragment
2
2
  import { i as te, t as z } from "./index.esm-8d9a2abe.js";
3
3
  import { _ as q } from "./_plugin-vue_export-helper-dad06003.js";
4
4
  import { x as G } from "./index-7ed0999e.js";
5
- import "./base-62a70f61.js";
6
- import "./el-tag-b79bf878.js";
7
- import { E as ae, a as ne } from "./el-select-b26edf16.js";
8
- import "./el-scrollbar-191aee47.js";
9
- import "./el-popper-d236d5d3.js";
5
+ import "./base-f5b11441.js";
6
+ import "./el-tag-554c333b.js";
7
+ import { E as ae, a as ne } from "./el-select-8cb88e3c.js";
8
+ import "./el-scrollbar-09769d9e.js";
9
+ import "./el-popper-ee1f8186.js";
10
10
  import * as B from "echarts";
11
- import "./index-5beb56b8.js";
12
- import "./index-89502796.js";
13
- import "./index-482f09b5.js";
14
- import "./index-7926ee44.js";
15
- import "./index-524e4e84.js";
16
- import "./index-97658183.js";
17
- import "./scroll-7d352c1f.js";
18
- import "./debounce-ccdceb02.js";
19
- import "./vnode-c51c8aa3.js";
11
+ import "./index-5b62ea0e.js";
12
+ import "./index-34048a1d.js";
13
+ import "./index-cfeda35a.js";
14
+ import "./index-384ed4b0.js";
15
+ import "./index-b07f58c9.js";
16
+ import "./index-b7fd560c.js";
17
+ import "./scroll-9e2dd92b.js";
18
+ import "./debounce-06f59c68.js";
19
+ import "./vnode-f9752526.js";
20
20
  const oe = /* @__PURE__ */ R({
21
21
  __name: "index",
22
22
  setup(k, { expose: D }) {