st-comp 0.0.200 → 0.0.202

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