st-comp 0.0.178 → 0.0.180

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