st-comp 0.0.281 → 0.0.283

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/KlineBasic.js CHANGED
@@ -1,20 +1,20 @@
1
- import { E as Ie } from "./el-button-ee9fe159.js";
2
- import { E as We } from "./el-dialog-060b3735.js";
3
- import { E as qe } from "./el-empty-552baf04.js";
4
- import { E as ze } from "./el-input-number-484fb184.js";
5
- import { E as Ze, a as Ke } from "./el-menu-item-0ac22681.js";
6
- import { E as ce } from "./index-e2e58ea9.js";
1
+ import { E as We } from "./el-button-ee9fe159.js";
2
+ import { E as qe } from "./el-dialog-060b3735.js";
3
+ import { E as ze } from "./el-empty-552baf04.js";
4
+ import { E as Ze } from "./el-input-number-484fb184.js";
5
+ import { E as Ke, a as Ue } from "./el-menu-item-0ac22681.js";
6
+ import { E as fe } from "./index-e2e58ea9.js";
7
7
  import { d as F } from "./base-dd156b8e.js";
8
8
  import "./el-overlay-cb5c85aa.js";
9
9
  import "./el-input-d23f5442.js";
10
10
  import "./el-popper-0454c8e8.js";
11
11
  import "./el-tooltip-4ed993c7.js";
12
- import { defineComponent as be, ref as A, watch as te, nextTick as ne, openBlock as T, createElementBlock as E, Fragment as oe, renderList as fe, normalizeStyle as pe, toDisplayString as ae, computed as le, createVNode as $, onMounted as Se, onUnmounted as Me, createElementVNode as K, withCtx as z, createBlock as Le, createCommentVNode as G, renderSlot as Ye, createTextVNode as ue } from "vue";
13
- import * as xe from "echarts";
14
- import { y as Ue, V as He, R as je, A as Ce, U as ie, x as _e, D as Xe, j as de } from "./index-53cc4e43.js";
12
+ import { defineComponent as _e, ref as A, watch as te, nextTick as ne, openBlock as T, createElementBlock as V, Fragment as oe, renderList as pe, normalizeStyle as me, toDisplayString as ae, computed as le, createVNode as B, onMounted as Me, onUnmounted as Le, createElementVNode as K, withCtx as z, createBlock as Fe, createCommentVNode as G, renderSlot as De, createTextVNode as de } from "vue";
13
+ import * as be from "echarts";
14
+ import { y as He, V as je, R as Ce, A as Xe, U as ie, x as he, D as Ge, j as ce } from "./index-53cc4e43.js";
15
15
  import "./el-message-4ed993c7.js";
16
16
  import { _ as J } from "./_plugin-vue_export-helper-dad06003.js";
17
- import { E as Ge, a as Je } from "./el-select-a573c78b.js";
17
+ import { E as Je, a as Qe } from "./el-select-a573c78b.js";
18
18
  import "./el-scrollbar-0a42c1d0.js";
19
19
  import "./el-tag-2d8a3fe7.js";
20
20
  import "./index-6a52dc7c.js";
@@ -36,34 +36,34 @@ import "./castArray-18eb6a41.js";
36
36
  import "./index-d9379af4.js";
37
37
  import "./index-c09fc6f5.js";
38
38
  let C = null;
