st-comp 0.0.92 → 0.0.94

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 (74) hide show
  1. package/components.d.ts +1 -0
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +2 -2
  4. package/es/Dialog.cjs +1 -1
  5. package/es/Dialog.js +10 -10
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +131 -129
  8. package/es/Kline.cjs +1 -1
  9. package/es/Kline.js +9 -9
  10. package/es/KlineNew.cjs +1 -1
  11. package/es/KlineNew.js +8 -8
  12. package/es/Pagination.cjs +1 -1
  13. package/es/Pagination.js +11 -11
  14. package/es/Table.cjs +1 -1
  15. package/es/Table.js +12 -12
  16. package/es/VarietySearch.cjs +1 -1
  17. package/es/VarietySearch.js +1300 -793
  18. package/es/VirtualTable.cjs +3 -3
  19. package/es/VirtualTable.js +9 -9
  20. package/es/{base-1bc9f12c.js → base-6e64c2e6.js} +7 -7
  21. package/es/{base-315cbfab.cjs → base-8776b83e.cjs} +1 -1
  22. package/es/castArray-59d5ae43.cjs +1 -0
  23. package/es/{castArray-f42865a2.js → castArray-8ec29ca6.js} +1 -1
  24. package/es/{config-provider-17c85684.cjs → config-provider-76ef1b35.cjs} +1 -1
  25. package/es/{config-provider-c8d3957d.js → config-provider-f4278c8e.js} +7 -7
  26. package/es/{el-button-93e0ac7c.js → el-button-4c7ae9df.js} +36 -36
  27. package/es/{el-button-ec16f484.cjs → el-button-65e4598f.cjs} +1 -1
  28. package/es/{el-empty-0c85d9b7.js → el-empty-05e13b3c.js} +1 -1
  29. package/es/{el-empty-16ceef82.cjs → el-empty-dfe11c21.cjs} +1 -1
  30. package/es/{el-input-a8791103.cjs → el-input-11327619.cjs} +3 -3
  31. package/es/{el-input-29806e42.js → el-input-f4898cfa.js} +38 -37
  32. package/es/{el-overlay-6d0c5cc3.cjs → el-overlay-9d9c6ba9.cjs} +1 -1
  33. package/es/{el-overlay-53eb27a5.js → el-overlay-d7af7dda.js} +6 -6
  34. package/es/{el-popover-1d087574.cjs → el-popover-4a4a4b02.cjs} +1 -1
  35. package/es/{el-popover-dd66e2c8.js → el-popover-dc9c7ff7.js} +4 -4
  36. package/es/{el-radio-group-caebab9d.js → el-radio-group-a31fb7c0.js} +13 -13
  37. package/es/{el-radio-group-46e8f574.cjs → el-radio-group-cc2d6c87.cjs} +1 -1
  38. package/es/{el-scrollbar-e17fad47.js → el-scrollbar-a00aca2f.js} +12 -12
  39. package/es/{el-scrollbar-9473fd47.cjs → el-scrollbar-f197b544.cjs} +1 -1
  40. package/es/{el-select-64511731.cjs → el-select-5dbb0da3.cjs} +1 -1
  41. package/es/{el-select-ac302f3c.js → el-select-b9cf452e.js} +51 -51
  42. package/es/el-table-column-1e15361e.cjs +20 -0
  43. package/es/{el-table-column-b8e2141b.js → el-table-column-675f51e6.js} +69 -69
  44. package/es/el-tag-c9d5baa7.cjs +1 -0
  45. package/es/{el-tag-9493bdff.js → el-tag-f878b1f1.js} +12 -12
  46. package/es/{focus-trap-1b2aef75.js → focus-trap-2677bd39.js} +1 -1
  47. package/es/{focus-trap-ea177336.cjs → focus-trap-5f42842b.cjs} +1 -1
  48. package/es/{raf-6d7e80f4.js → raf-32ed81f4.js} +1 -1
  49. package/es/{raf-c437ab23.cjs → raf-7c366b55.cjs} +1 -1
  50. package/es/{scroll-a80e1458.cjs → scroll-22a00b05.cjs} +1 -1
  51. package/es/{scroll-a928a93e.js → scroll-9b9249e9.js} +1 -1
  52. package/es/style.css +1 -1
  53. package/es/{use-form-item-7924b6c1.cjs → use-form-item-67e7ef93.cjs} +1 -1
  54. package/es/{use-form-item-aeec8499.js → use-form-item-bfc7dddf.js} +21 -21
  55. package/es/{use-global-config-b07c467a.js → use-global-config-89daeba3.js} +23 -23
  56. package/es/{use-global-config-d02be80b.cjs → use-global-config-f9103903.cjs} +1 -1
  57. package/es/{vnode-85a610a2.cjs → vnode-69f3ca85.cjs} +1 -1
  58. package/es/{vnode-aa872900.js → vnode-aa3448ec.js} +1 -1
  59. package/es/{zh-cn-0024c96d.cjs → zh-cn-720e514b.cjs} +1 -1
  60. package/es/{zh-cn-d29347f8.js → zh-cn-e662dc89.js} +2 -2
  61. package/lib/bundle.js +1 -1
  62. package/lib/bundle.umd.cjs +193 -193
  63. package/lib/{index-74cdff5f.js → index-5d6aca6c.js} +28012 -27503
  64. package/lib/{python-ed84da20.js → python-dae8be67.js} +1 -1
  65. package/lib/style.css +1 -1
  66. package/package.json +1 -1
  67. package/packages/FactorWarning/index.vue +28 -13
  68. package/packages/VarietySearch/components/CommonIndicator/index.vue +270 -112
  69. package/packages/VarietySearch/config.js +12 -1
  70. package/packages/VarietySearch/index.vue +8 -0
  71. package/src/pages/FactorWarning/index.vue +850 -8
  72. package/es/castArray-f54f6f75.cjs +0 -1
  73. package/es/el-table-column-773986c7.cjs +0 -20
  74. package/es/el-tag-a6a4d4ef.cjs +0 -1
@@ -1,28 +1,324 @@
1
- import { b as re, u as we, k as oe, _ as ie, w as Ce, d as ke, o as Te, c as Ge, i as be, s as ae, v as He, j as Ae, x as Je } from "./base-1bc9f12c.js";
2
- import { c as Ke, d as Se, b as ue, a as ce, e as Ze } from "./el-radio-group-caebab9d.js";
3
- import { b as We, c as Xe, E as et, a as tt } from "./el-table-column-b8e2141b.js";
4
- import { defineComponent as Z, computed as L, openBlock as s, createElementBlock as h, normalizeClass as Q, unref as V, renderSlot as de, createVNode as c, Transition as Me, withCtx as u, withDirectives as Ee, createElementVNode as b, toDisplayString as R, vShow as Ue, createBlock as C, resolveDynamicComponent as De, shallowReactive as nt, ref as G, onMounted as lt, watch as ne, normalizeStyle as ot, createCommentVNode as T, Fragment as U, withModifiers as at, isVNode as qe, render as xe, mergeModels as pe, useModel as me, createTextVNode as w, renderList as B, pushScopeId as ve, popScopeId as fe, createSlots as he } from "vue";
1
+ import { b as ge, d as me, N as mt, i as ce, e as vt, u as Se, _ as ye, s as Oe, t as ft, w as Ee, k as xe, o as He, c as gt, v as Ie, x as yt, j as bt, y as _t } from "./base-6e64c2e6.js";
2
+ import { b as kt, c as Ke, e as Me, a as Ue, d as ht } from "./el-radio-group-a31fb7c0.js";
3
+ import { b as Vt, c as Ot, E as xt, a as It } from "./el-table-column-675f51e6.js";
4
+ import { defineComponent as oe, useAttrs as $t, ref as N, computed as P, onMounted as Ge, openBlock as i, createBlock as U, unref as y, withCtx as r, createElementVNode as v, normalizeClass as W, normalizeStyle as $e, createVNode as a, createElementBlock as O, Fragment as L, renderList as K, renderSlot as ne, createTextVNode as C, toDisplayString as G, mergeProps as wt, withKeys as ie, withModifiers as we, createSlots as Ce, Transition as Qe, withDirectives as We, vShow as Je, resolveDynamicComponent as Ze, shallowReactive as Ct, watch as ve, createCommentVNode as M, isVNode as Xe, render as ze, mergeModels as De, useModel as Fe, pushScopeId as qe, popScopeId as Ne } from "vue";
5
5
  import "./el-tooltip-4ed993c7.js";
6
- import { E as st } from "./el-tag-9493bdff.js";
7
- import { a as rt, u as it } from "./el-scrollbar-e17fad47.js";
8
- import { E as Fe } from "./el-overlay-53eb27a5.js";
9
- import { E as Le } from "./el-input-29806e42.js";
10
- import { b as Ne, E as ze, a as Pe } from "./el-select-ac302f3c.js";
6
+ import { a as Tt, E as et, b as St } from "./el-tag-f878b1f1.js";
7
+ import { d as Et, o as Mt, a as Ut, u as Dt } from "./el-scrollbar-a00aca2f.js";
8
+ import { E as tt } from "./el-overlay-d7af7dda.js";
9
+ import { u as Ft, E as Le } from "./el-input-f4898cfa.js";
10
+ import { b as lt, E as nt, a as ot } from "./el-select-b9cf452e.js";
11
11
  import "./el-icon-4ed993c7.js";
12
- import { E as Re } from "./el-button-93e0ac7c.js";
13
- import { c as ut, h as ct, i as dt, T as Oe, E as se, j as pt, p as Ie, k as mt, l as vt } from "./use-form-item-aeec8499.js";
14
- import { _ as ge } from "./_plugin-vue_export-helper-dad06003.js";
15
- import { m as ft } from "./typescript-7ae59c4c.js";
16
- import { u as gt } from "./use-global-config-b07c467a.js";
17
- import { E as yt } from "./focus-trap-1b2aef75.js";
18
- import { m as Ve } from "./config-provider-c8d3957d.js";
19
- import "./castArray-f42865a2.js";
12
+ import { E as at } from "./el-button-4c7ae9df.js";
13
+ import { h as qt, E as fe, l as Nt, c as Lt, j as Pt, i as Rt, T as Ae, k as zt, p as Be, n as At, o as Bt } from "./use-form-item-bfc7dddf.js";
14
+ import { _ as Pe } from "./_plugin-vue_export-helper-dad06003.js";
15
+ import { m as jt } from "./typescript-7ae59c4c.js";
16
+ import { u as Yt } from "./use-global-config-89daeba3.js";
17
+ import { U as pe, I as Te, C as st, E as Ht } from "./focus-trap-2677bd39.js";
18
+ import { m as je } from "./config-provider-f4278c8e.js";
19
+ import "./castArray-8ec29ca6.js";
20
20
  import "./_commonjsHelpers-10dfc225.js";
21
- import "./raf-6d7e80f4.js";
22
- import "./vnode-aa872900.js";
23
- import "./scroll-a928a93e.js";
21
+ import "./raf-32ed81f4.js";
22
+ import "./vnode-aa3448ec.js";
23
+ import "./scroll-9b9249e9.js";
24
24
  import "./index-657047bb.js";
