st-comp 0.0.279 → 0.0.281

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