39
- const Qe = (o) => {
40
- const w = Ue(o, {
39
+ const et = (o) => {
40
+ const w = He(o, {
41
41
  handleReq: (h) => {
42
- He() && (h.headers.token = je());
42
+ je() && (h.headers.token = Ce());
43
43
  },
44
44
  handleRes: (h) => {
45
45
  const { data: r } = h;
46
46
  if (r.code === 401)
47
- return location.origin.includes("localhost") ? location.href = `${location.origin}/#/404` : Ce(), !0;
47
+ return location.origin.includes("localhost") ? location.href = `${location.origin}/#/404` : Xe(), !0;
48
48
  }
49
49
  });
50
50
  w.get, C = w.post;
51
- }, et = (o) => C("/middleLayer/kline/getKlineBasic", { ...o, userId: ie("id") }), tt = (o) => C("/middleLayer/kline/getKline", o), nt = async (o) => C("/alarm/deliversign/addAlarmPrice", { ...o, userId: ie("id") }), ot = async (o) => C("/alarm/deliversign/findAlarmPriceByUserId", { ...o, userId: ie("id") }), Fe = async (o) => C("/alarm/deliversign/updateAlarmPrice", { ...o, userId: ie("id") }), at = async (o) => C("/alarm/deliversign/deleteAlarmPrice", { ...o, userId: ie("id") }), { round: j } = _e, lt = (o, w, h, r, i) => {
52
- const { data: e, time: m } = o, { gridTop: s, gridRight: c, gridLeft: f, maxShowCounts: y, showSubChart: Y } = w;
51
+ }, tt = (o) => C("/middleLayer/kline/getKlineBasic", { ...o, userId: ie("id") }), nt = (o) => C("/middleLayer/kline/getKline", o), ot = async (o) => C("/alarm/deliversign/addAlarmPrice", { ...o, userId: ie("id") }), at = async (o) => C("/alarm/deliversign/findAlarmPriceByUserId", { ...o, userId: ie("id") }), Ae = async (o) => C("/alarm/deliversign/updateAlarmPrice", { ...o, userId: ie("id") }), lt = async (o) => C("/alarm/deliversign/deleteAlarmPrice", { ...o, userId: ie("id") }), { round: j } = he, it = (o, w, h, r, i) => {
52
+ const { data: e, time: m } = o, { gridTop: u, gridRight: f, gridLeft: p, maxShowCounts: g, showSubChart: S } = w;
53
53
  return {
54
54
  animation: !1,
55
55
  grid: {
56
- top: `${s}px`,
57
- right: `${c}px`,
58
- bottom: Y ? "6px" : "24px",
59
- left: `${f}px`
56
+ top: `${u}px`,
57
+ right: `${f}px`,
58
+ bottom: S ? "6px" : "24px",
59
+ left: `${p}px`
60
60
  },
61
61
  dataZoom: [
62
62
  {
63
63
  type: "inside",
64
64
  startValue: h,
65
65
  endValue: r,
66
- maxValueSpan: y
66
+ maxValueSpan: g
67
67
  }
68
68
  ],
69
69
  tooltip: {
@@ -74,23 +74,23 @@ const Qe = (o) => {
74
74
  type: "cross",
75
75
  label: {
76
76
  rich: {},
77
- formatter: (a) => {
78
- const { axisDimension: p, value: _ } = a;
79
- return p === "x" ? Y ? "" : ["6", "7", "8"].includes(i) ? F(_).format("YYYY-MM-DD") : _ : String(j(_));
77
+ formatter: (v) => {
78
+ const { axisDimension: a, value: b } = v;
79
+ return a === "x" ? S ? "" : ["6", "7", "8"].includes(i) ? F(b).format("YYYY-MM-DD") : b : String(j(b));
80
80
  }
81
81
  }
82
82
  },
83
83
  formatter: () => ""
84
84
  },
85
85
  xAxis: {
86
- show: !Y,
86
+ show: !S,
87
87
  type: "category",
88
88
  data: m,
89
89
  splitLine: {
90
90
  show: !1
91
91
  },
92
92
  axisLabel: {
93
- formatter: (a) => ["6", "7", "8"].includes(i) ? F(a).format("YYYY-MM-DD") : a
93
+ formatter: (v) => ["6", "7", "8"].includes(i) ? F(v).format("YYYY-MM-DD") : v
94
94
  }
95
95
  },
96
96
  yAxis: {
@@ -105,8 +105,8 @@ const Qe = (o) => {
105
105
  color: "#333"
106
106
  }
107
107
  },
108
- min: (a) => j(a.min),
109
- max: (a) => j(a.max)
108
+ min: (v) => j(v.min),
109
+ max: (v) => j(v.max)
110
110
  },
111
111
  series: [
112
112
  {
@@ -120,17 +120,17 @@ const Qe = (o) => {
120
120
  borderWidth: 1
121
121
  }
122
122
  },
123
- ...o.mainIndicator.map((a) => ({
124
- name: a.key,
123
+ ...o.mainIndicator.map((v) => ({
124
+ name: v.key,
125
125
  type: "line",
126
126
  silent: !0,
127
127
  symbol: "none",
128
- data: a.data,
128
+ data: v.data,
129
129
  lineStyle: {
130
- width: a.width || 1
130
+ width: v.width || 1
131
131
  },
132
132
  itemStyle: {
133
- color: a.color
133
+ color: v.color
134
134
  }
135
135
  }))
136
136
  ],
@@ -150,32 +150,32 @@ const Qe = (o) => {
150
150
  }
151
151
  }
152
152
  };
153
- }, it = (o, w, h, r, i) => {
154
- const { variety: e, featureId: m, featureType: s } = h, { gridTop: c, gridLeft: f, gridRight: y } = r;
155
- return w.reduce((Y, a) => {
156
- const { warnPrice: p } = a, _ = o == null ? void 0 : o.convertToPixel({ yAxisIndex: 0 }, p);
157
- if (_ <= c || _ >= (o == null ? void 0 : o.getHeight()))
158
- return Y;
153
+ }, rt = (o, w, h, r, i) => {
154
+ const { variety: e, featureId: m, featureType: u } = h, { gridTop: f, gridLeft: p, gridRight: g } = r;
155
+ return w.reduce((S, v) => {
156
+ const { warnPrice: a } = v, b = o == null ? void 0 : o.convertToPixel({ yAxisIndex: 0 }, a);
157
+ if (b <= f || b >= (o == null ? void 0 : o.getHeight()))
158
+ return S;
159
159
  let L = 0;
160
160
  return [
161
- ...Y,
161
+ ...S,
162
162
  {
163
163
  type: "group",
164
164
  name: "warningLine",
165
- info: a,
165
+ info: v,
166
166
  draggable: "vertical",
167
167
  children: [
168
168
  {
169
169
  type: "line",
170
- info: a,
170
+ info: v,
171
171
  shape: {
172
- x1: f,
172
+ x1: p,
173
173
  // 开始X坐标
174
- y1: _,
174
+ y1: b,
175
175
  // 开始Y坐标
176
- x2: (o == null ? void 0 : o.getWidth()) - y,
176
+ x2: (o == null ? void 0 : o.getWidth()) - g,
177
177
  // 结束X坐标
178
- y2: _
178
+ y2: b
179
179
  // 结束Y坐标
180
180
  },
181
181
  style: {
@@ -187,12 +187,12 @@ const Qe = (o) => {
187
187
  },
188
188
  {
189
189
  type: "text",
190
- info: a,
191
- x: (o == null ? void 0 : o.getWidth()) - y,
192
- y: _ - 5,
190
+ info: v,
191
+ x: (o == null ? void 0 : o.getWidth()) - g,
192
+ y: b - 5,
193
193
  style: {
194
194
  fill: "#FFF",
195
- text: p,
195
+ text: a,
196
196
  stroke: "#000",
197
197
  lineWidth: 1,
198
198
  opacity: 1
@@ -201,38 +201,38 @@ const Qe = (o) => {
201
201
  }
202
202
  ],
203
203
  // 事件:开始拖拽
204
- ondragstart: (D) => {
205
- L = D.offsetY;
204
+ ondragstart: (Y) => {
205
+ L = Y.offsetY;
206
206
  },
207
- ondrag: (D) => {
208
- var R;
209
- if (D.target && D.target.childAt(1)) {
210
- const N = o.convertFromPixel({ yAxisIndex: 0 }, _ + (D.offsetY - L));
211
- (R = D.target.childAt(1)) == null || R.animate("style", !1).when(1, { text: j(N, 3) }).start();
207
+ ondrag: (Y) => {
208
+ var E;
209
+ if (Y.target && Y.target.childAt(1)) {
210
+ const $ = o.convertFromPixel({ yAxisIndex: 0 }, b + (Y.offsetY - L));
211
+ (E = Y.target.childAt(1)) == null || E.animate("style", !1).when(1, { text: j($, 3) }).start();
212
212
  }
213
213
  },
214
214
  // 事件:结束拖拽
215
- ondragend: async (D) => {
216
- const N = D.offsetY - L;
217
- if (N !== 0) {
218
- const B = o == null ? void 0 : o.convertFromPixel({ yAxisIndex: 0 }, N + _), V = {
219
- id: a.id,
220
- warnPrice: j(B, 3),
215
+ ondragend: async (Y) => {
216
+ const $ = Y.offsetY - L;
217
+ if ($ !== 0) {
218
+ const W = o == null ? void 0 : o.convertFromPixel({ yAxisIndex: 0 }, $ + b), R = {
219
+ id: v.id,
220
+ warnPrice: j(W, 3),
221
221
  featureId: m,
222
222
  //品种id
223
223
  featureCode: e,
224
224
  //品种代码
225
- featureType: s
225
+ featureType: u
226
226
  //品种类型
227
227
  };
228
- await Fe(V), ce.success("画线预警修改成功"), i && i();
228
+ await Ae(R), fe.success("画线预警修改成功"), i && i();
229
229
  }
230
230
  }
231
231
  }
232
232
  ];
233
233
  }, []);
234
234
  };
235
- function Ae(o) {
235
+ function Te(o) {
236
236
  function w(r) {
237
237
  if (typeof r == "number")
238
238
  return Number.isFinite(r) ? r : null;
@@ -259,7 +259,7 @@ function Ae(o) {
259
259
  return "-";
260
260
  }
261
261
  }
262
- const rt = /* @__PURE__ */ be({
262
+ const st = /* @__PURE__ */ _e({
263
263
  __name: "index",
264
264
  props: {
265
265
  // 提示数据
@@ -273,25 +273,25 @@ const rt = /* @__PURE__ */ be({
273
273
  return te(() => w.data, () => {
274
274
  r.value.length === 0 && ne(() => {
275
275
  Array.from(h.value.children).forEach((i, e) => {
276
- var m, s, c, f, y, Y, a, p;
277
- ((s = (m = w.data) == null ? void 0 : m[e]) == null ? void 0 : s.label) === "涨跌" ? r.value[e] = "85px" : ((f = (c = w.data) == null ? void 0 : c[e]) == null ? void 0 : f.label) === "至今涨幅" ? r.value[e] = "115px" : ((Y = (y = w.data) == null ? void 0 : y[e]) == null ? void 0 : Y.label) === "额" ? r.value[e] = "85px" : ["开", "高", "低", "收"].includes((p = (a = w.data) == null ? void 0 : a[e]) == null ? void 0 : p.label) ? r.value[e] = `${i.offsetWidth + 24}px` : r.value[e] = `${i.offsetWidth + 36}px`;
276
+ var m, u, f, p, g, S, v, a;
277
+ ((u = (m = w.data) == null ? void 0 : m[e]) == null ? void 0 : u.label) === "涨跌" ? r.value[e] = "85px" : ((p = (f = w.data) == null ? void 0 : f[e]) == null ? void 0 : p.label) === "至今涨幅" ? r.value[e] = "115px" : ((S = (g = w.data) == null ? void 0 : g[e]) == null ? void 0 : S.label) === "额" ? r.value[e] = "85px" : ["开", "高", "低", "收"].includes((a = (v = w.data) == null ? void 0 : v[e]) == null ? void 0 : a.label) ? r.value[e] = `${i.offsetWidth + 24}px` : r.value[e] = `${i.offsetWidth + 36}px`;
278
278
  });
279
279
  });
280
- }), (i, e) => (T(), E("div", {
280
+ }), (i, e) => (T(), V("div", {
281
281
  class: "kline-tips",
282
282
  ref_key: "tipsRef",
283
283
  ref: h
284
284
  }, [
285
- (T(!0), E(oe, null, fe(o.data, (m, s) => (T(), E("div", {
286
- key: s,
285
+ (T(!0), V(oe, null, pe(o.data, (m, u) => (T(), V("div", {
286
+ key: u,
287
287
  class: "kline-tips-item",
288
- style: pe({ color: m.color, width: r.value[s] ? r.value[s] : null })
288
+ style: me({ color: m.color, width: r.value[u] ? r.value[u] : null })
289
289
  }, ae(m.label) + " " + ae(m.value), 5))), 128))
290
290
  ], 512));
291
291
  }
292
292
  });
293
- const De = /* @__PURE__ */ J(rt, [["__scopeId", "data-v-0ed8d951"]]);
294
- const st = { class: "kline-tips" }, ut = {
293
+ const Se = /* @__PURE__ */ J(st, [["__scopeId", "data-v-0ed8d951"]]);
294
+ const ut = { class: "kline-tips" }, dt = {
295
295
  __name: "index",
296
296
  props: {
297
297
  // 提示数据
@@ -309,44 +309,44 @@ const st = { class: "kline-tips" }, ut = {
309
309
  }
310
310
  },
311
311
  setup(o) {
312
- const { round: w, formatValue: h } = _e, r = o, i = A(null);
312
+ const { round: w, formatValue: h } = he, r = o, i = A(null);
313
313
  te(() => r.activeIndex, () => {
314
- var s;
315
- i.value === null && (i.value = ((s = r.data.data[r.activeIndex]) == null ? void 0 : s[1]) ?? 0);
314
+ var u;
315
+ i.value === null && (i.value = ((u = r.data.data[r.activeIndex]) == null ? void 0 : u[1]) ?? 0);
316
316
  }), te(() => r.data, () => {
317
- var s;
318
- i.value === null && (i.value = ((s = r.data.data[r.activeIndex]) == null ? void 0 : s[1]) ?? 0);
317
+ var u;
318
+ i.value === null && (i.value = ((u = r.data.data[r.activeIndex]) == null ? void 0 : u[1]) ?? 0);
319
319
  }), te(() => r.variety, () => {
320
320
  i.value = null;
321
321
  });
322
322
  const e = le(() => {
323
- const { data: s, activeIndex: c } = r;
324
- if (s.data && s.data[c]) {
325
- const f = s.data[c], y = [
326
- { label: "开", value: f[0] },
327
- { label: "高", value: f[3] },
328
- { label: "低", value: f[2] },
329
- { label: "收", value: f[1] }
323
+ const { data: u, activeIndex: f } = r;
324
+ if (u.data && u.data[f]) {
325
+ const p = u.data[f], g = [
326
+ { label: "开", value: p[0] },
327
+ { label: "高", value: p[3] },
328
+ { label: "低", value: p[2] },
329
+ { label: "收", value: p[1] }
330
330
  ];
331
- f[4] !== null && y.push({ label: "额", value: h(f[4]) });
332
- let Y;
333
- f[6] > 0 ? Y = "red" : f[6] < 0 && (Y = "green"), y.push({ label: "涨跌", value: `${w(f[6])}%`, color: Y });
334
- const a = (i.value / f[1] - 1) * 100;
335
- let p;
336
- return a > 0 ? p = "red" : a < 0 && (p = "green"), y.push({ label: "至今涨幅", value: `${w(a)}%`, color: p }), y;
331
+ p[4] !== null && g.push({ label: "额", value: h(p[4]) });
332
+ let S;
333
+ p[6] > 0 ? S = "red" : p[6] < 0 && (S = "green"), g.push({ label: "涨跌", value: `${w(p[6])}%`, color: S });
334
+ const v = (i.value / p[1] - 1) * 100;
335
+ let a;
336
+ return v > 0 ? a = "red" : v < 0 && (a = "green"), g.push({ label: "至今涨幅", value: `${w(v)}%`, color: a }), g;
337
337
  }
338
338
  return [];
339
339
  }), m = le(() => {
340
- var f;
341
- const { data: s, activeIndex: c } = r;
342
- return ((f = s == null ? void 0 : s.mainIndicator) == null ? void 0 : f.map((y) => ({ label: y.key, value: Ae(y.data[c]), color: y.color }))) || [];
340
+ var p;
341
+ const { data: u, activeIndex: f } = r;
342
+ return ((p = u == null ? void 0 : u.mainIndicator) == null ? void 0 : p.map((g) => ({ label: g.key, value: Te(g.data[f]), color: g.color }))) || [];
343
343
  });
344
- return (s, c) => (T(), E("div", st, [
345
- $(De, { data: e.value }, null, 8, ["data"]),
346
- $(De, { data: m.value }, null, 8, ["data"])
344
+ return (u, f) => (T(), V("div", ut, [
345
+ B(Se, { data: e.value }, null, 8, ["data"]),
346
+ B(Se, { data: m.value }, null, 8, ["data"])
347
347
  ]));
348
348
  }
349
- }, dt = /* @__PURE__ */ J(ut, [["__scopeId", "data-v-db894a3c"]]), ct = { class: "kline-averageTips" }, ft = /* @__PURE__ */ be({
349
+ }, ct = /* @__PURE__ */ J(dt, [["__scopeId", "data-v-db894a3c"]]), ft = { class: "kline-averageTips" }, pt = /* @__PURE__ */ _e({
350
350
  __name: "index",
351
351
  props: {
352
352
  // 提示数据
@@ -356,20 +356,20 @@ const st = { class: "kline-tips" }, ut = {
356
356
  }
357
357
  },
358
358
  setup(o) {
359
- return (w, h) => (T(), E("div", ct, [
360
- (T(!0), E(oe, null, fe(o.data, (r, i) => (T(), E("div", {
359
+ return (w, h) => (T(), V("div", ft, [
360
+ (T(!0), V(oe, null, pe(o.data, (r, i) => (T(), V("div", {
361
361
  key: i,
362
362
  class: "kline-averageTips-item",
363
- style: pe({ color: r.color })
363
+ style: me({ color: r.color })
364
364
  }, ae(r.label) + " " + ae(r.value), 5))), 128))
365
365
  ]));
366
366
  }
367
367
  });
368
- const pt = /* @__PURE__ */ J(ft, [["__scopeId", "data-v-c544514b"]]);
369
- const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
368
+ const mt = /* @__PURE__ */ J(pt, [["__scopeId", "data-v-c544514b"]]);
369
+ const vt = { class: "klineSub" }, yt = { class: "klineSub-tips" }, gt = {
370
370
  key: 0,
371
371
  class: "klineSub-tips-select"
372
- }, gt = {
372
+ }, xt = {
373
373
  __name: "index",
374
374
  props: {
375
375
  cycle: {
@@ -383,40 +383,40 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
383
383
  },
384
384
  emits: ["update:modelValue"],
385
385
  setup(o, { expose: w, emit: h }) {
386
- const { round: r } = _e;
386
+ const { round: r } = he;
387
387
  let i = null, e = null;
388
- const m = A(!0), s = h, c = o, f = A(), y = le({
388
+ const m = A(!0), u = h, f = o, p = A(), g = le({
389
389
  get() {
390
- return c.modelValue;
390
+ return f.modelValue;
391
391
  },
392
- set(p) {
393
- s("update:modelValue", p);
392
+ set(a) {
393
+ u("update:modelValue", a);
394
394
  }
395
- }), Y = le(() => {
395
+ }), S = le(() => {
396
396
  var L;
397
397
  if (!m.value)
398
398
  return [];
399
- const { data: p, activeIndex: _ } = c;
400
- return ((L = p == null ? void 0 : p.subIndicator) == null ? void 0 : L.map((D) => ({ label: D.key, color: D.color, value: Ae(D.data[_]) }))) || [];
399
+ const { data: a, activeIndex: b } = f;
400
+ return ((L = a == null ? void 0 : a.subIndicator) == null ? void 0 : L.map((Y) => ({ label: Y.key, color: Y.color, value: Te(Y.data[b]) }))) || [];
401
401
  });
402
- Se(() => {
403
- if (m.value = !0, !f.value)
402
+ Me(() => {
403
+ if (m.value = !0, !p.value)
404
404
  return;
405
- i = xe.init(f.value);
406
- let p = !0;
405
+ i = be.init(p.value);
406
+ let a = !0;
407
407
  e = new ResizeObserver(() => {
408
- if (p) {
409
- p = !1;
408
+ if (a) {
409
+ a = !1;
410
410
  return;
411
411
  }
412
412
  m.value && i && !i.isDisposed() && i.resize();
413
- }), e.observe(f.value);
414
- }), Me(() => {
413
+ }), e.observe(p.value);
414
+ }), Le(() => {
415
415
  m.value = !1, i && !i.isDisposed() && (i.dispose(), i = null), e && (e.disconnect(), e = null);
416
416
  });
417
- const a = (p, _) => {
418
- const L = p[_], D = _ === 0 ? p[_] : p[_ - 1];
419
- return L[0] === L[1] ? L[0] >= D[1] ? {
417
+ const v = (a, b) => {
418
+ const L = a[b], Y = b === 0 ? a[b] : a[b - 1];
419
+ return L[0] === L[1] ? L[0] >= Y[1] ? {
420
420
  color: "transparent",
421
421
  borderColor: "#FF0000"
422
422
  } : {
@@ -429,15 +429,15 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
429
429
  };
430
430
  };
431
431
  return w({
432
- connect: (p) => {
433
- !m.value || !i || i.isDisposed() || xe.connect([p, i]);
432
+ connect: (a) => {
433
+ !m.value || !i || i.isDisposed() || be.connect([a, i]);
434
434
  },
435
- draw: (p, _) => {
435
+ draw: (a, b) => {
436
436
  !m.value || !i || i.isDisposed() || ne(() => {
437
437
  if (!m.value || !i || i.isDisposed())
438
438
  return;
439
- const { startValue: L, endValue: D, maxValueSpan: R } = p, { leftYAxisRange: N, rightYAxisRange: B } = c.data.subIndicator[0], V = c.data.subIndicator.map((x) => {
440
- if (x.series === "bar")
439
+ const { startValue: L, endValue: Y, maxValueSpan: E } = a, { leftYAxisRange: $, rightYAxisRange: W } = f.data.subIndicator[0], R = f.data.subIndicator.map((s) => {
440
+ if (s.series === "bar")
441
441
  return {
442
442
  name: "subMain",
443
443
  xAxisIndex: 0,
@@ -445,35 +445,35 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
445
445
  type: "bar",
446
446
  silent: !0,
447
447
  symbol: "none",
448
- data: x.data.map((I, q) => x.seriesColor === "kline" ? {
449
- value: I,
450
- itemStyle: a(c.data.data, q)
451
- } : x.seriesColor === "value" ? {
452
- value: I,
448
+ data: s.data.map((N, q) => s.seriesColor === "kline" ? {
449
+ value: N,
450
+ itemStyle: v(f.data.data, q)
451
+ } : s.seriesColor === "value" ? {
452
+ value: N,
453
453
  itemStyle: {
454
- color: I >= 0 ? "#FF0000" : "#00FFFF"
454
+ color: N >= 0 ? "#FF0000" : "#00FFFF"
455
455
  }
456
456
  } : {
457
- value: I,
457
+ value: N,
458
458
  itemStyle: {
459
- color: x.seriesColor
459
+ color: s.seriesColor
460
460
  }
461
461
  })
462
462
  };
463
- if (x.series === "line")
463
+ if (s.series === "line")
464
464
  return {
465
465
  xAxisIndex: 0,
466
- yAxisIndex: x.yAxis === "right" ? 2 : 1,
467
- name: x.key,
466
+ yAxisIndex: s.yAxis === "right" ? 2 : 1,
467
+ name: s.key,
468
468
  type: "line",
469
469
  silent: !0,
470
470
  symbol: "none",
471
- data: x.data,
471
+ data: s.data,
472
472
  lineStyle: {
473
473
  width: 1
474
474
  },
475
475
  itemStyle: {
476
- color: x.color
476
+ color: s.color
477
477
  }
478
478
  };
479
479
  });
@@ -481,17 +481,17 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
481
481
  {
482
482
  animation: !1,
483
483
  grid: {
484
- left: `${_.gridLeft}px`,
484
+ left: `${b.gridLeft}px`,
485
485
  top: "10px",
486
- right: `${_.gridRight}px`,
486
+ right: `${b.gridRight}px`,
487
487
  bottom: "20px"
488
488
  },
489
489
  dataZoom: [
490
490
  {
491
491
  type: "inside",
492
492
  startValue: L,
493
- endValue: D,
494
- maxValueSpan: R
493
+ endValue: Y,
494
+ maxValueSpan: E
495
495
  }
496
496
  ],
497
497
  tooltip: {
@@ -502,11 +502,11 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
502
502
  type: "cross",
503
503
  label: {
504
504
  rich: {},
505
- formatter: (x) => {
506
- const { axisDimension: I, value: q } = x;
507
- if (I === "x")
508
- return ["6", "7", "8"].includes(c.cycle) ? F(q).format("YYYY-MM-DD") : q;
509
- if (x.axisIndex === 1)
505
+ formatter: (s) => {
506
+ const { axisDimension: N, value: q } = s;
507
+ if (N === "x")
508
+ return ["6", "7", "8"].includes(f.cycle) ? F(q).format("YYYY-MM-DD") : q;
509
+ if (s.axisIndex === 1)
510
510
  return String(r(q));
511
511
  }
512
512
  }
@@ -515,7 +515,7 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
515
515
  },
516
516
  xAxis: {
517
517
  type: "category",
518
- data: c.data.time,
518
+ data: f.data.time,
519
519
  axisLine: {
520
520
  show: !0
521
521
  },
@@ -523,7 +523,7 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
523
523
  show: !1
524
524
  },
525
525
  axisLabel: {
526
- formatter: (x) => ["6", "7", "8"].includes(c.cycle) ? F(x).format("YYYY-MM-DD") : x
526
+ formatter: (s) => ["6", "7", "8"].includes(f.cycle) ? F(s).format("YYYY-MM-DD") : s
527
527
  }
528
528
  },
529
529
  yAxis: [
@@ -532,8 +532,8 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
532
532
  },
533
533
  {
534
534
  position: "left",
535
- min: N === "cover" ? (x) => x.min : null,
536
- max: N === "cover" ? (x) => x.max : null,
535
+ min: $ === "cover" ? (s) => s.min : null,
536
+ max: $ === "cover" ? (s) => s.max : null,
537
537
  splitNumber: 1,
538
538
  axisLine: {
539
539
  show: !0
@@ -548,8 +548,8 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
548
548
  },
549
549
  {
550
550
  position: "right",
551
- min: B === "cover" ? (x) => x.min : null,
552
- max: B === "cover" ? (x) => x.max : null,
551
+ min: W === "cover" ? (s) => s.min : null,
552
+ max: W === "cover" ? (s) => s.max : null,
553
553
  splitNumber: 1,
554
554
  axisLine: {
555
555
  show: !1
@@ -562,45 +562,45 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
562
562
  }
563
563
  }
564
564
  ],
565
- series: V
565
+ series: R
566
566
  },
567
567
  !0
568
568
  );
569
569
  });
570
570
  }
571
- }), (p, _) => {
572
- const L = Ge, D = Je;
573
- return T(), E("div", mt, [
574
- K("div", vt, [
575
- Y.value.length ? (T(), E("div", yt, [
576
- $(D, {
577
- modelValue: y.value,
578
- "onUpdate:modelValue": _[0] || (_[0] = (R) => y.value = R),
571
+ }), (a, b) => {
572
+ const L = Je, Y = Qe;
573
+ return T(), V("div", vt, [
574
+ K("div", yt, [
575
+ S.value.length ? (T(), V("div", gt, [
576
+ B(Y, {
577
+ modelValue: g.value,
578
+ "onUpdate:modelValue": b[0] || (b[0] = (E) => g.value = E),
579
579
  size: "small",
580
580
  "popper-class": "element-dark",
581
581
  class: "element-dark subIndicator"
582
582
  }, {
583
583
  default: z(() => [
584
- (T(!0), E(oe, null, fe(o.subIndicatorList, (R) => (T(), Le(L, {
585
- key: R.value,
586
- label: R.label,
587
- value: R.value
584
+ (T(!0), V(oe, null, pe(o.subIndicatorList, (E) => (T(), Fe(L, {
585
+ key: E.value,
586
+ label: E.label,
587
+ value: E.value
588
588
  }, null, 8, ["label", "value"]))), 128))
589
589
  ]),
590
590
  _: 1
591
591
  }, 8, ["modelValue"])
592
592
  ])) : G("", !0),
593
- $(pt, { data: Y.value }, null, 8, ["data"])
593
+ B(mt, { data: S.value }, null, 8, ["data"])
594
594
  ]),
595
595
  K("div", {
596
596
  class: "klineSub-chart",
597
597
  ref_key: "subChartRef",
598
- ref: f
598
+ ref: p
599
599
  }, null, 512)
600
600
  ]);
601
601
  };
602
602
  }
603
- }, xt = /* @__PURE__ */ J(gt, [["__scopeId", "data-v-6e6b5f5b"]]), bt = /* @__PURE__ */ be({
603
+ }, bt = /* @__PURE__ */ J(xt, [["__scopeId", "data-v-6e6b5f5b"]]), _t = /* @__PURE__ */ _e({
604
604
  __name: "index",
605
605
  emits: ["closeContextMenuCallBack"],
606
606
  setup(o, { emit: w }) {
@@ -610,55 +610,55 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
610
610
  left: "0px"
611
611
  }), m = () => {
612
612
  e.value.display = "none", h("closeContextMenuCallBack"), document.removeEventListener("click", m);
613
- }, s = (c) => {
614
- if (c.preventDefault(), e.value.display === "block") {
615
- const { offsetX: f, offsetY: y } = c, { offsetWidth: Y, offsetHeight: a } = i.value;
616
- if (f <= Y && y <= a)
613
+ }, u = (f) => {
614
+ if (f.preventDefault(), e.value.display === "block") {
615
+ const { offsetX: p, offsetY: g } = f, { offsetWidth: S, offsetHeight: v } = i.value;
616
+ if (p <= S && g <= v)
617
617
  return;
618
618
  }
619
619
  r.value.click(), e.value = {
620
620
  display: "block",
621
- top: `${c.offsetY}px`,
622
- left: `${c.offsetX}px`
621
+ top: `${f.offsetY}px`,
622
+ left: `${f.offsetX}px`
623
623
  }, ne(() => {
624
- const f = r.value.getBoundingClientRect(), y = i.value.getBoundingClientRect();
625
- y.left + y.width >= f.right && (e.value.left = `${c.offsetX - y.width}px`), y.top + y.height >= f.bottom && (console.log("高度超出"), e.value.top = `${c.offsetY - y.height}px`);
624
+ const p = r.value.getBoundingClientRect(), g = i.value.getBoundingClientRect();
625
+ g.left + g.width >= p.right && (e.value.left = `${f.offsetX - g.width}px`), g.top + g.height >= p.bottom && (console.log("高度超出"), e.value.top = `${f.offsetY - g.height}px`);
626
626
  }), document.addEventListener("click", m);
627
627
  };
628
- return (c, f) => (T(), E("div", {
628
+ return (f, p) => (T(), V("div", {
629
629
  ref_key: "contextmenuRef",
630
630
  ref: r,
631
631
  class: "contextmenu",
632
- onContextmenu: s,
632
+ onContextmenu: u,
633
633
  onMouseleave: m
634
634
  }, [
635
- Ye(c.$slots, "default", {}, void 0, !0),
636
- e.value.display !== "none" ? (T(), E("div", {
635
+ De(f.$slots, "default", {}, void 0, !0),
636
+ e.value.display !== "none" ? (T(), V("div", {
637
637
  key: 0,
638
638
  ref_key: "contextmenuContentRef",
639
639
  ref: i,
640
640
  class: "contextmenu-popover",
641
- style: pe(e.value)
641
+ style: me(e.value)
642
642
  }, [
643
- Ye(c.$slots, "popover", {}, void 0, !0)
643
+ De(f.$slots, "popover", {}, void 0, !0)
644
644
  ], 4)) : G("", !0)
645
645
  ], 544));
646
646
  }
647
647
  });
648
- const _t = /* @__PURE__ */ J(bt, [["__scopeId", "data-v-8d581ce9"]]);
649
- const ht = {
648
+ const ht = /* @__PURE__ */ J(_t, [["__scopeId", "data-v-8d581ce9"]]);
649
+ const wt = {
650
650
  key: 0,
651
651
  class: "klineBasic-tips"
652
- }, wt = {
652
+ }, kt = {
653
653
  key: 1,
654
654
  class: "klineBasic-sub"
655
- }, kt = {
655
+ }, Yt = {
656
656
  key: 2,
657
657
  class: "klineBasic-empty"
658
- }, Yt = {
658
+ }, Dt = {
659
659
  key: 3,
660
660
  class: "klineBasic-error"
661
- }, Dt = { style: { "text-align": "center" } }, St = { class: "dialog-footer" }, Mt = {
661
+ }, St = { style: { "text-align": "center" } }, Mt = { class: "dialog-footer" }, Lt = {
662
662
  __name: "index",
663
663
  props: {
664
664
  variety: {
@@ -717,8 +717,10 @@ const ht = {
717
717
  emits: ["change", "getFactorData"],
718
718
  setup(o, { expose: w, emit: h }) {
719
719
  const r = [{ label: "画线预警", key: "drawWarningLine" }];
720
- let i = null, e = null, m = null, s = null, c = null, f = !1, y = !1;
721
- const Y = h, a = o, p = A(!1), _ = A(!1), L = A(!1), D = A(null), R = A(null), N = A("VOL"), B = A(0), V = A({}), x = A([]), I = A({}), q = A(!1), re = A(""), me = A([...r]), W = le(() => ({
720
+ let i = null, e = null, m = null, u = null, f = null, p = !1, g = !1;
721
+ const S = h, v = (n, t) => {
722
+ console.error(`[KlineBasic] ${n}`, t);
723
+ }, a = o, b = A(!1), L = A(!1), Y = A(!1), E = A(null), $ = A(null), W = A("VOL"), R = A(0), s = A({}), N = A([]), q = A({}), re = A(!1), se = A(""), ve = A([...r]), I = le(() => ({
722
724
  defaultShowCounts: 500,
723
725
  addCounts: 2e3,
724
726
  maxShowCounts: 5e3,
@@ -730,70 +732,70 @@ const ht = {
730
732
  showWarningLine: !0,
731
733
  getFactorData: !0,
732
734
  ...a.config
733
- })), Te = () => {
734
- e || (e = xe.init(D.value), $e(), W.value.showSubChart && R.value.connect(e), i = Xe(D.value), i.listen(() => {
735
+ })), Ve = () => {
736
+ e || (e = be.init(E.value), Ne(), I.value.showSubChart && $.value.connect(e), i = Ge(E.value), i.listen(() => {
735
737
  requestAnimationFrame(() => {
736
738
  e == null || e.resize(), Q();
737
739
  });
738
740
  }));
739
- }, ve = () => {
741
+ }, ye = () => {
740
742
  e && !e.isDisposed() && e.hideLoading();
741
- }, he = (n = !1) => {
743
+ }, we = (n = !1) => {
742
744
  m && (cancelAnimationFrame(m), m = null), m = requestAnimationFrame(() => {
743
- Ve(n), m = requestAnimationFrame(() => {
744
- Ee(), m = requestAnimationFrame(() => {
745
+ Ee(n), m = requestAnimationFrame(() => {
746
+ Re(), m = requestAnimationFrame(() => {
745
747
  Q(), m = null;
746
748
  });
747
749
  });
748
750
  });
749
- }, Ve = (n = !1) => {
750
- var u, S, k;
751
+ }, Ee = (n = !1) => {
752
+ var d, k, D;
751
753
  if (!e || e.isDisposed())
752
754
  return;
753
- const { time: t } = V.value, { defaultShowCounts: v } = W.value;
754
- let d = t.length - 1 - v, g = t.length - 1;
755
+ const { time: t } = s.value, { defaultShowCounts: y } = I.value;
756
+ let c = t.length - 1 - y, x = t.length - 1;
755
757
  if (n && e) {
756
- const M = e.getOption(), b = (S = (u = M == null ? void 0 : M.xAxis) == null ? void 0 : u[0]) == null ? void 0 : S.data, O = (k = M == null ? void 0 : M.dataZoom) == null ? void 0 : k[0];
757
- if (b != null && b.length && O) {
758
- const U = b[O.startValue], H = b[O.endValue];
758
+ const M = e.getOption(), _ = (k = (d = M == null ? void 0 : M.xAxis) == null ? void 0 : d[0]) == null ? void 0 : k.data, O = (D = M == null ? void 0 : M.dataZoom) == null ? void 0 : D[0];
759
+ if (_ != null && _.length && O) {
760
+ const U = _[O.startValue], H = _[O.endValue];
759
761
  if (U && H) {
760
- const ge = t.findIndex((ee) => new Date(ee).getTime() >= new Date(U).getTime()), X = t.findLastIndex((ee) => new Date(ee).getTime() <= new Date(H).getTime());
761
- d = ge !== -1 ? ge : 0, g = X !== -1 ? X : t.length - 1, d > g && (d = Math.max(0, g - Math.min(100, t.length - 1)));
762
+ const xe = t.findIndex((ee) => new Date(ee).getTime() >= new Date(U).getTime()), X = t.findLastIndex((ee) => new Date(ee).getTime() <= new Date(H).getTime());
763
+ c = xe !== -1 ? xe : 0, x = X !== -1 ? X : t.length - 1, c > x && (c = Math.max(0, x - Math.min(100, t.length - 1)));
762
764
  }
763
765
  }
764
766
  }
765
- const l = lt(V.value, W.value, d, g, a.cycle);
767
+ const l = it(s.value, I.value, c, x, a.cycle);
766
768
  requestAnimationFrame(() => {
767
- e == null || e.setOption(l, !0), B.value = g, requestAnimationFrame(() => {
768
- Re();
769
+ e == null || e.setOption(l, !0), R.value = x, requestAnimationFrame(() => {
770
+ Be();
769
771
  });
770
772
  });
771
- }, Ee = () => {
772
- var S;
773
- if (!W.value.showSubChart || !R.value)
773
+ }, Re = () => {
774
+ var k;
775
+ if (!I.value.showSubChart || !$.value)
774
776
  return;
775
- const { time: n } = V.value, { gridLeft: t, gridRight: v, maxShowCounts: d, defaultShowCounts: g } = W.value;
776
- let l = n.length - 1 - g, u = n.length - 1;
777
+ const { time: n } = s.value, { gridLeft: t, gridRight: y, maxShowCounts: c, defaultShowCounts: x } = I.value;
778
+ let l = n.length - 1 - x, d = n.length - 1;
777
779
  if (e && !e.isDisposed()) {
778
- const k = e.getOption();
779
- if ((S = k == null ? void 0 : k.dataZoom) != null && S[0]) {
780
- const { startValue: M, endValue: b } = k.dataZoom[0];
781
- M !== void 0 && b !== void 0 && (l = M, u = b);
780
+ const D = e.getOption();
781
+ if ((k = D == null ? void 0 : D.dataZoom) != null && k[0]) {
782
+ const { startValue: M, endValue: _ } = D.dataZoom[0];
783
+ M !== void 0 && _ !== void 0 && (l = M, d = _);
782
784
  }
783
785
  }
784
786
  requestAnimationFrame(() => {
785
- var k;
786
- (k = R.value) == null || k.draw({ startValue: l, endValue: u, maxValueSpan: d }, { gridLeft: t, gridRight: v });
787
+ var D;
788
+ (D = $.value) == null || D.draw({ startValue: l, endValue: d, maxValueSpan: c }, { gridLeft: t, gridRight: y });
787
789
  });
788
790
  }, Q = () => {
789
- e && (s && (cancelAnimationFrame(s), s = null), s = requestAnimationFrame(() => {
791
+ e && (u && (cancelAnimationFrame(u), u = null), u = requestAnimationFrame(() => {
790
792
  if (!(e == null ? void 0 : e.getOption()))
791
793
  return;
792
- const t = e == null ? void 0 : e.getWidth(), v = e == null ? void 0 : e.getHeight();
793
- !t || !v || (e == null || e.setOption(
794
+ const t = e == null ? void 0 : e.getWidth(), y = e == null ? void 0 : e.getHeight();
795
+ !t || !y || (e == null || e.setOption(
794
796
  {
795
- graphic: it(e, x.value, a, W.value, () => {
796
- se();
797
+ graphic: rt(e, N.value, a, I.value, () => {
798
+ ue();
797
799
  })
798
800
  },
799
801
  {
@@ -801,54 +803,54 @@ const ht = {
801
803
  replaceMerge: ["graphic"],
802
804
  lazyUpdate: !0
803
805
  }
804
- ), s = null);
806
+ ), u = null);
805
807
  }));
806
- }, Re = () => {
807
- c && cancelAnimationFrame(c), c = requestAnimationFrame(() => {
808
- const { time: n } = V.value;
808
+ }, Be = () => {
809
+ f && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
810
+ const { time: n } = s.value;
809
811
  if (!a.brushRange || !(n != null && n.length) || !e)
810
812
  return;
811
- let t = F(a.brushRange[0]).format("YYYY-MM-DD 00:00:00"), v = F(a.brushRange[1]).format("YYYY-MM-DD 23:59:59"), d = null, g = null;
813
+ let t = F(a.brushRange[0]).format("YYYY-MM-DD 00:00:00"), y = F(a.brushRange[1]).format("YYYY-MM-DD 23:59:59"), c = null, x = null;
812
814
  switch (String(a.cycle)) {
813
815
  case "6": {
814
- d = n.find((l) => F(l).format("YYYY-MM-DD") === F(t).format("YYYY-MM-DD")), g = d;
816
+ c = n.find((l) => F(l).format("YYYY-MM-DD") === F(t).format("YYYY-MM-DD")), x = c;
815
817
  break;
816
818
  }
817
819
  case "7": {
818
- d = n.find((l) => F(l).day(5).format("YYYY-MM-DD") === F(t).day(5).format("YYYY-MM-DD")), g = n.findLast((l) => F(l).day(5).format("YYYY-MM-DD") === F(v).day(5).format("YYYY-MM-DD"));
820
+ c = n.find((l) => F(l).day(5).format("YYYY-MM-DD") === F(t).day(5).format("YYYY-MM-DD")), x = n.findLast((l) => F(l).day(5).format("YYYY-MM-DD") === F(y).day(5).format("YYYY-MM-DD"));
819
821
  break;
820
822
  }
821
823
  case "8": {
822
- d = n.find((l) => F(l).endOf("month").format("YYYY-MM-DD") === F(t).endOf("month").format("YYYY-MM-DD")), g = n.findLast((l) => F(l).endOf("month").format("YYYY-MM-DD") === F(v).endOf("month").format("YYYY-MM-DD"));
824
+ c = n.find((l) => F(l).endOf("month").format("YYYY-MM-DD") === F(t).endOf("month").format("YYYY-MM-DD")), x = n.findLast((l) => F(l).endOf("month").format("YYYY-MM-DD") === F(y).endOf("month").format("YYYY-MM-DD"));
823
825
  break;
824
826
  }
825
827
  default:
826
- d = n.find((l) => {
827
- const u = F(l).format("YYYY-MM-DD") === F(t).format("YYYY-MM-DD"), S = new Date(l).getTime() >= new Date(t).getTime();
828
- return u && S;
829
- }), g = n.findLast((l) => {
830
- const u = F(l).format("YYYY-MM-DD") === F(v).format("YYYY-MM-DD"), S = new Date(l).getTime() <= new Date(v).getTime();
831
- return u && S;
828
+ c = n.find((l) => {
829
+ const d = F(l).format("YYYY-MM-DD") === F(t).format("YYYY-MM-DD"), k = new Date(l).getTime() >= new Date(t).getTime();
830
+ return d && k;
831
+ }), x = n.findLast((l) => {
832
+ const d = F(l).format("YYYY-MM-DD") === F(y).format("YYYY-MM-DD"), k = new Date(l).getTime() <= new Date(y).getTime();
833
+ return d && k;
832
834
  });
833
835
  }
834
- d && g && e.dispatchAction({
836
+ c && x && e.dispatchAction({
835
837
  type: "brush",
836
838
  areas: [
837
839
  {
838
840
  brushType: "lineX",
839
- coordRange: [d, g],
841
+ coordRange: [c, x],
840
842
  xAxisIndex: 0
841
843
  }
842
844
  ]
843
- }), c = null;
845
+ }), f = null;
844
846
  });
845
- }, ye = async () => {
846
- var n, t, v, d, g, l;
847
+ }, ge = async () => {
848
+ var n, t, y, c, x, l;
847
849
  try {
848
850
  if (!a.variety || !a.cycle)
849
851
  return;
850
- const { variety: u, featureId: S, cycle: k, indicatorStore: M, mainIndicator: b, right: O, startTime: U, endTime: H } = a, { defaultShowCounts: ge, addCounts: X, showWarningLine: ee, getFactorData: ke } = W.value;
851
- Te(), e && !e.isDisposed() && e.showLoading({
852
+ const { variety: d, featureId: k, cycle: D, indicatorStore: M, mainIndicator: _, right: O, startTime: U, endTime: H } = a, { defaultShowCounts: xe, addCounts: X, showWarningLine: ee, getFactorData: Ye } = I.value;
853
+ Ve(), e && !e.isDisposed() && e.showLoading({
852
854
  text: "加载中...",
853
855
  color: "#409eff",
854
856
  textColor: "#fff",
@@ -856,249 +858,249 @@ const ht = {
856
858
  zlevel: 0
857
859
  });
858
860
  const Z = {
859
- variety: u,
860
- featureId: S,
861
- cycle: k,
862
- mainIndicatorList: M.getIndicatorParams(b),
863
- subIndicator: N.value,
861
+ variety: d,
862
+ featureId: k,
863
+ cycle: D,
864
+ mainIndicatorList: M.getIndicatorParams(_),
865
+ subIndicator: W.value,
864
866
  right: O,
865
867
  showWarningLine: ee,
866
- getFactorData: ke
868
+ getFactorData: Ye
867
869
  };
868
870
  U && H ? (Z.startTime = U, Z.endTime = H) : U ? (Z.startTime = U, Z.limit = X) : H ? (Z.endTime = H, Z.limit = X) : (Z.endTime = F().add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), Z.limit = X);
869
- const P = await et(Z);
870
- if (!((v = (t = (n = P == null ? void 0 : P.body) == null ? void 0 : n.kline) == null ? void 0 : t.time) != null && v.length)) {
871
- _.value = !0, L.value = !1, ve();
871
+ const P = await tt(Z);
872
+ if (!((y = (t = (n = P == null ? void 0 : P.body) == null ? void 0 : n.kline) == null ? void 0 : t.time) != null && y.length)) {
873
+ L.value = !0, Y.value = !1, ye();
872
874
  return;
873
875
  }
874
- _.value = !1, L.value = !1, V.value = (d = P == null ? void 0 : P.body) == null ? void 0 : d.kline, x.value = ((g = P == null ? void 0 : P.body) == null ? void 0 : g.warningLine) || [], await ne(), he(!1), ke && Y("getFactorData", (l = P == null ? void 0 : P.body) == null ? void 0 : l.factor), ve();
875
- } catch (u) {
876
- ve(), console.error("KlineBasic getMainData 失败:", u), L.value = !0, _.value = !1;
876
+ L.value = !1, Y.value = !1, s.value = (c = P == null ? void 0 : P.body) == null ? void 0 : c.kline, N.value = ((x = P == null ? void 0 : P.body) == null ? void 0 : x.warningLine) || [], await ne(), we(!1), Ye && S("getFactorData", (l = P == null ? void 0 : P.body) == null ? void 0 : l.factor), ye();
877
+ } catch (d) {
878
+ ye(), console.error("KlineBasic getMainData 失败:", d), Y.value = !0, L.value = !1;
877
879
  }
878
- }, Be = async (n) => {
879
- const { variety: t, cycle: v, indicatorStore: d, mainIndicator: g, right: l } = a, { addCounts: u } = W.value, { time: S } = V.value;
880
+ }, $e = async (n) => {
881
+ const { variety: t, cycle: y, indicatorStore: c, mainIndicator: x, right: l } = a, { addCounts: d } = I.value, { time: k } = s.value;
880
882
  if (n === "history") {
881
- const k = await tt({
883
+ const D = await nt({
882
884
  variety: t,
883
- cycle: v,
884
- endTime: S[0],
885
- limit: u,
886
- mainIndicatorList: d.getIndicatorParams(g),
887
- subIndicator: N.value,
885
+ cycle: y,
886
+ endTime: k[0],
887
+ limit: d,
888
+ mainIndicatorList: c.getIndicatorParams(x),
889
+ subIndicator: W.value,
888
890
  right: l
889
891
  });
890
- V.value = {
891
- time: [...k.body.time, ...V.value.time.slice(1)],
892
- data: [...k.body.data, ...V.value.data.slice(1)],
893
- mainIndicator: V.value.mainIndicator.map((M, b) => {
892
+ s.value = {
893
+ time: [...D.body.time, ...s.value.time.slice(1)],
894
+ data: [...D.body.data, ...s.value.data.slice(1)],
895
+ mainIndicator: s.value.mainIndicator.map((M, _) => {
894
896
  var O;
895
897
  return {
896
898
  ...M,
897
- data: [...((O = k.body.mainIndicator[b]) == null ? void 0 : O.data) ?? [], ...M.data.slice(1)]
899
+ data: [...((O = D.body.mainIndicator[_]) == null ? void 0 : O.data) ?? [], ...M.data.slice(1)]
898
900
  };
899
901
  }),
900
- subIndicator: V.value.subIndicator.map((M, b) => {
902
+ subIndicator: s.value.subIndicator.map((M, _) => {
901
903
  var O;
902
904
  return {
903
905
  ...M,
904
- data: [...((O = k.body.subIndicator[b]) == null ? void 0 : O.data) ?? [], ...M.data.slice(1)]
906
+ data: [...((O = D.body.subIndicator[_]) == null ? void 0 : O.data) ?? [], ...M.data.slice(1)]
905
907
  };
906
908
  })
907
- }, console.log("触发了加载更多数据"), await ne(), he(!0), k.body.data.length < u && (y = !0, console.log("历史数据已经全部加载完毕")), f = !1;
909
+ }, console.log("触发了加载更多数据"), await ne(), we(!0), D.body.data.length < d && (g = !0, console.log("历史数据已经全部加载完毕")), p = !1;
908
910
  }
909
- }, we = ({ code: n, ctrlKey: t }) => {
910
- if (!(t || p.value))
911
+ }, ke = ({ code: n, ctrlKey: t }) => {
912
+ if (!(t || b.value))
911
913
  return;
912
- const { xAxis: v, dataZoom: d } = e.getOption(), { data: g } = (v == null ? void 0 : v[0]) ?? { data: [] };
913
- let { startValue: l, endValue: u } = (d == null ? void 0 : d[0]) ?? {};
914
- if (g != null && g.length) {
914
+ const { xAxis: y, dataZoom: c } = e.getOption(), { data: x } = (y == null ? void 0 : y[0]) ?? { data: [] };
915
+ let { startValue: l, endValue: d } = (c == null ? void 0 : c[0]) ?? {};
916
+ if (x != null && x.length) {
915
917
  switch (n) {
916
918
  case "ArrowUp": {
917
- if (u - l < 5)
919
+ if (d - l < 5)
918
920
  return;
919
- const S = Math.floor((u - l) / 2) + 1;
920
- l = l + S, u - l < 5 && (l = u - 4);
921
+ const k = Math.floor((d - l) / 2) + 1;
922
+ l = l + k, d - l < 5 && (l = d - 4);
921
923
  break;
922
924
  }
923
925
  case "ArrowDown": {
924
- const S = Math.min(500, u - l);
925
- l = l - S - 1;
926
+ const k = Math.min(500, d - l);
927
+ l = l - k - 1;
926
928
  break;
927
929
  }
928
930
  case "ArrowLeft": {
929
- l > 0 && (l -= 1, u -= 1), B.value > 0 && (B.value -= 1);
931
+ l > 0 && (l -= 1, d -= 1), R.value > 0 && (R.value -= 1);
930
932
  break;
931
933
  }
932
934
  case "ArrowRight": {
933
- u < g.length - 1 && (l += 1, u += 1), p.value && B.value < g.length - 1 && (B.value += 1);
935
+ d < x.length - 1 && (l += 1, d += 1), b.value && R.value < x.length - 1 && (R.value += 1);
934
936
  break;
935
937
  }
936
938
  }
937
939
  requestAnimationFrame(() => {
938
- e.dispatchAction({ type: "dataZoom", startValue: l, endValue: u }), e.dispatchAction({
940
+ e.dispatchAction({ type: "dataZoom", startValue: l, endValue: d }), e.dispatchAction({
939
941
  type: "updateAxisPointer",
940
942
  seriesIndex: 0,
941
- dataIndex: p.value ? B.value : null
943
+ dataIndex: b.value ? R.value : null
942
944
  }), e.dispatchAction({
943
945
  type: "highlight",
944
- dataIndex: p.value ? B.value : u
946
+ dataIndex: b.value ? R.value : d
945
947
  });
946
948
  });
947
949
  }
948
- }, $e = () => {
950
+ }, Ne = () => {
949
951
  e == null || e.on(
950
952
  "datazoom",
951
- de((n) => {
952
- var v, d, g, l;
953
- const { loadCheckCounts: t } = W.value;
954
- if ((d = (v = e == null ? void 0 : e.getOption()) == null ? void 0 : v.dataZoom) != null && d[0]) {
955
- const { startValue: u } = (l = (g = e == null ? void 0 : e.getOption()) == null ? void 0 : g.dataZoom) == null ? void 0 : l[0];
956
- u < t && !f && !y && (f = !0, Be("history")), Q();
953
+ ce((n) => {
954
+ var y, c, x, l;
955
+ const { loadCheckCounts: t } = I.value;
956
+ if ((c = (y = e == null ? void 0 : e.getOption()) == null ? void 0 : y.dataZoom) != null && c[0]) {
957
+ const { startValue: d } = (l = (x = e == null ? void 0 : e.getOption()) == null ? void 0 : x.dataZoom) == null ? void 0 : l[0];
958
+ d < t && !p && !g && (p = !0, $e("history").catch((k) => v("加载历史数据失败", k))), Q();
957
959
  }
958
960
  }, 100)
959
961
  ), e == null || e.on(
960
962
  "highlight",
961
- de((n) => {
962
- var v, d;
963
+ ce((n) => {
964
+ var y, c;
963
965
  let t = n.dataIndex || -1;
964
- n.batch && (t = typeof ((v = n == null ? void 0 : n.batch[0]) == null ? void 0 : v.dataIndex) == "number" ? (d = n == null ? void 0 : n.batch[0]) == null ? void 0 : d.dataIndex : -1), B.value = t;
966
+ n.batch && (t = typeof ((y = n == null ? void 0 : n.batch[0]) == null ? void 0 : y.dataIndex) == "number" ? (c = n == null ? void 0 : n.batch[0]) == null ? void 0 : c.dataIndex : -1), R.value = t;
965
967
  }, 20)
966
968
  ), e == null || e.on(
967
969
  "globalout",
968
- de(() => {
969
- var n, t, v;
970
+ ce(() => {
971
+ var n, t, y;
970
972
  if (e) {
971
- const d = (v = (t = (n = e == null ? void 0 : e.getOption()) == null ? void 0 : n.dataZoom) == null ? void 0 : t[0]) == null ? void 0 : v.endValue;
972
- B.value = d;
973
+ const c = (y = (t = (n = e == null ? void 0 : e.getOption()) == null ? void 0 : n.dataZoom) == null ? void 0 : t[0]) == null ? void 0 : y.endValue;
974
+ R.value = c;
973
975
  }
974
976
  }, 30)
975
977
  ), e == null || e.on(
976
978
  "contextmenu",
977
- de((n) => {
978
- n.componentType === "graphic" && (I.value = n.info, me.value = [
979
+ ce((n) => {
980
+ n.componentType === "graphic" && (q.value = n.info, ve.value = [
979
981
  { label: "删除画线", key: "deleteWarningLine" },
980
982
  { label: "修改画线", key: "changeWarningLine" }
981
983
  ]);
982
984
  }, 0)
983
985
  );
984
- }, se = async () => {
985
- const n = await ot({ featureId: a.featureId });
986
- x.value = (n == null ? void 0 : n.body) || [], Q(), Y("change", "warningLine", x.value);
987
- }, Ne = async (n) => {
988
- const { variety: t, varietyName: v, featureId: d, featureType: g } = a;
986
+ }, ue = async () => {
987
+ const n = await at({ featureId: a.featureId });
988
+ N.value = (n == null ? void 0 : n.body) || [], Q(), S("change", "warningLine", N.value);
989
+ }, Oe = async (n) => {
990
+ const { variety: t, varietyName: y, featureId: c, featureType: x } = a;
989
991
  if (n.key === "drawWarningLine") {
990
- const l = e == null ? void 0 : e.getOption(), u = l.tooltip[0];
992
+ const l = e == null ? void 0 : e.getOption(), d = l.tooltip[0];
991
993
  e == null || e.setOption({
992
994
  ...l,
993
995
  tooltip: {
994
- ...u,
996
+ ...d,
995
997
  axisPointer: {
996
- ...u.axisPointer,
998
+ ...d.axisPointer,
997
999
  lineStyle: { width: 0 },
998
1000
  crossStyle: { width: 2 },
999
1001
  label: {
1000
- ...u.axisPointer.label,
1002
+ ...d.axisPointer.label,
1001
1003
  backgroundColor: "transparent",
1002
1004
  formatter: () => ""
1003
1005
  }
1004
1006
  }
1005
1007
  }
1006
1008
  });
1007
- const S = async (k) => {
1008
- e == null || e.getZr().off("mousedown", S);
1009
- const M = e == null ? void 0 : e.convertFromPixel({ yAxisIndex: 0 }, k.offsetY), b = Math.round(M * 1e3) / 1e3;
1009
+ const k = async (D) => {
1010
+ e == null || e.getZr().off("mousedown", k);
1011
+ const M = e == null ? void 0 : e.convertFromPixel({ yAxisIndex: 0 }, D.offsetY), _ = Math.round(M * 1e3) / 1e3;
1010
1012
  e == null || e.setOption({
1011
1013
  ...l,
1012
1014
  tooltip: {
1013
- ...u,
1015
+ ...d,
1014
1016
  axisPointer: {
1015
- ...u.axisPointer,
1017
+ ...d.axisPointer,
1016
1018
  lineStyle: { width: 1 },
1017
1019
  crossStyle: { width: 1 },
1018
1020
  label: {
1019
- ...u.axisPointer.label,
1021
+ ...d.axisPointer.label,
1020
1022
  backgroundColor: null
1021
1023
  }
1022
1024
  }
1023
1025
  }
1024
- }), await nt({
1026
+ }), await ot({
1025
1027
  featureCode: t,
1026
- featureName: v,
1027
- featureId: d,
1028
- featureType: g,
1029
- warnPrice: b
1030
- }), ce.success("画线预警成功!"), se();
1028
+ featureName: y,
1029
+ featureId: c,
1030
+ featureType: x,
1031
+ warnPrice: _
1032
+ }), fe.success("画线预警成功!"), ue();
1031
1033
  };
1032
- e == null || e.getZr().on("mousedown", S);
1034
+ e == null || e.getZr().on("mousedown", k);
1033
1035
  } else
1034
- n.key === "deleteWarningLine" ? (await at({ id: I.value.id }), ce.success("画线预警删除成功"), se()) : n.key === "changeWarningLine" && (q.value = !0, re.value = I.value.warnPrice);
1035
- }, Oe = async () => {
1036
- const { variety: n, varietyName: t, featureId: v, featureType: d } = a;
1037
- await Fe({
1038
- id: I.value.id,
1036
+ n.key === "deleteWarningLine" ? (await lt({ id: q.value.id }), fe.success("画线预警删除成功"), ue()) : n.key === "changeWarningLine" && (re.value = !0, se.value = q.value.warnPrice);
1037
+ }, Pe = async () => {
1038
+ const { variety: n, varietyName: t, featureId: y, featureType: c } = a;
1039
+ await Ae({
1040
+ id: q.value.id,
1039
1041
  featureCode: n,
1040
1042
  featureName: t,
1041
- featureId: v,
1042
- featureType: d,
1043
- warnPrice: re.value
1044
- }), ce.success("画线预警修改成功"), se();
1045
- }, Pe = () => {
1046
- me.value = [...r];
1043
+ featureId: y,
1044
+ featureType: c,
1045
+ warnPrice: se.value
1046
+ }), fe.success("画线预警修改成功"), ue();
1047
+ }, Ie = () => {
1048
+ ve.value = [...r];
1047
1049
  };
1048
- return Se(() => {
1049
- Qe(a.env), ye(), window.addEventListener("keydown", we);
1050
+ return Me(() => {
1051
+ et(a.env), ge().catch((n) => v("初始化数据失败", n)), window.addEventListener("keydown", ke);
1050
1052
  }), te(
1051
1053
  () => {
1052
1054
  var n, t;
1053
- return [a.variety, a.cycle, a.mainIndicator, N.value, (n = a.indicatorStore) == null ? void 0 : n.filterIndicator, (t = a.indicatorStore) == null ? void 0 : t.customIndicator];
1055
+ return [a.variety, a.cycle, a.mainIndicator, W.value, (n = a.indicatorStore) == null ? void 0 : n.filterIndicator, (t = a.indicatorStore) == null ? void 0 : t.customIndicator];
1054
1056
  },
1055
1057
  () => {
1056
- f = !1, y = !1, ye();
1058
+ p = !1, g = !1, ge().catch((n) => v("参数变化后刷新失败", n));
1057
1059
  },
1058
1060
  { deep: !0 }
1059
- ), Me(() => {
1060
- m && (cancelAnimationFrame(m), m = null), s && (cancelAnimationFrame(s), s = null), e == null || e.off("datazoom"), e == null || e.off("highlight"), e == null || e.off("globalout"), e == null || e.dispose(), i == null || i.dispose(), window.removeEventListener("keydown", we);
1061
+ ), Le(() => {
1062
+ m && (cancelAnimationFrame(m), m = null), u && (cancelAnimationFrame(u), u = null), e == null || e.off("datazoom"), e == null || e.off("highlight"), e == null || e.off("globalout"), e == null || e.dispose(), i == null || i.dispose(), window.removeEventListener("keydown", ke);
1061
1063
  }), w({
1062
1064
  draw: (n, t) => {
1063
- n === "warningLine" && (x.value = t, Q());
1065
+ n === "warningLine" && (N.value = t, Q());
1064
1066
  }
1065
1067
  }), (n, t) => {
1066
- var k, M;
1067
- const v = Ze, d = Ke, g = qe, l = Ie, u = ze, S = We;
1068
- return T(), E(oe, null, [
1068
+ var D, M;
1069
+ const y = Ke, c = Ue, x = ze, l = We, d = Ze, k = qe;
1070
+ return T(), V(oe, null, [
1069
1071
  K("div", {
1070
1072
  class: "klineBasic",
1071
- onMousemove: t[1] || (t[1] = (b) => p.value = !0),
1072
- onMouseout: t[2] || (t[2] = (b) => p.value = !1)
1073
+ onMousemove: t[1] || (t[1] = (_) => b.value = !0),
1074
+ onMouseout: t[2] || (t[2] = (_) => b.value = !1)
1073
1075
  }, [
1074
- (k = V.value.time) != null && k.length ? (T(), E("div", ht, [
1075
- $(dt, {
1076
+ (D = s.value.time) != null && D.length ? (T(), V("div", wt, [
1077
+ B(ct, {
1076
1078
  variety: o.variety,
1077
- data: V.value,
1078
- activeIndex: B.value
1079
+ data: s.value,
1080
+ activeIndex: R.value
1079
1081
  }, null, 8, ["variety", "data", "activeIndex"])
1080
1082
  ])) : G("", !0),
1081
1083
  K("div", {
1082
1084
  class: "klineBasic-main",
1083
- style: pe({ height: W.value.showSubChart ? "70%" : "100%" })
1085
+ style: me({ height: I.value.showSubChart ? "70%" : "100%" })
1084
1086
  }, [
1085
- $(_t, { onCloseContextMenuCallBack: Pe }, {
1087
+ B(ht, { onCloseContextMenuCallBack: Ie }, {
1086
1088
  popover: z(() => [
1087
- $(d, { style: {
1089
+ B(c, { style: {
1088
1090
  borderRadius: "4px",
1089
1091
  overflow: "hidden",
1090
1092
  background: "#fff",
1091
1093
  borderRight: 0
1092
1094
  } }, {
1093
1095
  default: z(() => [
1094
- (T(!0), E(oe, null, fe(me.value, (b) => (T(), Le(v, {
1096
+ (T(!0), V(oe, null, pe(ve.value, (_) => (T(), Fe(y, {
1095
1097
  style: { height: "36px" },
1096
- key: b.key,
1097
- index: b.key,
1098
- onClick: (O) => Ne(b)
1098
+ key: _.key,
1099
+ index: _.key,
1100
+ onClick: (O) => Oe(_)
1099
1101
  }, {
1100
1102
  default: z(() => [
1101
- ue(ae(b.label), 1)
1103
+ de(ae(_.label), 1)
1102
1104
  ]),
1103
1105
  _: 2
1104
1106
  }, 1032, ["index", "onClick"]))), 128))
@@ -1109,66 +1111,66 @@ const ht = {
1109
1111
  default: z(() => [
1110
1112
  K("div", {
1111
1113
  ref_key: "klineBasicMainRef",
1112
- ref: D,
1114
+ ref: E,
1113
1115
  style: { height: "100%" }
1114
1116
  }, null, 512)
1115
1117
  ]),
1116
1118
  _: 1
1117
1119
  })
1118
1120
  ], 4),
1119
- W.value.showSubChart ? (T(), E("div", wt, [
1120
- $(xt, {
1121
+ I.value.showSubChart ? (T(), V("div", kt, [
1122
+ B(bt, {
1121
1123
  ref_key: "klineSubRef",
1122
- ref: R,
1123
- modelValue: N.value,
1124
- "onUpdate:modelValue": t[0] || (t[0] = (b) => N.value = b),
1125
- data: V.value,
1124
+ ref: $,
1125
+ modelValue: W.value,
1126
+ "onUpdate:modelValue": t[0] || (t[0] = (_) => W.value = _),
1127
+ data: s.value,
1126
1128
  cycle: o.cycle,
1127
- activeIndex: B.value,
1129
+ activeIndex: R.value,
1128
1130
  subIndicatorList: (M = o.indicatorStore) == null ? void 0 : M.subIndicatorList
1129
1131
  }, null, 8, ["modelValue", "data", "cycle", "activeIndex", "subIndicatorList"])
1130
1132
  ])) : G("", !0),
1131
- _.value ? (T(), E("div", kt, [
1132
- $(g, {
1133
+ L.value ? (T(), V("div", Yt, [
1134
+ B(x, {
1133
1135
  class: "klineBasic-empty-content",
1134
1136
  description: "暂无数据"
1135
1137
  })
1136
1138
  ])) : G("", !0),
1137
- L.value ? (T(), E("div", Yt, [
1139
+ Y.value ? (T(), V("div", Dt, [
1138
1140
  t[7] || (t[7] = K("div", { class: "klineBasic-error-content" }, "加载失败,请刷新重试", -1)),
1139
- K("div", Dt, [
1140
- $(l, { onClick: ye }, {
1141
+ K("div", St, [
1142
+ B(l, { onClick: ge }, {
1141
1143
  default: z(() => [...t[6] || (t[6] = [
1142
- ue("刷新", -1)
1144
+ de("刷新", -1)
1143
1145
  ])]),
1144
1146
  _: 1
1145
1147
  })
1146
1148
  ])
1147
1149
  ])) : G("", !0)
1148
1150
  ], 32),
1149
- $(S, {
1150
- modelValue: q.value,
1151
- "onUpdate:modelValue": t[5] || (t[5] = (b) => q.value = b),
1151
+ B(k, {
1152
+ modelValue: re.value,
1153
+ "onUpdate:modelValue": t[5] || (t[5] = (_) => re.value = _),
1152
1154
  title: "画线预警-修改价格",
1153
1155
  width: "30%",
1154
1156
  "align-center": ""
1155
1157
  }, {
1156
1158
  footer: z(() => [
1157
- K("span", St, [
1158
- $(l, {
1159
- onClick: t[4] || (t[4] = (b) => q.value = !1)
1159
+ K("span", Mt, [
1160
+ B(l, {
1161
+ onClick: t[4] || (t[4] = (_) => re.value = !1)
1160
1162
  }, {
1161
1163
  default: z(() => [...t[8] || (t[8] = [
1162
- ue("取消", -1)
1164
+ de("取消", -1)
1163
1165
  ])]),
1164
1166
  _: 1
1165
1167
  }),
1166
- $(l, {
1168
+ B(l, {
1167
1169
  type: "primary",
1168
- onClick: Oe
1170
+ onClick: Pe
1169
1171
  }, {
1170
1172
  default: z(() => [...t[9] || (t[9] = [
1171
- ue("确定", -1)
1173
+ de("确定", -1)
1172
1174
  ])]),
1173
1175
  _: 1
1174
1176
  })
@@ -1176,9 +1178,9 @@ const ht = {
1176
1178
  ]),
1177
1179
  default: z(() => [
1178
1180
  t[10] || (t[10] = K("span", { style: { "margin-right": "10px" } }, "预警价格:", -1)),
1179
- $(u, {
1180
- modelValue: re.value,
1181
- "onUpdate:modelValue": t[3] || (t[3] = (b) => re.value = b),
1181
+ B(d, {
1182
+ modelValue: se.value,
1183
+ "onUpdate:modelValue": t[3] || (t[3] = (_) => se.value = _),
1182
1184
  placeholder: "输入预警价格"
1183
1185
  }, null, 8, ["modelValue"])
1184
1186
  ]),
@@ -1187,11 +1189,11 @@ const ht = {
1187
1189
  ], 64);
1188
1190
  };
1189
1191
  }
1190
- }, Lt = /* @__PURE__ */ J(Mt, [["__scopeId", "data-v-28fac523"]]), fn = {
1192
+ }, Ft = /* @__PURE__ */ J(Lt, [["__scopeId", "data-v-4361ce24"]]), pn = {
1191
1193
  install(o) {
1192
- o.component("st-klineBasic", Lt);
1194
+ o.component("st-klineBasic", Ft);
1193
1195
  }
1194
1196
  };
1195
1197
  export {
1196
- fn as default
1198
+ pn as default
1197
1199
  };