st-comp 0.0.174 → 0.0.176

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/KlineConfig.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as se, u as ie, k as ne, _ as re, w as de, d as me, l as W, i as X, m as Y, n as te, o as ae, t as ve } from "./base-d9284bf0.js";
1
+ import { b as se, u as ne, k as ie, _ as re, w as de, d as me, l as W, i as X, m as Y, n as te, o as ae, t as ve } from "./base-d9284bf0.js";
2
2
  import { d as fe, a as be, u as ye, E as ge } from "./el-overlay-4a9fa4e1.js";
3
3
  import { E as he } from "./el-button-34665425.js";
4
4
  import "./el-scrollbar-45318df0.js";
@@ -7,11 +7,11 @@ import "./el-tag-7f391090.js";
7
7
  import { E as Ce, a as ke } from "./el-select-d7a00294.js";
8
8
  import { u as Ve, a as we } from "./el-popper-e73466eb.js";
9
9
  import { E as Se } from "./el-divider-fd2b4e2e.js";
10
- import { defineComponent as Q, useSlots as Ie, computed as S, ref as A, openBlock as a, createBlock as h, unref as e, withCtx as p, createVNode as u, Transition as Ee, withDirectives as Te, createElementVNode as i, mergeProps as Ne, withModifiers as ue, normalizeClass as v, createElementBlock as m, renderSlot as R, toDisplayString as z, createCommentVNode as y, vShow as Be, watch as oe, onMounted as ce, withKeys as Ae, resolveDynamicComponent as K, normalizeStyle as Le, nextTick as Oe, inject as Pe, reactive as Ue, createTextVNode as q, Fragment as M, renderList as j, pushScopeId as De, popScopeId as Fe } from "vue";
10
+ import { defineComponent as Q, useSlots as Ie, computed as E, ref as A, openBlock as o, createBlock as h, unref as e, withCtx as p, createVNode as d, Transition as Ee, withDirectives as Te, createElementVNode as n, mergeProps as Ne, withModifiers as ue, normalizeClass as v, createElementBlock as m, renderSlot as R, toDisplayString as z, createCommentVNode as y, vShow as Be, watch as oe, onMounted as ce, withKeys as Ae, resolveDynamicComponent as K, normalizeStyle as Pe, nextTick as Le, inject as Oe, reactive as Ue, createTextVNode as M, Fragment as q, renderList as j, pushScopeId as De, popScopeId as Fe } from "vue";
11
11
  import { _ as Re } from "./_plugin-vue_export-helper-dad06003.js";
12
12
  import { E as F, c as ze, l as $e } from "./index-ee1cebbc.js";
13
13
  import { i as Ke } from "./validator-10fa54fe.js";
14
- import { i as J, u as qe, a as Me, b as je, c as He } from "./use-form-common-props-cc347a83.js";
14
+ import { i as J, u as Me, a as qe, b as je, c as He } from "./use-form-common-props-cc347a83.js";
15
15
  import { a as Je, b as Ge, U as Z, C as x, I as ee } from "./index-94f38460.js";
16
16
  import { u as We } from "./index-3120be08.js";
17
17
  import { u as Qe } from "./index-a8e9ec0f.js";
