st-comp 0.0.200 → 0.0.202
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/components.d.ts +3 -0
- package/es/ChartLayout.js +4 -4
- package/es/ConfigProvider.cjs +1 -1
- package/es/ConfigProvider.js +1 -1
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +44 -40
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +84 -78
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +21 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +30 -28
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +345 -331
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +20 -18
- package/es/KlinePlus.cjs +4 -4
- package/es/KlinePlus.js +610 -588
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +2 -2
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +74 -72
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +9 -157
- package/es/Pie.cjs +1 -1
- package/es/Pie.js +1 -1
- package/es/Table.cjs +1 -1
- package/es/Table.js +56 -52
- package/es/User.cjs +1 -1
- package/es/User.js +1313 -1
- package/es/VarSelectDialog.cjs +1 -1
- package/es/VarSelectDialog.js +28 -26
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +19 -18
- package/es/VarietySearch.cjs +8 -8
- package/es/VarietySearch.js +704 -697
- package/es/VarietyTextCopy.cjs +1 -1
- package/es/VarietyTextCopy.js +12 -12
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +80 -79
- package/es/{el-popover-5421d52a.cjs → _initCloneObject-52b6a510.cjs} +1 -1
- package/es/{el-popover-7a1c6412.js → _initCloneObject-eaef9418.js} +9 -9
- package/es/{base-8348063b.js → base-a5af3db3.js} +38 -38
- package/es/{castArray-3f45c3ec.js → castArray-7741a212.js} +1 -1
- package/es/{config-provider-eb0460f1.cjs → config-provider-a584d81e.cjs} +1 -1
- package/es/{config-provider-1a687690.js → config-provider-b16efd62.js} +6 -6
- package/es/debounce-62f5b6e8.cjs +1 -0
- package/es/debounce-8d53f4dd.js +83 -0
- package/es/dropdown-071c5d7e.cjs +1 -0
- package/es/dropdown-a59bba73.js +178 -0
- package/es/el-autocomplete-a07e9439.cjs +1 -0
- package/es/{el-autocomplete-d4cd96cd.js → el-autocomplete-ba808eb6.js} +16 -16
- package/es/{el-button-2e680390.js → el-button-c95adb85.js} +33 -33
- package/es/{el-button-4ccd7122.cjs → el-button-eec58cff.cjs} +1 -1
- package/es/el-checkbox-7421ccd3.js +459 -0
- package/es/el-checkbox-c25236a6.cjs +1 -0
- package/es/el-checkbox-group-0ea8fbf8.cjs +1 -0
- package/es/el-checkbox-group-4ed993c7.js +1 -0
- package/es/{el-dialog-bafc4b2b.js → el-dialog-41ab8417.js} +7 -6
- package/es/{el-dialog-6413b4af.cjs → el-dialog-ae86edb8.cjs} +1 -1
- package/es/{el-divider-93b0ee21.js → el-divider-4e059794.js} +1 -1
- package/es/{el-empty-56783dca.js → el-empty-33cb66f1.js} +3 -3
- package/es/el-form-item-c3fe189b.cjs +12 -0
- package/es/el-form-item-c53c374d.js +1269 -0
- package/es/{el-input-735575f4.js → el-input-2f75c4ba.js} +34 -34
- package/es/{el-input-6c5ac889.cjs → el-input-7fd293af.cjs} +1 -1
- package/es/{el-input-number-d5770776.cjs → el-input-number-22e21d16.cjs} +1 -1
- package/es/{el-input-number-6634a6ea.js → el-input-number-5193fe6d.js} +35 -35
- package/es/{el-loading-98dcebee.cjs → el-loading-cfd86c15.cjs} +1 -1
- package/es/{el-loading-049dacc5.js → el-loading-f6022062.js} +5 -5
- package/es/{el-menu-item-828bc6fa.cjs → el-menu-item-17dc717e.cjs} +1 -1
- package/es/{el-menu-item-8a210e21.js → el-menu-item-7e881203.js} +22 -22
- package/es/{el-message-a1ac37d4.cjs → el-message-5e6a6be9.cjs} +1 -1
- package/es/el-message-box-a93d2f6a.js +489 -0
- package/es/el-message-box-c10adb52.cjs +1 -0
- package/es/{el-message-def216ae.js → el-message-e544a8f5.js} +24 -24
- package/es/{el-overlay-4ea38eab.js → el-overlay-09ad71cd.js} +51 -51
- package/es/{el-overlay-69dfacb6.cjs → el-overlay-9e34965f.cjs} +1 -1
- package/es/{el-popconfirm-bdeceeb7.cjs → el-popconfirm-70a976bf.cjs} +1 -1
- package/es/{el-popconfirm-aace1104.js → el-popconfirm-81dcd202.js} +20 -20
- package/es/el-popover-0ea8fbf8.cjs +1 -0
- package/es/el-popover-4ed993c7.js +1 -0
- package/es/{el-popper-986a8371.js → el-popper-b4f97157.js} +115 -112
- package/es/{el-popper-b962125f.cjs → el-popper-b6c99b28.cjs} +1 -1
- package/es/el-scrollbar-323542e7.js +34 -0
- package/es/el-scrollbar-bc3f790d.cjs +1 -0
- package/es/{el-segmented-f892ec18.js → el-segmented-b868d074.js} +8 -8
- package/es/{el-segmented-6b057ed5.cjs → el-segmented-f8fce9ac.cjs} +1 -1
- package/es/{el-select-2189a8ac.js → el-select-95627997.js} +42 -41
- package/es/el-select-d8d91db1.cjs +1 -0
- package/es/el-table-column-376cd907.js +3432 -0
- package/es/el-table-column-c974cb96.cjs +14 -0
- package/es/{el-tag-75a7573a.js → el-tag-66cab138.js} +16 -16
- package/es/{el-tag-a15520b3.cjs → el-tag-a33c4b22.cjs} +1 -1
- package/es/{el-checkbox-group-e26a4533.js → el-text-ac60d0f2.js} +16 -16
- package/es/{el-checkbox-group-dfdad075.cjs → el-text-c20a9f48.cjs} +1 -1
- package/es/{index-1fb95601.cjs → index-098c2447.cjs} +1 -1
- package/es/{index-16802b35.cjs → index-11547a0c.cjs} +1 -1
- package/es/index-1f7d4f70.js +157 -0
- package/es/{index-680be212.cjs → index-298075cf.cjs} +1 -1
- package/es/index-57672682.js +113 -0
- package/es/{index-9cfb6ccf.js → index-7ed0999e.js} +2 -0
- package/es/{index-f3a86049.js → index-844bdd85.js} +29 -29
- package/es/index-88546436.js +163 -0
- package/es/{index-cc200b99.cjs → index-8901a38c.cjs} +1 -1
- package/es/{index-e00ee015.js → index-960806da.js} +36 -36
- package/es/index-9b9ef5dd.cjs +1 -0
- package/es/{index-847d58bc.js → index-a871c3eb.js} +92 -62
- package/es/{index-780e7fd2.js → index-bc8e277e.js} +2 -2
- package/es/{index-5e0314ac.cjs → index-c108567d.cjs} +1 -1
- package/es/{index-78381381.cjs → index-d725fef6.cjs} +2 -2
- package/es/{index-14c88a1a.js → index-d77a7336.js} +1 -1
- package/es/{index-f45c2897.js → index-d91dc23f.js} +20 -20
- package/es/{index-c94b9543.js → index-e5566b94.js} +43 -43
- package/es/index-f3562b52.cjs +1 -0
- package/es/index-f967d6c1.cjs +1 -0
- package/es/{python-2e916d28.cjs → python-c27ba105.cjs} +1 -1
- package/es/{python-7cf0b6ba.js → python-ecde9ff2.js} +2 -2
- package/es/{raf-8e5f0699.js → raf-80ef0c0a.js} +1 -1
- package/es/{scroll-c43468ab.js → scroll-679bd6bf.js} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-e6cba60f.js → use-form-common-props-815d48a6.js} +69 -69
- package/es/{use-form-common-props-d8866dc6.cjs → use-form-common-props-fd9b61a0.cjs} +1 -1
- package/es/{use-global-config-72d50e62.cjs → use-global-config-30d7d8ce.cjs} +1 -1
- package/es/{use-global-config-76ff2e3e.js → use-global-config-b5e9d3d5.js} +14 -14
- package/es/{validator-e759d43d.cjs → validator-1b8a6128.cjs} +1 -1
- package/es/{validator-220652c5.js → validator-764a9db0.js} +1 -1
- package/es/vnode-5ddb7ed1.js +14 -0
- package/es/vnode-b906ae6d.cjs +1 -0
- package/es/{zh-cn-33e7aee6.cjs → zh-cn-90317f62.cjs} +1 -1
- package/es/{zh-cn-c7fa42ea.js → zh-cn-e963c628.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +156 -156
- package/lib/{index-410c490f.js → index-a45d1494.js} +11238 -11207
- package/lib/{python-589861d2.js → python-82d17c8d.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineConfig/config.js +2 -0
- package/packages/KlineConfig/index.vue +9 -0
- package/packages/KlinePlus/index.vue +18 -8
- package/packages/KlinePlus/utils.js +41 -5
- package/src/pages/KlinePlus/index.vue +6 -5
- package/es/el-autocomplete-86c0d989.cjs +0 -1
- package/es/el-form-item-41becb31.js +0 -1749
- package/es/el-form-item-95476197.cjs +0 -12
- package/es/el-scrollbar-139aa96d.cjs +0 -1
- package/es/el-scrollbar-cdadd788.js +0 -115
- package/es/el-select-e1046cc6.cjs +0 -1
- package/es/el-table-column-91d69c86.js +0 -3882
- package/es/el-table-column-f1c4af89.cjs +0 -14
- package/es/index-56ea97a9.js +0 -122
- package/es/index-8583c047.cjs +0 -1
- package/es/index-ce63356a.cjs +0 -1
- package/es/index-db1e1861.js +0 -318
package/es/KlineConfig.js
CHANGED
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import { b as ne,
|
|
2
|
-
import {
|
|
3
|
-
import { E as Ce } from "./el-button-
|
|
4
|
-
import "./el-scrollbar-
|
|
5
|
-
import { E as
|
|
6
|
-
import "./el-
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { _ as qe } from "
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { u as el } from "./index-
|
|
18
|
-
import "./index-
|
|
19
|
-
import "./
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
1
|
+
import { b as ne, m as fe, n as ie, u as re, _ as ue, w as de, e as be, o as G, c as Z, p as x, q as oe } from "./base-a5af3db3.js";
|
|
2
|
+
import { d as ye, a as ge, u as he, E as _e } from "./el-overlay-09ad71cd.js";
|
|
3
|
+
import { E as Ce } from "./el-button-c95adb85.js";
|
|
4
|
+
import "./el-scrollbar-323542e7.js";
|
|
5
|
+
import { E as ke } from "./el-segmented-b868d074.js";
|
|
6
|
+
import { E as we } from "./el-checkbox-7421ccd3.js";
|
|
7
|
+
import "./el-tag-66cab138.js";
|
|
8
|
+
import { E as Ve, a as Se } from "./el-select-95627997.js";
|
|
9
|
+
import { c as Ee, e as Ie, u as Te, U as le, C as te, I as ae, d as Be, b as ze } from "./el-popper-b4f97157.js";
|
|
10
|
+
import { E as Ne } from "./el-divider-4e059794.js";
|
|
11
|
+
import { computed as I, ref as T, watch as se, onBeforeUnmount as Pe, defineComponent as Q, useSlots as Ae, openBlock as o, createBlock as k, unref as e, withCtx as m, createVNode as p, Transition as Le, 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 pe, vShow as Re, onMounted as me, 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
|
+
import { _ as je } from "./_plugin-vue_export-helper-dad06003.js";
|
|
13
|
+
import { E as D, c as He, l as Je } from "./index-a871c3eb.js";
|
|
14
|
+
import { i as We } from "./validator-764a9db0.js";
|
|
15
|
+
import { b as Xe, c as ee, i as X, d as Ye, e as Ge, f as Qe, g as Ze } from "./use-form-common-props-815d48a6.js";
|
|
16
|
+
import { E as xe } from "./index-844bdd85.js";
|
|
17
|
+
import { u as el } from "./index-2e331d74.js";
|
|
18
|
+
import { u as ll } from "./index-d77a7336.js";
|
|
19
|
+
import "./vnode-5ddb7ed1.js";
|
|
20
|
+
import "./scroll-679bd6bf.js";
|
|
21
|
+
import "./index-960806da.js";
|
|
22
|
+
import "./use-global-config-b5e9d3d5.js";
|
|
23
|
+
import "./index-e5566b94.js";
|
|
23
24
|
import "./index-657047bb.js";
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
import "./index-57672682.js";
|
|
26
|
+
import "./castArray-7741a212.js";
|
|
27
|
+
import "./index-d91dc23f.js";
|
|
28
|
+
import "./debounce-8d53f4dd.js";
|
|
29
|
+
const tl = ne({
|
|
30
|
+
...ye,
|
|
28
31
|
direction: {
|
|
29
32
|
type: String,
|
|
30
33
|
default: "rtl",
|
|
@@ -47,118 +50,118 @@ const ll = ne({
|
|
|
47
50
|
type: String,
|
|
48
51
|
default: "2"
|
|
49
52
|
}
|
|
50
|
-
}), al =
|
|
51
|
-
function
|
|
52
|
-
const { width: C, height: c } =
|
|
53
|
-
let
|
|
54
|
-
const
|
|
55
|
-
var
|
|
56
|
-
const
|
|
57
|
-
return
|
|
53
|
+
}), al = ge;
|
|
54
|
+
function sl(r, L) {
|
|
55
|
+
const { width: C, height: c } = Xe(), w = I(() => ["ltr", "rtl"].includes(r.direction)), B = I(() => ["ltr", "ttb"].includes(r.direction) ? 1 : -1), u = I(() => w.value ? C.value : c.value), t = I(() => fe(g.value + B.value * S.value, 4, u.value)), g = T(0), S = T(0), V = T(!1), O = T(!1);
|
|
56
|
+
let z = [], U = [];
|
|
57
|
+
const v = () => {
|
|
58
|
+
var h;
|
|
59
|
+
const N = (h = L.value) == null ? void 0 : h.closest('[aria-modal="true"]');
|
|
60
|
+
return N ? w.value ? N.offsetWidth : N.offsetHeight : 100;
|
|
58
61
|
};
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
se(() => [r.size, r.resizable], () => {
|
|
63
|
+
O.value = !1, g.value = 0, S.value = 0, d();
|
|
61
64
|
});
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
const { pageX:
|
|
66
|
-
|
|
65
|
+
const s = (h) => {
|
|
66
|
+
r.resizable && (O.value || (g.value = v(), O.value = !0), z = [h.pageX, h.pageY], V.value = !0, U.push(ee(window, "mouseup", d), ee(window, "mousemove", A)));
|
|
67
|
+
}, A = (h) => {
|
|
68
|
+
const { pageX: N, pageY: l } = h, f = N - z[0], R = l - z[1];
|
|
69
|
+
S.value = w.value ? f : R;
|
|
67
70
|
}, d = () => {
|
|
68
|
-
|
|
69
|
-
}, E =
|
|
70
|
-
return
|
|
71
|
+
z = [], g.value = t.value, S.value = 0, V.value = !1, U.forEach((h) => h == null ? void 0 : h()), U = [];
|
|
72
|
+
}, E = ee(L, "mousedown", s);
|
|
73
|
+
return Pe(() => {
|
|
71
74
|
E(), d();
|
|
72
75
|
}), {
|
|
73
|
-
size:
|
|
74
|
-
isResizing:
|
|
75
|
-
isHorizontal:
|
|
76
|
+
size: I(() => O.value ? `${t.value}px` : ie(r.size)),
|
|
77
|
+
isResizing: V,
|
|
78
|
+
isHorizontal: w
|
|
76
79
|
};
|
|
77
80
|
}
|
|
78
|
-
const
|
|
81
|
+
const ol = Q({
|
|
79
82
|
name: "ElDrawer",
|
|
80
83
|
inheritAttrs: !1
|
|
81
|
-
}),
|
|
82
|
-
...
|
|
83
|
-
props:
|
|
84
|
+
}), nl = /* @__PURE__ */ Q({
|
|
85
|
+
...ol,
|
|
86
|
+
props: tl,
|
|
84
87
|
emits: al,
|
|
85
|
-
setup(
|
|
86
|
-
const C =
|
|
87
|
-
|
|
88
|
+
setup(r, { expose: L }) {
|
|
89
|
+
const C = r, c = Ae();
|
|
90
|
+
el({
|
|
88
91
|
scope: "el-drawer",
|
|
89
92
|
from: "the title slot",
|
|
90
93
|
replacement: "the header slot",
|
|
91
94
|
version: "3.0.0",
|
|
92
95
|
ref: "https://element-plus.org/en-US/component/drawer.html#slots"
|
|
93
|
-
},
|
|
94
|
-
const
|
|
95
|
-
afterEnter:
|
|
96
|
-
afterLeave:
|
|
97
|
-
beforeLeave:
|
|
98
|
-
visible:
|
|
99
|
-
rendered:
|
|
100
|
-
titleId:
|
|
101
|
-
bodyId:
|
|
102
|
-
zIndex:
|
|
96
|
+
}, I(() => !!c.title));
|
|
97
|
+
const w = T(), B = T(), u = T(), t = re("drawer"), { t: g } = ll(), {
|
|
98
|
+
afterEnter: S,
|
|
99
|
+
afterLeave: V,
|
|
100
|
+
beforeLeave: O,
|
|
101
|
+
visible: z,
|
|
102
|
+
rendered: U,
|
|
103
|
+
titleId: v,
|
|
104
|
+
bodyId: s,
|
|
105
|
+
zIndex: A,
|
|
103
106
|
onModalClick: d,
|
|
104
107
|
onOpenAutoFocus: E,
|
|
105
|
-
onCloseAutoFocus:
|
|
106
|
-
onFocusoutPrevented:
|
|
108
|
+
onCloseAutoFocus: h,
|
|
109
|
+
onFocusoutPrevented: N,
|
|
107
110
|
onCloseRequested: l,
|
|
108
|
-
handleClose:
|
|
109
|
-
} = he(C,
|
|
110
|
-
return
|
|
111
|
-
handleClose:
|
|
112
|
-
afterEnter:
|
|
113
|
-
afterLeave:
|
|
114
|
-
}), (
|
|
115
|
-
to:
|
|
116
|
-
disabled:
|
|
111
|
+
handleClose: f
|
|
112
|
+
} = he(C, w), { isHorizontal: R, size: F, isResizing: a } = sl(C, u);
|
|
113
|
+
return L({
|
|
114
|
+
handleClose: f,
|
|
115
|
+
afterEnter: S,
|
|
116
|
+
afterLeave: V
|
|
117
|
+
}), (i, K) => (o(), k(e(Ee), {
|
|
118
|
+
to: i.appendTo,
|
|
119
|
+
disabled: i.appendTo !== "body" ? !1 : !i.appendToBody
|
|
117
120
|
}, {
|
|
118
121
|
default: m(() => [
|
|
119
|
-
p(
|
|
120
|
-
name: e(
|
|
121
|
-
onAfterEnter: e(
|
|
122
|
-
onAfterLeave: e(
|
|
123
|
-
onBeforeLeave: e(
|
|
122
|
+
p(Le, {
|
|
123
|
+
name: e(t).b("fade"),
|
|
124
|
+
onAfterEnter: e(S),
|
|
125
|
+
onAfterLeave: e(V),
|
|
126
|
+
onBeforeLeave: e(O),
|
|
124
127
|
persisted: ""
|
|
125
128
|
}, {
|
|
126
129
|
default: m(() => {
|
|
127
|
-
var
|
|
130
|
+
var W;
|
|
128
131
|
return [
|
|
129
|
-
|
|
130
|
-
mask:
|
|
131
|
-
"overlay-class": [e(
|
|
132
|
-
"z-index": e(
|
|
132
|
+
Oe(p(e(_e), {
|
|
133
|
+
mask: i.modal,
|
|
134
|
+
"overlay-class": [e(t).is("drawer"), (W = i.modalClass) != null ? W : ""],
|
|
135
|
+
"z-index": e(A),
|
|
133
136
|
onClick: e(d)
|
|
134
137
|
}, {
|
|
135
138
|
default: m(() => [
|
|
136
139
|
p(e(Ie), {
|
|
137
140
|
loop: "",
|
|
138
|
-
trapped: e(
|
|
139
|
-
"focus-trap-el":
|
|
141
|
+
trapped: e(z),
|
|
142
|
+
"focus-trap-el": w.value,
|
|
140
143
|
"focus-start-el": B.value,
|
|
141
144
|
onFocusAfterTrapped: e(E),
|
|
142
|
-
onFocusAfterReleased: e(
|
|
143
|
-
onFocusoutPrevented: e(
|
|
145
|
+
onFocusAfterReleased: e(h),
|
|
146
|
+
onFocusoutPrevented: e(N),
|
|
144
147
|
onReleaseRequested: e(l)
|
|
145
148
|
}, {
|
|
146
149
|
default: m(() => [
|
|
147
|
-
n("div",
|
|
150
|
+
n("div", Ue({
|
|
148
151
|
ref_key: "drawerRef",
|
|
149
|
-
ref:
|
|
152
|
+
ref: w,
|
|
150
153
|
"aria-modal": "true",
|
|
151
|
-
"aria-label":
|
|
152
|
-
"aria-labelledby":
|
|
153
|
-
"aria-describedby": e(
|
|
154
|
-
},
|
|
154
|
+
"aria-label": i.title || void 0,
|
|
155
|
+
"aria-labelledby": i.title ? void 0 : e(v),
|
|
156
|
+
"aria-describedby": e(s)
|
|
157
|
+
}, i.$attrs, {
|
|
155
158
|
class: [
|
|
156
|
-
e(
|
|
157
|
-
|
|
158
|
-
e(
|
|
159
|
-
e(
|
|
159
|
+
e(t).b(),
|
|
160
|
+
i.direction,
|
|
161
|
+
e(z) && "open",
|
|
162
|
+
e(t).is("dragging", e(a))
|
|
160
163
|
],
|
|
161
|
-
style: { [e(
|
|
164
|
+
style: { [e(R) ? "width" : "height"]: e(F) },
|
|
162
165
|
role: "dialog",
|
|
163
166
|
onClick: ce(() => {
|
|
164
167
|
}, ["stop"])
|
|
@@ -166,64 +169,64 @@ const sl = Y({
|
|
|
166
169
|
n("span", {
|
|
167
170
|
ref_key: "focusStartRef",
|
|
168
171
|
ref: B,
|
|
169
|
-
class: b(e(
|
|
172
|
+
class: b(e(t).e("sr-focus")),
|
|
170
173
|
tabindex: "-1"
|
|
171
174
|
}, null, 2),
|
|
172
|
-
|
|
175
|
+
i.withHeader ? (o(), y("header", {
|
|
173
176
|
key: 0,
|
|
174
|
-
class: b([e(
|
|
177
|
+
class: b([e(t).e("header"), i.headerClass])
|
|
175
178
|
}, [
|
|
176
|
-
|
|
179
|
+
i.$slots.title ? $(i.$slots, "title", { key: 1 }, () => [
|
|
177
180
|
_(" DEPRECATED SLOT ")
|
|
178
|
-
]) : $(
|
|
181
|
+
]) : $(i.$slots, "header", {
|
|
179
182
|
key: 0,
|
|
180
|
-
close: e(
|
|
181
|
-
titleId: e(
|
|
182
|
-
titleClass: e(
|
|
183
|
+
close: e(f),
|
|
184
|
+
titleId: e(v),
|
|
185
|
+
titleClass: e(t).e("title")
|
|
183
186
|
}, () => [
|
|
184
187
|
n("span", {
|
|
185
|
-
id: e(
|
|
188
|
+
id: e(v),
|
|
186
189
|
role: "heading",
|
|
187
|
-
"aria-level":
|
|
188
|
-
class: b(e(
|
|
189
|
-
}, M(
|
|
190
|
+
"aria-level": i.headerAriaLevel,
|
|
191
|
+
class: b(e(t).e("title"))
|
|
192
|
+
}, M(i.title), 11, ["id", "aria-level"])
|
|
190
193
|
]),
|
|
191
|
-
|
|
194
|
+
i.showClose ? (o(), y("button", {
|
|
192
195
|
key: 2,
|
|
193
|
-
"aria-label": e(
|
|
194
|
-
class: b(e(
|
|
196
|
+
"aria-label": e(g)("el.drawer.close"),
|
|
197
|
+
class: b(e(t).e("close-btn")),
|
|
195
198
|
type: "button",
|
|
196
|
-
onClick: e(
|
|
199
|
+
onClick: e(f)
|
|
197
200
|
}, [
|
|
198
|
-
p(e(
|
|
199
|
-
class: b(e(
|
|
201
|
+
p(e(D), {
|
|
202
|
+
class: b(e(t).e("close"))
|
|
200
203
|
}, {
|
|
201
204
|
default: m(() => [
|
|
202
|
-
p(e(
|
|
205
|
+
p(e(He))
|
|
203
206
|
]),
|
|
204
207
|
_: 1
|
|
205
208
|
}, 8, ["class"])
|
|
206
209
|
], 10, ["aria-label", "onClick"])) : _("v-if", !0)
|
|
207
210
|
], 2)) : _("v-if", !0),
|
|
208
|
-
e(
|
|
211
|
+
e(U) ? (o(), y("div", {
|
|
209
212
|
key: 1,
|
|
210
|
-
id: e(
|
|
211
|
-
class: b([e(
|
|
213
|
+
id: e(s),
|
|
214
|
+
class: b([e(t).e("body"), i.bodyClass])
|
|
212
215
|
}, [
|
|
213
|
-
$(
|
|
216
|
+
$(i.$slots, "default")
|
|
214
217
|
], 10, ["id"])) : _("v-if", !0),
|
|
215
|
-
|
|
218
|
+
i.$slots.footer ? (o(), y("div", {
|
|
216
219
|
key: 2,
|
|
217
|
-
class: b([e(
|
|
220
|
+
class: b([e(t).e("footer"), i.footerClass])
|
|
218
221
|
}, [
|
|
219
|
-
$(
|
|
222
|
+
$(i.$slots, "footer")
|
|
220
223
|
], 2)) : _("v-if", !0),
|
|
221
|
-
|
|
224
|
+
i.resizable ? (o(), y("div", {
|
|
222
225
|
key: 3,
|
|
223
226
|
ref_key: "draggerRef",
|
|
224
227
|
ref: u,
|
|
225
|
-
style: pe({ zIndex: e(
|
|
226
|
-
class: b(e(
|
|
228
|
+
style: pe({ zIndex: e(A) }),
|
|
229
|
+
class: b(e(t).e("dragger"))
|
|
227
230
|
}, null, 6)) : _("v-if", !0)
|
|
228
231
|
], 16, ["aria-label", "aria-labelledby", "aria-describedby", "onClick"])
|
|
229
232
|
]),
|
|
@@ -232,7 +235,7 @@ const sl = Y({
|
|
|
232
235
|
]),
|
|
233
236
|
_: 3
|
|
234
237
|
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
|
235
|
-
[
|
|
238
|
+
[Re, e(z)]
|
|
236
239
|
])
|
|
237
240
|
];
|
|
238
241
|
}),
|
|
@@ -243,8 +246,8 @@ const sl = Y({
|
|
|
243
246
|
}, 8, ["to", "disabled"]));
|
|
244
247
|
}
|
|
245
248
|
});
|
|
246
|
-
var
|
|
247
|
-
const
|
|
249
|
+
var il = /* @__PURE__ */ ue(nl, [["__file", "drawer.vue"]]);
|
|
250
|
+
const rl = de(il), ul = ne({
|
|
248
251
|
modelValue: {
|
|
249
252
|
type: [Boolean, String, Number],
|
|
250
253
|
default: !1
|
|
@@ -253,7 +256,7 @@ const il = de(nl), rl = ne({
|
|
|
253
256
|
loading: Boolean,
|
|
254
257
|
size: {
|
|
255
258
|
type: String,
|
|
256
|
-
validator:
|
|
259
|
+
validator: We
|
|
257
260
|
},
|
|
258
261
|
width: {
|
|
259
262
|
type: [String, Number],
|
|
@@ -261,16 +264,16 @@ const il = de(nl), rl = ne({
|
|
|
261
264
|
},
|
|
262
265
|
inlinePrompt: Boolean,
|
|
263
266
|
inactiveActionIcon: {
|
|
264
|
-
type:
|
|
267
|
+
type: X
|
|
265
268
|
},
|
|
266
269
|
activeActionIcon: {
|
|
267
|
-
type:
|
|
270
|
+
type: X
|
|
268
271
|
},
|
|
269
272
|
activeIcon: {
|
|
270
|
-
type:
|
|
273
|
+
type: X
|
|
271
274
|
},
|
|
272
275
|
inactiveIcon: {
|
|
273
|
-
type:
|
|
276
|
+
type: X
|
|
274
277
|
},
|
|
275
278
|
activeText: {
|
|
276
279
|
type: String,
|
|
@@ -303,130 +306,130 @@ const il = de(nl), rl = ne({
|
|
|
303
306
|
tabindex: {
|
|
304
307
|
type: [String, Number]
|
|
305
308
|
},
|
|
306
|
-
...
|
|
307
|
-
}),
|
|
308
|
-
[
|
|
309
|
-
[
|
|
310
|
-
[
|
|
311
|
-
}, ve = "ElSwitch",
|
|
309
|
+
...Te(["ariaLabel"])
|
|
310
|
+
}), dl = {
|
|
311
|
+
[le]: (r) => G(r) || Z(r) || x(r),
|
|
312
|
+
[te]: (r) => G(r) || Z(r) || x(r),
|
|
313
|
+
[ae]: (r) => G(r) || Z(r) || x(r)
|
|
314
|
+
}, ve = "ElSwitch", cl = Q({
|
|
312
315
|
name: ve
|
|
313
|
-
}),
|
|
314
|
-
...
|
|
315
|
-
props:
|
|
316
|
-
emits:
|
|
317
|
-
setup(
|
|
318
|
-
const c =
|
|
319
|
-
formItemContext:
|
|
320
|
-
}),
|
|
316
|
+
}), pl = /* @__PURE__ */ Q({
|
|
317
|
+
...cl,
|
|
318
|
+
props: ul,
|
|
319
|
+
emits: dl,
|
|
320
|
+
setup(r, { expose: L, emit: C }) {
|
|
321
|
+
const c = r, { formItem: w } = Ye(), B = Ge(), u = re("switch"), { inputId: t } = Qe(c, {
|
|
322
|
+
formItemContext: w
|
|
323
|
+
}), g = Ze(I(() => c.loading)), S = T(c.modelValue !== !1), V = T(), O = T(), z = I(() => [
|
|
321
324
|
u.b(),
|
|
322
325
|
u.m(B.value),
|
|
323
|
-
u.is("disabled",
|
|
326
|
+
u.is("disabled", g.value),
|
|
324
327
|
u.is("checked", d.value)
|
|
325
|
-
]),
|
|
328
|
+
]), U = I(() => [
|
|
326
329
|
u.e("label"),
|
|
327
330
|
u.em("label", "left"),
|
|
328
331
|
u.is("active", !d.value)
|
|
329
|
-
]),
|
|
332
|
+
]), v = I(() => [
|
|
330
333
|
u.e("label"),
|
|
331
334
|
u.em("label", "right"),
|
|
332
335
|
u.is("active", d.value)
|
|
333
|
-
]),
|
|
336
|
+
]), s = I(() => ({
|
|
334
337
|
width: ie(c.width)
|
|
335
338
|
}));
|
|
336
|
-
|
|
337
|
-
|
|
339
|
+
se(() => c.modelValue, () => {
|
|
340
|
+
S.value = !0;
|
|
338
341
|
});
|
|
339
|
-
const
|
|
340
|
-
[c.activeValue, c.inactiveValue].includes(
|
|
341
|
-
var
|
|
342
|
-
|
|
342
|
+
const A = I(() => S.value ? c.modelValue : !1), d = I(() => A.value === c.activeValue);
|
|
343
|
+
[c.activeValue, c.inactiveValue].includes(A.value) || (C(le, c.inactiveValue), C(te, c.inactiveValue), C(ae, c.inactiveValue)), se(d, (l) => {
|
|
344
|
+
var f;
|
|
345
|
+
V.value.checked = l, c.validateEvent && ((f = w == null ? void 0 : w.validate) == null || f.call(w, "change").catch((R) => Be()));
|
|
343
346
|
});
|
|
344
347
|
const E = () => {
|
|
345
348
|
const l = d.value ? c.inactiveValue : c.activeValue;
|
|
346
|
-
C(
|
|
347
|
-
|
|
349
|
+
C(le, l), C(te, l), C(ae, l), Fe(() => {
|
|
350
|
+
V.value.checked = d.value;
|
|
348
351
|
});
|
|
349
|
-
},
|
|
350
|
-
if (
|
|
352
|
+
}, h = () => {
|
|
353
|
+
if (g.value)
|
|
351
354
|
return;
|
|
352
355
|
const { beforeChange: l } = c;
|
|
353
356
|
if (!l) {
|
|
354
357
|
E();
|
|
355
358
|
return;
|
|
356
359
|
}
|
|
357
|
-
const
|
|
360
|
+
const f = l();
|
|
358
361
|
[
|
|
359
|
-
oe(
|
|
360
|
-
|
|
361
|
-
].includes(!0) || ze(ve, "beforeChange must return type `Promise<boolean>` or `boolean`"), oe(
|
|
362
|
-
|
|
363
|
-
}).catch((
|
|
364
|
-
}) :
|
|
365
|
-
},
|
|
366
|
-
var l,
|
|
367
|
-
(
|
|
362
|
+
oe(f),
|
|
363
|
+
G(f)
|
|
364
|
+
].includes(!0) || ze(ve, "beforeChange must return type `Promise<boolean>` or `boolean`"), oe(f) ? f.then((F) => {
|
|
365
|
+
F && E();
|
|
366
|
+
}).catch((F) => {
|
|
367
|
+
}) : f && E();
|
|
368
|
+
}, N = () => {
|
|
369
|
+
var l, f;
|
|
370
|
+
(f = (l = V.value) == null ? void 0 : l.focus) == null || f.call(l);
|
|
368
371
|
};
|
|
369
372
|
return me(() => {
|
|
370
|
-
|
|
371
|
-
}),
|
|
372
|
-
focus:
|
|
373
|
+
V.value.checked = d.value;
|
|
374
|
+
}), L({
|
|
375
|
+
focus: N,
|
|
373
376
|
checked: d
|
|
374
|
-
}), (l,
|
|
375
|
-
class: b(e(
|
|
376
|
-
onClick: ce(
|
|
377
|
+
}), (l, f) => (o(), y("div", {
|
|
378
|
+
class: b(e(z)),
|
|
379
|
+
onClick: ce(h, ["prevent"])
|
|
377
380
|
}, [
|
|
378
381
|
n("input", {
|
|
379
|
-
id: e(
|
|
382
|
+
id: e(t),
|
|
380
383
|
ref_key: "input",
|
|
381
|
-
ref:
|
|
384
|
+
ref: V,
|
|
382
385
|
class: b(e(u).e("input")),
|
|
383
386
|
type: "checkbox",
|
|
384
387
|
role: "switch",
|
|
385
388
|
"aria-checked": e(d),
|
|
386
|
-
"aria-disabled": e(
|
|
389
|
+
"aria-disabled": e(g),
|
|
387
390
|
"aria-label": l.ariaLabel,
|
|
388
391
|
name: l.name,
|
|
389
392
|
"true-value": l.activeValue,
|
|
390
393
|
"false-value": l.inactiveValue,
|
|
391
|
-
disabled: e(
|
|
394
|
+
disabled: e(g),
|
|
392
395
|
tabindex: l.tabindex,
|
|
393
396
|
onChange: E,
|
|
394
|
-
onKeydown:
|
|
397
|
+
onKeydown: De(h, ["enter"])
|
|
395
398
|
}, null, 42, ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"]),
|
|
396
|
-
!l.inlinePrompt && (l.inactiveIcon || l.inactiveText) ? (
|
|
399
|
+
!l.inlinePrompt && (l.inactiveIcon || l.inactiveText) ? (o(), y("span", {
|
|
397
400
|
key: 0,
|
|
398
|
-
class: b(e(
|
|
401
|
+
class: b(e(U))
|
|
399
402
|
}, [
|
|
400
|
-
l.inactiveIcon ? (
|
|
403
|
+
l.inactiveIcon ? (o(), k(e(D), { key: 0 }, {
|
|
401
404
|
default: m(() => [
|
|
402
|
-
(
|
|
405
|
+
(o(), k(q(l.inactiveIcon)))
|
|
403
406
|
]),
|
|
404
407
|
_: 1
|
|
405
408
|
})) : _("v-if", !0),
|
|
406
|
-
!l.inactiveIcon && l.inactiveText ? (
|
|
409
|
+
!l.inactiveIcon && l.inactiveText ? (o(), y("span", {
|
|
407
410
|
key: 1,
|
|
408
411
|
"aria-hidden": e(d)
|
|
409
412
|
}, M(l.inactiveText), 9, ["aria-hidden"])) : _("v-if", !0)
|
|
410
413
|
], 2)) : _("v-if", !0),
|
|
411
414
|
n("span", {
|
|
412
415
|
ref_key: "core",
|
|
413
|
-
ref:
|
|
416
|
+
ref: O,
|
|
414
417
|
class: b(e(u).e("core")),
|
|
415
|
-
style: pe(e(
|
|
418
|
+
style: pe(e(s))
|
|
416
419
|
}, [
|
|
417
|
-
l.inlinePrompt ? (
|
|
420
|
+
l.inlinePrompt ? (o(), y("div", {
|
|
418
421
|
key: 0,
|
|
419
422
|
class: b(e(u).e("inner"))
|
|
420
423
|
}, [
|
|
421
|
-
l.activeIcon || l.inactiveIcon ? (
|
|
424
|
+
l.activeIcon || l.inactiveIcon ? (o(), k(e(D), {
|
|
422
425
|
key: 0,
|
|
423
426
|
class: b(e(u).is("icon"))
|
|
424
427
|
}, {
|
|
425
428
|
default: m(() => [
|
|
426
|
-
(
|
|
429
|
+
(o(), k(q(e(d) ? l.activeIcon : l.inactiveIcon)))
|
|
427
430
|
]),
|
|
428
431
|
_: 1
|
|
429
|
-
}, 8, ["class"])) : l.activeText || l.inactiveText ? (
|
|
432
|
+
}, 8, ["class"])) : l.activeText || l.inactiveText ? (o(), y("span", {
|
|
430
433
|
key: 1,
|
|
431
434
|
class: b(e(u).is("text")),
|
|
432
435
|
"aria-hidden": !e(d)
|
|
@@ -435,42 +438,42 @@ const il = de(nl), rl = ne({
|
|
|
435
438
|
n("div", {
|
|
436
439
|
class: b(e(u).e("action"))
|
|
437
440
|
}, [
|
|
438
|
-
l.loading ? (
|
|
441
|
+
l.loading ? (o(), k(e(D), {
|
|
439
442
|
key: 0,
|
|
440
443
|
class: b(e(u).is("loading"))
|
|
441
444
|
}, {
|
|
442
445
|
default: m(() => [
|
|
443
|
-
p(e(
|
|
446
|
+
p(e(Je))
|
|
444
447
|
]),
|
|
445
448
|
_: 1
|
|
446
449
|
}, 8, ["class"])) : e(d) ? $(l.$slots, "active-action", { key: 1 }, () => [
|
|
447
|
-
l.activeActionIcon ? (
|
|
450
|
+
l.activeActionIcon ? (o(), k(e(D), { key: 0 }, {
|
|
448
451
|
default: m(() => [
|
|
449
|
-
(
|
|
452
|
+
(o(), k(q(l.activeActionIcon)))
|
|
450
453
|
]),
|
|
451
454
|
_: 1
|
|
452
455
|
})) : _("v-if", !0)
|
|
453
456
|
]) : e(d) ? _("v-if", !0) : $(l.$slots, "inactive-action", { key: 2 }, () => [
|
|
454
|
-
l.inactiveActionIcon ? (
|
|
457
|
+
l.inactiveActionIcon ? (o(), k(e(D), { key: 0 }, {
|
|
455
458
|
default: m(() => [
|
|
456
|
-
(
|
|
459
|
+
(o(), k(q(l.inactiveActionIcon)))
|
|
457
460
|
]),
|
|
458
461
|
_: 1
|
|
459
462
|
})) : _("v-if", !0)
|
|
460
463
|
])
|
|
461
464
|
], 2)
|
|
462
465
|
], 6),
|
|
463
|
-
!l.inlinePrompt && (l.activeIcon || l.activeText) ? (
|
|
466
|
+
!l.inlinePrompt && (l.activeIcon || l.activeText) ? (o(), y("span", {
|
|
464
467
|
key: 1,
|
|
465
|
-
class: b(e(
|
|
468
|
+
class: b(e(v))
|
|
466
469
|
}, [
|
|
467
|
-
l.activeIcon ? (
|
|
470
|
+
l.activeIcon ? (o(), k(e(D), { key: 0 }, {
|
|
468
471
|
default: m(() => [
|
|
469
|
-
(
|
|
472
|
+
(o(), k(q(l.activeIcon)))
|
|
470
473
|
]),
|
|
471
474
|
_: 1
|
|
472
475
|
})) : _("v-if", !0),
|
|
473
|
-
!l.activeIcon && l.activeText ? (
|
|
476
|
+
!l.activeIcon && l.activeText ? (o(), y("span", {
|
|
474
477
|
key: 1,
|
|
475
478
|
"aria-hidden": !e(d)
|
|
476
479
|
}, M(l.activeText), 9, ["aria-hidden"])) : _("v-if", !0)
|
|
@@ -478,12 +481,12 @@ const il = de(nl), rl = ne({
|
|
|
478
481
|
], 10, ["onClick"]));
|
|
479
482
|
}
|
|
480
483
|
});
|
|
481
|
-
var
|
|
482
|
-
const
|
|
483
|
-
const
|
|
484
|
+
var ml = /* @__PURE__ */ ue(pl, [["__file", "switch.vue"]]);
|
|
485
|
+
const vl = de(ml);
|
|
486
|
+
const fl = [
|
|
484
487
|
{ label: "买卖", value: 0 },
|
|
485
488
|
{ label: "开平", value: 1 }
|
|
486
|
-
],
|
|
489
|
+
], Y = () => ({
|
|
487
490
|
/**
|
|
488
491
|
* @description: 偏好设置
|
|
489
492
|
*/
|
|
@@ -491,6 +494,8 @@ const vl = [
|
|
|
491
494
|
mainIndicator: "MA",
|
|
492
495
|
// 成交点默认展示
|
|
493
496
|
sellBuy: 1,
|
|
497
|
+
// 成交点默认按照实际价格标记
|
|
498
|
+
sellBuyByPrice: 1,
|
|
494
499
|
// 单周期默认展示
|
|
495
500
|
singelCycle: "6",
|
|
496
501
|
// 多周期布局 2 4 6
|
|
@@ -518,11 +523,11 @@ const vl = [
|
|
|
518
523
|
// 是否启用副图
|
|
519
524
|
enable_sliderChart: !0
|
|
520
525
|
// 是否启用拖拽轴
|
|
521
|
-
}),
|
|
526
|
+
}), bl = (r, L) => {
|
|
522
527
|
var C;
|
|
523
|
-
return ((C =
|
|
528
|
+
return ((C = L.find((c) => c.value === r)) == null ? void 0 : C.label) ?? "-";
|
|
524
529
|
};
|
|
525
|
-
const
|
|
530
|
+
const P = (r) => (Ke("data-v-009e01e7"), 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)), kl = { class: "setting-item" }, wl = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "开平点按价格标: ", -1)), Vl = { class: "setting-item" }, Sl = /* @__PURE__ */ P(() => /* @__PURE__ */ n("span", { class: "label" }, "单周期: ", -1)), El = { class: "setting-item" }, Il = /* @__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)), Al = { class: "setting-item" }, Ll = /* @__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 = {
|
|
526
531
|
__name: "index",
|
|
527
532
|
props: {
|
|
528
533
|
indicatorStore: { type: Object, default: () => ({}) },
|
|
@@ -533,114 +538,123 @@ const L = (i) => (Me("data-v-da9cf1c8"), i = i(), Ke(), i), bl = { class: "kline
|
|
|
533
538
|
cycleOptions: { type: Array, default: () => [] }
|
|
534
539
|
},
|
|
535
540
|
emits: "callBack",
|
|
536
|
-
setup(
|
|
537
|
-
const { request: c } =
|
|
538
|
-
Object.assign(
|
|
539
|
-
},
|
|
540
|
-
const
|
|
541
|
-
B.origin === "server" ? await c.post("/common/qt/updateUserConfig", { appId: 1, json:
|
|
542
|
-
},
|
|
541
|
+
setup(r, { expose: L, emit: C }) {
|
|
542
|
+
const { request: c } = $e("stConfig"), w = C, B = r, u = T(!1), t = Me({}), g = T([]), S = T([]), V = () => {
|
|
543
|
+
Object.assign(t, Y());
|
|
544
|
+
}, O = async () => {
|
|
545
|
+
const v = JSON.stringify(t);
|
|
546
|
+
B.origin === "server" ? await c.post("/common/qt/updateUserConfig", { appId: 1, json: v }) : localStorage.setItem("userKlineConfig", v), w("callBack", v), u.value = !1;
|
|
547
|
+
}, z = async () => {
|
|
543
548
|
if (B.origin === "server") {
|
|
544
|
-
const { body:
|
|
545
|
-
Object.assign(
|
|
549
|
+
const { body: v } = await c.post("/common/qt/getUserConfig", { appId: 1 });
|
|
550
|
+
Object.assign(t, Y(), v ? JSON.parse(v) : {});
|
|
546
551
|
} else {
|
|
547
|
-
const
|
|
548
|
-
Object.assign(
|
|
552
|
+
const v = localStorage.getItem("userKlineConfig");
|
|
553
|
+
Object.assign(t, Y(), v ? JSON.parse(v) : {});
|
|
549
554
|
}
|
|
550
|
-
},
|
|
555
|
+
}, U = async () => {
|
|
551
556
|
if (B.origin === "server") {
|
|
552
|
-
const { body:
|
|
553
|
-
|
|
554
|
-
label:
|
|
555
|
-
value:
|
|
557
|
+
const { body: v } = await c.post("/common/qt/getDict", { dictIds: [1002] });
|
|
558
|
+
g.value = v[1002].map((s) => ({
|
|
559
|
+
label: s.dictName,
|
|
560
|
+
value: s.dictCode
|
|
556
561
|
}));
|
|
557
562
|
} else
|
|
558
|
-
|
|
563
|
+
g.value = B.cycleOptions;
|
|
559
564
|
};
|
|
560
565
|
return me(() => {
|
|
561
|
-
|
|
562
|
-
}),
|
|
566
|
+
U(), S.value = B.indicatorStore.mainIndicatorList ?? [];
|
|
567
|
+
}), L({
|
|
563
568
|
// 打开
|
|
564
569
|
open: async () => {
|
|
565
|
-
await
|
|
570
|
+
await z(), u.value = !0;
|
|
566
571
|
},
|
|
567
572
|
// 获取默认配置
|
|
568
|
-
getDefaultUserKlineConfig:
|
|
569
|
-
}), (
|
|
570
|
-
const
|
|
571
|
-
return
|
|
572
|
-
p(
|
|
573
|
+
getDefaultUserKlineConfig: Y
|
|
574
|
+
}), (v, s) => {
|
|
575
|
+
const A = Ne, d = Ve, E = Se, h = we, N = ke, l = vl, f = xe, R = Ce, F = rl;
|
|
576
|
+
return o(), y("div", yl, [
|
|
577
|
+
p(F, {
|
|
573
578
|
modelValue: u.value,
|
|
574
|
-
"onUpdate:modelValue":
|
|
579
|
+
"onUpdate:modelValue": s[12] || (s[12] = (a) => u.value = a),
|
|
575
580
|
title: "K线自定义配置",
|
|
576
581
|
size: 320
|
|
577
582
|
}, {
|
|
578
583
|
default: m(() => [
|
|
579
|
-
p(
|
|
584
|
+
p(f, { class: "setting-main" }, {
|
|
580
585
|
default: m(() => [
|
|
581
|
-
p(
|
|
586
|
+
p(A, { style: { "margin-top": "8px" } }, {
|
|
582
587
|
default: m(() => [
|
|
583
|
-
|
|
588
|
+
j("偏好设置")
|
|
584
589
|
]),
|
|
585
590
|
_: 1
|
|
586
591
|
}),
|
|
587
592
|
n("div", gl, [
|
|
588
|
-
|
|
593
|
+
hl,
|
|
589
594
|
p(E, {
|
|
590
|
-
modelValue:
|
|
591
|
-
"onUpdate:modelValue":
|
|
595
|
+
modelValue: t.mainIndicator,
|
|
596
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => t.mainIndicator = a),
|
|
592
597
|
"popper-class": "element-dark"
|
|
593
598
|
}, {
|
|
594
599
|
default: m(() => [
|
|
595
|
-
(
|
|
596
|
-
key:
|
|
597
|
-
label:
|
|
598
|
-
value:
|
|
600
|
+
(o(!0), y(H, null, J(S.value, (a, i) => (o(), k(d, {
|
|
601
|
+
key: i,
|
|
602
|
+
label: a.label,
|
|
603
|
+
value: a.value
|
|
599
604
|
}, null, 8, ["label", "value"]))), 128))
|
|
600
605
|
]),
|
|
601
606
|
_: 1
|
|
602
607
|
}, 8, ["modelValue"])
|
|
603
608
|
]),
|
|
604
|
-
n("div",
|
|
605
|
-
|
|
609
|
+
n("div", _l, [
|
|
610
|
+
Cl,
|
|
606
611
|
p(E, {
|
|
607
|
-
modelValue:
|
|
608
|
-
"onUpdate:modelValue":
|
|
612
|
+
modelValue: t.sellBuy,
|
|
613
|
+
"onUpdate:modelValue": s[1] || (s[1] = (a) => t.sellBuy = a),
|
|
609
614
|
"popper-class": "element-dark"
|
|
610
615
|
}, {
|
|
611
616
|
default: m(() => [
|
|
612
|
-
(
|
|
613
|
-
key:
|
|
614
|
-
label:
|
|
615
|
-
value:
|
|
617
|
+
(o(!0), y(H, null, J(e(fl), (a, i) => (o(), k(d, {
|
|
618
|
+
key: i,
|
|
619
|
+
label: a.label,
|
|
620
|
+
value: a.value
|
|
616
621
|
}, null, 8, ["label", "value"]))), 128))
|
|
617
622
|
]),
|
|
618
623
|
_: 1
|
|
619
624
|
}, 8, ["modelValue"])
|
|
620
625
|
]),
|
|
621
|
-
n("div",
|
|
626
|
+
n("div", kl, [
|
|
622
627
|
wl,
|
|
628
|
+
p(h, {
|
|
629
|
+
modelValue: t.sellBuyByPrice,
|
|
630
|
+
"onUpdate:modelValue": s[2] || (s[2] = (a) => t.sellBuyByPrice = a),
|
|
631
|
+
"true-value": 1,
|
|
632
|
+
"false-value": 0
|
|
633
|
+
}, null, 8, ["modelValue"])
|
|
634
|
+
]),
|
|
635
|
+
n("div", Vl, [
|
|
636
|
+
Sl,
|
|
623
637
|
p(E, {
|
|
624
|
-
modelValue:
|
|
625
|
-
"onUpdate:modelValue":
|
|
638
|
+
modelValue: t.singelCycle,
|
|
639
|
+
"onUpdate:modelValue": s[3] || (s[3] = (a) => t.singelCycle = a),
|
|
626
640
|
"popper-class": "element-dark"
|
|
627
641
|
}, {
|
|
628
642
|
default: m(() => [
|
|
629
|
-
(
|
|
630
|
-
key:
|
|
631
|
-
label:
|
|
632
|
-
value:
|
|
643
|
+
(o(!0), y(H, null, J(g.value, (a, i) => (o(), k(d, {
|
|
644
|
+
key: i,
|
|
645
|
+
label: a.label,
|
|
646
|
+
value: a.value
|
|
633
647
|
}, null, 8, ["label", "value"]))), 128))
|
|
634
648
|
]),
|
|
635
649
|
_: 1
|
|
636
650
|
}, 8, ["modelValue"])
|
|
637
651
|
]),
|
|
638
|
-
n("div",
|
|
639
|
-
|
|
640
|
-
p(
|
|
652
|
+
n("div", El, [
|
|
653
|
+
Il,
|
|
654
|
+
p(N, {
|
|
641
655
|
size: "small",
|
|
642
|
-
modelValue:
|
|
643
|
-
"onUpdate:modelValue":
|
|
656
|
+
modelValue: t.multiCycleNum,
|
|
657
|
+
"onUpdate:modelValue": s[4] || (s[4] = (a) => t.multiCycleNum = a),
|
|
644
658
|
options: [
|
|
645
659
|
{ label: "二图", value: 2 },
|
|
646
660
|
{ label: "四图", value: 4 },
|
|
@@ -650,35 +664,35 @@ const L = (i) => (Me("data-v-da9cf1c8"), i = i(), Ke(), i), bl = { class: "kline
|
|
|
650
664
|
}, null, 8, ["modelValue"])
|
|
651
665
|
]),
|
|
652
666
|
n("div", {
|
|
653
|
-
class: b(`setting-multi-box grid-${
|
|
667
|
+
class: b(`setting-multi-box grid-${t.multiCycleNum}`)
|
|
654
668
|
}, [
|
|
655
|
-
(
|
|
656
|
-
n("div",
|
|
657
|
-
n("span", null, M(e(
|
|
669
|
+
(o(!0), y(H, null, J(t.multiCycleList.slice(0, t.multiCycleNum), (a, i) => (o(), y("div", Tl, [
|
|
670
|
+
n("div", Bl, [
|
|
671
|
+
n("span", null, M(e(bl)(t.multiCycleList[i], g.value)), 1),
|
|
658
672
|
p(E, {
|
|
659
|
-
modelValue:
|
|
660
|
-
"onUpdate:modelValue": (
|
|
673
|
+
modelValue: t.multiCycleList[i],
|
|
674
|
+
"onUpdate:modelValue": (K) => t.multiCycleList[i] = K,
|
|
661
675
|
"popper-class": "element-dark"
|
|
662
676
|
}, {
|
|
663
677
|
default: m(() => [
|
|
664
|
-
(
|
|
665
|
-
key:
|
|
666
|
-
label:
|
|
667
|
-
value:
|
|
678
|
+
(o(!0), y(H, null, J(g.value, (K, W) => (o(), k(d, {
|
|
679
|
+
key: W,
|
|
680
|
+
label: K.label,
|
|
681
|
+
value: K.value
|
|
668
682
|
}, null, 8, ["label", "value"]))), 128))
|
|
669
683
|
]),
|
|
670
684
|
_: 2
|
|
671
685
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
672
686
|
]),
|
|
673
|
-
n("span",
|
|
687
|
+
n("span", zl, M(i + 1) + "号位K线", 1)
|
|
674
688
|
]))), 256))
|
|
675
689
|
], 2),
|
|
676
|
-
n("div",
|
|
677
|
-
|
|
678
|
-
p(
|
|
690
|
+
n("div", Nl, [
|
|
691
|
+
Pl,
|
|
692
|
+
p(N, {
|
|
679
693
|
size: "small",
|
|
680
|
-
modelValue:
|
|
681
|
-
"onUpdate:modelValue":
|
|
694
|
+
modelValue: t.pageType,
|
|
695
|
+
"onUpdate:modelValue": s[5] || (s[5] = (a) => t.pageType = a),
|
|
682
696
|
options: [
|
|
683
697
|
{ label: "单周期", value: 1 },
|
|
684
698
|
{ label: "多周期", value: 2 }
|
|
@@ -686,76 +700,76 @@ const L = (i) => (Me("data-v-da9cf1c8"), i = i(), Ke(), i), bl = { class: "kline
|
|
|
686
700
|
style: { height: "26px" }
|
|
687
701
|
}, null, 8, ["modelValue"])
|
|
688
702
|
]),
|
|
689
|
-
p(
|
|
703
|
+
p(A, { style: { "margin-top": "44px" } }, {
|
|
690
704
|
default: m(() => [
|
|
691
|
-
|
|
705
|
+
j("功能配置")
|
|
692
706
|
]),
|
|
693
707
|
_: 1
|
|
694
708
|
}),
|
|
695
|
-
n("div",
|
|
696
|
-
|
|
697
|
-
p(
|
|
698
|
-
modelValue:
|
|
699
|
-
"onUpdate:modelValue":
|
|
709
|
+
n("div", Al, [
|
|
710
|
+
Ll,
|
|
711
|
+
p(l, {
|
|
712
|
+
modelValue: t.enable_tradeLogBrush,
|
|
713
|
+
"onUpdate:modelValue": s[6] || (s[6] = (a) => t.enable_tradeLogBrush = a)
|
|
700
714
|
}, null, 8, ["modelValue"])
|
|
701
715
|
]),
|
|
702
|
-
n("div",
|
|
703
|
-
|
|
704
|
-
p(
|
|
705
|
-
modelValue:
|
|
706
|
-
"onUpdate:modelValue":
|
|
716
|
+
n("div", Ol, [
|
|
717
|
+
Ul,
|
|
718
|
+
p(l, {
|
|
719
|
+
modelValue: t.enable_showScreenTimeRange,
|
|
720
|
+
"onUpdate:modelValue": s[7] || (s[7] = (a) => t.enable_showScreenTimeRange = a)
|
|
707
721
|
}, null, 8, ["modelValue"])
|
|
708
722
|
]),
|
|
709
|
-
n("div",
|
|
710
|
-
|
|
711
|
-
p(
|
|
712
|
-
modelValue:
|
|
713
|
-
"onUpdate:modelValue":
|
|
723
|
+
n("div", Rl, [
|
|
724
|
+
Dl,
|
|
725
|
+
p(l, {
|
|
726
|
+
modelValue: t.enable_showScreenMaxPrice,
|
|
727
|
+
"onUpdate:modelValue": s[8] || (s[8] = (a) => t.enable_showScreenMaxPrice = a)
|
|
714
728
|
}, null, 8, ["modelValue"])
|
|
715
729
|
]),
|
|
716
|
-
n("div",
|
|
717
|
-
|
|
718
|
-
p(
|
|
719
|
-
modelValue:
|
|
720
|
-
"onUpdate:modelValue":
|
|
730
|
+
n("div", Fl, [
|
|
731
|
+
$l,
|
|
732
|
+
p(l, {
|
|
733
|
+
modelValue: t.enable_dbClickOpenSingel,
|
|
734
|
+
"onUpdate:modelValue": s[9] || (s[9] = (a) => t.enable_dbClickOpenSingel = a)
|
|
721
735
|
}, null, 8, ["modelValue"])
|
|
722
736
|
]),
|
|
723
|
-
p(
|
|
737
|
+
p(A, { style: { "margin-top": "44px" } }, {
|
|
724
738
|
default: m(() => [
|
|
725
|
-
|
|
739
|
+
j("组件开关")
|
|
726
740
|
]),
|
|
727
741
|
_: 1
|
|
728
742
|
}),
|
|
729
|
-
n("div",
|
|
730
|
-
|
|
731
|
-
p(
|
|
732
|
-
modelValue:
|
|
733
|
-
"onUpdate:modelValue":
|
|
743
|
+
n("div", Ml, [
|
|
744
|
+
Kl,
|
|
745
|
+
p(l, {
|
|
746
|
+
modelValue: t.enable_subChart,
|
|
747
|
+
"onUpdate:modelValue": s[10] || (s[10] = (a) => t.enable_subChart = a)
|
|
734
748
|
}, null, 8, ["modelValue"])
|
|
735
749
|
]),
|
|
736
|
-
n("div",
|
|
737
|
-
|
|
738
|
-
p(
|
|
739
|
-
modelValue:
|
|
740
|
-
"onUpdate:modelValue":
|
|
750
|
+
n("div", ql, [
|
|
751
|
+
jl,
|
|
752
|
+
p(l, {
|
|
753
|
+
modelValue: t.enable_sliderChart,
|
|
754
|
+
"onUpdate:modelValue": s[11] || (s[11] = (a) => t.enable_sliderChart = a)
|
|
741
755
|
}, null, 8, ["modelValue"])
|
|
742
756
|
])
|
|
743
757
|
]),
|
|
744
758
|
_: 1
|
|
745
759
|
}),
|
|
746
|
-
n("div",
|
|
747
|
-
p(
|
|
760
|
+
n("div", Hl, [
|
|
761
|
+
p(R, { onClick: V }, {
|
|
748
762
|
default: m(() => [
|
|
749
|
-
|
|
763
|
+
j(" 恢复默认 ")
|
|
750
764
|
]),
|
|
751
765
|
_: 1
|
|
752
766
|
}),
|
|
753
|
-
p(
|
|
767
|
+
p(R, {
|
|
754
768
|
type: "primary",
|
|
755
|
-
onClick:
|
|
769
|
+
onClick: O
|
|
756
770
|
}, {
|
|
757
771
|
default: m(() => [
|
|
758
|
-
|
|
772
|
+
j(" 保存配置 ")
|
|
759
773
|
]),
|
|
760
774
|
_: 1
|
|
761
775
|
})
|
|
@@ -766,11 +780,11 @@ const L = (i) => (Me("data-v-da9cf1c8"), i = i(), Ke(), i), bl = { class: "kline
|
|
|
766
780
|
]);
|
|
767
781
|
};
|
|
768
782
|
}
|
|
769
|
-
},
|
|
770
|
-
install(
|
|
771
|
-
|
|
783
|
+
}, Wl = /* @__PURE__ */ je(Jl, [["__scopeId", "data-v-009e01e7"]]), kt = {
|
|
784
|
+
install(r) {
|
|
785
|
+
r.component("st-klineConfig", Wl);
|
|
772
786
|
}
|
|
773
787
|
};
|
|
774
788
|
export {
|
|
775
|
-
|
|
789
|
+
kt as default
|
|
776
790
|
};
|