st-comp 0.0.277 → 0.0.279

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 (319) hide show
  1. package/README.md +19 -19
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +1 -1
  4. package/es/ConfigProvider.cjs +1 -1
  5. package/es/ConfigProvider.js +3 -3
  6. package/es/Contextmenu.cjs +1 -1
  7. package/es/Contextmenu.js +7 -7
  8. package/es/CustomFunction.cjs +2 -2
  9. package/es/CustomFunction.js +514 -308
  10. package/es/FactorWarning.cjs +1 -1
  11. package/es/FactorWarning.js +37 -37
  12. package/es/HeatMap.cjs +1 -1
  13. package/es/HeatMap.js +7 -7
  14. package/es/Kline.cjs +1 -1
  15. package/es/Kline.js +18 -18
  16. package/es/KlineBasic.cjs +1 -1
  17. package/es/KlineBasic.js +93 -93
  18. package/es/KlineConfig.cjs +1 -1
  19. package/es/KlineConfig.js +17 -17
  20. package/es/KlineNew.cjs +1 -1
  21. package/es/KlineNew.js +14 -14
  22. package/es/KlinePlus.cjs +4 -4
  23. package/es/KlinePlus.js +760 -656
  24. package/es/LinearLegend.cjs +1 -1
  25. package/es/LinearLegend.js +1 -1
  26. package/es/Map.cjs +1 -1
  27. package/es/Map.js +1 -1
  28. package/es/MonacoEditor.cjs +1 -1
  29. package/es/MonacoEditor.js +18 -18
  30. package/es/Pagination.cjs +1 -1
  31. package/es/Pagination.js +76 -76
  32. package/es/PasswordPrompt.cjs +1 -1
  33. package/es/PasswordPrompt.js +2 -2
  34. package/es/Pie.cjs +2 -2
  35. package/es/Pie.js +14 -14
  36. package/es/Table.cjs +1 -1
  37. package/es/Table.js +22 -22
  38. package/es/TreeMap.cjs +1 -1
  39. package/es/TreeMap.js +4 -4
  40. package/es/User.cjs +1 -1
  41. package/es/User.js +73 -73
  42. package/es/VarSelectDialog.cjs +2 -2
  43. package/es/VarSelectDialog.js +21 -21
  44. package/es/VarietyAiHelper.cjs +4 -4
  45. package/es/VarietyAiHelper.js +139 -138
  46. package/es/VarietyAutoComplete.cjs +1 -1
  47. package/es/VarietyAutoComplete.js +16 -16
  48. package/es/VarietySearch.cjs +4 -4
  49. package/es/VarietySearch.js +861 -857
  50. package/es/{VarietySelect-6a166293.js → VarietySelect-41daac7b.js} +10 -10
  51. package/es/{VarietySelect-610903f0.cjs → VarietySelect-d58eee29.cjs} +1 -1
  52. package/es/VarietyTextCopy.cjs +2 -2
  53. package/es/VarietyTextCopy.js +25 -25
  54. package/es/VirtualTable.cjs +1 -1
  55. package/es/VirtualTable.js +6 -6
  56. package/es/{_initCloneObject-152b4f4e.js → _initCloneObject-5e73c9c8.js} +2 -2
  57. package/es/{_initCloneObject-76e116d0.cjs → _initCloneObject-a5832933.cjs} +1 -1
  58. package/es/aiTools-229609fb.cjs +2 -0
  59. package/es/aiTools-ce2f9281.js +115 -0
  60. package/es/aiTools.js +179 -176
  61. package/es/{config-provider-4c784baf.cjs → config-provider-06ea6b42.cjs} +1 -1
  62. package/es/{config-provider-7a3aca55.js → config-provider-88b637a8.js} +3 -3
  63. package/es/{dropdown-987c47fb.cjs → dropdown-4ce4c3e2.cjs} +1 -1
  64. package/es/{dropdown-01e09205.js → dropdown-72fbc15d.js} +2 -2
  65. package/es/{el-autocomplete-342ae823.js → el-autocomplete-6cafcdf1.js} +5 -5
  66. package/es/{el-autocomplete-16f66b34.cjs → el-autocomplete-e0857c5b.cjs} +1 -1
  67. package/es/{el-button-13dc915f.cjs → el-button-613e0bb2.cjs} +1 -1
  68. package/es/{el-button-314171a0.js → el-button-94d3de38.js} +3 -3
  69. package/es/{el-checkbox-5899681f.js → el-checkbox-6d4cb393.js} +3 -3
  70. package/es/{el-checkbox-bdf64663.cjs → el-checkbox-e90762df.cjs} +1 -1
  71. package/es/{el-dialog-0ef95df6.cjs → el-dialog-02942e22.cjs} +1 -1
  72. package/es/{el-dialog-86a3eec2.js → el-dialog-5e30161f.js} +4 -4
  73. package/es/{el-form-item-77ef6784.cjs → el-form-item-44f060d8.cjs} +1 -1
  74. package/es/{el-form-item-cda4d93c.js → el-form-item-9e8969ea.js} +5 -5
  75. package/es/{el-input-fa1445ad.js → el-input-342b2def.js} +13 -13
  76. package/es/{el-input-89222943.cjs → el-input-9a9a7f7f.cjs} +1 -1
  77. package/es/{el-input-number-d3338e5e.cjs → el-input-number-65c847d6.cjs} +1 -1
  78. package/es/{el-input-number-8f6dbf74.js → el-input-number-c22b803a.js} +35 -35
  79. package/es/{el-loading-84dde1a8.cjs → el-loading-8179b497.cjs} +1 -1
  80. package/es/{el-loading-9b671203.js → el-loading-bcc51e3d.js} +1 -1
  81. package/es/{el-menu-item-535fef90.js → el-menu-item-339baf6d.js} +21 -21
  82. package/es/{el-menu-item-4531fd0e.cjs → el-menu-item-83186444.cjs} +1 -1
  83. package/es/{el-message-box-621ed2f1.js → el-message-box-035b699c.js} +9 -9
  84. package/es/{el-message-box-f5717070.cjs → el-message-box-c62d3217.cjs} +1 -1
  85. package/es/{el-overlay-23de4324.js → el-overlay-3e17604b.js} +3 -3
  86. package/es/{el-overlay-151708cb.cjs → el-overlay-8f1da9e8.cjs} +1 -1
  87. package/es/{el-popconfirm-b8aa490e.cjs → el-popconfirm-4e32ec1b.cjs} +1 -1
  88. package/es/{el-popconfirm-bcff0aa5.js → el-popconfirm-f8a86e2c.js} +4 -4
  89. package/es/{el-popper-43ec37f4.cjs → el-popper-a4f3ae4d.cjs} +1 -1
  90. package/es/{el-popper-03988662.js → el-popper-fbd0dcea.js} +1 -1
  91. package/es/{el-segmented-db3a86be.js → el-segmented-56bd58a8.js} +2 -2
  92. package/es/{el-segmented-79a1367c.cjs → el-segmented-833ac177.cjs} +1 -1
  93. package/es/{el-select-4bd0010d.js → el-select-44fa547d.js} +8 -8
  94. package/es/{el-select-ec04e7ce.cjs → el-select-70806166.cjs} +1 -1
  95. package/es/{el-table-column-35e47229.cjs → el-table-column-3e2cdfca.cjs} +1 -1
  96. package/es/{el-table-column-7af2bec7.js → el-table-column-b74a857d.js} +9 -9
  97. package/es/{el-tag-bef9e83d.js → el-tag-66c83156.js} +2 -2
  98. package/es/{el-tag-5d5608e0.cjs → el-tag-9c2f329f.cjs} +1 -1
  99. package/es/{el-text-f998902c.js → el-text-034bd3f4.js} +1 -1
  100. package/es/{el-text-abf10fdf.cjs → el-text-6b2374bb.cjs} +1 -1
  101. package/es/index-00f6ca75.cjs +1 -0
  102. package/es/{index-a00e0534.cjs → index-185792a7.cjs} +1 -1
  103. package/es/{index-d1b554ac.js → index-1e2a38ab.js} +2 -2
  104. package/es/{index-0986e373.cjs → index-3153c1db.cjs} +1 -1
  105. package/es/{index-936e7dec.js → index-44a382a5.js} +2 -2
  106. package/es/{index-ce21e2ce.js → index-5216d5f5.js} +5 -5
  107. package/es/{index-7ed0999e.js → index-53cc4e43.js} +720 -716
  108. package/es/{index-cfcd60ca.cjs → index-5c0dd943.cjs} +1 -1
  109. package/es/{index-cfd00899.cjs → index-870b6c9d.cjs} +1 -1
  110. package/es/{index-a83ec4b7.js → index-8c2d7e05.js} +1 -1
  111. package/es/{index-8901a38c.cjs → index-94131fd7.cjs} +30 -30
  112. package/es/{index-db846633.cjs → index-9d16cea8.cjs} +1 -1
  113. package/es/{index-f3f6ee27.js → index-a33b2fb8.js} +178 -178
  114. package/es/{index-2d7ac156.cjs → index-a9246d17.cjs} +17 -17
  115. package/es/{index-60c69dd1.cjs → index-ac8dc53d.cjs} +1 -1
  116. package/es/{index-102edf6c.js → index-c5f2d372.js} +2 -2
  117. package/es/{index-6290ae0f.js → index-c6584658.js} +2 -2
  118. package/es/{index-5c44d71a.js → index-eb96e074.js} +149 -119
  119. package/es/{index-5ed42e9c.js → index-f034b910.js} +2 -2
  120. package/es/{index-c58e90e9.cjs → index-f58b2920.cjs} +1 -1
  121. package/es/{python-6cc6ec1b.js → python-8a1664e6.js} +18 -18
  122. package/es/{python-71f59893.cjs → python-a3db9620.cjs} +1 -1
  123. package/es/style.css +1 -1
  124. package/es/{use-form-common-props-02be4928.cjs → use-form-common-props-ac666630.cjs} +1 -1
  125. package/es/{use-form-common-props-76a09d89.js → use-form-common-props-ed72e914.js} +11 -11
  126. package/es/{use-global-config-31b3ec57.cjs → use-global-config-23472471.cjs} +1 -1
  127. package/es/{use-global-config-0f43458b.js → use-global-config-ee406d58.js} +2 -2
  128. package/es/{validator-ea292506.cjs → validator-366dbf39.cjs} +1 -1
  129. package/es/{validator-0e037618.js → validator-c60a8956.js} +1 -1
  130. package/es/{zh-cn-1227eb8a.js → zh-cn-b59a0910.js} +1 -1
  131. package/es/{zh-cn-0edc7234.cjs → zh-cn-c21d12d8.cjs} +1 -1
  132. package/lib/aiTools.js +179 -176
  133. package/lib/bundle.js +1 -1
  134. package/lib/bundle.umd.cjs +230 -230
  135. package/lib/{index-2a269748.js → index-62fa175a.js} +30149 -29800
  136. package/lib/{python-41da18e5.js → python-4a48fa39.js} +1 -1
  137. package/lib/style.css +1 -1
  138. package/package.json +53 -44
  139. package/auto-imports.d.ts +0 -13
  140. package/components.d.ts +0 -59
  141. package/es/aiTools-a3b095f6.js +0 -113
  142. package/es/aiTools-f36136a4.cjs +0 -2
  143. package/es/index-476c4459.cjs +0 -1
  144. package/index.html +0 -13
  145. package/packages/ChartLayout/index.ts +0 -8
  146. package/packages/ChartLayout/index.vue +0 -63
  147. package/packages/ConfigProvider/index.ts +0 -8
  148. package/packages/ConfigProvider/index.vue +0 -66
  149. package/packages/Contextmenu/index.ts +0 -8
  150. package/packages/Contextmenu/index.vue +0 -134
  151. package/packages/CustomFunction/components/ManageDialog.vue +0 -706
  152. package/packages/CustomFunction/index.ts +0 -8
  153. package/packages/CustomFunction/index.vue +0 -200
  154. package/packages/FactorWarning/index.ts +0 -8
  155. package/packages/FactorWarning/index.vue +0 -754
  156. package/packages/FactorWarning/tools.js +0 -10
  157. package/packages/HeatMap/index.ts +0 -8
  158. package/packages/HeatMap/index.vue +0 -141
  159. package/packages/Kline/components/Contextmenu/index.vue +0 -110
  160. package/packages/Kline/components/Tips/index.vue +0 -40
  161. package/packages/Kline/componentsNew/KlineSlide/index.vue +0 -155
  162. package/packages/Kline/componentsNew/KlineSub/index.vue +0 -297
  163. package/packages/Kline/componentsNew/KlineTips/index.vue +0 -66
  164. package/packages/Kline/componentsNew/KlineUtils/index.vue +0 -84
  165. package/packages/Kline/componentsNew/Tips/index.vue +0 -33
  166. package/packages/Kline/formatKlineData.ts +0 -109
  167. package/packages/Kline/images/buy.svg +0 -1
  168. package/packages/Kline/images/pen.png +0 -0
  169. package/packages/Kline/images/sell.svg +0 -1
  170. package/packages/Kline/images/t.svg +0 -1
  171. package/packages/Kline/index.ts +0 -16
  172. package/packages/Kline/index.vue +0 -891
  173. package/packages/Kline/option.ts +0 -539
  174. package/packages/Kline/type.d.ts +0 -219
  175. package/packages/Kline/utils.ts +0 -682
  176. package/packages/KlineBasic/api.js +0 -58
  177. package/packages/KlineBasic/components/AverageTips/index.vue +0 -33
  178. package/packages/KlineBasic/components/Contextmenu/index.vue +0 -105
  179. package/packages/KlineBasic/components/KlineSub/index.vue +0 -332
  180. package/packages/KlineBasic/components/KlineTips/index.vue +0 -99
  181. package/packages/KlineBasic/components/Tips/index.vue +0 -56
  182. package/packages/KlineBasic/index.ts +0 -8
  183. package/packages/KlineBasic/index.vue +0 -839
  184. package/packages/KlineBasic/utils.js +0 -258
  185. package/packages/KlineConfig/config.js +0 -46
  186. package/packages/KlineConfig/index.ts +0 -8
  187. package/packages/KlineConfig/index.vue +0 -356
  188. package/packages/KlineNew/components/KlineSlide/index.vue +0 -156
  189. package/packages/KlineNew/components/KlineSub/index.vue +0 -335
  190. package/packages/KlineNew/components/KlineTips/index.vue +0 -96
  191. package/packages/KlineNew/components/KlineUtils/index.vue +0 -341
  192. package/packages/KlineNew/components/Tips/index.vue +0 -33
  193. package/packages/KlineNew/index.ts +0 -14
  194. package/packages/KlinePlus/components/SliderChart.vue +0 -208
  195. package/packages/KlinePlus/components/Tips.vue +0 -36
  196. package/packages/KlinePlus/images/buy.svg +0 -1
  197. package/packages/KlinePlus/images/sell.svg +0 -1
  198. package/packages/KlinePlus/images/t.svg +0 -1
  199. package/packages/KlinePlus/index.ts +0 -8
  200. package/packages/KlinePlus/index.vue +0 -1067
  201. package/packages/KlinePlus/utils.js +0 -771
  202. package/packages/LinearLegend/index.ts +0 -8
  203. package/packages/LinearLegend/index.vue +0 -112
  204. package/packages/Map/China.json +0 -1
  205. package/packages/Map/index.ts +0 -8
  206. package/packages/Map/index.vue +0 -147
  207. package/packages/MonacoEditor/index.ts +0 -8
  208. package/packages/MonacoEditor/index.vue +0 -1141
  209. package/packages/MonacoEditor/tools.js +0 -18
  210. package/packages/Pagination/index.ts +0 -8
  211. package/packages/Pagination/index.vue +0 -87
  212. package/packages/PasswordPrompt/index.ts +0 -8
  213. package/packages/PasswordPrompt/index.vue +0 -267
  214. package/packages/Pie/index.ts +0 -8
  215. package/packages/Pie/index.vue +0 -148
  216. package/packages/Table/components/Button/index.vue +0 -61
  217. package/packages/Table/components/Formatter/index.vue +0 -26
  218. package/packages/Table/index.d.ts +0 -0
  219. package/packages/Table/index.ts +0 -8
  220. package/packages/Table/index.vue +0 -133
  221. package/packages/TreeMap/index.ts +0 -8
  222. package/packages/TreeMap/index.vue +0 -186
  223. package/packages/User/components/EditInfoDialog/Mobile.vue +0 -214
  224. package/packages/User/components/EditInfoDialog/index.vue +0 -161
  225. package/packages/User/components/EditPasswordDialog.vue +0 -168
  226. package/packages/User/components/SetPasswordDialog.vue +0 -160
  227. package/packages/User/index.ts +0 -8
  228. package/packages/User/index.vue +0 -117
  229. package/packages/VarSelectDialog/Mock.js +0 -495
  230. package/packages/VarSelectDialog/VarietySelect.vue +0 -78
  231. package/packages/VarSelectDialog/index.ts +0 -8
  232. package/packages/VarSelectDialog/index.vue +0 -323
  233. package/packages/VarietyAiHelper/images/like.png +0 -0
  234. package/packages/VarietyAiHelper/images/like_no.png +0 -0
  235. package/packages/VarietyAiHelper/index.ts +0 -8
  236. package/packages/VarietyAiHelper/index.vue +0 -910
  237. package/packages/VarietyAutoComplete/index.ts +0 -8
  238. package/packages/VarietyAutoComplete/index.vue +0 -89
  239. package/packages/VarietySearch/components/AddTag/index.vue +0 -268
  240. package/packages/VarietySearch/components/CommonIndicator/IndicatorTags.vue +0 -52
  241. package/packages/VarietySearch/components/CommonIndicator/index.vue +0 -697
  242. package/packages/VarietySearch/components/CommonIndicator/tools.js +0 -260
  243. package/packages/VarietySearch/components/CompositeOrder/index.vue +0 -260
  244. package/packages/VarietySearch/components/FactorScreen/FactorDescription.vue +0 -70
  245. package/packages/VarietySearch/components/FactorScreen/index.vue +0 -1158
  246. package/packages/VarietySearch/components/FactorScreen/tools.js +0 -34
  247. package/packages/VarietySearch/config.js +0 -539
  248. package/packages/VarietySearch/index.ts +0 -8
  249. package/packages/VarietySearch/index.vue +0 -688
  250. package/packages/VarietyTextCopy/index.ts +0 -8
  251. package/packages/VarietyTextCopy/index.vue +0 -136
  252. package/packages/VirtualTable/index.ts +0 -8
  253. package/packages/VirtualTable/index.vue +0 -241
  254. package/packages/index.ts +0 -59
  255. package/public/aiTools.js +0 -176
  256. package/public/talib.wasm +0 -0
  257. package/public/vite.svg +0 -1
  258. package/src/App.vue +0 -140
  259. package/src/assets/vue.svg +0 -1
  260. package/src/components/Dialog/index.vue +0 -16
  261. package/src/components/Kline/index.vue +0 -21
  262. package/src/components/Table/index.vue +0 -27
  263. package/src/main.ts +0 -17
  264. package/src/pages/ChartLayout/index.vue +0 -22
  265. package/src/pages/ConfigProvider/index.vue +0 -9
  266. package/src/pages/Contextmenu/index.vue +0 -46
  267. package/src/pages/CustomFunction/index.vue +0 -13
  268. package/src/pages/FactorWarning/index.vue +0 -203
  269. package/src/pages/HeatMap/index.vue +0 -128
  270. package/src/pages/Kline/index.vue +0 -12
  271. package/src/pages/KlineBasic/api.js +0 -48
  272. package/src/pages/KlineBasic/index.vue +0 -366
  273. package/src/pages/KlineBasic/indicator.js +0 -114
  274. package/src/pages/KlineConfig/index.vue +0 -20
  275. package/src/pages/KlineNew/components/KlineAction/components/ContextMenu/index.vue +0 -91
  276. package/src/pages/KlineNew/components/KlineAction/components/YearChart/index.vue +0 -532
  277. package/src/pages/KlineNew/components/KlineAction/images/pen.png +0 -0
  278. package/src/pages/KlineNew/components/KlineAction/index.vue +0 -716
  279. package/src/pages/KlineNew/components/KlineAction/mockApi/index.js +0 -13
  280. package/src/pages/KlineNew/components/KlineAction/utils.js +0 -571
  281. package/src/pages/KlineNew/components/KlineBasic/index.vue +0 -336
  282. package/src/pages/KlineNew/components/KlineBasic/utils.js +0 -46
  283. package/src/pages/KlineNew/components/KlineNew/index.vue +0 -316
  284. package/src/pages/KlineNew/components/KlineNew/utils.js +0 -31
  285. package/src/pages/KlineNew/components/KlineSlide/index.vue +0 -448
  286. package/src/pages/KlineNew/components/KlineSlide/utils.js +0 -78
  287. package/src/pages/KlineNew/components/KlineSlideNew/index.vue +0 -430
  288. package/src/pages/KlineNew/components/KlineSlideNew/utils.js +0 -78
  289. package/src/pages/KlineNew/index.vue +0 -92
  290. package/src/pages/KlinePlus/KlineDialog/MultiCycle.vue +0 -312
  291. package/src/pages/KlinePlus/KlineDialog/api.js +0 -108
  292. package/src/pages/KlinePlus/KlineDialog/index.vue +0 -582
  293. package/src/pages/KlinePlus/KlineDialog/indicator.js +0 -109
  294. package/src/pages/KlinePlus/KlineDialog/tools.js +0 -86
  295. package/src/pages/KlinePlus/index.vue +0 -30
  296. package/src/pages/KlinePlus/tradeLogMock.js +0 -1927
  297. package/src/pages/LinearLegend/index.vue +0 -92
  298. package/src/pages/Map/index.vue +0 -62
  299. package/src/pages/MonacoEditor/index.vue +0 -63
  300. package/src/pages/Pagination/index.vue +0 -24
  301. package/src/pages/PasswordPrompt/index.vue +0 -12
  302. package/src/pages/Pie/index.vue +0 -36
  303. package/src/pages/Table/index.vue +0 -117
  304. package/src/pages/TreeMap/index.vue +0 -542
  305. package/src/pages/User/index.vue +0 -24
  306. package/src/pages/VarSelectDialog/index.vue +0 -16
  307. package/src/pages/VarietyAiHelper/index.vue +0 -20
  308. package/src/pages/VarietyAutoComplete/index.vue +0 -19
  309. package/src/pages/VarietySearch/api.js +0 -70
  310. package/src/pages/VarietySearch/index.vue +0 -467
  311. package/src/pages/VarietyTextCopy/index.vue +0 -24
  312. package/src/pages/VirtualTable/demo.json +0 -6377
  313. package/src/pages/VirtualTable/index.vue +0 -79
  314. package/src/router/index.ts +0 -9
  315. package/src/router/routes.ts +0 -132
  316. package/src/style.css +0 -79
  317. package/src/vite-env.d.ts +0 -9
  318. package/tsconfig.json +0 -30
  319. package/tsconfig.node.json +0 -10
