st-comp 0.0.279 → 0.0.281

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +13 -14
  3. package/es/CustomFunction.cjs +2 -2
  4. package/es/CustomFunction.js +377 -376
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +294 -294
  7. package/es/Kline.cjs +1 -1
  8. package/es/Kline.js +19 -19
  9. package/es/KlineBasic.cjs +1 -1
  10. package/es/KlineBasic.js +260 -260
  11. package/es/KlineConfig.cjs +1 -1
  12. package/es/KlineConfig.js +579 -553
  13. package/es/KlineNew.cjs +1 -1
  14. package/es/KlineNew.js +17 -17
  15. package/es/KlinePlus.cjs +2 -2
  16. package/es/KlinePlus.js +23 -24
  17. package/es/MonacoEditor.cjs +1 -1
  18. package/es/MonacoEditor.js +30 -29
  19. package/es/Pagination.cjs +1 -1
  20. package/es/Pagination.js +517 -425
  21. package/es/PasswordPrompt.cjs +1 -1
  22. package/es/PasswordPrompt.js +3 -3
  23. package/es/Table.cjs +1 -1
  24. package/es/Table.js +43 -43
  25. package/es/User.cjs +1 -1
  26. package/es/User.js +898 -866
  27. package/es/VarSelectDialog.cjs +3 -3
  28. package/es/VarSelectDialog.js +110 -109
  29. package/es/VarietyAiHelper.cjs +7 -7
  30. package/es/VarietyAiHelper.js +615 -464
  31. package/es/VarietyAutoComplete.cjs +1 -1
  32. package/es/VarietyAutoComplete.js +11 -11
  33. package/es/VarietySearch.cjs +18 -18
  34. package/es/VarietySearch.js +3079 -2913
  35. package/es/{VarietySelect-41daac7b.js → VarietySelect-3fc0f0ce.js} +5 -5
  36. package/es/{VarietySelect-d58eee29.cjs → VarietySelect-d2d25a3d.cjs} +1 -1
  37. package/es/VarietyTextCopy.cjs +3 -3
  38. package/es/VarietyTextCopy.js +51 -51
  39. package/es/VirtualTable.cjs +13 -1
  40. package/es/VirtualTable.js +1927 -2259
  41. package/es/_baseClone-f8e5d3ba.cjs +1 -0
  42. package/es/_baseClone-fb6a3947.js +210 -0
  43. package/es/base-d987e5c9.cjs +5 -0
  44. package/es/base-dd156b8e.js +790 -0
  45. package/es/{castArray-7741a212.js → castArray-18eb6a41.js} +1 -1
  46. package/es/{castArray-35947698.cjs → castArray-d9ffe84a.cjs} +1 -1
  47. package/es/clamp-17c4d8aa.cjs +1 -0
  48. package/es/clamp-c7512966.js +10 -0
  49. package/es/config-provider-06d8207f.js +86 -0
  50. package/es/config-provider-bb61bd3e.cjs +1 -0
  51. package/es/debounce-0a98a9c6.js +57 -0
  52. package/es/debounce-37b17615.cjs +1 -0
  53. package/es/dropdown-8fa21bfd.cjs +1 -0
  54. package/es/dropdown-bcf8d198.js +178 -0
  55. package/es/el-autocomplete-13b9e372.cjs +1 -0
  56. package/es/el-autocomplete-419bfbcf.js +434 -0
  57. package/es/el-button-ee9fe159.js +343 -0
  58. package/es/el-button-fac5e058.cjs +1 -0
  59. package/es/el-checkbox-6cf1a71c.cjs +1 -0
  60. package/es/el-checkbox-b5ac7f04.js +566 -0
  61. package/es/el-dialog-060b3735.js +252 -0
  62. package/es/el-dialog-54aebacd.cjs +1 -0
  63. package/es/el-divider-3f0320be.cjs +1 -0
  64. package/es/el-divider-c5d72961.js +51 -0
  65. package/es/el-empty-552baf04.js +159 -0
  66. package/es/el-empty-58bc2a10.cjs +1 -0
  67. package/es/el-form-item-2be6b683.js +1265 -0
  68. package/es/el-form-item-758dfefa.cjs +12 -0
  69. package/es/el-input-7fe53030.cjs +1 -0
  70. package/es/el-input-d23f5442.js +761 -0
  71. package/es/el-input-number-484fb184.js +390 -0
  72. package/es/el-input-number-f0f4eedb.cjs +1 -0
  73. package/es/el-loading-9d3e405c.js +190 -0
  74. package/es/el-loading-fafaaa7b.cjs +1 -0
  75. package/es/el-menu-item-0ac22681.js +824 -0
  76. package/es/el-menu-item-c91ae430.cjs +1 -0
  77. package/es/el-message-box-568a0aa6.js +481 -0
  78. package/es/el-message-box-ceacb54e.cjs +1 -0
  79. package/es/el-overlay-9f36e73c.cjs +1 -0
  80. package/es/el-overlay-cb5c85aa.js +444 -0
  81. package/es/el-popconfirm-4a8cd35c.cjs +1 -0
  82. package/es/el-popconfirm-6f8e65c8.js +190 -0
  83. package/es/el-popper-0454c8e8.js +2235 -0
  84. package/es/el-popper-acd0ff35.cjs +1 -0
  85. package/es/{el-scrollbar-323542e7.js → el-scrollbar-0a42c1d0.js} +4 -9
  86. package/es/{el-scrollbar-bc3f790d.cjs → el-scrollbar-225c6c9e.cjs} +1 -1
  87. package/es/el-segmented-64dc7258.js +168 -0
  88. package/es/el-segmented-eb3c8e65.cjs +1 -0
  89. package/es/el-select-a573c78b.js +1535 -0
  90. package/es/el-select-c317294a.cjs +1 -0
  91. package/es/el-table-column-1c443963.js +3651 -0
  92. package/es/el-table-column-f555115d.cjs +14 -0
  93. package/es/el-tag-2d8a3fe7.js +77 -0
  94. package/es/el-tag-dca1292c.cjs +1 -0
  95. package/es/el-text-649c986a.cjs +1 -0
  96. package/es/el-text-761e6717.js +84 -0
  97. package/es/index-11181b5f.cjs +1 -0
  98. package/es/index-21a3dc89.cjs +1 -0
  99. package/es/index-33e039e3.cjs +1 -0
  100. package/es/index-3806160e.js +710 -0
  101. package/es/{index-a9246d17.cjs → index-4614e8e9.cjs} +109 -109
  102. package/es/{index-44a382a5.js → index-53beef02.js} +12 -12
  103. package/es/index-5cada1ed.cjs +1 -0
  104. package/es/index-6a36e1fc.cjs +1 -0
  105. package/es/{index-eb96e074.js → index-6a52dc7c.js} +235 -236
  106. package/es/index-71ba4c28.cjs +1 -0
  107. package/es/index-78dab605.js +141 -0
  108. package/es/index-798fec2d.cjs +1 -0
  109. package/es/index-9573f74b.js +372 -0
  110. package/es/index-a181f161.js +429 -0
  111. package/es/{index-a33b2fb8.js → index-ab0ad219.js} +5090 -5090
  112. package/es/index-beb5cb7d.cjs +1 -0
  113. package/es/index-c09fc6f5.js +131 -0
  114. package/es/index-ceae4c47.cjs +1 -0
  115. package/es/index-d372e68f.cjs +5 -0
  116. package/es/index-d9379af4.js +413 -0
  117. package/es/index-dddacf80.js +47 -0
  118. package/es/index-de9ad85c.js +12 -0
  119. package/es/index-e2e58ea9.js +468 -0
  120. package/es/index-f5474dcc.cjs +3 -0
  121. package/es/{python-a3db9620.cjs → python-60e79979.cjs} +1 -1
  122. package/es/{python-8a1664e6.js → python-673bf8b8.js} +32 -31
  123. package/es/{raf-8249652f.cjs → raf-735cc598.cjs} +1 -1
  124. package/es/{raf-80ef0c0a.js → raf-b4fd1e12.js} +1 -1
  125. package/es/scroll-07bade1e.cjs +1 -0
  126. package/es/scroll-70271cb1.js +35 -0
  127. package/es/style.css +1 -1
  128. package/es/toNumber-b47ceb68.cjs +1 -0
  129. package/es/toNumber-f077c66a.js +31 -0
  130. package/es/use-form-item-76516e50.cjs +2 -0
  131. package/es/use-form-item-784142b4.js +422 -0
  132. package/es/use-global-config-7ff9a1c2.cjs +1 -0
  133. package/es/use-global-config-9a4ccf33.js +71 -0
  134. package/es/validator-1926345b.cjs +1 -0
  135. package/es/{validator-c60a8956.js → validator-a66ec4f8.js} +1 -1
  136. package/es/vnode-6f7b84f0.cjs +1 -0
  137. package/es/vnode-8ee9bf4e.js +12 -0
  138. package/es/{zh-cn-b59a0910.js → zh-cn-51c2e528.js} +36 -33
  139. package/es/zh-cn-ad12d9f5.cjs +1 -0
  140. package/lib/bundle.js +1 -1
  141. package/lib/bundle.umd.cjs +265 -246
  142. package/lib/{index-62fa175a.js → index-7282d3be.js} +52335 -50156
  143. package/lib/{python-4a48fa39.js → python-418be57d.js} +1 -1
  144. package/lib/style.css +1 -1
  145. package/package.json +1 -1
  146. package/es/_initCloneObject-5e73c9c8.js +0 -81
  147. package/es/_initCloneObject-a5832933.cjs +0 -1
  148. package/es/base-a5af3db3.js +0 -288
  149. package/es/base-ef747d02.cjs +0 -5
  150. package/es/config-provider-06ea6b42.cjs +0 -1
  151. package/es/config-provider-88b637a8.js +0 -59
  152. package/es/dayjs.min-2c20abe6.cjs +0 -1
  153. package/es/dayjs.min-8313b006.js +0 -299
  154. package/es/debounce-62f5b6e8.cjs +0 -1
  155. package/es/debounce-8d53f4dd.js +0 -83
  156. package/es/dropdown-4ce4c3e2.cjs +0 -1
  157. package/es/dropdown-72fbc15d.js +0 -178
  158. package/es/el-autocomplete-6cafcdf1.js +0 -329
  159. package/es/el-autocomplete-e0857c5b.cjs +0 -1
  160. package/es/el-button-613e0bb2.cjs +0 -1
  161. package/es/el-button-94d3de38.js +0 -272
  162. package/es/el-checkbox-6d4cb393.js +0 -459
  163. package/es/el-checkbox-e90762df.cjs +0 -1
  164. package/es/el-dialog-02942e22.cjs +0 -1
  165. package/es/el-dialog-5e30161f.js +0 -276
  166. package/es/el-divider-4713d74c.cjs +0 -1
  167. package/es/el-divider-4e059794.js +0 -45
  168. package/es/el-empty-1697ded8.cjs +0 -1
  169. package/es/el-empty-33cb66f1.js +0 -183
  170. package/es/el-form-item-44f060d8.cjs +0 -12
  171. package/es/el-form-item-9e8969ea.js +0 -1269
  172. package/es/el-input-342b2def.js +0 -531
  173. package/es/el-input-9a9a7f7f.cjs +0 -1
  174. package/es/el-input-number-65c847d6.cjs +0 -1
  175. package/es/el-input-number-c22b803a.js +0 -311
  176. package/es/el-loading-8179b497.cjs +0 -1
  177. package/es/el-loading-bcc51e3d.js +0 -203
  178. package/es/el-menu-item-339baf6d.js +0 -768
  179. package/es/el-menu-item-83186444.cjs +0 -1
  180. package/es/el-message-box-035b699c.js +0 -489
  181. package/es/el-message-box-c62d3217.cjs +0 -1
  182. package/es/el-overlay-3e17604b.js +0 -324
  183. package/es/el-overlay-8f1da9e8.cjs +0 -1
  184. package/es/el-popconfirm-4e32ec1b.cjs +0 -1
  185. package/es/el-popconfirm-f8a86e2c.js +0 -162
  186. package/es/el-popper-a4f3ae4d.cjs +0 -1
  187. package/es/el-popper-fbd0dcea.js +0 -2094
  188. package/es/el-segmented-56bd58a8.js +0 -142
  189. package/es/el-segmented-833ac177.cjs +0 -1
  190. package/es/el-select-44fa547d.js +0 -1256
  191. package/es/el-select-70806166.cjs +0 -1
  192. package/es/el-table-column-3e2cdfca.cjs +0 -14
  193. package/es/el-table-column-b74a857d.js +0 -3432
  194. package/es/el-tag-66c83156.js +0 -117
  195. package/es/el-tag-9c2f329f.cjs +0 -1
  196. package/es/el-text-034bd3f4.js +0 -67
  197. package/es/el-text-6b2374bb.cjs +0 -1
  198. package/es/index-00f6ca75.cjs +0 -1
  199. package/es/index-185792a7.cjs +0 -1
  200. package/es/index-1e2a38ab.js +0 -113
  201. package/es/index-2e331d74.js +0 -10
  202. package/es/index-3153c1db.cjs +0 -1
  203. package/es/index-5216d5f5.js +0 -406
  204. package/es/index-5c0dd943.cjs +0 -1
  205. package/es/index-657047bb.js +0 -513
  206. package/es/index-870b6c9d.cjs +0 -1
  207. package/es/index-8c2d7e05.js +0 -368
  208. package/es/index-960806da.js +0 -314
  209. package/es/index-9780a537.cjs +0 -1
  210. package/es/index-9d16cea8.cjs +0 -1
  211. package/es/index-ac8dc53d.cjs +0 -1
  212. package/es/index-bb833443.cjs +0 -1
  213. package/es/index-c5f2d372.js +0 -326
  214. package/es/index-c6584658.js +0 -163
  215. package/es/index-d77a7336.js +0 -204
  216. package/es/index-eea0bcb3.cjs +0 -1
  217. package/es/index-f034b910.js +0 -60
  218. package/es/index-f1c702f6.cjs +0 -1
  219. package/es/index-f58b2920.cjs +0 -1
  220. package/es/scroll-679bd6bf.js +0 -35
  221. package/es/scroll-b108dabd.cjs +0 -1
  222. package/es/use-form-common-props-ac666630.cjs +0 -1
  223. package/es/use-form-common-props-ed72e914.js +0 -364
  224. package/es/use-global-config-23472471.cjs +0 -1
  225. package/es/use-global-config-ee406d58.js +0 -72
  226. package/es/validator-366dbf39.cjs +0 -1
  227. package/es/vnode-5ddb7ed1.js +0 -14
  228. package/es/vnode-b906ae6d.cjs +0 -1
  229. package/es/zh-cn-c21d12d8.cjs +0 -1
