st-comp 0.0.178 → 0.0.180
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/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +3 -3
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +29 -33
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +14 -18
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +25 -30
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +457 -419
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +13 -16
- package/es/KlinePlus.cjs +3 -3
- package/es/KlinePlus.js +140 -142
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +274 -276
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +21 -23
- package/es/User.cjs +1 -1
- package/es/User.js +472 -482
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +440 -2878
- package/es/VarietySearch.cjs +12 -12
- package/es/VarietySearch.js +1199 -1176
- package/es/VirtualTable.cjs +1 -13
- package/es/VirtualTable.js +1547 -1567
- package/es/{_initCloneObject-da90eef0.js → _initCloneObject-346b7ee2.js} +25 -26
- package/es/_initCloneObject-e2f0deb9.cjs +1 -0
- package/es/base-62a70f61.js +288 -0
- package/es/base-ef747d02.cjs +5 -0
- package/es/config-provider-178bb43c.cjs +1 -0
- package/es/config-provider-2e733cae.js +58 -0
- package/es/dayjs.min-2c20abe6.cjs +1 -0
- package/es/{dayjs.min-54a4e095.js → dayjs.min-8313b006.js} +96 -93
- package/es/{debounce-9e323221.cjs → debounce-0b77a317.cjs} +1 -1
- package/es/{debounce-3cec4646.js → debounce-5f2ec4be.js} +19 -19
- package/es/{dropdown-82b80e8b.js → dropdown-d06edf54.js} +49 -39
- package/es/dropdown-f2fec683.cjs +1 -0
- package/es/el-button-5b08c08a.js +272 -0
- package/es/el-button-fc46a173.cjs +1 -0
- package/es/el-dialog-0b7166c9.cjs +1 -0
- package/es/el-dialog-d8d0da7a.js +276 -0
- package/es/{el-divider-fd2b4e2e.js → el-divider-2f300113.js} +1 -1
- package/es/{el-divider-40c50ce7.cjs → el-divider-4713d74c.cjs} +1 -1
- package/es/{el-empty-412fc297.js → el-empty-87a86f30.js} +57 -80
- package/es/el-empty-bb2b0235.cjs +1 -0
- package/es/el-form-item-caffd133.cjs +12 -0
- package/es/el-form-item-ff9c7d98.js +1267 -0
- package/es/el-input-6db30c8c.js +531 -0
- package/es/el-input-9c912678.cjs +1 -0
- package/es/el-input-number-05f150e5.js +311 -0
- package/es/el-input-number-6fe73563.cjs +1 -0
- package/es/el-loading-8514feaa.cjs +1 -0
- package/es/el-loading-93842445.js +203 -0
- package/es/el-menu-item-7a57c1be.cjs +1 -0
- package/es/el-menu-item-a886fbdd.js +768 -0
- package/es/el-message-8aa674f2.js +406 -0
- package/es/el-message-aad5b42b.cjs +1 -0
- package/es/el-message-box-2b6b2b68.js +550 -0
- package/es/el-message-box-53f355d7.cjs +1 -0
- package/es/el-overlay-540b2a02.js +324 -0
- package/es/el-overlay-96630a2e.cjs +1 -0
- package/es/el-popconfirm-2afdf6fb.cjs +1 -0
- package/es/el-popconfirm-c18d8035.js +162 -0
- package/es/el-popper-544fd77e.js +2412 -0
- package/es/el-popper-73466d7a.cjs +1 -0
- package/es/el-scrollbar-691cfc11.cjs +1 -0
- package/es/el-scrollbar-fae984e3.js +763 -0
- package/es/el-segmented-a7493831.js +142 -0
- package/es/el-segmented-b6bd3c0e.cjs +1 -0
- package/es/el-select-5959e837.cjs +1 -0
- package/es/el-select-ea8feecf.js +1251 -0
- package/es/el-table-column-9ef52443.js +3878 -0
- package/es/el-table-column-b824ac5c.cjs +14 -0
- package/es/el-tag-2fc9b9eb.js +116 -0
- package/es/el-tag-ecad6d02.cjs +1 -0
- package/es/index-2e331d74.js +10 -0
- package/es/{index-a8e9ec0f.js → index-34592e82.js} +176 -182
- package/es/index-3a74eae4.cjs +1 -0
- package/es/{index-1c41bd56.js → index-5d4e5c51.js} +3 -3
- package/es/{index-e348d5e8.cjs → index-694bb944.cjs} +1 -1
- package/es/{index-ee1cebbc.js → index-74fb90c7.js} +5 -5
- package/es/{index-d577b81b.js → index-8d7ae5dc.js} +2 -2
- package/es/index-a9095b4a.js +163 -0
- package/es/index-a93dd9c4.cjs +1 -0
- package/es/index-ebd2fd7e.cjs +1 -0
- package/es/index-f1c702f6.cjs +1 -0
- package/es/{index-19fa1fcf.cjs → index-f6afafaa.cjs} +1 -1
- package/es/{raf-bfbf42e4.js → raf-41aed4d4.js} +1 -1
- package/es/{raf-07cb6953.cjs → raf-8249652f.cjs} +1 -1
- package/es/{scroll-e3cb691f.js → scroll-7d352c1f.js} +2 -2
- package/es/{scroll-4769a65d.cjs → scroll-b108dabd.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/use-global-config-03735617.cjs +1 -0
- package/es/use-global-config-4b185eb5.js +71 -0
- package/es/validator-0e688e4e.cjs +1 -0
- package/es/validator-d12a8f8c.js +5 -0
- package/es/vnode-4db20540.cjs +1 -0
- package/es/vnode-a0795a4b.js +70 -0
- package/es/{zh-cn-d883afa8.js → zh-cn-0ff32188.js} +5 -4
- package/es/{zh-cn-b24a7dc9.cjs → zh-cn-adf19c4b.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +226 -245
- package/lib/{index-0f16f8b0.js → index-9341884f.js} +44358 -46367
- package/lib/{python-e9c32bc9.js → python-5c9b3e4e.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/packages/KlinePlus/index.vue +2 -1
- package/packages/VarSelectDialog/index.vue +43 -67
- package/packages/VarietySearch/components/FactorScreen/FactorDescription.vue +4 -2
- package/packages/VarietySearch/components/FactorScreen/index.vue +6 -4
- package/packages/index.ts +0 -2
- package/src/pages/VarSelectDialog/index.vue +1 -1
- package/src/router/routes.ts +0 -5
- package/es/Dialog.cjs +0 -1
- package/es/Dialog.js +0 -95
- package/es/_commonjsHelpers-10dfc225.js +0 -8
- package/es/_commonjsHelpers-87b0abe8.cjs +0 -1
- package/es/_initCloneObject-9ccbb113.cjs +0 -1
- package/es/base-bdc10baa.cjs +0 -5
- package/es/base-d9284bf0.js +0 -304
- package/es/castArray-37eb9980.cjs +0 -1
- package/es/castArray-b0ab0165.js +0 -10
- package/es/config-provider-ec6b09df.cjs +0 -1
- package/es/config-provider-f0151e9f.js +0 -47
- package/es/dayjs.min-19fb125f.cjs +0 -1
- package/es/dropdown-b2dab5bb.cjs +0 -1
- package/es/el-button-34665425.js +0 -237
- package/es/el-button-960edd49.cjs +0 -1
- package/es/el-dialog-a412484e.js +0 -267
- package/es/el-dialog-cd484c1f.cjs +0 -1
- package/es/el-empty-627ec09e.cjs +0 -1
- package/es/el-form-item-668ba024.js +0 -1263
- package/es/el-form-item-e1c3104b.cjs +0 -12
- package/es/el-input-22e66e37.js +0 -523
- package/es/el-input-5163bda3.cjs +0 -1
- package/es/el-input-number-481e21c5.js +0 -284
- package/es/el-input-number-eb54cde4.cjs +0 -1
- package/es/el-loading-15a5501c.cjs +0 -1
- package/es/el-loading-d4e403ab.js +0 -187
- package/es/el-menu-item-404c10e5.js +0 -772
- package/es/el-menu-item-ac89e804.cjs +0 -1
- package/es/el-message-ad87b9dd.cjs +0 -1
- package/es/el-message-box-41f39f6d.js +0 -558
- package/es/el-message-box-6694f827.cjs +0 -1
- package/es/el-message-ef506caa.js +0 -375
- package/es/el-overlay-4a9fa4e1.js +0 -269
- package/es/el-overlay-e5d318c3.cjs +0 -1
- package/es/el-popconfirm-7b9183aa.js +0 -140
- package/es/el-popconfirm-a497b279.cjs +0 -1
- package/es/el-popper-14a9d493.cjs +0 -1
- package/es/el-popper-e73466eb.js +0 -2263
- package/es/el-scrollbar-45318df0.js +0 -201
- package/es/el-scrollbar-8bf765f2.cjs +0 -1
- package/es/el-segmented-3ba6d664.cjs +0 -1
- package/es/el-segmented-41820018.js +0 -135
- package/es/el-select-1d2309a1.cjs +0 -1
- package/es/el-select-d7a00294.js +0 -1130
- package/es/el-table-column-a2d0c635.js +0 -3805
- package/es/el-table-column-be9a76bb.cjs +0 -14
- package/es/el-tag-7f391090.js +0 -280
- package/es/el-tag-8d49d4d2.cjs +0 -1
- package/es/index-02ca0096.cjs +0 -5
- package/es/index-3120be08.js +0 -14
- package/es/index-5b81f4da.cjs +0 -1
- package/es/index-85a32a00.js +0 -59
- package/es/index-8d3c5e96.cjs +0 -3
- package/es/index-94f38460.js +0 -306
- package/es/index-a99a5307.cjs +0 -1
- package/es/index-b90c746b.cjs +0 -1
- package/es/index-d94bae37.cjs +0 -1
- package/es/index-d99fdc6d.js +0 -159
- package/es/use-form-common-props-592797e2.cjs +0 -2
- package/es/use-form-common-props-cc347a83.js +0 -171
- package/es/use-global-config-584b62f1.cjs +0 -1
- package/es/use-global-config-c7f0a7e3.js +0 -73
- package/es/validator-10fa54fe.js +0 -5
- package/es/validator-af488a9a.cjs +0 -1
- package/es/vnode-1b827c99.cjs +0 -1
- package/es/vnode-6be33bb1.js +0 -14
- package/packages/Dialog/index.ts +0 -8
- package/packages/Dialog/index.vue +0 -54
- package/src/pages/Dialog/index.vue +0 -16
package/es/KlineConfig.js
CHANGED
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { d as
|
|
3
|
-
import { E as
|
|
4
|
-
import "./el-scrollbar-
|
|
5
|
-
import { E as
|
|
6
|
-
import "./el-tag-
|
|
7
|
-
import { E as
|
|
8
|
-
import { u as
|
|
9
|
-
import { E as
|
|
10
|
-
import {
|
|
11
|
-
import { _ as
|
|
12
|
-
import { E as F, c as
|
|
13
|
-
import { i as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import "./
|
|
19
|
-
import "./scroll-e3cb691f.js";
|
|
20
|
-
import "./use-global-config-c7f0a7e3.js";
|
|
1
|
+
import { b as ne, m as fe, n as ie, u as re, _ as ue, w as de, e as be, o as X, c as G, p as Q, q as oe } from "./base-62a70f61.js";
|
|
2
|
+
import { d as ge, a as ye, u as he, E as _e } from "./el-overlay-540b2a02.js";
|
|
3
|
+
import { E as Ce } from "./el-button-5b08c08a.js";
|
|
4
|
+
import { b as we, c as Z, i as J, d as ke, e as Ve, f as Se, g as Ie } from "./el-scrollbar-fae984e3.js";
|
|
5
|
+
import { E as Ee } from "./el-segmented-a7493831.js";
|
|
6
|
+
import "./el-tag-2fc9b9eb.js";
|
|
7
|
+
import { E as Te, a as ze } from "./el-select-ea8feecf.js";
|
|
8
|
+
import { c as Be, e as Ne, u as Ae, U as x, C as ee, I as le, d as Pe, b as Le, g as Oe } from "./el-popper-544fd77e.js";
|
|
9
|
+
import { E as Ue } from "./el-divider-2f300113.js";
|
|
10
|
+
import { computed as T, ref as z, watch as ae, onBeforeUnmount as Re, defineComponent as Y, useSlots as De, openBlock as s, createBlock as k, unref as e, withCtx as m, createVNode as p, Transition as Fe, withDirectives as $e, createElementVNode as n, mergeProps as Me, withModifiers as ce, normalizeClass as b, createElementBlock as g, renderSlot as $, toDisplayString as M, createCommentVNode as _, normalizeStyle as pe, vShow as Ke, onMounted as me, withKeys as qe, resolveDynamicComponent as K, nextTick as je, inject as He, reactive as Je, createTextVNode as q, Fragment as j, renderList as H, pushScopeId as We, popScopeId as Xe } from "vue";
|
|
11
|
+
import { _ as Ye } from "./_plugin-vue_export-helper-dad06003.js";
|
|
12
|
+
import { E as F, c as Ge, l as Qe } from "./index-74fb90c7.js";
|
|
13
|
+
import { i as Ze } from "./validator-d12a8f8c.js";
|
|
14
|
+
import { u as xe } from "./index-2e331d74.js";
|
|
15
|
+
import { u as el } from "./index-34592e82.js";
|
|
16
|
+
import "./vnode-a0795a4b.js";
|
|
17
|
+
import "./scroll-7d352c1f.js";
|
|
18
|
+
import "./use-global-config-4b185eb5.js";
|
|
21
19
|
import "./index-657047bb.js";
|
|
22
|
-
import "./index-
|
|
23
|
-
import "./
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const Xe = se({
|
|
27
|
-
...fe,
|
|
20
|
+
import "./index-5d4e5c51.js";
|
|
21
|
+
import "./debounce-5f2ec4be.js";
|
|
22
|
+
const ll = ne({
|
|
23
|
+
...ge,
|
|
28
24
|
direction: {
|
|
29
25
|
type: String,
|
|
30
26
|
default: "rtl",
|
|
31
27
|
values: ["ltr", "rtl", "ttb", "btt"]
|
|
32
28
|
},
|
|
29
|
+
resizable: Boolean,
|
|
33
30
|
size: {
|
|
34
31
|
type: [String, Number],
|
|
35
32
|
default: "30%"
|
|
@@ -46,153 +43,195 @@ const Xe = se({
|
|
|
46
43
|
type: String,
|
|
47
44
|
default: "2"
|
|
48
45
|
}
|
|
49
|
-
}),
|
|
46
|
+
}), al = ye;
|
|
47
|
+
function tl(i, O) {
|
|
48
|
+
const { width: C, height: c } = we(), V = T(() => ["ltr", "rtl"].includes(i.direction)), B = T(() => ["ltr", "ttb"].includes(i.direction) ? 1 : -1), u = T(() => V.value ? C.value : c.value), a = T(() => fe(h.value + B.value * I.value, 4, u.value)), h = z(0), I = z(0), S = z(!1), U = z(!1);
|
|
49
|
+
let N = [], R = [];
|
|
50
|
+
const f = () => {
|
|
51
|
+
var y;
|
|
52
|
+
const w = (y = O.value) == null ? void 0 : y.closest('[aria-modal="true"]');
|
|
53
|
+
return w ? V.value ? w.offsetWidth : w.offsetHeight : 100;
|
|
54
|
+
};
|
|
55
|
+
ae(() => [i.size, i.resizable], () => {
|
|
56
|
+
U.value = !1, h.value = 0, I.value = 0, d();
|
|
57
|
+
});
|
|
58
|
+
const o = (y) => {
|
|
59
|
+
i.resizable && (U.value || (h.value = f(), U.value = !0), N = [y.pageX, y.pageY], S.value = !0, R.push(Z(window, "mouseup", d), Z(window, "mousemove", P)));
|
|
60
|
+
}, P = (y) => {
|
|
61
|
+
const { pageX: w, pageY: l } = y, v = w - N[0], D = l - N[1];
|
|
62
|
+
I.value = V.value ? v : D;
|
|
63
|
+
}, d = () => {
|
|
64
|
+
N = [], h.value = a.value, I.value = 0, S.value = !1, R.forEach((y) => y == null ? void 0 : y()), R = [];
|
|
65
|
+
}, E = Z(O, "mousedown", o);
|
|
66
|
+
return Re(() => {
|
|
67
|
+
E(), d();
|
|
68
|
+
}), {
|
|
69
|
+
size: T(() => U.value ? `${a.value}px` : ie(i.size)),
|
|
70
|
+
isResizing: S,
|
|
71
|
+
isHorizontal: V
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
const sl = Y({
|
|
50
75
|
name: "ElDrawer",
|
|
51
76
|
inheritAttrs: !1
|
|
52
|
-
}),
|
|
53
|
-
...
|
|
54
|
-
props:
|
|
55
|
-
emits:
|
|
56
|
-
setup(
|
|
57
|
-
const
|
|
58
|
-
|
|
77
|
+
}), ol = /* @__PURE__ */ Y({
|
|
78
|
+
...sl,
|
|
79
|
+
props: ll,
|
|
80
|
+
emits: al,
|
|
81
|
+
setup(i, { expose: O }) {
|
|
82
|
+
const C = i, c = De();
|
|
83
|
+
xe({
|
|
59
84
|
scope: "el-drawer",
|
|
60
85
|
from: "the title slot",
|
|
61
86
|
replacement: "the header slot",
|
|
62
87
|
version: "3.0.0",
|
|
63
88
|
ref: "https://element-plus.org/en-US/component/drawer.html#slots"
|
|
64
|
-
},
|
|
65
|
-
const
|
|
66
|
-
afterEnter:
|
|
67
|
-
afterLeave:
|
|
68
|
-
beforeLeave:
|
|
69
|
-
visible:
|
|
70
|
-
rendered:
|
|
71
|
-
titleId:
|
|
72
|
-
bodyId:
|
|
73
|
-
zIndex:
|
|
74
|
-
onModalClick:
|
|
75
|
-
onOpenAutoFocus:
|
|
76
|
-
onCloseAutoFocus:
|
|
77
|
-
onFocusoutPrevented:
|
|
78
|
-
onCloseRequested:
|
|
79
|
-
handleClose:
|
|
80
|
-
} =
|
|
81
|
-
return
|
|
82
|
-
handleClose:
|
|
83
|
-
afterEnter:
|
|
84
|
-
afterLeave:
|
|
85
|
-
}), (
|
|
86
|
-
to:
|
|
87
|
-
disabled:
|
|
89
|
+
}, T(() => !!c.title));
|
|
90
|
+
const V = z(), B = z(), u = z(), a = re("drawer"), { t: h } = el(), {
|
|
91
|
+
afterEnter: I,
|
|
92
|
+
afterLeave: S,
|
|
93
|
+
beforeLeave: U,
|
|
94
|
+
visible: N,
|
|
95
|
+
rendered: R,
|
|
96
|
+
titleId: f,
|
|
97
|
+
bodyId: o,
|
|
98
|
+
zIndex: P,
|
|
99
|
+
onModalClick: d,
|
|
100
|
+
onOpenAutoFocus: E,
|
|
101
|
+
onCloseAutoFocus: y,
|
|
102
|
+
onFocusoutPrevented: w,
|
|
103
|
+
onCloseRequested: l,
|
|
104
|
+
handleClose: v
|
|
105
|
+
} = he(C, V), { isHorizontal: D, size: t, isResizing: A } = tl(C, u);
|
|
106
|
+
return O({
|
|
107
|
+
handleClose: v,
|
|
108
|
+
afterEnter: I,
|
|
109
|
+
afterLeave: S
|
|
110
|
+
}), (r, te) => (s(), k(e(Be), {
|
|
111
|
+
to: r.appendTo,
|
|
112
|
+
disabled: r.appendTo !== "body" ? !1 : !r.appendToBody
|
|
88
113
|
}, {
|
|
89
|
-
default:
|
|
90
|
-
|
|
91
|
-
name: e(
|
|
92
|
-
onAfterEnter: e(
|
|
93
|
-
onAfterLeave: e(
|
|
94
|
-
onBeforeLeave: e(
|
|
114
|
+
default: m(() => [
|
|
115
|
+
p(Fe, {
|
|
116
|
+
name: e(a).b("fade"),
|
|
117
|
+
onAfterEnter: e(I),
|
|
118
|
+
onAfterLeave: e(S),
|
|
119
|
+
onBeforeLeave: e(U),
|
|
95
120
|
persisted: ""
|
|
96
121
|
}, {
|
|
97
|
-
default:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
122
|
+
default: m(() => {
|
|
123
|
+
var se;
|
|
124
|
+
return [
|
|
125
|
+
$e(p(e(_e), {
|
|
126
|
+
mask: r.modal,
|
|
127
|
+
"overlay-class": [e(a).is("drawer"), (se = r.modalClass) != null ? se : ""],
|
|
128
|
+
"z-index": e(P),
|
|
129
|
+
onClick: e(d)
|
|
130
|
+
}, {
|
|
131
|
+
default: m(() => [
|
|
132
|
+
p(e(Ne), {
|
|
133
|
+
loop: "",
|
|
134
|
+
trapped: e(N),
|
|
135
|
+
"focus-trap-el": V.value,
|
|
136
|
+
"focus-start-el": B.value,
|
|
137
|
+
onFocusAfterTrapped: e(E),
|
|
138
|
+
onFocusAfterReleased: e(y),
|
|
139
|
+
onFocusoutPrevented: e(w),
|
|
140
|
+
onReleaseRequested: e(l)
|
|
141
|
+
}, {
|
|
142
|
+
default: m(() => [
|
|
143
|
+
n("div", Me({
|
|
144
|
+
ref_key: "drawerRef",
|
|
145
|
+
ref: V,
|
|
146
|
+
"aria-modal": "true",
|
|
147
|
+
"aria-label": r.title || void 0,
|
|
148
|
+
"aria-labelledby": r.title ? void 0 : e(f),
|
|
149
|
+
"aria-describedby": e(o)
|
|
150
|
+
}, r.$attrs, {
|
|
151
|
+
class: [
|
|
152
|
+
e(a).b(),
|
|
153
|
+
r.direction,
|
|
154
|
+
e(N) && "open",
|
|
155
|
+
e(a).is("dragging", e(A))
|
|
156
|
+
],
|
|
157
|
+
style: { [e(D) ? "width" : "height"]: e(t) },
|
|
158
|
+
role: "dialog",
|
|
159
|
+
onClick: ce(() => {
|
|
160
|
+
}, ["stop"])
|
|
161
|
+
}), [
|
|
162
|
+
n("span", {
|
|
163
|
+
ref_key: "focusStartRef",
|
|
164
|
+
ref: B,
|
|
165
|
+
class: b(e(a).e("sr-focus")),
|
|
166
|
+
tabindex: "-1"
|
|
167
|
+
}, null, 2),
|
|
168
|
+
r.withHeader ? (s(), g("header", {
|
|
143
169
|
key: 0,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
170
|
+
class: b([e(a).e("header"), r.headerClass])
|
|
171
|
+
}, [
|
|
172
|
+
r.$slots.title ? $(r.$slots, "title", { key: 1 }, () => [
|
|
173
|
+
_(" DEPRECATED SLOT ")
|
|
174
|
+
]) : $(r.$slots, "header", {
|
|
149
175
|
key: 0,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
176
|
+
close: e(v),
|
|
177
|
+
titleId: e(f),
|
|
178
|
+
titleClass: e(a).e("title")
|
|
179
|
+
}, () => [
|
|
180
|
+
n("span", {
|
|
181
|
+
id: e(f),
|
|
182
|
+
role: "heading",
|
|
183
|
+
"aria-level": r.headerAriaLevel,
|
|
184
|
+
class: b(e(a).e("title"))
|
|
185
|
+
}, M(r.title), 11, ["id", "aria-level"])
|
|
186
|
+
]),
|
|
187
|
+
r.showClose ? (s(), g("button", {
|
|
188
|
+
key: 2,
|
|
189
|
+
"aria-label": e(h)("el.drawer.close"),
|
|
190
|
+
class: b(e(a).e("close-btn")),
|
|
191
|
+
type: "button",
|
|
192
|
+
onClick: e(v)
|
|
193
|
+
}, [
|
|
194
|
+
p(e(F), {
|
|
195
|
+
class: b(e(a).e("close"))
|
|
196
|
+
}, {
|
|
197
|
+
default: m(() => [
|
|
198
|
+
p(e(Ge))
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
}, 8, ["class"])
|
|
202
|
+
], 10, ["aria-label", "onClick"])) : _("v-if", !0)
|
|
203
|
+
], 2)) : _("v-if", !0),
|
|
204
|
+
e(R) ? (s(), g("div", {
|
|
205
|
+
key: 1,
|
|
206
|
+
id: e(o),
|
|
207
|
+
class: b([e(a).e("body"), r.bodyClass])
|
|
208
|
+
}, [
|
|
209
|
+
$(r.$slots, "default")
|
|
210
|
+
], 10, ["id"])) : _("v-if", !0),
|
|
211
|
+
r.$slots.footer ? (s(), g("div", {
|
|
157
212
|
key: 2,
|
|
158
|
-
|
|
159
|
-
class: v(e(s).e("close-btn")),
|
|
160
|
-
type: "button",
|
|
161
|
-
onClick: e(t)
|
|
213
|
+
class: b([e(a).e("footer"), r.footerClass])
|
|
162
214
|
}, [
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
],
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}, [
|
|
184
|
-
R(l.$slots, "footer")
|
|
185
|
-
], 2)) : y("v-if", !0)
|
|
186
|
-
], 16, ["aria-label", "aria-labelledby", "aria-describedby", "onClick"])
|
|
187
|
-
]),
|
|
188
|
-
_: 3
|
|
189
|
-
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
190
|
-
]),
|
|
191
|
-
_: 3
|
|
192
|
-
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
|
193
|
-
[Be, e(L)]
|
|
194
|
-
])
|
|
195
|
-
]),
|
|
215
|
+
$(r.$slots, "footer")
|
|
216
|
+
], 2)) : _("v-if", !0),
|
|
217
|
+
r.resizable ? (s(), g("div", {
|
|
218
|
+
key: 3,
|
|
219
|
+
ref_key: "draggerRef",
|
|
220
|
+
ref: u,
|
|
221
|
+
style: pe({ zIndex: e(P) }),
|
|
222
|
+
class: b(e(a).e("dragger"))
|
|
223
|
+
}, null, 6)) : _("v-if", !0)
|
|
224
|
+
], 16, ["aria-label", "aria-labelledby", "aria-describedby", "onClick"])
|
|
225
|
+
]),
|
|
226
|
+
_: 3
|
|
227
|
+
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
228
|
+
]),
|
|
229
|
+
_: 3
|
|
230
|
+
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
|
231
|
+
[Ke, e(N)]
|
|
232
|
+
])
|
|
233
|
+
];
|
|
234
|
+
}),
|
|
196
235
|
_: 3
|
|
197
236
|
}, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
|
|
198
237
|
]),
|
|
@@ -200,8 +239,8 @@ const Xe = se({
|
|
|
200
239
|
}, 8, ["to", "disabled"]));
|
|
201
240
|
}
|
|
202
241
|
});
|
|
203
|
-
var
|
|
204
|
-
const
|
|
242
|
+
var nl = /* @__PURE__ */ ue(ol, [["__file", "drawer.vue"]]);
|
|
243
|
+
const il = de(nl), rl = ne({
|
|
205
244
|
modelValue: {
|
|
206
245
|
type: [Boolean, String, Number],
|
|
207
246
|
default: !1
|
|
@@ -210,7 +249,7 @@ const ll = de(el), tl = se({
|
|
|
210
249
|
loading: Boolean,
|
|
211
250
|
size: {
|
|
212
251
|
type: String,
|
|
213
|
-
validator:
|
|
252
|
+
validator: Ze
|
|
214
253
|
},
|
|
215
254
|
width: {
|
|
216
255
|
type: [String, Number],
|
|
@@ -254,194 +293,193 @@ const ll = de(el), tl = se({
|
|
|
254
293
|
default: !0
|
|
255
294
|
},
|
|
256
295
|
beforeChange: {
|
|
257
|
-
type:
|
|
296
|
+
type: be(Function)
|
|
258
297
|
},
|
|
259
298
|
id: String,
|
|
260
299
|
tabindex: {
|
|
261
300
|
type: [String, Number]
|
|
262
301
|
},
|
|
263
|
-
...
|
|
264
|
-
}),
|
|
265
|
-
[
|
|
266
|
-
[
|
|
267
|
-
[
|
|
268
|
-
},
|
|
269
|
-
name:
|
|
270
|
-
}),
|
|
271
|
-
...
|
|
272
|
-
props:
|
|
273
|
-
emits:
|
|
274
|
-
setup(
|
|
275
|
-
const
|
|
276
|
-
formItemContext:
|
|
277
|
-
}),
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
]),
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
]), f =
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
]),
|
|
291
|
-
width: ie(
|
|
302
|
+
...Ae(["ariaLabel"])
|
|
303
|
+
}), ul = {
|
|
304
|
+
[x]: (i) => X(i) || G(i) || Q(i),
|
|
305
|
+
[ee]: (i) => X(i) || G(i) || Q(i),
|
|
306
|
+
[le]: (i) => X(i) || G(i) || Q(i)
|
|
307
|
+
}, ve = "ElSwitch", dl = Y({
|
|
308
|
+
name: ve
|
|
309
|
+
}), cl = /* @__PURE__ */ Y({
|
|
310
|
+
...dl,
|
|
311
|
+
props: rl,
|
|
312
|
+
emits: ul,
|
|
313
|
+
setup(i, { expose: O, emit: C }) {
|
|
314
|
+
const c = i, { formItem: V } = ke(), B = Ve(), u = re("switch"), { inputId: a } = Se(c, {
|
|
315
|
+
formItemContext: V
|
|
316
|
+
}), h = Ie(T(() => c.loading)), I = z(c.modelValue !== !1), S = z(), U = z(), N = T(() => [
|
|
317
|
+
u.b(),
|
|
318
|
+
u.m(B.value),
|
|
319
|
+
u.is("disabled", h.value),
|
|
320
|
+
u.is("checked", d.value)
|
|
321
|
+
]), R = T(() => [
|
|
322
|
+
u.e("label"),
|
|
323
|
+
u.em("label", "left"),
|
|
324
|
+
u.is("active", !d.value)
|
|
325
|
+
]), f = T(() => [
|
|
326
|
+
u.e("label"),
|
|
327
|
+
u.em("label", "right"),
|
|
328
|
+
u.is("active", d.value)
|
|
329
|
+
]), o = T(() => ({
|
|
330
|
+
width: ie(c.width)
|
|
292
331
|
}));
|
|
293
|
-
|
|
294
|
-
|
|
332
|
+
ae(() => c.modelValue, () => {
|
|
333
|
+
I.value = !0;
|
|
295
334
|
});
|
|
296
|
-
const
|
|
297
|
-
[
|
|
298
|
-
var
|
|
299
|
-
|
|
335
|
+
const P = T(() => I.value ? c.modelValue : !1), d = T(() => P.value === c.activeValue);
|
|
336
|
+
[c.activeValue, c.inactiveValue].includes(P.value) || (C(x, c.inactiveValue), C(ee, c.inactiveValue), C(le, c.inactiveValue)), ae(d, (l) => {
|
|
337
|
+
var v;
|
|
338
|
+
S.value.checked = l, c.validateEvent && ((v = V == null ? void 0 : V.validate) == null || v.call(V, "change").catch((D) => Pe()));
|
|
300
339
|
});
|
|
301
|
-
const
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
|
|
340
|
+
const E = () => {
|
|
341
|
+
const l = d.value ? c.inactiveValue : c.activeValue;
|
|
342
|
+
C(x, l), C(ee, l), C(le, l), je(() => {
|
|
343
|
+
S.value.checked = d.value;
|
|
305
344
|
});
|
|
306
|
-
},
|
|
307
|
-
if (
|
|
345
|
+
}, y = () => {
|
|
346
|
+
if (h.value)
|
|
308
347
|
return;
|
|
309
|
-
const { beforeChange:
|
|
310
|
-
if (!
|
|
311
|
-
|
|
348
|
+
const { beforeChange: l } = c;
|
|
349
|
+
if (!l) {
|
|
350
|
+
E();
|
|
312
351
|
return;
|
|
313
352
|
}
|
|
314
|
-
const
|
|
353
|
+
const v = l();
|
|
315
354
|
[
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
].includes(!0) || ve
|
|
319
|
-
|
|
320
|
-
}).catch((
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
(b = (t = T.value) == null ? void 0 : t.focus) == null || b.call(t);
|
|
355
|
+
oe(v),
|
|
356
|
+
X(v)
|
|
357
|
+
].includes(!0) || Le(ve, "beforeChange must return type `Promise<boolean>` or `boolean`"), oe(v) ? v.then((t) => {
|
|
358
|
+
t && E();
|
|
359
|
+
}).catch((t) => {
|
|
360
|
+
}) : v && E();
|
|
361
|
+
}, w = () => {
|
|
362
|
+
var l, v;
|
|
363
|
+
(v = (l = S.value) == null ? void 0 : l.focus) == null || v.call(l);
|
|
326
364
|
};
|
|
327
|
-
return
|
|
328
|
-
|
|
329
|
-
}),
|
|
330
|
-
focus:
|
|
331
|
-
checked:
|
|
332
|
-
}), (
|
|
333
|
-
class:
|
|
334
|
-
onClick:
|
|
365
|
+
return me(() => {
|
|
366
|
+
S.value.checked = d.value;
|
|
367
|
+
}), O({
|
|
368
|
+
focus: w,
|
|
369
|
+
checked: d
|
|
370
|
+
}), (l, v) => (s(), g("div", {
|
|
371
|
+
class: b(e(N)),
|
|
372
|
+
onClick: ce(y, ["prevent"])
|
|
335
373
|
}, [
|
|
336
374
|
n("input", {
|
|
337
375
|
id: e(a),
|
|
338
376
|
ref_key: "input",
|
|
339
|
-
ref:
|
|
340
|
-
class:
|
|
377
|
+
ref: S,
|
|
378
|
+
class: b(e(u).e("input")),
|
|
341
379
|
type: "checkbox",
|
|
342
380
|
role: "switch",
|
|
343
|
-
"aria-checked": e(
|
|
344
|
-
"aria-disabled": e(
|
|
345
|
-
"aria-label":
|
|
346
|
-
name:
|
|
347
|
-
"true-value":
|
|
348
|
-
"false-value":
|
|
349
|
-
disabled: e(
|
|
350
|
-
tabindex:
|
|
351
|
-
onChange:
|
|
352
|
-
onKeydown:
|
|
381
|
+
"aria-checked": e(d),
|
|
382
|
+
"aria-disabled": e(h),
|
|
383
|
+
"aria-label": l.ariaLabel,
|
|
384
|
+
name: l.name,
|
|
385
|
+
"true-value": l.activeValue,
|
|
386
|
+
"false-value": l.inactiveValue,
|
|
387
|
+
disabled: e(h),
|
|
388
|
+
tabindex: l.tabindex,
|
|
389
|
+
onChange: E,
|
|
390
|
+
onKeydown: qe(y, ["enter"])
|
|
353
391
|
}, null, 42, ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"]),
|
|
354
|
-
!
|
|
392
|
+
!l.inlinePrompt && (l.inactiveIcon || l.inactiveText) ? (s(), g("span", {
|
|
355
393
|
key: 0,
|
|
356
|
-
class:
|
|
394
|
+
class: b(e(R))
|
|
357
395
|
}, [
|
|
358
|
-
|
|
359
|
-
default:
|
|
360
|
-
(
|
|
396
|
+
l.inactiveIcon ? (s(), k(e(F), { key: 0 }, {
|
|
397
|
+
default: m(() => [
|
|
398
|
+
(s(), k(K(l.inactiveIcon)))
|
|
361
399
|
]),
|
|
362
400
|
_: 1
|
|
363
|
-
})) :
|
|
364
|
-
!
|
|
401
|
+
})) : _("v-if", !0),
|
|
402
|
+
!l.inactiveIcon && l.inactiveText ? (s(), g("span", {
|
|
365
403
|
key: 1,
|
|
366
|
-
"aria-hidden": e(
|
|
367
|
-
},
|
|
368
|
-
], 2)) :
|
|
404
|
+
"aria-hidden": e(d)
|
|
405
|
+
}, M(l.inactiveText), 9, ["aria-hidden"])) : _("v-if", !0)
|
|
406
|
+
], 2)) : _("v-if", !0),
|
|
369
407
|
n("span", {
|
|
370
408
|
ref_key: "core",
|
|
371
|
-
ref:
|
|
372
|
-
class:
|
|
373
|
-
style:
|
|
409
|
+
ref: U,
|
|
410
|
+
class: b(e(u).e("core")),
|
|
411
|
+
style: pe(e(o))
|
|
374
412
|
}, [
|
|
375
|
-
|
|
413
|
+
l.inlinePrompt ? (s(), g("div", {
|
|
376
414
|
key: 0,
|
|
377
|
-
class:
|
|
415
|
+
class: b(e(u).e("inner"))
|
|
378
416
|
}, [
|
|
379
|
-
|
|
417
|
+
l.activeIcon || l.inactiveIcon ? (s(), k(e(F), {
|
|
380
418
|
key: 0,
|
|
381
|
-
class:
|
|
419
|
+
class: b(e(u).is("icon"))
|
|
382
420
|
}, {
|
|
383
|
-
default:
|
|
384
|
-
(
|
|
421
|
+
default: m(() => [
|
|
422
|
+
(s(), k(K(e(d) ? l.activeIcon : l.inactiveIcon)))
|
|
385
423
|
]),
|
|
386
424
|
_: 1
|
|
387
|
-
}, 8, ["class"])) :
|
|
425
|
+
}, 8, ["class"])) : l.activeText || l.inactiveText ? (s(), g("span", {
|
|
388
426
|
key: 1,
|
|
389
|
-
class:
|
|
390
|
-
"aria-hidden": !e(
|
|
391
|
-
},
|
|
392
|
-
], 2)) :
|
|
427
|
+
class: b(e(u).is("text")),
|
|
428
|
+
"aria-hidden": !e(d)
|
|
429
|
+
}, M(e(d) ? l.activeText : l.inactiveText), 11, ["aria-hidden"])) : _("v-if", !0)
|
|
430
|
+
], 2)) : _("v-if", !0),
|
|
393
431
|
n("div", {
|
|
394
|
-
class:
|
|
432
|
+
class: b(e(u).e("action"))
|
|
395
433
|
}, [
|
|
396
|
-
|
|
434
|
+
l.loading ? (s(), k(e(F), {
|
|
397
435
|
key: 0,
|
|
398
|
-
class:
|
|
436
|
+
class: b(e(u).is("loading"))
|
|
399
437
|
}, {
|
|
400
|
-
default:
|
|
401
|
-
|
|
438
|
+
default: m(() => [
|
|
439
|
+
p(e(Qe))
|
|
402
440
|
]),
|
|
403
441
|
_: 1
|
|
404
|
-
}, 8, ["class"])) : e(
|
|
405
|
-
|
|
406
|
-
default:
|
|
407
|
-
(
|
|
442
|
+
}, 8, ["class"])) : e(d) ? $(l.$slots, "active-action", { key: 1 }, () => [
|
|
443
|
+
l.activeActionIcon ? (s(), k(e(F), { key: 0 }, {
|
|
444
|
+
default: m(() => [
|
|
445
|
+
(s(), k(K(l.activeActionIcon)))
|
|
408
446
|
]),
|
|
409
447
|
_: 1
|
|
410
|
-
})) :
|
|
411
|
-
]) : e(
|
|
412
|
-
|
|
413
|
-
default:
|
|
414
|
-
(
|
|
448
|
+
})) : _("v-if", !0)
|
|
449
|
+
]) : e(d) ? _("v-if", !0) : $(l.$slots, "inactive-action", { key: 2 }, () => [
|
|
450
|
+
l.inactiveActionIcon ? (s(), k(e(F), { key: 0 }, {
|
|
451
|
+
default: m(() => [
|
|
452
|
+
(s(), k(K(l.inactiveActionIcon)))
|
|
415
453
|
]),
|
|
416
454
|
_: 1
|
|
417
|
-
})) :
|
|
455
|
+
})) : _("v-if", !0)
|
|
418
456
|
])
|
|
419
457
|
], 2)
|
|
420
458
|
], 6),
|
|
421
|
-
!
|
|
459
|
+
!l.inlinePrompt && (l.activeIcon || l.activeText) ? (s(), g("span", {
|
|
422
460
|
key: 1,
|
|
423
|
-
class:
|
|
461
|
+
class: b(e(f))
|
|
424
462
|
}, [
|
|
425
|
-
|
|
426
|
-
default:
|
|
427
|
-
(
|
|
463
|
+
l.activeIcon ? (s(), k(e(F), { key: 0 }, {
|
|
464
|
+
default: m(() => [
|
|
465
|
+
(s(), k(K(l.activeIcon)))
|
|
428
466
|
]),
|
|
429
467
|
_: 1
|
|
430
|
-
})) :
|
|
431
|
-
!
|
|
468
|
+
})) : _("v-if", !0),
|
|
469
|
+
!l.activeIcon && l.activeText ? (s(), g("span", {
|
|
432
470
|
key: 1,
|
|
433
|
-
"aria-hidden": !e(
|
|
434
|
-
},
|
|
435
|
-
], 2)) :
|
|
471
|
+
"aria-hidden": !e(d)
|
|
472
|
+
}, M(l.activeText), 9, ["aria-hidden"])) : _("v-if", !0)
|
|
473
|
+
], 2)) : _("v-if", !0)
|
|
436
474
|
], 10, ["onClick"]));
|
|
437
475
|
}
|
|
438
476
|
});
|
|
439
|
-
var
|
|
440
|
-
const
|
|
441
|
-
const
|
|
477
|
+
var pl = /* @__PURE__ */ ue(cl, [["__file", "switch.vue"]]);
|
|
478
|
+
const ml = de(pl);
|
|
479
|
+
const vl = [
|
|
442
480
|
{ label: "买卖", value: 0 },
|
|
443
481
|
{ label: "开平", value: 1 }
|
|
444
|
-
],
|
|
482
|
+
], W = () => ({
|
|
445
483
|
/**
|
|
446
484
|
* @description: 偏好设置
|
|
447
485
|
*/
|
|
@@ -476,11 +514,11 @@ const rl = [
|
|
|
476
514
|
// 是否启用副图
|
|
477
515
|
enable_sliderChart: !0
|
|
478
516
|
// 是否启用拖拽轴
|
|
479
|
-
}),
|
|
480
|
-
var
|
|
481
|
-
return ((
|
|
517
|
+
}), fl = (i, O) => {
|
|
518
|
+
var C;
|
|
519
|
+
return ((C = O.find((c) => c.value === i)) == null ? void 0 : C.label) ?? "-";
|
|
482
520
|
};
|
|
483
|
-
const
|
|
521
|
+
const L = (i) => (We("data-v-da9cf1c8"), i = i(), Xe(), i), bl = { class: "kline-config element-dark" }, gl = { class: "setting-item" }, yl = /* @__PURE__ */ L(() => /* @__PURE__ */ n("span", { class: "label" }, "主图指标: ", -1)), hl = { class: "setting-item" }, _l = /* @__PURE__ */ L(() => /* @__PURE__ */ n("span", { class: "label" }, "交易点位: ", -1)), Cl = { class: "setting-item" }, wl = /* @__PURE__ */ L(() => /* @__PURE__ */ n("span", { class: "label" }, "单周期: ", -1)), kl = { class: "setting-item" }, Vl = /* @__PURE__ */ L(() => /* @__PURE__ */ n("span", { class: "label" }, "多周期: ", -1)), Sl = { class: "mode" }, Il = { class: "cycleName" }, El = { class: "content" }, Tl = { class: "setting-item" }, zl = /* @__PURE__ */ L(() => /* @__PURE__ */ n("span", { class: "label" }, "默认展示: ", -1)), Bl = { class: "setting-item" }, Nl = /* @__PURE__ */ L(() => /* @__PURE__ */ n("span", { class: "label" }, "高亮交易范围: ", -1)), Al = { class: "setting-item" }, Pl = /* @__PURE__ */ L(() => /* @__PURE__ */ n("span", { class: "label" }, "展示当屏时间: ", -1)), Ll = { class: "setting-item" }, Ol = /* @__PURE__ */ L(() => /* @__PURE__ */ n("span", { class: "label" }, "展示当屏最高价: ", -1)), Ul = { class: "setting-item" }, Rl = /* @__PURE__ */ L(() => /* @__PURE__ */ n("span", { class: "label" }, "多周期双击图表切换至单周期: ", -1)), Dl = { class: "setting-item" }, Fl = /* @__PURE__ */ L(() => /* @__PURE__ */ n("span", { class: "label" }, "开启副图: ", -1)), $l = { class: "setting-item" }, Ml = /* @__PURE__ */ L(() => /* @__PURE__ */ n("span", { class: "label" }, "开启拖拽轴: ", -1)), Kl = { class: "setting-footer" }, ql = {
|
|
484
522
|
__name: "index",
|
|
485
523
|
props: {
|
|
486
524
|
indicatorStore: { type: Object, default: () => ({}) },
|
|
@@ -491,114 +529,114 @@ const V = (r) => (De("data-v-da9cf1c8"), r = r(), Fe(), r), ul = { class: "kline
|
|
|
491
529
|
cycleOptions: { type: Array, default: () => [] }
|
|
492
530
|
},
|
|
493
531
|
emits: "callBack",
|
|
494
|
-
setup(
|
|
495
|
-
const { request:
|
|
496
|
-
Object.assign(a,
|
|
497
|
-
},
|
|
532
|
+
setup(i, { expose: O, emit: C }) {
|
|
533
|
+
const { request: c } = He("stConfig"), V = C, B = i, u = z(!1), a = Je({}), h = z([]), I = z([]), S = () => {
|
|
534
|
+
Object.assign(a, W());
|
|
535
|
+
}, U = async () => {
|
|
498
536
|
const f = JSON.stringify(a);
|
|
499
|
-
|
|
500
|
-
},
|
|
501
|
-
if (
|
|
502
|
-
const { body: f } = await
|
|
503
|
-
Object.assign(a,
|
|
537
|
+
B.origin === "server" ? await c.post("/common/qt/updateUserConfig", { appId: 1, json: f }) : localStorage.setItem("userKlineConfig", f), V("callBack", f), u.value = !1;
|
|
538
|
+
}, N = async () => {
|
|
539
|
+
if (B.origin === "server") {
|
|
540
|
+
const { body: f } = await c.post("/common/qt/getUserConfig", { appId: 1 });
|
|
541
|
+
Object.assign(a, W(), f ? JSON.parse(f) : {});
|
|
504
542
|
} else {
|
|
505
543
|
const f = localStorage.getItem("userKlineConfig");
|
|
506
|
-
Object.assign(a,
|
|
544
|
+
Object.assign(a, W(), f ? JSON.parse(f) : {});
|
|
507
545
|
}
|
|
508
|
-
},
|
|
509
|
-
if (
|
|
510
|
-
const { body: f } = await
|
|
511
|
-
|
|
512
|
-
label:
|
|
513
|
-
value:
|
|
546
|
+
}, R = async () => {
|
|
547
|
+
if (B.origin === "server") {
|
|
548
|
+
const { body: f } = await c.post("/common/qt/getDict", { dictIds: [1002] });
|
|
549
|
+
h.value = f[1002].map((o) => ({
|
|
550
|
+
label: o.dictName,
|
|
551
|
+
value: o.dictCode
|
|
514
552
|
}));
|
|
515
553
|
} else
|
|
516
|
-
|
|
554
|
+
h.value = B.cycleOptions;
|
|
517
555
|
};
|
|
518
|
-
return
|
|
519
|
-
|
|
520
|
-
}),
|
|
556
|
+
return me(() => {
|
|
557
|
+
R(), I.value = B.indicatorStore.mainIndicatorList ?? [];
|
|
558
|
+
}), O({
|
|
521
559
|
// 打开
|
|
522
560
|
open: async () => {
|
|
523
|
-
await
|
|
561
|
+
await N(), u.value = !0;
|
|
524
562
|
},
|
|
525
563
|
// 获取默认配置
|
|
526
|
-
getDefaultUserKlineConfig:
|
|
527
|
-
}), (f,
|
|
528
|
-
const
|
|
529
|
-
return
|
|
530
|
-
|
|
531
|
-
modelValue:
|
|
532
|
-
"onUpdate:modelValue":
|
|
564
|
+
getDefaultUserKlineConfig: W
|
|
565
|
+
}), (f, o) => {
|
|
566
|
+
const P = Ue, d = Te, E = ze, y = Ee, w = ml, l = Oe, v = Ce, D = il;
|
|
567
|
+
return s(), g("div", bl, [
|
|
568
|
+
p(D, {
|
|
569
|
+
modelValue: u.value,
|
|
570
|
+
"onUpdate:modelValue": o[11] || (o[11] = (t) => u.value = t),
|
|
533
571
|
title: "K线自定义配置",
|
|
534
572
|
size: 320
|
|
535
573
|
}, {
|
|
536
|
-
default:
|
|
537
|
-
|
|
538
|
-
default:
|
|
539
|
-
|
|
540
|
-
default:
|
|
541
|
-
|
|
574
|
+
default: m(() => [
|
|
575
|
+
p(l, { class: "setting-main" }, {
|
|
576
|
+
default: m(() => [
|
|
577
|
+
p(P, { style: { "margin-top": "8px" } }, {
|
|
578
|
+
default: m(() => [
|
|
579
|
+
q("偏好设置")
|
|
542
580
|
]),
|
|
543
581
|
_: 1
|
|
544
582
|
}),
|
|
545
|
-
n("div",
|
|
546
|
-
|
|
547
|
-
|
|
583
|
+
n("div", gl, [
|
|
584
|
+
yl,
|
|
585
|
+
p(E, {
|
|
548
586
|
modelValue: a.mainIndicator,
|
|
549
|
-
"onUpdate:modelValue":
|
|
587
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => a.mainIndicator = t),
|
|
550
588
|
"popper-class": "element-dark"
|
|
551
589
|
}, {
|
|
552
|
-
default:
|
|
553
|
-
(
|
|
554
|
-
key:
|
|
555
|
-
label:
|
|
556
|
-
value:
|
|
590
|
+
default: m(() => [
|
|
591
|
+
(s(!0), g(j, null, H(I.value, (t, A) => (s(), k(d, {
|
|
592
|
+
key: A,
|
|
593
|
+
label: t.label,
|
|
594
|
+
value: t.value
|
|
557
595
|
}, null, 8, ["label", "value"]))), 128))
|
|
558
596
|
]),
|
|
559
597
|
_: 1
|
|
560
598
|
}, 8, ["modelValue"])
|
|
561
599
|
]),
|
|
562
|
-
n("div",
|
|
563
|
-
|
|
564
|
-
|
|
600
|
+
n("div", hl, [
|
|
601
|
+
_l,
|
|
602
|
+
p(E, {
|
|
565
603
|
modelValue: a.sellBuy,
|
|
566
|
-
"onUpdate:modelValue":
|
|
604
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => a.sellBuy = t),
|
|
567
605
|
"popper-class": "element-dark"
|
|
568
606
|
}, {
|
|
569
|
-
default:
|
|
570
|
-
(
|
|
571
|
-
key:
|
|
572
|
-
label:
|
|
573
|
-
value:
|
|
607
|
+
default: m(() => [
|
|
608
|
+
(s(!0), g(j, null, H(e(vl), (t, A) => (s(), k(d, {
|
|
609
|
+
key: A,
|
|
610
|
+
label: t.label,
|
|
611
|
+
value: t.value
|
|
574
612
|
}, null, 8, ["label", "value"]))), 128))
|
|
575
613
|
]),
|
|
576
614
|
_: 1
|
|
577
615
|
}, 8, ["modelValue"])
|
|
578
616
|
]),
|
|
579
|
-
n("div",
|
|
580
|
-
|
|
581
|
-
|
|
617
|
+
n("div", Cl, [
|
|
618
|
+
wl,
|
|
619
|
+
p(E, {
|
|
582
620
|
modelValue: a.singelCycle,
|
|
583
|
-
"onUpdate:modelValue":
|
|
621
|
+
"onUpdate:modelValue": o[2] || (o[2] = (t) => a.singelCycle = t),
|
|
584
622
|
"popper-class": "element-dark"
|
|
585
623
|
}, {
|
|
586
|
-
default:
|
|
587
|
-
(
|
|
588
|
-
key:
|
|
589
|
-
label:
|
|
590
|
-
value:
|
|
624
|
+
default: m(() => [
|
|
625
|
+
(s(!0), g(j, null, H(h.value, (t, A) => (s(), k(d, {
|
|
626
|
+
key: A,
|
|
627
|
+
label: t.label,
|
|
628
|
+
value: t.value
|
|
591
629
|
}, null, 8, ["label", "value"]))), 128))
|
|
592
630
|
]),
|
|
593
631
|
_: 1
|
|
594
632
|
}, 8, ["modelValue"])
|
|
595
633
|
]),
|
|
596
|
-
n("div",
|
|
597
|
-
|
|
598
|
-
|
|
634
|
+
n("div", kl, [
|
|
635
|
+
Vl,
|
|
636
|
+
p(y, {
|
|
599
637
|
size: "small",
|
|
600
638
|
modelValue: a.multiCycleNum,
|
|
601
|
-
"onUpdate:modelValue":
|
|
639
|
+
"onUpdate:modelValue": o[3] || (o[3] = (t) => a.multiCycleNum = t),
|
|
602
640
|
options: [
|
|
603
641
|
{ label: "二图", value: 2 },
|
|
604
642
|
{ label: "四图", value: 4 },
|
|
@@ -608,35 +646,35 @@ const V = (r) => (De("data-v-da9cf1c8"), r = r(), Fe(), r), ul = { class: "kline
|
|
|
608
646
|
}, null, 8, ["modelValue"])
|
|
609
647
|
]),
|
|
610
648
|
n("div", {
|
|
611
|
-
class:
|
|
649
|
+
class: b(`setting-multi-box grid-${a.multiCycleNum}`)
|
|
612
650
|
}, [
|
|
613
|
-
(
|
|
614
|
-
n("div",
|
|
615
|
-
n("span", null,
|
|
616
|
-
|
|
617
|
-
modelValue: a.multiCycleList[
|
|
618
|
-
"onUpdate:modelValue": (
|
|
651
|
+
(s(!0), g(j, null, H(a.multiCycleList.slice(0, a.multiCycleNum), (t, A) => (s(), g("div", Sl, [
|
|
652
|
+
n("div", Il, [
|
|
653
|
+
n("span", null, M(e(fl)(a.multiCycleList[A], h.value)), 1),
|
|
654
|
+
p(E, {
|
|
655
|
+
modelValue: a.multiCycleList[A],
|
|
656
|
+
"onUpdate:modelValue": (r) => a.multiCycleList[A] = r,
|
|
619
657
|
"popper-class": "element-dark"
|
|
620
658
|
}, {
|
|
621
|
-
default:
|
|
622
|
-
(
|
|
623
|
-
key:
|
|
624
|
-
label:
|
|
625
|
-
value:
|
|
659
|
+
default: m(() => [
|
|
660
|
+
(s(!0), g(j, null, H(h.value, (r, te) => (s(), k(d, {
|
|
661
|
+
key: te,
|
|
662
|
+
label: r.label,
|
|
663
|
+
value: r.value
|
|
626
664
|
}, null, 8, ["label", "value"]))), 128))
|
|
627
665
|
]),
|
|
628
666
|
_: 2
|
|
629
667
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
630
668
|
]),
|
|
631
|
-
n("span",
|
|
669
|
+
n("span", El, M(A + 1) + "号位K线", 1)
|
|
632
670
|
]))), 256))
|
|
633
671
|
], 2),
|
|
634
|
-
n("div",
|
|
635
|
-
|
|
636
|
-
|
|
672
|
+
n("div", Tl, [
|
|
673
|
+
zl,
|
|
674
|
+
p(y, {
|
|
637
675
|
size: "small",
|
|
638
676
|
modelValue: a.pageType,
|
|
639
|
-
"onUpdate:modelValue":
|
|
677
|
+
"onUpdate:modelValue": o[4] || (o[4] = (t) => a.pageType = t),
|
|
640
678
|
options: [
|
|
641
679
|
{ label: "单周期", value: 1 },
|
|
642
680
|
{ label: "多周期", value: 2 }
|
|
@@ -644,76 +682,76 @@ const V = (r) => (De("data-v-da9cf1c8"), r = r(), Fe(), r), ul = { class: "kline
|
|
|
644
682
|
style: { height: "26px" }
|
|
645
683
|
}, null, 8, ["modelValue"])
|
|
646
684
|
]),
|
|
647
|
-
|
|
648
|
-
default:
|
|
649
|
-
|
|
685
|
+
p(P, { style: { "margin-top": "44px" } }, {
|
|
686
|
+
default: m(() => [
|
|
687
|
+
q("功能配置")
|
|
650
688
|
]),
|
|
651
689
|
_: 1
|
|
652
690
|
}),
|
|
653
|
-
n("div",
|
|
654
|
-
|
|
655
|
-
|
|
691
|
+
n("div", Bl, [
|
|
692
|
+
Nl,
|
|
693
|
+
p(w, {
|
|
656
694
|
modelValue: a.enable_tradeLogBrush,
|
|
657
|
-
"onUpdate:modelValue":
|
|
695
|
+
"onUpdate:modelValue": o[5] || (o[5] = (t) => a.enable_tradeLogBrush = t)
|
|
658
696
|
}, null, 8, ["modelValue"])
|
|
659
697
|
]),
|
|
660
|
-
n("div",
|
|
661
|
-
|
|
662
|
-
|
|
698
|
+
n("div", Al, [
|
|
699
|
+
Pl,
|
|
700
|
+
p(w, {
|
|
663
701
|
modelValue: a.enable_showScreenTimeRange,
|
|
664
|
-
"onUpdate:modelValue":
|
|
702
|
+
"onUpdate:modelValue": o[6] || (o[6] = (t) => a.enable_showScreenTimeRange = t)
|
|
665
703
|
}, null, 8, ["modelValue"])
|
|
666
704
|
]),
|
|
667
|
-
n("div",
|
|
668
|
-
|
|
669
|
-
|
|
705
|
+
n("div", Ll, [
|
|
706
|
+
Ol,
|
|
707
|
+
p(w, {
|
|
670
708
|
modelValue: a.enable_showScreenMaxPrice,
|
|
671
|
-
"onUpdate:modelValue":
|
|
709
|
+
"onUpdate:modelValue": o[7] || (o[7] = (t) => a.enable_showScreenMaxPrice = t)
|
|
672
710
|
}, null, 8, ["modelValue"])
|
|
673
711
|
]),
|
|
674
|
-
n("div",
|
|
675
|
-
|
|
676
|
-
|
|
712
|
+
n("div", Ul, [
|
|
713
|
+
Rl,
|
|
714
|
+
p(w, {
|
|
677
715
|
modelValue: a.enable_dbClickOpenSingel,
|
|
678
|
-
"onUpdate:modelValue":
|
|
716
|
+
"onUpdate:modelValue": o[8] || (o[8] = (t) => a.enable_dbClickOpenSingel = t)
|
|
679
717
|
}, null, 8, ["modelValue"])
|
|
680
718
|
]),
|
|
681
|
-
|
|
682
|
-
default:
|
|
683
|
-
|
|
719
|
+
p(P, { style: { "margin-top": "44px" } }, {
|
|
720
|
+
default: m(() => [
|
|
721
|
+
q("组件开关")
|
|
684
722
|
]),
|
|
685
723
|
_: 1
|
|
686
724
|
}),
|
|
687
|
-
n("div",
|
|
688
|
-
|
|
689
|
-
|
|
725
|
+
n("div", Dl, [
|
|
726
|
+
Fl,
|
|
727
|
+
p(w, {
|
|
690
728
|
modelValue: a.enable_subChart,
|
|
691
|
-
"onUpdate:modelValue":
|
|
729
|
+
"onUpdate:modelValue": o[9] || (o[9] = (t) => a.enable_subChart = t)
|
|
692
730
|
}, null, 8, ["modelValue"])
|
|
693
731
|
]),
|
|
694
|
-
n("div",
|
|
695
|
-
|
|
696
|
-
|
|
732
|
+
n("div", $l, [
|
|
733
|
+
Ml,
|
|
734
|
+
p(w, {
|
|
697
735
|
modelValue: a.enable_sliderChart,
|
|
698
|
-
"onUpdate:modelValue":
|
|
736
|
+
"onUpdate:modelValue": o[10] || (o[10] = (t) => a.enable_sliderChart = t)
|
|
699
737
|
}, null, 8, ["modelValue"])
|
|
700
738
|
])
|
|
701
739
|
]),
|
|
702
740
|
_: 1
|
|
703
741
|
}),
|
|
704
|
-
n("div",
|
|
705
|
-
|
|
706
|
-
default:
|
|
707
|
-
|
|
742
|
+
n("div", Kl, [
|
|
743
|
+
p(v, { onClick: S }, {
|
|
744
|
+
default: m(() => [
|
|
745
|
+
q(" 恢复默认 ")
|
|
708
746
|
]),
|
|
709
747
|
_: 1
|
|
710
748
|
}),
|
|
711
|
-
|
|
749
|
+
p(v, {
|
|
712
750
|
type: "primary",
|
|
713
|
-
onClick:
|
|
751
|
+
onClick: U
|
|
714
752
|
}, {
|
|
715
|
-
default:
|
|
716
|
-
|
|
753
|
+
default: m(() => [
|
|
754
|
+
q(" 保存配置 ")
|
|
717
755
|
]),
|
|
718
756
|
_: 1
|
|
719
757
|
})
|
|
@@ -724,11 +762,11 @@ const V = (r) => (De("data-v-da9cf1c8"), r = r(), Fe(), r), ul = { class: "kline
|
|
|
724
762
|
]);
|
|
725
763
|
};
|
|
726
764
|
}
|
|
727
|
-
},
|
|
728
|
-
install(
|
|
729
|
-
|
|
765
|
+
}, jl = /* @__PURE__ */ Ye(ql, [["__scopeId", "data-v-da9cf1c8"]]), pa = {
|
|
766
|
+
install(i) {
|
|
767
|
+
i.component("st-klineConfig", jl);
|
|
730
768
|
}
|
|
731
769
|
};
|
|
732
770
|
export {
|
|
733
|
-
|
|
771
|
+
pa as default
|
|
734
772
|
};
|