st-comp 0.0.170 → 0.0.171
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 +112 -103
- package/es/KlinePlus.cjs +3 -3
- package/es/KlinePlus.js +455 -423
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +165 -165
- package/lib/{index-ce5ad56d.js → index-42745784.js} +8151 -8110
- package/lib/{python-9ba1e842.js → python-bea23b43.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineConfig/config.js +9 -5
- package/packages/KlineConfig/index.vue +22 -15
- package/packages/KlinePlus/index.vue +34 -5
- package/packages/KlinePlus/utils.js +18 -1
package/es/KlineConfig.js
CHANGED
|
@@ -7,7 +7,7 @@ import "./el-tag-6036f51c.js";
|
|
|
7
7
|
import { E as ke, a as Ve } from "./el-select-d3bce4d1.js";
|
|
8
8
|
import { u as we, a as Se } from "./el-popper-85365d5b.js";
|
|
9
9
|
import { E as Ie } from "./el-divider-7cf13678.js";
|
|
10
|
-
import { defineComponent as Q, useSlots as Ee, computed as S, ref as
|
|
10
|
+
import { defineComponent as Q, useSlots as Ee, computed as S, ref as A, openBlock as a, createBlock as h, unref as e, withCtx as p, createVNode as u, Transition as Te, withDirectives as Ne, createElementVNode as i, mergeProps as Be, withModifiers as ue, normalizeClass as v, createElementBlock as m, renderSlot as R, toDisplayString as z, createCommentVNode as y, vShow as Ae, watch as oe, onMounted as ce, withKeys as Le, resolveDynamicComponent as K, normalizeStyle as Oe, nextTick as Pe, inject as Ue, reactive as De, createTextVNode as q, Fragment as M, renderList as j, pushScopeId as Fe, popScopeId as Re } from "vue";
|
|
11
11
|
import { _ as ze } from "./_plugin-vue_export-helper-dad06003.js";
|
|
12
12
|
import { E as F, c as $e, l as Ke } from "./index-3425f2f0.js";
|
|
13
13
|
import { i as J, u as qe, b as Me, c as je, d as He } from "./use-form-common-props-54c31983.js";
|
|
@@ -52,7 +52,7 @@ const Xe = se({
|
|
|
52
52
|
...Ze,
|
|
53
53
|
props: Xe,
|
|
54
54
|
emits: Ye,
|
|
55
|
-
setup(r, { expose:
|
|
55
|
+
setup(r, { expose: L }) {
|
|
56
56
|
const g = r, d = Ee();
|
|
57
57
|
We({
|
|
58
58
|
scope: "el-drawer",
|
|
@@ -61,23 +61,23 @@ const Xe = se({
|
|
|
61
61
|
version: "3.0.0",
|
|
62
62
|
ref: "https://element-plus.org/en-US/component/drawer.html#slots"
|
|
63
63
|
}, S(() => !!d.title));
|
|
64
|
-
const V =
|
|
64
|
+
const V = A(), w = A(), s = ie("drawer"), { t: o } = Qe(), {
|
|
65
65
|
afterEnter: _,
|
|
66
66
|
afterLeave: N,
|
|
67
67
|
beforeLeave: E,
|
|
68
|
-
visible:
|
|
68
|
+
visible: O,
|
|
69
69
|
rendered: $,
|
|
70
|
-
titleId:
|
|
70
|
+
titleId: P,
|
|
71
71
|
bodyId: f,
|
|
72
72
|
zIndex: n,
|
|
73
|
-
onModalClick:
|
|
74
|
-
onOpenAutoFocus:
|
|
73
|
+
onModalClick: B,
|
|
74
|
+
onOpenAutoFocus: c,
|
|
75
75
|
onCloseAutoFocus: C,
|
|
76
76
|
onFocusoutPrevented: U,
|
|
77
77
|
onCloseRequested: T,
|
|
78
78
|
handleClose: t
|
|
79
79
|
} = ye(g, V), b = S(() => g.direction === "rtl" || g.direction === "ltr"), D = S(() => ne(g.size));
|
|
80
|
-
return
|
|
80
|
+
return L({
|
|
81
81
|
handleClose: t,
|
|
82
82
|
afterEnter: _,
|
|
83
83
|
afterLeave: N
|
|
@@ -86,7 +86,7 @@ const Xe = se({
|
|
|
86
86
|
disabled: l.appendTo !== "body" ? !1 : !l.appendToBody
|
|
87
87
|
}, {
|
|
88
88
|
default: p(() => [
|
|
89
|
-
|
|
89
|
+
u(Te, {
|
|
90
90
|
name: e(s).b("fade"),
|
|
91
91
|
onAfterEnter: e(_),
|
|
92
92
|
onAfterLeave: e(N),
|
|
@@ -94,19 +94,19 @@ const Xe = se({
|
|
|
94
94
|
persisted: ""
|
|
95
95
|
}, {
|
|
96
96
|
default: p(() => [
|
|
97
|
-
Ne(
|
|
97
|
+
Ne(u(e(ge), {
|
|
98
98
|
mask: l.modal,
|
|
99
99
|
"overlay-class": l.modalClass,
|
|
100
100
|
"z-index": e(n),
|
|
101
|
-
onClick: e(
|
|
101
|
+
onClick: e(B)
|
|
102
102
|
}, {
|
|
103
103
|
default: p(() => [
|
|
104
|
-
|
|
104
|
+
u(e(Ge), {
|
|
105
105
|
loop: "",
|
|
106
|
-
trapped: e(
|
|
106
|
+
trapped: e(O),
|
|
107
107
|
"focus-trap-el": V.value,
|
|
108
108
|
"focus-start-el": w.value,
|
|
109
|
-
onFocusAfterTrapped: e(
|
|
109
|
+
onFocusAfterTrapped: e(c),
|
|
110
110
|
onFocusAfterReleased: e(C),
|
|
111
111
|
onFocusoutPrevented: e(U),
|
|
112
112
|
onReleaseRequested: e(T)
|
|
@@ -117,10 +117,10 @@ const Xe = se({
|
|
|
117
117
|
ref: V,
|
|
118
118
|
"aria-modal": "true",
|
|
119
119
|
"aria-label": l.title || void 0,
|
|
120
|
-
"aria-labelledby": l.title ? void 0 : e(
|
|
120
|
+
"aria-labelledby": l.title ? void 0 : e(P),
|
|
121
121
|
"aria-describedby": e(f)
|
|
122
122
|
}, l.$attrs, {
|
|
123
|
-
class: [e(s).b(), l.direction, e(
|
|
123
|
+
class: [e(s).b(), l.direction, e(O) && "open"],
|
|
124
124
|
style: e(b) ? "width: " + e(D) : "height: " + e(D),
|
|
125
125
|
role: "dialog",
|
|
126
126
|
onClick: ue(() => {
|
|
@@ -141,12 +141,12 @@ const Xe = se({
|
|
|
141
141
|
]) : R(l.$slots, "header", {
|
|
142
142
|
key: 0,
|
|
143
143
|
close: e(t),
|
|
144
|
-
titleId: e(
|
|
144
|
+
titleId: e(P),
|
|
145
145
|
titleClass: e(s).e("title")
|
|
146
146
|
}, () => [
|
|
147
147
|
l.$slots.title ? y("v-if", !0) : (a(), m("span", {
|
|
148
148
|
key: 0,
|
|
149
|
-
id: e(
|
|
149
|
+
id: e(P),
|
|
150
150
|
role: "heading",
|
|
151
151
|
"aria-level": l.headerAriaLevel,
|
|
152
152
|
class: v(e(s).e("title"))
|
|
@@ -159,11 +159,11 @@ const Xe = se({
|
|
|
159
159
|
type: "button",
|
|
160
160
|
onClick: e(t)
|
|
161
161
|
}, [
|
|
162
|
-
|
|
162
|
+
u(e(F), {
|
|
163
163
|
class: v(e(s).e("close"))
|
|
164
164
|
}, {
|
|
165
165
|
default: p(() => [
|
|
166
|
-
|
|
166
|
+
u(e($e))
|
|
167
167
|
]),
|
|
168
168
|
_: 1
|
|
169
169
|
}, 8, ["class"])
|
|
@@ -189,7 +189,7 @@ const Xe = se({
|
|
|
189
189
|
]),
|
|
190
190
|
_: 3
|
|
191
191
|
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
|
192
|
-
[Ae, e(
|
|
192
|
+
[Ae, e(O)]
|
|
193
193
|
])
|
|
194
194
|
]),
|
|
195
195
|
_: 3
|
|
@@ -270,37 +270,37 @@ const ll = de(el), tl = se({
|
|
|
270
270
|
...ol,
|
|
271
271
|
props: tl,
|
|
272
272
|
emits: al,
|
|
273
|
-
setup(r, { expose:
|
|
273
|
+
setup(r, { expose: L, emit: g }) {
|
|
274
274
|
const d = r, { formItem: V } = qe(), w = Me(), s = ie("switch"), { inputId: o } = je(d, {
|
|
275
275
|
formItemContext: V
|
|
276
|
-
}), _ = He(S(() => d.loading)), N =
|
|
276
|
+
}), _ = He(S(() => d.loading)), N = A(d.modelValue !== !1), E = A(), O = A(), $ = S(() => [
|
|
277
277
|
s.b(),
|
|
278
278
|
s.m(w.value),
|
|
279
279
|
s.is("disabled", _.value),
|
|
280
|
-
s.is("checked",
|
|
281
|
-
]),
|
|
280
|
+
s.is("checked", c.value)
|
|
281
|
+
]), P = S(() => [
|
|
282
282
|
s.e("label"),
|
|
283
283
|
s.em("label", "left"),
|
|
284
|
-
s.is("active", !
|
|
284
|
+
s.is("active", !c.value)
|
|
285
285
|
]), f = S(() => [
|
|
286
286
|
s.e("label"),
|
|
287
287
|
s.em("label", "right"),
|
|
288
|
-
s.is("active",
|
|
288
|
+
s.is("active", c.value)
|
|
289
289
|
]), n = S(() => ({
|
|
290
290
|
width: ne(d.width)
|
|
291
291
|
}));
|
|
292
292
|
oe(() => d.modelValue, () => {
|
|
293
293
|
N.value = !0;
|
|
294
294
|
});
|
|
295
|
-
const
|
|
296
|
-
[d.activeValue, d.inactiveValue].includes(
|
|
295
|
+
const B = S(() => N.value ? d.modelValue : !1), c = S(() => B.value === d.activeValue);
|
|
296
|
+
[d.activeValue, d.inactiveValue].includes(B.value) || (g(Z, d.inactiveValue), g(x, d.inactiveValue), g(ee, d.inactiveValue)), oe(c, (t) => {
|
|
297
297
|
var b;
|
|
298
298
|
E.value.checked = t, d.validateEvent && ((b = V == null ? void 0 : V.validate) == null || b.call(V, "change").catch((D) => te(D)));
|
|
299
299
|
});
|
|
300
300
|
const C = () => {
|
|
301
|
-
const t =
|
|
301
|
+
const t = c.value ? d.inactiveValue : d.activeValue;
|
|
302
302
|
g(Z, t), g(x, t), g(ee, t), Pe(() => {
|
|
303
|
-
E.value.checked =
|
|
303
|
+
E.value.checked = c.value;
|
|
304
304
|
});
|
|
305
305
|
}, U = () => {
|
|
306
306
|
if (_.value)
|
|
@@ -324,10 +324,10 @@ const ll = de(el), tl = se({
|
|
|
324
324
|
(b = (t = E.value) == null ? void 0 : t.focus) == null || b.call(t);
|
|
325
325
|
};
|
|
326
326
|
return ce(() => {
|
|
327
|
-
E.value.checked =
|
|
328
|
-
}),
|
|
327
|
+
E.value.checked = c.value;
|
|
328
|
+
}), L({
|
|
329
329
|
focus: T,
|
|
330
|
-
checked:
|
|
330
|
+
checked: c
|
|
331
331
|
}), (t, b) => (a(), m("div", {
|
|
332
332
|
class: v(e($)),
|
|
333
333
|
onClick: ue(U, ["prevent"])
|
|
@@ -339,7 +339,7 @@ const ll = de(el), tl = se({
|
|
|
339
339
|
class: v(e(s).e("input")),
|
|
340
340
|
type: "checkbox",
|
|
341
341
|
role: "switch",
|
|
342
|
-
"aria-checked": e(
|
|
342
|
+
"aria-checked": e(c),
|
|
343
343
|
"aria-disabled": e(_),
|
|
344
344
|
"aria-label": t.ariaLabel,
|
|
345
345
|
name: t.name,
|
|
@@ -352,7 +352,7 @@ const ll = de(el), tl = se({
|
|
|
352
352
|
}, null, 42, ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"]),
|
|
353
353
|
!t.inlinePrompt && (t.inactiveIcon || t.inactiveText) ? (a(), m("span", {
|
|
354
354
|
key: 0,
|
|
355
|
-
class: v(e(
|
|
355
|
+
class: v(e(P))
|
|
356
356
|
}, [
|
|
357
357
|
t.inactiveIcon ? (a(), h(e(F), { key: 0 }, {
|
|
358
358
|
default: p(() => [
|
|
@@ -362,12 +362,12 @@ const ll = de(el), tl = se({
|
|
|
362
362
|
})) : y("v-if", !0),
|
|
363
363
|
!t.inactiveIcon && t.inactiveText ? (a(), m("span", {
|
|
364
364
|
key: 1,
|
|
365
|
-
"aria-hidden": e(
|
|
365
|
+
"aria-hidden": e(c)
|
|
366
366
|
}, z(t.inactiveText), 9, ["aria-hidden"])) : y("v-if", !0)
|
|
367
367
|
], 2)) : y("v-if", !0),
|
|
368
368
|
i("span", {
|
|
369
369
|
ref_key: "core",
|
|
370
|
-
ref:
|
|
370
|
+
ref: O,
|
|
371
371
|
class: v(e(s).e("core")),
|
|
372
372
|
style: Oe(e(n))
|
|
373
373
|
}, [
|
|
@@ -380,14 +380,14 @@ const ll = de(el), tl = se({
|
|
|
380
380
|
class: v(e(s).is("icon"))
|
|
381
381
|
}, {
|
|
382
382
|
default: p(() => [
|
|
383
|
-
(a(), h(K(e(
|
|
383
|
+
(a(), h(K(e(c) ? t.activeIcon : t.inactiveIcon)))
|
|
384
384
|
]),
|
|
385
385
|
_: 1
|
|
386
386
|
}, 8, ["class"])) : t.activeText || t.inactiveText ? (a(), m("span", {
|
|
387
387
|
key: 1,
|
|
388
388
|
class: v(e(s).is("text")),
|
|
389
|
-
"aria-hidden": !e(
|
|
390
|
-
}, z(e(
|
|
389
|
+
"aria-hidden": !e(c)
|
|
390
|
+
}, z(e(c) ? t.activeText : t.inactiveText), 11, ["aria-hidden"])) : y("v-if", !0)
|
|
391
391
|
], 2)) : y("v-if", !0),
|
|
392
392
|
i("div", {
|
|
393
393
|
class: v(e(s).e("action"))
|
|
@@ -397,17 +397,17 @@ const ll = de(el), tl = se({
|
|
|
397
397
|
class: v(e(s).is("loading"))
|
|
398
398
|
}, {
|
|
399
399
|
default: p(() => [
|
|
400
|
-
|
|
400
|
+
u(e(Ke))
|
|
401
401
|
]),
|
|
402
402
|
_: 1
|
|
403
|
-
}, 8, ["class"])) : e(
|
|
403
|
+
}, 8, ["class"])) : e(c) ? R(t.$slots, "active-action", { key: 1 }, () => [
|
|
404
404
|
t.activeActionIcon ? (a(), h(e(F), { key: 0 }, {
|
|
405
405
|
default: p(() => [
|
|
406
406
|
(a(), h(K(t.activeActionIcon)))
|
|
407
407
|
]),
|
|
408
408
|
_: 1
|
|
409
409
|
})) : y("v-if", !0)
|
|
410
|
-
]) : e(
|
|
410
|
+
]) : e(c) ? y("v-if", !0) : R(t.$slots, "inactive-action", { key: 2 }, () => [
|
|
411
411
|
t.inactiveActionIcon ? (a(), h(e(F), { key: 0 }, {
|
|
412
412
|
default: p(() => [
|
|
413
413
|
(a(), h(K(t.inactiveActionIcon)))
|
|
@@ -429,7 +429,7 @@ const ll = de(el), tl = se({
|
|
|
429
429
|
})) : y("v-if", !0),
|
|
430
430
|
!t.activeIcon && t.activeText ? (a(), m("span", {
|
|
431
431
|
key: 1,
|
|
432
|
-
"aria-hidden": !e(
|
|
432
|
+
"aria-hidden": !e(c)
|
|
433
433
|
}, z(t.activeText), 9, ["aria-hidden"])) : y("v-if", !0)
|
|
434
434
|
], 2)) : y("v-if", !0)
|
|
435
435
|
], 10, ["onClick"]));
|
|
@@ -460,21 +460,24 @@ const rl = [
|
|
|
460
460
|
/**
|
|
461
461
|
* @description: 功能配置
|
|
462
462
|
*/
|
|
463
|
+
enable_tradeLogBrush: !0,
|
|
464
|
+
// 高亮交易范围
|
|
465
|
+
enable_showScreenTimeRange: !0,
|
|
466
|
+
// 展示当屏时间范围
|
|
467
|
+
enable_dbClickOpenSingel: !0,
|
|
468
|
+
// 多周期双击图表切换至单周期
|
|
469
|
+
/**
|
|
470
|
+
* @description: 组件开关
|
|
471
|
+
*/
|
|
463
472
|
enable_subChart: !0,
|
|
464
473
|
// 是否启用副图
|
|
465
|
-
enable_sliderChart: !0
|
|
474
|
+
enable_sliderChart: !0
|
|
466
475
|
// 是否启用拖拽轴
|
|
467
|
-
|
|
468
|
-
// 是否开启交易范围高亮
|
|
469
|
-
enable_dbClickOpenSingel: !0,
|
|
470
|
-
// 是否开启双击打开单周期
|
|
471
|
-
enable_showScreenTimeRange: !0
|
|
472
|
-
// 是否开启显示K线当屏时间范围
|
|
473
|
-
}), dl = (r, A) => {
|
|
476
|
+
}), dl = (r, L) => {
|
|
474
477
|
var g;
|
|
475
|
-
return ((g =
|
|
478
|
+
return ((g = L.find((d) => d.value === r)) == null ? void 0 : g.label) ?? "-";
|
|
476
479
|
};
|
|
477
|
-
const I = (r) => (Fe("data-v-
|
|
480
|
+
const I = (r) => (Fe("data-v-0cecb8f3"), r = r(), Re(), 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 = {
|
|
478
481
|
__name: "index",
|
|
479
482
|
props: {
|
|
480
483
|
indicatorStore: { type: Object, default: () => ({}) },
|
|
@@ -485,10 +488,10 @@ const I = (r) => (Fe("data-v-db5abf51"), r = r(), Re(), r), ul = { class: "kline
|
|
|
485
488
|
cycleOptions: { type: Array, default: () => [] }
|
|
486
489
|
},
|
|
487
490
|
emits: "callBack",
|
|
488
|
-
setup(r, { expose:
|
|
489
|
-
const { request: d } = Ue("stConfig"), V = g, w = r, s =
|
|
491
|
+
setup(r, { expose: L, emit: g }) {
|
|
492
|
+
const { request: d } = Ue("stConfig"), V = g, w = r, s = A(!1), o = De({}), _ = A([]), N = A([]), E = () => {
|
|
490
493
|
Object.assign(o, G());
|
|
491
|
-
},
|
|
494
|
+
}, O = async () => {
|
|
492
495
|
const f = JSON.stringify(o);
|
|
493
496
|
w.origin === "server" ? await d.post("/common/qt/updateUserConfig", { appId: 1, json: f }) : localStorage.setItem("userKlineConfig", f), V("callBack", f), s.value = !1;
|
|
494
497
|
}, $ = async () => {
|
|
@@ -499,7 +502,7 @@ const I = (r) => (Fe("data-v-db5abf51"), r = r(), Re(), r), ul = { class: "kline
|
|
|
499
502
|
const f = localStorage.getItem("userKlineConfig");
|
|
500
503
|
Object.assign(o, G(), f ? JSON.parse(f) : {});
|
|
501
504
|
}
|
|
502
|
-
},
|
|
505
|
+
}, P = async () => {
|
|
503
506
|
if (w.origin === "server") {
|
|
504
507
|
const { body: f } = await d.post("/common/qt/getDict", { dictIds: [1002] });
|
|
505
508
|
_.value = f[1002].map((n) => ({
|
|
@@ -510,8 +513,8 @@ const I = (r) => (Fe("data-v-db5abf51"), r = r(), Re(), r), ul = { class: "kline
|
|
|
510
513
|
_.value = w.cycleOptions;
|
|
511
514
|
};
|
|
512
515
|
return ce(() => {
|
|
513
|
-
|
|
514
|
-
}),
|
|
516
|
+
P(), N.value = w.indicatorStore.mainIndicatorList ?? [];
|
|
517
|
+
}), L({
|
|
515
518
|
// 打开
|
|
516
519
|
open: async () => {
|
|
517
520
|
await $(), s.value = !0;
|
|
@@ -519,32 +522,32 @@ const I = (r) => (Fe("data-v-db5abf51"), r = r(), Re(), r), ul = { class: "kline
|
|
|
519
522
|
// 获取默认配置
|
|
520
523
|
getDefaultUserKlineConfig: G
|
|
521
524
|
}), (f, n) => {
|
|
522
|
-
const
|
|
525
|
+
const B = Ie, c = ke, C = Ve, U = Ce, T = nl, t = Se, b = he, D = ll;
|
|
523
526
|
return a(), m("div", ul, [
|
|
524
|
-
|
|
527
|
+
u(D, {
|
|
525
528
|
modelValue: s.value,
|
|
526
529
|
"onUpdate:modelValue": n[10] || (n[10] = (l) => s.value = l),
|
|
527
530
|
title: "K线自定义配置",
|
|
528
531
|
size: 320
|
|
529
532
|
}, {
|
|
530
533
|
default: p(() => [
|
|
531
|
-
|
|
534
|
+
u(t, { class: "setting-main" }, {
|
|
532
535
|
default: p(() => [
|
|
533
|
-
|
|
536
|
+
u(B, { style: { "margin-top": "8px" } }, {
|
|
534
537
|
default: p(() => [
|
|
535
|
-
|
|
538
|
+
q("偏好设置")
|
|
536
539
|
]),
|
|
537
540
|
_: 1
|
|
538
541
|
}),
|
|
539
542
|
i("div", cl, [
|
|
540
543
|
pl,
|
|
541
|
-
|
|
544
|
+
u(C, {
|
|
542
545
|
modelValue: o.mainIndicator,
|
|
543
546
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => o.mainIndicator = l),
|
|
544
547
|
"popper-class": "element-dark"
|
|
545
548
|
}, {
|
|
546
549
|
default: p(() => [
|
|
547
|
-
(a(!0), m(
|
|
550
|
+
(a(!0), m(M, null, j(N.value, (l, k) => (a(), h(c, {
|
|
548
551
|
key: k,
|
|
549
552
|
label: l.label,
|
|
550
553
|
value: l.value
|
|
@@ -555,13 +558,13 @@ const I = (r) => (Fe("data-v-db5abf51"), r = r(), Re(), r), ul = { class: "kline
|
|
|
555
558
|
]),
|
|
556
559
|
i("div", ml, [
|
|
557
560
|
vl,
|
|
558
|
-
|
|
561
|
+
u(C, {
|
|
559
562
|
modelValue: o.sellBuy,
|
|
560
563
|
"onUpdate:modelValue": n[1] || (n[1] = (l) => o.sellBuy = l),
|
|
561
564
|
"popper-class": "element-dark"
|
|
562
565
|
}, {
|
|
563
566
|
default: p(() => [
|
|
564
|
-
(a(!0), m(
|
|
567
|
+
(a(!0), m(M, null, j(e(rl), (l, k) => (a(), h(c, {
|
|
565
568
|
key: k,
|
|
566
569
|
label: l.label,
|
|
567
570
|
value: l.value
|
|
@@ -572,13 +575,13 @@ const I = (r) => (Fe("data-v-db5abf51"), r = r(), Re(), r), ul = { class: "kline
|
|
|
572
575
|
]),
|
|
573
576
|
i("div", fl, [
|
|
574
577
|
bl,
|
|
575
|
-
|
|
578
|
+
u(C, {
|
|
576
579
|
modelValue: o.singelCycle,
|
|
577
580
|
"onUpdate:modelValue": n[2] || (n[2] = (l) => o.singelCycle = l),
|
|
578
581
|
"popper-class": "element-dark"
|
|
579
582
|
}, {
|
|
580
583
|
default: p(() => [
|
|
581
|
-
(a(!0), m(
|
|
584
|
+
(a(!0), m(M, null, j(_.value, (l, k) => (a(), h(c, {
|
|
582
585
|
key: k,
|
|
583
586
|
label: l.label,
|
|
584
587
|
value: l.value
|
|
@@ -589,7 +592,7 @@ const I = (r) => (Fe("data-v-db5abf51"), r = r(), Re(), r), ul = { class: "kline
|
|
|
589
592
|
]),
|
|
590
593
|
i("div", yl, [
|
|
591
594
|
gl,
|
|
592
|
-
|
|
595
|
+
u(U, {
|
|
593
596
|
size: "small",
|
|
594
597
|
modelValue: o.multiCycleNum,
|
|
595
598
|
"onUpdate:modelValue": n[3] || (n[3] = (l) => o.multiCycleNum = l),
|
|
@@ -604,19 +607,19 @@ const I = (r) => (Fe("data-v-db5abf51"), r = r(), Re(), r), ul = { class: "kline
|
|
|
604
607
|
i("div", {
|
|
605
608
|
class: v(`setting-multi-box grid-${o.multiCycleNum}`)
|
|
606
609
|
}, [
|
|
607
|
-
(a(!0), m(
|
|
610
|
+
(a(!0), m(M, null, j(o.multiCycleList.slice(0, o.multiCycleNum), (l, k) => (a(), m("div", hl, [
|
|
608
611
|
i("div", _l, [
|
|
609
612
|
i("span", null, z(e(dl)(o.multiCycleList[k], _.value)), 1),
|
|
610
|
-
|
|
613
|
+
u(C, {
|
|
611
614
|
modelValue: o.multiCycleList[k],
|
|
612
|
-
"onUpdate:modelValue": (
|
|
615
|
+
"onUpdate:modelValue": (H) => o.multiCycleList[k] = H,
|
|
613
616
|
"popper-class": "element-dark"
|
|
614
617
|
}, {
|
|
615
618
|
default: p(() => [
|
|
616
|
-
(a(!0), m(
|
|
619
|
+
(a(!0), m(M, null, j(_.value, (H, pe) => (a(), h(c, {
|
|
617
620
|
key: pe,
|
|
618
|
-
label:
|
|
619
|
-
value:
|
|
621
|
+
label: H.label,
|
|
622
|
+
value: H.value
|
|
620
623
|
}, null, 8, ["label", "value"]))), 128))
|
|
621
624
|
]),
|
|
622
625
|
_: 2
|
|
@@ -627,7 +630,7 @@ const I = (r) => (Fe("data-v-db5abf51"), r = r(), Re(), r), ul = { class: "kline
|
|
|
627
630
|
], 2),
|
|
628
631
|
i("div", kl, [
|
|
629
632
|
Vl,
|
|
630
|
-
|
|
633
|
+
u(U, {
|
|
631
634
|
size: "small",
|
|
632
635
|
modelValue: o.pageType,
|
|
633
636
|
"onUpdate:modelValue": n[4] || (n[4] = (l) => o.pageType = l),
|
|
@@ -638,63 +641,69 @@ const I = (r) => (Fe("data-v-db5abf51"), r = r(), Re(), r), ul = { class: "kline
|
|
|
638
641
|
style: { height: "26px" }
|
|
639
642
|
}, null, 8, ["modelValue"])
|
|
640
643
|
]),
|
|
641
|
-
|
|
644
|
+
u(B, { style: { "margin-top": "44px" } }, {
|
|
642
645
|
default: p(() => [
|
|
643
|
-
|
|
646
|
+
q("功能配置")
|
|
644
647
|
]),
|
|
645
648
|
_: 1
|
|
646
649
|
}),
|
|
647
650
|
i("div", wl, [
|
|
648
651
|
Sl,
|
|
649
|
-
|
|
650
|
-
modelValue: o.
|
|
651
|
-
"onUpdate:modelValue": n[5] || (n[5] = (l) => o.
|
|
652
|
+
u(T, {
|
|
653
|
+
modelValue: o.enable_tradeLogBrush,
|
|
654
|
+
"onUpdate:modelValue": n[5] || (n[5] = (l) => o.enable_tradeLogBrush = l)
|
|
652
655
|
}, null, 8, ["modelValue"])
|
|
653
656
|
]),
|
|
654
657
|
i("div", Il, [
|
|
655
658
|
El,
|
|
656
|
-
|
|
657
|
-
modelValue: o.
|
|
658
|
-
"onUpdate:modelValue": n[6] || (n[6] = (l) => o.
|
|
659
|
+
u(T, {
|
|
660
|
+
modelValue: o.enable_showScreenTimeRange,
|
|
661
|
+
"onUpdate:modelValue": n[6] || (n[6] = (l) => o.enable_showScreenTimeRange = l)
|
|
659
662
|
}, null, 8, ["modelValue"])
|
|
660
663
|
]),
|
|
661
664
|
i("div", Tl, [
|
|
662
665
|
Nl,
|
|
663
|
-
|
|
664
|
-
modelValue: o.
|
|
665
|
-
"onUpdate:modelValue": n[7] || (n[7] = (l) => o.
|
|
666
|
+
u(T, {
|
|
667
|
+
modelValue: o.enable_dbClickOpenSingel,
|
|
668
|
+
"onUpdate:modelValue": n[7] || (n[7] = (l) => o.enable_dbClickOpenSingel = l)
|
|
666
669
|
}, null, 8, ["modelValue"])
|
|
667
670
|
]),
|
|
671
|
+
u(B, { style: { "margin-top": "44px" } }, {
|
|
672
|
+
default: p(() => [
|
|
673
|
+
q("组件开关")
|
|
674
|
+
]),
|
|
675
|
+
_: 1
|
|
676
|
+
}),
|
|
668
677
|
i("div", Bl, [
|
|
669
678
|
Al,
|
|
670
|
-
|
|
671
|
-
modelValue: o.
|
|
672
|
-
"onUpdate:modelValue": n[8] || (n[8] = (l) => o.
|
|
679
|
+
u(T, {
|
|
680
|
+
modelValue: o.enable_subChart,
|
|
681
|
+
"onUpdate:modelValue": n[8] || (n[8] = (l) => o.enable_subChart = l)
|
|
673
682
|
}, null, 8, ["modelValue"])
|
|
674
683
|
]),
|
|
675
684
|
i("div", Ll, [
|
|
676
685
|
Ol,
|
|
677
|
-
|
|
678
|
-
modelValue: o.
|
|
679
|
-
"onUpdate:modelValue": n[9] || (n[9] = (l) => o.
|
|
686
|
+
u(T, {
|
|
687
|
+
modelValue: o.enable_sliderChart,
|
|
688
|
+
"onUpdate:modelValue": n[9] || (n[9] = (l) => o.enable_sliderChart = l)
|
|
680
689
|
}, null, 8, ["modelValue"])
|
|
681
690
|
])
|
|
682
691
|
]),
|
|
683
692
|
_: 1
|
|
684
693
|
}),
|
|
685
694
|
i("div", Pl, [
|
|
686
|
-
|
|
695
|
+
u(b, { onClick: E }, {
|
|
687
696
|
default: p(() => [
|
|
688
|
-
|
|
697
|
+
q(" 恢复默认 ")
|
|
689
698
|
]),
|
|
690
699
|
_: 1
|
|
691
700
|
}),
|
|
692
|
-
|
|
701
|
+
u(b, {
|
|
693
702
|
type: "primary",
|
|
694
|
-
onClick:
|
|
703
|
+
onClick: O
|
|
695
704
|
}, {
|
|
696
705
|
default: p(() => [
|
|
697
|
-
|
|
706
|
+
q(" 保存配置 ")
|
|
698
707
|
]),
|
|
699
708
|
_: 1
|
|
700
709
|
})
|
|
@@ -705,7 +714,7 @@ const I = (r) => (Fe("data-v-db5abf51"), r = r(), Re(), r), ul = { class: "kline
|
|
|
705
714
|
]);
|
|
706
715
|
};
|
|
707
716
|
}
|
|
708
|
-
}, Dl = /* @__PURE__ */ ze(Ul, [["__scopeId", "data-v-
|
|
717
|
+
}, Dl = /* @__PURE__ */ ze(Ul, [["__scopeId", "data-v-0cecb8f3"]]), nt = {
|
|
709
718
|
install(r) {
|
|
710
719
|
r.component("st-klineConfig", Dl);
|
|
711
720
|
}
|