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.cjs +1 -1
- package/es/KlineConfig.js +199 -190
- package/es/KlinePlus.cjs +4 -4
- package/es/KlinePlus.js +439 -389
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +44 -42
- package/es/VarietySearch.cjs +6 -6
- package/es/VarietySearch.js +910 -904
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +162 -162
- package/lib/{index-c5c93747.js → index-5d22cd99.js} +10108 -10041
- package/lib/{python-1b054f75.js → python-0863213e.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineConfig/config.js +1 -0
- package/packages/KlineConfig/index.vue +4 -0
- package/packages/KlinePlus/index.vue +74 -13
- package/packages/VarSelectDialog/index.vue +3 -1
- package/packages/VarietySearch/components/FactorScreen/index.vue +218 -215
package/es/KlineConfig.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as se, u as
|
|
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
|
|
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
|
|
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:
|
|
57
|
-
const g = r,
|
|
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
|
-
},
|
|
65
|
-
const
|
|
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:
|
|
69
|
-
visible:
|
|
68
|
+
beforeLeave: T,
|
|
69
|
+
visible: L,
|
|
70
70
|
rendered: $,
|
|
71
|
-
titleId:
|
|
71
|
+
titleId: O,
|
|
72
72
|
bodyId: f,
|
|
73
|
-
zIndex:
|
|
73
|
+
zIndex: i,
|
|
74
74
|
onModalClick: B,
|
|
75
75
|
onOpenAutoFocus: c,
|
|
76
76
|
onCloseAutoFocus: C,
|
|
77
77
|
onFocusoutPrevented: U,
|
|
78
|
-
onCloseRequested:
|
|
78
|
+
onCloseRequested: I,
|
|
79
79
|
handleClose: t
|
|
80
|
-
} = ye(g,
|
|
81
|
-
return
|
|
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) => (
|
|
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
|
-
|
|
90
|
+
d(Ee, {
|
|
91
91
|
name: e(s).b("fade"),
|
|
92
92
|
onAfterEnter: e(_),
|
|
93
93
|
onAfterLeave: e(N),
|
|
94
|
-
onBeforeLeave: e(
|
|
94
|
+
onBeforeLeave: e(T),
|
|
95
95
|
persisted: ""
|
|
96
96
|
}, {
|
|
97
97
|
default: p(() => [
|
|
98
|
-
Te(
|
|
98
|
+
Te(d(e(ge), {
|
|
99
99
|
mask: l.modal,
|
|
100
100
|
"overlay-class": l.modalClass,
|
|
101
|
-
"z-index": e(
|
|
101
|
+
"z-index": e(i),
|
|
102
102
|
onClick: e(B)
|
|
103
103
|
}, {
|
|
104
104
|
default: p(() => [
|
|
105
|
-
|
|
105
|
+
d(e(Ge), {
|
|
106
106
|
loop: "",
|
|
107
|
-
trapped: e(
|
|
108
|
-
"focus-trap-el":
|
|
109
|
-
"focus-start-el":
|
|
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(
|
|
113
|
+
onReleaseRequested: e(I)
|
|
114
114
|
}, {
|
|
115
115
|
default: p(() => [
|
|
116
|
-
|
|
116
|
+
n("div", Ne({
|
|
117
117
|
ref_key: "drawerRef",
|
|
118
|
-
ref:
|
|
118
|
+
ref: w,
|
|
119
119
|
"aria-modal": "true",
|
|
120
120
|
"aria-label": l.title || void 0,
|
|
121
|
-
"aria-labelledby": l.title ? void 0 : e(
|
|
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(
|
|
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
|
-
|
|
130
|
+
n("span", {
|
|
131
131
|
ref_key: "focusStartRef",
|
|
132
|
-
ref:
|
|
132
|
+
ref: S,
|
|
133
133
|
class: v(e(s).e("sr-focus")),
|
|
134
134
|
tabindex: "-1"
|
|
135
135
|
}, null, 2),
|
|
136
|
-
l.withHeader ? (
|
|
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(
|
|
145
|
+
titleId: e(O),
|
|
146
146
|
titleClass: e(s).e("title")
|
|
147
147
|
}, () => [
|
|
148
|
-
l.$slots.title ? y("v-if", !0) : (
|
|
148
|
+
l.$slots.title ? y("v-if", !0) : (o(), m("span", {
|
|
149
149
|
key: 0,
|
|
150
|
-
id: e(
|
|
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 ? (
|
|
156
|
+
l.showClose ? (o(), m("button", {
|
|
157
157
|
key: 2,
|
|
158
|
-
"aria-label": e(
|
|
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
|
-
|
|
163
|
+
d(e(F), {
|
|
164
164
|
class: v(e(s).e("close"))
|
|
165
165
|
}, {
|
|
166
166
|
default: p(() => [
|
|
167
|
-
|
|
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($) ? (
|
|
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 ? (
|
|
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(
|
|
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:
|
|
275
|
-
const
|
|
276
|
-
formItemContext:
|
|
277
|
-
}), _ = He(
|
|
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(
|
|
279
|
+
s.m(S.value),
|
|
280
280
|
s.is("disabled", _.value),
|
|
281
281
|
s.is("checked", c.value)
|
|
282
|
-
]),
|
|
282
|
+
]), O = E(() => [
|
|
283
283
|
s.e("label"),
|
|
284
284
|
s.em("label", "left"),
|
|
285
285
|
s.is("active", !c.value)
|
|
286
|
-
]), f =
|
|
286
|
+
]), f = E(() => [
|
|
287
287
|
s.e("label"),
|
|
288
288
|
s.em("label", "right"),
|
|
289
289
|
s.is("active", c.value)
|
|
290
|
-
]),
|
|
291
|
-
width:
|
|
290
|
+
]), i = E(() => ({
|
|
291
|
+
width: ie(u.width)
|
|
292
292
|
}));
|
|
293
|
-
oe(() =>
|
|
293
|
+
oe(() => u.modelValue, () => {
|
|
294
294
|
N.value = !0;
|
|
295
295
|
});
|
|
296
|
-
const B =
|
|
297
|
-
[
|
|
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
|
-
|
|
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 ?
|
|
303
|
-
g(Z, t), g(x, t), g(ee, t),
|
|
304
|
-
|
|
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 } =
|
|
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
|
-
},
|
|
323
|
+
}, I = () => {
|
|
324
324
|
var t, b;
|
|
325
|
-
(b = (t =
|
|
325
|
+
(b = (t = T.value) == null ? void 0 : t.focus) == null || b.call(t);
|
|
326
326
|
};
|
|
327
327
|
return ce(() => {
|
|
328
|
-
|
|
329
|
-
}),
|
|
330
|
-
focus:
|
|
328
|
+
T.value.checked = c.value;
|
|
329
|
+
}), P({
|
|
330
|
+
focus: I,
|
|
331
331
|
checked: c
|
|
332
|
-
}), (t, b) => (
|
|
332
|
+
}), (t, b) => (o(), m("div", {
|
|
333
333
|
class: v(e($)),
|
|
334
334
|
onClick: ue(U, ["prevent"])
|
|
335
335
|
}, [
|
|
336
|
-
|
|
337
|
-
id: e(
|
|
336
|
+
n("input", {
|
|
337
|
+
id: e(a),
|
|
338
338
|
ref_key: "input",
|
|
339
|
-
ref:
|
|
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) ? (
|
|
354
|
+
!t.inlinePrompt && (t.inactiveIcon || t.inactiveText) ? (o(), m("span", {
|
|
355
355
|
key: 0,
|
|
356
|
-
class: v(e(
|
|
356
|
+
class: v(e(O))
|
|
357
357
|
}, [
|
|
358
|
-
t.inactiveIcon ? (
|
|
358
|
+
t.inactiveIcon ? (o(), h(e(F), { key: 0 }, {
|
|
359
359
|
default: p(() => [
|
|
360
|
-
(
|
|
360
|
+
(o(), h(K(t.inactiveIcon)))
|
|
361
361
|
]),
|
|
362
362
|
_: 1
|
|
363
363
|
})) : y("v-if", !0),
|
|
364
|
-
!t.inactiveIcon && t.inactiveText ? (
|
|
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
|
-
|
|
369
|
+
n("span", {
|
|
370
370
|
ref_key: "core",
|
|
371
|
-
ref:
|
|
371
|
+
ref: L,
|
|
372
372
|
class: v(e(s).e("core")),
|
|
373
|
-
style:
|
|
373
|
+
style: Pe(e(i))
|
|
374
374
|
}, [
|
|
375
|
-
t.inlinePrompt ? (
|
|
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 ? (
|
|
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
|
-
(
|
|
384
|
+
(o(), h(K(e(c) ? t.activeIcon : t.inactiveIcon)))
|
|
385
385
|
]),
|
|
386
386
|
_: 1
|
|
387
|
-
}, 8, ["class"])) : t.activeText || t.inactiveText ? (
|
|
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
|
-
|
|
393
|
+
n("div", {
|
|
394
394
|
class: v(e(s).e("action"))
|
|
395
395
|
}, [
|
|
396
|
-
t.loading ? (
|
|
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
|
-
|
|
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 ? (
|
|
405
|
+
t.activeActionIcon ? (o(), h(e(F), { key: 0 }, {
|
|
406
406
|
default: p(() => [
|
|
407
|
-
(
|
|
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 ? (
|
|
412
|
+
t.inactiveActionIcon ? (o(), h(e(F), { key: 0 }, {
|
|
413
413
|
default: p(() => [
|
|
414
|
-
(
|
|
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) ? (
|
|
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 ? (
|
|
425
|
+
t.activeIcon ? (o(), h(e(F), { key: 0 }, {
|
|
426
426
|
default: p(() => [
|
|
427
|
-
(
|
|
427
|
+
(o(), h(K(t.activeIcon)))
|
|
428
428
|
]),
|
|
429
429
|
_: 1
|
|
430
430
|
})) : y("v-if", !0),
|
|
431
|
-
!t.activeIcon && t.activeText ? (
|
|
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
|
|
440
|
-
const
|
|
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,
|
|
479
|
+
}), dl = (r, P) => {
|
|
478
480
|
var g;
|
|
479
|
-
return ((g =
|
|
481
|
+
return ((g = P.find((u) => u.value === r)) == null ? void 0 : g.label) ?? "-";
|
|
480
482
|
};
|
|
481
|
-
const
|
|
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:
|
|
493
|
-
const { request:
|
|
494
|
-
Object.assign(
|
|
495
|
-
},
|
|
496
|
-
const f = JSON.stringify(
|
|
497
|
-
|
|
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 (
|
|
500
|
-
const { body: f } = await
|
|
501
|
-
Object.assign(
|
|
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(
|
|
506
|
+
Object.assign(a, G(), f ? JSON.parse(f) : {});
|
|
505
507
|
}
|
|
506
|
-
},
|
|
507
|
-
if (
|
|
508
|
-
const { body: f } = await
|
|
509
|
-
_.value = f[1002].map((
|
|
510
|
-
label:
|
|
511
|
-
value:
|
|
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 =
|
|
516
|
+
_.value = S.cycleOptions;
|
|
515
517
|
};
|
|
516
518
|
return ce(() => {
|
|
517
|
-
|
|
518
|
-
}),
|
|
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,
|
|
526
|
-
const B = Se, c = Ce, C = ke, U = _e,
|
|
527
|
-
return
|
|
528
|
-
|
|
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":
|
|
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
|
-
|
|
537
|
+
d(t, { class: "setting-main" }, {
|
|
536
538
|
default: p(() => [
|
|
537
|
-
|
|
539
|
+
d(B, { style: { "margin-top": "8px" } }, {
|
|
538
540
|
default: p(() => [
|
|
539
|
-
|
|
541
|
+
M("偏好设置")
|
|
540
542
|
]),
|
|
541
543
|
_: 1
|
|
542
544
|
}),
|
|
543
|
-
|
|
545
|
+
n("div", cl, [
|
|
544
546
|
pl,
|
|
545
|
-
|
|
546
|
-
modelValue:
|
|
547
|
-
"onUpdate:modelValue":
|
|
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
|
-
(
|
|
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
|
-
|
|
562
|
+
n("div", ml, [
|
|
561
563
|
vl,
|
|
562
|
-
|
|
563
|
-
modelValue:
|
|
564
|
-
"onUpdate:modelValue":
|
|
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
|
-
(
|
|
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
|
-
|
|
579
|
+
n("div", fl, [
|
|
578
580
|
bl,
|
|
579
|
-
|
|
580
|
-
modelValue:
|
|
581
|
-
"onUpdate:modelValue":
|
|
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
|
-
(
|
|
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
|
-
|
|
596
|
+
n("div", yl, [
|
|
595
597
|
gl,
|
|
596
|
-
|
|
598
|
+
d(U, {
|
|
597
599
|
size: "small",
|
|
598
|
-
modelValue:
|
|
599
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
609
|
-
class: v(`setting-multi-box grid-${
|
|
610
|
+
n("div", {
|
|
611
|
+
class: v(`setting-multi-box grid-${a.multiCycleNum}`)
|
|
610
612
|
}, [
|
|
611
|
-
(
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
modelValue:
|
|
616
|
-
"onUpdate:modelValue": (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
|
-
(
|
|
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
|
-
|
|
631
|
+
n("span", Cl, z(k + 1) + "号位K线", 1)
|
|
630
632
|
]))), 256))
|
|
631
633
|
], 2),
|
|
632
|
-
|
|
634
|
+
n("div", kl, [
|
|
633
635
|
Vl,
|
|
634
|
-
|
|
636
|
+
d(U, {
|
|
635
637
|
size: "small",
|
|
636
|
-
modelValue:
|
|
637
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
647
|
+
d(B, { style: { "margin-top": "44px" } }, {
|
|
646
648
|
default: p(() => [
|
|
647
|
-
|
|
649
|
+
M("功能配置")
|
|
648
650
|
]),
|
|
649
651
|
_: 1
|
|
650
652
|
}),
|
|
651
|
-
|
|
653
|
+
n("div", wl, [
|
|
652
654
|
Sl,
|
|
653
|
-
|
|
654
|
-
modelValue:
|
|
655
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
660
|
+
n("div", Il, [
|
|
659
661
|
El,
|
|
660
|
-
|
|
661
|
-
modelValue:
|
|
662
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
667
|
+
n("div", Tl, [
|
|
666
668
|
Nl,
|
|
667
|
-
|
|
668
|
-
modelValue:
|
|
669
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
681
|
+
d(B, { style: { "margin-top": "44px" } }, {
|
|
673
682
|
default: p(() => [
|
|
674
|
-
|
|
683
|
+
M("组件开关")
|
|
675
684
|
]),
|
|
676
685
|
_: 1
|
|
677
686
|
}),
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
modelValue:
|
|
682
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
modelValue:
|
|
689
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
696
|
-
|
|
704
|
+
n("div", Dl, [
|
|
705
|
+
d(b, { onClick: T }, {
|
|
697
706
|
default: p(() => [
|
|
698
|
-
|
|
707
|
+
M(" 恢复默认 ")
|
|
699
708
|
]),
|
|
700
709
|
_: 1
|
|
701
710
|
}),
|
|
702
|
-
|
|
711
|
+
d(b, {
|
|
703
712
|
type: "primary",
|
|
704
|
-
onClick:
|
|
713
|
+
onClick: L
|
|
705
714
|
}, {
|
|
706
715
|
default: p(() => [
|
|
707
|
-
|
|
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
|
-
},
|
|
727
|
+
}, Rl = /* @__PURE__ */ Re(Fl, [["__scopeId", "data-v-da9cf1c8"]]), ut = {
|
|
719
728
|
install(r) {
|
|
720
|
-
r.component("st-klineConfig",
|
|
729
|
+
r.component("st-klineConfig", Rl);
|
|
721
730
|
}
|
|
722
731
|
};
|
|
723
732
|
export {
|
|
724
|
-
|
|
733
|
+
ut as default
|
|
725
734
|
};
|