package/es/KlineBasic.js CHANGED
@@ -1,38 +1,38 @@
1
1
  import "./base-a5af3db3.js";
2
- import { E as We } from "./el-dialog-86a3eec2.js";
3
- import "./el-overlay-23de4324.js";
4
- import "./el-input-fa1445ad.js";
5
- import { E as qe } from "./el-input-number-8f6dbf74.js";
6
- import { E as ze } from "./el-button-314171a0.js";
2
+ import { E as We } from "./el-dialog-5e30161f.js";
3
+ import "./el-overlay-3e17604b.js";
4
+ import "./el-input-342b2def.js";
5
+ import { E as qe } from "./el-input-number-c22b803a.js";
6
+ import { E as ze } from "./el-button-94d3de38.js";
7
7
  import { E as Ze } from "./el-empty-33cb66f1.js";
8
- import { E as Ke, a as Ue } from "./el-menu-item-535fef90.js";
8
+ import { E as Ue, a as He } from "./el-menu-item-339baf6d.js";
9
9
  import "./el-tooltip-4ed993c7.js";
10
- import "./el-popper-03988662.js";
11
- import { defineComponent as xe, ref as A, watch as te, nextTick as ne, openBlock as T, createElementBlock as E, Fragment as oe, renderList as fe, normalizeStyle as pe, toDisplayString as ae, computed as le, createVNode as I, onMounted as Se, onUnmounted as Me, createElementVNode as K, withCtx as z, createBlock as Le, createCommentVNode as G, renderSlot as Ye, createTextVNode as ue, pushScopeId as He, popScopeId as je } from "vue";
10
+ import "./el-popper-fbd0dcea.js";
11
+ import { defineComponent as be, ref as A, watch as te, nextTick as ne, openBlock as T, createElementBlock as E, Fragment as oe, renderList as fe, normalizeStyle as pe, toDisplayString as ae, computed as le, createVNode as I, onMounted as Se, onUnmounted as Me, createElementVNode as U, withCtx as z, createBlock as Le, createCommentVNode as G, renderSlot as Ye, createTextVNode as ue, pushScopeId as Ke, popScopeId as je } from "vue";
12
12
  import { d as F } from "./dayjs.min-8313b006.js";