@@ -1,53 +1,54 @@
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 ne, d as pe, a as me, b as $e, m as De, e as Ie, l as Fe, E as ve, f as Oe } from "./index-6a52dc7c.js";
2
+ import { E as _e } from "./el-button-ee9fe159.js";
3
+ import { E as Ae, a as ze } from "./el-select-a573c78b.js";
4
+ import { E as ge } from "./el-popconfirm-6f8e65c8.js";
5
+ import { E as V } from "./index-e2e58ea9.js";
6
+ import "./base-dd156b8e.js";
7
+ import "./el-scrollbar-0a42c1d0.js";
8
+ import "./el-popper-0454c8e8.js";
9
+ import "./el-tag-2d8a3fe7.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";
11
+ import { inject as ye, ref as p, reactive as Q, computed as Be, watch as Re, nextTick as ue, resolveComponent as ce, openBlock as f, createBlock as F, withCtx as l, createElementVNode as s, normalizeClass as W, createVNode as o, unref as g, createTextVNode as x, createElementBlock as E, Fragment as Y, renderList as Z, toDisplayString as O, withModifiers as ee, createCommentVNode as X, h as H, onMounted as Me, normalizeStyle as Ue } from "vue";
12
+ import { E as je, a as Te } from "./el-form-item-2be6b683.js";
13
+ import { E as de } from "./el-input-d23f5442.js";
14
+ import { E as qe } from "./index-d9379af4.js";
15
+ import { E as Le } from "./el-dialog-060b3735.js";
16
+ import { E as Pe } from "./el-divider-c5d72961.js";
17
+ import { E as We } from "./el-empty-552baf04.js";
18
+ import { E as fe } from "./el-message-box-568a0aa6.js";
19
+ import "./el-overlay-cb5c85aa.js";
16
20
  import { j as He, R as Je } from "./index-53cc4e43.js";
