st-comp 0.0.279 → 0.0.281
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 +13 -14
- package/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +377 -376
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +294 -294
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +19 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +260 -260
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +579 -553
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +17 -17
- package/es/KlinePlus.cjs +2 -2
- package/es/KlinePlus.js +23 -24
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +30 -29
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +517 -425
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +43 -43
- package/es/User.cjs +1 -1
- package/es/User.js +898 -866
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +110 -109
- package/es/VarietyAiHelper.cjs +7 -7
- package/es/VarietyAiHelper.js +615 -464
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +11 -11
- package/es/VarietySearch.cjs +18 -18
- package/es/VarietySearch.js +3079 -2913
- package/es/{VarietySelect-41daac7b.js → VarietySelect-3fc0f0ce.js} +5 -5
- package/es/{VarietySelect-d58eee29.cjs → VarietySelect-d2d25a3d.cjs} +1 -1
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +51 -51
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +1927 -2259
- package/es/_baseClone-f8e5d3ba.cjs +1 -0
- package/es/_baseClone-fb6a3947.js +210 -0
- package/es/base-d987e5c9.cjs +5 -0
- package/es/base-dd156b8e.js +790 -0
- package/es/{castArray-7741a212.js → castArray-18eb6a41.js} +1 -1
- package/es/{castArray-35947698.cjs → castArray-d9ffe84a.cjs} +1 -1
- package/es/clamp-17c4d8aa.cjs +1 -0
- package/es/clamp-c7512966.js +10 -0
- package/es/config-provider-06d8207f.js +86 -0
- package/es/config-provider-bb61bd3e.cjs +1 -0
- package/es/debounce-0a98a9c6.js +57 -0
- package/es/debounce-37b17615.cjs +1 -0
- package/es/dropdown-8fa21bfd.cjs +1 -0
- package/es/dropdown-bcf8d198.js +178 -0
- package/es/el-autocomplete-13b9e372.cjs +1 -0
- package/es/el-autocomplete-419bfbcf.js +434 -0
- package/es/el-button-ee9fe159.js +343 -0
- package/es/el-button-fac5e058.cjs +1 -0
- package/es/el-checkbox-6cf1a71c.cjs +1 -0
- package/es/el-checkbox-b5ac7f04.js +566 -0
- package/es/el-dialog-060b3735.js +252 -0
- package/es/el-dialog-54aebacd.cjs +1 -0
- package/es/el-divider-3f0320be.cjs +1 -0
- package/es/el-divider-c5d72961.js +51 -0
- package/es/el-empty-552baf04.js +159 -0
- package/es/el-empty-58bc2a10.cjs +1 -0
- package/es/el-form-item-2be6b683.js +1265 -0
- package/es/el-form-item-758dfefa.cjs +12 -0
- package/es/el-input-7fe53030.cjs +1 -0
- package/es/el-input-d23f5442.js +761 -0
- package/es/el-input-number-484fb184.js +390 -0
- package/es/el-input-number-f0f4eedb.cjs +1 -0
- package/es/el-loading-9d3e405c.js +190 -0
- package/es/el-loading-fafaaa7b.cjs +1 -0
- package/es/el-menu-item-0ac22681.js +824 -0
- package/es/el-menu-item-c91ae430.cjs +1 -0
- package/es/el-message-box-568a0aa6.js +481 -0
- package/es/el-message-box-ceacb54e.cjs +1 -0
- package/es/el-overlay-9f36e73c.cjs +1 -0
- package/es/el-overlay-cb5c85aa.js +444 -0
- package/es/el-popconfirm-4a8cd35c.cjs +1 -0
- package/es/el-popconfirm-6f8e65c8.js +190 -0
- package/es/el-popper-0454c8e8.js +2235 -0
- package/es/el-popper-acd0ff35.cjs +1 -0
- package/es/{el-scrollbar-323542e7.js → el-scrollbar-0a42c1d0.js} +4 -9
- package/es/{el-scrollbar-bc3f790d.cjs → el-scrollbar-225c6c9e.cjs} +1 -1
- package/es/el-segmented-64dc7258.js +168 -0
- package/es/el-segmented-eb3c8e65.cjs +1 -0
- package/es/el-select-a573c78b.js +1535 -0
- package/es/el-select-c317294a.cjs +1 -0
- package/es/el-table-column-1c443963.js +3651 -0
- package/es/el-table-column-f555115d.cjs +14 -0
- package/es/el-tag-2d8a3fe7.js +77 -0
- package/es/el-tag-dca1292c.cjs +1 -0
- package/es/el-text-649c986a.cjs +1 -0
- package/es/el-text-761e6717.js +84 -0
- package/es/index-11181b5f.cjs +1 -0
- package/es/index-21a3dc89.cjs +1 -0
- package/es/index-33e039e3.cjs +1 -0
- package/es/index-3806160e.js +710 -0
- package/es/{index-a9246d17.cjs → index-4614e8e9.cjs} +109 -109
- package/es/{index-44a382a5.js → index-53beef02.js} +12 -12
- package/es/index-5cada1ed.cjs +1 -0
- package/es/index-6a36e1fc.cjs +1 -0
- package/es/{index-eb96e074.js → index-6a52dc7c.js} +235 -236
- package/es/index-71ba4c28.cjs +1 -0
- package/es/index-78dab605.js +141 -0
- package/es/index-798fec2d.cjs +1 -0
- package/es/index-9573f74b.js +372 -0
- package/es/index-a181f161.js +429 -0
- package/es/{index-a33b2fb8.js → index-ab0ad219.js} +5090 -5090
- package/es/index-beb5cb7d.cjs +1 -0
- package/es/index-c09fc6f5.js +131 -0
- package/es/index-ceae4c47.cjs +1 -0
- package/es/index-d372e68f.cjs +5 -0
- package/es/index-d9379af4.js +413 -0
- package/es/index-dddacf80.js +47 -0
- package/es/index-de9ad85c.js +12 -0
- package/es/index-e2e58ea9.js +468 -0
- package/es/index-f5474dcc.cjs +3 -0
- package/es/{python-a3db9620.cjs → python-60e79979.cjs} +1 -1
- package/es/{python-8a1664e6.js → python-673bf8b8.js} +32 -31
- package/es/{raf-8249652f.cjs → raf-735cc598.cjs} +1 -1
- package/es/{raf-80ef0c0a.js → raf-b4fd1e12.js} +1 -1
- package/es/scroll-07bade1e.cjs +1 -0
- package/es/scroll-70271cb1.js +35 -0
- package/es/style.css +1 -1
- package/es/toNumber-b47ceb68.cjs +1 -0
- package/es/toNumber-f077c66a.js +31 -0
- package/es/use-form-item-76516e50.cjs +2 -0
- package/es/use-form-item-784142b4.js +422 -0
- package/es/use-global-config-7ff9a1c2.cjs +1 -0
- package/es/use-global-config-9a4ccf33.js +71 -0
- package/es/validator-1926345b.cjs +1 -0
- package/es/{validator-c60a8956.js → validator-a66ec4f8.js} +1 -1
- package/es/vnode-6f7b84f0.cjs +1 -0
- package/es/vnode-8ee9bf4e.js +12 -0
- package/es/{zh-cn-b59a0910.js → zh-cn-51c2e528.js} +36 -33
- package/es/zh-cn-ad12d9f5.cjs +1 -0
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +265 -246
- package/lib/{index-62fa175a.js → index-7282d3be.js} +52335 -50156
- package/lib/{python-4a48fa39.js → python-418be57d.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/_initCloneObject-5e73c9c8.js +0 -81
- package/es/_initCloneObject-a5832933.cjs +0 -1
- package/es/base-a5af3db3.js +0 -288
- package/es/base-ef747d02.cjs +0 -5
- package/es/config-provider-06ea6b42.cjs +0 -1
- package/es/config-provider-88b637a8.js +0 -59
- package/es/dayjs.min-2c20abe6.cjs +0 -1
- package/es/dayjs.min-8313b006.js +0 -299
- package/es/debounce-62f5b6e8.cjs +0 -1
- package/es/debounce-8d53f4dd.js +0 -83
- package/es/dropdown-4ce4c3e2.cjs +0 -1
- package/es/dropdown-72fbc15d.js +0 -178
- package/es/el-autocomplete-6cafcdf1.js +0 -329
- package/es/el-autocomplete-e0857c5b.cjs +0 -1
- package/es/el-button-613e0bb2.cjs +0 -1
- package/es/el-button-94d3de38.js +0 -272
- package/es/el-checkbox-6d4cb393.js +0 -459
- package/es/el-checkbox-e90762df.cjs +0 -1
- package/es/el-dialog-02942e22.cjs +0 -1
- package/es/el-dialog-5e30161f.js +0 -276
- package/es/el-divider-4713d74c.cjs +0 -1
- package/es/el-divider-4e059794.js +0 -45
- package/es/el-empty-1697ded8.cjs +0 -1
- package/es/el-empty-33cb66f1.js +0 -183
- package/es/el-form-item-44f060d8.cjs +0 -12
- package/es/el-form-item-9e8969ea.js +0 -1269
- package/es/el-input-342b2def.js +0 -531
- package/es/el-input-9a9a7f7f.cjs +0 -1
- package/es/el-input-number-65c847d6.cjs +0 -1
- package/es/el-input-number-c22b803a.js +0 -311
- package/es/el-loading-8179b497.cjs +0 -1
- package/es/el-loading-bcc51e3d.js +0 -203
- package/es/el-menu-item-339baf6d.js +0 -768
- package/es/el-menu-item-83186444.cjs +0 -1
- package/es/el-message-box-035b699c.js +0 -489
- package/es/el-message-box-c62d3217.cjs +0 -1
- package/es/el-overlay-3e17604b.js +0 -324
- package/es/el-overlay-8f1da9e8.cjs +0 -1
- package/es/el-popconfirm-4e32ec1b.cjs +0 -1
- package/es/el-popconfirm-f8a86e2c.js +0 -162
- package/es/el-popper-a4f3ae4d.cjs +0 -1
- package/es/el-popper-fbd0dcea.js +0 -2094
- package/es/el-segmented-56bd58a8.js +0 -142
- package/es/el-segmented-833ac177.cjs +0 -1
- package/es/el-select-44fa547d.js +0 -1256
- package/es/el-select-70806166.cjs +0 -1
- package/es/el-table-column-3e2cdfca.cjs +0 -14
- package/es/el-table-column-b74a857d.js +0 -3432
- package/es/el-tag-66c83156.js +0 -117
- package/es/el-tag-9c2f329f.cjs +0 -1
- package/es/el-text-034bd3f4.js +0 -67
- package/es/el-text-6b2374bb.cjs +0 -1
- package/es/index-00f6ca75.cjs +0 -1
- package/es/index-185792a7.cjs +0 -1
- package/es/index-1e2a38ab.js +0 -113
- package/es/index-2e331d74.js +0 -10
- package/es/index-3153c1db.cjs +0 -1
- package/es/index-5216d5f5.js +0 -406
- package/es/index-5c0dd943.cjs +0 -1
- package/es/index-657047bb.js +0 -513
- package/es/index-870b6c9d.cjs +0 -1
- package/es/index-8c2d7e05.js +0 -368
- package/es/index-960806da.js +0 -314
- package/es/index-9780a537.cjs +0 -1
- package/es/index-9d16cea8.cjs +0 -1
- package/es/index-ac8dc53d.cjs +0 -1
- package/es/index-bb833443.cjs +0 -1
- package/es/index-c5f2d372.js +0 -326
- package/es/index-c6584658.js +0 -163
- package/es/index-d77a7336.js +0 -204
- package/es/index-eea0bcb3.cjs +0 -1
- package/es/index-f034b910.js +0 -60
- package/es/index-f1c702f6.cjs +0 -1
- package/es/index-f58b2920.cjs +0 -1
- package/es/scroll-679bd6bf.js +0 -35
- package/es/scroll-b108dabd.cjs +0 -1
- package/es/use-form-common-props-ac666630.cjs +0 -1
- package/es/use-form-common-props-ed72e914.js +0 -364
- package/es/use-global-config-23472471.cjs +0 -1
- package/es/use-global-config-ee406d58.js +0 -72
- package/es/validator-366dbf39.cjs +0 -1
- package/es/vnode-5ddb7ed1.js +0 -14
- package/es/vnode-b906ae6d.cjs +0 -1
- package/es/zh-cn-c21d12d8.cjs +0 -1
package/es/KlineConfig.js
CHANGED
|
@@ -1,37 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { E as
|
|
4
|
-
import "./el-
|
|
5
|
-
import { E as
|
|
6
|
-
import {
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { E as
|
|
14
|
-
import { i as
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import "./
|
|
20
|
-
import "./
|
|
21
|
-
import "./index-
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import "./index-
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
import { E as ye } from "./index-d9379af4.js";
|
|
2
|
+
import { E as ge } from "./el-button-ee9fe159.js";
|
|
3
|
+
import { E as we, a as he } from "./el-select-a573c78b.js";
|
|
4
|
+
import { E as ke } from "./el-checkbox-b5ac7f04.js";
|
|
5
|
+
import { E as Ce } from "./el-divider-c5d72961.js";
|
|
6
|
+
import { b as re, o as Ve, p as ue, u as de, w as ce, c as Se, q as Q, a as ee, s as te, v as ie, N as Ee, x as oe, t as Ie } from "./base-dd156b8e.js";
|
|
7
|
+
import { u as ze } from "./index-de9ad85c.js";
|
|
8
|
+
import { u as Te } from "./index-a181f161.js";
|
|
9
|
+
import { E as D, c as Be, l as xe } from "./index-6a52dc7c.js";
|
|
10
|
+
import { f as Ne, u as Pe, U as ae, C as se, I as ne } from "./el-popper-0454c8e8.js";
|
|
11
|
+
import { d as $e, a as Le, u as Ae, E as Oe } from "./el-overlay-cb5c85aa.js";
|
|
12
|
+
import { b as le, c as Ue, i as X, d as Re, e as De, f as Me, g as Fe } from "./use-form-item-784142b4.js";
|
|
13
|
+
import { computed as E, ref as P, watch as Z, onBeforeUnmount as Ke, defineComponent as ve, useSlots as qe, openBlock as n, createBlock as h, Teleport as je, createVNode as d, Transition as He, unref as l, withCtx as m, withDirectives as Je, createElementVNode as o, mergeProps as We, withModifiers as me, normalizeClass as g, createElementBlock as f, renderSlot as O, toDisplayString as F, createCommentVNode as y, normalizeStyle as fe, vShow as Xe, shallowRef as Ye, onMounted as be, withKeys as Ge, resolveDynamicComponent as q, nextTick as Qe, inject as Ze, reactive as _e, createTextVNode as j, Fragment as H, renderList as J } from "vue";
|
|
14
|
+
import { i as et } from "./validator-a66ec4f8.js";
|
|
15
|
+
import { E as tt } from "./el-segmented-64dc7258.js";
|
|
16
|
+
import "./el-scrollbar-0a42c1d0.js";
|
|
17
|
+
import "./el-tag-2d8a3fe7.js";
|
|
18
|
+
import { _ as lt } from "./_plugin-vue_export-helper-dad06003.js";
|
|
19
|
+
import "./use-global-config-9a4ccf33.js";
|
|
20
|
+
import "./index-9573f74b.js";
|
|
21
|
+
import "./index-3806160e.js";
|
|
22
|
+
import "./castArray-18eb6a41.js";
|
|
23
|
+
import "./vnode-8ee9bf4e.js";
|
|
24
|
+
import "./index-c09fc6f5.js";
|
|
25
|
+
import "./scroll-70271cb1.js";
|
|
26
|
+
import "./index-dddacf80.js";
|
|
27
|
+
import "./toNumber-f077c66a.js";
|
|
28
|
+
import "./clamp-c7512966.js";
|
|
29
|
+
import "./_baseClone-fb6a3947.js";
|
|
30
|
+
const at = re({
|
|
31
|
+
...$e,
|
|
31
32
|
direction: {
|
|
32
33
|
type: String,
|
|
33
34
|
default: "rtl",
|
|
34
|
-
values: [
|
|
35
|
+
values: [
|
|
36
|
+
"ltr",
|
|
37
|
+
"rtl",
|
|
38
|
+
"ttb",
|
|
39
|
+
"btt"
|
|
40
|
+
]
|
|
35
41
|
},
|
|
36
42
|
resizable: Boolean,
|
|
37
43
|
size: {
|
|
@@ -50,443 +56,463 @@ const tl = ne({
|
|
|
50
56
|
type: String,
|
|
51
57
|
default: "2"
|
|
52
58
|
}
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
}), st = {
|
|
60
|
+
...Le,
|
|
61
|
+
"resize-start": (e, k) => e instanceof MouseEvent && typeof k == "number",
|
|
62
|
+
resize: (e, k) => e instanceof MouseEvent && typeof k == "number",
|
|
63
|
+
"resize-end": (e, k) => e instanceof MouseEvent && typeof k == "number"
|
|
64
|
+
};
|
|
65
|
+
function nt(e, k, I) {
|
|
66
|
+
const { width: u, height: z } = Ue(), b = E(() => ["ltr", "rtl"].includes(e.direction)), T = E(() => ["ltr", "ttb"].includes(e.direction) ? 1 : -1), a = E(() => b.value ? u.value : z.value), V = E(() => Ve(r.value + T.value * N.value, 4, a.value)), r = P(0), N = P(0), S = P(!1), $ = P(!1);
|
|
67
|
+
let L = [], v = [];
|
|
68
|
+
const t = () => {
|
|
69
|
+
var s;
|
|
70
|
+
const p = (s = k.value) == null ? void 0 : s.closest('[aria-modal="true"]');
|
|
71
|
+
return p ? b.value ? p.offsetWidth : p.offsetHeight : 100;
|
|
61
72
|
};
|
|
62
|
-
|
|
63
|
-
|
|
73
|
+
Z(() => [e.size, e.resizable], () => {
|
|
74
|
+
$.value = !1, r.value = 0, N.value = 0, C();
|
|
64
75
|
});
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
const { pageX:
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
return
|
|
74
|
-
|
|
76
|
+
const B = (p) => {
|
|
77
|
+
e.resizable && ($.value || (r.value = t(), $.value = !0), L = [p.pageX, p.pageY], S.value = !0, I("resize-start", p, r.value), v.push(le(window, "mouseup", C), le(window, "mousemove", c)));
|
|
78
|
+
}, c = (p) => {
|
|
79
|
+
const { pageX: s, pageY: w } = p, A = s - L[0], R = w - L[1];
|
|
80
|
+
N.value = b.value ? A : R, I("resize", p, V.value);
|
|
81
|
+
}, C = (p) => {
|
|
82
|
+
S.value && (L = [], r.value = V.value, N.value = 0, S.value = !1, v.forEach((s) => s == null ? void 0 : s()), v = [], p && I("resize-end", p, r.value));
|
|
83
|
+
}, U = le(k, "mousedown", B);
|
|
84
|
+
return Ke(() => {
|
|
85
|
+
U(), C();
|
|
75
86
|
}), {
|
|
76
|
-
size:
|
|
77
|
-
isResizing:
|
|
78
|
-
isHorizontal:
|
|
87
|
+
size: E(() => $.value ? `${V.value}px` : ue(e.size)),
|
|
88
|
+
isResizing: S,
|
|
89
|
+
isHorizontal: b
|
|
79
90
|
};
|
|
80
91
|
}
|
|
81
|
-
const
|
|
92
|
+
const it = [
|
|
93
|
+
"aria-label",
|
|
94
|
+
"aria-labelledby",
|
|
95
|
+
"aria-describedby"
|
|
96
|
+
], ot = ["id", "aria-level"], rt = ["aria-label"], ut = ["id"];
|
|
97
|
+
var dt = /* @__PURE__ */ ve({
|
|
82
98
|
name: "ElDrawer",
|
|
83
|
-
inheritAttrs: !1
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
el({
|
|
99
|
+
inheritAttrs: !1,
|
|
100
|
+
__name: "drawer",
|
|
101
|
+
props: at,
|
|
102
|
+
emits: st,
|
|
103
|
+
setup(e, { expose: k, emit: I }) {
|
|
104
|
+
const u = e, z = I, b = qe();
|
|
105
|
+
ze({
|
|
91
106
|
scope: "el-drawer",
|
|
92
107
|
from: "the title slot",
|
|
93
108
|
replacement: "the header slot",
|
|
94
109
|
version: "3.0.0",
|
|
95
110
|
ref: "https://element-plus.org/en-US/component/drawer.html#slots"
|
|
96
|
-
},
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
onOpenAutoFocus: E,
|
|
108
|
-
onCloseAutoFocus: h,
|
|
109
|
-
onFocusoutPrevented: N,
|
|
110
|
-
onCloseRequested: l,
|
|
111
|
-
handleClose: f
|
|
112
|
-
} = he(C, w), { isHorizontal: R, size: F, isResizing: a } = sl(C, u);
|
|
113
|
-
return A({
|
|
114
|
-
handleClose: f,
|
|
115
|
-
afterEnter: S,
|
|
116
|
-
afterLeave: I
|
|
117
|
-
}), (i, K) => (o(), k(e(Ie), {
|
|
118
|
-
to: i.appendTo,
|
|
119
|
-
disabled: i.appendTo !== "body" ? !1 : !i.appendToBody
|
|
111
|
+
}, E(() => !!b.title));
|
|
112
|
+
const T = P(), a = P(), V = P(), r = de("drawer"), { t: N } = Te(), { afterEnter: S, afterLeave: $, beforeLeave: L, visible: v, rendered: t, titleId: B, bodyId: c, zIndex: C, onModalClick: U, onOpenAutoFocus: p, onCloseAutoFocus: s, onFocusoutPrevented: w, onCloseRequested: A, handleClose: R } = Ae(u, T), { isHorizontal: i, size: x, isResizing: K } = nt(u, V, z), _ = E(() => u.modalPenetrable && !u.modal);
|
|
113
|
+
return k({ handleClose: R }), (M, W) => (n(), h(je, {
|
|
114
|
+
to: e.appendTo,
|
|
115
|
+
disabled: e.appendTo !== "body" ? !1 : !e.appendToBody
|
|
116
|
+
}, [d(He, {
|
|
117
|
+
name: l(r).b("fade"),
|
|
118
|
+
onAfterEnter: l(S),
|
|
119
|
+
onAfterLeave: l($),
|
|
120
|
+
onBeforeLeave: l(L),
|
|
121
|
+
persisted: ""
|
|
120
122
|
}, {
|
|
121
|
-
default:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
default: m(() => [Je(d(l(Oe), {
|
|
124
|
+
mask: e.modal,
|
|
125
|
+
"overlay-class": [
|
|
126
|
+
l(r).is("drawer"),
|
|
127
|
+
e.modalClass ?? "",
|
|
128
|
+
`${l(r).namespace.value}-modal-drawer`,
|
|
129
|
+
l(r).is("penetrable", _.value)
|
|
130
|
+
],
|
|
131
|
+
"z-index": l(C),
|
|
132
|
+
onClick: l(U)
|
|
133
|
+
}, {
|
|
134
|
+
default: m(() => [d(l(Ne), {
|
|
135
|
+
loop: "",
|
|
136
|
+
trapped: l(v),
|
|
137
|
+
"focus-trap-el": T.value,
|
|
138
|
+
"focus-start-el": a.value,
|
|
139
|
+
onFocusAfterTrapped: l(p),
|
|
140
|
+
onFocusAfterReleased: l(s),
|
|
141
|
+
onFocusoutPrevented: l(w),
|
|
142
|
+
onReleaseRequested: l(A)
|
|
128
143
|
}, {
|
|
129
|
-
default:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
i.showClose ? (o(), y("button", {
|
|
195
|
-
key: 2,
|
|
196
|
-
"aria-label": e(g)("el.drawer.close"),
|
|
197
|
-
class: b(e(t).e("close-btn")),
|
|
198
|
-
type: "button",
|
|
199
|
-
onClick: e(f)
|
|
200
|
-
}, [
|
|
201
|
-
m(e(D), {
|
|
202
|
-
class: b(e(t).e("close"))
|
|
203
|
-
}, {
|
|
204
|
-
default: p(() => [
|
|
205
|
-
m(e(He))
|
|
206
|
-
]),
|
|
207
|
-
_: 1
|
|
208
|
-
}, 8, ["class"])
|
|
209
|
-
], 10, ["aria-label", "onClick"])) : _("v-if", !0)
|
|
210
|
-
], 2)) : _("v-if", !0),
|
|
211
|
-
e(U) ? (o(), y("div", {
|
|
212
|
-
key: 1,
|
|
213
|
-
id: e(s),
|
|
214
|
-
class: b([e(t).e("body"), i.bodyClass])
|
|
215
|
-
}, [
|
|
216
|
-
$(i.$slots, "default")
|
|
217
|
-
], 10, ["id"])) : _("v-if", !0),
|
|
218
|
-
i.$slots.footer ? (o(), y("div", {
|
|
219
|
-
key: 2,
|
|
220
|
-
class: b([e(t).e("footer"), i.footerClass])
|
|
221
|
-
}, [
|
|
222
|
-
$(i.$slots, "footer")
|
|
223
|
-
], 2)) : _("v-if", !0),
|
|
224
|
-
i.resizable ? (o(), y("div", {
|
|
225
|
-
key: 3,
|
|
226
|
-
ref_key: "draggerRef",
|
|
227
|
-
ref: u,
|
|
228
|
-
style: me({ zIndex: e(L) }),
|
|
229
|
-
class: b(e(t).e("dragger"))
|
|
230
|
-
}, null, 6)) : _("v-if", !0)
|
|
231
|
-
], 16, ["aria-label", "aria-labelledby", "aria-describedby", "onClick"])
|
|
232
|
-
]),
|
|
233
|
-
_: 3
|
|
234
|
-
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
235
|
-
]),
|
|
236
|
-
_: 3
|
|
237
|
-
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
|
238
|
-
[Re, e(z)]
|
|
239
|
-
])
|
|
240
|
-
];
|
|
241
|
-
}),
|
|
144
|
+
default: m(() => [o("div", We({
|
|
145
|
+
ref_key: "drawerRef",
|
|
146
|
+
ref: T,
|
|
147
|
+
"aria-modal": "true",
|
|
148
|
+
"aria-label": e.title || void 0,
|
|
149
|
+
"aria-labelledby": e.title ? void 0 : l(B),
|
|
150
|
+
"aria-describedby": l(c)
|
|
151
|
+
}, M.$attrs, {
|
|
152
|
+
class: [
|
|
153
|
+
l(r).b(),
|
|
154
|
+
e.direction,
|
|
155
|
+
l(v) && "open",
|
|
156
|
+
l(r).is("dragging", l(K))
|
|
157
|
+
],
|
|
158
|
+
style: { [l(i) ? "width" : "height"]: l(x) },
|
|
159
|
+
role: "dialog",
|
|
160
|
+
onClick: W[1] || (W[1] = me(() => {
|
|
161
|
+
}, ["stop"]))
|
|
162
|
+
}), [
|
|
163
|
+
o("span", {
|
|
164
|
+
ref_key: "focusStartRef",
|
|
165
|
+
ref: a,
|
|
166
|
+
class: g(l(r).e("sr-focus")),
|
|
167
|
+
tabindex: "-1"
|
|
168
|
+
}, null, 2),
|
|
169
|
+
e.withHeader ? (n(), f("header", {
|
|
170
|
+
key: 0,
|
|
171
|
+
class: g([l(r).e("header"), e.headerClass])
|
|
172
|
+
}, [M.$slots.title ? O(M.$slots, "title", { key: 1 }, () => [y(" DEPRECATED SLOT ")]) : O(M.$slots, "header", {
|
|
173
|
+
key: 0,
|
|
174
|
+
close: l(R),
|
|
175
|
+
titleId: l(B),
|
|
176
|
+
titleClass: l(r).e("title")
|
|
177
|
+
}, () => [o("span", {
|
|
178
|
+
id: l(B),
|
|
179
|
+
role: "heading",
|
|
180
|
+
"aria-level": e.headerAriaLevel,
|
|
181
|
+
class: g(l(r).e("title"))
|
|
182
|
+
}, F(e.title), 11, ot)]), e.showClose ? (n(), f("button", {
|
|
183
|
+
key: 2,
|
|
184
|
+
"aria-label": l(N)("el.drawer.close"),
|
|
185
|
+
class: g(l(r).e("close-btn")),
|
|
186
|
+
type: "button",
|
|
187
|
+
onClick: W[0] || (W[0] = (...pe) => l(R) && l(R)(...pe))
|
|
188
|
+
}, [d(l(D), { class: g(l(r).e("close")) }, {
|
|
189
|
+
default: m(() => [d(l(Be))]),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["class"])], 10, rt)) : y("v-if", !0)], 2)) : y("v-if", !0),
|
|
192
|
+
l(t) ? (n(), f("div", {
|
|
193
|
+
key: 1,
|
|
194
|
+
id: l(c),
|
|
195
|
+
class: g([l(r).e("body"), e.bodyClass])
|
|
196
|
+
}, [O(M.$slots, "default")], 10, ut)) : y("v-if", !0),
|
|
197
|
+
M.$slots.footer ? (n(), f("div", {
|
|
198
|
+
key: 2,
|
|
199
|
+
class: g([l(r).e("footer"), e.footerClass])
|
|
200
|
+
}, [O(M.$slots, "footer")], 2)) : y("v-if", !0),
|
|
201
|
+
e.resizable ? (n(), f("div", {
|
|
202
|
+
key: 3,
|
|
203
|
+
ref_key: "draggerRef",
|
|
204
|
+
ref: V,
|
|
205
|
+
style: fe({ zIndex: l(C) }),
|
|
206
|
+
class: g(l(r).e("dragger"))
|
|
207
|
+
}, null, 6)) : y("v-if", !0)
|
|
208
|
+
], 16, it)]),
|
|
242
209
|
_: 3
|
|
243
|
-
}, 8, [
|
|
244
|
-
|
|
210
|
+
}, 8, [
|
|
211
|
+
"trapped",
|
|
212
|
+
"focus-trap-el",
|
|
213
|
+
"focus-start-el",
|
|
214
|
+
"onFocusAfterTrapped",
|
|
215
|
+
"onFocusAfterReleased",
|
|
216
|
+
"onFocusoutPrevented",
|
|
217
|
+
"onReleaseRequested"
|
|
218
|
+
])]),
|
|
219
|
+
_: 3
|
|
220
|
+
}, 8, [
|
|
221
|
+
"mask",
|
|
222
|
+
"overlay-class",
|
|
223
|
+
"z-index",
|
|
224
|
+
"onClick"
|
|
225
|
+
]), [[Xe, l(v)]])]),
|
|
245
226
|
_: 3
|
|
246
|
-
}, 8, [
|
|
227
|
+
}, 8, [
|
|
228
|
+
"name",
|
|
229
|
+
"onAfterEnter",
|
|
230
|
+
"onAfterLeave",
|
|
231
|
+
"onBeforeLeave"
|
|
232
|
+
])], 8, ["to", "disabled"]));
|
|
247
233
|
}
|
|
248
|
-
});
|
|
249
|
-
|
|
250
|
-
|
|
234
|
+
}), ct = dt;
|
|
235
|
+
const vt = ce(ct), mt = re({
|
|
236
|
+
/**
|
|
237
|
+
* @description binding value, it should be equivalent to either `active-value` or `inactive-value`, by default it's `boolean` type
|
|
238
|
+
*/
|
|
251
239
|
modelValue: {
|
|
252
|
-
type: [
|
|
240
|
+
type: [
|
|
241
|
+
Boolean,
|
|
242
|
+
String,
|
|
243
|
+
Number
|
|
244
|
+
],
|
|
253
245
|
default: !1
|
|
254
246
|
},
|
|
255
|
-
|
|
247
|
+
/**
|
|
248
|
+
* @description whether Switch is disabled
|
|
249
|
+
*/
|
|
250
|
+
disabled: {
|
|
251
|
+
type: Boolean,
|
|
252
|
+
default: void 0
|
|
253
|
+
},
|
|
254
|
+
/**
|
|
255
|
+
* @description whether Switch is in loading state
|
|
256
|
+
*/
|
|
256
257
|
loading: Boolean,
|
|
258
|
+
/**
|
|
259
|
+
* @description size of Switch
|
|
260
|
+
*/
|
|
257
261
|
size: {
|
|
258
262
|
type: String,
|
|
259
|
-
validator:
|
|
263
|
+
validator: et
|
|
260
264
|
},
|
|
265
|
+
/**
|
|
266
|
+
* @description width of Switch
|
|
267
|
+
*/
|
|
261
268
|
width: {
|
|
262
269
|
type: [String, Number],
|
|
263
270
|
default: ""
|
|
264
271
|
},
|
|
272
|
+
/**
|
|
273
|
+
* @description whether icon or text is displayed inside dot, only the first character will be rendered for text
|
|
274
|
+
*/
|
|
265
275
|
inlinePrompt: Boolean,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
},
|
|
276
|
+
/**
|
|
277
|
+
* @description component of the icon displayed in action when in `off` state
|
|
278
|
+
*/
|
|
279
|
+
inactiveActionIcon: { type: X },
|
|
280
|
+
/**
|
|
281
|
+
* @description component of the icon displayed in action when in `on` state
|
|
282
|
+
*/
|
|
283
|
+
activeActionIcon: { type: X },
|
|
284
|
+
/**
|
|
285
|
+
* @description component of the icon displayed when in `on` state, overrides `active-text`
|
|
286
|
+
*/
|
|
287
|
+
activeIcon: { type: X },
|
|
288
|
+
/**
|
|
289
|
+
* @description component of the icon displayed when in `off` state, overrides `inactive-text`
|
|
290
|
+
*/
|
|
291
|
+
inactiveIcon: { type: X },
|
|
292
|
+
/**
|
|
293
|
+
* @description text displayed when in `on` state
|
|
294
|
+
*/
|
|
278
295
|
activeText: {
|
|
279
296
|
type: String,
|
|
280
297
|
default: ""
|
|
281
298
|
},
|
|
299
|
+
/**
|
|
300
|
+
* @description text displayed when in `off` state
|
|
301
|
+
*/
|
|
282
302
|
inactiveText: {
|
|
283
303
|
type: String,
|
|
284
304
|
default: ""
|
|
285
305
|
},
|
|
306
|
+
/**
|
|
307
|
+
* @description switch value when in `on` state
|
|
308
|
+
*/
|
|
286
309
|
activeValue: {
|
|
287
|
-
type: [
|
|
310
|
+
type: [
|
|
311
|
+
Boolean,
|
|
312
|
+
String,
|
|
313
|
+
Number
|
|
314
|
+
],
|
|
288
315
|
default: !0
|
|
289
316
|
},
|
|
317
|
+
/**
|
|
318
|
+
* @description switch value when in `off` state
|
|
319
|
+
*/
|
|
290
320
|
inactiveValue: {
|
|
291
|
-
type: [
|
|
321
|
+
type: [
|
|
322
|
+
Boolean,
|
|
323
|
+
String,
|
|
324
|
+
Number
|
|
325
|
+
],
|
|
292
326
|
default: !1
|
|
293
327
|
},
|
|
328
|
+
/**
|
|
329
|
+
* @description input name of Switch
|
|
330
|
+
*/
|
|
294
331
|
name: {
|
|
295
332
|
type: String,
|
|
296
333
|
default: ""
|
|
297
334
|
},
|
|
335
|
+
/**
|
|
336
|
+
* @description whether to trigger form validation
|
|
337
|
+
*/
|
|
298
338
|
validateEvent: {
|
|
299
339
|
type: Boolean,
|
|
300
340
|
default: !0
|
|
301
341
|
},
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
342
|
+
/**
|
|
343
|
+
* @description before-change hook before the switch state changes. If `false` is returned or a `Promise` is returned and then is rejected, will stop switching
|
|
344
|
+
*/
|
|
345
|
+
beforeChange: { type: Se(Function) },
|
|
346
|
+
/**
|
|
347
|
+
* @description id for input
|
|
348
|
+
*/
|
|
305
349
|
id: String,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
[ae]: (
|
|
313
|
-
[se]: (
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
u.
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
350
|
+
/**
|
|
351
|
+
* @description tabindex for input
|
|
352
|
+
*/
|
|
353
|
+
tabindex: { type: [String, Number] },
|
|
354
|
+
...Pe(["ariaLabel"])
|
|
355
|
+
}), ft = {
|
|
356
|
+
[ae]: (e) => Q(e) || ee(e) || te(e),
|
|
357
|
+
[se]: (e) => Q(e) || ee(e) || te(e),
|
|
358
|
+
[ne]: (e) => Q(e) || ee(e) || te(e)
|
|
359
|
+
}, bt = [
|
|
360
|
+
"id",
|
|
361
|
+
"aria-checked",
|
|
362
|
+
"aria-disabled",
|
|
363
|
+
"aria-label",
|
|
364
|
+
"name",
|
|
365
|
+
"true-value",
|
|
366
|
+
"false-value",
|
|
367
|
+
"disabled",
|
|
368
|
+
"tabindex"
|
|
369
|
+
], pt = ["aria-hidden"], yt = { key: 1 }, gt = { key: 1 }, wt = ["aria-hidden"], Y = "ElSwitch";
|
|
370
|
+
var ht = /* @__PURE__ */ ve({
|
|
371
|
+
name: Y,
|
|
372
|
+
__name: "switch",
|
|
373
|
+
props: mt,
|
|
374
|
+
emits: ft,
|
|
375
|
+
setup(e, { expose: k, emit: I }) {
|
|
376
|
+
const u = e, z = I, { formItem: b } = Re(), T = De(), a = de("switch"), { inputId: V } = Me(u, { formItemContext: b }), r = Fe(E(() => {
|
|
377
|
+
if (u.loading)
|
|
378
|
+
return !0;
|
|
379
|
+
})), N = P(u.modelValue !== !1), S = Ye(), $ = E(() => [
|
|
380
|
+
a.b(),
|
|
381
|
+
a.m(T.value),
|
|
382
|
+
a.is("disabled", r.value),
|
|
383
|
+
a.is("checked", c.value)
|
|
384
|
+
]), L = E(() => [
|
|
385
|
+
a.e("label"),
|
|
386
|
+
a.em("label", "left"),
|
|
387
|
+
a.is("active", !c.value)
|
|
388
|
+
]), v = E(() => [
|
|
389
|
+
a.e("label"),
|
|
390
|
+
a.em("label", "right"),
|
|
391
|
+
a.is("active", c.value)
|
|
392
|
+
]), t = E(() => ({ width: ue(u.width) }));
|
|
393
|
+
Z(() => u.modelValue, () => {
|
|
394
|
+
N.value = !0;
|
|
341
395
|
});
|
|
342
|
-
const
|
|
343
|
-
[
|
|
344
|
-
var
|
|
345
|
-
|
|
396
|
+
const B = E(() => N.value ? u.modelValue : !1), c = E(() => B.value === u.activeValue);
|
|
397
|
+
[u.activeValue, u.inactiveValue].includes(B.value) || (ie(Y, "model-value must be active-value or inactive-value"), z(ae, u.inactiveValue), z(se, u.inactiveValue), z(ne, u.inactiveValue)), Z(c, (s) => {
|
|
398
|
+
var w;
|
|
399
|
+
S.value.checked = s, u.validateEvent && ((w = b == null ? void 0 : b.validate) == null || w.call(b, "change").catch(Ee));
|
|
346
400
|
});
|
|
347
|
-
const
|
|
348
|
-
const
|
|
349
|
-
|
|
350
|
-
|
|
401
|
+
const C = () => {
|
|
402
|
+
const s = c.value ? u.inactiveValue : u.activeValue;
|
|
403
|
+
z(ae, s), z(se, s), z(ne, s), Qe(() => {
|
|
404
|
+
S.value.checked = c.value;
|
|
351
405
|
});
|
|
352
|
-
},
|
|
353
|
-
if (
|
|
406
|
+
}, U = () => {
|
|
407
|
+
if (r.value)
|
|
354
408
|
return;
|
|
355
|
-
const { beforeChange:
|
|
356
|
-
if (!
|
|
357
|
-
|
|
409
|
+
const { beforeChange: s } = u;
|
|
410
|
+
if (!s) {
|
|
411
|
+
C();
|
|
358
412
|
return;
|
|
359
413
|
}
|
|
360
|
-
const
|
|
361
|
-
[
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
var l, f;
|
|
370
|
-
(f = (l = I.value) == null ? void 0 : l.focus) == null || f.call(l);
|
|
414
|
+
const w = s();
|
|
415
|
+
[oe(w), Q(w)].includes(!0) || Ie(Y, "beforeChange must return type `Promise<boolean>` or `boolean`"), oe(w) ? w.then((A) => {
|
|
416
|
+
A && C();
|
|
417
|
+
}).catch((A) => {
|
|
418
|
+
ie(Y, `some error occurred: ${A}`);
|
|
419
|
+
}) : w && C();
|
|
420
|
+
}, p = () => {
|
|
421
|
+
var s, w;
|
|
422
|
+
(w = (s = S.value) == null ? void 0 : s.focus) == null || w.call(s);
|
|
371
423
|
};
|
|
372
|
-
return
|
|
373
|
-
|
|
374
|
-
}),
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
424
|
+
return be(() => {
|
|
425
|
+
S.value.checked = c.value;
|
|
426
|
+
}), k({
|
|
427
|
+
/**
|
|
428
|
+
* @description manual focus to the switch component
|
|
429
|
+
**/
|
|
430
|
+
focus: p,
|
|
431
|
+
/**
|
|
432
|
+
* @description whether Switch is checked
|
|
433
|
+
*/
|
|
434
|
+
checked: c
|
|
435
|
+
}), (s, w) => (n(), f("div", {
|
|
436
|
+
class: g($.value),
|
|
437
|
+
onClick: me(U, ["prevent"])
|
|
380
438
|
}, [
|
|
381
|
-
|
|
382
|
-
id:
|
|
439
|
+
o("input", {
|
|
440
|
+
id: l(V),
|
|
383
441
|
ref_key: "input",
|
|
384
|
-
ref:
|
|
385
|
-
class:
|
|
442
|
+
ref: S,
|
|
443
|
+
class: g(l(a).e("input")),
|
|
386
444
|
type: "checkbox",
|
|
387
445
|
role: "switch",
|
|
388
|
-
"aria-checked":
|
|
389
|
-
"aria-disabled":
|
|
390
|
-
"aria-label":
|
|
391
|
-
name:
|
|
392
|
-
"true-value":
|
|
393
|
-
"false-value":
|
|
394
|
-
disabled:
|
|
395
|
-
tabindex:
|
|
396
|
-
onChange:
|
|
397
|
-
onKeydown:
|
|
398
|
-
}, null, 42,
|
|
399
|
-
!
|
|
446
|
+
"aria-checked": c.value,
|
|
447
|
+
"aria-disabled": l(r),
|
|
448
|
+
"aria-label": e.ariaLabel,
|
|
449
|
+
name: e.name,
|
|
450
|
+
"true-value": e.activeValue,
|
|
451
|
+
"false-value": e.inactiveValue,
|
|
452
|
+
disabled: l(r),
|
|
453
|
+
tabindex: e.tabindex,
|
|
454
|
+
onChange: C,
|
|
455
|
+
onKeydown: Ge(U, ["enter"])
|
|
456
|
+
}, null, 42, bt),
|
|
457
|
+
!e.inlinePrompt && (e.inactiveIcon || e.inactiveText || s.$slots.inactive) ? (n(), f("span", {
|
|
400
458
|
key: 0,
|
|
401
|
-
class:
|
|
402
|
-
}, [
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
]),
|
|
407
|
-
_: 1
|
|
408
|
-
})) : _("v-if", !0),
|
|
409
|
-
!l.inactiveIcon && l.inactiveText ? (o(), y("span", {
|
|
410
|
-
key: 1,
|
|
411
|
-
"aria-hidden": e(d)
|
|
412
|
-
}, M(l.inactiveText), 9, ["aria-hidden"])) : _("v-if", !0)
|
|
413
|
-
], 2)) : _("v-if", !0),
|
|
414
|
-
n("span", {
|
|
415
|
-
ref_key: "core",
|
|
416
|
-
ref: O,
|
|
417
|
-
class: b(e(u).e("core")),
|
|
418
|
-
style: me(e(s))
|
|
419
|
-
}, [
|
|
420
|
-
l.inlinePrompt ? (o(), y("div", {
|
|
421
|
-
key: 0,
|
|
422
|
-
class: b(e(u).e("inner"))
|
|
423
|
-
}, [
|
|
424
|
-
l.activeIcon || l.inactiveIcon ? (o(), k(e(D), {
|
|
425
|
-
key: 0,
|
|
426
|
-
class: b(e(u).is("icon"))
|
|
427
|
-
}, {
|
|
428
|
-
default: p(() => [
|
|
429
|
-
(o(), k(q(e(d) ? l.activeIcon : l.inactiveIcon)))
|
|
430
|
-
]),
|
|
431
|
-
_: 1
|
|
432
|
-
}, 8, ["class"])) : l.activeText || l.inactiveText ? (o(), y("span", {
|
|
433
|
-
key: 1,
|
|
434
|
-
class: b(e(u).is("text")),
|
|
435
|
-
"aria-hidden": !e(d)
|
|
436
|
-
}, M(e(d) ? l.activeText : l.inactiveText), 11, ["aria-hidden"])) : _("v-if", !0)
|
|
437
|
-
], 2)) : _("v-if", !0),
|
|
438
|
-
n("div", {
|
|
439
|
-
class: b(e(u).e("action"))
|
|
440
|
-
}, [
|
|
441
|
-
l.loading ? (o(), k(e(D), {
|
|
442
|
-
key: 0,
|
|
443
|
-
class: b(e(u).is("loading"))
|
|
444
|
-
}, {
|
|
445
|
-
default: p(() => [
|
|
446
|
-
m(e(Je))
|
|
447
|
-
]),
|
|
448
|
-
_: 1
|
|
449
|
-
}, 8, ["class"])) : e(d) ? $(l.$slots, "active-action", { key: 1 }, () => [
|
|
450
|
-
l.activeActionIcon ? (o(), k(e(D), { key: 0 }, {
|
|
451
|
-
default: p(() => [
|
|
452
|
-
(o(), k(q(l.activeActionIcon)))
|
|
453
|
-
]),
|
|
454
|
-
_: 1
|
|
455
|
-
})) : _("v-if", !0)
|
|
456
|
-
]) : e(d) ? _("v-if", !0) : $(l.$slots, "inactive-action", { key: 2 }, () => [
|
|
457
|
-
l.inactiveActionIcon ? (o(), k(e(D), { key: 0 }, {
|
|
458
|
-
default: p(() => [
|
|
459
|
-
(o(), k(q(l.inactiveActionIcon)))
|
|
460
|
-
]),
|
|
461
|
-
_: 1
|
|
462
|
-
})) : _("v-if", !0)
|
|
463
|
-
])
|
|
464
|
-
], 2)
|
|
465
|
-
], 6),
|
|
466
|
-
!l.inlinePrompt && (l.activeIcon || l.activeText) ? (o(), y("span", {
|
|
459
|
+
class: g(L.value)
|
|
460
|
+
}, [O(s.$slots, "inactive", {}, () => [e.inactiveIcon ? (n(), h(l(D), { key: 0 }, {
|
|
461
|
+
default: m(() => [(n(), h(q(e.inactiveIcon)))]),
|
|
462
|
+
_: 1
|
|
463
|
+
})) : y("v-if", !0), !e.inactiveIcon && e.inactiveText ? (n(), f("span", {
|
|
467
464
|
key: 1,
|
|
468
|
-
|
|
469
|
-
},
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
465
|
+
"aria-hidden": c.value
|
|
466
|
+
}, F(e.inactiveText), 9, pt)) : y("v-if", !0)])], 2)) : y("v-if", !0),
|
|
467
|
+
o("span", {
|
|
468
|
+
class: g(l(a).e("core")),
|
|
469
|
+
style: fe(t.value)
|
|
470
|
+
}, [e.inlinePrompt ? (n(), f("div", {
|
|
471
|
+
key: 0,
|
|
472
|
+
class: g(l(a).e("inner"))
|
|
473
|
+
}, [c.value ? (n(), f("div", {
|
|
474
|
+
key: 1,
|
|
475
|
+
class: g(l(a).e("inner-wrapper"))
|
|
476
|
+
}, [O(s.$slots, "active", {}, () => [e.activeIcon ? (n(), h(l(D), { key: 0 }, {
|
|
477
|
+
default: m(() => [(n(), h(q(e.activeIcon)))]),
|
|
478
|
+
_: 1
|
|
479
|
+
})) : y("v-if", !0), !e.activeIcon && e.activeText ? (n(), f("span", gt, F(e.activeText), 1)) : y("v-if", !0)])], 2)) : (n(), f("div", {
|
|
480
|
+
key: 0,
|
|
481
|
+
class: g(l(a).e("inner-wrapper"))
|
|
482
|
+
}, [O(s.$slots, "inactive", {}, () => [e.inactiveIcon ? (n(), h(l(D), { key: 0 }, {
|
|
483
|
+
default: m(() => [(n(), h(q(e.inactiveIcon)))]),
|
|
484
|
+
_: 1
|
|
485
|
+
})) : y("v-if", !0), !e.inactiveIcon && e.inactiveText ? (n(), f("span", yt, F(e.inactiveText), 1)) : y("v-if", !0)])], 2))], 2)) : y("v-if", !0), o("div", { class: g(l(a).e("action")) }, [e.loading ? (n(), h(l(D), {
|
|
486
|
+
key: 0,
|
|
487
|
+
class: g(l(a).is("loading"))
|
|
488
|
+
}, {
|
|
489
|
+
default: m(() => [d(l(xe))]),
|
|
490
|
+
_: 1
|
|
491
|
+
}, 8, ["class"])) : c.value ? O(s.$slots, "active-action", { key: 1 }, () => [e.activeActionIcon ? (n(), h(l(D), { key: 0 }, {
|
|
492
|
+
default: m(() => [(n(), h(q(e.activeActionIcon)))]),
|
|
493
|
+
_: 1
|
|
494
|
+
})) : y("v-if", !0)]) : c.value ? y("v-if", !0) : O(s.$slots, "inactive-action", { key: 2 }, () => [e.inactiveActionIcon ? (n(), h(l(D), { key: 0 }, {
|
|
495
|
+
default: m(() => [(n(), h(q(e.inactiveActionIcon)))]),
|
|
496
|
+
_: 1
|
|
497
|
+
})) : y("v-if", !0)])], 2)], 6),
|
|
498
|
+
!e.inlinePrompt && (e.activeIcon || e.activeText || s.$slots.active) ? (n(), f("span", {
|
|
499
|
+
key: 1,
|
|
500
|
+
class: g(v.value)
|
|
501
|
+
}, [O(s.$slots, "active", {}, () => [e.activeIcon ? (n(), h(l(D), { key: 0 }, {
|
|
502
|
+
default: m(() => [(n(), h(q(e.activeIcon)))]),
|
|
503
|
+
_: 1
|
|
504
|
+
})) : y("v-if", !0), !e.activeIcon && e.activeText ? (n(), f("span", {
|
|
505
|
+
key: 1,
|
|
506
|
+
"aria-hidden": !c.value
|
|
507
|
+
}, F(e.activeText), 9, wt)) : y("v-if", !0)])], 2)) : y("v-if", !0)
|
|
508
|
+
], 2));
|
|
482
509
|
}
|
|
483
|
-
});
|
|
484
|
-
|
|
485
|
-
const
|
|
486
|
-
const fl = [
|
|
510
|
+
}), kt = ht;
|
|
511
|
+
const Ct = ce(kt);
|
|
512
|
+
const Vt = [
|
|
487
513
|
{ label: "买卖", value: 0 },
|
|
488
514
|
{ label: "开平", value: 1 }
|
|
489
|
-
],
|
|
515
|
+
], G = () => ({
|
|
490
516
|
/**
|
|
491
517
|
* @description: 偏好设置
|
|
492
518
|
*/
|
|
@@ -523,11 +549,11 @@ const fl = [
|
|
|
523
549
|
// 是否启用副图
|
|
524
550
|
enable_sliderChart: !0
|
|
525
551
|
// 是否启用拖拽轴
|
|
526
|
-
}),
|
|
527
|
-
var
|
|
528
|
-
return ((
|
|
552
|
+
}), St = (e, k) => {
|
|
553
|
+
var I;
|
|
554
|
+
return ((I = k.find((u) => u.value === e)) == null ? void 0 : I.label) ?? "-";
|
|
529
555
|
};
|
|
530
|
-
const
|
|
556
|
+
const Et = { class: "kline-config element-dark" }, It = { class: "setting-item" }, zt = { class: "setting-item" }, Tt = { class: "setting-item" }, Bt = { class: "setting-item" }, xt = { class: "setting-item" }, Nt = { class: "mode" }, Pt = { class: "cycleName" }, $t = { class: "content" }, Lt = { class: "setting-item" }, At = { class: "setting-item" }, Ot = { class: "setting-item" }, Ut = { class: "setting-item" }, Rt = { class: "setting-item" }, Dt = { class: "setting-item" }, Mt = { class: "setting-item" }, Ft = { class: "setting-footer" }, Kt = {
|
|
531
557
|
__name: "index",
|
|
532
558
|
props: {
|
|
533
559
|
indicatorStore: { type: Object, default: () => ({}) },
|
|
@@ -538,128 +564,128 @@ const P = (r) => (Ke("data-v-cbe82a27"), r = r(), qe(), r), yl = { class: "kline
|
|
|
538
564
|
cycleOptions: { type: Array, default: () => [] }
|
|
539
565
|
},
|
|
540
566
|
emits: "callBack",
|
|
541
|
-
setup(
|
|
542
|
-
const { request:
|
|
543
|
-
Object.assign(
|
|
544
|
-
},
|
|
545
|
-
const v = JSON.stringify(
|
|
546
|
-
|
|
547
|
-
},
|
|
548
|
-
if (
|
|
549
|
-
const { body: v } = await
|
|
550
|
-
Object.assign(
|
|
567
|
+
setup(e, { expose: k, emit: I }) {
|
|
568
|
+
const { request: u } = Ze("stConfig"), z = I, b = e, T = P(!1), a = _e({}), V = P([]), r = P([]), N = () => {
|
|
569
|
+
Object.assign(a, G());
|
|
570
|
+
}, S = async () => {
|
|
571
|
+
const v = JSON.stringify(a);
|
|
572
|
+
b.origin === "server" ? await u.post("/common/qt/updateUserConfig", { appId: 1, json: v }) : localStorage.setItem("userKlineConfig", v), z("callBack", v), T.value = !1;
|
|
573
|
+
}, $ = async () => {
|
|
574
|
+
if (b.origin === "server") {
|
|
575
|
+
const { body: v } = await u.post("/common/qt/getUserConfig", { appId: 1 });
|
|
576
|
+
Object.assign(a, G(), v ? JSON.parse(v) : {});
|
|
551
577
|
} else {
|
|
552
578
|
const v = localStorage.getItem("userKlineConfig");
|
|
553
|
-
Object.assign(
|
|
579
|
+
Object.assign(a, G(), v ? JSON.parse(v) : {});
|
|
554
580
|
}
|
|
555
|
-
},
|
|
556
|
-
if (
|
|
557
|
-
const { body: v } = await
|
|
558
|
-
|
|
559
|
-
label:
|
|
560
|
-
value:
|
|
581
|
+
}, L = async () => {
|
|
582
|
+
if (b.origin === "server") {
|
|
583
|
+
const { body: v } = await u.post("/common/qt/getDict", { dictIds: [1002] });
|
|
584
|
+
V.value = v[1002].map((t) => ({
|
|
585
|
+
label: t.dictName,
|
|
586
|
+
value: t.dictCode
|
|
561
587
|
}));
|
|
562
588
|
} else
|
|
563
|
-
|
|
589
|
+
V.value = b.cycleOptions;
|
|
564
590
|
};
|
|
565
|
-
return
|
|
566
|
-
|
|
567
|
-
}),
|
|
568
|
-
() =>
|
|
591
|
+
return be(() => {
|
|
592
|
+
L(), r.value = b.indicatorStore.mainIndicatorList ?? [];
|
|
593
|
+
}), Z(
|
|
594
|
+
() => b.indicatorStore.mainIndicatorList,
|
|
569
595
|
() => {
|
|
570
|
-
|
|
596
|
+
r.value = b.indicatorStore.mainIndicatorList ?? [];
|
|
571
597
|
}
|
|
572
|
-
),
|
|
598
|
+
), k({
|
|
573
599
|
// 打开
|
|
574
600
|
open: async () => {
|
|
575
|
-
await
|
|
601
|
+
await $(), T.value = !0;
|
|
576
602
|
},
|
|
577
603
|
// 获取默认配置
|
|
578
|
-
getDefaultUserKlineConfig:
|
|
579
|
-
}), (v,
|
|
580
|
-
const
|
|
581
|
-
return
|
|
582
|
-
|
|
583
|
-
modelValue:
|
|
584
|
-
"onUpdate:modelValue":
|
|
604
|
+
getDefaultUserKlineConfig: G
|
|
605
|
+
}), (v, t) => {
|
|
606
|
+
const B = Ce, c = we, C = he, U = ke, p = tt, s = Ct, w = ye, A = ge, R = vt;
|
|
607
|
+
return n(), f("div", Et, [
|
|
608
|
+
d(R, {
|
|
609
|
+
modelValue: T.value,
|
|
610
|
+
"onUpdate:modelValue": t[12] || (t[12] = (i) => T.value = i),
|
|
585
611
|
title: "K线自定义配置",
|
|
586
612
|
size: 320
|
|
587
613
|
}, {
|
|
588
|
-
default:
|
|
589
|
-
|
|
590
|
-
default:
|
|
591
|
-
|
|
592
|
-
default:
|
|
593
|
-
j("偏好设置")
|
|
594
|
-
]),
|
|
614
|
+
default: m(() => [
|
|
615
|
+
d(w, { class: "setting-main" }, {
|
|
616
|
+
default: m(() => [
|
|
617
|
+
d(B, { style: { "margin-top": "8px" } }, {
|
|
618
|
+
default: m(() => [...t[13] || (t[13] = [
|
|
619
|
+
j("偏好设置", -1)
|
|
620
|
+
])]),
|
|
595
621
|
_: 1
|
|
596
622
|
}),
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
modelValue:
|
|
601
|
-
"onUpdate:modelValue":
|
|
623
|
+
o("div", It, [
|
|
624
|
+
t[14] || (t[14] = o("span", { class: "label" }, "主图指标: ", -1)),
|
|
625
|
+
d(C, {
|
|
626
|
+
modelValue: a.mainIndicator,
|
|
627
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => a.mainIndicator = i),
|
|
602
628
|
"popper-class": "element-dark"
|
|
603
629
|
}, {
|
|
604
|
-
default:
|
|
605
|
-
(
|
|
606
|
-
key:
|
|
607
|
-
label:
|
|
608
|
-
value:
|
|
630
|
+
default: m(() => [
|
|
631
|
+
(n(!0), f(H, null, J(r.value, (i, x) => (n(), h(c, {
|
|
632
|
+
key: x,
|
|
633
|
+
label: i.label,
|
|
634
|
+
value: i.value
|
|
609
635
|
}, null, 8, ["label", "value"]))), 128))
|
|
610
636
|
]),
|
|
611
637
|
_: 1
|
|
612
638
|
}, 8, ["modelValue"])
|
|
613
639
|
]),
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
modelValue:
|
|
618
|
-
"onUpdate:modelValue":
|
|
640
|
+
o("div", zt, [
|
|
641
|
+
t[15] || (t[15] = o("span", { class: "label" }, "交易点位: ", -1)),
|
|
642
|
+
d(C, {
|
|
643
|
+
modelValue: a.sellBuy,
|
|
644
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => a.sellBuy = i),
|
|
619
645
|
"popper-class": "element-dark"
|
|
620
646
|
}, {
|
|
621
|
-
default:
|
|
622
|
-
(
|
|
623
|
-
key:
|
|
624
|
-
label:
|
|
625
|
-
value:
|
|
647
|
+
default: m(() => [
|
|
648
|
+
(n(!0), f(H, null, J(l(Vt), (i, x) => (n(), h(c, {
|
|
649
|
+
key: x,
|
|
650
|
+
label: i.label,
|
|
651
|
+
value: i.value
|
|
626
652
|
}, null, 8, ["label", "value"]))), 128))
|
|
627
653
|
]),
|
|
628
654
|
_: 1
|
|
629
655
|
}, 8, ["modelValue"])
|
|
630
656
|
]),
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
modelValue:
|
|
635
|
-
"onUpdate:modelValue":
|
|
657
|
+
o("div", Tt, [
|
|
658
|
+
t[16] || (t[16] = o("span", { class: "label" }, "开平点按价格标: ", -1)),
|
|
659
|
+
d(U, {
|
|
660
|
+
modelValue: a.sellBuyByPrice,
|
|
661
|
+
"onUpdate:modelValue": t[2] || (t[2] = (i) => a.sellBuyByPrice = i),
|
|
636
662
|
"true-value": 1,
|
|
637
663
|
"false-value": 0
|
|
638
664
|
}, null, 8, ["modelValue"])
|
|
639
665
|
]),
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
modelValue:
|
|
644
|
-
"onUpdate:modelValue":
|
|
666
|
+
o("div", Bt, [
|
|
667
|
+
t[17] || (t[17] = o("span", { class: "label" }, "单周期: ", -1)),
|
|
668
|
+
d(C, {
|
|
669
|
+
modelValue: a.singelCycle,
|
|
670
|
+
"onUpdate:modelValue": t[3] || (t[3] = (i) => a.singelCycle = i),
|
|
645
671
|
"popper-class": "element-dark"
|
|
646
672
|
}, {
|
|
647
|
-
default:
|
|
648
|
-
(
|
|
649
|
-
key:
|
|
650
|
-
label:
|
|
651
|
-
value:
|
|
673
|
+
default: m(() => [
|
|
674
|
+
(n(!0), f(H, null, J(V.value, (i, x) => (n(), h(c, {
|
|
675
|
+
key: x,
|
|
676
|
+
label: i.label,
|
|
677
|
+
value: i.value
|
|
652
678
|
}, null, 8, ["label", "value"]))), 128))
|
|
653
679
|
]),
|
|
654
680
|
_: 1
|
|
655
681
|
}, 8, ["modelValue"])
|
|
656
682
|
]),
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
683
|
+
o("div", xt, [
|
|
684
|
+
t[18] || (t[18] = o("span", { class: "label" }, "多周期: ", -1)),
|
|
685
|
+
d(p, {
|
|
660
686
|
size: "small",
|
|
661
|
-
modelValue:
|
|
662
|
-
"onUpdate:modelValue":
|
|
687
|
+
modelValue: a.multiCycleNum,
|
|
688
|
+
"onUpdate:modelValue": t[4] || (t[4] = (i) => a.multiCycleNum = i),
|
|
663
689
|
options: [
|
|
664
690
|
{ label: "二图", value: 2 },
|
|
665
691
|
{ label: "四图", value: 4 },
|
|
@@ -668,20 +694,20 @@ const P = (r) => (Ke("data-v-cbe82a27"), r = r(), qe(), r), yl = { class: "kline
|
|
|
668
694
|
style: { height: "26px" }
|
|
669
695
|
}, null, 8, ["modelValue"])
|
|
670
696
|
]),
|
|
671
|
-
|
|
672
|
-
class:
|
|
697
|
+
o("div", {
|
|
698
|
+
class: g(`setting-multi-box grid-${a.multiCycleNum}`)
|
|
673
699
|
}, [
|
|
674
|
-
(
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
modelValue:
|
|
679
|
-
"onUpdate:modelValue": (K) =>
|
|
700
|
+
(n(!0), f(H, null, J(a.multiCycleList.slice(0, a.multiCycleNum), (i, x) => (n(), f("div", Nt, [
|
|
701
|
+
o("div", Pt, [
|
|
702
|
+
o("span", null, F(l(St)(a.multiCycleList[x], V.value)), 1),
|
|
703
|
+
d(C, {
|
|
704
|
+
modelValue: a.multiCycleList[x],
|
|
705
|
+
"onUpdate:modelValue": (K) => a.multiCycleList[x] = K,
|
|
680
706
|
"popper-class": "element-dark"
|
|
681
707
|
}, {
|
|
682
|
-
default:
|
|
683
|
-
(
|
|
684
|
-
key:
|
|
708
|
+
default: m(() => [
|
|
709
|
+
(n(!0), f(H, null, J(V.value, (K, _) => (n(), h(c, {
|
|
710
|
+
key: _,
|
|
685
711
|
label: K.label,
|
|
686
712
|
value: K.value
|
|
687
713
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -689,15 +715,15 @@ const P = (r) => (Ke("data-v-cbe82a27"), r = r(), qe(), r), yl = { class: "kline
|
|
|
689
715
|
_: 2
|
|
690
716
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
691
717
|
]),
|
|
692
|
-
|
|
718
|
+
o("span", $t, F(x + 1) + "号位K线", 1)
|
|
693
719
|
]))), 256))
|
|
694
720
|
], 2),
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
721
|
+
o("div", Lt, [
|
|
722
|
+
t[19] || (t[19] = o("span", { class: "label" }, "默认展示: ", -1)),
|
|
723
|
+
d(p, {
|
|
698
724
|
size: "small",
|
|
699
|
-
modelValue:
|
|
700
|
-
"onUpdate:modelValue":
|
|
725
|
+
modelValue: a.pageType,
|
|
726
|
+
"onUpdate:modelValue": t[5] || (t[5] = (i) => a.pageType = i),
|
|
701
727
|
options: [
|
|
702
728
|
{ label: "单周期", value: 1 },
|
|
703
729
|
{ label: "多周期", value: 2 }
|
|
@@ -705,77 +731,77 @@ const P = (r) => (Ke("data-v-cbe82a27"), r = r(), qe(), r), yl = { class: "kline
|
|
|
705
731
|
style: { height: "26px" }
|
|
706
732
|
}, null, 8, ["modelValue"])
|
|
707
733
|
]),
|
|
708
|
-
|
|
709
|
-
default:
|
|
710
|
-
j("功能配置")
|
|
711
|
-
]),
|
|
734
|
+
d(B, { style: { "margin-top": "44px" } }, {
|
|
735
|
+
default: m(() => [...t[20] || (t[20] = [
|
|
736
|
+
j("功能配置", -1)
|
|
737
|
+
])]),
|
|
712
738
|
_: 1
|
|
713
739
|
}),
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
modelValue:
|
|
718
|
-
"onUpdate:modelValue":
|
|
740
|
+
o("div", At, [
|
|
741
|
+
t[21] || (t[21] = o("span", { class: "label" }, "高亮交易范围: ", -1)),
|
|
742
|
+
d(s, {
|
|
743
|
+
modelValue: a.enable_tradeLogBrush,
|
|
744
|
+
"onUpdate:modelValue": t[6] || (t[6] = (i) => a.enable_tradeLogBrush = i)
|
|
719
745
|
}, null, 8, ["modelValue"])
|
|
720
746
|
]),
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
modelValue:
|
|
725
|
-
"onUpdate:modelValue":
|
|
747
|
+
o("div", Ot, [
|
|
748
|
+
t[22] || (t[22] = o("span", { class: "label" }, "展示当屏时间: ", -1)),
|
|
749
|
+
d(s, {
|
|
750
|
+
modelValue: a.enable_showScreenTimeRange,
|
|
751
|
+
"onUpdate:modelValue": t[7] || (t[7] = (i) => a.enable_showScreenTimeRange = i)
|
|
726
752
|
}, null, 8, ["modelValue"])
|
|
727
753
|
]),
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
modelValue:
|
|
732
|
-
"onUpdate:modelValue":
|
|
754
|
+
o("div", Ut, [
|
|
755
|
+
t[23] || (t[23] = o("span", { class: "label" }, "展示当屏最高价: ", -1)),
|
|
756
|
+
d(s, {
|
|
757
|
+
modelValue: a.enable_showScreenMaxPrice,
|
|
758
|
+
"onUpdate:modelValue": t[8] || (t[8] = (i) => a.enable_showScreenMaxPrice = i)
|
|
733
759
|
}, null, 8, ["modelValue"])
|
|
734
760
|
]),
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
modelValue:
|
|
739
|
-
"onUpdate:modelValue":
|
|
761
|
+
o("div", Rt, [
|
|
762
|
+
t[24] || (t[24] = o("span", { class: "label" }, "多周期双击图表切换至单周期: ", -1)),
|
|
763
|
+
d(s, {
|
|
764
|
+
modelValue: a.enable_dbClickOpenSingel,
|
|
765
|
+
"onUpdate:modelValue": t[9] || (t[9] = (i) => a.enable_dbClickOpenSingel = i)
|
|
740
766
|
}, null, 8, ["modelValue"])
|
|
741
767
|
]),
|
|
742
|
-
|
|
743
|
-
default:
|
|
744
|
-
j("组件开关")
|
|
745
|
-
]),
|
|
768
|
+
d(B, { style: { "margin-top": "44px" } }, {
|
|
769
|
+
default: m(() => [...t[25] || (t[25] = [
|
|
770
|
+
j("组件开关", -1)
|
|
771
|
+
])]),
|
|
746
772
|
_: 1
|
|
747
773
|
}),
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
modelValue:
|
|
752
|
-
"onUpdate:modelValue":
|
|
774
|
+
o("div", Dt, [
|
|
775
|
+
t[26] || (t[26] = o("span", { class: "label" }, "开启副图: ", -1)),
|
|
776
|
+
d(s, {
|
|
777
|
+
modelValue: a.enable_subChart,
|
|
778
|
+
"onUpdate:modelValue": t[10] || (t[10] = (i) => a.enable_subChart = i)
|
|
753
779
|
}, null, 8, ["modelValue"])
|
|
754
780
|
]),
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
modelValue:
|
|
759
|
-
"onUpdate:modelValue":
|
|
781
|
+
o("div", Mt, [
|
|
782
|
+
t[27] || (t[27] = o("span", { class: "label" }, "开启拖拽轴: ", -1)),
|
|
783
|
+
d(s, {
|
|
784
|
+
modelValue: a.enable_sliderChart,
|
|
785
|
+
"onUpdate:modelValue": t[11] || (t[11] = (i) => a.enable_sliderChart = i)
|
|
760
786
|
}, null, 8, ["modelValue"])
|
|
761
787
|
])
|
|
762
788
|
]),
|
|
763
789
|
_: 1
|
|
764
790
|
}),
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
default:
|
|
768
|
-
j(" 恢复默认 ")
|
|
769
|
-
]),
|
|
791
|
+
o("div", Ft, [
|
|
792
|
+
d(A, { onClick: N }, {
|
|
793
|
+
default: m(() => [...t[28] || (t[28] = [
|
|
794
|
+
j(" 恢复默认 ", -1)
|
|
795
|
+
])]),
|
|
770
796
|
_: 1
|
|
771
797
|
}),
|
|
772
|
-
|
|
798
|
+
d(A, {
|
|
773
799
|
type: "primary",
|
|
774
|
-
onClick:
|
|
800
|
+
onClick: S
|
|
775
801
|
}, {
|
|
776
|
-
default:
|
|
777
|
-
j(" 保存配置 ")
|
|
778
|
-
]),
|
|
802
|
+
default: m(() => [...t[29] || (t[29] = [
|
|
803
|
+
j(" 保存配置 ", -1)
|
|
804
|
+
])]),
|
|
779
805
|
_: 1
|
|
780
806
|
})
|
|
781
807
|
])
|
|
@@ -785,11 +811,11 @@ const P = (r) => (Ke("data-v-cbe82a27"), r = r(), qe(), r), yl = { class: "kline
|
|
|
785
811
|
]);
|
|
786
812
|
};
|
|
787
813
|
}
|
|
788
|
-
},
|
|
789
|
-
install(
|
|
790
|
-
|
|
814
|
+
}, qt = /* @__PURE__ */ lt(Kt, [["__scopeId", "data-v-cbe82a27"]]), wl = {
|
|
815
|
+
install(e) {
|
|
816
|
+
e.component("st-klineConfig", qt);
|
|
791
817
|
}
|
|
792
818
|
};
|
|
793
819
|
export {
|
|
794
|
-
|
|
820
|
+
wl as default
|
|
795
821
|
};
|