@@ -53,87 +53,87 @@ const Xe = se({
53
53
  ...Ze,
54
54
  props: Xe,
55
55
  emits: Ye,
56
- setup(r, { expose: L }) {
57
- const g = r, d = Ie();
56
+ setup(r, { expose: P }) {
57
+ const g = r, u = Ie();
58
58
  We({
59
59
  scope: "el-drawer",
60
60
  from: "the title slot",
61
61
  replacement: "the header slot",
62
62
  version: "3.0.0",
63
63
  ref: "https://element-plus.org/en-US/component/drawer.html#slots"
64
- }, S(() => !!d.title));
65
- const V = A(), w = A(), s = ie("drawer"), { t: o } = Qe(), {
64
+ }, E(() => !!u.title));
65
+ const w = A(), S = A(), s = ne("drawer"), { t: a } = Qe(), {
66
66
  afterEnter: _,
67
67
  afterLeave: N,
68
- beforeLeave: E,
69
- visible: O,
68
+ beforeLeave: T,
69
+ visible: L,
70
70
  rendered: $,
71
- titleId: P,
71
+ titleId: O,
72
72
  bodyId: f,
73
- zIndex: n,
73
+ zIndex: i,
74
74
  onModalClick: B,
75
75
  onOpenAutoFocus: c,
76
76
  onCloseAutoFocus: C,
77
77
  onFocusoutPrevented: U,
78
- onCloseRequested: T,
78
+ onCloseRequested: I,
79
79
  handleClose: t
80
- } = ye(g, V), b = S(() => g.direction === "rtl" || g.direction === "ltr"), D = S(() => ne(g.size));
81
- return L({
80
+ } = ye(g, w), b = E(() => g.direction === "rtl" || g.direction === "ltr"), D = E(() => ie(g.size));
81
+ return P({
82
82
  handleClose: t,
83
83
  afterEnter: _,
84
84
  afterLeave: N
85
- }), (l, k) => (a(), h(e(Je), {
85
+ }), (l, k) => (o(), h(e(Je), {
86
86
  to: l.appendTo,
87
87
  disabled: l.appendTo !== "body" ? !1 : !l.appendToBody
88
88
  }, {
89
89
  default: p(() => [
90
- u(Ee, {
90
+ d(Ee, {
91
91
  name: e(s).b("fade"),
92
92
  onAfterEnter: e(_),
93
93
  onAfterLeave: e(N),
94
- onBeforeLeave: e(E),
94
+ onBeforeLeave: e(T),
95
95
  persisted: ""
96
96
  }, {
97
97
  default: p(() => [
98
- Te(u(e(ge), {
98
+ Te(d(e(ge), {
99
99
  mask: l.modal,
100
100
  "overlay-class": l.modalClass,
101
- "z-index": e(n),
101
+ "z-index": e(i),
102
102
  onClick: e(B)
103
103
  }, {
104
104
  default: p(() => [
105
- u(e(Ge), {
105
+ d(e(Ge), {
106
106
  loop: "",
107
- trapped: e(O),
108
- "focus-trap-el": V.value,
109
- "focus-start-el": w.value,
107
+ trapped: e(L),
108
+ "focus-trap-el": w.value,
109
+ "focus-start-el": S.value,
110
110
  onFocusAfterTrapped: e(c),
111
111
  onFocusAfterReleased: e(C),
112
112
  onFocusoutPrevented: e(U),
113
- onReleaseRequested: e(T)
113
+ onReleaseRequested: e(I)
114
114
  }, {
115
115
  default: p(() => [
116
- i("div", Ne({
116
+ n("div", Ne({
117
117
  ref_key: "drawerRef",
118
- ref: V,
118
+ ref: w,
119
119
  "aria-modal": "true",
120
120
  "aria-label": l.title || void 0,
121
- "aria-labelledby": l.title ? void 0 : e(P),
121
+ "aria-labelledby": l.title ? void 0 : e(O),
122
122
  "aria-describedby": e(f)
123
123
  }, l.$attrs, {
124
- class: [e(s).b(), l.direction, e(O) && "open"],
124
+ class: [e(s).b(), l.direction, e(L) && "open"],
125
125
  style: e(b) ? "width: " + e(D) : "height: " + e(D),
126
126
  role: "dialog",
127
127
  onClick: ue(() => {
128
128
  }, ["stop"])
129
129
  }), [
130
- i("span", {
130
+ n("span", {
131
131
  ref_key: "focusStartRef",
132
- ref: w,
132
+ ref: S,
133
133
  class: v(e(s).e("sr-focus")),
134
134
  tabindex: "-1"
135
135
  }, null, 2),
136
- l.withHeader ? (a(), m("header", {
136
+ l.withHeader ? (o(), m("header", {
137
137
  key: 0,
138
138
  class: v([e(s).e("header"), l.headerClass])
139
139
  }, [
@@ -142,42 +142,42 @@ const Xe = se({
142
142
  ]) : R(l.$slots, "header", {
143
143
  key: 0,
144
144
  close: e(t),
145
- titleId: e(P),
145
+ titleId: e(O),
146
146
  titleClass: e(s).e("title")
147
147
  }, () => [
148
- l.$slots.title ? y("v-if", !0) : (a(), m("span", {
148
+ l.$slots.title ? y("v-if", !0) : (o(), m("span", {
149
149
  key: 0,
150
- id: e(P),
150
+ id: e(O),
151
151
  role: "heading",
152
152
  "aria-level": l.headerAriaLevel,
153
153
  class: v(e(s).e("title"))
154
154
  }, z(l.title), 11, ["id", "aria-level"]))
155
155
  ]),
156
- l.showClose ? (a(), m("button", {
156
+ l.showClose ? (o(), m("button", {
157
157
  key: 2,
158
- "aria-label": e(o)("el.drawer.close"),
158
+ "aria-label": e(a)("el.drawer.close"),
159
159
  class: v(e(s).e("close-btn")),
160
160
  type: "button",
161
161
  onClick: e(t)
162
162
  }, [
163
- u(e(F), {
163
+ d(e(F), {
164
164
  class: v(e(s).e("close"))
165
165
  }, {
166
166
  default: p(() => [
167
- u(e(ze))
167
+ d(e(ze))
168
168
  ]),
169
169
  _: 1
170
170
  }, 8, ["class"])
171
171
  ], 10, ["aria-label", "onClick"])) : y("v-if", !0)
172
172
  ], 2)) : y("v-if", !0),
173
- e($) ? (a(), m("div", {
173
+ e($) ? (o(), m("div", {
174
174
  key: 1,
175
175
  id: e(f),
176
176
  class: v([e(s).e("body"), l.bodyClass])
177
177
  }, [
178
178
  R(l.$slots, "default")
179
179
  ], 10, ["id"])) : y("v-if", !0),
180
- l.$slots.footer ? (a(), m("div", {
180
+ l.$slots.footer ? (o(), m("div", {
181
181
  key: 2,
182
182
  class: v([e(s).e("footer"), l.footerClass])
183
183
  }, [
@@ -190,7 +190,7 @@ const Xe = se({
190
190
  ]),
191
191
  _: 3
192
192
  }, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
193
- [Be, e(O)]
193
+ [Be, e(L)]
194
194
  ])
195
195
  ]),
196
196
  _: 3
@@ -271,42 +271,42 @@ const ll = de(el), tl = se({
271
271
  ...ol,
272
272
  props: tl,
273
273
  emits: al,
274
- setup(r, { expose: L, emit: g }) {
275
- const d = r, { formItem: V } = qe(), w = Me(), s = ie("switch"), { inputId: o } = je(d, {
276
- formItemContext: V
277
- }), _ = He(S(() => d.loading)), N = A(d.modelValue !== !1), E = A(), O = A(), $ = S(() => [
274
+ setup(r, { expose: P, emit: g }) {
275
+ const u = r, { formItem: w } = Me(), S = qe(), s = ne("switch"), { inputId: a } = je(u, {
276
+ formItemContext: w
277
+ }), _ = He(E(() => u.loading)), N = A(u.modelValue !== !1), T = A(), L = A(), $ = E(() => [
278
278
  s.b(),
279
- s.m(w.value),
279
+ s.m(S.value),
280
280
  s.is("disabled", _.value),
281
281
  s.is("checked", c.value)
282
- ]), P = S(() => [
282
+ ]), O = E(() => [
283
283
  s.e("label"),
284
284
  s.em("label", "left"),
285
285
  s.is("active", !c.value)
286
- ]), f = S(() => [
286
+ ]), f = E(() => [
287
287
  s.e("label"),
288
288
  s.em("label", "right"),
289
289
  s.is("active", c.value)
290
- ]), n = S(() => ({
291
- width: ne(d.width)
290
+ ]), i = E(() => ({
291
+ width: ie(u.width)
292
292
  }));
293
- oe(() => d.modelValue, () => {
293
+ oe(() => u.modelValue, () => {
294
294
  N.value = !0;
295
295
  });
296
- const B = S(() => N.value ? d.modelValue : !1), c = S(() => B.value === d.activeValue);
297
- [d.activeValue, d.inactiveValue].includes(B.value) || (g(Z, d.inactiveValue), g(x, d.inactiveValue), g(ee, d.inactiveValue)), oe(c, (t) => {
296
+ const B = E(() => N.value ? u.modelValue : !1), c = E(() => B.value === u.activeValue);
297
+ [u.activeValue, u.inactiveValue].includes(B.value) || (g(Z, u.inactiveValue), g(x, u.inactiveValue), g(ee, u.inactiveValue)), oe(c, (t) => {
298
298
  var b;
299
- E.value.checked = t, d.validateEvent && ((b = V == null ? void 0 : V.validate) == null || b.call(V, "change").catch((D) => te(D)));
299
+ T.value.checked = t, u.validateEvent && ((b = w == null ? void 0 : w.validate) == null || b.call(w, "change").catch((D) => te(D)));
300
300
  });
301
301
  const C = () => {
302
- const t = c.value ? d.inactiveValue : d.activeValue;
303
- g(Z, t), g(x, t), g(ee, t), Oe(() => {
304
- E.value.checked = c.value;
302
+ const t = c.value ? u.inactiveValue : u.activeValue;
303
+ g(Z, t), g(x, t), g(ee, t), Le(() => {
304
+ T.value.checked = c.value;
305
305
  });
306
306
  }, U = () => {
307
307
  if (_.value)
308
308
  return;
309
- const { beforeChange: t } = d;
309
+ const { beforeChange: t } = u;
310
310
  if (!t) {
311
311
  C();
312
312
  return;
@@ -320,23 +320,23 @@ const ll = de(el), tl = se({
320
320
  }).catch((l) => {
321
321
  te(le, `some error occurred: ${l}`);
322
322
  }) : b && C();
323
- }, T = () => {
323
+ }, I = () => {
324
324
  var t, b;
325
- (b = (t = E.value) == null ? void 0 : t.focus) == null || b.call(t);
325
+ (b = (t = T.value) == null ? void 0 : t.focus) == null || b.call(t);
326
326
  };
327
327
  return ce(() => {
328
- E.value.checked = c.value;
329
- }), L({
330
- focus: T,
328
+ T.value.checked = c.value;
329
+ }), P({
330
+ focus: I,
331
331
  checked: c
332
- }), (t, b) => (a(), m("div", {
332
+ }), (t, b) => (o(), m("div", {
333
333
  class: v(e($)),
334
334
  onClick: ue(U, ["prevent"])
335
335
  }, [
336
- i("input", {
337
- id: e(o),
336
+ n("input", {
337
+ id: e(a),
338
338
  ref_key: "input",
339
- ref: E,
339
+ ref: T,
340
340
  class: v(e(s).e("input")),
341
341
  type: "checkbox",
342
342
  role: "switch",
@@ -351,84 +351,84 @@ const ll = de(el), tl = se({
351
351
  onChange: C,
352
352
  onKeydown: Ae(U, ["enter"])
353
353
  }, null, 42, ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"]),
354
- !t.inlinePrompt && (t.inactiveIcon || t.inactiveText) ? (a(), m("span", {
354
+ !t.inlinePrompt && (t.inactiveIcon || t.inactiveText) ? (o(), m("span", {
355
355
  key: 0,
356
- class: v(e(P))
356
+ class: v(e(O))
357
357
  }, [
358
- t.inactiveIcon ? (a(), h(e(F), { key: 0 }, {
358
+ t.inactiveIcon ? (o(), h(e(F), { key: 0 }, {
359
359
  default: p(() => [
360
- (a(), h(K(t.inactiveIcon)))
360
+ (o(), h(K(t.inactiveIcon)))
361
361
  ]),
362
362
  _: 1
363
363
  })) : y("v-if", !0),
364
- !t.inactiveIcon && t.inactiveText ? (a(), m("span", {
364
+ !t.inactiveIcon && t.inactiveText ? (o(), m("span", {
365
365
  key: 1,
366
366
  "aria-hidden": e(c)
367
367
  }, z(t.inactiveText), 9, ["aria-hidden"])) : y("v-if", !0)
368
368
  ], 2)) : y("v-if", !0),
369
- i("span", {
369
+ n("span", {
370
370
  ref_key: "core",
371
- ref: O,
371
+ ref: L,
372
372
  class: v(e(s).e("core")),
373
- style: Le(e(n))
373
+ style: Pe(e(i))
374
374
  }, [
375
- t.inlinePrompt ? (a(), m("div", {
375
+ t.inlinePrompt ? (o(), m("div", {
376
376
  key: 0,
377
377
  class: v(e(s).e("inner"))
378
378
  }, [
379
- t.activeIcon || t.inactiveIcon ? (a(), h(e(F), {
379
+ t.activeIcon || t.inactiveIcon ? (o(), h(e(F), {
380
380
  key: 0,
381
381
  class: v(e(s).is("icon"))
382
382
  }, {
383
383
  default: p(() => [
384
- (a(), h(K(e(c) ? t.activeIcon : t.inactiveIcon)))
384
+ (o(), h(K(e(c) ? t.activeIcon : t.inactiveIcon)))
385
385
  ]),
386
386
  _: 1
387
- }, 8, ["class"])) : t.activeText || t.inactiveText ? (a(), m("span", {
387
+ }, 8, ["class"])) : t.activeText || t.inactiveText ? (o(), m("span", {
388
388
  key: 1,
389
389
  class: v(e(s).is("text")),
390
390
  "aria-hidden": !e(c)
391
391
  }, z(e(c) ? t.activeText : t.inactiveText), 11, ["aria-hidden"])) : y("v-if", !0)
392
392
  ], 2)) : y("v-if", !0),
393
- i("div", {
393
+ n("div", {
394
394
  class: v(e(s).e("action"))
395
395
  }, [
396
- t.loading ? (a(), h(e(F), {
396
+ t.loading ? (o(), h(e(F), {
397
397
  key: 0,
398
398
  class: v(e(s).is("loading"))
399
399
  }, {
400
400
  default: p(() => [
401
- u(e($e))
401
+ d(e($e))
402
402
  ]),
403
403
  _: 1
404
404
  }, 8, ["class"])) : e(c) ? R(t.$slots, "active-action", { key: 1 }, () => [
405
- t.activeActionIcon ? (a(), h(e(F), { key: 0 }, {
405
+ t.activeActionIcon ? (o(), h(e(F), { key: 0 }, {
406
406
  default: p(() => [
407
- (a(), h(K(t.activeActionIcon)))
407
+ (o(), h(K(t.activeActionIcon)))
408
408
  ]),
409
409
  _: 1
410
410
  })) : y("v-if", !0)
411
411
  ]) : e(c) ? y("v-if", !0) : R(t.$slots, "inactive-action", { key: 2 }, () => [
412
- t.inactiveActionIcon ? (a(), h(e(F), { key: 0 }, {
412
+ t.inactiveActionIcon ? (o(), h(e(F), { key: 0 }, {
413
413
  default: p(() => [
414
- (a(), h(K(t.inactiveActionIcon)))
414
+ (o(), h(K(t.inactiveActionIcon)))
415
415
  ]),
416
416
  _: 1
417
417
  })) : y("v-if", !0)
418
418
  ])
419
419
  ], 2)
420
420
  ], 6),
421
- !t.inlinePrompt && (t.activeIcon || t.activeText) ? (a(), m("span", {
421
+ !t.inlinePrompt && (t.activeIcon || t.activeText) ? (o(), m("span", {
422
422
  key: 1,
423
423
  class: v(e(f))
424
424
  }, [
425
- t.activeIcon ? (a(), h(e(F), { key: 0 }, {
425
+ t.activeIcon ? (o(), h(e(F), { key: 0 }, {
426
426
  default: p(() => [
427
- (a(), h(K(t.activeIcon)))
427
+ (o(), h(K(t.activeIcon)))
428
428
  ]),
429
429
  _: 1
430
430
  })) : y("v-if", !0),
431
- !t.activeIcon && t.activeText ? (a(), m("span", {
431
+ !t.activeIcon && t.activeText ? (o(), m("span", {
432
432
  key: 1,
433
433
  "aria-hidden": !e(c)
434
434
  }, z(t.activeText), 9, ["aria-hidden"])) : y("v-if", !0)
@@ -436,8 +436,8 @@ const ll = de(el), tl = se({
436
436
  ], 10, ["onClick"]));
437
437
  }
438
438
  });
439
- var il = /* @__PURE__ */ re(sl, [["__file", "switch.vue"]]);
440
- const nl = de(il);
439
+ var nl = /* @__PURE__ */ re(sl, [["__file", "switch.vue"]]);
440
+ const il = de(nl);
441
441
  const rl = [
442
442
  { label: "买卖", value: 0 },
443
443
  { label: "开平", value: 1 }
@@ -465,6 +465,8 @@ const rl = [
465
465
  // 高亮交易范围
466
466
  enable_showScreenTimeRange: !0,
467
467
  // 展示当屏时间范围
468
+ enable_showScreenMaxPrice: !0,
469
+ // 展示当屏最高价
468
470
  enable_dbClickOpenSingel: !0,
469
471
  // 多周期双击图表切换至单周期
470
472
  /**
@@ -474,11 +476,11 @@ const rl = [
474
476
  // 是否启用副图
475
477
  enable_sliderChart: !0
476
478
  // 是否启用拖拽轴
477
- }), dl = (r, L) => {
479
+ }), dl = (r, P) => {
478
480
  var g;
479
- return ((g = L.find((d) => d.value === r)) == null ? void 0 : g.label) ?? "-";
481
+ return ((g = P.find((u) => u.value === r)) == null ? void 0 : g.label) ?? "-";
480
482
  };
481
- const I = (r) => (De("data-v-0cecb8f3"), r = r(), Fe(), r), ul = { class: "kline-config element-dark" }, cl = { class: "setting-item" }, pl = /* @__PURE__ */ I(() => /* @__PURE__ */ i("span", { class: "label" }, "主图指标: ", -1)), ml = { class: "setting-item" }, vl = /* @__PURE__ */ I(() => /* @__PURE__ */ i("span", { class: "label" }, "交易点位: ", -1)), fl = { class: "setting-item" }, bl = /* @__PURE__ */ I(() => /* @__PURE__ */ i("span", { class: "label" }, "单周期: ", -1)), yl = { class: "setting-item" }, gl = /* @__PURE__ */ I(() => /* @__PURE__ */ i("span", { class: "label" }, "多周期: ", -1)), hl = { class: "mode" }, _l = { class: "cycleName" }, Cl = { class: "content" }, kl = { class: "setting-item" }, Vl = /* @__PURE__ */ I(() => /* @__PURE__ */ i("span", { class: "label" }, "默认展示: ", -1)), wl = { class: "setting-item" }, Sl = /* @__PURE__ */ I(() => /* @__PURE__ */ i("span", { class: "label" }, "高亮交易范围: ", -1)), Il = { class: "setting-item" }, El = /* @__PURE__ */ I(() => /* @__PURE__ */ i("span", { class: "label" }, "展示当屏时间: ", -1)), Tl = { class: "setting-item" }, Nl = /* @__PURE__ */ I(() => /* @__PURE__ */ i("span", { class: "label" }, "多周期双击图表切换至单周期: ", -1)), Bl = { class: "setting-item" }, Al = /* @__PURE__ */ I(() => /* @__PURE__ */ i("span", { class: "label" }, "开启副图: ", -1)), Ll = { class: "setting-item" }, Ol = /* @__PURE__ */ I(() => /* @__PURE__ */ i("span", { class: "label" }, "开启拖拽轴: ", -1)), Pl = { class: "setting-footer" }, Ul = {
483
+ const V = (r) => (De("data-v-da9cf1c8"), r = r(), Fe(), r), ul = { class: "kline-config element-dark" }, cl = { class: "setting-item" }, pl = /* @__PURE__ */ V(() => /* @__PURE__ */ n("span", { class: "label" }, "主图指标: ", -1)), ml = { class: "setting-item" }, vl = /* @__PURE__ */ V(() => /* @__PURE__ */ n("span", { class: "label" }, "交易点位: ", -1)), fl = { class: "setting-item" }, bl = /* @__PURE__ */ V(() => /* @__PURE__ */ n("span", { class: "label" }, "单周期: ", -1)), yl = { class: "setting-item" }, gl = /* @__PURE__ */ V(() => /* @__PURE__ */ n("span", { class: "label" }, "多周期: ", -1)), hl = { class: "mode" }, _l = { class: "cycleName" }, Cl = { class: "content" }, kl = { class: "setting-item" }, Vl = /* @__PURE__ */ V(() => /* @__PURE__ */ n("span", { class: "label" }, "默认展示: ", -1)), wl = { class: "setting-item" }, Sl = /* @__PURE__ */ V(() => /* @__PURE__ */ n("span", { class: "label" }, "高亮交易范围: ", -1)), Il = { class: "setting-item" }, El = /* @__PURE__ */ V(() => /* @__PURE__ */ n("span", { class: "label" }, "展示当屏时间: ", -1)), Tl = { class: "setting-item" }, Nl = /* @__PURE__ */ V(() => /* @__PURE__ */ n("span", { class: "label" }, "展示当屏最高价: ", -1)), Bl = { class: "setting-item" }, Al = /* @__PURE__ */ V(() => /* @__PURE__ */ n("span", { class: "label" }, "多周期双击图表切换至单周期: ", -1)), Pl = { class: "setting-item" }, Ll = /* @__PURE__ */ V(() => /* @__PURE__ */ n("span", { class: "label" }, "开启副图: ", -1)), Ol = { class: "setting-item" }, Ul = /* @__PURE__ */ V(() => /* @__PURE__ */ n("span", { class: "label" }, "开启拖拽轴: ", -1)), Dl = { class: "setting-footer" }, Fl = {
482
484
  __name: "index",
483
485
  props: {
484
486
  indicatorStore: { type: Object, default: () => ({}) },
@@ -489,66 +491,66 @@ const I = (r) => (De("data-v-0cecb8f3"), r = r(), Fe(), r), ul = { class: "kline
489
491
  cycleOptions: { type: Array, default: () => [] }
490
492
  },
491
493
  emits: "callBack",
492
- setup(r, { expose: L, emit: g }) {
493
- const { request: d } = Pe("stConfig"), V = g, w = r, s = A(!1), o = Ue({}), _ = A([]), N = A([]), E = () => {
494
- Object.assign(o, G());
495
- }, O = async () => {
496
- const f = JSON.stringify(o);
497
- w.origin === "server" ? await d.post("/common/qt/updateUserConfig", { appId: 1, json: f }) : localStorage.setItem("userKlineConfig", f), V("callBack", f), s.value = !1;
494
+ setup(r, { expose: P, emit: g }) {
495
+ const { request: u } = Oe("stConfig"), w = g, S = r, s = A(!1), a = Ue({}), _ = A([]), N = A([]), T = () => {
496
+ Object.assign(a, G());
497
+ }, L = async () => {
498
+ const f = JSON.stringify(a);
499
+ S.origin === "server" ? await u.post("/common/qt/updateUserConfig", { appId: 1, json: f }) : localStorage.setItem("userKlineConfig", f), w("callBack", f), s.value = !1;
498
500
  }, $ = async () => {
499
- if (w.origin === "server") {
500
- const { body: f } = await d.post("/common/qt/getUserConfig", { appId: 1 });
501
- Object.assign(o, G(), f ? JSON.parse(f) : {});
501
+ if (S.origin === "server") {
502
+ const { body: f } = await u.post("/common/qt/getUserConfig", { appId: 1 });
503
+ Object.assign(a, G(), f ? JSON.parse(f) : {});
502
504
  } else {
503
505
  const f = localStorage.getItem("userKlineConfig");
504
- Object.assign(o, G(), f ? JSON.parse(f) : {});
506
+ Object.assign(a, G(), f ? JSON.parse(f) : {});
505
507
  }
506
- }, P = async () => {
507
- if (w.origin === "server") {
508
- const { body: f } = await d.post("/common/qt/getDict", { dictIds: [1002] });
509
- _.value = f[1002].map((n) => ({
510
- label: n.dictName,
511
- value: n.dictCode
508
+ }, O = async () => {
509
+ if (S.origin === "server") {
510
+ const { body: f } = await u.post("/common/qt/getDict", { dictIds: [1002] });
511
+ _.value = f[1002].map((i) => ({
512
+ label: i.dictName,
513
+ value: i.dictCode
512
514
  }));
513
515
  } else
514
- _.value = w.cycleOptions;
516
+ _.value = S.cycleOptions;
515
517
  };
516
518
  return ce(() => {
517
- P(), N.value = w.indicatorStore.mainIndicatorList ?? [];
518
- }), L({
519
+ O(), N.value = S.indicatorStore.mainIndicatorList ?? [];
520
+ }), P({
519
521
  // 打开
520
522
  open: async () => {
521
523
  await $(), s.value = !0;
522
524
  },
523
525
  // 获取默认配置
524
526
  getDefaultUserKlineConfig: G
525
- }), (f, n) => {
526
- const B = Se, c = Ce, C = ke, U = _e, T = nl, t = we, b = he, D = ll;
527
- return a(), m("div", ul, [
528
- u(D, {
527
+ }), (f, i) => {
528
+ const B = Se, c = Ce, C = ke, U = _e, I = il, t = we, b = he, D = ll;
529
+ return o(), m("div", ul, [
530
+ d(D, {
529
531
  modelValue: s.value,
530
- "onUpdate:modelValue": n[10] || (n[10] = (l) => s.value = l),
532
+ "onUpdate:modelValue": i[11] || (i[11] = (l) => s.value = l),
531
533
  title: "K线自定义配置",
532
534
  size: 320
533
535
  }, {
534
536
  default: p(() => [
535
- u(t, { class: "setting-main" }, {
537
+ d(t, { class: "setting-main" }, {
536
538
  default: p(() => [
537
- u(B, { style: { "margin-top": "8px" } }, {
539
+ d(B, { style: { "margin-top": "8px" } }, {
538
540
  default: p(() => [
539
- q("偏好设置")
541
+ M("偏好设置")
540
542
  ]),
541
543
  _: 1
542
544
  }),
543
- i("div", cl, [
545
+ n("div", cl, [
544
546
  pl,
545
- u(C, {
546
- modelValue: o.mainIndicator,
547
- "onUpdate:modelValue": n[0] || (n[0] = (l) => o.mainIndicator = l),
547
+ d(C, {
548
+ modelValue: a.mainIndicator,
549
+ "onUpdate:modelValue": i[0] || (i[0] = (l) => a.mainIndicator = l),
548
550
  "popper-class": "element-dark"
549
551
  }, {
550
552
  default: p(() => [
551
- (a(!0), m(M, null, j(N.value, (l, k) => (a(), h(c, {
553
+ (o(!0), m(q, null, j(N.value, (l, k) => (o(), h(c, {
552
554
  key: k,
553
555
  label: l.label,
554
556
  value: l.value
@@ -557,15 +559,15 @@ const I = (r) => (De("data-v-0cecb8f3"), r = r(), Fe(), r), ul = { class: "kline
557
559
  _: 1
558
560
  }, 8, ["modelValue"])
559
561
  ]),
560
- i("div", ml, [
562
+ n("div", ml, [
561
563
  vl,
562
- u(C, {
563
- modelValue: o.sellBuy,
564
- "onUpdate:modelValue": n[1] || (n[1] = (l) => o.sellBuy = l),
564
+ d(C, {
565
+ modelValue: a.sellBuy,
566
+ "onUpdate:modelValue": i[1] || (i[1] = (l) => a.sellBuy = l),
565
567
  "popper-class": "element-dark"
566
568
  }, {
567
569
  default: p(() => [
568
- (a(!0), m(M, null, j(e(rl), (l, k) => (a(), h(c, {
570
+ (o(!0), m(q, null, j(e(rl), (l, k) => (o(), h(c, {
569
571
  key: k,
570
572
  label: l.label,
571
573
  value: l.value
@@ -574,15 +576,15 @@ const I = (r) => (De("data-v-0cecb8f3"), r = r(), Fe(), r), ul = { class: "kline
574
576
  _: 1
575
577
  }, 8, ["modelValue"])
576
578
  ]),
577
- i("div", fl, [
579
+ n("div", fl, [
578
580
  bl,
579
- u(C, {
580
- modelValue: o.singelCycle,
581
- "onUpdate:modelValue": n[2] || (n[2] = (l) => o.singelCycle = l),
581
+ d(C, {
582
+ modelValue: a.singelCycle,
583
+ "onUpdate:modelValue": i[2] || (i[2] = (l) => a.singelCycle = l),
582
584
  "popper-class": "element-dark"
583
585
  }, {
584
586
  default: p(() => [
585
- (a(!0), m(M, null, j(_.value, (l, k) => (a(), h(c, {
587
+ (o(!0), m(q, null, j(_.value, (l, k) => (o(), h(c, {
586
588
  key: k,
587
589
  label: l.label,
588
590
  value: l.value
@@ -591,12 +593,12 @@ const I = (r) => (De("data-v-0cecb8f3"), r = r(), Fe(), r), ul = { class: "kline
591
593
  _: 1
592
594
  }, 8, ["modelValue"])
593
595
  ]),
594
- i("div", yl, [
596
+ n("div", yl, [
595
597
  gl,
596
- u(U, {
598
+ d(U, {
597
599
  size: "small",
598
- modelValue: o.multiCycleNum,
599
- "onUpdate:modelValue": n[3] || (n[3] = (l) => o.multiCycleNum = l),
600
+ modelValue: a.multiCycleNum,
601
+ "onUpdate:modelValue": i[3] || (i[3] = (l) => a.multiCycleNum = l),
600
602
  options: [
601
603
  { label: "二图", value: 2 },
602
604
  { label: "四图", value: 4 },
@@ -605,19 +607,19 @@ const I = (r) => (De("data-v-0cecb8f3"), r = r(), Fe(), r), ul = { class: "kline
605
607
  style: { height: "26px" }
606
608
  }, null, 8, ["modelValue"])
607
609
  ]),
608
- i("div", {
609
- class: v(`setting-multi-box grid-${o.multiCycleNum}`)
610
+ n("div", {
611
+ class: v(`setting-multi-box grid-${a.multiCycleNum}`)
610
612
  }, [
611
- (a(!0), m(M, null, j(o.multiCycleList.slice(0, o.multiCycleNum), (l, k) => (a(), m("div", hl, [
612
- i("div", _l, [
613
- i("span", null, z(e(dl)(o.multiCycleList[k], _.value)), 1),
614
- u(C, {
615
- modelValue: o.multiCycleList[k],
616
- "onUpdate:modelValue": (H) => o.multiCycleList[k] = H,
613
+ (o(!0), m(q, null, j(a.multiCycleList.slice(0, a.multiCycleNum), (l, k) => (o(), m("div", hl, [
614
+ n("div", _l, [
615
+ n("span", null, z(e(dl)(a.multiCycleList[k], _.value)), 1),
616
+ d(C, {
617
+ modelValue: a.multiCycleList[k],
618
+ "onUpdate:modelValue": (H) => a.multiCycleList[k] = H,
617
619
  "popper-class": "element-dark"
618
620
  }, {
619
621
  default: p(() => [
620
- (a(!0), m(M, null, j(_.value, (H, pe) => (a(), h(c, {
622
+ (o(!0), m(q, null, j(_.value, (H, pe) => (o(), h(c, {
621
623
  key: pe,
622
624
  label: H.label,
623
625
  value: H.value
@@ -626,15 +628,15 @@ const I = (r) => (De("data-v-0cecb8f3"), r = r(), Fe(), r), ul = { class: "kline
626
628
  _: 2
627
629
  }, 1032, ["modelValue", "onUpdate:modelValue"])
628
630
  ]),
629
- i("span", Cl, z(k + 1) + "号位K线", 1)
631
+ n("span", Cl, z(k + 1) + "号位K线", 1)
630
632
  ]))), 256))
631
633
  ], 2),
632
- i("div", kl, [
634
+ n("div", kl, [
633
635
  Vl,
634
- u(U, {
636
+ d(U, {
635
637
  size: "small",
636
- modelValue: o.pageType,
637
- "onUpdate:modelValue": n[4] || (n[4] = (l) => o.pageType = l),
638
+ modelValue: a.pageType,
639
+ "onUpdate:modelValue": i[4] || (i[4] = (l) => a.pageType = l),
638
640
  options: [
639
641
  { label: "单周期", value: 1 },
640
642
  { label: "多周期", value: 2 }
@@ -642,69 +644,76 @@ const I = (r) => (De("data-v-0cecb8f3"), r = r(), Fe(), r), ul = { class: "kline
642
644
  style: { height: "26px" }
643
645
  }, null, 8, ["modelValue"])
644
646
  ]),
645
- u(B, { style: { "margin-top": "44px" } }, {
647
+ d(B, { style: { "margin-top": "44px" } }, {
646
648
  default: p(() => [
647
- q("功能配置")
649
+ M("功能配置")
648
650
  ]),
649
651
  _: 1
650
652
  }),
651
- i("div", wl, [
653
+ n("div", wl, [
652
654
  Sl,
653
- u(T, {
654
- modelValue: o.enable_tradeLogBrush,
655
- "onUpdate:modelValue": n[5] || (n[5] = (l) => o.enable_tradeLogBrush = l)
655
+ d(I, {
656
+ modelValue: a.enable_tradeLogBrush,
657
+ "onUpdate:modelValue": i[5] || (i[5] = (l) => a.enable_tradeLogBrush = l)
656
658
  }, null, 8, ["modelValue"])
657
659
  ]),
658
- i("div", Il, [
660
+ n("div", Il, [
659
661
  El,
660
- u(T, {
661
- modelValue: o.enable_showScreenTimeRange,
662
- "onUpdate:modelValue": n[6] || (n[6] = (l) => o.enable_showScreenTimeRange = l)
662
+ d(I, {
663
+ modelValue: a.enable_showScreenTimeRange,
664
+ "onUpdate:modelValue": i[6] || (i[6] = (l) => a.enable_showScreenTimeRange = l)
663
665
  }, null, 8, ["modelValue"])
664
666
  ]),
665
- i("div", Tl, [
667
+ n("div", Tl, [
666
668
  Nl,
667
- u(T, {
668
- modelValue: o.enable_dbClickOpenSingel,
669
- "onUpdate:modelValue": n[7] || (n[7] = (l) => o.enable_dbClickOpenSingel = l)
669
+ d(I, {
670
+ modelValue: a.enable_showScreenMaxPrice,
671
+ "onUpdate:modelValue": i[7] || (i[7] = (l) => a.enable_showScreenMaxPrice = l)
672
+ }, null, 8, ["modelValue"])
673
+ ]),
674
+ n("div", Bl, [
675
+ Al,
676
+ d(I, {
677
+ modelValue: a.enable_dbClickOpenSingel,
678
+ "onUpdate:modelValue": i[8] || (i[8] = (l) => a.enable_dbClickOpenSingel = l)
670
679
  }, null, 8, ["modelValue"])
671
680
  ]),
672
- u(B, { style: { "margin-top": "44px" } }, {
681
+ d(B, { style: { "margin-top": "44px" } }, {
673
682
  default: p(() => [
674
- q("组件开关")
683
+ M("组件开关")
675
684
  ]),
676
685
  _: 1
677
686
  }),
678
- i("div", Bl, [
679
- Al,
680
- u(T, {
681
- modelValue: o.enable_subChart,
682
- "onUpdate:modelValue": n[8] || (n[8] = (l) => o.enable_subChart = l)
687
+ n("div", Pl, [
688
+ Ll,
689
+ d(I, {
690
+ modelValue: a.enable_subChart,
691
+ "onUpdate:modelValue": i[9] || (i[9] = (l) => a.enable_subChart = l)
683
692
  }, null, 8, ["modelValue"])
684
693
  ]),
685
- i("div", Ll, [
686
- Ol,
687
- u(T, {
688
- modelValue: o.enable_sliderChart,
689
- "onUpdate:modelValue": n[9] || (n[9] = (l) => o.enable_sliderChart = l)
694
+ n("div", Ol, [
695
+ Ul,
696
+ d(I, {
697
+ modelValue: a.enable_sliderChart,
698
+ "onUpdate:modelValue": i[10] || (i[10] = (l) => a.enable_sliderChart = l)
690
699
  }, null, 8, ["modelValue"])
691
700
  ])
692
701
  ]),
693
702
  _: 1
694
703
  }),
695
- i("div", Pl, [
696
- u(b, { onClick: E }, {
704
+ n("div", Dl, [
705
+ d(b, { onClick: T }, {
697
706
  default: p(() => [
698
- q(" 恢复默认 ")
707
+ M(" 恢复默认 ")
699
708
  ]),
700
709
  _: 1
701
710
  }),
702
- u(b, {
711
+ d(b, {
703
712
  type: "primary",
704
- onClick: O
713
+ onClick: L
705
714
  }, {
706
715
  default: p(() => [
707
- q(" 保存配置 ")
716
+ M(" 保存配置 ")
708
717
  ]),
709
718
  _: 1
710
719
  })
@@ -715,11 +724,11 @@ const I = (r) => (De("data-v-0cecb8f3"), r = r(), Fe(), r), ul = { class: "kline
715
724
  ]);
716
725
  };
717
726
  }
718
- }, Dl = /* @__PURE__ */ Re(Ul, [["__scopeId", "data-v-0cecb8f3"]]), rt = {
727
+ }, Rl = /* @__PURE__ */ Re(Fl, [["__scopeId", "data-v-da9cf1c8"]]), ut = {
719
728
  install(r) {
720
- r.component("st-klineConfig", Dl);
729
+ r.component("st-klineConfig", Rl);
721
730
  }
722
731
  };
723
732
  export {
724
- rt as default
733
+ ut as default
725
734
  };