17
21
  import { s as Ke } from "./aiTools-ce2f9281.js";
18
22
  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
23
  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";
24
+ import "./use-form-item-784142b4.js";
25
+ import "./index-a181f161.js";
26
+ import "./index-de9ad85c.js";
27
+ import "./use-global-config-9a4ccf33.js";
28
+ import "./index-9573f74b.js";
29
+ import "./index-3806160e.js";
30
+ import "./castArray-18eb6a41.js";
31
+ import "./vnode-8ee9bf4e.js";
32
+ import "./index-c09fc6f5.js";
33
+ import "./scroll-70271cb1.js";
34
+ import "./index-dddacf80.js";
35
+ import "./toNumber-f077c66a.js";
36
+ import "./clamp-c7512966.js";
37
+ import "./config-provider-06d8207f.js";
37
38
  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 = {
39
+ import "./_baseClone-fb6a3947.js";
40
+ import "./raf-b4fd1e12.js";
41
+ import "./validator-a66ec4f8.js";
42
+ const Ge = { class: "custom-header" }, Qe = { class: "left" }, Xe = ["id"], Ye = { class: "right" }, Ze = { class: "manage-dialog-body" }, et = { class: "func-list" }, tt = { class: "search" }, ot = ["onClick"], lt = { class: "icon-box" }, nt = { class: "rule-form" }, st = { class: "header" }, at = { class: "right" }, it = { class: "custom-header" }, rt = { class: "left" }, ut = ["id"], ct = { class: "right" }, dt = { class: "ai-dialog-body" }, ft = {
42
43
  key: 0,
43
44
  class: "node-progress"
44
- }, yt = {
45
+ }, pt = {
45
46
  key: 1,
46
47
  class: "ai-error"
47
- }, xt = {
48
+ }, mt = {
48
49
  key: 2,
49
50
  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 = {
51
+ }, vt = { class: "factor-expr" }, _t = { class: "dialog-footer" }, gt = { class: "custom-header" }, yt = { class: "left" }, xt = ["id"], Et = { class: "right" }, kt = { class: "content" }, ht = { class: "dialog-footer" }, Ct = {
51
52
  __name: "ManageDialog",
52
53
  props: {
53
54
  data: {
@@ -56,93 +57,93 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
56
57
  }
57
58
  },
58
59
  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({
60
+ setup(D, { expose: te, emit: J }) {
61
+ const S = ye("stConfig"), { request: R } = S, m = p(null), k = p(null), w = J, M = D, A = p(!1), N = Q({
61
62
  save: !1,
62
63
  test: !1
63
- }), C = p(null), v = Fe(() => C.value ? M.data.filter((l) => l.funcName.includes(C.value)) : M.data), o = Q({
64
+ }), h = p(null), _ = Be(() => h.value ? M.data.filter((n) => n.funcName.includes(h.value)) : M.data), t = Q({
64
65
  id: null,
65
66
  funcName: "",
66
67
  funcExpression: ""
67
- }), u = Q({
68
+ }), c = Q({
68
69
  result: null,
69
70
  detail: "",
70
71
  code: ""
71
- }), I = p(!1), q = () => {
72
- var l;
73
- Object.assign(o, {
72
+ }), $ = p(!1), q = () => {
73
+ var n;
74
+ Object.assign(t, {
74
75
  id: null,
75
76
  funcName: "",
76
77
  funcExpression: ""
77
- }), (l = m.value) == null || l.setValue(o.funcExpression);
78
- }, L = (l) => {
78
+ }), (n = m.value) == null || n.setValue(t.funcExpression);
79
+ }, L = (n) => {
79
80
  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) => {
81
+ Object.assign(t, {
82
+ id: n.id,
83
+ funcName: n.funcName,
84
+ funcExpression: n.funcExpression
85
+ }), (e = m.value) == null || e.setValue(t.funcExpression);
86
+ }, K = (n) => {
86
87
  var e;
87
- Object.assign(o, {
88
+ Object.assign(t, {
88
89
  id: null,
89
- funcName: `${l.funcName}-复制`,
90
- funcExpression: l.funcExpression
91
- }), (e = m.value) == null || e.setValue(o.funcExpression);
92
- }, y = async (l) => {
90
+ funcName: `${n.funcName}-复制`,
91
+ funcExpression: n.funcExpression
92
+ }), (e = m.value) == null || e.setValue(t.funcExpression);
93
+ }, y = async (n) => {
93
94
  var e;
94
- l.id === o.id && (Object.assign(o, {
95
+ n.id === t.id && (Object.assign(t, {
95
96
  id: null,
96
97
  funcName: "",
97
98
  funcExpression: ""
98
- }), (e = m.value) == null || e.setValue(o.funcExpression)), await R.post("/common/qt/deleteSearchFunctionById", { id: l.id }), N("refreshData");
99
+ }), (e = m.value) == null || e.setValue(t.funcExpression)), await R.post("/common/qt/deleteSearchFunctionById", { id: n.id }), w("refreshData");
99
100
  }, G = He(async () => {
100
101
  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();
102
+ if (N.save = !0, t.funcExpression = m.value.getValue(), !t.funcName)
103
+ return V.error("函数名称不可为空");
104
+ if (!t.funcExpression)
105
+ return V.error("函数内容不可为空");
106
+ await R.post("/common/qt/saveOrUpdateSearchFunction", t), V.success("操作成功"), w("refreshData"), t.id || q();
106
107
  } finally {
107
- $.save = !1;
108
+ N.save = !1;
108
109
  }
109
- }), Ee = (l) => new Promise((e) => {
110
+ }), Ee = (n) => new Promise((e) => {
110
111
  const i = p(
111
- l.reduce((c, _) => (c[_] = "", c), {})
112
- ), r = p({}), d = () => {
113
- let c = !0;
114
- const _ = {};
115
- return l.forEach((D) => {
112
+ n.reduce((r, v) => (r[v] = "", r), {})
113
+ ), u = p({}), d = () => {
114
+ let r = !0;
115
+ const v = {};
116
+ return n.forEach((I) => {
116
117
  var T;
117
- (T = i.value[D]) != null && T.trim() || (_[D] = `请输入${D}的值`, c = !1);
118
- }), r.value = _, c;
118
+ (T = i.value[I]) != null && T.trim() || (v[I] = `请输入${I}的值`, r = !1);
119
+ }), u.value = v, r;
119
120
  };
120
- pe({
121
+ fe({
121
122
  title: "填写变量值用于接口测试",
122
123
  message: H({
123
124
  setup() {
124
125
  return () => H("div", [
125
126
  H(
126
- Ge,
127
+ je,
127
128
  {
128
129
  model: i.value
129
130
  },
130
- () => l.map(
131
- (c) => H(
132
- Qe,
131
+ () => n.map(
132
+ (r) => H(
133
+ Te,
133
134
  {
134
- label: `${c}: `,
135
- prop: c,
136
- error: r.value[c],
135
+ label: `${r}: `,
136
+ prop: r,
137
+ error: u.value[r],
137
138
  "label-width": "90px"
138
139
  },
139
- () => H(fe, {
140
- modelValue: i.value[c],
141
- "onUpdate:modelValue": (_) => {
142
- i.value[c] = _, r.value[c] && delete r.value[c];
140
+ () => H(de, {
141
+ modelValue: i.value[r],
142
+ "onUpdate:modelValue": (v) => {
143
+ i.value[r] = v, u.value[r] && delete u.value[r];
143
144
  },
144
- placeholder: `请输入 ${c} 的值`,
145
- status: r.value[c] ? "error" : ""
145
+ placeholder: `请输入 ${r} 的值`,
146
+ status: u.value[r] ? "error" : ""
146
147
  })
147
148
  )
148
149
  )
@@ -154,87 +155,87 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
154
155
  confirmButtonText: "确定",
155
156
  cancelButtonText: "取消",
156
157
  customClass: "variable-input-dialog",
157
- beforeClose: async (c, _, D) => {
158
- c !== "confirm" && (e(!1), D()), await ue(), d() && (e({ ...i.value }), D());
158
+ beforeClose: async (r, v, I) => {
159
+ r !== "confirm" && (e(!1), I()), await ue(), d() && (e({ ...i.value }), I());
159
160
  }
160
161
  }).catch(() => e(!1));
161
- }), ke = (l) => {
162
+ }), ke = (n) => {
162
163
  const e = /\$\{([^}]*)\}/g, i = [];
163
- let r;
164
- for (; (r = e.exec(l)) !== null; )
165
- i.push(r[1]);
164
+ let u;
165
+ for (; (u = e.exec(n)) !== null; )
166
+ i.push(u[1]);
166
167
  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) {
168
+ }, he = (n, e) => n.replace(/\$\{([^}]*)\}/g, (i, u) => e[u] !== void 0 ? e[u] : i), se = async (n) => {
169
+ switch (n) {
169
170
  case "submit": {
170
171
  let e = m.value.getValue();
171
172
  if (!e)
172
- return S.error("函数内容不可为空");
173
+ return V.error("函数内容不可为空");
173
174
  if (/\$\{[^}]*\}/.test(e)) {
174
- const i = ke(e), r = await Ee(i);
175
- if (!r)
175
+ const i = ke(e), u = await Ee(i);
176
+ if (!u)
176
177
  return;
177
- e = Ce(e, r);
178
+ e = he(e, u);
178
179
  }
179
180
  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);
181
+ N.test = !0;
182
+ const { body: i } = await R.post("/common/qt/testFactorSelect", { factorSelectExpr: e }), { result: u, detail: d } = i;
183
+ Object.assign(c, { result: u, detail: d, code: e }), u === 1 ? V.success("测试通过") : (V.error("测试未能通过"), $.value = !0);
183
184
  } finally {
184
- $.test = !1;
185
+ N.test = !1;
185
186
  }
186
187
  break;
187
188
  }
188
189
  case "log": {
189
- if (u.result === null)
190
- return S.warning("请先进行测试, 等待测试完成后可查看日志");
191
- I.value = !0;
190
+ if (c.result === null)
191
+ return V.warning("请先进行测试, 等待测试完成后可查看日志");
192
+ $.value = !0;
192
193
  break;
193
194
  }
194
195
  }
195
- }, U = p(!1), oe = p(""), z = p(!1), B = p(""), ne = p(""), ie = p(null), j = p([]), b = Q({
196
+ }, U = p(!1), oe = p(""), z = p(!1), B = p(""), le = p(""), ae = p(null), j = p([]), C = Q({
196
197
  parsedConditions: [],
197
198
  factorSelectExpr: ""
198
- }), be = () => {
199
+ }), Ce = () => {
199
200
  U.value = !0, B.value = "";
200
- }, Ve = () => {
201
- ne.value = "", B.value = "", j.value = [], Object.assign(b, {
201
+ }, be = () => {
202
+ le.value = "", B.value = "", j.value = [], Object.assign(C, {
202
203
  parsedConditions: [],
203
204
  factorSelectExpr: ""
204
205
  });
205
- }, ce = async () => {
206
+ }, ie = async () => {
206
207
  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,
208
+ const n = (e = oe.value) == null ? void 0 : e.trim();
209
+ if (!n)
210
+ return V.error("请输入脚本描述");
211
+ z.value || (be(), z.value = !0, await Ke({
212
+ baseUrl: (i = S == null ? void 0 : S.env) == null ? void 0 : i.VITE_BASE_URL,
212
213
  token: Je(),
213
- value: l,
214
- sessionId: ie.value,
215
- callback: (r, d) => {
214
+ value: n,
215
+ sessionId: ae.value,
216
+ callback: (u, d) => {
216
217
  var P;
217
- switch (r) {
218
+ switch (u) {
218
219
  case "session": {
219
- ie.value = d;
220
+ ae.value = d;
220
221
  break;
221
222
  }
222
223
  case "node": {
223
- const c = j.value.findIndex((_) => _.name === d.name);
224
- c === -1 ? j.value.push(d) : j.value[c] = d;
224
+ const r = j.value.findIndex((v) => v.name === d.name);
225
+ r === -1 ? j.value.push(d) : j.value[r] = d;
225
226
  break;
226
227
  }
227
228
  case "message": {
228
- ne.value = d;
229
+ le.value = d;
229
230
  break;
230
231
  }
231
232
  case "finish": {
232
233
  z.value = !1;
233
234
  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: _
235
+ const r = JSON.parse(le.value), v = (P = r == null ? void 0 : r.factorScreen) == null ? void 0 : P.factorSelectExpr;
236
+ v ? Object.assign(C, {
237
+ parsedConditions: r.parsedConditions ?? [],
238
+ factorSelectExpr: v
238
239
  }) : B.value = "AI 未能生成有效的因子脚本, 请调整描述后重试";
239
240
  } catch {
240
241
  B.value = "AI 返回结果解析失败, 请重试";
@@ -248,13 +249,13 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
248
249
  }
249
250
  }
250
251
  }));
251
- }, Se = async () => {
252
+ }, Ve = async () => {
252
253
  var e, i;
253
- if (!b.factorSelectExpr)
254
+ if (!C.factorSelectExpr)
254
255
  return;
255
256
  if ((e = m.value) == null ? void 0 : e.getValue())
256
257
  try {
257
- await pe.confirm("当前编辑器已有内容, 将被 AI 生成结果覆盖, 是否继续?", "提示", {
258
+ await fe.confirm("当前编辑器已有内容, 将被 AI 生成结果覆盖, 是否继续?", "提示", {
258
259
  confirmButtonText: "覆盖",
259
260
  cancelButtonText: "取消",
260
261
  type: "warning"
@@ -262,36 +263,36 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
262
263
  } catch {
263
264
  return;
264
265
  }
265
- (i = m.value) == null || i.setValue(b.factorSelectExpr), o.funcExpression = b.factorSelectExpr, U.value = !1, S.success("已插入到编辑器");
266
- }, we = () => {
266
+ (i = m.value) == null || i.setValue(C.factorSelectExpr), t.funcExpression = C.factorSelectExpr, U.value = !1, V.success("已插入到编辑器");
267
+ }, Se = () => {
267
268
  k.value.open(m.value);
268
269
  };
269
- return Oe(
270
+ return Re(
270
271
  () => A.value,
271
- (l) => {
272
- l || (k.value.close(), I.value = !1, U.value = !1);
272
+ (n) => {
273
+ n || (k.value.close(), $.value = !1, U.value = !1);
273
274
  }
274
275
  ), te({
275
- open: (l) => {
276
+ open: (n) => {
276
277
  A.value = !0, ue(() => {
277
278
  var e;
278
- if ((e = m.value) == null || e.resize(), C.value = null, Object.assign(u, {
279
+ if ((e = m.value) == null || e.resize(), h.value = null, Object.assign(c, {
279
280
  result: null,
280
281
  detail: "",
281
282
  code: ""
282
- }), l) {
283
+ }), n) {
283
284
  const i = {
284
- id: l.id,
285
- funcName: l.funcName,
286
- funcExpression: l.funcExpression
285
+ id: n.id,
286
+ funcName: n.funcName,
287
+ funcExpression: n.funcExpression
287
288
  };
288
289
  L(i);
289
290
  } else
290
- v.value.length ? L(v.value[0]) : q();
291
+ _.value.length ? L(_.value[0]) : q();
291
292
  });
292
293
  }
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;
294
+ }), (n, e) => {
295
+ const i = ve, u = de, d = _e, P = ge, r = We, v = qe, I = ce("st-monacoEditor"), T = Le, we = ce("st-varSelectDialog"), Ne = Pe;
295
296
  return f(), F(T, {
296
297
  "modal-class": "manage-dialog",
297
298
  modelValue: A.value,
@@ -304,86 +305,86 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
304
305
  "modal-penetrable": !0,
305
306
  "show-close": !1
306
307
  }, {
307
- header: n(({ titleId: a, titleClass: V }) => [
308
- s("div", Ye, [
309
- s("div", Ze, [
308
+ header: l(({ titleId: a, titleClass: b }) => [
309
+ s("div", Ge, [
310
+ s("div", Qe, [
310
311
  s("span", {
311
312
  id: a,
312
- class: W(V)
313
- }, " 自定义函数管理面板 ", 10, et)
313
+ class: W(b)
314
+ }, " 自定义函数管理面板 ", 10, Xe)
314
315
  ]),
315
- s("div", tt, [
316
- t(i, {
316
+ s("div", Ye, [
317
+ o(i, {
317
318
  onClick: e[0] || (e[0] = (re) => A.value = !1)
318
319
  }, {
319
- default: n(() => [
320
- t(g(le))
320
+ default: l(() => [
321
+ o(g(ne))
321
322
  ]),
322
323
  _: 1
323
324
  })
324
325
  ])
325
326
  ])
326
327
  ]),
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),
328
+ default: l(() => [
329
+ s("div", Ze, [
330
+ s("div", et, [
331
+ s("div", tt, [
332
+ e[13] || (e[13] = s("span", null, "输入函数关键字", -1)),
333
+ o(u, {
334
+ modelValue: h.value,
335
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => h.value = a),
335
336
  clearable: ""
336
337
  }, null, 8, ["modelValue"]),
337
- t(d, {
338
+ o(d, {
338
339
  type: "primary",
339
340
  onClick: q
340
341
  }, {
341
- default: n(() => [
342
- x("新建")
343
- ]),
342
+ default: l(() => [...e[12] || (e[12] = [
343
+ x("新建", -1)
344
+ ])]),
344
345
  _: 1
345
346
  })
346
347
  ]),
347
- t(_, { class: "list" }, {
348
- default: n(() => [
349
- v.value.length ? (f(!0), E(Y, { key: 0 }, Z(v.value, (a) => (f(), E("div", {
348
+ o(v, { class: "list" }, {
349
+ default: l(() => [
350
+ _.value.length ? (f(!0), E(Y, { key: 0 }, Z(_.value, (a) => (f(), E("div", {
350
351
  key: a.id,
351
- class: W([{ "active-list-item": o.id === a.id }, "list-item"])
352
+ class: W([{ "active-list-item": t.id === a.id }, "list-item"])
352
353
  }, [
353
354
  s("span", {
354
355
  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)
356
+ onClick: (b) => L(a)
357
+ }, O(a.funcName), 9, ot),
358
+ s("div", lt, [
359
+ o(i, null, {
360
+ default: l(() => [
361
+ o(g(pe), {
362
+ onClick: (b) => K(a)
362
363
  }, null, 8, ["onClick"])
363
364
  ]),
364
365
  _: 2
365
366
  }, 1024),
366
- t(P, {
367
+ o(P, {
367
368
  title: "确认是否删除?",
368
369
  "confirm-button-text": "确认",
369
370
  "cancel-button-text": "取消",
370
- onConfirm: (V) => y(a)
371
+ onConfirm: (b) => y(a)
371
372
  }, {
372
- reference: n(() => [
373
- t(i, {
373
+ reference: l(() => [
374
+ o(i, {
374
375
  onClick: ee(() => {
375
376
  }, ["stop"])
376
377
  }, {
377
- default: n(() => [
378
- t(g(he))
378
+ default: l(() => [
379
+ o(g(me))
379
380
  ]),
380
381
  _: 1
381
382
  })
382
383
  ]),
383
- _: 2
384
- }, 1032, ["onConfirm"])
384
+ _: 1
385
+ }, 8, ["onConfirm"])
385
386
  ])
386
- ], 2))), 128)) : (f(), F(c, {
387
+ ], 2))), 128)) : (f(), F(r, {
387
388
  key: 1,
388
389
  description: "暂无数据"
389
390
  }))
@@ -391,65 +392,65 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
391
392
  _: 1
392
393
  })
393
394
  ]),
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)
395
+ s("div", nt, [
396
+ s("div", st, [
397
+ e[19] || (e[19] = s("span", null, "函数名称:", -1)),
398
+ o(u, {
399
+ modelValue: t.funcName,
400
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => t.funcName = a)
400
401
  }, null, 8, ["modelValue"]),
401
- s("div", dt, [
402
- t(d, {
402
+ s("div", at, [
403
+ o(d, {
403
404
  type: "primary",
404
405
  onClick: g(G),
405
- loading: $.save
406
+ loading: N.save
406
407
  }, {
407
- default: n(() => [
408
- x(" 保存 ")
409
- ]),
408
+ default: l(() => [...e[14] || (e[14] = [
409
+ x(" 保存 ", -1)
410
+ ])]),
410
411
  _: 1
411
412
  }, 8, ["onClick", "loading"]),
412
- t(d, {
413
- loading: $.test,
414
- onClick: e[3] || (e[3] = (a) => ae("submit"))
413
+ o(d, {
414
+ loading: N.test,
415
+ onClick: e[3] || (e[3] = (a) => se("submit"))
415
416
  }, {
416
- default: n(() => [
417
- x(" 测试 ")
418
- ]),
417
+ default: l(() => [...e[15] || (e[15] = [
418
+ x(" 测试 ", -1)
419
+ ])]),
419
420
  _: 1
420
421
  }, 8, ["loading"]),
421
- t(d, {
422
- icon: g(Me),
423
- onClick: e[4] || (e[4] = (a) => ae("log"))
422
+ o(d, {
423
+ icon: g($e),
424
+ onClick: e[4] || (e[4] = (a) => se("log"))
424
425
  }, {
425
- default: n(() => [
426
- x(" 日志明细 ")
427
- ]),
426
+ default: l(() => [...e[16] || (e[16] = [
427
+ x(" 日志明细 ", -1)
428
+ ])]),
428
429
  _: 1
429
430
  }, 8, ["icon"]),
430
- t(d, {
431
+ o(d, {
431
432
  type: "primary",
432
- icon: g(Ue),
433
- onClick: be
433
+ icon: g(De),
434
+ onClick: Ce
434
435
  }, {
435
- default: n(() => [
436
- x(" AI 生成 ")
437
- ]),
436
+ default: l(() => [...e[17] || (e[17] = [
437
+ x(" AI 生成 ", -1)
438
+ ])]),
438
439
  _: 1
439
440
  }, 8, ["icon"]),
440
- t(d, {
441
+ o(d, {
441
442
  type: "primary",
442
- onClick: we
443
+ onClick: Se
443
444
  }, {
444
- default: n(() => [
445
- x(" 变量选择器 ")
446
- ]),
445
+ default: l(() => [...e[18] || (e[18] = [
446
+ x(" 变量选择器 ", -1)
447
+ ])]),
447
448
  _: 1
448
449
  })
449
450
  ])
450
451
  ]),
451
- ft,
452
- t(D, {
452
+ e[20] || (e[20] = s("div", { class: "tip-box" }, "说明: 公式里可以使用变量, 变量名命名格式: ${变量名}, 后续可在应用函数时填写具体值, 系统会自动换算", -1)),
453
+ o(I, {
453
454
  ref_key: "stMonacoEditorRef",
454
455
  ref: m,
455
456
  language: "lua",
@@ -457,7 +458,7 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
457
458
  }, null, 512)
458
459
  ])
459
460
  ]),
460
- t(T, {
461
+ o(T, {
461
462
  "modal-class": "ai-dialog",
462
463
  modelValue: U.value,
463
464
  "onUpdate:modelValue": e[7] || (e[7] = (a) => U.value = a),
@@ -471,63 +472,63 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
471
472
  "show-close": !1,
472
473
  "close-on-click-modal": !1
473
474
  }, {
474
- header: n(({ titleId: a, titleClass: V }) => [
475
- s("div", pt, [
476
- s("div", mt, [
475
+ header: l(({ titleId: a, titleClass: b }) => [
476
+ s("div", it, [
477
+ s("div", rt, [
477
478
  s("span", {
478
479
  id: a,
479
- class: W(V)
480
- }, " AI 生成脚本 ", 10, _t)
480
+ class: W(b)
481
+ }, " AI 生成脚本 ", 10, ut)
481
482
  ]),
482
- s("div", vt, [
483
- t(i, {
483
+ s("div", ct, [
484
+ o(i, {
484
485
  onClick: e[5] || (e[5] = (re) => U.value = !1)
485
486
  }, {
486
- default: n(() => [
487
- t(g(le))
487
+ default: l(() => [
488
+ o(g(ne))
488
489
  ]),
489
490
  _: 1
490
491
  })
491
492
  ])
492
493
  ])
493
494
  ]),
494
- footer: n(() => [
495
- s("div", kt, [
496
- b.factorSelectExpr ? (f(), F(d, {
495
+ footer: l(() => [
496
+ s("div", _t, [
497
+ C.factorSelectExpr ? (f(), F(d, {
497
498
  key: 0,
498
- onClick: ce,
499
+ onClick: ie,
499
500
  disabled: z.value
500
501
  }, {
501
- default: n(() => [
502
- x(" 重新生成 ")
503
- ]),
502
+ default: l(() => [...e[21] || (e[21] = [
503
+ x(" 重新生成 ", -1)
504
+ ])]),
504
505
  _: 1
505
506
  }, 8, ["disabled"])) : X("", !0),
506
- b.factorSelectExpr ? (f(), F(d, {
507
+ C.factorSelectExpr ? (f(), F(d, {
507
508
  key: 1,
508
509
  type: "primary",
509
- onClick: Se
510
+ onClick: Ve
510
511
  }, {
511
- default: n(() => [
512
- x(" 插入到编辑器 ")
513
- ]),
512
+ default: l(() => [...e[22] || (e[22] = [
513
+ x(" 插入到编辑器 ", -1)
514
+ ])]),
514
515
  _: 1
515
516
  })) : (f(), F(d, {
516
517
  key: 2,
517
518
  type: "primary",
518
519
  loading: z.value,
519
- onClick: ce
520
+ onClick: ie
520
521
  }, {
521
- default: n(() => [
522
- x(" 生成 ")
523
- ]),
522
+ default: l(() => [...e[23] || (e[23] = [
523
+ x(" 生成 ", -1)
524
+ ])]),
524
525
  _: 1
525
526
  }, 8, ["loading"]))
526
527
  ])
527
528
  ]),
528
- default: n(() => [
529
- s("div", gt, [
530
- t(r, {
529
+ default: l(() => [
530
+ s("div", dt, [
531
+ o(u, {
531
532
  modelValue: oe.value,
532
533
  "onUpdate:modelValue": e[6] || (e[6] = (a) => oe.value = a),
533
534
  type: "textarea",
@@ -535,7 +536,7 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
535
536
  placeholder: "用自然语言描述脚本逻辑, 例: 收盘价大于10",
536
537
  disabled: z.value
537
538
  }, null, 8, ["modelValue", "disabled"]),
538
- j.value.length ? (f(), E("div", ht, [
539
+ j.value.length ? (f(), E("div", ft, [
539
540
  (f(!0), E(Y, null, Z(j.value, (a) => (f(), E("div", {
540
541
  key: a.name,
541
542
  class: "node-item"
@@ -544,42 +545,42 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
544
545
  key: 0,
545
546
  class: "success"
546
547
  }, {
547
- default: n(() => [
548
- t(g(je))
548
+ default: l(() => [
549
+ o(g(Ie))
549
550
  ]),
550
551
  _: 1
551
552
  })) : (f(), F(i, {
552
553
  key: 1,
553
554
  class: "is-loading executing"
554
555
  }, {
555
- default: n(() => [
556
- t(g(Te))
556
+ default: l(() => [
557
+ o(g(Fe))
557
558
  ]),
558
559
  _: 1
559
560
  })),
560
561
  s("span", null, O(a.name), 1)
561
562
  ]))), 128))
562
563
  ])) : 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,
564
+ B.value ? (f(), E("div", pt, " ❌ " + O(B.value), 1)) : X("", !0),
565
+ C.factorSelectExpr ? (f(), E("div", mt, [
566
+ (f(!0), E(Y, null, Z(C.parsedConditions, (a, b) => (f(), E("div", {
567
+ key: b,
567
568
  class: "parsed-condition"
568
569
  }, O(a), 1))), 128)),
569
- s("pre", Et, O(b.factorSelectExpr), 1)
570
+ s("pre", vt, O(C.factorSelectExpr), 1)
570
571
  ])) : X("", !0)
571
572
  ])
572
573
  ]),
573
574
  _: 1
574
575
  }, 8, ["modelValue"]),
575
- t(Ne, {
576
+ o(we, {
576
577
  ref_key: "stVarSelectDialogRef",
577
578
  ref: k
578
579
  }, null, 512),
579
- t(T, {
580
+ o(T, {
580
581
  "modal-class": "log-dialog",
581
- modelValue: I.value,
582
- "onUpdate:modelValue": e[10] || (e[10] = (a) => I.value = a),
582
+ modelValue: $.value,
583
+ "onUpdate:modelValue": e[10] || (e[10] = (a) => $.value = a),
583
584
  width: "830",
584
585
  "align-center": "",
585
586
  "append-to-body": "",
@@ -589,56 +590,56 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
589
590
  "modal-penetrable": !0,
590
591
  "show-close": !1
591
592
  }, {
592
- header: n(({ titleId: a, titleClass: V }) => [
593
- s("div", Ct, [
594
- s("div", bt, [
593
+ header: l(({ titleId: a, titleClass: b }) => [
594
+ s("div", gt, [
595
+ s("div", yt, [
595
596
  s("span", {
596
597
  id: a,
597
- class: W(V)
598
- }, " 日志明细 ", 10, Vt)
598
+ class: W(b)
599
+ }, " 日志明细 ", 10, xt)
599
600
  ]),
600
- s("div", St, [
601
- t(i, {
602
- onClick: e[8] || (e[8] = (re) => I.value = !1)
601
+ s("div", Et, [
602
+ o(i, {
603
+ onClick: e[8] || (e[8] = (re) => $.value = !1)
603
604
  }, {
604
- default: n(() => [
605
- t(g(le))
605
+ default: l(() => [
606
+ o(g(ne))
606
607
  ]),
607
608
  _: 1
608
609
  })
609
610
  ])
610
611
  ])
611
612
  ]),
612
- footer: n(() => [
613
- s("div", Nt, [
614
- t(d, {
615
- onClick: e[9] || (e[9] = (a) => I.value = !1)
613
+ footer: l(() => [
614
+ s("div", ht, [
615
+ o(d, {
616
+ onClick: e[9] || (e[9] = (a) => $.value = !1)
616
617
  }, {
617
- default: n(() => [
618
- x(" 关闭 ")
619
- ]),
618
+ default: l(() => [...e[24] || (e[24] = [
619
+ x(" 关闭 ", -1)
620
+ ])]),
620
621
  _: 1
621
622
  })
622
623
  ])
623
624
  ]),
624
- default: n(() => [
625
- s("div", wt, [
626
- t(_, {
625
+ default: l(() => [
626
+ s("div", kt, [
627
+ o(v, {
627
628
  class: "code",
628
629
  height: "600px"
629
630
  }, {
630
- default: n(() => [
631
- s("pre", null, O(u.code), 1)
631
+ default: l(() => [
632
+ s("pre", null, O(c.code), 1)
632
633
  ]),
633
634
  _: 1
634
635
  }),
635
- t($e, { direction: "vertical" }),
636
- t(_, { height: "600px" }, {
637
- default: n(() => [
636
+ o(Ne, { direction: "vertical" }),
637
+ o(v, { height: "600px" }, {
638
+ default: l(() => [
638
639
  s("pre", {
639
- class: W(u.result === 1 ? "success-log" : "error-log")
640
- }, O(u.result === 1 ? `✅️ 测试通过
641
- ${u.detail}` : u.detail), 3)
640
+ class: W(c.result === 1 ? "success-log" : "error-log")
641
+ }, O(c.result === 1 ? `✅️ 测试通过
642
+ ${c.detail}` : c.detail), 3)
642
643
  ]),
643
644
  _: 1
644
645
  })
@@ -651,124 +652,124 @@ ${u.detail}` : u.detail), 3)
651
652
  }, 8, ["modelValue"]);
652
653
  };
653
654
  }
654
- }, It = /* @__PURE__ */ xe($t, [["__scopeId", "data-v-5797123f"]]);
655
- const Dt = { class: "custom-function" }, Ft = { class: "func-option" }, Ot = { class: "icons" }, At = {
655
+ }, bt = /* @__PURE__ */ xe(Ct, [["__scopeId", "data-v-5797123f"]]);
656
+ const Vt = { class: "custom-function" }, St = { class: "func-option" }, wt = { class: "icons" }, Nt = {
656
657
  __name: "index",
657
658
  props: {
658
659
  size: { type: String, default: "small" },
659
660
  selectWidth: { type: String, default: "200px" }
660
661
  },
661
662
  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)
663
+ setup(D, { emit: te }) {
664
+ const { request: J } = ye("stConfig"), S = p(null), R = te, m = p(null), k = p(""), w = p([]), M = async () => {
665
+ const { body: _ } = await J.post("/common/qt/querySearchFunctions");
666
+ if (w.value = _ ?? [], m.value === null)
666
667
  k.value = "";
667
668
  else {
668
- const o = N.value.find(({ id: u }) => u === m.value);
669
- k.value = o ? o.funcName : "";
669
+ const t = w.value.find(({ id: c }) => c === m.value);
670
+ k.value = t ? t.funcName : "";
670
671
  }
671
- }, A = (v) => {
672
- var o;
673
- v ? m.value = (o = N.value.find((u) => u.funcName === v)) == null ? void 0 : o.id : m.value = null;
674
- }, $ = () => {
672
+ }, A = (_) => {
673
+ var t;
674
+ _ ? m.value = (t = w.value.find((c) => c.funcName === _)) == null ? void 0 : t.id : m.value = null;
675
+ }, N = () => {
675
676
  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) {
677
+ return V.error("请先选择自定义函数后, 再执行插入");
678
+ const { funcName: _, funcExpression: t } = w.value.find((c) => c.funcName === k.value);
679
+ R("insert", _, t);
680
+ }, h = async (_, t) => {
681
+ switch (_) {
681
682
  case "open": {
682
- w.value.open(), R("actionState", "因子筛选", "函数管理");
683
+ S.value.open(), R("actionState", "因子筛选", "函数管理");
683
684
  break;
684
685
  }
685
686
  case "copy": {
686
- const u = {
687
+ const c = {
687
688
  id: null,
688
- funcName: `${o.funcName}-复制`,
689
- funcExpression: o.funcExpression
689
+ funcName: `${t.funcName}-复制`,
690
+ funcExpression: t.funcExpression
690
691
  };
691
- w.value.open(u);
692
+ S.value.open(c);
692
693
  break;
693
694
  }
694
695
  case "edit": {
695
- const u = {
696
- id: o.id,
697
- funcName: o.funcName,
698
- funcExpression: o.funcExpression
696
+ const c = {
697
+ id: t.id,
698
+ funcName: t.funcName,
699
+ funcExpression: t.funcExpression
699
700
  };
700
- w.value.open(u);
701
+ S.value.open(c);
701
702
  break;
702
703
  }
703
704
  case "delete": {
704
- await J.post("/common/qt/deleteSearchFunctionById", { id: o.id }), M();
705
+ await J.post("/common/qt/deleteSearchFunctionById", { id: t.id }), M();
705
706
  break;
706
707
  }
707
708
  }
708
709
  };
709
- return Be(() => {
710
+ return Me(() => {
710
711
  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, {
712
+ }), (_, t) => {
713
+ const c = ve, $ = ge, q = Ae, L = ze, K = _e;
714
+ return f(), E("div", Vt, [
715
+ o(L, {
715
716
  modelValue: k.value,
716
- "onUpdate:modelValue": o[0] || (o[0] = (y) => k.value = y),
717
- size: h.size,
717
+ "onUpdate:modelValue": t[0] || (t[0] = (y) => k.value = y),
718
+ size: D.size,
718
719
  placeholder: "自定义函数",
719
720
  "no-match-text": "无匹配选项",
720
721
  "no-data-text": "无选项数据",
721
722
  clearable: "",
722
723
  filterable: "",
723
724
  onChange: A,
724
- style: Re({ width: h.selectWidth })
725
+ style: Ue({ width: D.selectWidth })
725
726
  }, {
726
- default: n(() => [
727
- (f(!0), E(Y, null, Z(N.value, (y) => (f(), F(q, {
727
+ default: l(() => [
728
+ (f(!0), E(Y, null, Z(w.value, (y) => (f(), F(q, {
728
729
  key: y.id,
729
730
  label: y.funcName,
730
731
  value: y.funcName,
731
- onClick: $
732
+ onClick: N
732
733
  }, {
733
- default: n(() => [
734
- s("div", Ft, [
734
+ default: l(() => [
735
+ s("div", St, [
735
736
  s("span", null, O(y.funcName), 1),
736
- s("div", Ot, [
737
- t(u, {
738
- onClick: ee((G) => C("copy", y), ["stop"])
737
+ s("div", wt, [
738
+ o(c, {
739
+ onClick: ee((G) => h("copy", y), ["stop"])
739
740
  }, {
740
- default: n(() => [
741
- t(g(ge))
741
+ default: l(() => [
742
+ o(g(pe))
742
743
  ]),
743
- _: 2
744
- }, 1032, ["onClick"]),
745
- t(u, {
746
- onClick: ee((G) => C("edit", y), ["stop"])
744
+ _: 1
745
+ }, 8, ["onClick"]),
746
+ o(c, {
747
+ onClick: ee((G) => h("edit", y), ["stop"])
747
748
  }, {
748
- default: n(() => [
749
- t(g(qe))
749
+ default: l(() => [
750
+ o(g(Oe))
750
751
  ]),
751
- _: 2
752
- }, 1032, ["onClick"]),
753
- t(I, {
752
+ _: 1
753
+ }, 8, ["onClick"]),
754
+ o($, {
754
755
  title: "确认是否删除?",
755
756
  "confirm-button-text": "确认",
756
757
  "cancel-button-text": "取消",
757
- onConfirm: (G) => C("delete", y)
758
+ onConfirm: (G) => h("delete", y)
758
759
  }, {
759
- reference: n(() => [
760
- t(u, {
760
+ reference: l(() => [
761
+ o(c, {
761
762
  onClick: ee(() => {
762
763
  }, ["stop"])
763
764
  }, {
764
- default: n(() => [
765
- t(g(he))
765
+ default: l(() => [
766
+ o(g(me))
766
767
  ]),
767
768
  _: 1
768
769
  })
769
770
  ]),
770
- _: 2
771
- }, 1032, ["onConfirm"])
771
+ _: 1
772
+ }, 8, ["onConfirm"])
772
773
  ])
773
774
  ])
774
775
  ]),
@@ -777,40 +778,40 @@ const Dt = { class: "custom-function" }, Ft = { class: "func-option" }, Ot = { c
777
778
  ]),
778
779
  _: 1
779
780
  }, 8, ["modelValue", "size", "style"]),
780
- t(K, {
781
+ o(K, {
781
782
  type: "primary",
782
- size: h.size,
783
- onClick: $
783
+ size: D.size,
784
+ onClick: N
784
785
  }, {
785
- default: n(() => [
786
- x(" 插入 ")
787
- ]),
786
+ default: l(() => [...t[2] || (t[2] = [
787
+ x(" 插入 ", -1)
788
+ ])]),
788
789
  _: 1
789
790
  }, 8, ["size"]),
790
- t(K, {
791
+ o(K, {
791
792
  type: "primary",
792
- size: h.size,
793
- onClick: o[1] || (o[1] = (y) => C("open"))
793
+ size: D.size,
794
+ onClick: t[1] || (t[1] = (y) => h("open"))
794
795
  }, {
795
- default: n(() => [
796
- x(" 函数管理 ")
797
- ]),
796
+ default: l(() => [...t[3] || (t[3] = [
797
+ x(" 函数管理 ", -1)
798
+ ])]),
798
799
  _: 1
799
800
  }, 8, ["size"]),
800
- t(It, {
801
+ o(bt, {
801
802
  ref_key: "ManageDialogRef",
802
- ref: w,
803
- data: N.value,
803
+ ref: S,
804
+ data: w.value,
804
805
  onRefreshData: M
805
806
  }, null, 8, ["data"])
806
807
  ]);
807
808
  };
808
809
  }
809
- }, zt = /* @__PURE__ */ xe(At, [["__scopeId", "data-v-d01721a6"]]), Co = {
810
- install(h) {
811
- h.component("st-customFunction", zt);
810
+ }, $t = /* @__PURE__ */ xe(Nt, [["__scopeId", "data-v-d01721a6"]]), yo = {
811
+ install(D) {
812
+ D.component("st-customFunction", $t);
812
813
  }
813
814
  };
814
815
  export {
815
- Co as default
816
+ yo as default
816
817
  };