13
- import * as be from "echarts";
14
- import { y as Ce, v as Xe, U as Ge, K as Je, V as ie, x as _e, D as Qe, G as ce } from "./index-7ed0999e.js";
13
+ import * as xe from "echarts";
14
+ import { y as Ce, V as Xe, R as Ge, A as Je, U as ie, x as _e, D as Qe, j as ce } from "./index-53cc4e43.js";
15
15
  import "./el-message-4ed993c7.js";
16
- import { E as de } from "./index-ce21e2ce.js";
16
+ import { E as de } from "./index-5216d5f5.js";
17
17
  import { _ as J } from "./_plugin-vue_export-helper-dad06003.js";
18
- import "./el-tag-bef9e83d.js";
19
- import { E as et, a as tt } from "./el-select-4bd0010d.js";
18
+ import "./el-tag-66c83156.js";
19
+ import { E as et, a as tt } from "./el-select-44fa547d.js";
20
20
  import "./el-scrollbar-323542e7.js";
21
- import "./index-5c44d71a.js";
22
- import "./use-form-common-props-76a09d89.js";
21
+ import "./index-eb96e074.js";
22
+ import "./use-form-common-props-ed72e914.js";
23
23
  import "./index-960806da.js";
24
24
  import "./index-d77a7336.js";
25
25
  import "./index-2e331d74.js";
26
26
  import "./vnode-5ddb7ed1.js";
27
27
  import "./scroll-679bd6bf.js";
28
- import "./use-global-config-0f43458b.js";
29
- import "./index-a83ec4b7.js";
28
+ import "./use-global-config-ee406d58.js";
29
+ import "./index-8c2d7e05.js";
30
30
  import "./typescript-7ae59c4c.js";
31
- import "./index-5ed42e9c.js";
31
+ import "./index-f034b910.js";
32
32
  import "./index-657047bb.js";
33
- import "./config-provider-7a3aca55.js";
34
- import "./index-102edf6c.js";
35
- import "./index-d1b554ac.js";
33
+ import "./config-provider-88b637a8.js";
34
+ import "./index-c5f2d372.js";
35
+ import "./index-1e2a38ab.js";
36
36
  import "./castArray-7741a212.js";
37
37
  import "./debounce-8d53f4dd.js";
38
38
  let C = null;
@@ -259,7 +259,7 @@ function Ae(t) {
259
259
  return "-";
260
260
  }
261
261
  }
262
- const ct = /* @__PURE__ */ xe({
262
+ const ct = /* @__PURE__ */ be({
263
263
  __name: "index",
264
264
  props: {
265
265
  // 提示数据
@@ -290,7 +290,7 @@ const ct = /* @__PURE__ */ xe({
290
290
  ], 512));
291
291
  }
292
292
  });
293
- const De = /* @__PURE__ */ J(ct, [["__scopeId", "data-v-096c0d10"]]);
293
+ const De = /* @__PURE__ */ J(ct, [["__scopeId", "data-v-0ed8d951"]]);
294
294
  const dt = { class: "kline-tips" }, ft = {
295
295
  __name: "index",
296
296
  props: {
@@ -346,7 +346,7 @@ const dt = { class: "kline-tips" }, ft = {
346
346
  I(De, { data: m.value }, null, 8, ["data"])
347
347
  ]));
348
348
  }
349
- }, pt = /* @__PURE__ */ J(ft, [["__scopeId", "data-v-832d18ff"]]), mt = { class: "kline-averageTips" }, vt = /* @__PURE__ */ xe({
349
+ }, pt = /* @__PURE__ */ J(ft, [["__scopeId", "data-v-db894a3c"]]), mt = { class: "kline-averageTips" }, vt = /* @__PURE__ */ be({
350
350
  __name: "index",
351
351
  props: {
352
352
  // 提示数据
@@ -365,8 +365,8 @@ const dt = { class: "kline-tips" }, ft = {
365
365
  ]));
366
366
  }
367
367
  });
