st-comp 0.0.211 → 0.0.213
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.cjs +1 -1
- package/es/KlineConfig.js +143 -138
- package/es/VarietySearch.cjs +5 -5
- package/es/VarietySearch.js +477 -463
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +87 -87
- package/lib/{index-3eaf4b5a.js → index-ead7586a.js} +3271 -3252
- package/lib/{python-a46505d9.js → python-2a542cf4.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineConfig/index.vue +6 -0
- package/packages/VarietySearch/components/CompositeOrder/index.vue +31 -12
package/es/KlineConfig.js
CHANGED
|
@@ -2,13 +2,13 @@ import { b as ne, m as fe, n as ie, u as re, _ as ue, w as de, e as be, o as G,
|
|
|
2
2
|
import { d as ye, a as ge, u as he, E as _e } from "./el-overlay-09ad71cd.js";
|
|
3
3
|
import { E as Ce } from "./el-button-c95adb85.js";
|
|
4
4
|
import "./el-scrollbar-323542e7.js";
|
|
5
|
-
import { E as
|
|
6
|
-
import { E as
|
|
5
|
+
import { E as we } from "./el-segmented-b868d074.js";
|
|
6
|
+
import { E as ke } from "./el-checkbox-7421ccd3.js";
|
|
7
7
|
import "./el-tag-66cab138.js";
|
|
8
8
|
import { E as Ve, a as Se } from "./el-select-95627997.js";
|
|
9
|
-
import { c as
|
|
9
|
+
import { c as Ie, e as Ee, u as Te, U as le, C as te, I as ae, d as Be, b as ze } from "./el-popper-b4f97157.js";
|
|
10
10
|
import { E as Ne } from "./el-divider-4e059794.js";
|
|
11
|
-
import { computed as
|
|
11
|
+
import { computed as T, ref as B, watch as se, onBeforeUnmount as Pe, defineComponent as Q, useSlots as Le, openBlock as o, createBlock as w, unref as e, withCtx as p, createVNode as m, Transition as Ae, withDirectives as Oe, createElementVNode as n, mergeProps as Ue, withModifiers as ce, normalizeClass as b, createElementBlock as y, renderSlot as $, toDisplayString as M, createCommentVNode as _, normalizeStyle as me, vShow as Re, onMounted as pe, withKeys as De, resolveDynamicComponent as q, nextTick as Fe, inject as $e, reactive as Me, createTextVNode as j, Fragment as H, renderList as J, pushScopeId as Ke, popScopeId as qe } from "vue";
|
|
12
12
|
import { _ as je } from "./_plugin-vue_export-helper-dad06003.js";
|
|
13
13
|
import { E as D, c as He, l as Je } from "./index-a871c3eb.js";
|
|
14
14
|
import { i as We } from "./validator-764a9db0.js";
|
|
@@ -51,31 +51,31 @@ const tl = ne({
|
|
|
51
51
|
default: "2"
|
|
52
52
|
}
|
|
53
53
|
}), al = ge;
|
|
54
|
-
function sl(r,
|
|
55
|
-
const { width: C, height: c } = Xe(),
|
|
54
|
+
function sl(r, A) {
|
|
55
|
+
const { width: C, height: c } = Xe(), k = T(() => ["ltr", "rtl"].includes(r.direction)), V = T(() => ["ltr", "ttb"].includes(r.direction) ? 1 : -1), u = T(() => k.value ? C.value : c.value), t = T(() => fe(g.value + V.value * S.value, 4, u.value)), g = B(0), S = B(0), I = B(!1), O = B(!1);
|
|
56
56
|
let z = [], U = [];
|
|
57
57
|
const v = () => {
|
|
58
58
|
var h;
|
|
59
|
-
const N = (h =
|
|
60
|
-
return N ?
|
|
59
|
+
const N = (h = A.value) == null ? void 0 : h.closest('[aria-modal="true"]');
|
|
60
|
+
return N ? k.value ? N.offsetWidth : N.offsetHeight : 100;
|
|
61
61
|
};
|
|
62
62
|
se(() => [r.size, r.resizable], () => {
|
|
63
63
|
O.value = !1, g.value = 0, S.value = 0, d();
|
|
64
64
|
});
|
|
65
65
|
const s = (h) => {
|
|
66
|
-
r.resizable && (O.value || (g.value = v(), O.value = !0), z = [h.pageX, h.pageY],
|
|
67
|
-
},
|
|
66
|
+
r.resizable && (O.value || (g.value = v(), O.value = !0), z = [h.pageX, h.pageY], I.value = !0, U.push(ee(window, "mouseup", d), ee(window, "mousemove", L)));
|
|
67
|
+
}, L = (h) => {
|
|
68
68
|
const { pageX: N, pageY: l } = h, f = N - z[0], R = l - z[1];
|
|
69
|
-
S.value =
|
|
69
|
+
S.value = k.value ? f : R;
|
|
70
70
|
}, d = () => {
|
|
71
|
-
z = [], g.value = t.value, S.value = 0,
|
|
72
|
-
}, E = ee(
|
|
71
|
+
z = [], g.value = t.value, S.value = 0, I.value = !1, U.forEach((h) => h == null ? void 0 : h()), U = [];
|
|
72
|
+
}, E = ee(A, "mousedown", s);
|
|
73
73
|
return Pe(() => {
|
|
74
74
|
E(), d();
|
|
75
75
|
}), {
|
|
76
|
-
size:
|
|
77
|
-
isResizing:
|
|
78
|
-
isHorizontal:
|
|
76
|
+
size: T(() => O.value ? `${t.value}px` : ie(r.size)),
|
|
77
|
+
isResizing: I,
|
|
78
|
+
isHorizontal: k
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
const ol = Q({
|
|
@@ -85,71 +85,71 @@ const ol = Q({
|
|
|
85
85
|
...ol,
|
|
86
86
|
props: tl,
|
|
87
87
|
emits: al,
|
|
88
|
-
setup(r, { expose:
|
|
89
|
-
const C = r, c =
|
|
88
|
+
setup(r, { expose: A }) {
|
|
89
|
+
const C = r, c = Le();
|
|
90
90
|
el({
|
|
91
91
|
scope: "el-drawer",
|
|
92
92
|
from: "the title slot",
|
|
93
93
|
replacement: "the header slot",
|
|
94
94
|
version: "3.0.0",
|
|
95
95
|
ref: "https://element-plus.org/en-US/component/drawer.html#slots"
|
|
96
|
-
},
|
|
97
|
-
const
|
|
96
|
+
}, T(() => !!c.title));
|
|
97
|
+
const k = B(), V = B(), u = B(), t = re("drawer"), { t: g } = ll(), {
|
|
98
98
|
afterEnter: S,
|
|
99
|
-
afterLeave:
|
|
99
|
+
afterLeave: I,
|
|
100
100
|
beforeLeave: O,
|
|
101
101
|
visible: z,
|
|
102
102
|
rendered: U,
|
|
103
103
|
titleId: v,
|
|
104
104
|
bodyId: s,
|
|
105
|
-
zIndex:
|
|
105
|
+
zIndex: L,
|
|
106
106
|
onModalClick: d,
|
|
107
107
|
onOpenAutoFocus: E,
|
|
108
108
|
onCloseAutoFocus: h,
|
|
109
109
|
onFocusoutPrevented: N,
|
|
110
110
|
onCloseRequested: l,
|
|
111
111
|
handleClose: f
|
|
112
|
-
} = he(C,
|
|
113
|
-
return
|
|
112
|
+
} = he(C, k), { isHorizontal: R, size: F, isResizing: a } = sl(C, u);
|
|
113
|
+
return A({
|
|
114
114
|
handleClose: f,
|
|
115
115
|
afterEnter: S,
|
|
116
|
-
afterLeave:
|
|
117
|
-
}), (i, K) => (o(),
|
|
116
|
+
afterLeave: I
|
|
117
|
+
}), (i, K) => (o(), w(e(Ie), {
|
|
118
118
|
to: i.appendTo,
|
|
119
119
|
disabled: i.appendTo !== "body" ? !1 : !i.appendToBody
|
|
120
120
|
}, {
|
|
121
|
-
default:
|
|
122
|
-
|
|
121
|
+
default: p(() => [
|
|
122
|
+
m(Ae, {
|
|
123
123
|
name: e(t).b("fade"),
|
|
124
124
|
onAfterEnter: e(S),
|
|
125
|
-
onAfterLeave: e(
|
|
125
|
+
onAfterLeave: e(I),
|
|
126
126
|
onBeforeLeave: e(O),
|
|
127
127
|
persisted: ""
|
|
128
128
|
}, {
|
|
129
|
-
default:
|
|
129
|
+
default: p(() => {
|
|
130
130
|
var W;
|
|
131
131
|
return [
|
|
132
|
-
Oe(
|
|
132
|
+
Oe(m(e(_e), {
|
|
133
133
|
mask: i.modal,
|
|
134
134
|
"overlay-class": [e(t).is("drawer"), (W = i.modalClass) != null ? W : ""],
|
|
135
|
-
"z-index": e(
|
|
135
|
+
"z-index": e(L),
|
|
136
136
|
onClick: e(d)
|
|
137
137
|
}, {
|
|
138
|
-
default:
|
|
139
|
-
|
|
138
|
+
default: p(() => [
|
|
139
|
+
m(e(Ee), {
|
|
140
140
|
loop: "",
|
|
141
141
|
trapped: e(z),
|
|
142
|
-
"focus-trap-el":
|
|
143
|
-
"focus-start-el":
|
|
142
|
+
"focus-trap-el": k.value,
|
|
143
|
+
"focus-start-el": V.value,
|
|
144
144
|
onFocusAfterTrapped: e(E),
|
|
145
145
|
onFocusAfterReleased: e(h),
|
|
146
146
|
onFocusoutPrevented: e(N),
|
|
147
147
|
onReleaseRequested: e(l)
|
|
148
148
|
}, {
|
|
149
|
-
default:
|
|
149
|
+
default: p(() => [
|
|
150
150
|
n("div", Ue({
|
|
151
151
|
ref_key: "drawerRef",
|
|
152
|
-
ref:
|
|
152
|
+
ref: k,
|
|
153
153
|
"aria-modal": "true",
|
|
154
154
|
"aria-label": i.title || void 0,
|
|
155
155
|
"aria-labelledby": i.title ? void 0 : e(v),
|
|
@@ -168,7 +168,7 @@ const ol = Q({
|
|
|
168
168
|
}), [
|
|
169
169
|
n("span", {
|
|
170
170
|
ref_key: "focusStartRef",
|
|
171
|
-
ref:
|
|
171
|
+
ref: V,
|
|
172
172
|
class: b(e(t).e("sr-focus")),
|
|
173
173
|
tabindex: "-1"
|
|
174
174
|
}, null, 2),
|
|
@@ -198,11 +198,11 @@ const ol = Q({
|
|
|
198
198
|
type: "button",
|
|
199
199
|
onClick: e(f)
|
|
200
200
|
}, [
|
|
201
|
-
|
|
201
|
+
m(e(D), {
|
|
202
202
|
class: b(e(t).e("close"))
|
|
203
203
|
}, {
|
|
204
|
-
default:
|
|
205
|
-
|
|
204
|
+
default: p(() => [
|
|
205
|
+
m(e(He))
|
|
206
206
|
]),
|
|
207
207
|
_: 1
|
|
208
208
|
}, 8, ["class"])
|
|
@@ -225,7 +225,7 @@ const ol = Q({
|
|
|
225
225
|
key: 3,
|
|
226
226
|
ref_key: "draggerRef",
|
|
227
227
|
ref: u,
|
|
228
|
-
style:
|
|
228
|
+
style: me({ zIndex: e(L) }),
|
|
229
229
|
class: b(e(t).e("dragger"))
|
|
230
230
|
}, null, 6)) : _("v-if", !0)
|
|
231
231
|
], 16, ["aria-label", "aria-labelledby", "aria-describedby", "onClick"])
|
|
@@ -313,41 +313,41 @@ const rl = de(il), ul = ne({
|
|
|
313
313
|
[ae]: (r) => G(r) || Z(r) || x(r)
|
|
314
314
|
}, ve = "ElSwitch", cl = Q({
|
|
315
315
|
name: ve
|
|
316
|
-
}),
|
|
316
|
+
}), ml = /* @__PURE__ */ Q({
|
|
317
317
|
...cl,
|
|
318
318
|
props: ul,
|
|
319
319
|
emits: dl,
|
|
320
|
-
setup(r, { expose:
|
|
321
|
-
const c = r, { formItem:
|
|
322
|
-
formItemContext:
|
|
323
|
-
}), g = Ze(
|
|
320
|
+
setup(r, { expose: A, emit: C }) {
|
|
321
|
+
const c = r, { formItem: k } = Ye(), V = Ge(), u = re("switch"), { inputId: t } = Qe(c, {
|
|
322
|
+
formItemContext: k
|
|
323
|
+
}), g = Ze(T(() => c.loading)), S = B(c.modelValue !== !1), I = B(), O = B(), z = T(() => [
|
|
324
324
|
u.b(),
|
|
325
|
-
u.m(
|
|
325
|
+
u.m(V.value),
|
|
326
326
|
u.is("disabled", g.value),
|
|
327
327
|
u.is("checked", d.value)
|
|
328
|
-
]), U =
|
|
328
|
+
]), U = T(() => [
|
|
329
329
|
u.e("label"),
|
|
330
330
|
u.em("label", "left"),
|
|
331
331
|
u.is("active", !d.value)
|
|
332
|
-
]), v =
|
|
332
|
+
]), v = T(() => [
|
|
333
333
|
u.e("label"),
|
|
334
334
|
u.em("label", "right"),
|
|
335
335
|
u.is("active", d.value)
|
|
336
|
-
]), s =
|
|
336
|
+
]), s = T(() => ({
|
|
337
337
|
width: ie(c.width)
|
|
338
338
|
}));
|
|
339
339
|
se(() => c.modelValue, () => {
|
|
340
340
|
S.value = !0;
|
|
341
341
|
});
|
|
342
|
-
const
|
|
343
|
-
[c.activeValue, c.inactiveValue].includes(
|
|
342
|
+
const L = T(() => S.value ? c.modelValue : !1), d = T(() => L.value === c.activeValue);
|
|
343
|
+
[c.activeValue, c.inactiveValue].includes(L.value) || (C(le, c.inactiveValue), C(te, c.inactiveValue), C(ae, c.inactiveValue)), se(d, (l) => {
|
|
344
344
|
var f;
|
|
345
|
-
|
|
345
|
+
I.value.checked = l, c.validateEvent && ((f = k == null ? void 0 : k.validate) == null || f.call(k, "change").catch((R) => Be()));
|
|
346
346
|
});
|
|
347
347
|
const E = () => {
|
|
348
348
|
const l = d.value ? c.inactiveValue : c.activeValue;
|
|
349
349
|
C(le, l), C(te, l), C(ae, l), Fe(() => {
|
|
350
|
-
|
|
350
|
+
I.value.checked = d.value;
|
|
351
351
|
});
|
|
352
352
|
}, h = () => {
|
|
353
353
|
if (g.value)
|
|
@@ -367,11 +367,11 @@ const rl = de(il), ul = ne({
|
|
|
367
367
|
}) : f && E();
|
|
368
368
|
}, N = () => {
|
|
369
369
|
var l, f;
|
|
370
|
-
(f = (l =
|
|
370
|
+
(f = (l = I.value) == null ? void 0 : l.focus) == null || f.call(l);
|
|
371
371
|
};
|
|
372
|
-
return
|
|
373
|
-
|
|
374
|
-
}),
|
|
372
|
+
return pe(() => {
|
|
373
|
+
I.value.checked = d.value;
|
|
374
|
+
}), A({
|
|
375
375
|
focus: N,
|
|
376
376
|
checked: d
|
|
377
377
|
}), (l, f) => (o(), y("div", {
|
|
@@ -381,7 +381,7 @@ const rl = de(il), ul = ne({
|
|
|
381
381
|
n("input", {
|
|
382
382
|
id: e(t),
|
|
383
383
|
ref_key: "input",
|
|
384
|
-
ref:
|
|
384
|
+
ref: I,
|
|
385
385
|
class: b(e(u).e("input")),
|
|
386
386
|
type: "checkbox",
|
|
387
387
|
role: "switch",
|
|
@@ -400,9 +400,9 @@ const rl = de(il), ul = ne({
|
|
|
400
400
|
key: 0,
|
|
401
401
|
class: b(e(U))
|
|
402
402
|
}, [
|
|
403
|
-
l.inactiveIcon ? (o(),
|
|
404
|
-
default:
|
|
405
|
-
(o(),
|
|
403
|
+
l.inactiveIcon ? (o(), w(e(D), { key: 0 }, {
|
|
404
|
+
default: p(() => [
|
|
405
|
+
(o(), w(q(l.inactiveIcon)))
|
|
406
406
|
]),
|
|
407
407
|
_: 1
|
|
408
408
|
})) : _("v-if", !0),
|
|
@@ -415,18 +415,18 @@ const rl = de(il), ul = ne({
|
|
|
415
415
|
ref_key: "core",
|
|
416
416
|
ref: O,
|
|
417
417
|
class: b(e(u).e("core")),
|
|
418
|
-
style:
|
|
418
|
+
style: me(e(s))
|
|
419
419
|
}, [
|
|
420
420
|
l.inlinePrompt ? (o(), y("div", {
|
|
421
421
|
key: 0,
|
|
422
422
|
class: b(e(u).e("inner"))
|
|
423
423
|
}, [
|
|
424
|
-
l.activeIcon || l.inactiveIcon ? (o(),
|
|
424
|
+
l.activeIcon || l.inactiveIcon ? (o(), w(e(D), {
|
|
425
425
|
key: 0,
|
|
426
426
|
class: b(e(u).is("icon"))
|
|
427
427
|
}, {
|
|
428
|
-
default:
|
|
429
|
-
(o(),
|
|
428
|
+
default: p(() => [
|
|
429
|
+
(o(), w(q(e(d) ? l.activeIcon : l.inactiveIcon)))
|
|
430
430
|
]),
|
|
431
431
|
_: 1
|
|
432
432
|
}, 8, ["class"])) : l.activeText || l.inactiveText ? (o(), y("span", {
|
|
@@ -438,25 +438,25 @@ const rl = de(il), ul = ne({
|
|
|
438
438
|
n("div", {
|
|
439
439
|
class: b(e(u).e("action"))
|
|
440
440
|
}, [
|
|
441
|
-
l.loading ? (o(),
|
|
441
|
+
l.loading ? (o(), w(e(D), {
|
|
442
442
|
key: 0,
|
|
443
443
|
class: b(e(u).is("loading"))
|
|
444
444
|
}, {
|
|
445
|
-
default:
|
|
446
|
-
|
|
445
|
+
default: p(() => [
|
|
446
|
+
m(e(Je))
|
|
447
447
|
]),
|
|
448
448
|
_: 1
|
|
449
449
|
}, 8, ["class"])) : e(d) ? $(l.$slots, "active-action", { key: 1 }, () => [
|
|
450
|
-
l.activeActionIcon ? (o(),
|
|
451
|
-
default:
|
|
452
|
-
(o(),
|
|
450
|
+
l.activeActionIcon ? (o(), w(e(D), { key: 0 }, {
|
|
451
|
+
default: p(() => [
|
|
452
|
+
(o(), w(q(l.activeActionIcon)))
|
|
453
453
|
]),
|
|
454
454
|
_: 1
|
|
455
455
|
})) : _("v-if", !0)
|
|
456
456
|
]) : e(d) ? _("v-if", !0) : $(l.$slots, "inactive-action", { key: 2 }, () => [
|
|
457
|
-
l.inactiveActionIcon ? (o(),
|
|
458
|
-
default:
|
|
459
|
-
(o(),
|
|
457
|
+
l.inactiveActionIcon ? (o(), w(e(D), { key: 0 }, {
|
|
458
|
+
default: p(() => [
|
|
459
|
+
(o(), w(q(l.inactiveActionIcon)))
|
|
460
460
|
]),
|
|
461
461
|
_: 1
|
|
462
462
|
})) : _("v-if", !0)
|
|
@@ -467,9 +467,9 @@ const rl = de(il), ul = ne({
|
|
|
467
467
|
key: 1,
|
|
468
468
|
class: b(e(v))
|
|
469
469
|
}, [
|
|
470
|
-
l.activeIcon ? (o(),
|
|
471
|
-
default:
|
|
472
|
-
(o(),
|
|
470
|
+
l.activeIcon ? (o(), w(e(D), { key: 0 }, {
|
|
471
|
+
default: p(() => [
|
|
472
|
+
(o(), w(q(l.activeIcon)))
|
|
473
473
|
]),
|
|
474
474
|
_: 1
|
|
475
475
|
})) : _("v-if", !0),
|
|
@@ -481,8 +481,8 @@ const rl = de(il), ul = ne({
|
|
|
481
481
|
], 10, ["onClick"]));
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
|
-
var
|
|
485
|
-
const vl = de(
|
|
484
|
+
var pl = /* @__PURE__ */ ue(ml, [["__file", "switch.vue"]]);
|
|
485
|
+
const vl = de(pl);
|
|
486
486
|
const fl = [
|
|
487
487
|
{ label: "买卖", value: 0 },
|
|
488
488
|
{ label: "开平", value: 1 }
|
|
@@ -523,11 +523,11 @@ const fl = [
|
|
|
523
523
|
// 是否启用副图
|
|
524
524
|
enable_sliderChart: !0
|
|
525
525
|
// 是否启用拖拽轴
|
|
526
|
-
}), bl = (r,
|
|
526
|
+
}), bl = (r, A) => {
|
|
527
527
|
var C;
|
|
528
|
-
return ((C =
|
|
528
|
+
return ((C = A.find((c) => c.value === r)) == null ? void 0 : C.label) ?? "-";
|
|
529
529
|
};
|
|
530
|
-
const P = (r) => (Ke("data-v-
|
|
530
|
+
const P = (r) => (Ke("data-v-f364d4b3"), r = r(), qe(), r), yl = { class: "kline-config element-dark" }, gl = { class: "setting-item" }, hl = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "主图指标: ", -1)), _l = { class: "setting-item" }, Cl = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "交易点位: ", -1)), wl = { class: "setting-item" }, kl = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "开平点按价格标: ", -1)), Vl = { class: "setting-item" }, Sl = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "单周期: ", -1)), Il = { class: "setting-item" }, El = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "多周期: ", -1)), Tl = { class: "mode" }, Bl = { class: "cycleName" }, zl = { class: "content" }, Nl = { class: "setting-item" }, Pl = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "默认展示: ", -1)), Ll = { class: "setting-item" }, Al = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "高亮交易范围: ", -1)), Ol = { class: "setting-item" }, Ul = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "展示当屏时间: ", -1)), Rl = { class: "setting-item" }, Dl = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "展示当屏最高价: ", -1)), Fl = { class: "setting-item" }, $l = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "多周期双击图表切换至单周期: ", -1)), Ml = { class: "setting-item" }, Kl = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "开启副图: ", -1)), ql = { class: "setting-item" }, jl = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "开启拖拽轴: ", -1)), Hl = { class: "setting-footer" }, Jl = {
|
|
531
531
|
__name: "index",
|
|
532
532
|
props: {
|
|
533
533
|
indicatorStore: { type: Object, default: () => ({}) },
|
|
@@ -538,14 +538,14 @@ const P = (r) => (Ke("data-v-009e01e7"), r = r(), qe(), r), yl = { class: "kline
|
|
|
538
538
|
cycleOptions: { type: Array, default: () => [] }
|
|
539
539
|
},
|
|
540
540
|
emits: "callBack",
|
|
541
|
-
setup(r, { expose:
|
|
542
|
-
const { request: c } = $e("stConfig"),
|
|
541
|
+
setup(r, { expose: A, emit: C }) {
|
|
542
|
+
const { request: c } = $e("stConfig"), k = C, V = r, u = B(!1), t = Me({}), g = B([]), S = B([]), I = () => {
|
|
543
543
|
Object.assign(t, Y());
|
|
544
544
|
}, O = async () => {
|
|
545
545
|
const v = JSON.stringify(t);
|
|
546
|
-
|
|
546
|
+
V.origin === "server" ? await c.post("/common/qt/updateUserConfig", { appId: 1, json: v }) : localStorage.setItem("userKlineConfig", v), k("callBack", v), u.value = !1;
|
|
547
547
|
}, z = async () => {
|
|
548
|
-
if (
|
|
548
|
+
if (V.origin === "server") {
|
|
549
549
|
const { body: v } = await c.post("/common/qt/getUserConfig", { appId: 1 });
|
|
550
550
|
Object.assign(t, Y(), v ? JSON.parse(v) : {});
|
|
551
551
|
} else {
|
|
@@ -553,18 +553,23 @@ const P = (r) => (Ke("data-v-009e01e7"), r = r(), qe(), r), yl = { class: "kline
|
|
|
553
553
|
Object.assign(t, Y(), v ? JSON.parse(v) : {});
|
|
554
554
|
}
|
|
555
555
|
}, U = async () => {
|
|
556
|
-
if (
|
|
556
|
+
if (V.origin === "server") {
|
|
557
557
|
const { body: v } = await c.post("/common/qt/getDict", { dictIds: [1002] });
|
|
558
558
|
g.value = v[1002].map((s) => ({
|
|
559
559
|
label: s.dictName,
|
|
560
560
|
value: s.dictCode
|
|
561
561
|
}));
|
|
562
562
|
} else
|
|
563
|
-
g.value =
|
|
563
|
+
g.value = V.cycleOptions;
|
|
564
564
|
};
|
|
565
|
-
return
|
|
566
|
-
U(), S.value =
|
|
567
|
-
}),
|
|
565
|
+
return pe(() => {
|
|
566
|
+
U(), S.value = V.indicatorStore.mainIndicatorList ?? [];
|
|
567
|
+
}), watch(
|
|
568
|
+
() => V.indicatorStore.mainIndicatorList,
|
|
569
|
+
() => {
|
|
570
|
+
S.value = V.indicatorStore.mainIndicatorList ?? [];
|
|
571
|
+
}
|
|
572
|
+
), A({
|
|
568
573
|
// 打开
|
|
569
574
|
open: async () => {
|
|
570
575
|
await z(), u.value = !0;
|
|
@@ -572,32 +577,32 @@ const P = (r) => (Ke("data-v-009e01e7"), r = r(), qe(), r), yl = { class: "kline
|
|
|
572
577
|
// 获取默认配置
|
|
573
578
|
getDefaultUserKlineConfig: Y
|
|
574
579
|
}), (v, s) => {
|
|
575
|
-
const
|
|
580
|
+
const L = Ne, d = Ve, E = Se, h = ke, N = we, l = vl, f = xe, R = Ce, F = rl;
|
|
576
581
|
return o(), y("div", yl, [
|
|
577
|
-
|
|
582
|
+
m(F, {
|
|
578
583
|
modelValue: u.value,
|
|
579
584
|
"onUpdate:modelValue": s[12] || (s[12] = (a) => u.value = a),
|
|
580
585
|
title: "K线自定义配置",
|
|
581
586
|
size: 320
|
|
582
587
|
}, {
|
|
583
|
-
default:
|
|
584
|
-
|
|
585
|
-
default:
|
|
586
|
-
|
|
587
|
-
default:
|
|
588
|
+
default: p(() => [
|
|
589
|
+
m(f, { class: "setting-main" }, {
|
|
590
|
+
default: p(() => [
|
|
591
|
+
m(L, { style: { "margin-top": "8px" } }, {
|
|
592
|
+
default: p(() => [
|
|
588
593
|
j("偏好设置")
|
|
589
594
|
]),
|
|
590
595
|
_: 1
|
|
591
596
|
}),
|
|
592
597
|
n("div", gl, [
|
|
593
598
|
hl,
|
|
594
|
-
|
|
599
|
+
m(E, {
|
|
595
600
|
modelValue: t.mainIndicator,
|
|
596
601
|
"onUpdate:modelValue": s[0] || (s[0] = (a) => t.mainIndicator = a),
|
|
597
602
|
"popper-class": "element-dark"
|
|
598
603
|
}, {
|
|
599
|
-
default:
|
|
600
|
-
(o(!0), y(H, null, J(S.value, (a, i) => (o(),
|
|
604
|
+
default: p(() => [
|
|
605
|
+
(o(!0), y(H, null, J(S.value, (a, i) => (o(), w(d, {
|
|
601
606
|
key: i,
|
|
602
607
|
label: a.label,
|
|
603
608
|
value: a.value
|
|
@@ -608,13 +613,13 @@ const P = (r) => (Ke("data-v-009e01e7"), r = r(), qe(), r), yl = { class: "kline
|
|
|
608
613
|
]),
|
|
609
614
|
n("div", _l, [
|
|
610
615
|
Cl,
|
|
611
|
-
|
|
616
|
+
m(E, {
|
|
612
617
|
modelValue: t.sellBuy,
|
|
613
618
|
"onUpdate:modelValue": s[1] || (s[1] = (a) => t.sellBuy = a),
|
|
614
619
|
"popper-class": "element-dark"
|
|
615
620
|
}, {
|
|
616
|
-
default:
|
|
617
|
-
(o(!0), y(H, null, J(e(fl), (a, i) => (o(),
|
|
621
|
+
default: p(() => [
|
|
622
|
+
(o(!0), y(H, null, J(e(fl), (a, i) => (o(), w(d, {
|
|
618
623
|
key: i,
|
|
619
624
|
label: a.label,
|
|
620
625
|
value: a.value
|
|
@@ -623,9 +628,9 @@ const P = (r) => (Ke("data-v-009e01e7"), r = r(), qe(), r), yl = { class: "kline
|
|
|
623
628
|
_: 1
|
|
624
629
|
}, 8, ["modelValue"])
|
|
625
630
|
]),
|
|
626
|
-
n("div",
|
|
627
|
-
|
|
628
|
-
|
|
631
|
+
n("div", wl, [
|
|
632
|
+
kl,
|
|
633
|
+
m(h, {
|
|
629
634
|
modelValue: t.sellBuyByPrice,
|
|
630
635
|
"onUpdate:modelValue": s[2] || (s[2] = (a) => t.sellBuyByPrice = a),
|
|
631
636
|
"true-value": 1,
|
|
@@ -634,13 +639,13 @@ const P = (r) => (Ke("data-v-009e01e7"), r = r(), qe(), r), yl = { class: "kline
|
|
|
634
639
|
]),
|
|
635
640
|
n("div", Vl, [
|
|
636
641
|
Sl,
|
|
637
|
-
|
|
642
|
+
m(E, {
|
|
638
643
|
modelValue: t.singelCycle,
|
|
639
644
|
"onUpdate:modelValue": s[3] || (s[3] = (a) => t.singelCycle = a),
|
|
640
645
|
"popper-class": "element-dark"
|
|
641
646
|
}, {
|
|
642
|
-
default:
|
|
643
|
-
(o(!0), y(H, null, J(g.value, (a, i) => (o(),
|
|
647
|
+
default: p(() => [
|
|
648
|
+
(o(!0), y(H, null, J(g.value, (a, i) => (o(), w(d, {
|
|
644
649
|
key: i,
|
|
645
650
|
label: a.label,
|
|
646
651
|
value: a.value
|
|
@@ -649,9 +654,9 @@ const P = (r) => (Ke("data-v-009e01e7"), r = r(), qe(), r), yl = { class: "kline
|
|
|
649
654
|
_: 1
|
|
650
655
|
}, 8, ["modelValue"])
|
|
651
656
|
]),
|
|
652
|
-
n("div",
|
|
653
|
-
|
|
654
|
-
|
|
657
|
+
n("div", Il, [
|
|
658
|
+
El,
|
|
659
|
+
m(N, {
|
|
655
660
|
size: "small",
|
|
656
661
|
modelValue: t.multiCycleNum,
|
|
657
662
|
"onUpdate:modelValue": s[4] || (s[4] = (a) => t.multiCycleNum = a),
|
|
@@ -669,13 +674,13 @@ const P = (r) => (Ke("data-v-009e01e7"), r = r(), qe(), r), yl = { class: "kline
|
|
|
669
674
|
(o(!0), y(H, null, J(t.multiCycleList.slice(0, t.multiCycleNum), (a, i) => (o(), y("div", Tl, [
|
|
670
675
|
n("div", Bl, [
|
|
671
676
|
n("span", null, M(e(bl)(t.multiCycleList[i], g.value)), 1),
|
|
672
|
-
|
|
677
|
+
m(E, {
|
|
673
678
|
modelValue: t.multiCycleList[i],
|
|
674
679
|
"onUpdate:modelValue": (K) => t.multiCycleList[i] = K,
|
|
675
680
|
"popper-class": "element-dark"
|
|
676
681
|
}, {
|
|
677
|
-
default:
|
|
678
|
-
(o(!0), y(H, null, J(g.value, (K, W) => (o(),
|
|
682
|
+
default: p(() => [
|
|
683
|
+
(o(!0), y(H, null, J(g.value, (K, W) => (o(), w(d, {
|
|
679
684
|
key: W,
|
|
680
685
|
label: K.label,
|
|
681
686
|
value: K.value
|
|
@@ -689,7 +694,7 @@ const P = (r) => (Ke("data-v-009e01e7"), r = r(), qe(), r), yl = { class: "kline
|
|
|
689
694
|
], 2),
|
|
690
695
|
n("div", Nl, [
|
|
691
696
|
Pl,
|
|
692
|
-
|
|
697
|
+
m(N, {
|
|
693
698
|
size: "small",
|
|
694
699
|
modelValue: t.pageType,
|
|
695
700
|
"onUpdate:modelValue": s[5] || (s[5] = (a) => t.pageType = a),
|
|
@@ -700,56 +705,56 @@ const P = (r) => (Ke("data-v-009e01e7"), r = r(), qe(), r), yl = { class: "kline
|
|
|
700
705
|
style: { height: "26px" }
|
|
701
706
|
}, null, 8, ["modelValue"])
|
|
702
707
|
]),
|
|
703
|
-
|
|
704
|
-
default:
|
|
708
|
+
m(L, { style: { "margin-top": "44px" } }, {
|
|
709
|
+
default: p(() => [
|
|
705
710
|
j("功能配置")
|
|
706
711
|
]),
|
|
707
712
|
_: 1
|
|
708
713
|
}),
|
|
709
|
-
n("div",
|
|
710
|
-
|
|
711
|
-
|
|
714
|
+
n("div", Ll, [
|
|
715
|
+
Al,
|
|
716
|
+
m(l, {
|
|
712
717
|
modelValue: t.enable_tradeLogBrush,
|
|
713
718
|
"onUpdate:modelValue": s[6] || (s[6] = (a) => t.enable_tradeLogBrush = a)
|
|
714
719
|
}, null, 8, ["modelValue"])
|
|
715
720
|
]),
|
|
716
721
|
n("div", Ol, [
|
|
717
722
|
Ul,
|
|
718
|
-
|
|
723
|
+
m(l, {
|
|
719
724
|
modelValue: t.enable_showScreenTimeRange,
|
|
720
725
|
"onUpdate:modelValue": s[7] || (s[7] = (a) => t.enable_showScreenTimeRange = a)
|
|
721
726
|
}, null, 8, ["modelValue"])
|
|
722
727
|
]),
|
|
723
728
|
n("div", Rl, [
|
|
724
729
|
Dl,
|
|
725
|
-
|
|
730
|
+
m(l, {
|
|
726
731
|
modelValue: t.enable_showScreenMaxPrice,
|
|
727
732
|
"onUpdate:modelValue": s[8] || (s[8] = (a) => t.enable_showScreenMaxPrice = a)
|
|
728
733
|
}, null, 8, ["modelValue"])
|
|
729
734
|
]),
|
|
730
735
|
n("div", Fl, [
|
|
731
736
|
$l,
|
|
732
|
-
|
|
737
|
+
m(l, {
|
|
733
738
|
modelValue: t.enable_dbClickOpenSingel,
|
|
734
739
|
"onUpdate:modelValue": s[9] || (s[9] = (a) => t.enable_dbClickOpenSingel = a)
|
|
735
740
|
}, null, 8, ["modelValue"])
|
|
736
741
|
]),
|
|
737
|
-
|
|
738
|
-
default:
|
|
742
|
+
m(L, { style: { "margin-top": "44px" } }, {
|
|
743
|
+
default: p(() => [
|
|
739
744
|
j("组件开关")
|
|
740
745
|
]),
|
|
741
746
|
_: 1
|
|
742
747
|
}),
|
|
743
748
|
n("div", Ml, [
|
|
744
749
|
Kl,
|
|
745
|
-
|
|
750
|
+
m(l, {
|
|
746
751
|
modelValue: t.enable_subChart,
|
|
747
752
|
"onUpdate:modelValue": s[10] || (s[10] = (a) => t.enable_subChart = a)
|
|
748
753
|
}, null, 8, ["modelValue"])
|
|
749
754
|
]),
|
|
750
755
|
n("div", ql, [
|
|
751
756
|
jl,
|
|
752
|
-
|
|
757
|
+
m(l, {
|
|
753
758
|
modelValue: t.enable_sliderChart,
|
|
754
759
|
"onUpdate:modelValue": s[11] || (s[11] = (a) => t.enable_sliderChart = a)
|
|
755
760
|
}, null, 8, ["modelValue"])
|
|
@@ -758,17 +763,17 @@ const P = (r) => (Ke("data-v-009e01e7"), r = r(), qe(), r), yl = { class: "kline
|
|
|
758
763
|
_: 1
|
|
759
764
|
}),
|
|
760
765
|
n("div", Hl, [
|
|
761
|
-
|
|
762
|
-
default:
|
|
766
|
+
m(R, { onClick: I }, {
|
|
767
|
+
default: p(() => [
|
|
763
768
|
j(" 恢复默认 ")
|
|
764
769
|
]),
|
|
765
770
|
_: 1
|
|
766
771
|
}),
|
|
767
|
-
|
|
772
|
+
m(R, {
|
|
768
773
|
type: "primary",
|
|
769
774
|
onClick: O
|
|
770
775
|
}, {
|
|
771
|
-
default:
|
|
776
|
+
default: p(() => [
|
|
772
777
|
j(" 保存配置 ")
|
|
773
778
|
]),
|
|
774
779
|
_: 1
|
|
@@ -780,11 +785,11 @@ const P = (r) => (Ke("data-v-009e01e7"), r = r(), qe(), r), yl = { class: "kline
|
|
|
780
785
|
]);
|
|
781
786
|
};
|
|
782
787
|
}
|
|
783
|
-
}, Wl = /* @__PURE__ */ je(Jl, [["__scopeId", "data-v-
|
|
788
|
+
}, Wl = /* @__PURE__ */ je(Jl, [["__scopeId", "data-v-f364d4b3"]]), wt = {
|
|
784
789
|
install(r) {
|
|
785
790
|
r.component("st-klineConfig", Wl);
|
|
786
791
|
}
|
|
787
792
|
};
|
|
788
793
|
export {
|
|
789
|
-
|
|
794
|
+
wt as default
|
|
790
795
|
};
|