st-comp 0.0.279 → 0.0.280

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 +342 -547
  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 +253 -253
  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 +46 -46
  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 +605 -443
  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-d58eee29.cjs → VarietySelect-aa082a9c.cjs} +1 -1
  36. package/es/{VarietySelect-41daac7b.js → VarietySelect-c402bade.js} +5 -5
  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 +1929 -2261
  41. package/es/_baseClone-10bdb989.cjs +1 -0
  42. package/es/_baseClone-98af8b33.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-33a127c4.cjs +1 -0
  50. package/es/config-provider-563023c9.js +86 -0
  51. package/es/debounce-0a98a9c6.js +57 -0
  52. package/es/debounce-37b17615.cjs +1 -0
  53. package/es/dropdown-ce7496c7.cjs +1 -0
  54. package/es/dropdown-feea8702.js +178 -0
  55. package/es/el-autocomplete-d9253bba.cjs +1 -0
  56. package/es/el-autocomplete-eac54f9f.js +434 -0
  57. package/es/el-button-8259594b.cjs +1 -0
  58. package/es/el-button-8a9721f8.js +343 -0
  59. package/es/el-checkbox-6303fc92.cjs +1 -0
  60. package/es/el-checkbox-c328b097.js +566 -0
  61. package/es/el-dialog-67536fac.js +252 -0
  62. package/es/el-dialog-8788bcc1.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-8efcf2c3.js +1265 -0
  68. package/es/el-form-item-95e68669.cjs +12 -0
  69. package/es/el-input-c8a9bb71.cjs +1 -0
  70. package/es/el-input-e66500b7.js +761 -0
  71. package/es/el-input-number-68ee0d65.js +390 -0
  72. package/es/el-input-number-d7a81922.cjs +1 -0
  73. package/es/el-loading-62132db2.cjs +1 -0
  74. package/es/el-loading-db4c6d13.js +190 -0
  75. package/es/el-menu-item-4b8e7794.cjs +1 -0
  76. package/es/el-menu-item-c2523d82.js +824 -0
  77. package/es/el-message-box-7c13546c.js +481 -0
  78. package/es/el-message-box-fed174f0.cjs +1 -0
  79. package/es/el-overlay-17299785.cjs +1 -0
  80. package/es/el-overlay-36f223e9.js +444 -0
  81. package/es/el-popconfirm-520b2928.cjs +1 -0
  82. package/es/el-popconfirm-a857c54a.js +190 -0
  83. package/es/el-popper-852446fd.js +2235 -0
  84. package/es/el-popper-f824c63b.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-45dcc036.cjs +1 -0
  88. package/es/el-segmented-bf08279f.js +168 -0
  89. package/es/el-select-a34348e1.js +1535 -0
  90. package/es/el-select-d2958ae8.cjs +1 -0
  91. package/es/el-table-column-ad70ee0e.cjs +14 -0
  92. package/es/el-table-column-e2be313e.js +3651 -0
  93. package/es/el-tag-527f06f0.cjs +1 -0
  94. package/es/el-tag-9bcfae32.js +77 -0
  95. package/es/el-text-f9379288.js +84 -0
  96. package/es/el-text-fc345ffd.cjs +1 -0
  97. package/es/index-2419d69a.js +468 -0
  98. package/es/index-3806160e.js +710 -0
  99. package/es/index-3a0a7c36.cjs +1 -0
  100. package/es/index-3e7d5ffb.cjs +1 -0
  101. package/es/index-3ed0c678.cjs +1 -0
  102. package/es/index-47d30a52.js +372 -0
  103. package/es/index-5dec535a.cjs +1 -0
  104. package/es/index-5e76a22d.cjs +1 -0
  105. package/es/{index-eb96e074.js → index-60900c6c.js} +223 -254
  106. package/es/{index-a33b2fb8.js → index-69d2353a.js} +5090 -5090
  107. package/es/index-71ba4c28.cjs +1 -0
  108. package/es/index-7711aa69.cjs +1 -0
  109. package/es/index-7c4d8f5d.js +47 -0
  110. package/es/index-86678b72.js +131 -0
  111. package/es/index-99bb359f.cjs +1 -0
  112. package/es/index-99d4335d.cjs +1 -0
  113. package/es/index-a0522466.js +413 -0
  114. package/es/index-a181f161.js +429 -0
  115. package/es/index-b9a26e7f.js +141 -0
  116. package/es/{index-a9246d17.cjs → index-bb0bc131.cjs} +109 -109
  117. package/es/index-d372e68f.cjs +5 -0
  118. package/es/index-de9ad85c.js +12 -0
  119. package/es/{index-44a382a5.js → index-dfb34e00.js} +12 -12
  120. package/es/index-f5474dcc.cjs +3 -0
  121. package/es/{python-8a1664e6.js → python-6eafa04b.js} +32 -31
  122. package/es/{python-a3db9620.cjs → python-922eca89.cjs} +1 -1
  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-0a831287.cjs +2 -0
  131. package/es/use-form-item-187cd7db.js +422 -0
  132. package/es/use-global-config-17dafd40.js +71 -0
  133. package/es/use-global-config-c90c91f7.cjs +1 -0
  134. package/es/{validator-c60a8956.js → validator-800ed2ba.js} +1 -1
  135. package/es/validator-ee5bc3eb.cjs +1 -0
  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-26cc7233.js} +36 -33
  139. package/es/zh-cn-a22a6792.cjs +1 -0
  140. package/lib/bundle.js +1 -1
  141. package/lib/bundle.umd.cjs +271 -252
  142. package/lib/{index-62fa175a.js → index-74ed48c6.js} +54107 -52151
  143. package/lib/{python-4a48fa39.js → python-7aaa84e4.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
@@ -1,53 +1,44 @@
1
- import "./base-a5af3db3.js";
2
- import { E as me } from "./el-button-94d3de38.js";
3
- import "./el-tag-66c83156.js";
4
- import { E as Ie, a as De } from "./el-select-44fa547d.js";
5
- import "./el-scrollbar-323542e7.js";
6
- import "./el-popper-fbd0dcea.js";
7
- import { E as _e } from "./el-popconfirm-f8a86e2c.js";
1
+ import { c as Q, d as ee, a as te, b as pe, E as oe, e as _e } from "./index-60900c6c.js";
2
+ import { E as ne } from "./el-button-8a9721f8.js";
3
+ import { E as ve, a as ge } from "./el-select-a34348e1.js";
4
+ import { E as le } from "./el-popconfirm-a857c54a.js";
5
+ import { E as $ } from "./index-2419d69a.js";
6
+ import "./base-dd156b8e.js";
7
+ import "./el-scrollbar-0a42c1d0.js";
8
+ import "./el-popper-852446fd.js";
9
+ import "./el-tag-9bcfae32.js";
8
10
  import "./el-popover-4ed993c7.js";
9
- import { inject as ve, ref as p, reactive as Q, computed as Fe, watch as Oe, nextTick as ue, resolveComponent as de, openBlock as f, createBlock as F, withCtx as n, createElementVNode as s, normalizeClass as W, createVNode as t, unref as g, createTextVNode as x, createElementBlock as E, Fragment as Y, renderList as Z, toDisplayString as O, withModifiers as ee, createCommentVNode as X, pushScopeId as Ae, popScopeId as ze, h as H, onMounted as Be, normalizeStyle as Re } from "vue";
10
- import { c as le, d as ge, a as he, b as Me, m as Ue, e as je, l as Te, E as ye, f as qe } from "./index-eb96e074.js";
11
- import { E as Le } from "./el-divider-4e059794.js";
12
- import { E as Pe } from "./el-dialog-5e30161f.js";
13
- import "./el-overlay-3e17604b.js";
14
- import { E as We } from "./el-empty-33cb66f1.js";
15
- import { E as fe } from "./el-input-342b2def.js";
16
- import { j as He, R as Je } from "./index-53cc4e43.js";
17
- import { s as Ke } from "./aiTools-ce2f9281.js";
11
+ import { inject as se, ref as _, reactive as P, computed as ye, watch as Ee, nextTick as X, resolveComponent as Y, openBlock as D, createBlock as K, withCtx as s, createElementVNode as a, normalizeClass as j, createVNode as t, unref as h, createTextVNode as S, createElementBlock as L, Fragment as ae, renderList as ie, toDisplayString as U, withModifiers as T, h as O, onMounted as xe, normalizeStyle as he } from "vue";
12
+ import { E as Ce, a as ke } from "./el-form-item-8efcf2c3.js";
13
+ import { E as Z } from "./el-input-e66500b7.js";
14
+ import { E as be } from "./index-a0522466.js";
15
+ import { E as Ve } from "./el-dialog-67536fac.js";
16
+ import { E as we } from "./el-divider-c5d72961.js";
17
+ import { E as Ne } from "./el-empty-552baf04.js";
18
+ import { E as $e } from "./el-message-box-7c13546c.js";
19
+ import "./el-overlay-36f223e9.js";
20
+ import { j as Se } from "./index-53cc4e43.js";
18
21
  import "./el-message-4ed993c7.js";
19
- import { E as pe } from "./el-message-box-035b699c.js";
20
- import { E as Ge, a as Qe } from "./el-form-item-9e8969ea.js";
21
- import { _ as xe } from "./_plugin-vue_export-helper-dad06003.js";
22
- import { E as S } from "./index-5216d5f5.js";
23
- import { E as Xe } from "./index-c5f2d372.js";
24
- import "./index-2e331d74.js";
25
- import "./use-global-config-ee406d58.js";
26
- import "./use-form-common-props-ed72e914.js";
27
- import "./index-960806da.js";
28
- import "./index-d77a7336.js";
29
- import "./index-8c2d7e05.js";
30
- import "./index-657047bb.js";
31
- import "./index-1e2a38ab.js";
32
- import "./castArray-7741a212.js";
33
- import "./index-f034b910.js";
34
- import "./scroll-679bd6bf.js";
35
- import "./debounce-8d53f4dd.js";
36
- import "./vnode-5ddb7ed1.js";
22
+ import { _ as re } from "./_plugin-vue_export-helper-dad06003.js";
23
+ import "./use-form-item-187cd7db.js";
24
+ import "./index-a181f161.js";
25
+ import "./index-de9ad85c.js";
26
+ import "./use-global-config-17dafd40.js";
27
+ import "./index-47d30a52.js";
28
+ import "./index-3806160e.js";
29
+ import "./castArray-18eb6a41.js";
30
+ import "./vnode-8ee9bf4e.js";
31
+ import "./index-86678b72.js";
32
+ import "./scroll-70271cb1.js";
33
+ import "./index-7c4d8f5d.js";
34
+ import "./toNumber-f077c66a.js";
35
+ import "./clamp-c7512966.js";
36
+ import "./config-provider-563023c9.js";
37
37
  import "./typescript-7ae59c4c.js";
38
- import "./validator-c60a8956.js";
39
- import "./_initCloneObject-5e73c9c8.js";
40
- import "./config-provider-88b637a8.js";
41
- const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "custom-header" }, Ze = { class: "left" }, et = ["id"], tt = { class: "right" }, ot = { class: "manage-dialog-body" }, nt = { class: "func-list" }, lt = { class: "search" }, st = /* @__PURE__ */ se(() => /* @__PURE__ */ s("span", null, "输入函数关键字", -1)), at = ["onClick"], it = { class: "icon-box" }, ct = { class: "rule-form" }, rt = { class: "header" }, ut = /* @__PURE__ */ se(() => /* @__PURE__ */ s("span", null, "函数名称:", -1)), dt = { class: "right" }, ft = /* @__PURE__ */ se(() => /* @__PURE__ */ s("div", { class: "tip-box" }, "说明: 公式里可以使用变量, 变量名命名格式: ${变量名}, 后续可在应用函数时填写具体值, 系统会自动换算", -1)), pt = { class: "custom-header" }, mt = { class: "left" }, _t = ["id"], vt = { class: "right" }, gt = { class: "ai-dialog-body" }, ht = {
42
- key: 0,
43
- class: "node-progress"
44
- }, yt = {
45
- key: 1,
46
- class: "ai-error"
47
- }, xt = {
48
- key: 2,
49
- class: "ai-result"
50
- }, Et = { class: "factor-expr" }, kt = { class: "dialog-footer" }, Ct = { class: "custom-header" }, bt = { class: "left" }, Vt = ["id"], St = { class: "right" }, wt = { class: "content" }, Nt = { class: "dialog-footer" }, $t = {
38
+ import "./_baseClone-98af8b33.js";
39
+ import "./raf-b4fd1e12.js";
40
+ import "./validator-800ed2ba.js";
41
+ const De = { class: "custom-header" }, Fe = { class: "left" }, ze = ["id"], Me = { class: "right" }, Oe = { class: "manage-dialog-body" }, Be = { class: "func-list" }, Ie = { class: "search" }, qe = ["onClick"], Re = { class: "icon-box" }, je = { class: "rule-form" }, Ue = { class: "header" }, Te = { class: "right" }, Le = { class: "custom-header" }, We = { class: "left" }, Ae = ["id"], Pe = { class: "right" }, Ke = { class: "content" }, Ge = { class: "dialog-footer" }, He = {
51
42
  __name: "ManageDialog",
52
43
  props: {
53
44
  data: {
@@ -56,93 +47,93 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
56
47
  }
57
48
  },
58
49
  emits: ["refreshData"],
59
- setup(h, { expose: te, emit: J }) {
60
- const w = ve("stConfig"), { request: R } = w, m = p(null), k = p(null), N = J, M = h, A = p(!1), $ = Q({
50
+ setup(C, { expose: W, emit: B }) {
51
+ const { request: k } = se("stConfig"), f = _(null), b = _(null), g = B, y = C, E = _(!1), V = P({
61
52
  save: !1,
62
53
  test: !1
63
- }), C = p(null), v = Fe(() => C.value ? M.data.filter((l) => l.funcName.includes(C.value)) : M.data), o = Q({
54
+ }), w = _(null), x = ye(() => w.value ? y.data.filter((n) => n.funcName.includes(w.value)) : y.data), l = P({
64
55
  id: null,
65
56
  funcName: "",
66
57
  funcExpression: ""
67
- }), u = Q({
58
+ }), o = P({
68
59
  result: null,
69
60
  detail: "",
70
61
  code: ""
71
- }), I = p(!1), q = () => {
72
- var l;
73
- Object.assign(o, {
62
+ }), i = _(!1), z = () => {
63
+ var n;
64
+ Object.assign(l, {
74
65
  id: null,
75
66
  funcName: "",
76
67
  funcExpression: ""
77
- }), (l = m.value) == null || l.setValue(o.funcExpression);
78
- }, L = (l) => {
68
+ }), (n = f.value) == null || n.setValue(l.funcExpression);
69
+ }, M = (n) => {
79
70
  var e;
80
- Object.assign(o, {
81
- id: l.id,
82
- funcName: l.funcName,
83
- funcExpression: l.funcExpression
84
- }), (e = m.value) == null || e.setValue(o.funcExpression);
85
- }, K = (l) => {
71
+ Object.assign(l, {
72
+ id: n.id,
73
+ funcName: n.funcName,
74
+ funcExpression: n.funcExpression
75
+ }), (e = f.value) == null || e.setValue(l.funcExpression);
76
+ }, A = (n) => {
86
77
  var e;
87
- Object.assign(o, {
78
+ Object.assign(l, {
88
79
  id: null,
89
- funcName: `${l.funcName}-复制`,
90
- funcExpression: l.funcExpression
91
- }), (e = m.value) == null || e.setValue(o.funcExpression);
92
- }, y = async (l) => {
80
+ funcName: `${n.funcName}-复制`,
81
+ funcExpression: n.funcExpression
82
+ }), (e = f.value) == null || e.setValue(l.funcExpression);
83
+ }, I = async (n) => {
93
84
  var e;
94
- l.id === o.id && (Object.assign(o, {
85
+ n.id === l.id && (Object.assign(l, {
95
86
  id: null,
96
87
  funcName: "",
97
88
  funcExpression: ""
98
- }), (e = m.value) == null || e.setValue(o.funcExpression)), await R.post("/common/qt/deleteSearchFunctionById", { id: l.id }), N("refreshData");
99
- }, G = He(async () => {
89
+ }), (e = f.value) == null || e.setValue(l.funcExpression)), await k.post("/common/qt/deleteSearchFunctionById", { id: n.id }), g("refreshData");
90
+ }, m = Se(async () => {
100
91
  try {
101
- if ($.save = !0, o.funcExpression = m.value.getValue(), !o.funcName)
102
- return S.error("函数名称不可为空");
103
- if (!o.funcExpression)
104
- return S.error("函数内容不可为空");
105
- await R.post("/common/qt/saveOrUpdateSearchFunction", o), S.success("操作成功"), N("refreshData"), o.id || q();
92
+ if (V.save = !0, l.funcExpression = f.value.getValue(), !l.funcName)
93
+ return $.error("函数名称不可为空");
94
+ if (!l.funcExpression)
95
+ return $.error("函数内容不可为空");
96
+ await k.post("/common/qt/saveOrUpdateSearchFunction", l), $.success("操作成功"), g("refreshData"), l.id || z();
106
97
  } finally {
107
- $.save = !1;
98
+ V.save = !1;
108
99
  }
109
- }), Ee = (l) => new Promise((e) => {
110
- const i = p(
111
- l.reduce((c, _) => (c[_] = "", c), {})
112
- ), r = p({}), d = () => {
113
- let c = !0;
114
- const _ = {};
115
- return l.forEach((D) => {
116
- var T;
117
- (T = i.value[D]) != null && T.trim() || (_[D] = `请输入${D}的值`, c = !1);
118
- }), r.value = _, c;
100
+ }), q = (n) => new Promise((e) => {
101
+ const r = _(
102
+ n.reduce((d, p) => (d[p] = "", d), {})
103
+ ), c = _({}), v = () => {
104
+ let d = !0;
105
+ const p = {};
106
+ return n.forEach((N) => {
107
+ var R;
108
+ (R = r.value[N]) != null && R.trim() || (p[N] = `请输入${N}的值`, d = !1);
109
+ }), c.value = p, d;
119
110
  };
120
- pe({
111
+ $e({
121
112
  title: "填写变量值用于接口测试",
122
- message: H({
113
+ message: O({
123
114
  setup() {
124
- return () => H("div", [
125
- H(
126
- Ge,
115
+ return () => O("div", [
116
+ O(
117
+ Ce,
127
118
  {
128
- model: i.value
119
+ model: r.value
129
120
  },
130
- () => l.map(
131
- (c) => H(
132
- Qe,
121
+ () => n.map(
122
+ (d) => O(
123
+ ke,
133
124
  {
134
- label: `${c}: `,
135
- prop: c,
136
- error: r.value[c],
125
+ label: `${d}: `,
126
+ prop: d,
127
+ error: c.value[d],
137
128
  "label-width": "90px"
138
129
  },
139
- () => H(fe, {
140
- modelValue: i.value[c],
141
- "onUpdate:modelValue": (_) => {
142
- i.value[c] = _, r.value[c] && delete r.value[c];
130
+ () => O(Z, {
131
+ modelValue: r.value[d],
132
+ "onUpdate:modelValue": (p) => {
133
+ r.value[d] = p, c.value[d] && delete c.value[d];
143
134
  },
144
- placeholder: `请输入 ${c} 的值`,
145
- status: r.value[c] ? "error" : ""
135
+ placeholder: `请输入 ${d} 的值`,
136
+ status: c.value[d] ? "error" : ""
146
137
  })
147
138
  )
148
139
  )
@@ -154,148 +145,77 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
154
145
  confirmButtonText: "确定",
155
146
  cancelButtonText: "取消",
156
147
  customClass: "variable-input-dialog",
157
- beforeClose: async (c, _, D) => {
158
- c !== "confirm" && (e(!1), D()), await ue(), d() && (e({ ...i.value }), D());
148
+ beforeClose: async (d, p, N) => {
149
+ d !== "confirm" && (e(!1), N()), await X(), v() && (e({ ...r.value }), N());
159
150
  }
160
151
  }).catch(() => e(!1));
161
- }), ke = (l) => {
162
- const e = /\$\{([^}]*)\}/g, i = [];
163
- let r;
164
- for (; (r = e.exec(l)) !== null; )
165
- i.push(r[1]);
166
- return [...new Set(i)];
167
- }, Ce = (l, e) => l.replace(/\$\{([^}]*)\}/g, (i, r) => e[r] !== void 0 ? e[r] : i), ae = async (l) => {
168
- switch (l) {
152
+ }), ue = (n) => {
153
+ const e = /\$\{([^}]*)\}/g, r = [];
154
+ let c;
155
+ for (; (c = e.exec(n)) !== null; )
156
+ r.push(c[1]);
157
+ return [...new Set(r)];
158
+ }, ce = (n, e) => n.replace(/\$\{([^}]*)\}/g, (r, c) => e[c] !== void 0 ? e[c] : r), G = async (n) => {
159
+ switch (n) {
169
160
  case "submit": {
170
- let e = m.value.getValue();
161
+ let e = f.value.getValue();
171
162
  if (!e)
172
- return S.error("函数内容不可为空");
163
+ return $.error("函数内容不可为空");
173
164
  if (/\$\{[^}]*\}/.test(e)) {
174
- const i = ke(e), r = await Ee(i);
175
- if (!r)
165
+ const r = ue(e), c = await q(r);
166
+ if (!c)
176
167
  return;
177
- e = Ce(e, r);
168
+ e = ce(e, c);
178
169
  }
179
170
  try {
180
- $.test = !0;
181
- const { body: i } = await R.post("/common/qt/testFactorSelect", { factorSelectExpr: e }), { result: r, detail: d } = i;
182
- Object.assign(u, { result: r, detail: d, code: e }), r === 1 ? S.success("测试通过") : (S.error("测试未能通过"), I.value = !0);
171
+ V.test = !0;
172
+ const { body: r } = await k.post("/common/qt/testFactorSelect", { factorSelectExpr: e }), { result: c, detail: v } = r;
173
+ Object.assign(o, { result: c, detail: v, code: e }), c === 1 ? $.success("测试通过") : ($.error("测试未能通过"), i.value = !0);
183
174
  } finally {
184
- $.test = !1;
175
+ V.test = !1;
185
176
  }
186
177
  break;
187
178
  }
188
179
  case "log": {
189
- if (u.result === null)
190
- return S.warning("请先进行测试, 等待测试完成后可查看日志");
191
- I.value = !0;
180
+ if (o.result === null)
181
+ return $.warning("请先进行测试, 等待测试完成后可查看日志");
182
+ i.value = !0;
192
183
  break;
193
184
  }
194
185
  }
195
- }, U = p(!1), oe = p(""), z = p(!1), B = p(""), ne = p(""), ie = p(null), j = p([]), b = Q({
196
- parsedConditions: [],
197
- factorSelectExpr: ""
198
- }), be = () => {
199
- U.value = !0, B.value = "";
200
- }, Ve = () => {
201
- ne.value = "", B.value = "", j.value = [], Object.assign(b, {
202
- parsedConditions: [],
203
- factorSelectExpr: ""
204
- });
205
- }, ce = async () => {
206
- var e, i;
207
- const l = (e = oe.value) == null ? void 0 : e.trim();
208
- if (!l)
209
- return S.error("请输入脚本描述");
210
- z.value || (Ve(), z.value = !0, await Ke({
211
- baseUrl: (i = w == null ? void 0 : w.env) == null ? void 0 : i.VITE_BASE_URL,
212
- token: Je(),
213
- value: l,
214
- sessionId: ie.value,
215
- callback: (r, d) => {
216
- var P;
217
- switch (r) {
218
- case "session": {
219
- ie.value = d;
220
- break;
221
- }
222
- case "node": {
223
- const c = j.value.findIndex((_) => _.name === d.name);
224
- c === -1 ? j.value.push(d) : j.value[c] = d;
225
- break;
226
- }
227
- case "message": {
228
- ne.value = d;
229
- break;
230
- }
231
- case "finish": {
232
- z.value = !1;
233
- try {
234
- const c = JSON.parse(ne.value), _ = (P = c == null ? void 0 : c.factorScreen) == null ? void 0 : P.factorSelectExpr;
235
- _ ? Object.assign(b, {
236
- parsedConditions: c.parsedConditions ?? [],
237
- factorSelectExpr: _
238
- }) : B.value = "AI 未能生成有效的因子脚本, 请调整描述后重试";
239
- } catch {
240
- B.value = "AI 返回结果解析失败, 请重试";
241
- }
242
- break;
243
- }
244
- case "error": {
245
- z.value = !1, B.value = typeof d == "string" ? d : "AI 生成失败, 请重试";
246
- break;
247
- }
248
- }
249
- }
250
- }));
251
- }, Se = async () => {
252
- var e, i;
253
- if (!b.factorSelectExpr)
254
- return;
255
- if ((e = m.value) == null ? void 0 : e.getValue())
256
- try {
257
- await pe.confirm("当前编辑器已有内容, 将被 AI 生成结果覆盖, 是否继续?", "提示", {
258
- confirmButtonText: "覆盖",
259
- cancelButtonText: "取消",
260
- type: "warning"
261
- });
262
- } catch {
263
- return;
264
- }
265
- (i = m.value) == null || i.setValue(b.factorSelectExpr), o.funcExpression = b.factorSelectExpr, U.value = !1, S.success("已插入到编辑器");
266
- }, we = () => {
267
- k.value.open(m.value);
186
+ }, de = () => {
187
+ b.value.open(f.value);
268
188
  };
269
- return Oe(
270
- () => A.value,
271
- (l) => {
272
- l || (k.value.close(), I.value = !1, U.value = !1);
189
+ return Ee(
190
+ () => E.value,
191
+ (n) => {
192
+ n || (b.value.close(), i.value = !1);
273
193
  }
274
- ), te({
275
- open: (l) => {
276
- A.value = !0, ue(() => {
194
+ ), W({
195
+ open: (n) => {
196
+ E.value = !0, X(() => {
277
197
  var e;
278
- if ((e = m.value) == null || e.resize(), C.value = null, Object.assign(u, {
198
+ if ((e = f.value) == null || e.resize(), w.value = null, Object.assign(o, {
279
199
  result: null,
280
200
  detail: "",
281
201
  code: ""
282
- }), l) {
283
- const i = {
284
- id: l.id,
285
- funcName: l.funcName,
286
- funcExpression: l.funcExpression
202
+ }), n) {
203
+ const r = {
204
+ id: n.id,
205
+ funcName: n.funcName,
206
+ funcExpression: n.funcExpression
287
207
  };
288
- L(i);
208
+ M(r);
289
209
  } else
290
- v.value.length ? L(v.value[0]) : q();
210
+ x.value.length ? M(x.value[0]) : z();
291
211
  });
292
212
  }
293
- }), (l, e) => {
294
- const i = ye, r = fe, d = me, P = _e, c = We, _ = Xe, D = de("st-monacoEditor"), T = Pe, Ne = de("st-varSelectDialog"), $e = Le;
295
- return f(), F(T, {
213
+ }), (n, e) => {
214
+ const r = oe, c = Z, v = ne, H = le, d = Ne, p = be, N = Y("st-monacoEditor"), R = Y("st-varSelectDialog"), fe = we, J = Ve;
215
+ return D(), K(J, {
296
216
  "modal-class": "manage-dialog",
297
- modelValue: A.value,
298
- "onUpdate:modelValue": e[11] || (e[11] = (a) => A.value = a),
217
+ modelValue: E.value,
218
+ "onUpdate:modelValue": e[8] || (e[8] = (u) => E.value = u),
299
219
  width: "1600",
300
220
  "align-center": "",
301
221
  "append-to-body": "",
@@ -304,86 +224,86 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
304
224
  "modal-penetrable": !0,
305
225
  "show-close": !1
306
226
  }, {
307
- header: n(({ titleId: a, titleClass: V }) => [
308
- s("div", Ye, [
309
- s("div", Ze, [
310
- s("span", {
311
- id: a,
312
- class: W(V)
313
- }, " 自定义函数管理面板 ", 10, et)
227
+ header: s(({ titleId: u, titleClass: F }) => [
228
+ a("div", De, [
229
+ a("div", Fe, [
230
+ a("span", {
231
+ id: u,
232
+ class: j(F)
233
+ }, " 自定义函数管理面板 ", 10, ze)
314
234
  ]),
315
- s("div", tt, [
316
- t(i, {
317
- onClick: e[0] || (e[0] = (re) => A.value = !1)
235
+ a("div", Me, [
236
+ t(r, {
237
+ onClick: e[0] || (e[0] = (me) => E.value = !1)
318
238
  }, {
319
- default: n(() => [
320
- t(g(le))
239
+ default: s(() => [
240
+ t(h(Q))
321
241
  ]),
322
242
  _: 1
323
243
  })
324
244
  ])
325
245
  ])
326
246
  ]),
327
- default: n(() => [
328
- s("div", ot, [
329
- s("div", nt, [
330
- s("div", lt, [
331
- st,
332
- t(r, {
333
- modelValue: C.value,
334
- "onUpdate:modelValue": e[1] || (e[1] = (a) => C.value = a),
247
+ default: s(() => [
248
+ a("div", Oe, [
249
+ a("div", Be, [
250
+ a("div", Ie, [
251
+ e[10] || (e[10] = a("span", null, "输入函数关键字", -1)),
252
+ t(c, {
253
+ modelValue: w.value,
254
+ "onUpdate:modelValue": e[1] || (e[1] = (u) => w.value = u),
335
255
  clearable: ""
336
256
  }, null, 8, ["modelValue"]),
337
- t(d, {
257
+ t(v, {
338
258
  type: "primary",
339
- onClick: q
259
+ onClick: z
340
260
  }, {
341
- default: n(() => [
342
- x("新建")
343
- ]),
261
+ default: s(() => [...e[9] || (e[9] = [
262
+ S("新建", -1)
263
+ ])]),
344
264
  _: 1
345
265
  })
346
266
  ]),
347
- t(_, { class: "list" }, {
348
- default: n(() => [
349
- v.value.length ? (f(!0), E(Y, { key: 0 }, Z(v.value, (a) => (f(), E("div", {
350
- key: a.id,
351
- class: W([{ "active-list-item": o.id === a.id }, "list-item"])
267
+ t(p, { class: "list" }, {
268
+ default: s(() => [
269
+ x.value.length ? (D(!0), L(ae, { key: 0 }, ie(x.value, (u) => (D(), L("div", {
270
+ key: u.id,
271
+ class: j([{ "active-list-item": l.id === u.id }, "list-item"])
352
272
  }, [
353
- s("span", {
273
+ a("span", {
354
274
  class: "func-name",
355
- onClick: (V) => L(a)
356
- }, O(a.funcName), 9, at),
357
- s("div", it, [
358
- t(i, null, {
359
- default: n(() => [
360
- t(g(ge), {
361
- onClick: (V) => K(a)
275
+ onClick: (F) => M(u)
276
+ }, U(u.funcName), 9, qe),
277
+ a("div", Re, [
278
+ t(r, null, {
279
+ default: s(() => [
280
+ t(h(ee), {
281
+ onClick: (F) => A(u)
362
282
  }, null, 8, ["onClick"])
363
283
  ]),
364
284
  _: 2
365
285
  }, 1024),
366
- t(P, {
286
+ t(H, {
367
287
  title: "确认是否删除?",
368
288
  "confirm-button-text": "确认",
369
289
  "cancel-button-text": "取消",
370
- onConfirm: (V) => y(a)
290
+ onConfirm: (F) => I(u)
371
291
  }, {
372
- reference: n(() => [
373
- t(i, {
374
- onClick: ee(() => {
292
+ reference: s(() => [
293
+ t(r, {
294
+ onClick: T(() => {
375
295
  }, ["stop"])
376
296
  }, {
377
- default: n(() => [
378
- t(g(he))
297
+ default: s(() => [
298
+ t(h(te))
379
299
  ]),
380
300
  _: 1
381
301
  })
382
302
  ]),
383
- _: 2
384
- }, 1032, ["onConfirm"])
303
+ _: 1
304
+ }, 8, ["onConfirm"])
385
305
  ])
386
- ], 2))), 128)) : (f(), F(c, {
306
+ ], 2))), 128)) : (D(), K(d, {
387
307
  key: 1,
388
308
  description: "暂无数据"
389
309
  }))
@@ -391,195 +311,70 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
391
311
  _: 1
392
312
  })
393
313
  ]),
394
- s("div", ct, [
395
- s("div", rt, [
396
- ut,
397
- t(r, {
398
- modelValue: o.funcName,
399
- "onUpdate:modelValue": e[2] || (e[2] = (a) => o.funcName = a)
314
+ a("div", je, [
315
+ a("div", Ue, [
316
+ e[15] || (e[15] = a("span", null, "函数名称:", -1)),
317
+ t(c, {
318
+ modelValue: l.funcName,
319
+ "onUpdate:modelValue": e[2] || (e[2] = (u) => l.funcName = u)
400
320
  }, null, 8, ["modelValue"]),
401
- s("div", dt, [
402
- t(d, {
321
+ a("div", Te, [
322
+ t(v, {
403
323
  type: "primary",
404
- onClick: g(G),
405
- loading: $.save
324
+ onClick: h(m),
325
+ loading: V.save
406
326
  }, {
407
- default: n(() => [
408
- x(" 保存 ")
409
- ]),
327
+ default: s(() => [...e[11] || (e[11] = [
328
+ S(" 保存 ", -1)
329
+ ])]),
410
330
  _: 1
411
331
  }, 8, ["onClick", "loading"]),
412
- t(d, {
413
- loading: $.test,
414
- onClick: e[3] || (e[3] = (a) => ae("submit"))
332
+ t(v, {
333
+ loading: V.test,
334
+ onClick: e[3] || (e[3] = (u) => G("submit"))
415
335
  }, {
416
- default: n(() => [
417
- x(" 测试 ")
418
- ]),
336
+ default: s(() => [...e[12] || (e[12] = [
337
+ S(" 测试 ", -1)
338
+ ])]),
419
339
  _: 1
420
340
  }, 8, ["loading"]),
421
- t(d, {
422
- icon: g(Me),
423
- onClick: e[4] || (e[4] = (a) => ae("log"))
341
+ t(v, {
342
+ icon: h(pe),
343
+ onClick: e[4] || (e[4] = (u) => G("log"))
424
344
  }, {
425
- default: n(() => [
426
- x(" 日志明细 ")
427
- ]),
345
+ default: s(() => [...e[13] || (e[13] = [
346
+ S(" 日志明细 ", -1)
347
+ ])]),
428
348
  _: 1
429
349
  }, 8, ["icon"]),
430
- t(d, {
350
+ t(v, {
431
351
  type: "primary",
432
- icon: g(Ue),
433
- onClick: be
352
+ onClick: de
434
353
  }, {
435
- default: n(() => [
436
- x(" AI 生成 ")
437
- ]),
438
- _: 1
439
- }, 8, ["icon"]),
440
- t(d, {
441
- type: "primary",
442
- onClick: we
443
- }, {
444
- default: n(() => [
445
- x(" 变量选择器 ")
446
- ]),
354
+ default: s(() => [...e[14] || (e[14] = [
355
+ S(" 变量选择器 ", -1)
356
+ ])]),
447
357
  _: 1
448
358
  })
449
359
  ])
450
360
  ]),
451
- ft,
452
- t(D, {
361
+ e[16] || (e[16] = a("div", { class: "tip-box" }, "说明: 公式里可以使用变量, 变量名命名格式: ${变量名}, 后续可在应用函数时填写具体值, 系统会自动换算", -1)),
362
+ t(N, {
453
363
  ref_key: "stMonacoEditorRef",
454
- ref: m,
364
+ ref: f,
455
365
  language: "lua",
456
366
  style: { width: "100%", height: "calc(80vh - 75px)" }
457
367
  }, null, 512)
458
368
  ])
459
369
  ]),
460
- t(T, {
461
- "modal-class": "ai-dialog",
462
- modelValue: U.value,
463
- "onUpdate:modelValue": e[7] || (e[7] = (a) => U.value = a),
464
- width: "600",
465
- "align-center": "",
466
- "append-to-body": "",
467
- draggable: "",
468
- overflow: "",
469
- modal: !1,
470
- "modal-penetrable": !0,
471
- "show-close": !1,
472
- "close-on-click-modal": !1
473
- }, {
474
- header: n(({ titleId: a, titleClass: V }) => [
475
- s("div", pt, [
476
- s("div", mt, [
477
- s("span", {
478
- id: a,
479
- class: W(V)
480
- }, " AI 生成脚本 ", 10, _t)
481
- ]),
482
- s("div", vt, [
483
- t(i, {
484
- onClick: e[5] || (e[5] = (re) => U.value = !1)
485
- }, {
486
- default: n(() => [
487
- t(g(le))
488
- ]),
489
- _: 1
490
- })
491
- ])
492
- ])
493
- ]),
494
- footer: n(() => [
495
- s("div", kt, [
496
- b.factorSelectExpr ? (f(), F(d, {
497
- key: 0,
498
- onClick: ce,
499
- disabled: z.value
500
- }, {
501
- default: n(() => [
502
- x(" 重新生成 ")
503
- ]),
504
- _: 1
505
- }, 8, ["disabled"])) : X("", !0),
506
- b.factorSelectExpr ? (f(), F(d, {
507
- key: 1,
508
- type: "primary",
509
- onClick: Se
510
- }, {
511
- default: n(() => [
512
- x(" 插入到编辑器 ")
513
- ]),
514
- _: 1
515
- })) : (f(), F(d, {
516
- key: 2,
517
- type: "primary",
518
- loading: z.value,
519
- onClick: ce
520
- }, {
521
- default: n(() => [
522
- x(" 生成 ")
523
- ]),
524
- _: 1
525
- }, 8, ["loading"]))
526
- ])
527
- ]),
528
- default: n(() => [
529
- s("div", gt, [
530
- t(r, {
531
- modelValue: oe.value,
532
- "onUpdate:modelValue": e[6] || (e[6] = (a) => oe.value = a),
533
- type: "textarea",
534
- rows: 3,
535
- placeholder: "用自然语言描述脚本逻辑, 例: 收盘价大于10",
536
- disabled: z.value
537
- }, null, 8, ["modelValue", "disabled"]),
538
- j.value.length ? (f(), E("div", ht, [
539
- (f(!0), E(Y, null, Z(j.value, (a) => (f(), E("div", {
540
- key: a.name,
541
- class: "node-item"
542
- }, [
543
- a.status === "success" ? (f(), F(i, {
544
- key: 0,
545
- class: "success"
546
- }, {
547
- default: n(() => [
548
- t(g(je))
549
- ]),
550
- _: 1
551
- })) : (f(), F(i, {
552
- key: 1,
553
- class: "is-loading executing"
554
- }, {
555
- default: n(() => [
556
- t(g(Te))
557
- ]),
558
- _: 1
559
- })),
560
- s("span", null, O(a.name), 1)
561
- ]))), 128))
562
- ])) : X("", !0),
563
- B.value ? (f(), E("div", yt, " ❌ " + O(B.value), 1)) : X("", !0),
564
- b.factorSelectExpr ? (f(), E("div", xt, [
565
- (f(!0), E(Y, null, Z(b.parsedConditions, (a, V) => (f(), E("div", {
566
- key: V,
567
- class: "parsed-condition"
568
- }, O(a), 1))), 128)),
569
- s("pre", Et, O(b.factorSelectExpr), 1)
570
- ])) : X("", !0)
571
- ])
572
- ]),
573
- _: 1
574
- }, 8, ["modelValue"]),
575
- t(Ne, {
370
+ t(R, {
576
371
  ref_key: "stVarSelectDialogRef",
577
- ref: k
372
+ ref: b
578
373
  }, null, 512),
579
- t(T, {
374
+ t(J, {
580
375
  "modal-class": "log-dialog",
581
- modelValue: I.value,
582
- "onUpdate:modelValue": e[10] || (e[10] = (a) => I.value = a),
376
+ modelValue: i.value,
377
+ "onUpdate:modelValue": e[7] || (e[7] = (u) => i.value = u),
583
378
  width: "830",
584
379
  "align-center": "",
585
380
  "append-to-body": "",
@@ -589,56 +384,56 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
589
384
  "modal-penetrable": !0,
590
385
  "show-close": !1
591
386
  }, {
592
- header: n(({ titleId: a, titleClass: V }) => [
593
- s("div", Ct, [
594
- s("div", bt, [
595
- s("span", {
596
- id: a,
597
- class: W(V)
598
- }, " 日志明细 ", 10, Vt)
387
+ header: s(({ titleId: u, titleClass: F }) => [
388
+ a("div", Le, [
389
+ a("div", We, [
390
+ a("span", {
391
+ id: u,
392
+ class: j(F)
393
+ }, " 日志明细 ", 10, Ae)
599
394
  ]),
600
- s("div", St, [
601
- t(i, {
602
- onClick: e[8] || (e[8] = (re) => I.value = !1)
395
+ a("div", Pe, [
396
+ t(r, {
397
+ onClick: e[5] || (e[5] = (me) => i.value = !1)
603
398
  }, {
604
- default: n(() => [
605
- t(g(le))
399
+ default: s(() => [
400
+ t(h(Q))
606
401
  ]),
607
402
  _: 1
608
403
  })
609
404
  ])
610
405
  ])
611
406
  ]),
612
- footer: n(() => [
613
- s("div", Nt, [
614
- t(d, {
615
- onClick: e[9] || (e[9] = (a) => I.value = !1)
407
+ footer: s(() => [
408
+ a("div", Ge, [
409
+ t(v, {
410
+ onClick: e[6] || (e[6] = (u) => i.value = !1)
616
411
  }, {
617
- default: n(() => [
618
- x(" 关闭 ")
619
- ]),
412
+ default: s(() => [...e[17] || (e[17] = [
413
+ S(" 关闭 ", -1)
414
+ ])]),
620
415
  _: 1
621
416
  })
622
417
  ])
623
418
  ]),
624
- default: n(() => [
625
- s("div", wt, [
626
- t(_, {
419
+ default: s(() => [
420
+ a("div", Ke, [
421
+ t(p, {
627
422
  class: "code",
628
423
  height: "600px"
629
424
  }, {
630
- default: n(() => [
631
- s("pre", null, O(u.code), 1)
425
+ default: s(() => [
426
+ a("pre", null, U(o.code), 1)
632
427
  ]),
633
428
  _: 1
634
429
  }),
635
- t($e, { direction: "vertical" }),
636
- t(_, { height: "600px" }, {
637
- default: n(() => [
638
- s("pre", {
639
- class: W(u.result === 1 ? "success-log" : "error-log")
640
- }, O(u.result === 1 ? `✅️ 测试通过
641
- ${u.detail}` : u.detail), 3)
430
+ t(fe, { direction: "vertical" }),
431
+ t(p, { height: "600px" }, {
432
+ default: s(() => [
433
+ a("pre", {
434
+ class: j(o.result === 1 ? "success-log" : "error-log")
435
+ }, U(o.result === 1 ? `✅️ 测试通过
436
+ ${o.detail}` : o.detail), 3)
642
437
  ]),
643
438
  _: 1
644
439
  })
@@ -651,124 +446,124 @@ ${u.detail}` : u.detail), 3)
651
446
  }, 8, ["modelValue"]);
652
447
  };
653
448
  }
654
- }, It = /* @__PURE__ */ xe($t, [["__scopeId", "data-v-5797123f"]]);
655
- const Dt = { class: "custom-function" }, Ft = { class: "func-option" }, Ot = { class: "icons" }, At = {
449
+ }, Je = /* @__PURE__ */ re(He, [["__scopeId", "data-v-d6df26f4"]]);
450
+ const Qe = { class: "custom-function" }, Xe = { class: "func-option" }, Ye = { class: "icons" }, Ze = {
656
451
  __name: "index",
657
452
  props: {
658
453
  size: { type: String, default: "small" },
659
454
  selectWidth: { type: String, default: "200px" }
660
455
  },
661
456
  emits: ["insert", "actionState"],
662
- setup(h, { emit: te }) {
663
- const { request: J } = ve("stConfig"), w = p(null), R = te, m = p(null), k = p(""), N = p([]), M = async () => {
664
- const { body: v } = await J.post("/common/qt/querySearchFunctions");
665
- if (N.value = v ?? [], m.value === null)
666
- k.value = "";
457
+ setup(C, { emit: W }) {
458
+ const { request: B } = se("stConfig"), k = _(null), f = W, b = _(null), g = _(""), y = _([]), E = async () => {
459
+ const { body: l } = await B.post("/common/qt/querySearchFunctions");
460
+ if (y.value = l ?? [], b.value === null)
461
+ g.value = "";
667
462
  else {
668
- const o = N.value.find(({ id: u }) => u === m.value);
669
- k.value = o ? o.funcName : "";
463
+ const o = y.value.find(({ id: i }) => i === b.value);
464
+ g.value = o ? o.funcName : "";
670
465
  }
671
- }, A = (v) => {
466
+ }, V = (l) => {
672
467
  var o;
673
- v ? m.value = (o = N.value.find((u) => u.funcName === v)) == null ? void 0 : o.id : m.value = null;
674
- }, $ = () => {
675
- if (!k.value)
676
- return S.error("请先选择自定义函数后, 再执行插入");
677
- const { funcName: v, funcExpression: o } = N.value.find((u) => u.funcName === k.value);
678
- R("insert", v, o);
679
- }, C = async (v, o) => {
680
- switch (v) {
468
+ l ? b.value = (o = y.value.find((i) => i.funcName === l)) == null ? void 0 : o.id : b.value = null;
469
+ }, w = () => {
470
+ if (!g.value)
471
+ return $.error("请先选择自定义函数后, 再执行插入");
472
+ const { funcName: l, funcExpression: o } = y.value.find((i) => i.funcName === g.value);
473
+ f("insert", l, o);
474
+ }, x = async (l, o) => {
475
+ switch (l) {
681
476
  case "open": {
682
- w.value.open(), R("actionState", "因子筛选", "函数管理");
477
+ k.value.open(), f("actionState", "因子筛选", "函数管理");
683
478
  break;
684
479
  }
685
480
  case "copy": {
686
- const u = {
481
+ const i = {
687
482
  id: null,
688
483
  funcName: `${o.funcName}-复制`,
689
484
  funcExpression: o.funcExpression
690
485
  };
691
- w.value.open(u);
486
+ k.value.open(i);
692
487
  break;
693
488
  }
694
489
  case "edit": {
695
- const u = {
490
+ const i = {
696
491
  id: o.id,
697
492
  funcName: o.funcName,
698
493
  funcExpression: o.funcExpression
699
494
  };
700
- w.value.open(u);
495
+ k.value.open(i);
701
496
  break;
702
497
  }
703
498
  case "delete": {
704
- await J.post("/common/qt/deleteSearchFunctionById", { id: o.id }), M();
499
+ await B.post("/common/qt/deleteSearchFunctionById", { id: o.id }), E();
705
500
  break;
706
501
  }
707
502
  }
708
503
  };
709
- return Be(() => {
710
- M();
711
- }), (v, o) => {
712
- const u = ye, I = _e, q = Ie, L = De, K = me;
713
- return f(), E("div", Dt, [
714
- t(L, {
715
- modelValue: k.value,
716
- "onUpdate:modelValue": o[0] || (o[0] = (y) => k.value = y),
717
- size: h.size,
504
+ return xe(() => {
505
+ E();
506
+ }), (l, o) => {
507
+ const i = oe, z = le, M = ve, A = ge, I = ne;
508
+ return D(), L("div", Qe, [
509
+ t(A, {
510
+ modelValue: g.value,
511
+ "onUpdate:modelValue": o[0] || (o[0] = (m) => g.value = m),
512
+ size: C.size,
718
513
  placeholder: "自定义函数",
719
514
  "no-match-text": "无匹配选项",
720
515
  "no-data-text": "无选项数据",
721
516
  clearable: "",
722
517
  filterable: "",
723
- onChange: A,
724
- style: Re({ width: h.selectWidth })
518
+ onChange: V,
519
+ style: he({ width: C.selectWidth })
725
520
  }, {
726
- default: n(() => [
727
- (f(!0), E(Y, null, Z(N.value, (y) => (f(), F(q, {
728
- key: y.id,
729
- label: y.funcName,
730
- value: y.funcName,
731
- onClick: $
521
+ default: s(() => [
522
+ (D(!0), L(ae, null, ie(y.value, (m) => (D(), K(M, {
523
+ key: m.id,
524
+ label: m.funcName,
525
+ value: m.funcName,
526
+ onClick: w
732
527
  }, {
733
- default: n(() => [
734
- s("div", Ft, [
735
- s("span", null, O(y.funcName), 1),
736
- s("div", Ot, [
737
- t(u, {
738
- onClick: ee((G) => C("copy", y), ["stop"])
528
+ default: s(() => [
529
+ a("div", Xe, [
530
+ a("span", null, U(m.funcName), 1),
531
+ a("div", Ye, [
532
+ t(i, {
533
+ onClick: T((q) => x("copy", m), ["stop"])
739
534
  }, {
740
- default: n(() => [
741
- t(g(ge))
535
+ default: s(() => [
536
+ t(h(ee))
742
537
  ]),
743
- _: 2
744
- }, 1032, ["onClick"]),
745
- t(u, {
746
- onClick: ee((G) => C("edit", y), ["stop"])
538
+ _: 1
539
+ }, 8, ["onClick"]),
540
+ t(i, {
541
+ onClick: T((q) => x("edit", m), ["stop"])
747
542
  }, {
748
- default: n(() => [
749
- t(g(qe))
543
+ default: s(() => [
544
+ t(h(_e))
750
545
  ]),
751
- _: 2
752
- }, 1032, ["onClick"]),
753
- t(I, {
546
+ _: 1
547
+ }, 8, ["onClick"]),
548
+ t(z, {
754
549
  title: "确认是否删除?",
755
550
  "confirm-button-text": "确认",
756
551
  "cancel-button-text": "取消",
757
- onConfirm: (G) => C("delete", y)
552
+ onConfirm: (q) => x("delete", m)
758
553
  }, {
759
- reference: n(() => [
760
- t(u, {
761
- onClick: ee(() => {
554
+ reference: s(() => [
555
+ t(i, {
556
+ onClick: T(() => {
762
557
  }, ["stop"])
763
558
  }, {
764
- default: n(() => [
765
- t(g(he))
559
+ default: s(() => [
560
+ t(h(te))
766
561
  ]),
767
562
  _: 1
768
563
  })
769
564
  ]),
770
- _: 2
771
- }, 1032, ["onConfirm"])
565
+ _: 1
566
+ }, 8, ["onConfirm"])
772
567
  ])
773
568
  ])
774
569
  ]),
@@ -777,40 +572,40 @@ const Dt = { class: "custom-function" }, Ft = { class: "func-option" }, Ot = { c
777
572
  ]),
778
573
  _: 1
779
574
  }, 8, ["modelValue", "size", "style"]),
780
- t(K, {
575
+ t(I, {
781
576
  type: "primary",
782
- size: h.size,
783
- onClick: $
577
+ size: C.size,
578
+ onClick: w
784
579
  }, {
785
- default: n(() => [
786
- x(" 插入 ")
787
- ]),
580
+ default: s(() => [...o[2] || (o[2] = [
581
+ S(" 插入 ", -1)
582
+ ])]),
788
583
  _: 1
789
584
  }, 8, ["size"]),
790
- t(K, {
585
+ t(I, {
791
586
  type: "primary",
792
- size: h.size,
793
- onClick: o[1] || (o[1] = (y) => C("open"))
587
+ size: C.size,
588
+ onClick: o[1] || (o[1] = (m) => x("open"))
794
589
  }, {
795
- default: n(() => [
796
- x(" 函数管理 ")
797
- ]),
590
+ default: s(() => [...o[3] || (o[3] = [
591
+ S(" 函数管理 ", -1)
592
+ ])]),
798
593
  _: 1
799
594
  }, 8, ["size"]),
800
- t(It, {
595
+ t(Je, {
801
596
  ref_key: "ManageDialogRef",
802
- ref: w,
803
- data: N.value,
804
- onRefreshData: M
597
+ ref: k,
598
+ data: y.value,
599
+ onRefreshData: E
805
600
  }, null, 8, ["data"])
806
601
  ]);
807
602
  };
808
603
  }
809
- }, zt = /* @__PURE__ */ xe(At, [["__scopeId", "data-v-d01721a6"]]), Co = {
810
- install(h) {
811
- h.component("st-customFunction", zt);
604
+ }, et = /* @__PURE__ */ re(Ze, [["__scopeId", "data-v-d01721a6"]]), Tt = {
605
+ install(C) {
606
+ C.component("st-customFunction", et);
812
607
  }
813
608
  };
814
609
  export {
815
- Co as default
610
+ Tt as default
816
611
  };