25
- const _t = re({
25
+ const Kt = () => Math.floor(Math.random() * 1e4), Gt = ge({
26
+ valueKey: {
27
+ type: String,
28
+ default: "value"
29
+ },
30
+ modelValue: {
31
+ type: [String, Number],
32
+ default: ""
33
+ },
34
+ debounce: {
35
+ type: Number,
36
+ default: 300
37
+ },
38
+ placement: {
39
+ type: me(String),
40
+ values: [
41
+ "top",
42
+ "top-start",
43
+ "top-end",
44
+ "bottom",
45
+ "bottom-start",
46
+ "bottom-end"
47
+ ],
48
+ default: "bottom-start"
49
+ },
50
+ fetchSuggestions: {
51
+ type: me([Function, Array]),
52
+ default: mt
53
+ },
54
+ popperClass: {
55
+ type: String,
56
+ default: ""
57
+ },
58
+ triggerOnFocus: {
59
+ type: Boolean,
60
+ default: !0
61
+ },
62
+ selectWhenUnmatched: {
63
+ type: Boolean,
64
+ default: !1
65
+ },
66
+ hideLoading: {
67
+ type: Boolean,
68
+ default: !1
69
+ },
70
+ label: {
71
+ type: String
72
+ },
73
+ teleported: Tt.teleported,
74
+ highlightFirstItem: {
75
+ type: Boolean,
76
+ default: !1
77
+ },
78
+ fitInputWidth: {
79
+ type: Boolean,
80
+ default: !1
81
+ },
82
+ clearable: {
83
+ type: Boolean,
84
+ default: !1
85
+ },
86
+ disabled: {
87
+ type: Boolean,
88
+ default: !1
89
+ },
90
+ name: String
91
+ }), Qt = {
92
+ [pe]: (s) => ce(s),
93
+ [Te]: (s) => ce(s),
94
+ [st]: (s) => ce(s),
95
+ focus: (s) => s instanceof FocusEvent,
96
+ blur: (s) => s instanceof FocusEvent,
97
+ clear: () => !0,
98
+ select: (s) => vt(s)
99
+ }, Wt = ["aria-expanded", "aria-owns"], Jt = { key: 0 }, Zt = ["id", "aria-selected", "onClick"], ut = "ElAutocomplete", Xt = oe({
100
+ name: ut,
101
+ inheritAttrs: !1
102
+ }), el = /* @__PURE__ */ oe({
103
+ ...Xt,
104
+ props: Gt,
105
+ emits: Qt,
106
+ setup(s, { expose: f, emit: u }) {
107
+ const l = s, b = Ft(), x = $t(), t = qt(), S = Se("autocomplete"), T = N(), z = N(), V = N(), d = N();
108
+ let E = !1, q = !1;
109
+ const w = N([]), $ = N(-1), p = N(""), e = N(!1), n = N(!1), c = N(!1), k = P(() => S.b(String(Kt()))), g = P(() => x.style), h = P(() => (w.value.length > 0 || c.value) && e.value), I = P(() => !l.hideLoading && c.value), m = P(() => T.value ? Array.from(T.value.$el.querySelectorAll("input")) : []), B = () => {
110
+ h.value && (p.value = `${T.value.$el.offsetWidth}px`);
111
+ }, j = () => {
112
+ $.value = -1;
113
+ }, o = Et(async (_) => {
114
+ if (n.value)
115
+ return;
116
+ const F = (J) => {
117
+ c.value = !1, !n.value && (Oe(J) ? (w.value = J, $.value = l.highlightFirstItem ? 0 : -1) : ft(ut, "autocomplete suggestions must be an array"));
118
+ };
119
+ if (c.value = !0, Oe(l.fetchSuggestions))
120
+ F(l.fetchSuggestions);
121
+ else {
122
+ const J = await l.fetchSuggestions(_, F);
123
+ Oe(J) && F(J);
124
+ }
125
+ }, l.debounce), le = (_) => {
126
+ const F = !!_;
127
+ if (u(Te, _), u(pe, _), n.value = !1, e.value || (e.value = F), !l.triggerOnFocus && !_) {
128
+ n.value = !0, w.value = [];
129
+ return;
130
+ }
131
+ o(_);
132
+ }, R = (_) => {
133
+ var F;
134
+ t.value || (((F = _.target) == null ? void 0 : F.tagName) !== "INPUT" || m.value.includes(document.activeElement)) && (e.value = !0);
135
+ }, A = (_) => {
136
+ u(st, _);
137
+ }, re = (_) => {
138
+ q ? q = !1 : (e.value = !0, u("focus", _), l.triggerOnFocus && !E && o(String(l.modelValue)));
139
+ }, be = (_) => {
140
+ setTimeout(() => {
141
+ var F;
142
+ if ((F = V.value) != null && F.isFocusInsideContent()) {
143
+ q = !0;
144
+ return;
145
+ }
146
+ e.value && X(), u("blur", _);
147
+ });
148
+ }, D = () => {
149
+ e.value = !1, u(pe, ""), u("clear");
150
+ }, Z = async () => {
151
+ h.value && $.value >= 0 && $.value < w.value.length ? _e(w.value[$.value]) : l.selectWhenUnmatched && (u("select", { value: l.modelValue }), w.value = [], $.value = -1);
152
+ }, H = (_) => {
153
+ h.value && (_.preventDefault(), _.stopPropagation(), X());
154
+ }, X = () => {
155
+ e.value = !1;
156
+ }, dt = () => {
157
+ var _;
158
+ (_ = T.value) == null || _.focus();
159
+ }, pt = () => {
160
+ var _;
161
+ (_ = T.value) == null || _.blur();
162
+ }, _e = async (_) => {
163
+ u(Te, _[l.valueKey]), u(pe, _[l.valueKey]), u("select", _), w.value = [], $.value = -1;
164
+ }, ke = (_) => {
165
+ if (!h.value || c.value)
166
+ return;
167
+ if (_ < 0) {
168
+ $.value = -1;
169
+ return;
170
+ }
171
+ _ >= w.value.length && (_ = w.value.length - 1);
172
+ const F = z.value.querySelector(`.${S.be("suggestion", "wrap")}`), se = F.querySelectorAll(`.${S.be("suggestion", "list")} li`)[_], he = F.scrollTop, { offsetTop: Re, scrollHeight: Ve } = se;
173
+ Re + Ve > he + F.clientHeight && (F.scrollTop += Ve), Re < he && (F.scrollTop -= Ve), $.value = _, T.value.ref.setAttribute("aria-activedescendant", `${k.value}-item-${$.value}`);
174
+ };
175
+ return Mt(d, () => {
176
+ h.value && X();
177
+ }), Ge(() => {
178
+ T.value.ref.setAttribute("role", "textbox"), T.value.ref.setAttribute("aria-autocomplete", "list"), T.value.ref.setAttribute("aria-controls", "id"), T.value.ref.setAttribute("aria-activedescendant", `${k.value}-item-${$.value}`), E = T.value.ref.hasAttribute("readonly");
179
+ }), f({
180
+ highlightedIndex: $,
181
+ activated: e,
182
+ loading: c,
183
+ inputRef: T,
184
+ popperRef: V,
185
+ suggestions: w,
186
+ handleSelect: _e,
187
+ handleKeyEnter: Z,
188
+ focus: dt,
189
+ blur: pt,
190
+ close: X,
191
+ highlight: ke
192
+ }), (_, F) => (i(), U(y(et), {
193
+ ref_key: "popperRef",
194
+ ref: V,
195
+ visible: y(h),
196
+ placement: _.placement,
197
+ "fallback-placements": ["bottom-start", "top-start"],
198
+ "popper-class": [y(S).e("popper"), _.popperClass],
199
+ teleported: _.teleported,
200
+ "gpu-acceleration": !1,
201
+ pure: "",
202
+ "manual-mode": "",
203
+ effect: "light",
204
+ trigger: "click",
205
+ transition: `${y(S).namespace.value}-zoom-in-top`,
206
+ persistent: "",
207
+ role: "listbox",
208
+ onBeforeShow: B,
209
+ onHide: j
210
+ }, {
211
+ content: r(() => [
212
+ v("div", {
213
+ ref_key: "regionRef",
214
+ ref: z,
215
+ class: W([y(S).b("suggestion"), y(S).is("loading", y(I))]),
216
+ style: $e({
217
+ [_.fitInputWidth ? "width" : "minWidth"]: p.value,
218
+ outline: "none"
219
+ }),
220
+ role: "region"
221
+ }, [
222
+ a(y(St), {
223
+ id: y(k),
224
+ tag: "ul",
225
+ "wrap-class": y(S).be("suggestion", "wrap"),
226
+ "view-class": y(S).be("suggestion", "list"),
227
+ role: "listbox"
228
+ }, {
229
+ default: r(() => [
230
+ y(I) ? (i(), O("li", Jt, [
231
+ a(y(fe), {
232
+ class: W(y(S).is("loading"))
233
+ }, {
234
+ default: r(() => [
235
+ a(y(Nt))
236
+ ]),
237
+ _: 1
238
+ }, 8, ["class"])
239
+ ])) : (i(!0), O(L, { key: 1 }, K(w.value, (J, se) => (i(), O("li", {
240
+ id: `${y(k)}-item-${se}`,
241
+ key: se,
242
+ class: W({ highlighted: $.value === se }),
243
+ role: "option",
244
+ "aria-selected": $.value === se,
245
+ onClick: (he) => _e(J)
246
+ }, [
247
+ ne(_.$slots, "default", { item: J }, () => [
248
+ C(G(J[_.valueKey]), 1)
249
+ ])
250
+ ], 10, Zt))), 128))
251
+ ]),
252
+ _: 3
253
+ }, 8, ["id", "wrap-class", "view-class"])
254
+ ], 6)
255
+ ]),
256
+ default: r(() => [
257
+ v("div", {
258
+ ref_key: "listboxRef",
259
+ ref: d,
260
+ class: W([y(S).b(), _.$attrs.class]),
261
+ style: $e(y(g)),
262
+ role: "combobox",
263
+ "aria-haspopup": "listbox",
264
+ "aria-expanded": y(h),
265
+ "aria-owns": y(k)
266
+ }, [
267
+ a(y(Le), wt({
268
+ ref_key: "inputRef",
269
+ ref: T
270
+ }, y(b), {
271
+ clearable: _.clearable,
272
+ disabled: y(t),
273
+ name: _.name,
274
+ "model-value": _.modelValue,
275
+ onInput: le,
276
+ onChange: A,
277
+ onFocus: re,
278
+ onBlur: be,
279
+ onClear: D,
280
+ onKeydown: [
281
+ F[0] || (F[0] = ie(we((J) => ke($.value - 1), ["prevent"]), ["up"])),
282
+ F[1] || (F[1] = ie(we((J) => ke($.value + 1), ["prevent"]), ["down"])),
283
+ ie(Z, ["enter"]),
284
+ ie(X, ["tab"]),
285
+ ie(H, ["esc"])
286
+ ],
287
+ onMousedown: R
288
+ }), Ce({ _: 2 }, [
289
+ _.$slots.prepend ? {
290
+ name: "prepend",
291
+ fn: r(() => [
292
+ ne(_.$slots, "prepend")
293
+ ])
294
+ } : void 0,
295
+ _.$slots.append ? {
296
+ name: "append",
297
+ fn: r(() => [
298
+ ne(_.$slots, "append")
299
+ ])
300
+ } : void 0,
301
+ _.$slots.prefix ? {
302
+ name: "prefix",
303
+ fn: r(() => [
304
+ ne(_.$slots, "prefix")
305
+ ])
306
+ } : void 0,
307
+ _.$slots.suffix ? {
308
+ name: "suffix",
309
+ fn: r(() => [
310
+ ne(_.$slots, "suffix")
311
+ ])
312
+ } : void 0
313
+ ]), 1040, ["clearable", "disabled", "name", "model-value", "onKeydown"])
314
+ ], 14, Wt)
315
+ ]),
316
+ _: 3
317
+ }, 8, ["visible", "placement", "popper-class", "teleported", "transition"]));
318
+ }
319
+ });
320
+ var tl = /* @__PURE__ */ ye(el, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);
321
+ const ll = Ee(tl), nl = ge({
26
322
  value: {
27
323
  type: [String, Number],
28
324
  default: ""
@@ -38,34 +334,34 @@ const _t = re({
38
334
  values: ["primary", "success", "warning", "info", "danger"],
39
335
  default: "danger"
40
336
  }
41
- }), kt = ["textContent"], bt = Z({
337
+ }), ol = ["textContent"], al = oe({
42
338
  name: "ElBadge"
43
- }), xt = /* @__PURE__ */ Z({
44
- ...bt,
45
- props: _t,
46
- setup(a, { expose: d }) {
47
- const o = a, l = we("badge"), p = L(() => o.isDot ? "" : oe(o.value) && oe(o.max) ? o.max < o.value ? `${o.max}+` : `${o.value}` : `${o.value}`);
48
- return d({
49
- content: p
50
- }), (_, e) => (s(), h("div", {
51
- class: Q(V(l).b())
339
+ }), sl = /* @__PURE__ */ oe({
340
+ ...al,
341
+ props: nl,
342
+ setup(s, { expose: f }) {
343
+ const u = s, l = Se("badge"), b = P(() => u.isDot ? "" : xe(u.value) && xe(u.max) ? u.max < u.value ? `${u.max}+` : `${u.value}` : `${u.value}`);
344
+ return f({
345
+ content: b
346
+ }), (x, t) => (i(), O("div", {
347
+ class: W(y(l).b())
52
348
  }, [
53
- de(_.$slots, "default"),
54
- c(Me, {
55
- name: `${V(l).namespace.value}-zoom-in-center`,
349
+ ne(x.$slots, "default"),
350
+ a(Qe, {
351
+ name: `${y(l).namespace.value}-zoom-in-center`,
56
352
  persisted: ""
57
353
  }, {
58
- default: u(() => [
59
- Ee(b("sup", {
60
- class: Q([
61
- V(l).e("content"),
62
- V(l).em("content", _.type),
63
- V(l).is("fixed", !!_.$slots.default),
64
- V(l).is("dot", _.isDot)
354
+ default: r(() => [
355
+ We(v("sup", {
356
+ class: W([
357
+ y(l).e("content"),
358
+ y(l).em("content", x.type),
359
+ y(l).is("fixed", !!x.$slots.default),
360
+ y(l).is("dot", x.isDot)
65
361
  ]),
66
- textContent: R(V(p))
67
- }, null, 10, kt), [
68
- [Ue, !_.hidden && (V(p) || _.isDot)]
362
+ textContent: G(y(b))
363
+ }, null, 10, ol), [
364
+ [Je, !x.hidden && (y(b) || x.isDot)]
69
365
  ])
70
366
  ]),
71
367
  _: 1
@@ -73,8 +369,8 @@ const _t = re({
73
369
  ], 2));
74
370
  }
75
371
  });
76
- var ht = /* @__PURE__ */ ie(xt, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);
77
- const Ot = Ce(ht), It = re({
372
+ var ul = /* @__PURE__ */ ye(sl, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);
373
+ const rl = Ee(ul), il = ge({
78
374
  type: {
79
375
  type: String,
80
376
  values: ["primary", "success", "info", "warning", "danger", ""],
@@ -82,7 +378,7 @@ const Ot = Ce(ht), It = re({
82
378
  },
83
379
  size: {
84
380
  type: String,
85
- values: ut,
381
+ values: Lt,
86
382
  default: ""
87
383
  },
88
384
  truncated: {
@@ -92,30 +388,30 @@ const Ot = Ce(ht), It = re({
92
388
  type: String,
93
389
  default: "span"
94
390
  }
95
- }), Vt = Z({
391
+ }), cl = oe({
96
392
  name: "ElText"
97
- }), $t = /* @__PURE__ */ Z({
98
- ...Vt,
99
- props: It,
100
- setup(a) {
101
- const d = a, o = ct(), l = we("text"), p = L(() => [
393
+ }), dl = /* @__PURE__ */ oe({
394
+ ...cl,
395
+ props: il,
396
+ setup(s) {
397
+ const f = s, u = Pt(), l = Se("text"), b = P(() => [
102
398
  l.b(),
103
- l.m(d.type),
104
- l.m(o.value),
105
- l.is("truncated", d.truncated)
399
+ l.m(f.type),
400
+ l.m(u.value),
401
+ l.is("truncated", f.truncated)
106
402
  ]);
107
- return (_, e) => (s(), C(De(_.tag), {
108
- class: Q(V(p))
403
+ return (x, t) => (i(), U(Ze(x.tag), {
404
+ class: W(y(b))
109
405
  }, {
110
- default: u(() => [
111
- de(_.$slots, "default")
406
+ default: r(() => [
407
+ ne(x.$slots, "default")
112
408
  ]),
113
409
  _: 3
114
410
  }, 8, ["class"]));
115
411
  }
116
412
  });
117
- var wt = /* @__PURE__ */ ie($t, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);
118
- const Ct = Ce(wt), Be = ["success", "info", "warning", "error"], P = ft({
413
+ var pl = /* @__PURE__ */ ye(dl, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);
414
+ const ml = Ee(pl), rt = ["success", "info", "warning", "error"], Q = jt({
119
415
  customClass: "",
120
416
  center: !1,
121
417
  dangerouslyUseHTMLString: !1,
@@ -130,265 +426,266 @@ const Ct = Ce(wt), Be = ["success", "info", "warning", "error"], P = ft({
130
426
  zIndex: 0,
131
427
  grouping: !1,
132
428
  repeatNum: 1,
133
- appendTo: Te ? document.body : void 0
134
- }), Tt = re({
429
+ appendTo: He ? document.body : void 0
430
+ }), vl = ge({
135
431
  customClass: {
136
432
  type: String,
137
- default: P.customClass
433
+ default: Q.customClass
138
434
  },
139
435
  center: {
140
436
  type: Boolean,
141
- default: P.center
437
+ default: Q.center
142
438
  },
143
439
  dangerouslyUseHTMLString: {
144
440
  type: Boolean,
145
- default: P.dangerouslyUseHTMLString
441
+ default: Q.dangerouslyUseHTMLString
146
442
  },
147
443
  duration: {
148
444
  type: Number,
149
- default: P.duration
445
+ default: Q.duration
150
446
  },
151
447
  icon: {
152
- type: dt,
153
- default: P.icon
448
+ type: Rt,
449
+ default: Q.icon
154
450
  },
155
451
  id: {
156
452
  type: String,
157
- default: P.id
453
+ default: Q.id
158
454
  },
159
455
  message: {
160
- type: ke([
456
+ type: me([
161
457
  String,
162
458
  Object,
163
459
  Function
164
460
  ]),
165
- default: P.message
461
+ default: Q.message
166
462
  },
167
463
  onClose: {
168
- type: ke(Function),
464
+ type: me(Function),
169
465
  required: !1
170
466
  },
171
467
  showClose: {
172
468
  type: Boolean,
173
- default: P.showClose
469
+ default: Q.showClose
174
470
  },
175
471
  type: {
176
472
  type: String,
177
- values: Be,
178
- default: P.type
473
+ values: rt,
474
+ default: Q.type
179
475
  },
180
476
  offset: {
181
477
  type: Number,
182
- default: P.offset
478
+ default: Q.offset
183
479
  },
184
480
  zIndex: {
185
481
  type: Number,
186
- default: P.zIndex
482
+ default: Q.zIndex
187
483
  },
188
484
  grouping: {
189
485
  type: Boolean,
190
- default: P.grouping
486
+ default: Q.grouping
191
487
  },
192
488
  repeatNum: {
193
489
  type: Number,
194
- default: P.repeatNum
490
+ default: Q.repeatNum
195
491
  }
196
- }), St = {
492
+ }), fl = {
197
493
  destroy: () => !0
198
- }, Y = nt([]), Mt = (a) => {
199
- const d = Y.findIndex((p) => p.id === a), o = Y[d];
494
+ }, te = Ct([]), gl = (s) => {
495
+ const f = te.findIndex((b) => b.id === s), u = te[f];
200
496
  let l;
201
- return d > 0 && (l = Y[d - 1]), { current: o, prev: l };
202
- }, Et = (a) => {
203
- const { prev: d } = Mt(a);
204
- return d ? d.vm.exposed.bottom.value : 0;
205
- }, Ut = (a, d) => Y.findIndex((l) => l.id === a) > 0 ? 20 : d, Dt = ["id"], qt = ["innerHTML"], Ft = Z({
497
+ return f > 0 && (l = te[f - 1]), { current: u, prev: l };
498
+ }, yl = (s) => {
499
+ const { prev: f } = gl(s);
500
+ return f ? f.vm.exposed.bottom.value : 0;
501
+ }, bl = (s, f) => te.findIndex((l) => l.id === s) > 0 ? 20 : f, _l = ["id"], kl = ["innerHTML"], hl = oe({
206
502
  name: "ElMessage"
207
- }), Lt = /* @__PURE__ */ Z({
208
- ...Ft,
209
- props: Tt,
210
- emits: St,
211
- setup(a, { expose: d }) {
212
- const o = a, { Close: l } = pt, { ns: p, zIndex: _ } = gt("message"), { currentZIndex: e, nextZIndex: D } = _, N = G(), E = G(!1), g = G(0);
213
- let r;
214
- const S = L(() => o.type ? o.type === "error" ? "danger" : o.type : "info"), m = L(() => {
215
- const t = o.type;
216
- return { [p.bm("icon", t)]: t && Oe[t] };
217
- }), n = L(() => o.icon || Oe[o.type] || ""), O = L(() => Et(o.id)), x = L(() => Ut(o.id, o.offset) + O.value), v = L(() => g.value + x.value), f = L(() => ({
218
- top: `${x.value}px`,
219
- zIndex: e.value
503
+ }), Vl = /* @__PURE__ */ oe({
504
+ ...hl,
505
+ props: vl,
506
+ emits: fl,
507
+ setup(s, { expose: f }) {
508
+ const u = s, { Close: l } = zt, { ns: b, zIndex: x } = Yt("message"), { currentZIndex: t, nextZIndex: S } = x, T = N(), z = N(!1), V = N(0);
509
+ let d;
510
+ const E = P(() => u.type ? u.type === "error" ? "danger" : u.type : "info"), q = P(() => {
511
+ const I = u.type;
512
+ return { [b.bm("icon", I)]: I && Ae[I] };
513
+ }), w = P(() => u.icon || Ae[u.type] || ""), $ = P(() => yl(u.id)), p = P(() => bl(u.id, u.offset) + $.value), e = P(() => V.value + p.value), n = P(() => ({
514
+ top: `${p.value}px`,
515
+ zIndex: t.value
220
516
  }));
221
- function $() {
222
- o.duration !== 0 && ({ stop: r } = Ge(() => {
223
- y();
224
- }, o.duration));
517
+ function c() {
518
+ u.duration !== 0 && ({ stop: d } = gt(() => {
519
+ g();
520
+ }, u.duration));
225
521
  }
226
- function I() {
227
- r == null || r();
522
+ function k() {
523
+ d == null || d();
228
524
  }
229
- function y() {
230
- E.value = !1;
525
+ function g() {
526
+ z.value = !1;
231
527
  }
232
- function k({ code: t }) {
233
- t === yt.esc && y();
528
+ function h({ code: I }) {
529
+ I === Ht.esc && g();
234
530
  }
235
- return lt(() => {
236
- $(), D(), E.value = !0;
237
- }), ne(() => o.repeatNum, () => {
238
- I(), $();
239
- }), rt(document, "keydown", k), it(N, () => {
240
- g.value = N.value.getBoundingClientRect().height;
241
- }), d({
242
- visible: E,
243
- bottom: v,
244
- close: y
245
- }), (t, i) => (s(), C(Me, {
246
- name: V(p).b("fade"),
247
- onBeforeLeave: t.onClose,
248
- onAfterLeave: i[0] || (i[0] = (j) => t.$emit("destroy")),
531
+ return Ge(() => {
532
+ c(), S(), z.value = !0;
533
+ }), ve(() => u.repeatNum, () => {
534
+ k(), c();
535
+ }), Ut(document, "keydown", h), Dt(T, () => {
536
+ V.value = T.value.getBoundingClientRect().height;
537
+ }), f({
538
+ visible: z,
539
+ bottom: e,
540
+ close: g
541
+ }), (I, m) => (i(), U(Qe, {
542
+ name: y(b).b("fade"),
543
+ onBeforeLeave: I.onClose,
544
+ onAfterLeave: m[0] || (m[0] = (B) => I.$emit("destroy")),
249
545
  persisted: ""
250
546
  }, {
251
- default: u(() => [
252
- Ee(b("div", {
253
- id: t.id,
547
+ default: r(() => [
548
+ We(v("div", {
549
+ id: I.id,
254
550
  ref_key: "messageRef",
255
- ref: N,
256
- class: Q([
257
- V(p).b(),
258
- { [V(p).m(t.type)]: t.type && !t.icon },
259
- V(p).is("center", t.center),
260
- V(p).is("closable", t.showClose),
261
- t.customClass
551
+ ref: T,
552
+ class: W([
553
+ y(b).b(),
554
+ { [y(b).m(I.type)]: I.type && !I.icon },
555
+ y(b).is("center", I.center),
556
+ y(b).is("closable", I.showClose),
557
+ I.customClass
262
558
  ]),
263
- style: ot(V(f)),
559
+ style: $e(y(n)),
264
560
  role: "alert",
265
- onMouseenter: I,
266
- onMouseleave: $
561
+ onMouseenter: k,
562
+ onMouseleave: c
267
563
  }, [
268
- t.repeatNum > 1 ? (s(), C(V(Ot), {
564
+ I.repeatNum > 1 ? (i(), U(y(rl), {
269
565
  key: 0,
270
- value: t.repeatNum,
271
- type: V(S),
272
- class: Q(V(p).e("badge"))
273
- }, null, 8, ["value", "type", "class"])) : T("v-if", !0),
274
- V(n) ? (s(), C(V(se), {
566
+ value: I.repeatNum,
567
+ type: y(E),
568
+ class: W(y(b).e("badge"))
569
+ }, null, 8, ["value", "type", "class"])) : M("v-if", !0),
570
+ y(w) ? (i(), U(y(fe), {
275
571
  key: 1,
276
- class: Q([V(p).e("icon"), V(m)])
572
+ class: W([y(b).e("icon"), y(q)])
277
573
  }, {
278
- default: u(() => [
279
- (s(), C(De(V(n))))
574
+ default: r(() => [
575
+ (i(), U(Ze(y(w))))
280
576
  ]),
281
577
  _: 1
282
- }, 8, ["class"])) : T("v-if", !0),
283
- de(t.$slots, "default", {}, () => [
284
- t.dangerouslyUseHTMLString ? (s(), h(U, { key: 1 }, [
285
- T(" Caution here, message could've been compromised, never use user's input as message "),
286
- b("p", {
287
- class: Q(V(p).e("content")),
288
- innerHTML: t.message
289
- }, null, 10, qt)
290
- ], 2112)) : (s(), h("p", {
578
+ }, 8, ["class"])) : M("v-if", !0),
579
+ ne(I.$slots, "default", {}, () => [
580
+ I.dangerouslyUseHTMLString ? (i(), O(L, { key: 1 }, [
581
+ M(" Caution here, message could've been compromised, never use user's input as message "),
582
+ v("p", {
583
+ class: W(y(b).e("content")),
584
+ innerHTML: I.message
585
+ }, null, 10, kl)
586
+ ], 2112)) : (i(), O("p", {
291
587
  key: 0,
292
- class: Q(V(p).e("content"))
293
- }, R(t.message), 3))
588
+ class: W(y(b).e("content"))
589
+ }, G(I.message), 3))
294
590
  ]),
295
- t.showClose ? (s(), C(V(se), {
591
+ I.showClose ? (i(), U(y(fe), {
296
592
  key: 2,
297
- class: Q(V(p).e("closeBtn")),
298
- onClick: at(y, ["stop"])
593
+ class: W(y(b).e("closeBtn")),
594
+ onClick: we(g, ["stop"])
299
595
  }, {
300
- default: u(() => [
301
- c(V(l))
596
+ default: r(() => [
597
+ a(y(l))
302
598
  ]),
303
599
  _: 1
304
- }, 8, ["class", "onClick"])) : T("v-if", !0)
305
- ], 46, Dt), [
306
- [Ue, E.value]
600
+ }, 8, ["class", "onClick"])) : M("v-if", !0)
601
+ ], 46, _l), [
602
+ [Je, z.value]
307
603
  ])
308
604
  ]),
309
605
  _: 3
310
606
  }, 8, ["name", "onBeforeLeave"]));
311
607
  }
312
608
  });
313
- var Nt = /* @__PURE__ */ ie(Lt, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);
314
- let zt = 1;
315
- const je = (a) => {
316
- const d = !a || be(a) || qe(a) || ae(a) ? { message: a } : a, o = {
317
- ...P,
318
- ...d
609
+ var Ol = /* @__PURE__ */ ye(Vl, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);
610
+ let xl = 1;
611
+ const it = (s) => {
612
+ const f = !s || ce(s) || Xe(s) || Ie(s) ? { message: s } : s, u = {
613
+ ...Q,
614
+ ...f
319
615
  };
320
- if (!o.appendTo)
321
- o.appendTo = document.body;
322
- else if (be(o.appendTo)) {
323
- let l = document.querySelector(o.appendTo);
324
- He(l) || (Ae("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), l = document.body), o.appendTo = l;
616
+ if (!u.appendTo)
617
+ u.appendTo = document.body;
618
+ else if (ce(u.appendTo)) {
619
+ let l = document.querySelector(u.appendTo);
620
+ yt(l) || (bt("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), l = document.body), u.appendTo = l;
325
621
  }
326
- return o;
327
- }, Pt = (a) => {
328
- const d = Y.indexOf(a);
329
- if (d === -1)
622
+ return u;
623
+ }, Il = (s) => {
624
+ const f = te.indexOf(s);
625
+ if (f === -1)
330
626
  return;
331
- Y.splice(d, 1);
332
- const { handler: o } = a;
333
- o.close();
334
- }, Rt = ({ appendTo: a, ...d }, o) => {
335
- const l = `message_${zt++}`, p = d.onClose, _ = document.createElement("div"), e = {
336
- ...d,
627
+ te.splice(f, 1);
628
+ const { handler: u } = s;
629
+ u.close();
630
+ }, $l = ({ appendTo: s, ...f }, u) => {
631
+ const l = `message_${xl++}`, b = f.onClose, x = document.createElement("div"), t = {
632
+ ...f,
337
633
  id: l,
338
634
  onClose: () => {
339
- p == null || p(), Pt(g);
635
+ b == null || b(), Il(V);
340
636
  },
341
637
  onDestroy: () => {
342
- xe(null, _);
638
+ ze(null, x);
343
639
  }
344
- }, D = c(Nt, e, ae(e.message) || qe(e.message) ? {
345
- default: ae(e.message) ? e.message : () => e.message
640
+ }, S = a(Ol, t, Ie(t.message) || Xe(t.message) ? {
641
+ default: Ie(t.message) ? t.message : () => t.message
346
642
  } : null);
347
- D.appContext = o || K._context, xe(D, _), a.appendChild(_.firstElementChild);
348
- const N = D.component, g = {
643
+ S.appContext = u || ue._context, ze(S, x), s.appendChild(x.firstElementChild);
644
+ const T = S.component, V = {
349
645
  id: l,
350
- vnode: D,
351
- vm: N,
646
+ vnode: S,
647
+ vm: T,
352
648
  handler: {
353
649
  close: () => {
354
- N.exposed.visible.value = !1;
650
+ T.exposed.visible.value = !1;
355
651
  }
356
652
  },
357
- props: D.component.props
653
+ props: S.component.props
358
654
  };
359
- return g;
360
- }, K = (a = {}, d) => {
361
- if (!Te)
655
+ return V;
656
+ }, ue = (s = {}, f) => {
657
+ if (!He)
362
658
  return { close: () => {
363
659
  } };
364
- if (oe(Ve.max) && Y.length >= Ve.max)
660
+ if (xe(je.max) && te.length >= je.max)
365
661
  return { close: () => {
366
662
  } };
367
- const o = je(a);
368
- if (o.grouping && Y.length) {
369
- const p = Y.find(({ vnode: _ }) => {
370
- var e;
371
- return ((e = _.props) == null ? void 0 : e.message) === o.message;
663
+ const u = it(s);
664
+ if (u.grouping && te.length) {
665
+ const b = te.find(({ vnode: x }) => {
666
+ var t;
667
+ return ((t = x.props) == null ? void 0 : t.message) === u.message;
372
668
  });
373
- if (p)
374
- return p.props.repeatNum += 1, p.props.type = o.type, p.handler;
669
+ if (b)
670
+ return b.props.repeatNum += 1, b.props.type = u.type, b.handler;
375
671
  }
376
- const l = Rt(o, d);
377
- return Y.push(l), l.handler;
672
+ const l = $l(u, f);
673
+ return te.push(l), l.handler;
378
674
  };
379
- Be.forEach((a) => {
380
- K[a] = (d = {}, o) => {
381
- const l = je(d);
382
- return K({ ...l, type: a }, o);
675
+ rt.forEach((s) => {
676
+ ue[s] = (f = {}, u) => {
677
+ const l = it(f);
678
+ return ue({ ...l, type: s }, u);
383
679
  };
384
680
  });
385
- function Bt(a) {
386
- for (const d of Y)
387
- (!a || a === d.props.type) && d.handler.close();
681
+ function wl(s) {
682
+ for (const f of te)
683
+ (!s || s === f.props.type) && f.handler.close();
388
684
  }
389
- K.closeAll = Bt;
390
- K._context = null;
391
- const J = Je(K, "$message"), $e = {
685
+ ue.closeAll = wl;
686
+ ue._context = null;
687
+ const ee = _t(ue, "$message");
688
+ const Ye = {
392
689
  // 品种市场 [选项: 前端默认]
393
690
  varietyMarket: {
394
691
  show: !0,
@@ -731,6 +1028,16 @@ const J = Je(K, "$message"), $e = {
731
1028
  },
732
1029
  type: "custom"
733
1030
  },
1031
+ // 动量
1032
+ {
1033
+ key: "momentum",
1034
+ label: "动量",
1035
+ parent: {
1036
+ varietyMarketIds: [2, 3, 5, 7],
1037
+ commonOptionIds: [4, 6, 12, 14, 15]
1038
+ },
1039
+ type: "custom"
1040
+ },
734
1041
  // ----------期权-----------
735
1042
  // 过期天数
736
1043
  {
@@ -880,9 +1187,9 @@ const J = Je(K, "$message"), $e = {
880
1187
  ]
881
1188
  }
882
1189
  };
883
- const Ye = (a) => (ve("data-v-d76a610e"), a = a(), fe(), a), jt = { class: "factor-screen" }, Yt = { class: "custom-header" }, Qt = ["id"], Gt = { class: "form-row" }, Ht = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, At = /* @__PURE__ */ Ye(() => /* @__PURE__ */ b("span", null, "~", -1)), Jt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ b("span", null, "&&代表and,||代表or", -1)), Kt = { class: "dialog-footer" }, Zt = {
1190
+ const ct = (s) => (qe("data-v-d76a610e"), s = s(), Ne(), s), Cl = { class: "factor-screen" }, Tl = { class: "custom-header" }, Sl = ["id"], El = { class: "form-row" }, Ml = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, Ul = /* @__PURE__ */ ct(() => /* @__PURE__ */ v("span", null, "~", -1)), Dl = /* @__PURE__ */ ct(() => /* @__PURE__ */ v("span", null, "&&代表and,||代表or", -1)), Fl = { class: "dialog-footer" }, ql = {
884
1191
  __name: "index",
885
- props: /* @__PURE__ */ pe({
1192
+ props: /* @__PURE__ */ De({
886
1193
  config: {
887
1194
  type: Object,
888
1195
  default: {
@@ -911,12 +1218,12 @@ const Ye = (a) => (ve("data-v-d76a610e"), a = a(), fe(), a), jt = { class: "fact
911
1218
  dataModifiers: {}
912
1219
  }),
913
1220
  emits: ["update:data"],
914
- setup(a) {
915
- const d = me(a, "data"), o = a, l = G(!1), p = G(!1), _ = G(null), e = G({
1221
+ setup(s) {
1222
+ const f = Fe(s, "data"), u = s, l = N(!1), b = N(!1), x = N(null), t = N({
916
1223
  // 筛选因子列表
917
1224
  list: [
918
1225
  {
919
- cycle: o.config.cycleDefault ?? null,
1226
+ cycle: u.config.cycleDefault ?? null,
920
1227
  // 周期
921
1228
  factor: null,
922
1229
  // 因子
@@ -928,127 +1235,127 @@ const Ye = (a) => (ve("data-v-d76a610e"), a = a(), fe(), a), jt = { class: "fact
928
1235
  sqlEnable: 0,
929
1236
  // SQL语句
930
1237
  sqlValue: null
931
- }), D = () => {
932
- const { list: x, sqlEnable: v, sqlValue: f } = d.value;
933
- e.value = {
934
- list: JSON.parse(JSON.stringify(x)),
935
- sqlEnable: v,
936
- sqlValue: f
937
- }, e.value.list.length || N(), l.value = !0;
938
- }, N = () => {
939
- e.value.list.push({
940
- cycle: o.config.cycleDefault ?? null,
1238
+ }), S = () => {
1239
+ const { list: p, sqlEnable: e, sqlValue: n } = f.value;
1240
+ t.value = {
1241
+ list: JSON.parse(JSON.stringify(p)),
1242
+ sqlEnable: e,
1243
+ sqlValue: n
1244
+ }, t.value.list.length || T(), l.value = !0;
1245
+ }, T = () => {
1246
+ t.value.list.push({
1247
+ cycle: u.config.cycleDefault ?? null,
941
1248
  factor: null,
942
1249
  score: [null, null]
943
1250
  });
944
- }, E = () => {
945
- _.value.validate((x) => {
946
- x && (e.value.sqlValue = e.value.list.reduce((v, f, $) => {
947
- let I = `factor_id = ${f.factor} and `;
948
- return o.config.cycleShow && (I += `freq_id = ${f.cycle} and `), (f.score[0] || f.score[0] === 0) && (f.score[1] || f.score[1] === 0) ? I += `score >= ${f.score[0]} and score <= ${f.score[1]}` : f.score[0] || f.score[0] === 0 ? I += `score >= ${f.score[0]}` : (f.score[1] || f.score[1] === 0) && (I += `score <= ${f.score[1]}`), I = `(${I})`, $ !== 0 && (I = ` && ${I}`), v += I, v;
1251
+ }, z = () => {
1252
+ x.value.validate((p) => {
1253
+ p && (t.value.sqlValue = t.value.list.reduce((e, n, c) => {
1254
+ let k = `factor_id = ${n.factor} and `;
1255
+ return u.config.cycleShow && (k += `freq_id = ${n.cycle} and `), (n.score[0] || n.score[0] === 0) && (n.score[1] || n.score[1] === 0) ? k += `score >= ${n.score[0]} and score <= ${n.score[1]}` : n.score[0] || n.score[0] === 0 ? k += `score >= ${n.score[0]}` : (n.score[1] || n.score[1] === 0) && (k += `score <= ${n.score[1]}`), k = `(${k})`, c !== 0 && (k = ` && ${k}`), e += k, e;
949
1256
  }, ""));
950
1257
  });
951
- }, g = () => {
952
- d.value = {
1258
+ }, V = () => {
1259
+ f.value = {
953
1260
  list: [],
954
1261
  sqlEnable: 0,
955
1262
  sqlValue: null
956
1263
  };
957
- }, r = (x) => {
958
- d.value.list.splice(x, 1);
959
- }, S = (x) => {
960
- e.value.list.splice(x, 1);
961
- }, m = () => {
962
- _.value.validate((x) => {
963
- const { list: v, sqlEnable: f, sqlValue: $ } = e.value;
964
- if (x) {
965
- if (f && !$)
966
- return J.error("SQL语句不能为空");
967
- d.value = {
968
- list: JSON.parse(JSON.stringify(v)),
969
- sqlEnable: f,
970
- sqlValue: $
1264
+ }, d = (p) => {
1265
+ f.value.list.splice(p, 1);
1266
+ }, E = (p) => {
1267
+ t.value.list.splice(p, 1);
1268
+ }, q = () => {
1269
+ x.value.validate((p) => {
1270
+ const { list: e, sqlEnable: n, sqlValue: c } = t.value;
1271
+ if (p) {
1272
+ if (n && !c)
1273
+ return ee.error("SQL语句不能为空");
1274
+ f.value = {
1275
+ list: JSON.parse(JSON.stringify(e)),
1276
+ sqlEnable: n,
1277
+ sqlValue: c
971
1278
  }, l.value = !1;
972
1279
  }
973
1280
  });
974
- }, n = (x) => {
975
- const { cycle: v, factor: f, score: $ } = x;
976
- let I = "";
977
- return I += ` ${o.config.cycleOptions.find(({ value: y }) => y === v).label}`, I += ` ${o.config.factorOptions.find(({ value: y }) => y === f).label}`, I += ` ${$[0] || $[0] === 0 ? `${$[0]}分` : "∞"}`, I += " ~", I += ` ${$[1] || $[1] === 0 ? `${$[1]}分` : "∞"}`, I;
978
- }, O = (x, v, f) => {
979
- !v[0] && v[0] !== 0 && !v[1] && v[1] !== 0 ? f(new Error("至少填写一个分数")) : f();
1281
+ }, w = (p) => {
1282
+ const { cycle: e, factor: n, score: c } = p;
1283
+ let k = "";
1284
+ return k += ` ${u.config.cycleOptions.find(({ value: g }) => g === e).label}`, k += ` ${u.config.factorOptions.find(({ value: g }) => g === n).label}`, k += ` ${c[0] || c[0] === 0 ? `${c[0]}分` : "∞"}`, k += " ~", k += ` ${c[1] || c[1] === 0 ? `${c[1]}分` : "∞"}`, k;
1285
+ }, $ = (p, e, n) => {
1286
+ !e[0] && e[0] !== 0 && !e[1] && e[1] !== 0 ? n(new Error("至少填写一个分数")) : n();
980
1287
  };
981
- return (x, v) => {
982
- const f = Ct, $ = Ne, I = Re, y = se, k = st, t = ze, i = Pe, j = Ke, A = Se, W = ue, te = ce, q = Le, F = Ze, _e = Fe, le = We, Qe = Xe;
983
- return s(), h("div", jt, [
984
- d.value.sqlEnable && d.value.sqlValue ? (s(), C($, {
1288
+ return (p, e) => {
1289
+ const n = ml, c = lt, k = at, g = fe, h = et, I = nt, m = ot, B = kt, j = Ke, ae = Me, o = Ue, le = Le, R = ht, A = tt, re = Vt, be = Ot;
1290
+ return i(), O("div", Cl, [
1291
+ f.value.sqlEnable && f.value.sqlValue ? (i(), U(c, {
985
1292
  key: 0,
986
1293
  closable: "",
987
1294
  type: "info",
988
- title: d.value.sqlValue,
989
- onClose: g
1295
+ title: f.value.sqlValue,
1296
+ onClose: V
990
1297
  }, {
991
- default: u(() => [
992
- c(f, {
1298
+ default: r(() => [
1299
+ a(n, {
993
1300
  type: "info",
994
1301
  truncated: "",
995
1302
  style: { "max-width": "500px" }
996
1303
  }, {
997
- default: u(() => [
998
- w(R(d.value.sqlValue), 1)
1304
+ default: r(() => [
1305
+ C(G(f.value.sqlValue), 1)
999
1306
  ]),
1000
1307
  _: 1
1001
1308
  })
1002
1309
  ]),
1003
1310
  _: 1
1004
- }, 8, ["title"])) : T("", !0),
1005
- !d.value.sqlEnable && d.value.list.length ? (s(!0), h(U, { key: 1 }, B(d.value.list, (M, H) => (s(), C($, {
1311
+ }, 8, ["title"])) : M("", !0),
1312
+ !f.value.sqlEnable && f.value.list.length ? (i(!0), O(L, { key: 1 }, K(f.value.list, (D, Z) => (i(), U(c, {
1006
1313
  closable: "",
1007
1314
  type: "info",
1008
- onClose: (z) => r(H)
1315
+ onClose: (H) => d(Z)
1009
1316
  }, {
1010
- default: u(() => [
1011
- w(R(n(M)), 1)
1317
+ default: r(() => [
1318
+ C(G(w(D)), 1)
1012
1319
  ]),
1013
1320
  _: 2
1014
- }, 1032, ["onClose"]))), 256)) : T("", !0),
1015
- c(I, {
1321
+ }, 1032, ["onClose"]))), 256)) : M("", !0),
1322
+ a(k, {
1016
1323
  class: "screen-btn",
1017
1324
  type: "primary",
1018
1325
  plain: "",
1019
1326
  size: "small",
1020
- icon: V(Ie),
1021
- onClick: D
1327
+ icon: y(Be),
1328
+ onClick: S
1022
1329
  }, {
1023
- default: u(() => [
1024
- w("添加因子")
1330
+ default: r(() => [
1331
+ C("添加因子")
1025
1332
  ]),
1026
1333
  _: 1
1027
1334
  }, 8, ["icon"]),
1028
- c(_e, {
1335
+ a(A, {
1029
1336
  modelValue: l.value,
1030
- "onUpdate:modelValue": v[3] || (v[3] = (M) => l.value = M),
1337
+ "onUpdate:modelValue": e[3] || (e[3] = (D) => l.value = D),
1031
1338
  width: "500",
1032
1339
  "align-center": "",
1033
1340
  "destroy-on-close": ""
1034
1341
  }, {
1035
- header: u(({ titleId: M, titleClass: H }) => [
1036
- b("div", Yt, [
1037
- b("span", {
1038
- id: M,
1039
- class: Q(H)
1040
- }, " 因子筛选 ", 10, Qt),
1041
- c(k, {
1342
+ header: r(({ titleId: D, titleClass: Z }) => [
1343
+ v("div", Tl, [
1344
+ v("span", {
1345
+ id: D,
1346
+ class: W(Z)
1347
+ }, " 因子筛选 ", 10, Sl),
1348
+ a(h, {
1042
1349
  effect: "dark",
1043
1350
  content: "点击查看: 因子使用说明",
1044
1351
  placement: "right"
1045
1352
  }, {
1046
- default: u(() => [
1047
- c(y, {
1048
- onClick: v[0] || (v[0] = (z) => p.value = !0)
1353
+ default: r(() => [
1354
+ a(g, {
1355
+ onClick: e[0] || (e[0] = (H) => b.value = !0)
1049
1356
  }, {
1050
- default: u(() => [
1051
- c(V(mt))
1357
+ default: r(() => [
1358
+ a(y(At))
1052
1359
  ]),
1053
1360
  _: 1
1054
1361
  })
@@ -1057,43 +1364,43 @@ const Ye = (a) => (ve("data-v-d76a610e"), a = a(), fe(), a), jt = { class: "fact
1057
1364
  })
1058
1365
  ])
1059
1366
  ]),
1060
- footer: u(() => [
1061
- b("div", Kt, [
1062
- c(I, {
1367
+ footer: r(() => [
1368
+ v("div", Fl, [
1369
+ a(k, {
1063
1370
  type: "primary",
1064
- onClick: m
1371
+ onClick: q
1065
1372
  }, {
1066
- default: u(() => [
1067
- w("确定")
1373
+ default: r(() => [
1374
+ C("确定")
1068
1375
  ]),
1069
1376
  _: 1
1070
1377
  })
1071
1378
  ])
1072
1379
  ]),
1073
- default: u(() => [
1074
- c(F, {
1380
+ default: r(() => [
1381
+ a(R, {
1075
1382
  ref_key: "dialogFormRef",
1076
- ref: _,
1077
- model: e.value
1383
+ ref: x,
1384
+ model: t.value
1078
1385
  }, {
1079
- default: u(() => [
1080
- (s(!0), h(U, null, B(e.value.list, (M, H) => (s(), h("div", Gt, [
1081
- a.config.cycleShow ? (s(), C(j, {
1386
+ default: r(() => [
1387
+ (i(!0), O(L, null, K(t.value.list, (D, Z) => (i(), O("div", El, [
1388
+ s.config.cycleShow ? (i(), U(B, {
1082
1389
  key: 0,
1083
- prop: "list." + H + ".cycle",
1390
+ prop: "list." + Z + ".cycle",
1084
1391
  rules: { required: !0, message: "周期不能为空", trigger: "blur" },
1085
1392
  style: { width: "100px", "margin-right": "10px" }
1086
1393
  }, {
1087
- default: u(() => [
1088
- c(i, {
1089
- modelValue: M.cycle,
1090
- "onUpdate:modelValue": (z) => M.cycle = z,
1394
+ default: r(() => [
1395
+ a(m, {
1396
+ modelValue: D.cycle,
1397
+ "onUpdate:modelValue": (H) => D.cycle = H,
1091
1398
  placeholder: "选择周期",
1092
1399
  size: "small"
1093
1400
  }, {
1094
- default: u(() => [
1095
- (s(!0), h(U, null, B(a.config.cycleOptions, ({ label: z, value: X }) => (s(), C(t, {
1096
- label: z,
1401
+ default: r(() => [
1402
+ (i(!0), O(L, null, K(s.config.cycleOptions, ({ label: H, value: X }) => (i(), U(I, {
1403
+ label: H,
1097
1404
  value: X,
1098
1405
  key: X
1099
1406
  }, null, 8, ["label", "value"]))), 128))
@@ -1102,24 +1409,24 @@ const Ye = (a) => (ve("data-v-d76a610e"), a = a(), fe(), a), jt = { class: "fact
1102
1409
  }, 1032, ["modelValue", "onUpdate:modelValue"])
1103
1410
  ]),
1104
1411
  _: 2
1105
- }, 1032, ["prop"])) : T("", !0),
1106
- c(j, {
1107
- prop: "list." + H + ".factor",
1412
+ }, 1032, ["prop"])) : M("", !0),
1413
+ a(B, {
1414
+ prop: "list." + Z + ".factor",
1108
1415
  rules: { required: !0, message: "因子不能为空", trigger: "blur" },
1109
1416
  style: { width: "100px", "margin-right": "10px" }
1110
1417
  }, {
1111
- default: u(() => [
1112
- c(i, {
1113
- modelValue: M.factor,
1114
- "onUpdate:modelValue": (z) => M.factor = z,
1418
+ default: r(() => [
1419
+ a(m, {
1420
+ modelValue: D.factor,
1421
+ "onUpdate:modelValue": (H) => D.factor = H,
1115
1422
  placeholder: "选择因子",
1116
1423
  filterable: "",
1117
1424
  size: "small",
1118
1425
  "no-match-text": "无匹配数据"
1119
1426
  }, {
1120
- default: u(() => [
1121
- (s(!0), h(U, null, B(a.config.factorOptions, ({ label: z, value: X }) => (s(), C(t, {
1122
- label: z,
1427
+ default: r(() => [
1428
+ (i(!0), O(L, null, K(s.config.factorOptions, ({ label: H, value: X }) => (i(), U(I, {
1429
+ label: H,
1123
1430
  value: X,
1124
1431
  key: X
1125
1432
  }, null, 8, ["label", "value"]))), 128))
@@ -1129,23 +1436,23 @@ const Ye = (a) => (ve("data-v-d76a610e"), a = a(), fe(), a), jt = { class: "fact
1129
1436
  ]),
1130
1437
  _: 2
1131
1438
  }, 1032, ["prop"]),
1132
- c(j, {
1133
- prop: "list." + H + ".score",
1134
- rules: { validator: O, trigger: "blur" },
1439
+ a(B, {
1440
+ prop: "list." + Z + ".score",
1441
+ rules: { validator: $, trigger: "blur" },
1135
1442
  style: { width: "200px", "margin-right": "10px" }
1136
1443
  }, {
1137
- default: u(() => [
1138
- b("div", Ht, [
1139
- c(A, {
1140
- modelValue: M.score[0],
1141
- "onUpdate:modelValue": (z) => M.score[0] = z,
1444
+ default: r(() => [
1445
+ v("div", Ml, [
1446
+ a(j, {
1447
+ modelValue: D.score[0],
1448
+ "onUpdate:modelValue": (H) => D.score[0] = H,
1142
1449
  size: "small",
1143
1450
  "controls-position": "right"
1144
1451
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
1145
- At,
1146
- c(A, {
1147
- modelValue: M.score[1],
1148
- "onUpdate:modelValue": (z) => M.score[1] = z,
1452
+ Ul,
1453
+ a(j, {
1454
+ modelValue: D.score[1],
1455
+ "onUpdate:modelValue": (H) => D.score[1] = H,
1149
1456
  size: "small",
1150
1457
  "controls-position": "right"
1151
1458
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
@@ -1153,108 +1460,108 @@ const Ye = (a) => (ve("data-v-d76a610e"), a = a(), fe(), a), jt = { class: "fact
1153
1460
  ]),
1154
1461
  _: 2
1155
1462
  }, 1032, ["prop", "rules"]),
1156
- c(y, {
1157
- onClick: (z) => S(H)
1463
+ a(g, {
1464
+ onClick: (H) => E(Z)
1158
1465
  }, {
1159
- default: u(() => [
1160
- c(V(vt))
1466
+ default: r(() => [
1467
+ a(y(Bt))
1161
1468
  ]),
1162
1469
  _: 2
1163
1470
  }, 1032, ["onClick"])
1164
1471
  ]))), 256)),
1165
- c(I, {
1472
+ a(k, {
1166
1473
  type: "primary",
1167
1474
  plain: "",
1168
1475
  size: "small",
1169
- icon: V(Ie),
1170
- onClick: N,
1476
+ icon: y(Be),
1477
+ onClick: T,
1171
1478
  style: { "margin-bottom": "10px" }
1172
1479
  }, {
1173
- default: u(() => [
1174
- w("添加因子")
1480
+ default: r(() => [
1481
+ C("添加因子")
1175
1482
  ]),
1176
1483
  _: 1
1177
1484
  }, 8, ["icon"]),
1178
- a.config.sqlShow ? (s(), h(U, { key: 0 }, [
1179
- c(j, { label: "SQL功能: " }, {
1180
- default: u(() => [
1181
- c(te, {
1182
- modelValue: e.value.sqlEnable,
1183
- "onUpdate:modelValue": v[1] || (v[1] = (M) => e.value.sqlEnable = M)
1485
+ s.config.sqlShow ? (i(), O(L, { key: 0 }, [
1486
+ a(B, { label: "SQL功能: " }, {
1487
+ default: r(() => [
1488
+ a(o, {
1489
+ modelValue: t.value.sqlEnable,
1490
+ "onUpdate:modelValue": e[1] || (e[1] = (D) => t.value.sqlEnable = D)
1184
1491
  }, {
1185
- default: u(() => [
1186
- c(W, { label: 0 }, {
1187
- default: u(() => [
1188
- w("关闭")
1492
+ default: r(() => [
1493
+ a(ae, { label: 0 }, {
1494
+ default: r(() => [
1495
+ C("关闭")
1189
1496
  ]),
1190
1497
  _: 1
1191
1498
  }),
1192
- c(W, { label: 1 }, {
1193
- default: u(() => [
1194
- w("启用")
1499
+ a(ae, { label: 1 }, {
1500
+ default: r(() => [
1501
+ C("启用")
1195
1502
  ]),
1196
1503
  _: 1
1197
1504
  })
1198
1505
  ]),
1199
1506
  _: 1
1200
1507
  }, 8, ["modelValue"]),
1201
- e.value.sqlEnable ? (s(), C(I, {
1508
+ t.value.sqlEnable ? (i(), U(k, {
1202
1509
  key: 0,
1203
1510
  type: "primary",
1204
1511
  size: "small",
1205
- onClick: E,
1512
+ onClick: z,
1206
1513
  style: { "margin-left": "auto" }
1207
1514
  }, {
1208
- default: u(() => [
1209
- w("生成SQL")
1515
+ default: r(() => [
1516
+ C("生成SQL")
1210
1517
  ]),
1211
1518
  _: 1
1212
- })) : T("", !0)
1519
+ })) : M("", !0)
1213
1520
  ]),
1214
1521
  _: 1
1215
1522
  }),
1216
- e.value.sqlEnable ? (s(), h(U, { key: 0 }, [
1217
- c(q, {
1218
- modelValue: e.value.sqlValue,
1219
- "onUpdate:modelValue": v[2] || (v[2] = (M) => e.value.sqlValue = M),
1523
+ t.value.sqlEnable ? (i(), O(L, { key: 0 }, [
1524
+ a(le, {
1525
+ modelValue: t.value.sqlValue,
1526
+ "onUpdate:modelValue": e[2] || (e[2] = (D) => t.value.sqlValue = D),
1220
1527
  autosize: { minRows: 4 },
1221
1528
  type: "textarea",
1222
1529
  style: { "margin-bottom": "10px" }
1223
1530
  }, null, 8, ["modelValue"]),
1224
- Jt
1225
- ], 64)) : T("", !0)
1226
- ], 64)) : T("", !0)
1531
+ Dl
1532
+ ], 64)) : M("", !0)
1533
+ ], 64)) : M("", !0)
1227
1534
  ]),
1228
1535
  _: 1
1229
1536
  }, 8, ["model"])
1230
1537
  ]),
1231
1538
  _: 1
1232
1539
  }, 8, ["modelValue"]),
1233
- c(_e, {
1234
- modelValue: p.value,
1235
- "onUpdate:modelValue": v[4] || (v[4] = (M) => p.value = M),
1540
+ a(A, {
1541
+ modelValue: b.value,
1542
+ "onUpdate:modelValue": e[4] || (e[4] = (D) => b.value = D),
1236
1543
  title: "因子使用说明",
1237
1544
  width: "1000",
1238
1545
  "align-center": "",
1239
1546
  "destroy-on-close": ""
1240
1547
  }, {
1241
- default: u(() => [
1242
- c(Qe, {
1243
- data: a.config.factorDescriptions,
1548
+ default: r(() => [
1549
+ a(be, {
1550
+ data: s.config.factorDescriptions,
1244
1551
  border: "",
1245
1552
  height: "500"
1246
1553
  }, {
1247
- default: u(() => [
1248
- c(le, {
1554
+ default: r(() => [
1555
+ a(re, {
1249
1556
  prop: "factorName",
1250
1557
  label: "因子名称",
1251
1558
  width: "200"
1252
1559
  }),
1253
- c(le, {
1560
+ a(re, {
1254
1561
  prop: "factorDesc",
1255
1562
  label: "因子说明"
1256
1563
  }),
1257
- c(le, {
1564
+ a(re, {
1258
1565
  prop: "factorScoreDefine",
1259
1566
  label: "分值定义"
1260
1567
  })
@@ -1267,19 +1574,19 @@ const Ye = (a) => (ve("data-v-d76a610e"), a = a(), fe(), a), jt = { class: "fact
1267
1574
  ]);
1268
1575
  };
1269
1576
  }
1270
- }, Wt = /* @__PURE__ */ ge(Zt, [["__scopeId", "data-v-d76a610e"]]);
1271
- const ye = (a) => (ve("data-v-5e6e795d"), a = a(), fe(), a), Xt = {
1577
+ }, Nl = /* @__PURE__ */ Pe(ql, [["__scopeId", "data-v-d76a610e"]]);
1578
+ const Y = (s) => (qe("data-v-42f871ec"), s = s(), Ne(), s), Ll = {
1272
1579
  key: 0,
1273
1580
  class: "common-indicator"
1274
- }, en = { class: "indicator" }, tn = /* @__PURE__ */ ye(() => /* @__PURE__ */ b("div", { class: "title" }, [
1275
- /* @__PURE__ */ b("span", null, "常用指标: "),
1276
- /* @__PURE__ */ b("span", null, "不限")
1277
- ], -1)), nn = { class: "options" }, ln = ["onClick"], on = { class: "tags" }, an = ["onClick"], sn = {
1581
+ }, Pl = { class: "indicator" }, Rl = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("div", { class: "title" }, [
1582
+ /* @__PURE__ */ v("span", null, "常用指标: "),
1583
+ /* @__PURE__ */ v("span", null, "不限")
1584
+ ], -1)), zl = { class: "options" }, Al = ["onClick"], Bl = { class: "tags" }, jl = ["onClick"], Yl = {
1278
1585
  key: 0,
1279
1586
  class: "convenient-option-box"
1280
- }, rn = { class: "out-box" }, un = /* @__PURE__ */ ye(() => /* @__PURE__ */ b("span", null, "自定义: ", -1)), cn = { key: 0 }, dn = { key: 0 }, pn = { key: 0 }, mn = { key: 1 }, vn = { class: "tFeaturelncomes-option-box" }, fn = { class: "tFeaturelncomes-out-box" }, gn = /* @__PURE__ */ ye(() => /* @__PURE__ */ b("span", null, "自定义: ", -1)), yn = { key: 2 }, _n = { key: 3 }, kn = { class: "dialog-footer" }, bn = {
1587
+ }, Hl = { class: "out-box" }, Kl = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "自定义: ", -1)), Gl = { key: 0 }, Ql = { key: 0 }, Wl = { key: 0 }, Jl = { key: 1 }, Zl = { class: "tFeaturelncomes-option-box" }, Xl = { class: "tFeaturelncomes-out-box" }, en = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "自定义: ", -1)), tn = { key: 2 }, ln = { key: 3 }, nn = { key: 4 }, on = { class: "momentum-out-box" }, an = { key: 0 }, sn = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "现价相对于", -1)), un = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "日前收盘价的涨幅", -1)), rn = { key: 1 }, cn = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "现价相对于", -1)), dn = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "日均线的涨幅", -1)), pn = { key: 2 }, mn = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "现价相对于", -1)), vn = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "日前", -1)), fn = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "日均线的涨幅", -1)), gn = { key: 3 }, yn = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "近", -1)), bn = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "日均线相对于近", -1)), _n = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "日均线的涨幅", -1)), kn = { key: 4 }, hn = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "近", -1)), Vn = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "日均线相对于", -1)), On = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "日前", -1)), xn = /* @__PURE__ */ Y(() => /* @__PURE__ */ v("span", null, "日均线的涨幅", -1)), In = { class: "dialog-footer" }, $n = {
1281
1588
  __name: "index",
1282
- props: /* @__PURE__ */ pe({
1589
+ props: /* @__PURE__ */ De({
1283
1590
  config: { type: Object, default: () => {
1284
1591
  } },
1285
1592
  varietyMarket: { type: Number, default: () => null },
@@ -1291,49 +1598,151 @@ const ye = (a) => (ve("data-v-5e6e795d"), a = a(), fe(), a), Xt = {
1291
1598
  dataModifiers: {}
1292
1599
  }),
1293
1600
  emits: ["update:data"],
1294
- setup(a) {
1295
- const d = a, o = me(a, "data"), l = L(() => {
1296
- let m = [];
1297
- return d.varietyMarket === null && !d.commonOption.length ? m = d.config.options : (m = d.config.options, d.varietyMarket && (m = m.filter(({ parent: n }) => n.varietyMarketIds.includes(d.varietyMarket))), d.commonOption.length && (m = m.filter(({ parent: n }) => {
1298
- const { commonOptionIds: O } = n;
1299
- return [.../* @__PURE__ */ new Set([...O, ...d.commonOption])].length !== [...O, ...d.commonOption].length;
1300
- }))), m;
1301
- });
1302
- ne(
1303
- () => l.value,
1304
- () => {
1305
- o.value.length && (o.value = o.value.filter(({ key: m }) => l.value.find((n) => n.key === m)));
1306
- }
1307
- );
1308
- const p = G(!1), _ = G({}), e = G({}), D = (m) => {
1309
- _.value = m;
1310
- const n = {
1311
- label: m.label,
1312
- key: m.key,
1313
- type: m.type
1601
+ setup(s) {
1602
+ const f = Fe(s, "data"), u = s, l = N(!1), b = P(() => {
1603
+ let p = [];
1604
+ return u.varietyMarket === null && !u.commonOption.length ? p = u.config.options : (p = u.config.options, u.varietyMarket && (p = p.filter(({ parent: e }) => e.varietyMarketIds.includes(u.varietyMarket))), u.commonOption.length && (p = p.filter(({ parent: e }) => {
1605
+ const { commonOptionIds: n } = e;
1606
+ return [.../* @__PURE__ */ new Set([...n, ...u.commonOption])].length !== [...n, ...u.commonOption].length;
1607
+ }))), p;
1608
+ }), x = N({}), t = N({}), S = (p) => {
1609
+ x.value = p;
1610
+ const e = {
1611
+ key: p.key,
1612
+ type: p.type,
1613
+ label: p.label
1314
1614
  };
1315
- m.type === void 0 ? e.value = {
1316
- ...n,
1317
- range: [null, null],
1318
- unit: m.defaultUnit.length ? [...m.defaultUnit] : [null, null]
1319
- } : m.key === "st" ? e.value = { ...n, st: null } : m.key === "tFeaturelncomes" ? e.value = {
1320
- ...n,
1321
- rule: 1,
1322
- // 1超 2跌
1323
- withFewYears: null,
1324
- yearsCount: null,
1325
- netProfit: null
1326
- } : m.key === "priceLevels" ? e.value = { ...n, priceLevels: null } : m.key === "optionsCpType" && (e.value = {
1327
- ...n,
1328
- optionsCpType: null
1329
- // 1看涨 2看跌
1330
- }), p.value = !0;
1331
- }, N = (m) => {
1332
- e.value.range = [...m.range], e.value.unit = [...m.unit];
1333
- }, E = (m) => {
1334
- switch (m) {
1615
+ switch (p.key) {
1616
+ case "st": {
1617
+ t.value = { ...e, st: null };
1618
+ break;
1619
+ }
1620
+ case "tFeaturelncomes": {
1621
+ t.value = {
1622
+ ...e,
1623
+ rule: 1,
1624
+ // 1超 2跌
1625
+ withFewYears: null,
1626
+ yearsCount: null,
1627
+ netProfit: null
1628
+ };
1629
+ break;
1630
+ }
1631
+ case "priceLevels": {
1632
+ t.value = { ...e, priceLevels: null };
1633
+ break;
1634
+ }
1635
+ case "optionsCpType": {
1636
+ t.value = {
1637
+ ...e,
1638
+ optionsCpType: null
1639
+ // 1看涨 2看跌
1640
+ };
1641
+ break;
1642
+ }
1643
+ case "momentum": {
1644
+ t.value = {
1645
+ ...e,
1646
+ momentumType: 1,
1647
+ momentumValue: [20]
1648
+ };
1649
+ break;
1650
+ }
1651
+ default:
1652
+ t.value = {
1653
+ ...e,
1654
+ range: [null, null],
1655
+ unit: p.defaultUnit.length ? [...p.defaultUnit] : [null, null]
1656
+ };
1657
+ }
1658
+ l.value = !0;
1659
+ }, T = () => {
1660
+ switch (t.value.key) {
1661
+ case "st": {
1662
+ const { label: e, st: n } = t.value;
1663
+ if (n === null)
1664
+ return ee.warning("格式错误: 请至少选择一个值");
1665
+ t.value.tagText = `${e}: ${n ? "是" : "否"}`;
1666
+ break;
1667
+ }
1668
+ case "tFeaturelncomes": {
1669
+ const { label: e, rule: n, withFewYears: c, yearsCount: k, netProfit: g } = t.value;
1670
+ if (["", null].includes(c) || ["", null].includes(k) || ["", null].includes(g))
1671
+ return ee.warning("格式错误: 请填写完整");
1672
+ t.value.tagText = `${e}: ${c}年内${k}年以上盈利${n === 1 ? "超" : "跌"}过${g}亿`;
1673
+ break;
1674
+ }
1675
+ case "priceLevels": {
1676
+ const { label: e, priceLevels: n } = t.value;
1677
+ if (!n || n.length === 0)
1678
+ return ee.warning("格式错误: 请至少选择一个值");
1679
+ t.value.tagText = `${e}: 已选${n}分位`;
1680
+ break;
1681
+ }
1682
+ case "optionsCpType": {
1683
+ const { label: e, optionsCpType: n } = t.value;
1684
+ if (n === null)
1685
+ return ee.warning("格式错误: 请至少选择一个值");
1686
+ t.value.tagText = `${e}: ${n === 1 ? "看涨" : "看跌"}`;
1687
+ break;
1688
+ }
1689
+ case "momentum": {
1690
+ const { label: e, momentumType: n, momentumValue: c } = t.value, k = "格式错误, 请输入正整数或选择正确的时间项";
1691
+ let g = null;
1692
+ switch (n) {
1693
+ case 1: {
1694
+ if (!$(c[0]))
1695
+ return ee.warning(k);
1696
+ g = `现价相对于${c[0]}日前收盘价的涨幅`;
1697
+ break;
1698
+ }
1699
+ case 2: {
1700
+ if (!$(c[0]))
1701
+ return ee.warning(k);
1702
+ g = `现价相对于${c[0]}日均线的涨幅`;
1703
+ break;
1704
+ }
1705
+ case 3: {
1706
+ if (!$(c[0]) || !$(c[1]))
1707
+ return ee.warning(k);
1708
+ g = `现价相对于${c[0]}日前${c[1]}日均线的涨幅`;
1709
+ break;
1710
+ }
1711
+ case 4: {
1712
+ if (!$(c[0]) || !$(c[1]))
1713
+ return ee.warning(k);
1714
+ g = `近${c[0]}日均线相对于近${c[1]}日均线的涨幅`;
1715
+ break;
1716
+ }
1717
+ case 5: {
1718
+ if (!$(c[0]) || !$(c[1]) || !$(c[2]))
1719
+ return ee.warning(k);
1720
+ g = `近${c[0]}日均线相对于${c[1]}日前${c[2]}日均线的涨幅`;
1721
+ break;
1722
+ }
1723
+ }
1724
+ t.value.tagText = `${e}: ${g}`;
1725
+ break;
1726
+ }
1727
+ default: {
1728
+ const { label: e, range: n, unit: c } = t.value;
1729
+ if (["", null].includes(n[0]) && ["", null].includes(n[1]))
1730
+ return ee.warning("格式错误: 请至少填写一个值");
1731
+ !["", null].includes(n[0]) && !["", null].includes(n[1]) ? t.value.tagText = `${e}: ${n[0]}${c[0] ?? ""} ~ ${n[1]}${c[1] ?? ""}` : ["", null].includes(n[0]) ? t.value.tagText = `${e}: ≤${n[1]}${c[1] ?? ""}` : t.value.tagText = `${e}: ≥${n[0]}${c[0] ?? ""}`;
1732
+ }
1733
+ }
1734
+ const p = f.value.findIndex(({ key: e }) => e === t.value.key);
1735
+ p === -1 ? f.value.push(t.value) : f.value.splice(p, 1, t.value), l.value = !1;
1736
+ }, z = (p) => {
1737
+ x.value = b.value.find(({ key: e }) => e === p.key), t.value = JSON.parse(JSON.stringify(p)), l.value = !0;
1738
+ }, V = (p) => {
1739
+ f.value.splice(p, 1);
1740
+ }, d = (p) => {
1741
+ t.value.range = [...p.range], t.value.unit = [...p.unit];
1742
+ }, E = (p) => {
1743
+ switch (p) {
1335
1744
  case "≤0":
1336
- Object.assign(e.value, {
1745
+ Object.assign(t.value, {
1337
1746
  rule: 2,
1338
1747
  // 1超 2跌
1339
1748
  withFewYears: 1,
@@ -1342,7 +1751,7 @@ const ye = (a) => (ve("data-v-5e6e795d"), a = a(), fe(), a), Xt = {
1342
1751
  });
1343
1752
  break;
1344
1753
  case "≥0":
1345
- Object.assign(e.value, {
1754
+ Object.assign(t.value, {
1346
1755
  rule: 1,
1347
1756
  withFewYears: 1,
1348
1757
  yearsCount: 1,
@@ -1350,7 +1759,7 @@ const ye = (a) => (ve("data-v-5e6e795d"), a = a(), fe(), a), Xt = {
1350
1759
  });
1351
1760
  break;
1352
1761
  case "五年内有四年以上盈利超过5千万":
1353
- Object.assign(e.value, {
1762
+ Object.assign(t.value, {
1354
1763
  rule: 1,
1355
1764
  withFewYears: 5,
1356
1765
  yearsCount: 4,
@@ -1358,7 +1767,7 @@ const ye = (a) => (ve("data-v-5e6e795d"), a = a(), fe(), a), Xt = {
1358
1767
  });
1359
1768
  break;
1360
1769
  case "≥10亿":
1361
- Object.assign(e.value, {
1770
+ Object.assign(t.value, {
1362
1771
  rule: 1,
1363
1772
  withFewYears: 1,
1364
1773
  yearsCount: 1,
@@ -1366,7 +1775,7 @@ const ye = (a) => (ve("data-v-5e6e795d"), a = a(), fe(), a), Xt = {
1366
1775
  });
1367
1776
  break;
1368
1777
  case "≥20亿":
1369
- Object.assign(e.value, {
1778
+ Object.assign(t.value, {
1370
1779
  rule: 1,
1371
1780
  withFewYears: 1,
1372
1781
  yearsCount: 1,
@@ -1374,132 +1783,113 @@ const ye = (a) => (ve("data-v-5e6e795d"), a = a(), fe(), a), Xt = {
1374
1783
  });
1375
1784
  break;
1376
1785
  }
1377
- }, g = () => {
1378
- switch (e.value.key) {
1379
- case "st": {
1380
- const { label: n, st: O } = e.value;
1381
- if (O === null)
1382
- return J.warning("格式错误: 请至少选择一个值");
1383
- e.value.tagText = `${n}: ${O ? "是" : "否"}`;
1384
- break;
1385
- }
1386
- case "tFeaturelncomes": {
1387
- const { label: n, rule: O, withFewYears: x, yearsCount: v, netProfit: f } = e.value;
1388
- if (["", null].includes(x) || ["", null].includes(v) || ["", null].includes(f))
1389
- return J.warning("格式错误: 请填写完整");
1390
- e.value.tagText = `${n}: ${x}年内${v}年以上盈利${O === 1 ? "" : ""}过${f}亿`;
1391
- break;
1392
- }
1393
- case "priceLevels": {
1394
- const { label: n, priceLevels: O } = e.value;
1395
- if (!O || O.length === 0)
1396
- return J.warning("格式错误: 请至少选择一个值");
1397
- e.value.tagText = `${n}: 已选${O}分位`;
1398
- break;
1399
- }
1400
- case "optionsCpType": {
1401
- const { label: n, optionsCpType: O } = e.value;
1402
- if (O === null)
1403
- return J.warning("格式错误: 请至少选择一个值");
1404
- e.value.tagText = `${n}: ${O === 1 ? "看涨" : "看跌"}`;
1405
- break;
1406
- }
1407
- default: {
1408
- const { label: n, range: O, unit: x } = e.value;
1409
- if (["", null].includes(O[0]) && ["", null].includes(O[1]))
1410
- return J.warning("格式错误: 请至少填写一个值");
1411
- !["", null].includes(O[0]) && !["", null].includes(O[1]) ? e.value.tagText = `${n}: ${O[0]}${x[0] ?? ""} ~ ${O[1]}${x[1] ?? ""}` : ["", null].includes(O[0]) ? e.value.tagText = `${n}: ≤${O[1]}${x[1] ?? ""}` : e.value.tagText = `${n}: ≥${O[0]}${x[0] ?? ""}`;
1412
- }
1413
- }
1414
- const m = o.value.findIndex(({ key: n }) => n === e.value.key);
1415
- m === -1 ? o.value.push(e.value) : o.value.splice(m, 1, e.value), p.value = !1;
1416
- }, r = (m) => {
1417
- o.value.splice(m, 1);
1418
- }, S = (m) => {
1419
- _.value = l.value.find(({ key: n }) => n === m.key), e.value = JSON.parse(JSON.stringify(m)), p.value = !0;
1786
+ }, q = (p) => {
1787
+ const e = /* @__PURE__ */ new Map([
1788
+ [1, [20]],
1789
+ [2, [20]],
1790
+ [3, [20, 3]],
1791
+ [4, [3, 20]],
1792
+ [5, [3, 20, 3]]
1793
+ ]);
1794
+ t.value.momentumValue = e.get(p);
1795
+ }, w = (p, e) => {
1796
+ e([
1797
+ { label: "本周", value: "本周" },
1798
+ { label: "本月", value: "本月" },
1799
+ { label: "近一月", value: "近一月" },
1800
+ { label: "本年", value: "本年" }
1801
+ ]);
1802
+ }, $ = (p) => {
1803
+ const e = /^[1-9]\d*$/.test(p), n = /^(本周|本月|近一月|本年)$/i.test(p);
1804
+ return e || n;
1420
1805
  };
1421
- return (m, n) => {
1422
- const O = Ne, x = Re, v = ze, f = Pe, $ = Le, I = ue, y = ce, k = Se, t = Fe;
1423
- return a.config.show && l.value.length ? (s(), h("div", Xt, [
1424
- b("div", en, [
1425
- tn,
1426
- b("div", nn, [
1427
- (s(!0), h(U, null, B(l.value, (i) => (s(), h("span", {
1428
- key: i.key,
1429
- onClick: (j) => D(i)
1430
- }, R(i.label), 9, ln))), 128))
1806
+ return ve(
1807
+ () => b.value,
1808
+ () => {
1809
+ f.value.length && (f.value = f.value.filter(({ key: p }) => b.value.find((e) => e.key === p)));
1810
+ }
1811
+ ), (p, e) => {
1812
+ const n = lt, c = at, k = nt, g = ot, h = Le, I = Me, m = Ue, B = Ke, j = ll, ae = tt;
1813
+ return s.config.show && b.value.length ? (i(), O("div", Ll, [
1814
+ v("div", Pl, [
1815
+ Rl,
1816
+ v("div", zl, [
1817
+ (i(!0), O(L, null, K(b.value, (o) => (i(), O("span", {
1818
+ key: o.key,
1819
+ onClick: (le) => S(o)
1820
+ }, G(o.label), 9, Al))), 128))
1431
1821
  ])
1432
1822
  ]),
1433
- b("div", on, [
1434
- (s(!0), h(U, null, B(o.value, (i, j) => (s(), C(O, {
1823
+ v("div", Bl, [
1824
+ (i(!0), O(L, null, K(f.value, (o, le) => (i(), U(n, {
1435
1825
  closable: "",
1436
1826
  type: "info",
1437
- onClose: (A) => r(j)
1827
+ onClose: (R) => V(le)
1438
1828
  }, {
1439
- default: u(() => [
1440
- b("span", null, R(i.tagText), 1),
1441
- b("span", {
1829
+ default: r(() => [
1830
+ v("span", null, G(o.tagText), 1),
1831
+ v("span", {
1442
1832
  class: "edit",
1443
- onClick: (A) => S(i)
1444
- }, "编辑", 8, an)
1833
+ onClick: (R) => z(o)
1834
+ }, "编辑", 8, jl)
1445
1835
  ]),
1446
1836
  _: 2
1447
1837
  }, 1032, ["onClose"]))), 256))
1448
1838
  ]),
1449
- c(t, {
1450
- modelValue: p.value,
1451
- "onUpdate:modelValue": n[15] || (n[15] = (i) => p.value = i),
1452
- title: _.value.label,
1839
+ a(ae, {
1840
+ modelValue: l.value,
1841
+ "onUpdate:modelValue": e[25] || (e[25] = (o) => l.value = o),
1842
+ title: x.value.label,
1453
1843
  width: "600",
1454
1844
  "align-center": "",
1455
1845
  "destroy-on-close": ""
1456
1846
  }, {
1457
- footer: u(() => [
1458
- b("div", kn, [
1459
- c(x, {
1847
+ footer: r(() => [
1848
+ v("div", In, [
1849
+ a(c, {
1460
1850
  type: "primary",
1461
- onClick: g
1851
+ onClick: T
1462
1852
  }, {
1463
- default: u(() => [
1464
- w("确定")
1853
+ default: r(() => [
1854
+ C("确定")
1465
1855
  ]),
1466
1856
  _: 1
1467
1857
  })
1468
1858
  ])
1469
1859
  ]),
1470
- default: u(() => [
1471
- _.value.type === void 0 ? (s(), h(U, { key: 0 }, [
1472
- _.value.convenientOptions.length ? (s(), h("div", sn, [
1473
- (s(!0), h(U, null, B(_.value.convenientOptions, (i) => (s(), C(x, {
1474
- key: i.text,
1475
- onClick: (j) => N(i)
1860
+ default: r(() => [
1861
+ x.value.type === void 0 ? (i(), O(L, { key: 0 }, [
1862
+ x.value.convenientOptions.length ? (i(), O("div", Yl, [
1863
+ (i(!0), O(L, null, K(x.value.convenientOptions, (o) => (i(), U(c, {
1864
+ key: o.text,
1865
+ onClick: (le) => d(o)
1476
1866
  }, {
1477
- default: u(() => [
1478
- w(R(i.text), 1)
1867
+ default: r(() => [
1868
+ C(G(o.text), 1)
1479
1869
  ]),
1480
1870
  _: 2
1481
1871
  }, 1032, ["onClick"]))), 128))
1482
- ])) : T("", !0),
1483
- b("div", rn, [
1484
- un,
1485
- c($, {
1486
- modelValue: e.value.range[0],
1487
- "onUpdate:modelValue": n[1] || (n[1] = (i) => e.value.range[0] = i),
1872
+ ])) : M("", !0),
1873
+ v("div", Hl, [
1874
+ Kl,
1875
+ a(h, {
1876
+ modelValue: t.value.range[0],
1877
+ "onUpdate:modelValue": e[1] || (e[1] = (o) => t.value.range[0] = o),
1488
1878
  style: { flex: "1" }
1489
- }, he({ _: 2 }, [
1490
- _.value.unitOptions.length ? {
1879
+ }, Ce({ _: 2 }, [
1880
+ x.value.unitOptions.length ? {
1491
1881
  name: "append",
1492
- fn: u(() => [
1493
- _.value.unitOptions.length === 1 ? (s(), h("span", cn, R(e.value.unit[0]), 1)) : (s(), C(f, {
1882
+ fn: r(() => [
1883
+ x.value.unitOptions.length === 1 ? (i(), O("span", Gl, G(t.value.unit[0]), 1)) : (i(), U(g, {
1494
1884
  key: 1,
1495
- modelValue: e.value.unit[0],
1496
- "onUpdate:modelValue": n[0] || (n[0] = (i) => e.value.unit[0] = i),
1885
+ modelValue: t.value.unit[0],
1886
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => t.value.unit[0] = o),
1497
1887
  style: { width: "72px" }
1498
1888
  }, {
1499
- default: u(() => [
1500
- (s(!0), h(U, null, B(_.value.unitOptions, (i) => (s(), C(v, {
1501
- label: i,
1502
- value: i
1889
+ default: r(() => [
1890
+ (i(!0), O(L, null, K(x.value.unitOptions, (o) => (i(), U(k, {
1891
+ label: o,
1892
+ value: o
1503
1893
  }, null, 8, ["label", "value"]))), 256))
1504
1894
  ]),
1505
1895
  _: 1
@@ -1508,25 +1898,25 @@ const ye = (a) => (ve("data-v-5e6e795d"), a = a(), fe(), a), Xt = {
1508
1898
  key: "0"
1509
1899
  } : void 0
1510
1900
  ]), 1032, ["modelValue"]),
1511
- w(" ~ "),
1512
- c($, {
1513
- modelValue: e.value.range[1],
1514
- "onUpdate:modelValue": n[3] || (n[3] = (i) => e.value.range[1] = i),
1901
+ C(" ~ "),
1902
+ a(h, {
1903
+ modelValue: t.value.range[1],
1904
+ "onUpdate:modelValue": e[3] || (e[3] = (o) => t.value.range[1] = o),
1515
1905
  style: { flex: "1" }
1516
- }, he({ _: 2 }, [
1517
- _.value.unitOptions.length ? {
1906
+ }, Ce({ _: 2 }, [
1907
+ x.value.unitOptions.length ? {
1518
1908
  name: "append",
1519
- fn: u(() => [
1520
- _.value.unitOptions.length === 1 ? (s(), h("span", dn, R(e.value.unit[1]), 1)) : (s(), C(f, {
1909
+ fn: r(() => [
1910
+ x.value.unitOptions.length === 1 ? (i(), O("span", Ql, G(t.value.unit[1]), 1)) : (i(), U(g, {
1521
1911
  key: 1,
1522
- modelValue: e.value.unit[1],
1523
- "onUpdate:modelValue": n[2] || (n[2] = (i) => e.value.unit[1] = i),
1912
+ modelValue: t.value.unit[1],
1913
+ "onUpdate:modelValue": e[2] || (e[2] = (o) => t.value.unit[1] = o),
1524
1914
  style: { width: "72px" }
1525
1915
  }, {
1526
- default: u(() => [
1527
- (s(!0), h(U, null, B(_.value.unitOptions, (i) => (s(), C(v, {
1528
- label: i,
1529
- value: i
1916
+ default: r(() => [
1917
+ (i(!0), O(L, null, K(x.value.unitOptions, (o) => (i(), U(k, {
1918
+ label: o,
1919
+ value: o
1530
1920
  }, null, 8, ["label", "value"]))), 256))
1531
1921
  ]),
1532
1922
  _: 1
@@ -1536,169 +1926,281 @@ const ye = (a) => (ve("data-v-5e6e795d"), a = a(), fe(), a), Xt = {
1536
1926
  } : void 0
1537
1927
  ]), 1032, ["modelValue"])
1538
1928
  ])
1539
- ], 64)) : (s(), h(U, { key: 1 }, [
1540
- _.value.key === "st" ? (s(), h("div", pn, [
1541
- c(y, {
1542
- modelValue: e.value.st,
1543
- "onUpdate:modelValue": n[4] || (n[4] = (i) => e.value.st = i)
1929
+ ], 64)) : (i(), O(L, { key: 1 }, [
1930
+ x.value.key === "st" ? (i(), O("div", Wl, [
1931
+ a(m, {
1932
+ modelValue: t.value.st,
1933
+ "onUpdate:modelValue": e[4] || (e[4] = (o) => t.value.st = o)
1544
1934
  }, {
1545
- default: u(() => [
1546
- c(I, { label: 1 }, {
1547
- default: u(() => [
1548
- w("是")
1935
+ default: r(() => [
1936
+ a(I, { label: 1 }, {
1937
+ default: r(() => [
1938
+ C("是")
1549
1939
  ]),
1550
1940
  _: 1
1551
1941
  }),
1552
- c(I, { label: 0 }, {
1553
- default: u(() => [
1554
- w("否")
1942
+ a(I, { label: 0 }, {
1943
+ default: r(() => [
1944
+ C("否")
1555
1945
  ]),
1556
1946
  _: 1
1557
1947
  })
1558
1948
  ]),
1559
1949
  _: 1
1560
1950
  }, 8, ["modelValue"])
1561
- ])) : T("", !0),
1562
- _.value.key === "tFeaturelncomes" ? (s(), h("div", mn, [
1563
- b("div", vn, [
1564
- c(x, {
1565
- onClick: n[5] || (n[5] = (i) => E("≤0"))
1951
+ ])) : M("", !0),
1952
+ x.value.key === "tFeaturelncomes" ? (i(), O("div", Jl, [
1953
+ v("div", Zl, [
1954
+ a(c, {
1955
+ onClick: e[5] || (e[5] = (o) => E("≤0"))
1566
1956
  }, {
1567
- default: u(() => [
1568
- w("≤0")
1957
+ default: r(() => [
1958
+ C("≤0")
1569
1959
  ]),
1570
1960
  _: 1
1571
1961
  }),
1572
- c(x, {
1573
- onClick: n[6] || (n[6] = (i) => E("≥0"))
1962
+ a(c, {
1963
+ onClick: e[6] || (e[6] = (o) => E("≥0"))
1574
1964
  }, {
1575
- default: u(() => [
1576
- w("≥0")
1965
+ default: r(() => [
1966
+ C("≥0")
1577
1967
  ]),
1578
1968
  _: 1
1579
1969
  }),
1580
- c(x, {
1581
- onClick: n[7] || (n[7] = (i) => E("五年内有四年以上盈利超过5千万"))
1970
+ a(c, {
1971
+ onClick: e[7] || (e[7] = (o) => E("五年内有四年以上盈利超过5千万"))
1582
1972
  }, {
1583
- default: u(() => [
1584
- w("五年内有四年以上盈利超过5千万")
1973
+ default: r(() => [
1974
+ C("五年内有四年以上盈利超过5千万")
1585
1975
  ]),
1586
1976
  _: 1
1587
1977
  }),
1588
- c(x, {
1589
- onClick: n[8] || (n[8] = (i) => E("≥10亿"))
1978
+ a(c, {
1979
+ onClick: e[8] || (e[8] = (o) => E("≥10亿"))
1590
1980
  }, {
1591
- default: u(() => [
1592
- w("≥10亿")
1981
+ default: r(() => [
1982
+ C("≥10亿")
1593
1983
  ]),
1594
1984
  _: 1
1595
1985
  }),
1596
- c(x, {
1597
- onClick: n[9] || (n[9] = (i) => E("≥20亿"))
1986
+ a(c, {
1987
+ onClick: e[9] || (e[9] = (o) => E("≥20亿"))
1598
1988
  }, {
1599
- default: u(() => [
1600
- w("≥20亿")
1989
+ default: r(() => [
1990
+ C("≥20亿")
1601
1991
  ]),
1602
1992
  _: 1
1603
1993
  })
1604
1994
  ]),
1605
- b("div", fn, [
1606
- gn,
1607
- b("div", null, [
1608
- c(k, {
1609
- modelValue: e.value.withFewYears,
1610
- "onUpdate:modelValue": n[10] || (n[10] = (i) => e.value.withFewYears = i),
1995
+ v("div", Xl, [
1996
+ en,
1997
+ v("div", null, [
1998
+ a(B, {
1999
+ modelValue: t.value.withFewYears,
2000
+ "onUpdate:modelValue": e[10] || (e[10] = (o) => t.value.withFewYears = o),
1611
2001
  "controls-position": "right"
1612
2002
  }, null, 8, ["modelValue"]),
1613
- w(" 年内 "),
1614
- c(k, {
1615
- modelValue: e.value.yearsCount,
1616
- "onUpdate:modelValue": n[11] || (n[11] = (i) => e.value.yearsCount = i),
2003
+ C(" 年内 "),
2004
+ a(B, {
2005
+ modelValue: t.value.yearsCount,
2006
+ "onUpdate:modelValue": e[11] || (e[11] = (o) => t.value.yearsCount = o),
1617
2007
  "controls-position": "right"
1618
2008
  }, null, 8, ["modelValue"]),
1619
- w(" 年以上盈利" + R(e.value.rule === 1 ? "超" : "跌") + "过 ", 1),
1620
- c(k, {
1621
- modelValue: e.value.netProfit,
1622
- "onUpdate:modelValue": n[12] || (n[12] = (i) => e.value.netProfit = i),
2009
+ C(" 年以上盈利" + G(t.value.rule === 1 ? "超" : "跌") + "过 ", 1),
2010
+ a(B, {
2011
+ modelValue: t.value.netProfit,
2012
+ "onUpdate:modelValue": e[12] || (e[12] = (o) => t.value.netProfit = o),
1623
2013
  "controls-position": "right"
1624
2014
  }, null, 8, ["modelValue"]),
1625
- w(" 亿 ")
2015
+ C(" 亿 ")
1626
2016
  ])
1627
2017
  ])
1628
- ])) : T("", !0),
1629
- _.value.key === "priceLevels" ? (s(), h("div", yn, [
1630
- c(f, {
1631
- modelValue: e.value.priceLevels,
1632
- "onUpdate:modelValue": n[13] || (n[13] = (i) => e.value.priceLevels = i),
2018
+ ])) : M("", !0),
2019
+ x.value.key === "priceLevels" ? (i(), O("div", tn, [
2020
+ a(g, {
2021
+ modelValue: t.value.priceLevels,
2022
+ "onUpdate:modelValue": e[13] || (e[13] = (o) => t.value.priceLevels = o),
1633
2023
  multiple: "",
1634
2024
  clearable: "",
1635
2025
  placeholder: "请选择",
1636
2026
  style: { width: "420px" }
1637
2027
  }, {
1638
- default: u(() => [
1639
- (s(), h(U, null, B([1, 2, 3, 4, 5], (i) => c(v, {
1640
- key: i,
1641
- label: `${i}分位`,
1642
- value: i
2028
+ default: r(() => [
2029
+ (i(), O(L, null, K([1, 2, 3, 4, 5], (o) => a(k, {
2030
+ key: o,
2031
+ label: `${o}分位`,
2032
+ value: o
1643
2033
  }, null, 8, ["label", "value"])), 64))
1644
2034
  ]),
1645
2035
  _: 1
1646
2036
  }, 8, ["modelValue"])
1647
- ])) : T("", !0),
1648
- _.value.key === "optionsCpType" ? (s(), h("div", _n, [
1649
- c(y, {
1650
- modelValue: e.value.optionsCpType,
1651
- "onUpdate:modelValue": n[14] || (n[14] = (i) => e.value.optionsCpType = i)
2037
+ ])) : M("", !0),
2038
+ x.value.key === "optionsCpType" ? (i(), O("div", ln, [
2039
+ a(m, {
2040
+ modelValue: t.value.optionsCpType,
2041
+ "onUpdate:modelValue": e[14] || (e[14] = (o) => t.value.optionsCpType = o)
1652
2042
  }, {
1653
- default: u(() => [
1654
- c(I, { label: 1 }, {
1655
- default: u(() => [
1656
- w("看涨")
2043
+ default: r(() => [
2044
+ a(I, { label: 1 }, {
2045
+ default: r(() => [
2046
+ C("看涨")
1657
2047
  ]),
1658
2048
  _: 1
1659
2049
  }),
1660
- c(I, { label: 2 }, {
1661
- default: u(() => [
1662
- w("看跌")
2050
+ a(I, { label: 2 }, {
2051
+ default: r(() => [
2052
+ C("看跌")
1663
2053
  ]),
1664
2054
  _: 1
1665
2055
  })
1666
2056
  ]),
1667
2057
  _: 1
1668
2058
  }, 8, ["modelValue"])
1669
- ])) : T("", !0)
2059
+ ])) : M("", !0),
2060
+ x.value.key === "momentum" ? (i(), O("div", nn, [
2061
+ a(m, {
2062
+ modelValue: t.value.momentumType,
2063
+ "onUpdate:modelValue": e[15] || (e[15] = (o) => t.value.momentumType = o),
2064
+ onChange: q
2065
+ }, {
2066
+ default: r(() => [
2067
+ a(I, { label: 1 }, {
2068
+ default: r(() => [
2069
+ C("动量1")
2070
+ ]),
2071
+ _: 1
2072
+ }),
2073
+ a(I, { label: 2 }, {
2074
+ default: r(() => [
2075
+ C("动量2")
2076
+ ]),
2077
+ _: 1
2078
+ }),
2079
+ a(I, { label: 3 }, {
2080
+ default: r(() => [
2081
+ C("动量3")
2082
+ ]),
2083
+ _: 1
2084
+ }),
2085
+ a(I, { label: 4 }, {
2086
+ default: r(() => [
2087
+ C("动量4")
2088
+ ]),
2089
+ _: 1
2090
+ }),
2091
+ a(I, { label: 5 }, {
2092
+ default: r(() => [
2093
+ C("动量5")
2094
+ ]),
2095
+ _: 1
2096
+ })
2097
+ ]),
2098
+ _: 1
2099
+ }, 8, ["modelValue"]),
2100
+ v("div", on, [
2101
+ t.value.momentumType === 1 ? (i(), O("div", an, [
2102
+ sn,
2103
+ a(j, {
2104
+ modelValue: t.value.momentumValue[0],
2105
+ "onUpdate:modelValue": e[16] || (e[16] = (o) => t.value.momentumValue[0] = o),
2106
+ "fetch-suggestions": w
2107
+ }, null, 8, ["modelValue"]),
2108
+ un
2109
+ ])) : M("", !0),
2110
+ t.value.momentumType === 2 ? (i(), O("div", rn, [
2111
+ cn,
2112
+ a(j, {
2113
+ modelValue: t.value.momentumValue[0],
2114
+ "onUpdate:modelValue": e[17] || (e[17] = (o) => t.value.momentumValue[0] = o),
2115
+ "fetch-suggestions": w
2116
+ }, null, 8, ["modelValue"]),
2117
+ dn
2118
+ ])) : M("", !0),
2119
+ t.value.momentumType === 3 ? (i(), O("div", pn, [
2120
+ mn,
2121
+ a(j, {
2122
+ modelValue: t.value.momentumValue[0],
2123
+ "onUpdate:modelValue": e[18] || (e[18] = (o) => t.value.momentumValue[0] = o),
2124
+ "fetch-suggestions": w
2125
+ }, null, 8, ["modelValue"]),
2126
+ vn,
2127
+ a(j, {
2128
+ modelValue: t.value.momentumValue[1],
2129
+ "onUpdate:modelValue": e[19] || (e[19] = (o) => t.value.momentumValue[1] = o),
2130
+ "fetch-suggestions": w
2131
+ }, null, 8, ["modelValue"]),
2132
+ fn
2133
+ ])) : M("", !0),
2134
+ t.value.momentumType === 4 ? (i(), O("div", gn, [
2135
+ yn,
2136
+ a(j, {
2137
+ modelValue: t.value.momentumValue[0],
2138
+ "onUpdate:modelValue": e[20] || (e[20] = (o) => t.value.momentumValue[0] = o),
2139
+ "fetch-suggestions": w
2140
+ }, null, 8, ["modelValue"]),
2141
+ bn,
2142
+ a(j, {
2143
+ modelValue: t.value.momentumValue[1],
2144
+ "onUpdate:modelValue": e[21] || (e[21] = (o) => t.value.momentumValue[1] = o),
2145
+ "fetch-suggestions": w
2146
+ }, null, 8, ["modelValue"]),
2147
+ _n
2148
+ ])) : M("", !0),
2149
+ t.value.momentumType === 5 ? (i(), O("div", kn, [
2150
+ hn,
2151
+ a(j, {
2152
+ modelValue: t.value.momentumValue[0],
2153
+ "onUpdate:modelValue": e[22] || (e[22] = (o) => t.value.momentumValue[0] = o),
2154
+ "fetch-suggestions": w
2155
+ }, null, 8, ["modelValue"]),
2156
+ Vn,
2157
+ a(j, {
2158
+ modelValue: t.value.momentumValue[1],
2159
+ "onUpdate:modelValue": e[23] || (e[23] = (o) => t.value.momentumValue[1] = o),
2160
+ "fetch-suggestions": w
2161
+ }, null, 8, ["modelValue"]),
2162
+ On,
2163
+ a(j, {
2164
+ modelValue: t.value.momentumValue[2],
2165
+ "onUpdate:modelValue": e[24] || (e[24] = (o) => t.value.momentumValue[2] = o),
2166
+ "fetch-suggestions": w
2167
+ }, null, 8, ["modelValue"]),
2168
+ xn
2169
+ ])) : M("", !0)
2170
+ ])
2171
+ ])) : M("", !0)
1670
2172
  ], 64))
1671
2173
  ]),
1672
2174
  _: 1
1673
2175
  }, 8, ["modelValue", "title"])
1674
- ])) : T("", !0);
2176
+ ])) : M("", !0);
1675
2177
  };
1676
2178
  }
1677
- }, xn = /* @__PURE__ */ ge(bn, [["__scopeId", "data-v-5e6e795d"]]);
1678
- const ee = (a) => (ve("data-v-e077f597"), a = a(), fe(), a), hn = { class: "variety-search" }, On = {
2179
+ }, wn = /* @__PURE__ */ Pe($n, [["__scopeId", "data-v-42f871ec"]]);
2180
+ const de = (s) => (qe("data-v-eb00276a"), s = s(), Ne(), s), Cn = { class: "variety-search" }, Tn = {
1679
2181
  key: 0,
1680
2182
  class: "variety-search-row"
1681
- }, In = { class: "title" }, Vn = /* @__PURE__ */ ee(() => /* @__PURE__ */ b("span", null, "品种市场: ", -1)), $n = {
2183
+ }, Sn = { class: "title" }, En = /* @__PURE__ */ de(() => /* @__PURE__ */ v("span", null, "品种市场: ", -1)), Mn = {
1682
2184
  key: 1,
1683
2185
  class: "variety-search-row"
1684
- }, wn = { class: "title" }, Cn = /* @__PURE__ */ ee(() => /* @__PURE__ */ b("span", null, "常用选项: ", -1)), Tn = {
2186
+ }, Un = { class: "title" }, Dn = /* @__PURE__ */ de(() => /* @__PURE__ */ v("span", null, "常用选项: ", -1)), Fn = {
1685
2187
  key: 2,
1686
2188
  class: "variety-search-row"
1687
- }, Sn = { class: "title" }, Mn = /* @__PURE__ */ ee(() => /* @__PURE__ */ b("span", null, "上市板块: ", -1)), En = {
2189
+ }, qn = { class: "title" }, Nn = /* @__PURE__ */ de(() => /* @__PURE__ */ v("span", null, "上市板块: ", -1)), Ln = {
1688
2190
  key: 3,
1689
2191
  class: "variety-search-row"
1690
- }, Un = { class: "title" }, Dn = /* @__PURE__ */ ee(() => /* @__PURE__ */ b("span", null, "自定标签: ", -1)), qn = {
2192
+ }, Pn = { class: "title" }, Rn = /* @__PURE__ */ de(() => /* @__PURE__ */ v("span", null, "自定标签: ", -1)), zn = {
1691
2193
  key: 4,
1692
2194
  class: "variety-search-row"
1693
- }, Fn = { class: "title" }, Ln = /* @__PURE__ */ ee(() => /* @__PURE__ */ b("span", null, "因子筛选: ", -1)), Nn = {
2195
+ }, An = { class: "title" }, Bn = /* @__PURE__ */ de(() => /* @__PURE__ */ v("span", null, "因子筛选: ", -1)), jn = {
1694
2196
  __name: "index",
1695
- props: /* @__PURE__ */ pe({ config: { type: Object, default: {} } }, {
2197
+ props: /* @__PURE__ */ De({ config: { type: Object, default: {} } }, {
1696
2198
  searchData: {},
1697
2199
  searchDataModifiers: {}
1698
2200
  }),
1699
2201
  emits: ["update:searchData"],
1700
- setup(a, { expose: d }) {
1701
- const o = a, l = me(a, "searchData");
2202
+ setup(s, { expose: f }) {
2203
+ const u = s, l = Fe(s, "searchData");
1702
2204
  l.value = Object.assign(l.value, {
1703
2205
  // 品种市场
1704
2206
  varietyMarket: null,
@@ -1717,141 +2219,146 @@ const ee = (a) => (ve("data-v-e077f597"), a = a(), fe(), a), hn = { class: "vari
1717
2219
  // 常用指标
1718
2220
  commonIndicator: []
1719
2221
  });
1720
- const p = L(() => {
1721
- const g = {};
1722
- return Object.keys($e).forEach((r) => {
1723
- const S = $e[r], m = o.config[r] ?? {}, n = { ...S, ...m };
1724
- g[r] = n;
1725
- }), g;
1726
- }), _ = L(() => p.value.varietyMarket.options), e = L(() => {
1727
- const { varietyMarket: g } = l.value;
1728
- if (g) {
1729
- const r = _.value.find(({ value: S }) => S === g).memo;
1730
- return p.value.commonOption.options.filter(({ value: S }) => r.includes(S));
2222
+ const b = P(() => {
2223
+ const V = {};
2224
+ return Object.keys(Ye).forEach((d) => {
2225
+ const E = Ye[d], q = u.config[d] ?? {}, w = { ...E, ...q };
2226
+ V[d] = w;
2227
+ }), V;
2228
+ }), x = P(() => b.value.varietyMarket.options), t = P(() => {
2229
+ const { varietyMarket: V } = l.value;
2230
+ if (V) {
2231
+ const d = x.value.find(({ value: E }) => E === V).memo;
2232
+ return b.value.commonOption.options.filter(({ value: E }) => d.includes(E));
1731
2233
  } else
1732
- return p.value.commonOption.options;
1733
- }), D = L(() => {
1734
- const { varietyMarket: g } = l.value;
1735
- return g ? p.value.marketIds.options.filter((r) => r.varietyMarketIds.includes(g)) : p.value.marketIds.options;
1736
- }), N = L(() => p.value.customTag.options), E = (g) => {
1737
- ["commonOption", "marketIds", "customTag", "factorScreen", "commonIndicator"].includes(g) ? l.value[g] = [] : l.value[g] = null;
2234
+ return b.value.commonOption.options;
2235
+ }), S = P(() => {
2236
+ const { varietyMarket: V } = l.value;
2237
+ return V ? b.value.marketIds.options.filter((d) => d.varietyMarketIds.includes(V)) : b.value.marketIds.options;
2238
+ }), T = P(() => b.value.customTag.options), z = (V) => {
2239
+ ["commonOption", "marketIds", "customTag", "factorScreen", "commonIndicator"].includes(V) ? l.value[V] = [] : l.value[V] = null;
1738
2240
  };
1739
- return ne(
1740
- () => e.value,
1741
- (g) => {
1742
- var r;
1743
- (r = l.value.commonOption) != null && r.length && (l.value.commonOption = l.value.commonOption.filter((S) => g.find(({ value: m }) => m === S)));
2241
+ return ve(
2242
+ () => t.value,
2243
+ (V) => {
2244
+ var d;
2245
+ (d = l.value.commonOption) != null && d.length && (l.value.commonOption = l.value.commonOption.filter((E) => V.find(({ value: q }) => q === E)));
1744
2246
  }
1745
- ), ne(
1746
- () => D.value,
1747
- (g) => {
1748
- var r;
1749
- (r = l.value.marketIds) != null && r.length && (l.value.marketIds = l.value.marketIds.filter((S) => g.find(({ value: m }) => m === S)));
2247
+ ), ve(
2248
+ () => S.value,
2249
+ (V) => {
2250
+ var d;
2251
+ (d = l.value.marketIds) != null && d.length && (l.value.marketIds = l.value.marketIds.filter((E) => V.find(({ value: q }) => q === E)));
1750
2252
  }
1751
- ), d({
2253
+ ), f({
1752
2254
  // 生成接口传参结构的数据
1753
- formatData: (g) => {
1754
- var S, m, n, O, x;
2255
+ formatData: (V) => {
2256
+ var E, q, w, $, p;
1755
2257
  console.log("%c[st-varietySearch]: 正在生成接口传参结构的数据...", "color: tomato");
1756
- const r = {};
1757
- if (g.varietyMarket && (r.exchangeId = String(g.varietyMarket)), (S = g.commonOption) != null && S.length && (r.optionId = g.commonOption.join(",")), (m = g.marketIds) != null && m.length && (r.marketIds = g.marketIds), (n = g.customTag) != null && n.length && (r.tagIds = g.customTag), (O = p.value.factorScreen) != null && O.show) {
1758
- const { factorScreen: v } = g;
1759
- (x = v == null ? void 0 : v.list) != null && x.length && (r.tbFeatureFactorScores = v.list.map((f) => ({
1760
- freqId: f.cycle,
1761
- factorId: f.factor,
1762
- startScore: f.score[0],
1763
- endScore: f.score[1]
1764
- }))), r.enableSql = v.sqlEnable === 1 ? 2 : 1, v.sqlEnable && (r.sql = v.sqlValue);
2258
+ const d = {};
2259
+ if (V.varietyMarket && (d.exchangeId = String(V.varietyMarket)), (E = V.commonOption) != null && E.length && (d.optionId = V.commonOption.join(",")), (q = V.marketIds) != null && q.length && (d.marketIds = V.marketIds), (w = V.customTag) != null && w.length && (d.tagIds = V.customTag), ($ = b.value.factorScreen) != null && $.show) {
2260
+ const { factorScreen: e } = V;
2261
+ (p = e == null ? void 0 : e.list) != null && p.length && (d.tbFeatureFactorScores = e.list.map((n) => ({
2262
+ freqId: n.cycle,
2263
+ factorId: n.factor,
2264
+ startScore: n.score[0],
2265
+ endScore: n.score[1]
2266
+ }))), d.enableSql = e.sqlEnable === 1 ? 2 : 1, e.sqlEnable && (d.sql = e.sqlValue);
1765
2267
  }
1766
2268
  {
1767
- const v = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], f = g.commonIndicator.reduce((t, i) => {
1768
- const { key: j, type: A, range: W, unit: te } = i;
2269
+ const e = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], n = V.commonIndicator.reduce((m, B) => {
2270
+ const { key: j, type: ae, range: o, unit: le } = B;
1769
2271
  if (j === "dividendYield") {
1770
- let [q, F] = W;
1771
- ["", null].includes(q) || (q = q / 100), ["", null].includes(F) || (F = F / 100), t.push({
1772
- column: i.key,
1773
- start: q,
1774
- end: F
2272
+ let [R, A] = o;
2273
+ ["", null].includes(R) || (R = R / 100), ["", null].includes(A) || (A = A / 100), m.push({
2274
+ column: B.key,
2275
+ start: R,
2276
+ end: A
1775
2277
  });
1776
- } else if (A === void 0 && !v.includes(j)) {
1777
- let [q, F] = W;
1778
- if (!["", null].includes(q))
1779
- switch (te[0]) {
2278
+ } else if (ae === void 0 && !e.includes(j)) {
2279
+ let [R, A] = o;
2280
+ if (!["", null].includes(R))
2281
+ switch (le[0]) {
1780
2282
  case "亿":
1781
- q = q * 1e8;
2283
+ R = R * 1e8;
1782
2284
  break;
1783
2285
  case "千万":
1784
- q = q * 1e7;
2286
+ R = R * 1e7;
1785
2287
  break;
1786
2288
  default:
1787
- q = q;
2289
+ R = R;
1788
2290
  break;
1789
2291
  }
1790
- if (!["", null].includes(F))
1791
- switch (te[1]) {
2292
+ if (!["", null].includes(A))
2293
+ switch (le[1]) {
1792
2294
  case "亿":
1793
- F = F * 1e8;
2295
+ A = A * 1e8;
1794
2296
  break;
1795
2297
  case "千万":
1796
- F = F * 1e7;
2298
+ A = A * 1e7;
1797
2299
  break;
1798
2300
  default:
1799
- F = F;
2301
+ A = A;
1800
2302
  break;
1801
2303
  }
1802
- t.push({
1803
- column: i.key,
1804
- start: q,
1805
- end: F
2304
+ m.push({
2305
+ column: B.key,
2306
+ start: R,
2307
+ end: A
1806
2308
  });
1807
2309
  }
1808
- return t;
2310
+ return m;
1809
2311
  }, []);
1810
- f.length && (r.query = f);
1811
- const $ = g.commonIndicator.find(({ key: t }) => t === "st");
1812
- $ && (r.st = $.st);
1813
- const I = g.commonIndicator.find(({ key: t }) => t === "tFeaturelncomes");
1814
- I && (r.netProfitQueryDto = { ...I, netProfit: I.netProfit * 1e8 });
1815
- const y = g.commonIndicator.find(({ key: t }) => t === "priceLevels");
1816
- y && (r.priceLevels = y.priceLevels);
1817
- const k = {};
1818
- g.commonIndicator.forEach((t) => {
1819
- const { key: i } = t;
1820
- switch (i) {
2312
+ n.length && (d.query = n);
2313
+ const c = V.commonIndicator.find(({ key: m }) => m === "st");
2314
+ c && (d.st = c.st);
2315
+ const k = V.commonIndicator.find(({ key: m }) => m === "tFeaturelncomes");
2316
+ k && (d.netProfitQueryDto = { ...k, netProfit: k.netProfit * 1e8 });
2317
+ const g = V.commonIndicator.find(({ key: m }) => m === "priceLevels");
2318
+ g && (d.priceLevels = g.priceLevels);
2319
+ const h = {};
2320
+ V.commonIndicator.forEach((m) => {
2321
+ const { key: B } = m;
2322
+ switch (B) {
1821
2323
  case "expireDays":
1822
- ["", null].includes(t.range[0]) || (k.minExpireDays = t.range[0]), ["", null].includes(t.range[1]) || (k.maxExpireDays = t.range[1]);
2324
+ ["", null].includes(m.range[0]) || (h.minExpireDays = m.range[0]), ["", null].includes(m.range[1]) || (h.maxExpireDays = m.range[1]);
1823
2325
  break;
1824
2326
  case "virtualRealDegree":
1825
- ["", null].includes(t.range[0]) || (k.minVirtualRealDegree = t.range[0] / 100), ["", null].includes(t.range[1]) || (k.maxVirtualRealDegree = t.range[1] / 100);
2327
+ ["", null].includes(m.range[0]) || (h.minVirtualRealDegree = m.range[0] / 100), ["", null].includes(m.range[1]) || (h.maxVirtualRealDegree = m.range[1] / 100);
1826
2328
  break;
1827
2329
  case "yearProfitRate":
1828
- ["", null].includes(t.range[0]) || (k.minYearProfitRate = t.range[0] / 100), ["", null].includes(t.range[1]) || (k.maxYearProfitRate = t.range[1] / 100);
2330
+ ["", null].includes(m.range[0]) || (h.minYearProfitRate = m.range[0] / 100), ["", null].includes(m.range[1]) || (h.maxYearProfitRate = m.range[1] / 100);
1829
2331
  break;
1830
2332
  case "impliedVolatility":
1831
- ["", null].includes(t.range[0]) || (k.minImpliedVolatility = t.range[0] / 100), ["", null].includes(t.range[1]) || (k.maxImpliedVolatility = t.range[1] / 100);
2333
+ ["", null].includes(m.range[0]) || (h.minImpliedVolatility = m.range[0] / 100), ["", null].includes(m.range[1]) || (h.maxImpliedVolatility = m.range[1] / 100);
1832
2334
  break;
1833
2335
  case "levelMultiplier":
1834
- ["", null].includes(t.range[0]) || (k.minLevelMultiplier = t.range[0]), ["", null].includes(t.range[1]) || (k.maxLevelMultiplier = t.range[1]);
2336
+ ["", null].includes(m.range[0]) || (h.minLevelMultiplier = m.range[0]), ["", null].includes(m.range[1]) || (h.maxLevelMultiplier = m.range[1]);
1835
2337
  break;
1836
2338
  case "turnover":
1837
- ["", null].includes(t.range[0]) || (k.minTurnover = t.range[0] * 1e4), ["", null].includes(t.range[1]) || (k.maxTurnover = t.range[1] * 1e4);
2339
+ ["", null].includes(m.range[0]) || (h.minTurnover = m.range[0] * 1e4), ["", null].includes(m.range[1]) || (h.maxTurnover = m.range[1] * 1e4);
1838
2340
  break;
1839
2341
  case "volume":
1840
- ["", null].includes(t.range[0]) || (k.minVolume = t.range[0]), ["", null].includes(t.range[1]) || (k.maxVolume = t.range[1]);
2342
+ ["", null].includes(m.range[0]) || (h.minVolume = m.range[0]), ["", null].includes(m.range[1]) || (h.maxVolume = m.range[1]);
1841
2343
  break;
1842
2344
  case "openInterest":
1843
- ["", null].includes(t.range[0]) || (k.minOpenInterest = t.range[0]), ["", null].includes(t.range[1]) || (k.maxOpenInterest = t.range[1]);
2345
+ ["", null].includes(m.range[0]) || (h.minOpenInterest = m.range[0]), ["", null].includes(m.range[1]) || (h.maxOpenInterest = m.range[1]);
1844
2346
  break;
1845
2347
  case "optionsCpType":
1846
- k.optionsCpType = t.optionsCpType;
2348
+ h.optionsCpType = m.optionsCpType;
1847
2349
  break;
1848
2350
  case "optionGear":
1849
- ["", null].includes(t.range[0]) || (k.minOptionGear = t.range[0]), ["", null].includes(t.range[1]) || (k.maxOptionGear = t.range[1]);
2351
+ ["", null].includes(m.range[0]) || (h.minOptionGear = m.range[0]), ["", null].includes(m.range[1]) || (h.maxOptionGear = m.range[1]);
1850
2352
  break;
1851
2353
  }
1852
- }), Object.keys(k).length && (r.searchOptionDto = k);
2354
+ }), Object.keys(h).length && (d.searchOptionDto = h);
2355
+ const I = V.commonIndicator.find(({ key: m }) => m === "momentum");
2356
+ I && (d.momentumIndicator = {
2357
+ momentumType: I.momentumType,
2358
+ momentumValue: I.momentumValue.join(",")
2359
+ });
1853
2360
  }
1854
- return console.log("%c[st-varietySearch]: 接口传参数据生成完毕", "color: green", r), r;
2361
+ return console.log("%c[st-varietySearch]: 接口传参数据生成完毕", "color: green", d), d;
1855
2362
  },
1856
2363
  // 重置函数
1857
2364
  reset: () => {
@@ -1874,142 +2381,142 @@ const ee = (a) => (ve("data-v-e077f597"), a = a(), fe(), a), hn = { class: "vari
1874
2381
  commonIndicator: []
1875
2382
  };
1876
2383
  }
1877
- }), (g, r) => {
1878
- var x, v, f, $, I;
1879
- const S = ue, m = ce, n = et, O = tt;
1880
- return s(), h("div", hn, [
1881
- (x = p.value.varietyMarket) != null && x.show ? (s(), h("div", On, [
1882
- b("div", In, [
1883
- Vn,
1884
- b("span", {
1885
- onClick: r[0] || (r[0] = (y) => E("varietyMarket"))
2384
+ }), (V, d) => {
2385
+ var p, e, n, c, k;
2386
+ const E = Me, q = Ue, w = xt, $ = It;
2387
+ return i(), O("div", Cn, [
2388
+ (p = b.value.varietyMarket) != null && p.show ? (i(), O("div", Tn, [
2389
+ v("div", Sn, [
2390
+ En,
2391
+ v("span", {
2392
+ onClick: d[0] || (d[0] = (g) => z("varietyMarket"))
1886
2393
  }, "不限")
1887
2394
  ]),
1888
- c(m, {
2395
+ a(q, {
1889
2396
  modelValue: l.value.varietyMarket,
1890
- "onUpdate:modelValue": r[1] || (r[1] = (y) => l.value.varietyMarket = y),
2397
+ "onUpdate:modelValue": d[1] || (d[1] = (g) => l.value.varietyMarket = g),
1891
2398
  size: "small"
1892
2399
  }, {
1893
- default: u(() => [
1894
- (s(!0), h(U, null, B(_.value, ({ label: y, value: k }) => (s(), C(S, {
1895
- label: k,
1896
- key: k
2400
+ default: r(() => [
2401
+ (i(!0), O(L, null, K(x.value, ({ label: g, value: h }) => (i(), U(E, {
2402
+ label: h,
2403
+ key: h
1897
2404
  }, {
1898
- default: u(() => [
1899
- w(R(y), 1)
2405
+ default: r(() => [
2406
+ C(G(g), 1)
1900
2407
  ]),
1901
2408
  _: 2
1902
2409
  }, 1032, ["label"]))), 128))
1903
2410
  ]),
1904
2411
  _: 1
1905
2412
  }, 8, ["modelValue"])
1906
- ])) : T("", !0),
1907
- (v = p.value.commonOption) != null && v.show && e.value.length ? (s(), h("div", $n, [
1908
- b("div", wn, [
1909
- Cn,
1910
- b("span", {
1911
- onClick: r[2] || (r[2] = (y) => E("commonOption"))
2413
+ ])) : M("", !0),
2414
+ (e = b.value.commonOption) != null && e.show && t.value.length ? (i(), O("div", Mn, [
2415
+ v("div", Un, [
2416
+ Dn,
2417
+ v("span", {
2418
+ onClick: d[2] || (d[2] = (g) => z("commonOption"))
1912
2419
  }, "不限")
1913
2420
  ]),
1914
- c(O, {
2421
+ a($, {
1915
2422
  modelValue: l.value.commonOption,
1916
- "onUpdate:modelValue": r[3] || (r[3] = (y) => l.value.commonOption = y),
2423
+ "onUpdate:modelValue": d[3] || (d[3] = (g) => l.value.commonOption = g),
1917
2424
  size: "small"
1918
2425
  }, {
1919
- default: u(() => [
1920
- (s(!0), h(U, null, B(e.value, ({ label: y, value: k }) => (s(), C(n, {
1921
- label: k,
1922
- key: k
2426
+ default: r(() => [
2427
+ (i(!0), O(L, null, K(t.value, ({ label: g, value: h }) => (i(), U(w, {
2428
+ label: h,
2429
+ key: h
1923
2430
  }, {
1924
- default: u(() => [
1925
- w(R(y), 1)
2431
+ default: r(() => [
2432
+ C(G(g), 1)
1926
2433
  ]),
1927
2434
  _: 2
1928
2435
  }, 1032, ["label"]))), 128))
1929
2436
  ]),
1930
2437
  _: 1
1931
2438
  }, 8, ["modelValue"])
1932
- ])) : T("", !0),
1933
- (f = p.value.marketIds) != null && f.show && D.value.length ? (s(), h("div", Tn, [
1934
- b("div", Sn, [
1935
- Mn,
1936
- b("span", {
1937
- onClick: r[4] || (r[4] = (y) => E("marketIds"))
2439
+ ])) : M("", !0),
2440
+ (n = b.value.marketIds) != null && n.show && S.value.length ? (i(), O("div", Fn, [
2441
+ v("div", qn, [
2442
+ Nn,
2443
+ v("span", {
2444
+ onClick: d[4] || (d[4] = (g) => z("marketIds"))
1938
2445
  }, "不限")
1939
2446
  ]),
1940
- c(O, {
2447
+ a($, {
1941
2448
  modelValue: l.value.marketIds,
1942
- "onUpdate:modelValue": r[5] || (r[5] = (y) => l.value.marketIds = y),
2449
+ "onUpdate:modelValue": d[5] || (d[5] = (g) => l.value.marketIds = g),
1943
2450
  size: "small"
1944
2451
  }, {
1945
- default: u(() => [
1946
- (s(!0), h(U, null, B(D.value, ({ label: y, value: k }) => (s(), C(n, {
1947
- label: k,
1948
- key: k
2452
+ default: r(() => [
2453
+ (i(!0), O(L, null, K(S.value, ({ label: g, value: h }) => (i(), U(w, {
2454
+ label: h,
2455
+ key: h
1949
2456
  }, {
1950
- default: u(() => [
1951
- w(R(y), 1)
2457
+ default: r(() => [
2458
+ C(G(g), 1)
1952
2459
  ]),
1953
2460
  _: 2
1954
2461
  }, 1032, ["label"]))), 128))
1955
2462
  ]),
1956
2463
  _: 1
1957
2464
  }, 8, ["modelValue"])
1958
- ])) : T("", !0),
1959
- ($ = p.value.customTag) != null && $.show && N.value.length ? (s(), h("div", En, [
1960
- b("div", Un, [
1961
- Dn,
1962
- b("span", {
1963
- onClick: r[6] || (r[6] = (y) => E("customTag"))
2465
+ ])) : M("", !0),
2466
+ (c = b.value.customTag) != null && c.show && T.value.length ? (i(), O("div", Ln, [
2467
+ v("div", Pn, [
2468
+ Rn,
2469
+ v("span", {
2470
+ onClick: d[6] || (d[6] = (g) => z("customTag"))
1964
2471
  }, "不限")
1965
2472
  ]),
1966
- c(O, {
2473
+ a($, {
1967
2474
  modelValue: l.value.customTag,
1968
- "onUpdate:modelValue": r[7] || (r[7] = (y) => l.value.customTag = y),
2475
+ "onUpdate:modelValue": d[7] || (d[7] = (g) => l.value.customTag = g),
1969
2476
  size: "small"
1970
2477
  }, {
1971
- default: u(() => [
1972
- (s(!0), h(U, null, B(N.value, ({ label: y, value: k }) => (s(), C(n, {
1973
- label: k,
1974
- key: k
2478
+ default: r(() => [
2479
+ (i(!0), O(L, null, K(T.value, ({ label: g, value: h }) => (i(), U(w, {
2480
+ label: h,
2481
+ key: h
1975
2482
  }, {
1976
- default: u(() => [
1977
- w(R(y), 1)
2483
+ default: r(() => [
2484
+ C(G(g), 1)
1978
2485
  ]),
1979
2486
  _: 2
1980
2487
  }, 1032, ["label"]))), 128))
1981
2488
  ]),
1982
2489
  _: 1
1983
2490
  }, 8, ["modelValue"])
1984
- ])) : T("", !0),
1985
- (I = p.value.factorScreen) != null && I.show ? (s(), h("div", qn, [
1986
- b("div", Fn, [
1987
- Ln,
1988
- b("span", {
1989
- onClick: r[8] || (r[8] = (y) => E("factorScreen"))
2491
+ ])) : M("", !0),
2492
+ (k = b.value.factorScreen) != null && k.show ? (i(), O("div", zn, [
2493
+ v("div", An, [
2494
+ Bn,
2495
+ v("span", {
2496
+ onClick: d[8] || (d[8] = (g) => z("factorScreen"))
1990
2497
  }, "不限")
1991
2498
  ]),
1992
- c(Wt, {
2499
+ a(Nl, {
1993
2500
  data: l.value.factorScreen,
1994
- "onUpdate:data": r[9] || (r[9] = (y) => l.value.factorScreen = y),
1995
- config: p.value.factorScreen
2501
+ "onUpdate:data": d[9] || (d[9] = (g) => l.value.factorScreen = g),
2502
+ config: b.value.factorScreen
1996
2503
  }, null, 8, ["data", "config"])
1997
- ])) : T("", !0),
1998
- c(xn, {
2504
+ ])) : M("", !0),
2505
+ a(wn, {
1999
2506
  data: l.value.commonIndicator,
2000
- "onUpdate:data": r[10] || (r[10] = (y) => l.value.commonIndicator = y),
2507
+ "onUpdate:data": d[10] || (d[10] = (g) => l.value.commonIndicator = g),
2001
2508
  varietyMarket: l.value.varietyMarket,
2002
2509
  commonOption: l.value.commonOption,
2003
- config: p.value.commonIndicator
2510
+ config: b.value.commonIndicator
2004
2511
  }, null, 8, ["data", "varietyMarket", "commonOption", "config"])
2005
2512
  ]);
2006
2513
  };
2007
2514
  }
2008
- }, zn = /* @__PURE__ */ ge(Nn, [["__scopeId", "data-v-e077f597"]]), cl = {
2009
- install(a) {
2010
- a.component("st-varietySearch", zn);
2515
+ }, Yn = /* @__PURE__ */ Pe(jn, [["__scopeId", "data-v-eb00276a"]]), yo = {
2516
+ install(s) {
2517
+ s.component("st-varietySearch", Yn);
2011
2518
  }
2012
2519
  };
2013
2520
  export {
2014
- cl as default
2521
+ yo as default
2015
2522
  };