368
- const yt = /* @__PURE__ */ J(vt, [["__scopeId", "data-v-2ce54548"]]);
369
- const gt = { class: "klineSub" }, bt = { class: "klineSub-tips" }, xt = {
368
+ const yt = /* @__PURE__ */ J(vt, [["__scopeId", "data-v-c544514b"]]);
369
+ const gt = { class: "klineSub" }, xt = { class: "klineSub-tips" }, bt = {
370
370
  key: 0,
371
371
  class: "klineSub-tips-select"
372
372
  }, _t = {
@@ -402,7 +402,7 @@ const gt = { class: "klineSub" }, bt = { class: "klineSub-tips" }, xt = {
402
402
  Se(() => {
403
403
  if (m.value = !0, !f.value)
404
404
  return;
405
- i = be.init(f.value);
405
+ i = xe.init(f.value);
406
406
  let p = !0;
407
407
  e = new ResizeObserver(() => {
408
408
  if (p) {
@@ -430,14 +430,14 @@ const gt = { class: "klineSub" }, bt = { class: "klineSub-tips" }, xt = {
430
430
  };
431
431
  return w({
432
432
  connect: (p) => {
433
- !m.value || !i || i.isDisposed() || be.connect([p, i]);
433
+ !m.value || !i || i.isDisposed() || xe.connect([p, i]);
434
434
  },
435
435
  draw: (p, _) => {
436
436
  !m.value || !i || i.isDisposed() || ne(() => {
437
437
  if (!m.value || !i || i.isDisposed())
438
438
  return;
439
- const { startValue: L, endValue: D, maxValueSpan: R } = p, { leftYAxisRange: $, rightYAxisRange: B } = d.data.subIndicator[0], V = d.data.subIndicator.map((b) => {
440
- if (b.series === "bar")
439
+ const { startValue: L, endValue: D, maxValueSpan: R } = p, { leftYAxisRange: $, rightYAxisRange: B } = d.data.subIndicator[0], V = d.data.subIndicator.map((x) => {
440
+ if (x.series === "bar")
441
441
  return {
442
442
  name: "subMain",
443
443
  xAxisIndex: 0,
@@ -445,10 +445,10 @@ const gt = { class: "klineSub" }, bt = { class: "klineSub-tips" }, xt = {
445
445
  type: "bar",
446
446
  silent: !0,
447
447
  symbol: "none",
448
- data: b.data.map((P, q) => b.seriesColor === "kline" ? {
448
+ data: x.data.map((P, q) => x.seriesColor === "kline" ? {
449
449
  value: P,
450
450
  itemStyle: a(d.data.data, q)
451
- } : b.seriesColor === "value" ? {
451
+ } : x.seriesColor === "value" ? {
452
452
  value: P,
453
453
  itemStyle: {
454
454
  color: P >= 0 ? "#FF0000" : "#00FFFF"
@@ -456,24 +456,24 @@ const gt = { class: "klineSub" }, bt = { class: "klineSub-tips" }, xt = {
456
456
  } : {
457
457
  value: P,
458
458
  itemStyle: {
459
- color: b.seriesColor
459
+ color: x.seriesColor
460
460
  }
461
461
  })
462
462
  };
463
- if (b.series === "line")
463
+ if (x.series === "line")
464
464
  return {
465
465
  xAxisIndex: 0,
466
- yAxisIndex: b.yAxis === "right" ? 2 : 1,
467
- name: b.key,
466
+ yAxisIndex: x.yAxis === "right" ? 2 : 1,
467
+ name: x.key,
468
468
  type: "line",
469
469
  silent: !0,
470
470
  symbol: "none",
471
- data: b.data,
471
+ data: x.data,
472
472
  lineStyle: {
473
473
  width: 1
474
474
  },
475
475
  itemStyle: {
476
- color: b.color
476
+ color: x.color
477
477
  }
478
478
  };
479
479
  });
@@ -502,11 +502,11 @@ const gt = { class: "klineSub" }, bt = { class: "klineSub-tips" }, xt = {
502
502
  type: "cross",
503
503
  label: {
504
504
  rich: {},
505
- formatter: (b) => {
506
- const { axisDimension: P, value: q } = b;
505
+ formatter: (x) => {
506
+ const { axisDimension: P, value: q } = x;
507
507
  if (P === "x")
508
508
  return ["6", "7", "8"].includes(d.cycle) ? F(q).format("YYYY-MM-DD") : q;
509
- if (b.axisIndex === 1)
509
+ if (x.axisIndex === 1)
510
510
  return String(r(q));
511
511
  }
512
512
  }
@@ -523,7 +523,7 @@ const gt = { class: "klineSub" }, bt = { class: "klineSub-tips" }, xt = {
523
523
  show: !1
524
524
  },
525
525
  axisLabel: {
526
- formatter: (b) => ["6", "7", "8"].includes(d.cycle) ? F(b).format("YYYY-MM-DD") : b
526
+ formatter: (x) => ["6", "7", "8"].includes(d.cycle) ? F(x).format("YYYY-MM-DD") : x
527
527
  }
528
528
  },
529
529
  yAxis: [
@@ -532,8 +532,8 @@ const gt = { class: "klineSub" }, bt = { class: "klineSub-tips" }, xt = {
532
532
  },
533
533
  {
534
534
  position: "left",
535
- min: $ === "cover" ? (b) => b.min : null,
536
- max: $ === "cover" ? (b) => b.max : null,
535
+ min: $ === "cover" ? (x) => x.min : null,
536
+ max: $ === "cover" ? (x) => x.max : null,
537
537
  splitNumber: 1,
538
538
  axisLine: {
539
539
  show: !0
@@ -548,8 +548,8 @@ const gt = { class: "klineSub" }, bt = { class: "klineSub-tips" }, xt = {
548
548
  },
549
549
  {
550
550
  position: "right",
551
- min: B === "cover" ? (b) => b.min : null,
552
- max: B === "cover" ? (b) => b.max : null,
551
+ min: B === "cover" ? (x) => x.min : null,
552
+ max: B === "cover" ? (x) => x.max : null,
553
553
  splitNumber: 1,
554
554
  axisLine: {
555
555
  show: !1
@@ -571,8 +571,8 @@ const gt = { class: "klineSub" }, bt = { class: "klineSub-tips" }, xt = {
571
571
  }), (p, _) => {
572
572
  const L = et, D = tt;
573
573
  return T(), E("div", gt, [
574
- K("div", bt, [
575
- Y.value.length ? (T(), E("div", xt, [
574
+ U("div", xt, [
575
+ Y.value.length ? (T(), E("div", bt, [
576
576
  I(D, {
577
577
  modelValue: y.value,
578
578
  "onUpdate:modelValue": _[0] || (_[0] = (R) => y.value = R),
@@ -592,7 +592,7 @@ const gt = { class: "klineSub" }, bt = { class: "klineSub-tips" }, xt = {
592
592
  ])) : G("", !0),
593
593
  I(yt, { data: Y.value }, null, 8, ["data"])
594
594
  ]),
595
- K("div", {
595
+ U("div", {
596
596
  class: "klineSub-chart",
597
597
  ref_key: "subChartRef",
598
598
  ref: f
@@ -600,7 +600,7 @@ const gt = { class: "klineSub" }, bt = { class: "klineSub-tips" }, xt = {
600
600
  ]);
601
601
  };
602
602
  }
603
- }, ht = /* @__PURE__ */ J(_t, [["__scopeId", "data-v-d720c2c7"]]), wt = /* @__PURE__ */ xe({
603
+ }, ht = /* @__PURE__ */ J(_t, [["__scopeId", "data-v-6e6b5f5b"]]), wt = /* @__PURE__ */ be({
604
604
  __name: "index",
605
605
  emits: ["closeContextMenuCallBack"],
606
606
  setup(t, { emit: w }) {
@@ -645,8 +645,8 @@ const gt = { class: "klineSub" }, bt = { class: "klineSub-tips" }, xt = {
645
645
  ], 544));
646
646
  }
647
647
  });
648
- const kt = /* @__PURE__ */ J(wt, [["__scopeId", "data-v-811db6b4"]]);
649
- const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
648
+ const kt = /* @__PURE__ */ J(wt, [["__scopeId", "data-v-8d581ce9"]]);
649
+ const Te = (t) => (Ke("data-v-c051c308"), t = t(), je(), t), Yt = {
650
650
  key: 0,
651
651
  class: "klineBasic-tips"
652
652
  }, Dt = {
@@ -658,7 +658,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
658
658
  }, Mt = {
659
659
  key: 3,
660
660
  class: "klineBasic-error"
661
- }, Lt = /* @__PURE__ */ Te(() => /* @__PURE__ */ K("div", { class: "klineBasic-error-content" }, "加载失败,请刷新重试", -1)), Ft = { style: { "text-align": "center" } }, At = /* @__PURE__ */ Te(() => /* @__PURE__ */ K("span", { style: { "margin-right": "10px" } }, "预警价格:", -1)), Tt = { class: "dialog-footer" }, Vt = {
661
+ }, Lt = /* @__PURE__ */ Te(() => /* @__PURE__ */ U("div", { class: "klineBasic-error-content" }, "加载失败,请刷新重试", -1)), Ft = { style: { "text-align": "center" } }, At = /* @__PURE__ */ Te(() => /* @__PURE__ */ U("span", { style: { "margin-right": "10px" } }, "预警价格:", -1)), Tt = { class: "dialog-footer" }, Vt = {
662
662
  __name: "index",
663
663
  props: {
664
664
  variety: {
@@ -718,7 +718,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
718
718
  setup(t, { expose: w, emit: h }) {
719
719
  const r = [{ label: "画线预警", key: "drawWarningLine" }];
720
720
  let i = null, e = null, m = null, s = null, d = null, f = !1, y = !1;
721
- const Y = h, a = t, p = A(!1), _ = A(!1), L = A(!1), D = A(null), R = A(null), $ = A("VOL"), B = A(0), V = A({}), b = A([]), P = A({}), q = A(!1), re = A(""), me = A([...r]), W = le(() => ({
721
+ const Y = h, a = t, p = A(!1), _ = A(!1), L = A(!1), D = A(null), R = A(null), $ = A("VOL"), B = A(0), V = A({}), x = A([]), P = A({}), q = A(!1), re = A(""), me = A([...r]), W = le(() => ({
722
722
  defaultShowCounts: 500,
723
723
  addCounts: 2e3,
724
724
  maxShowCounts: 5e3,
@@ -731,7 +731,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
731
731
  getFactorData: !0,
732
732
  ...a.config
733
733
  })), Ve = () => {
734
- e || (e = be.init(D.value), $e(), W.value.showSubChart && R.value.connect(e), i = Qe(D.value), i.listen(() => {
734
+ e || (e = xe.init(D.value), $e(), W.value.showSubChart && R.value.connect(e), i = Qe(D.value), i.listen(() => {
735
735
  requestAnimationFrame(() => {
736
736
  e == null || e.resize(), Q();
737
737
  });
@@ -753,11 +753,11 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
753
753
  const { time: o } = V.value, { defaultShowCounts: v } = W.value;
754
754
  let c = o.length - 1 - v, g = o.length - 1;
755
755
  if (n && e) {
756
- const M = e.getOption(), x = (S = (u = M == null ? void 0 : M.xAxis) == null ? void 0 : u[0]) == null ? void 0 : S.data, N = (k = M == null ? void 0 : M.dataZoom) == null ? void 0 : k[0];
757
- if (x != null && x.length && N) {
758
- const U = x[N.startValue], H = x[N.endValue];
759
- if (U && H) {
760
- const ge = o.findIndex((ee) => new Date(ee).getTime() >= new Date(U).getTime()), X = o.findLastIndex((ee) => new Date(ee).getTime() <= new Date(H).getTime());
756
+ const M = e.getOption(), b = (S = (u = M == null ? void 0 : M.xAxis) == null ? void 0 : u[0]) == null ? void 0 : S.data, N = (k = M == null ? void 0 : M.dataZoom) == null ? void 0 : k[0];
757
+ if (b != null && b.length && N) {
758
+ const H = b[N.startValue], K = b[N.endValue];
759
+ if (H && K) {
760
+ const ge = o.findIndex((ee) => new Date(ee).getTime() >= new Date(H).getTime()), X = o.findLastIndex((ee) => new Date(ee).getTime() <= new Date(K).getTime());
761
761
  c = ge !== -1 ? ge : 0, g = X !== -1 ? X : o.length - 1, c > g && (c = Math.max(0, g - Math.min(100, o.length - 1)));
762
762
  }
763
763
  }
@@ -777,8 +777,8 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
777
777
  if (e && !e.isDisposed()) {
778
778
  const k = e.getOption();
779
779
  if ((S = k == null ? void 0 : k.dataZoom) != null && S[0]) {
780
- const { startValue: M, endValue: x } = k.dataZoom[0];
781
- M !== void 0 && x !== void 0 && (l = M, u = x);
780
+ const { startValue: M, endValue: b } = k.dataZoom[0];
781
+ M !== void 0 && b !== void 0 && (l = M, u = b);
782
782
  }
783
783
  }
784
784
  requestAnimationFrame(() => {
@@ -792,7 +792,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
792
792
  const o = e == null ? void 0 : e.getWidth(), v = e == null ? void 0 : e.getHeight();
793
793
  !o || !v || (e == null || e.setOption(
794
794
  {
795
- graphic: ut(e, b.value, a, W.value, () => {
795
+ graphic: ut(e, x.value, a, W.value, () => {
796
796
  se();
797
797
  })
798
798
  },
@@ -847,7 +847,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
847
847
  try {
848
848
  if (!a.variety || !a.cycle)
849
849
  return;
850
- const { variety: u, featureId: S, cycle: k, indicatorStore: M, mainIndicator: x, right: N, startTime: U, endTime: H } = a, { defaultShowCounts: ge, addCounts: X, showWarningLine: ee, getFactorData: ke } = W.value;
850
+ const { variety: u, featureId: S, cycle: k, indicatorStore: M, mainIndicator: b, right: N, startTime: H, endTime: K } = a, { defaultShowCounts: ge, addCounts: X, showWarningLine: ee, getFactorData: ke } = W.value;
851
851
  Ve(), e && !e.isDisposed() && e.showLoading({
852
852
  text: "加载中...",
853
853
  color: "#409eff",
@@ -859,19 +859,19 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
859
859
  variety: u,
860
860
  featureId: S,
861
861
  cycle: k,
862
- mainIndicatorList: M.getIndicatorParams(x),
862
+ mainIndicatorList: M.getIndicatorParams(b),
863
863
  subIndicator: $.value,
864
864
  right: N,
865
865
  showWarningLine: ee,
866
866
  getFactorData: ke
867
867
  };
868
- U && H ? (Z.startTime = U, Z.endTime = H) : U ? (Z.startTime = U, Z.limit = X) : H ? (Z.endTime = H, Z.limit = X) : (Z.endTime = F().add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), Z.limit = X);
868
+ H && K ? (Z.startTime = H, Z.endTime = K) : H ? (Z.startTime = H, Z.limit = X) : K ? (Z.endTime = K, Z.limit = X) : (Z.endTime = F().add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), Z.limit = X);
869
869
  const O = await ot(Z);
870
870
  if (!((v = (o = (n = O == null ? void 0 : O.body) == null ? void 0 : n.kline) == null ? void 0 : o.time) != null && v.length)) {
871
871
  _.value = !0, L.value = !1, ve();
872
872
  return;
873
873
  }
874
- _.value = !1, L.value = !1, V.value = (c = O == null ? void 0 : O.body) == null ? void 0 : c.kline, b.value = ((g = O == null ? void 0 : O.body) == null ? void 0 : g.warningLine) || [], await ne(), he(!1), ke && Y("getFactorData", (l = O == null ? void 0 : O.body) == null ? void 0 : l.factor), ve();
874
+ _.value = !1, L.value = !1, V.value = (c = O == null ? void 0 : O.body) == null ? void 0 : c.kline, x.value = ((g = O == null ? void 0 : O.body) == null ? void 0 : g.warningLine) || [], await ne(), he(!1), ke && Y("getFactorData", (l = O == null ? void 0 : O.body) == null ? void 0 : l.factor), ve();
875
875
  } catch (u) {
876
876
  throw ve(), L.value = !0, _.value = !1, new Error(u);
877
877
  }
@@ -890,18 +890,18 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
890
890
  V.value = {
891
891
  time: [...k.body.time, ...V.value.time.slice(1)],
892
892
  data: [...k.body.data, ...V.value.data.slice(1)],
893
- mainIndicator: V.value.mainIndicator.map((M, x) => {
893
+ mainIndicator: V.value.mainIndicator.map((M, b) => {
894
894
  var N;
895
895
  return {
896
896
  ...M,
897
- data: [...((N = k.body.mainIndicator[x]) == null ? void 0 : N.data) ?? [], ...M.data.slice(1)]
897
+ data: [...((N = k.body.mainIndicator[b]) == null ? void 0 : N.data) ?? [], ...M.data.slice(1)]
898
898
  };
899
899
  }),
900
- subIndicator: V.value.subIndicator.map((M, x) => {
900
+ subIndicator: V.value.subIndicator.map((M, b) => {
901
901
  var N;
902
902
  return {
903
903
  ...M,
904
- data: [...((N = k.body.subIndicator[x]) == null ? void 0 : N.data) ?? [], ...M.data.slice(1)]
904
+ data: [...((N = k.body.subIndicator[b]) == null ? void 0 : N.data) ?? [], ...M.data.slice(1)]
905
905
  };
906
906
  })
907
907
  }, console.log("触发了加载更多数据"), await ne(), he(!0), k.body.data.length < u && (y = !0, console.log("历史数据已经全部加载完毕")), f = !1;
@@ -983,7 +983,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
983
983
  );
984
984
  }, se = async () => {
985
985
  const n = await it({ featureId: a.featureId });
986
- b.value = (n == null ? void 0 : n.body) || [], Q(), Y("change", "warningLine", b.value);
986
+ x.value = (n == null ? void 0 : n.body) || [], Q(), Y("change", "warningLine", x.value);
987
987
  }, Ne = async (n) => {
988
988
  const { variety: o, varietyName: v, featureId: c, featureType: g } = a;
989
989
  if (n.key === "drawWarningLine") {
@@ -1006,7 +1006,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
1006
1006
  });
1007
1007
  const S = async (k) => {
1008
1008
  e == null || e.getZr().off("mousedown", S);
1009
- const M = e == null ? void 0 : e.convertFromPixel({ yAxisIndex: 0 }, k.offsetY), x = Math.round(M * 1e3) / 1e3;
1009
+ const M = e == null ? void 0 : e.convertFromPixel({ yAxisIndex: 0 }, k.offsetY), b = Math.round(M * 1e3) / 1e3;
1010
1010
  e == null || e.setOption({
1011
1011
  ...l,
1012
1012
  tooltip: {
@@ -1026,7 +1026,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
1026
1026
  featureName: v,
1027
1027
  featureId: c,
1028
1028
  featureType: g,
1029
- warnPrice: x
1029
+ warnPrice: b
1030
1030
  }), de.success("画线预警成功!"), se();
1031
1031
  };
1032
1032
  e == null || e.getZr().on("mousedown", S);
@@ -1060,16 +1060,16 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
1060
1060
  m && (cancelAnimationFrame(m), m = null), s && (cancelAnimationFrame(s), s = null), e == null || e.off("datazoom"), e == null || e.off("highlight"), e == null || e.off("globalout"), e == null || e.dispose(), i == null || i.dispose(), window.removeEventListener("keydown", we);
1061
1061
  }), w({
1062
1062
  draw: (n, o) => {
1063
- n === "warningLine" && (b.value = o, Q());
1063
+ n === "warningLine" && (x.value = o, Q());
1064
1064
  }
1065
1065
  }), (n, o) => {
1066
1066
  var k, M;
1067
- const v = Ke, c = Ue, g = Ze, l = ze, u = qe, S = We;
1067
+ const v = Ue, c = He, g = Ze, l = ze, u = qe, S = We;
1068
1068
  return T(), E(oe, null, [
1069
- K("div", {
1069
+ U("div", {
1070
1070
  class: "klineBasic",
1071
- onMousemove: o[1] || (o[1] = (x) => p.value = !0),
1072
- onMouseout: o[2] || (o[2] = (x) => p.value = !1)
1071
+ onMousemove: o[1] || (o[1] = (b) => p.value = !0),
1072
+ onMouseout: o[2] || (o[2] = (b) => p.value = !1)
1073
1073
  }, [
1074
1074
  (k = V.value.time) != null && k.length ? (T(), E("div", Yt, [
1075
1075
  I(pt, {
@@ -1078,7 +1078,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
1078
1078
  activeIndex: B.value
1079
1079
  }, null, 8, ["variety", "data", "activeIndex"])
1080
1080
  ])) : G("", !0),
1081
- K("div", {
1081
+ U("div", {
1082
1082
  class: "klineBasic-main",
1083
1083
  style: pe({ height: W.value.showSubChart ? "70%" : "100%" })
1084
1084
  }, [
@@ -1091,14 +1091,14 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
1091
1091
  borderRight: 0
1092
1092
  } }, {
1093
1093
  default: z(() => [
1094
- (T(!0), E(oe, null, fe(me.value, (x) => (T(), Le(v, {
1094
+ (T(!0), E(oe, null, fe(me.value, (b) => (T(), Le(v, {
1095
1095
  style: { height: "36px" },
1096
- key: x.key,
1097
- index: x.key,
1098
- onClick: (N) => Ne(x)
1096
+ key: b.key,
1097
+ index: b.key,
1098
+ onClick: (N) => Ne(b)
1099
1099
  }, {
1100
1100
  default: z(() => [
1101
- ue(ae(x.label), 1)
1101
+ ue(ae(b.label), 1)
1102
1102
  ]),
1103
1103
  _: 2
1104
1104
  }, 1032, ["index", "onClick"]))), 128))
@@ -1107,7 +1107,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
1107
1107
  })
1108
1108
  ]),
1109
1109
  default: z(() => [
1110
- K("div", {
1110
+ U("div", {
1111
1111
  ref_key: "klineBasicMainRef",
1112
1112
  ref: D,
1113
1113
  style: { height: "100%" }
@@ -1121,7 +1121,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
1121
1121
  ref_key: "klineSubRef",
1122
1122
  ref: R,
1123
1123
  modelValue: $.value,
1124
- "onUpdate:modelValue": o[0] || (o[0] = (x) => $.value = x),
1124
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => $.value = b),
1125
1125
  data: V.value,
1126
1126
  cycle: t.cycle,
1127
1127
  activeIndex: B.value,
@@ -1136,7 +1136,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
1136
1136
  ])) : G("", !0),
1137
1137
  L.value ? (T(), E("div", Mt, [
1138
1138
  Lt,
1139
- K("div", Ft, [
1139
+ U("div", Ft, [
1140
1140
  I(l, { onClick: ye }, {
1141
1141
  default: z(() => [
1142
1142
  ue("刷新")
@@ -1148,15 +1148,15 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
1148
1148
  ], 32),
1149
1149
  I(S, {
1150
1150
  modelValue: q.value,
1151
- "onUpdate:modelValue": o[5] || (o[5] = (x) => q.value = x),
1151
+ "onUpdate:modelValue": o[5] || (o[5] = (b) => q.value = b),
1152
1152
  title: "画线预警-修改价格",
1153
1153
  width: "30%",
1154
1154
  "align-center": ""
1155
1155
  }, {
1156
1156
  footer: z(() => [
1157
- K("span", Tt, [
1157
+ U("span", Tt, [
1158
1158
  I(l, {
1159
- onClick: o[4] || (o[4] = (x) => q.value = !1)
1159
+ onClick: o[4] || (o[4] = (b) => q.value = !1)
1160
1160
  }, {
1161
1161
  default: z(() => [
1162
1162
  ue("取消")
@@ -1178,7 +1178,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
1178
1178
  At,
1179
1179
  I(u, {
1180
1180
  modelValue: re.value,
1181
- "onUpdate:modelValue": o[3] || (o[3] = (x) => re.value = x),
1181
+ "onUpdate:modelValue": o[3] || (o[3] = (b) => re.value = b),
1182
1182
  placeholder: "输入预警价格"
1183
1183
  }, null, 8, ["modelValue"])
1184
1184
  ]),
@@ -1187,7 +1187,7 @@ const Te = (t) => (He("data-v-dbb75956"), t = t(), je(), t), Yt = {
1187
1187
  ], 64);
1188
1188
  };
1189
1189
  }
1190
- }, Et = /* @__PURE__ */ J(Vt, [["__scopeId", "data-v-dbb75956"]]), gn = {
1190
+ }, Et = /* @__PURE__ */ J(Vt, [["__scopeId", "data-v-c051c308"]]), gn = {
1191
1191
  install(t) {
1192
1192
  t.component("st-klineBasic", Et);
1193
1193
  }
@@ -1 +1 @@
1
- "use strict";const u=require("./base-ef747d02.cjs"),A=require("./el-overlay-151708cb.cjs"),F=require("./el-button-13dc915f.cjs");require("./el-scrollbar-bc3f790d.cjs");const R=require("./el-segmented-79a1367c.cjs"),x=require("./el-checkbox-bdf64663.cjs");require("./el-tag-5d5608e0.cjs");const U=require("./el-select-ec04e7ce.cjs"),h=require("./el-popper-43ec37f4.cjs"),M=require("./el-divider-4713d74c.cjs"),e=require("vue"),$=require("./_plugin-vue_export-helper-f246444f.cjs"),T=require("./index-476c4459.cjs"),K=require("./validator-ea292506.cjs"),E=require("./use-form-common-props-02be4928.cjs"),H=require("./index-a00e0534.cjs"),j=require("./index-f1c702f6.cjs"),G=require("./index-bb833443.cjs");require("./vnode-b906ae6d.cjs");require("./scroll-b108dabd.cjs");require("./index-9780a537.cjs");require("./use-global-config-31b3ec57.cjs");require("./index-cfcd60ca.cjs");require("./index-eea0bcb3.cjs");require("./index-60c69dd1.cjs");require("./castArray-35947698.cjs");require("./index-cfd00899.cjs");require("./debounce-62f5b6e8.cjs");const J=u.buildProps({...A.dialogProps,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),W=A.dialogEmits;function X(r,w){const{width:v,height:c}=E.useWindowSize(),V=e.computed(()=>["ltr","rtl"].includes(r.direction)),b=e.computed(()=>["ltr","ttb"].includes(r.direction)?1:-1),s=e.computed(()=>V.value?v.value:c.value),l=e.computed(()=>u.clamp(p.value+b.value*y.value,4,s.value)),p=e.ref(0),y=e.ref(0),g=e.ref(!1),S=e.ref(!1);let C=[],I=[];const d=()=>{var f;const N=(f=w.value)==null?void 0:f.closest('[aria-modal="true"]');return N?V.value?N.offsetWidth:N.offsetHeight:100};e.watch(()=>[r.size,r.resizable],()=>{S.value=!1,p.value=0,y.value=0,i()});const a=f=>{r.resizable&&(S.value||(p.value=d(),S.value=!0),C=[f.pageX,f.pageY],g.value=!0,I.push(E.useEventListener(window,"mouseup",i),E.useEventListener(window,"mousemove",B)))},B=f=>{const{pageX:N,pageY:t}=f,m=N-C[0],z=t-C[1];y.value=V.value?m:z},i=()=>{C=[],p.value=l.value,y.value=0,g.value=!1,I.forEach(f=>f==null?void 0:f()),I=[]},k=E.useEventListener(w,"mousedown",a);return e.onBeforeUnmount(()=>{k(),i()}),{size:e.computed(()=>S.value?`${l.value}px`:u.addUnit(r.size)),isResizing:g,isHorizontal:V}}const Y=e.defineComponent({name:"ElDrawer",inheritAttrs:!1}),Q=e.defineComponent({...Y,props:J,emits:W,setup(r,{expose:w}){const v=r,c=e.useSlots();j.useDeprecated({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},e.computed(()=>!!c.title));const V=e.ref(),b=e.ref(),s=e.ref(),l=u.useNamespace("drawer"),{t:p}=G.useLocale(),{afterEnter:y,afterLeave:g,beforeLeave:S,visible:C,rendered:I,titleId:d,bodyId:a,zIndex:B,onModalClick:i,onOpenAutoFocus:k,onCloseAutoFocus:f,onFocusoutPrevented:N,onCloseRequested:t,handleClose:m}=A.useDialog(v,V),{isHorizontal:z,size:P,isResizing:o}=X(v,s);return w({handleClose:m,afterEnter:y,afterLeave:g}),(n,L)=>(e.openBlock(),e.createBlock(e.unref(h.ElTeleport),{to:n.appendTo,disabled:n.appendTo!=="body"?!1:!n.appendToBody},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:e.unref(l).b("fade"),onAfterEnter:e.unref(y),onAfterLeave:e.unref(g),onBeforeLeave:e.unref(S),persisted:""},{default:e.withCtx(()=>{var q;return[e.withDirectives(e.createVNode(e.unref(A.ElOverlay),{mask:n.modal,"overlay-class":[e.unref(l).is("drawer"),(q=n.modalClass)!=null?q:""],"z-index":e.unref(B),onClick:e.unref(i)},{default:e.withCtx(()=>[e.createVNode(e.unref(h.ElFocusTrap),{loop:"",trapped:e.unref(C),"focus-trap-el":V.value,"focus-start-el":b.value,onFocusAfterTrapped:e.unref(k),onFocusAfterReleased:e.unref(f),onFocusoutPrevented:e.unref(N),onReleaseRequested:e.unref(t)},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({ref_key:"drawerRef",ref:V,"aria-modal":"true","aria-label":n.title||void 0,"aria-labelledby":n.title?void 0:e.unref(d),"aria-describedby":e.unref(a)},n.$attrs,{class:[e.unref(l).b(),n.direction,e.unref(C)&&"open",e.unref(l).is("dragging",e.unref(o))],style:{[e.unref(z)?"width":"height"]:e.unref(P)},role:"dialog",onClick:e.withModifiers(()=>{},["stop"])}),[e.createElementVNode("span",{ref_key:"focusStartRef",ref:b,class:e.normalizeClass(e.unref(l).e("sr-focus")),tabindex:"-1"},null,2),n.withHeader?(e.openBlock(),e.createElementBlock("header",{key:0,class:e.normalizeClass([e.unref(l).e("header"),n.headerClass])},[n.$slots.title?e.renderSlot(n.$slots,"title",{key:1},()=>[e.createCommentVNode(" DEPRECATED SLOT ")]):e.renderSlot(n.$slots,"header",{key:0,close:e.unref(m),titleId:e.unref(d),titleClass:e.unref(l).e("title")},()=>[e.createElementVNode("span",{id:e.unref(d),role:"heading","aria-level":n.headerAriaLevel,class:e.normalizeClass(e.unref(l).e("title"))},e.toDisplayString(n.title),11,["id","aria-level"])]),n.showClose?(e.openBlock(),e.createElementBlock("button",{key:2,"aria-label":e.unref(p)("el.drawer.close"),class:e.normalizeClass(e.unref(l).e("close-btn")),type:"button",onClick:e.unref(m)},[e.createVNode(e.unref(T.ElIcon),{class:e.normalizeClass(e.unref(l).e("close"))},{default:e.withCtx(()=>[e.createVNode(e.unref(T.close_default))]),_:1},8,["class"])],10,["aria-label","onClick"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.unref(I)?(e.openBlock(),e.createElementBlock("div",{key:1,id:e.unref(a),class:e.normalizeClass([e.unref(l).e("body"),n.bodyClass])},[e.renderSlot(n.$slots,"default")],10,["id"])):e.createCommentVNode("v-if",!0),n.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass([e.unref(l).e("footer"),n.footerClass])},[e.renderSlot(n.$slots,"footer")],2)):e.createCommentVNode("v-if",!0),n.resizable?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"draggerRef",ref:s,style:e.normalizeStyle({zIndex:e.unref(B)}),class:e.normalizeClass(e.unref(l).e("dragger"))},null,6)):e.createCommentVNode("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[e.vShow,e.unref(C)]])]}),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var Z=u._export_sfc(Q,[["__file","drawer.vue"]]);const ee=u.withInstall(Z),te=u.buildProps({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:K.isValidComponentSize},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:E.iconPropType},activeActionIcon:{type:E.iconPropType},activeIcon:{type:E.iconPropType},inactiveIcon:{type:E.iconPropType},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:u.definePropType(Function)},id:String,tabindex:{type:[String,Number]},...h.useAriaProps(["ariaLabel"])}),le={[h.UPDATE_MODEL_EVENT]:r=>u.isBoolean(r)||u.isString(r)||u.isNumber(r),[h.CHANGE_EVENT]:r=>u.isBoolean(r)||u.isString(r)||u.isNumber(r),[h.INPUT_EVENT]:r=>u.isBoolean(r)||u.isString(r)||u.isNumber(r)},O="ElSwitch",oe=e.defineComponent({name:O}),ae=e.defineComponent({...oe,props:te,emits:le,setup(r,{expose:w,emit:v}){const c=r,{formItem:V}=E.useFormItem(),b=E.useFormSize(),s=u.useNamespace("switch"),{inputId:l}=E.useFormItemInputId(c,{formItemContext:V}),p=E.useFormDisabled(e.computed(()=>c.loading)),y=e.ref(c.modelValue!==!1),g=e.ref(),S=e.ref(),C=e.computed(()=>[s.b(),s.m(b.value),s.is("disabled",p.value),s.is("checked",i.value)]),I=e.computed(()=>[s.e("label"),s.em("label","left"),s.is("active",!i.value)]),d=e.computed(()=>[s.e("label"),s.em("label","right"),s.is("active",i.value)]),a=e.computed(()=>({width:u.addUnit(c.width)}));e.watch(()=>c.modelValue,()=>{y.value=!0});const B=e.computed(()=>y.value?c.modelValue:!1),i=e.computed(()=>B.value===c.activeValue);[c.activeValue,c.inactiveValue].includes(B.value)||(v(h.UPDATE_MODEL_EVENT,c.inactiveValue),v(h.CHANGE_EVENT,c.inactiveValue),v(h.INPUT_EVENT,c.inactiveValue)),e.watch(i,t=>{var m;g.value.checked=t,c.validateEvent&&((m=V==null?void 0:V.validate)==null||m.call(V,"change").catch(z=>h.debugWarn()))});const k=()=>{const t=i.value?c.inactiveValue:c.activeValue;v(h.UPDATE_MODEL_EVENT,t),v(h.CHANGE_EVENT,t),v(h.INPUT_EVENT,t),e.nextTick(()=>{g.value.checked=i.value})},f=()=>{if(p.value)return;const{beforeChange:t}=c;if(!t){k();return}const m=t();[u.isPromise(m),u.isBoolean(m)].includes(!0)||h.throwError(O,"beforeChange must return type `Promise<boolean>` or `boolean`"),u.isPromise(m)?m.then(P=>{P&&k()}).catch(P=>{}):m&&k()},N=()=>{var t,m;(m=(t=g.value)==null?void 0:t.focus)==null||m.call(t)};return e.onMounted(()=>{g.value.checked=i.value}),w({focus:N,checked:i}),(t,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(C)),onClick:e.withModifiers(f,["prevent"])},[e.createElementVNode("input",{id:e.unref(l),ref_key:"input",ref:g,class:e.normalizeClass(e.unref(s).e("input")),type:"checkbox",role:"switch","aria-checked":e.unref(i),"aria-disabled":e.unref(p),"aria-label":t.ariaLabel,name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:e.unref(p),tabindex:t.tabindex,onChange:k,onKeydown:e.withKeys(f,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!t.inlinePrompt&&(t.inactiveIcon||t.inactiveText)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(I))},[t.inactiveIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.inactiveIcon)))]),_:1})):e.createCommentVNode("v-if",!0),!t.inactiveIcon&&t.inactiveText?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-hidden":e.unref(i)},e.toDisplayString(t.inactiveText),9,["aria-hidden"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("span",{ref_key:"core",ref:S,class:e.normalizeClass(e.unref(s).e("core")),style:e.normalizeStyle(e.unref(a))},[t.inlinePrompt?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(s).e("inner"))},[t.activeIcon||t.inactiveIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0,class:e.normalizeClass(e.unref(s).is("icon"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)?t.activeIcon:t.inactiveIcon)))]),_:1},8,["class"])):t.activeText||t.inactiveText?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(s).is("text")),"aria-hidden":!e.unref(i)},e.toDisplayString(e.unref(i)?t.activeText:t.inactiveText),11,["aria-hidden"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("action"))},[t.loading?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0,class:e.normalizeClass(e.unref(s).is("loading"))},{default:e.withCtx(()=>[e.createVNode(e.unref(T.loading_default))]),_:1},8,["class"])):e.unref(i)?e.renderSlot(t.$slots,"active-action",{key:1},()=>[t.activeActionIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.activeActionIcon)))]),_:1})):e.createCommentVNode("v-if",!0)]):e.unref(i)?e.createCommentVNode("v-if",!0):e.renderSlot(t.$slots,"inactive-action",{key:2},()=>[t.inactiveActionIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.inactiveActionIcon)))]),_:1})):e.createCommentVNode("v-if",!0)])],2)],6),!t.inlinePrompt&&(t.activeIcon||t.activeText)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(d))},[t.activeIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.activeIcon)))]),_:1})):e.createCommentVNode("v-if",!0),!t.activeIcon&&t.activeText?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-hidden":!e.unref(i)},e.toDisplayString(t.activeText),9,["aria-hidden"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0)],10,["onClick"]))}});var ne=u._export_sfc(ae,[["__file","switch.vue"]]);const re=u.withInstall(ne);const se=[{label:"买卖",value:0},{label:"开平",value:1}],D=()=>({mainIndicator:"MA",sellBuy:1,sellBuyByPrice:1,singelCycle:"6",multiCycleNum:6,multiCycleList:["1","2","3","4","5","6"],pageType:1,enable_tradeLogBrush:!0,enable_showScreenTimeRange:!0,enable_showScreenMaxPrice:!0,enable_dbClickOpenSingel:!0,enable_subChart:!0,enable_sliderChart:!0}),ie=(r,w)=>{var v;return((v=w.find(c=>c.value===r))==null?void 0:v.label)??"-"};const _=r=>(e.pushScopeId("data-v-6e5050a9"),r=r(),e.popScopeId(),r),ce={class:"kline-config element-dark"},ue={class:"setting-item"},de=_(()=>e.createElementVNode("span",{class:"label"},"主图指标: ",-1)),me={class:"setting-item"},pe=_(()=>e.createElementVNode("span",{class:"label"},"交易点位: ",-1)),fe={class:"setting-item"},ve=_(()=>e.createElementVNode("span",{class:"label"},"开平点按价格标: ",-1)),Ve={class:"setting-item"},be=_(()=>e.createElementVNode("span",{class:"label"},"单周期: ",-1)),ye={class:"setting-item"},ge=_(()=>e.createElementVNode("span",{class:"label"},"多周期: ",-1)),he={class:"mode"},ke={class:"cycleName"},Ce={class:"content"},Ne={class:"setting-item"},Ee=_(()=>e.createElementVNode("span",{class:"label"},"默认展示: ",-1)),_e={class:"setting-item"},Be=_(()=>e.createElementVNode("span",{class:"label"},"高亮交易范围: ",-1)),we={class:"setting-item"},Se=_(()=>e.createElementVNode("span",{class:"label"},"展示当屏时间: ",-1)),Ie={class:"setting-item"},Te=_(()=>e.createElementVNode("span",{class:"label"},"展示当屏最高价: ",-1)),ze={class:"setting-item"},Pe=_(()=>e.createElementVNode("span",{class:"label"},"多周期双击图表切换至单周期: ",-1)),Le={class:"setting-item"},qe=_(()=>e.createElementVNode("span",{class:"label"},"开启副图: ",-1)),De={class:"setting-item"},Ae=_(()=>e.createElementVNode("span",{class:"label"},"开启拖拽轴: ",-1)),Ue={class:"setting-footer"},Oe={__name:"index",props:{indicatorStore:{type:Object,default:()=>({})},origin:{type:String,default:"server"},cycleOptions:{type:Array,default:()=>[]}},emits:"callBack",setup(r,{expose:w,emit:v}){const{request:c}=e.inject("stConfig"),V=v,b=r,s=e.ref(!1),l=e.reactive({}),p=e.ref([]),y=e.ref([]),g=()=>{Object.assign(l,D())},S=async()=>{const d=JSON.stringify(l);b.origin==="server"?await c.post("/common/qt/updateUserConfig",{appId:1,json:d}):localStorage.setItem("userKlineConfig",d),V("callBack",d),s.value=!1},C=async()=>{if(b.origin==="server"){const{body:d}=await c.post("/common/qt/getUserConfig",{appId:1});Object.assign(l,D(),d?JSON.parse(d):{})}else{const d=localStorage.getItem("userKlineConfig");Object.assign(l,D(),d?JSON.parse(d):{})}},I=async()=>{if(b.origin==="server"){const{body:d}=await c.post("/common/qt/getDict",{dictIds:[1002]});p.value=d[1002].map(a=>({label:a.dictName,value:a.dictCode}))}else p.value=b.cycleOptions};return e.onMounted(()=>{I(),y.value=b.indicatorStore.mainIndicatorList??[]}),e.watch(()=>b.indicatorStore.mainIndicatorList,()=>{y.value=b.indicatorStore.mainIndicatorList??[]}),w({open:async()=>{await C(),s.value=!0},getDefaultUserKlineConfig:D}),(d,a)=>{const B=M.ElDivider,i=U.ElOption,k=U.ElSelect,f=x.ElCheckbox,N=R.ElSegmented,t=re,m=H.ElScrollbar,z=F.ElButton,P=ee;return e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(P,{modelValue:s.value,"onUpdate:modelValue":a[12]||(a[12]=o=>s.value=o),title:"K线自定义配置",size:320},{default:e.withCtx(()=>[e.createVNode(m,{class:"setting-main"},{default:e.withCtx(()=>[e.createVNode(B,{style:{"margin-top":"8px"}},{default:e.withCtx(()=>[e.createTextVNode("偏好设置")]),_:1}),e.createElementVNode("div",ue,[de,e.createVNode(k,{modelValue:l.mainIndicator,"onUpdate:modelValue":a[0]||(a[0]=o=>l.mainIndicator=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(o,n)=>(e.openBlock(),e.createBlock(i,{key:n,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",me,[pe,e.createVNode(k,{modelValue:l.sellBuy,"onUpdate:modelValue":a[1]||(a[1]=o=>l.sellBuy=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(se),(o,n)=>(e.openBlock(),e.createBlock(i,{key:n,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",fe,[ve,e.createVNode(f,{modelValue:l.sellBuyByPrice,"onUpdate:modelValue":a[2]||(a[2]=o=>l.sellBuyByPrice=o),"true-value":1,"false-value":0},null,8,["modelValue"])]),e.createElementVNode("div",Ve,[be,e.createVNode(k,{modelValue:l.singelCycle,"onUpdate:modelValue":a[3]||(a[3]=o=>l.singelCycle=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(o,n)=>(e.openBlock(),e.createBlock(i,{key:n,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",ye,[ge,e.createVNode(N,{size:"small",modelValue:l.multiCycleNum,"onUpdate:modelValue":a[4]||(a[4]=o=>l.multiCycleNum=o),options:[{label:"二图",value:2},{label:"四图",value:4},{label:"六图",value:6}],style:{height:"26px"}},null,8,["modelValue"])]),e.createElementVNode("div",{class:e.normalizeClass(`setting-multi-box grid-${l.multiCycleNum}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.multiCycleList.slice(0,l.multiCycleNum),(o,n)=>(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",ke,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ie)(l.multiCycleList[n],p.value)),1),e.createVNode(k,{modelValue:l.multiCycleList[n],"onUpdate:modelValue":L=>l.multiCycleList[n]=L,"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(L,q)=>(e.openBlock(),e.createBlock(i,{key:q,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",Ce,e.toDisplayString(n+1)+"号位K线",1)]))),256))],2),e.createElementVNode("div",Ne,[Ee,e.createVNode(N,{size:"small",modelValue:l.pageType,"onUpdate:modelValue":a[5]||(a[5]=o=>l.pageType=o),options:[{label:"单周期",value:1},{label:"多周期",value:2}],style:{height:"26px"}},null,8,["modelValue"])]),e.createVNode(B,{style:{"margin-top":"44px"}},{default:e.withCtx(()=>[e.createTextVNode("功能配置")]),_:1}),e.createElementVNode("div",_e,[Be,e.createVNode(t,{modelValue:l.enable_tradeLogBrush,"onUpdate:modelValue":a[6]||(a[6]=o=>l.enable_tradeLogBrush=o)},null,8,["modelValue"])]),e.createElementVNode("div",we,[Se,e.createVNode(t,{modelValue:l.enable_showScreenTimeRange,"onUpdate:modelValue":a[7]||(a[7]=o=>l.enable_showScreenTimeRange=o)},null,8,["modelValue"])]),e.createElementVNode("div",Ie,[Te,e.createVNode(t,{modelValue:l.enable_showScreenMaxPrice,"onUpdate:modelValue":a[8]||(a[8]=o=>l.enable_showScreenMaxPrice=o)},null,8,["modelValue"])]),e.createElementVNode("div",ze,[Pe,e.createVNode(t,{modelValue:l.enable_dbClickOpenSingel,"onUpdate:modelValue":a[9]||(a[9]=o=>l.enable_dbClickOpenSingel=o)},null,8,["modelValue"])]),e.createVNode(B,{style:{"margin-top":"44px"}},{default:e.withCtx(()=>[e.createTextVNode("组件开关")]),_:1}),e.createElementVNode("div",Le,[qe,e.createVNode(t,{modelValue:l.enable_subChart,"onUpdate:modelValue":a[10]||(a[10]=o=>l.enable_subChart=o)},null,8,["modelValue"])]),e.createElementVNode("div",De,[Ae,e.createVNode(t,{modelValue:l.enable_sliderChart,"onUpdate:modelValue":a[11]||(a[11]=o=>l.enable_sliderChart=o)},null,8,["modelValue"])])]),_:1}),e.createElementVNode("div",Ue,[e.createVNode(z,{onClick:g},{default:e.withCtx(()=>[e.createTextVNode(" 恢复默认 ")]),_:1}),e.createVNode(z,{type:"primary",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(" 保存配置 ")]),_:1})])]),_:1},8,["modelValue"])])}}},Fe=$._export_sfc(Oe,[["__scopeId","data-v-6e5050a9"]]),Re={install(r){r.component("st-klineConfig",Fe)}};module.exports=Re;
1
+ "use strict";const u=require("./base-ef747d02.cjs"),A=require("./el-overlay-8f1da9e8.cjs"),F=require("./el-button-613e0bb2.cjs");require("./el-scrollbar-bc3f790d.cjs");const R=require("./el-segmented-833ac177.cjs"),x=require("./el-checkbox-e90762df.cjs");require("./el-tag-9c2f329f.cjs");const U=require("./el-select-70806166.cjs"),h=require("./el-popper-a4f3ae4d.cjs"),M=require("./el-divider-4713d74c.cjs"),e=require("vue"),$=require("./_plugin-vue_export-helper-f246444f.cjs"),T=require("./index-00f6ca75.cjs"),K=require("./validator-366dbf39.cjs"),E=require("./use-form-common-props-ac666630.cjs"),H=require("./index-185792a7.cjs"),j=require("./index-f1c702f6.cjs"),G=require("./index-bb833443.cjs");require("./vnode-b906ae6d.cjs");require("./scroll-b108dabd.cjs");require("./index-9780a537.cjs");require("./use-global-config-23472471.cjs");require("./index-5c0dd943.cjs");require("./index-eea0bcb3.cjs");require("./index-ac8dc53d.cjs");require("./castArray-35947698.cjs");require("./index-870b6c9d.cjs");require("./debounce-62f5b6e8.cjs");const J=u.buildProps({...A.dialogProps,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),W=A.dialogEmits;function X(r,w){const{width:v,height:c}=E.useWindowSize(),V=e.computed(()=>["ltr","rtl"].includes(r.direction)),b=e.computed(()=>["ltr","ttb"].includes(r.direction)?1:-1),s=e.computed(()=>V.value?v.value:c.value),l=e.computed(()=>u.clamp(p.value+b.value*y.value,4,s.value)),p=e.ref(0),y=e.ref(0),g=e.ref(!1),S=e.ref(!1);let C=[],I=[];const d=()=>{var f;const N=(f=w.value)==null?void 0:f.closest('[aria-modal="true"]');return N?V.value?N.offsetWidth:N.offsetHeight:100};e.watch(()=>[r.size,r.resizable],()=>{S.value=!1,p.value=0,y.value=0,i()});const a=f=>{r.resizable&&(S.value||(p.value=d(),S.value=!0),C=[f.pageX,f.pageY],g.value=!0,I.push(E.useEventListener(window,"mouseup",i),E.useEventListener(window,"mousemove",B)))},B=f=>{const{pageX:N,pageY:t}=f,m=N-C[0],z=t-C[1];y.value=V.value?m:z},i=()=>{C=[],p.value=l.value,y.value=0,g.value=!1,I.forEach(f=>f==null?void 0:f()),I=[]},k=E.useEventListener(w,"mousedown",a);return e.onBeforeUnmount(()=>{k(),i()}),{size:e.computed(()=>S.value?`${l.value}px`:u.addUnit(r.size)),isResizing:g,isHorizontal:V}}const Y=e.defineComponent({name:"ElDrawer",inheritAttrs:!1}),Q=e.defineComponent({...Y,props:J,emits:W,setup(r,{expose:w}){const v=r,c=e.useSlots();j.useDeprecated({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},e.computed(()=>!!c.title));const V=e.ref(),b=e.ref(),s=e.ref(),l=u.useNamespace("drawer"),{t:p}=G.useLocale(),{afterEnter:y,afterLeave:g,beforeLeave:S,visible:C,rendered:I,titleId:d,bodyId:a,zIndex:B,onModalClick:i,onOpenAutoFocus:k,onCloseAutoFocus:f,onFocusoutPrevented:N,onCloseRequested:t,handleClose:m}=A.useDialog(v,V),{isHorizontal:z,size:P,isResizing:o}=X(v,s);return w({handleClose:m,afterEnter:y,afterLeave:g}),(n,L)=>(e.openBlock(),e.createBlock(e.unref(h.ElTeleport),{to:n.appendTo,disabled:n.appendTo!=="body"?!1:!n.appendToBody},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:e.unref(l).b("fade"),onAfterEnter:e.unref(y),onAfterLeave:e.unref(g),onBeforeLeave:e.unref(S),persisted:""},{default:e.withCtx(()=>{var q;return[e.withDirectives(e.createVNode(e.unref(A.ElOverlay),{mask:n.modal,"overlay-class":[e.unref(l).is("drawer"),(q=n.modalClass)!=null?q:""],"z-index":e.unref(B),onClick:e.unref(i)},{default:e.withCtx(()=>[e.createVNode(e.unref(h.ElFocusTrap),{loop:"",trapped:e.unref(C),"focus-trap-el":V.value,"focus-start-el":b.value,onFocusAfterTrapped:e.unref(k),onFocusAfterReleased:e.unref(f),onFocusoutPrevented:e.unref(N),onReleaseRequested:e.unref(t)},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({ref_key:"drawerRef",ref:V,"aria-modal":"true","aria-label":n.title||void 0,"aria-labelledby":n.title?void 0:e.unref(d),"aria-describedby":e.unref(a)},n.$attrs,{class:[e.unref(l).b(),n.direction,e.unref(C)&&"open",e.unref(l).is("dragging",e.unref(o))],style:{[e.unref(z)?"width":"height"]:e.unref(P)},role:"dialog",onClick:e.withModifiers(()=>{},["stop"])}),[e.createElementVNode("span",{ref_key:"focusStartRef",ref:b,class:e.normalizeClass(e.unref(l).e("sr-focus")),tabindex:"-1"},null,2),n.withHeader?(e.openBlock(),e.createElementBlock("header",{key:0,class:e.normalizeClass([e.unref(l).e("header"),n.headerClass])},[n.$slots.title?e.renderSlot(n.$slots,"title",{key:1},()=>[e.createCommentVNode(" DEPRECATED SLOT ")]):e.renderSlot(n.$slots,"header",{key:0,close:e.unref(m),titleId:e.unref(d),titleClass:e.unref(l).e("title")},()=>[e.createElementVNode("span",{id:e.unref(d),role:"heading","aria-level":n.headerAriaLevel,class:e.normalizeClass(e.unref(l).e("title"))},e.toDisplayString(n.title),11,["id","aria-level"])]),n.showClose?(e.openBlock(),e.createElementBlock("button",{key:2,"aria-label":e.unref(p)("el.drawer.close"),class:e.normalizeClass(e.unref(l).e("close-btn")),type:"button",onClick:e.unref(m)},[e.createVNode(e.unref(T.ElIcon),{class:e.normalizeClass(e.unref(l).e("close"))},{default:e.withCtx(()=>[e.createVNode(e.unref(T.close_default))]),_:1},8,["class"])],10,["aria-label","onClick"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.unref(I)?(e.openBlock(),e.createElementBlock("div",{key:1,id:e.unref(a),class:e.normalizeClass([e.unref(l).e("body"),n.bodyClass])},[e.renderSlot(n.$slots,"default")],10,["id"])):e.createCommentVNode("v-if",!0),n.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass([e.unref(l).e("footer"),n.footerClass])},[e.renderSlot(n.$slots,"footer")],2)):e.createCommentVNode("v-if",!0),n.resizable?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"draggerRef",ref:s,style:e.normalizeStyle({zIndex:e.unref(B)}),class:e.normalizeClass(e.unref(l).e("dragger"))},null,6)):e.createCommentVNode("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[e.vShow,e.unref(C)]])]}),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var Z=u._export_sfc(Q,[["__file","drawer.vue"]]);const ee=u.withInstall(Z),te=u.buildProps({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:K.isValidComponentSize},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:E.iconPropType},activeActionIcon:{type:E.iconPropType},activeIcon:{type:E.iconPropType},inactiveIcon:{type:E.iconPropType},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:u.definePropType(Function)},id:String,tabindex:{type:[String,Number]},...h.useAriaProps(["ariaLabel"])}),le={[h.UPDATE_MODEL_EVENT]:r=>u.isBoolean(r)||u.isString(r)||u.isNumber(r),[h.CHANGE_EVENT]:r=>u.isBoolean(r)||u.isString(r)||u.isNumber(r),[h.INPUT_EVENT]:r=>u.isBoolean(r)||u.isString(r)||u.isNumber(r)},O="ElSwitch",oe=e.defineComponent({name:O}),ae=e.defineComponent({...oe,props:te,emits:le,setup(r,{expose:w,emit:v}){const c=r,{formItem:V}=E.useFormItem(),b=E.useFormSize(),s=u.useNamespace("switch"),{inputId:l}=E.useFormItemInputId(c,{formItemContext:V}),p=E.useFormDisabled(e.computed(()=>c.loading)),y=e.ref(c.modelValue!==!1),g=e.ref(),S=e.ref(),C=e.computed(()=>[s.b(),s.m(b.value),s.is("disabled",p.value),s.is("checked",i.value)]),I=e.computed(()=>[s.e("label"),s.em("label","left"),s.is("active",!i.value)]),d=e.computed(()=>[s.e("label"),s.em("label","right"),s.is("active",i.value)]),a=e.computed(()=>({width:u.addUnit(c.width)}));e.watch(()=>c.modelValue,()=>{y.value=!0});const B=e.computed(()=>y.value?c.modelValue:!1),i=e.computed(()=>B.value===c.activeValue);[c.activeValue,c.inactiveValue].includes(B.value)||(v(h.UPDATE_MODEL_EVENT,c.inactiveValue),v(h.CHANGE_EVENT,c.inactiveValue),v(h.INPUT_EVENT,c.inactiveValue)),e.watch(i,t=>{var m;g.value.checked=t,c.validateEvent&&((m=V==null?void 0:V.validate)==null||m.call(V,"change").catch(z=>h.debugWarn()))});const k=()=>{const t=i.value?c.inactiveValue:c.activeValue;v(h.UPDATE_MODEL_EVENT,t),v(h.CHANGE_EVENT,t),v(h.INPUT_EVENT,t),e.nextTick(()=>{g.value.checked=i.value})},f=()=>{if(p.value)return;const{beforeChange:t}=c;if(!t){k();return}const m=t();[u.isPromise(m),u.isBoolean(m)].includes(!0)||h.throwError(O,"beforeChange must return type `Promise<boolean>` or `boolean`"),u.isPromise(m)?m.then(P=>{P&&k()}).catch(P=>{}):m&&k()},N=()=>{var t,m;(m=(t=g.value)==null?void 0:t.focus)==null||m.call(t)};return e.onMounted(()=>{g.value.checked=i.value}),w({focus:N,checked:i}),(t,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(C)),onClick:e.withModifiers(f,["prevent"])},[e.createElementVNode("input",{id:e.unref(l),ref_key:"input",ref:g,class:e.normalizeClass(e.unref(s).e("input")),type:"checkbox",role:"switch","aria-checked":e.unref(i),"aria-disabled":e.unref(p),"aria-label":t.ariaLabel,name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:e.unref(p),tabindex:t.tabindex,onChange:k,onKeydown:e.withKeys(f,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!t.inlinePrompt&&(t.inactiveIcon||t.inactiveText)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(I))},[t.inactiveIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.inactiveIcon)))]),_:1})):e.createCommentVNode("v-if",!0),!t.inactiveIcon&&t.inactiveText?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-hidden":e.unref(i)},e.toDisplayString(t.inactiveText),9,["aria-hidden"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("span",{ref_key:"core",ref:S,class:e.normalizeClass(e.unref(s).e("core")),style:e.normalizeStyle(e.unref(a))},[t.inlinePrompt?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(s).e("inner"))},[t.activeIcon||t.inactiveIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0,class:e.normalizeClass(e.unref(s).is("icon"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)?t.activeIcon:t.inactiveIcon)))]),_:1},8,["class"])):t.activeText||t.inactiveText?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(s).is("text")),"aria-hidden":!e.unref(i)},e.toDisplayString(e.unref(i)?t.activeText:t.inactiveText),11,["aria-hidden"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("action"))},[t.loading?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0,class:e.normalizeClass(e.unref(s).is("loading"))},{default:e.withCtx(()=>[e.createVNode(e.unref(T.loading_default))]),_:1},8,["class"])):e.unref(i)?e.renderSlot(t.$slots,"active-action",{key:1},()=>[t.activeActionIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.activeActionIcon)))]),_:1})):e.createCommentVNode("v-if",!0)]):e.unref(i)?e.createCommentVNode("v-if",!0):e.renderSlot(t.$slots,"inactive-action",{key:2},()=>[t.inactiveActionIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.inactiveActionIcon)))]),_:1})):e.createCommentVNode("v-if",!0)])],2)],6),!t.inlinePrompt&&(t.activeIcon||t.activeText)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(d))},[t.activeIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.activeIcon)))]),_:1})):e.createCommentVNode("v-if",!0),!t.activeIcon&&t.activeText?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-hidden":!e.unref(i)},e.toDisplayString(t.activeText),9,["aria-hidden"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0)],10,["onClick"]))}});var ne=u._export_sfc(ae,[["__file","switch.vue"]]);const re=u.withInstall(ne);const se=[{label:"买卖",value:0},{label:"开平",value:1}],D=()=>({mainIndicator:"MA",sellBuy:1,sellBuyByPrice:1,singelCycle:"6",multiCycleNum:6,multiCycleList:["1","2","3","4","5","6"],pageType:1,enable_tradeLogBrush:!0,enable_showScreenTimeRange:!0,enable_showScreenMaxPrice:!0,enable_dbClickOpenSingel:!0,enable_subChart:!0,enable_sliderChart:!0}),ie=(r,w)=>{var v;return((v=w.find(c=>c.value===r))==null?void 0:v.label)??"-"};const _=r=>(e.pushScopeId("data-v-cbe82a27"),r=r(),e.popScopeId(),r),ce={class:"kline-config element-dark"},ue={class:"setting-item"},de=_(()=>e.createElementVNode("span",{class:"label"},"主图指标: ",-1)),me={class:"setting-item"},pe=_(()=>e.createElementVNode("span",{class:"label"},"交易点位: ",-1)),fe={class:"setting-item"},ve=_(()=>e.createElementVNode("span",{class:"label"},"开平点按价格标: ",-1)),Ve={class:"setting-item"},be=_(()=>e.createElementVNode("span",{class:"label"},"单周期: ",-1)),ye={class:"setting-item"},ge=_(()=>e.createElementVNode("span",{class:"label"},"多周期: ",-1)),he={class:"mode"},ke={class:"cycleName"},Ce={class:"content"},Ne={class:"setting-item"},Ee=_(()=>e.createElementVNode("span",{class:"label"},"默认展示: ",-1)),_e={class:"setting-item"},Be=_(()=>e.createElementVNode("span",{class:"label"},"高亮交易范围: ",-1)),we={class:"setting-item"},Se=_(()=>e.createElementVNode("span",{class:"label"},"展示当屏时间: ",-1)),Ie={class:"setting-item"},Te=_(()=>e.createElementVNode("span",{class:"label"},"展示当屏最高价: ",-1)),ze={class:"setting-item"},Pe=_(()=>e.createElementVNode("span",{class:"label"},"多周期双击图表切换至单周期: ",-1)),Le={class:"setting-item"},qe=_(()=>e.createElementVNode("span",{class:"label"},"开启副图: ",-1)),De={class:"setting-item"},Ae=_(()=>e.createElementVNode("span",{class:"label"},"开启拖拽轴: ",-1)),Ue={class:"setting-footer"},Oe={__name:"index",props:{indicatorStore:{type:Object,default:()=>({})},origin:{type:String,default:"server"},cycleOptions:{type:Array,default:()=>[]}},emits:"callBack",setup(r,{expose:w,emit:v}){const{request:c}=e.inject("stConfig"),V=v,b=r,s=e.ref(!1),l=e.reactive({}),p=e.ref([]),y=e.ref([]),g=()=>{Object.assign(l,D())},S=async()=>{const d=JSON.stringify(l);b.origin==="server"?await c.post("/common/qt/updateUserConfig",{appId:1,json:d}):localStorage.setItem("userKlineConfig",d),V("callBack",d),s.value=!1},C=async()=>{if(b.origin==="server"){const{body:d}=await c.post("/common/qt/getUserConfig",{appId:1});Object.assign(l,D(),d?JSON.parse(d):{})}else{const d=localStorage.getItem("userKlineConfig");Object.assign(l,D(),d?JSON.parse(d):{})}},I=async()=>{if(b.origin==="server"){const{body:d}=await c.post("/common/qt/getDict",{dictIds:[1002]});p.value=d[1002].map(a=>({label:a.dictName,value:a.dictCode}))}else p.value=b.cycleOptions};return e.onMounted(()=>{I(),y.value=b.indicatorStore.mainIndicatorList??[]}),e.watch(()=>b.indicatorStore.mainIndicatorList,()=>{y.value=b.indicatorStore.mainIndicatorList??[]}),w({open:async()=>{await C(),s.value=!0},getDefaultUserKlineConfig:D}),(d,a)=>{const B=M.ElDivider,i=U.ElOption,k=U.ElSelect,f=x.ElCheckbox,N=R.ElSegmented,t=re,m=H.ElScrollbar,z=F.ElButton,P=ee;return e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(P,{modelValue:s.value,"onUpdate:modelValue":a[12]||(a[12]=o=>s.value=o),title:"K线自定义配置",size:320},{default:e.withCtx(()=>[e.createVNode(m,{class:"setting-main"},{default:e.withCtx(()=>[e.createVNode(B,{style:{"margin-top":"8px"}},{default:e.withCtx(()=>[e.createTextVNode("偏好设置")]),_:1}),e.createElementVNode("div",ue,[de,e.createVNode(k,{modelValue:l.mainIndicator,"onUpdate:modelValue":a[0]||(a[0]=o=>l.mainIndicator=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(o,n)=>(e.openBlock(),e.createBlock(i,{key:n,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",me,[pe,e.createVNode(k,{modelValue:l.sellBuy,"onUpdate:modelValue":a[1]||(a[1]=o=>l.sellBuy=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(se),(o,n)=>(e.openBlock(),e.createBlock(i,{key:n,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",fe,[ve,e.createVNode(f,{modelValue:l.sellBuyByPrice,"onUpdate:modelValue":a[2]||(a[2]=o=>l.sellBuyByPrice=o),"true-value":1,"false-value":0},null,8,["modelValue"])]),e.createElementVNode("div",Ve,[be,e.createVNode(k,{modelValue:l.singelCycle,"onUpdate:modelValue":a[3]||(a[3]=o=>l.singelCycle=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(o,n)=>(e.openBlock(),e.createBlock(i,{key:n,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",ye,[ge,e.createVNode(N,{size:"small",modelValue:l.multiCycleNum,"onUpdate:modelValue":a[4]||(a[4]=o=>l.multiCycleNum=o),options:[{label:"二图",value:2},{label:"四图",value:4},{label:"六图",value:6}],style:{height:"26px"}},null,8,["modelValue"])]),e.createElementVNode("div",{class:e.normalizeClass(`setting-multi-box grid-${l.multiCycleNum}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.multiCycleList.slice(0,l.multiCycleNum),(o,n)=>(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",ke,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ie)(l.multiCycleList[n],p.value)),1),e.createVNode(k,{modelValue:l.multiCycleList[n],"onUpdate:modelValue":L=>l.multiCycleList[n]=L,"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(L,q)=>(e.openBlock(),e.createBlock(i,{key:q,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",Ce,e.toDisplayString(n+1)+"号位K线",1)]))),256))],2),e.createElementVNode("div",Ne,[Ee,e.createVNode(N,{size:"small",modelValue:l.pageType,"onUpdate:modelValue":a[5]||(a[5]=o=>l.pageType=o),options:[{label:"单周期",value:1},{label:"多周期",value:2}],style:{height:"26px"}},null,8,["modelValue"])]),e.createVNode(B,{style:{"margin-top":"44px"}},{default:e.withCtx(()=>[e.createTextVNode("功能配置")]),_:1}),e.createElementVNode("div",_e,[Be,e.createVNode(t,{modelValue:l.enable_tradeLogBrush,"onUpdate:modelValue":a[6]||(a[6]=o=>l.enable_tradeLogBrush=o)},null,8,["modelValue"])]),e.createElementVNode("div",we,[Se,e.createVNode(t,{modelValue:l.enable_showScreenTimeRange,"onUpdate:modelValue":a[7]||(a[7]=o=>l.enable_showScreenTimeRange=o)},null,8,["modelValue"])]),e.createElementVNode("div",Ie,[Te,e.createVNode(t,{modelValue:l.enable_showScreenMaxPrice,"onUpdate:modelValue":a[8]||(a[8]=o=>l.enable_showScreenMaxPrice=o)},null,8,["modelValue"])]),e.createElementVNode("div",ze,[Pe,e.createVNode(t,{modelValue:l.enable_dbClickOpenSingel,"onUpdate:modelValue":a[9]||(a[9]=o=>l.enable_dbClickOpenSingel=o)},null,8,["modelValue"])]),e.createVNode(B,{style:{"margin-top":"44px"}},{default:e.withCtx(()=>[e.createTextVNode("组件开关")]),_:1}),e.createElementVNode("div",Le,[qe,e.createVNode(t,{modelValue:l.enable_subChart,"onUpdate:modelValue":a[10]||(a[10]=o=>l.enable_subChart=o)},null,8,["modelValue"])]),e.createElementVNode("div",De,[Ae,e.createVNode(t,{modelValue:l.enable_sliderChart,"onUpdate:modelValue":a[11]||(a[11]=o=>l.enable_sliderChart=o)},null,8,["modelValue"])])]),_:1}),e.createElementVNode("div",Ue,[e.createVNode(z,{onClick:g},{default:e.withCtx(()=>[e.createTextVNode(" 恢复默认 ")]),_:1}),e.createVNode(z,{type:"primary",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(" 保存配置 ")]),_:1})])]),_:1},8,["modelValue"])])}}},Fe=$._export_sfc(Oe,[["__scopeId","data-v-cbe82a27"]]),Re={install(r){r.component("st-klineConfig",Fe)}};module.exports=Re;