st-comp 0.0.107 → 0.0.110

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.
@@ -1,21 +1,21 @@
1
- import { b as de, d as le, u as Se, m as K, o as he, _ as pe, w as Me, y as xe, q as Ue, c as Qe, i as Oe, z as ue, A as Je, l as We, n as Ie, B as Ze } from "./base-a3fcf99a.js";
2
- import { b as Ke, c as Ee, e as fe, a as me, d as Xe } from "./el-radio-group-12b07ac2.js";
3
- import { b as et, c as tt, E as lt, a as nt } from "./el-table-column-661deade.js";
4
- import { defineComponent as Z, computed as j, openBlock as s, createElementBlock as k, normalizeClass as Q, unref as I, renderSlot as ne, createVNode as u, Transition as qe, withCtx as f, withDirectives as De, createElementVNode as x, normalizeStyle as ve, createTextVNode as z, toDisplayString as A, vShow as Le, ref as Y, useAttrs as at, onMounted as Fe, onUpdated as ot, createBlock as C, resolveDynamicComponent as ze, shallowReactive as st, watch as ae, createCommentVNode as q, Fragment as T, withModifiers as rt, isVNode as Ne, render as Ve, mergeModels as oe, useModel as se, renderList as F, pushScopeId as ge, popScopeId as ye, createSlots as $e } from "vue";
5
- import { E as be } from "./el-overlay-851ea246.js";
6
- import { E as Re } from "./el-input-35c8ebc3.js";
1
+ import { b as fe, d as ne, u as Se, m as X, o as xe, _ as me, w as Me, y as Oe, q as Ue, c as Qe, i as Ve, z as de, A as Je, l as We, n as $e, B as Ze } from "./base-a3fcf99a.js";
2
+ import { b as Ke, c as Ee, e as ve, a as ge, d as Xe, E as et } from "./el-radio-button-12b07ac2.js";
3
+ import { b as tt, c as lt, E as nt, a as at } from "./el-table-column-661deade.js";
4
+ import { defineComponent as K, computed as B, openBlock as n, createElementBlock as k, normalizeClass as J, unref as T, renderSlot as ae, createVNode as o, Transition as qe, withCtx as f, withDirectives as De, createElementVNode as O, normalizeStyle as ye, createTextVNode as F, toDisplayString as Y, vShow as Re, ref as H, useAttrs as ot, onMounted as Le, onUpdated as st, createBlock as U, resolveDynamicComponent as Fe, shallowReactive as rt, watch as oe, createCommentVNode as D, Fragment as E, withModifiers as ut, isVNode as ze, render as Ie, mergeModels as se, useModel as re, renderList as z, pushScopeId as be, popScopeId as ke, createSlots as ie } from "vue";
5
+ import { E as _e } from "./el-overlay-851ea246.js";
6
+ import { E as Ne } from "./el-input-35c8ebc3.js";
7
7
  import "./el-tag-7601f7e6.js";
8
8
  import { b as Pe, E as Be, a as je } from "./el-select-d1a33fbe.js";
9
- import { a as it, u as ut } from "./el-scrollbar-c23060d5.js";
10
- import { E as ct } from "./el-popper-e052fb84.js";
9
+ import { a as it, u as ct } from "./el-scrollbar-c23060d5.js";
10
+ import { E as dt } from "./el-popper-e052fb84.js";
11
11
  import "./el-tooltip-4ed993c7.js";
12
12
  import { E as Ae } from "./el-button-fe99fee6.js";
13
- import { c as dt, j as pt, i as ft, T as we, E as ce, l as mt, p as ie, n as vt, o as gt } from "./use-form-common-props-d0739feb.js";
14
- import { _ as ke } from "./_plugin-vue_export-helper-dad06003.js";
15
- import { m as yt } from "./typescript-7ae59c4c.js";
16
- import { a as bt } from "./index-28cd5fde.js";
17
- import { E as kt } from "./index-af687c16.js";
18
- import { m as G } from "./config-provider-e4ebacca.js";
13
+ import { c as pt, j as ft, i as mt, T as we, E as pe, l as vt, p as ce, n as gt, o as yt } from "./use-form-common-props-d0739feb.js";
14
+ import { _ as he } from "./_plugin-vue_export-helper-dad06003.js";
15
+ import { m as bt } from "./typescript-7ae59c4c.js";
16
+ import { a as kt } from "./index-28cd5fde.js";
17
+ import { E as _t } from "./index-af687c16.js";
18
+ import { m as Q } from "./config-provider-e4ebacca.js";
19
19
  import "./event-09e37cc8.js";
20
20
  import "./castArray-0e8e51f9.js";
21
21
  import "./debounce-7f3a3471.js";
@@ -25,7 +25,7 @@ import "./refs-f0ee592c.js";
25
25
  import "./scroll-1e0c8fab.js";
26
26
  import "./index-b4bbc58d.js";
27
27
  import "./index-657047bb.js";
28
- const _t = de({
28
+ const ht = fe({
29
29
  value: {
30
30
  type: [String, Number],
31
31
  default: ""
@@ -47,59 +47,59 @@ const _t = de({
47
47
  },
48
48
  color: String,
49
49
  badgeStyle: {
50
- type: le([String, Object, Array])
50
+ type: ne([String, Object, Array])
51
51
  },
52
52
  offset: {
53
- type: le(Array),
53
+ type: ne(Array),
54
54
  default: [0, 0]
55
55
  },
56
56
  badgeClass: {
57
57
  type: String
58
58
  }
59
- }), ht = Z({
59
+ }), xt = K({
60
60
  name: "ElBadge"
61
- }), xt = /* @__PURE__ */ Z({
62
- ...ht,
63
- props: _t,
64
- setup(r, { expose: c }) {
65
- const n = r, i = Se("badge"), d = j(() => n.isDot ? "" : K(n.value) && K(n.max) ? n.max < n.value ? `${n.max}+` : `${n.value}` : `${n.value}`), O = j(() => {
66
- var e, E, D, L, v;
61
+ }), Ot = /* @__PURE__ */ K({
62
+ ...xt,
63
+ props: ht,
64
+ setup(s, { expose: i }) {
65
+ const l = s, u = Se("badge"), c = B(() => l.isDot ? "" : X(l.value) && X(l.max) ? l.max < l.value ? `${l.max}+` : `${l.value}` : `${l.value}`), $ = B(() => {
66
+ var e, q, R, L, y;
67
67
  return [
68
68
  {
69
- backgroundColor: n.color,
70
- marginRight: he(-((E = (e = n.offset) == null ? void 0 : e[0]) != null ? E : 0)),
71
- marginTop: he((L = (D = n.offset) == null ? void 0 : D[1]) != null ? L : 0)
69
+ backgroundColor: l.color,
70
+ marginRight: xe(-((q = (e = l.offset) == null ? void 0 : e[0]) != null ? q : 0)),
71
+ marginTop: xe((L = (R = l.offset) == null ? void 0 : R[1]) != null ? L : 0)
72
72
  },
73
- (v = n.badgeStyle) != null ? v : {}
73
+ (y = l.badgeStyle) != null ? y : {}
74
74
  ];
75
75
  });
76
- return c({
77
- content: d
78
- }), (e, E) => (s(), k("div", {
79
- class: Q(I(i).b())
76
+ return i({
77
+ content: c
78
+ }), (e, q) => (n(), k("div", {
79
+ class: J(T(u).b())
80
80
  }, [
81
- ne(e.$slots, "default"),
82
- u(qe, {
83
- name: `${I(i).namespace.value}-zoom-in-center`,
81
+ ae(e.$slots, "default"),
82
+ o(qe, {
83
+ name: `${T(u).namespace.value}-zoom-in-center`,
84
84
  persisted: ""
85
85
  }, {
86
86
  default: f(() => [
87
- De(x("sup", {
88
- class: Q([
89
- I(i).e("content"),
90
- I(i).em("content", e.type),
91
- I(i).is("fixed", !!e.$slots.default),
92
- I(i).is("dot", e.isDot),
93
- I(i).is("hide-zero", !e.showZero && n.value === 0),
87
+ De(O("sup", {
88
+ class: J([
89
+ T(u).e("content"),
90
+ T(u).em("content", e.type),
91
+ T(u).is("fixed", !!e.$slots.default),
92
+ T(u).is("dot", e.isDot),
93
+ T(u).is("hide-zero", !e.showZero && l.value === 0),
94
94
  e.badgeClass
95
95
  ]),
96
- style: ve(I(O))
96
+ style: ye(T($))
97
97
  }, [
98
- ne(e.$slots, "content", { value: I(d) }, () => [
99
- z(A(I(d)), 1)
98
+ ae(e.$slots, "content", { value: T(c) }, () => [
99
+ F(Y(T(c)), 1)
100
100
  ])
101
101
  ], 6), [
102
- [Le, !e.hidden && (I(d) || e.isDot || e.$slots.content)]
102
+ [Re, !e.hidden && (T(c) || e.isDot || e.$slots.content)]
103
103
  ])
104
104
  ]),
105
105
  _: 3
@@ -107,8 +107,8 @@ const _t = de({
107
107
  ], 2));
108
108
  }
109
109
  });
110
- var Ot = /* @__PURE__ */ pe(xt, [["__file", "badge.vue"]]);
111
- const It = Me(Ot), Vt = de({
110
+ var Vt = /* @__PURE__ */ me(Ot, [["__file", "badge.vue"]]);
111
+ const $t = Me(Vt), It = fe({
112
112
  type: {
113
113
  type: String,
114
114
  values: ["primary", "success", "info", "warning", "danger", ""],
@@ -116,7 +116,7 @@ const It = Me(Ot), Vt = de({
116
116
  },
117
117
  size: {
118
118
  type: String,
119
- values: dt,
119
+ values: pt,
120
120
  default: ""
121
121
  },
122
122
  truncated: Boolean,
@@ -127,48 +127,48 @@ const It = Me(Ot), Vt = de({
127
127
  type: String,
128
128
  default: "span"
129
129
  }
130
- }), $t = Z({
130
+ }), wt = K({
131
131
  name: "ElText"
132
- }), wt = /* @__PURE__ */ Z({
133
- ...$t,
134
- props: Vt,
135
- setup(r) {
136
- const c = r, n = Y(), i = pt(), d = Se("text"), O = j(() => [
137
- d.b(),
138
- d.m(c.type),
139
- d.m(i.value),
140
- d.is("truncated", c.truncated),
141
- d.is("line-clamp", !xe(c.lineClamp))
142
- ]), e = at().title, E = () => {
143
- var D, L, v, p, S;
132
+ }), Tt = /* @__PURE__ */ K({
133
+ ...wt,
134
+ props: It,
135
+ setup(s) {
136
+ const i = s, l = H(), u = ft(), c = Se("text"), $ = B(() => [
137
+ c.b(),
138
+ c.m(i.type),
139
+ c.m(u.value),
140
+ c.is("truncated", i.truncated),
141
+ c.is("line-clamp", !Oe(i.lineClamp))
142
+ ]), e = ot().title, q = () => {
143
+ var R, L, y, d, _;
144
144
  if (e)
145
145
  return;
146
146
  let g = !1;
147
- const l = ((D = n.value) == null ? void 0 : D.textContent) || "";
148
- if (c.truncated) {
149
- const o = (L = n.value) == null ? void 0 : L.offsetWidth, _ = (v = n.value) == null ? void 0 : v.scrollWidth;
150
- o && _ && _ > o && (g = !0);
151
- } else if (!xe(c.lineClamp)) {
152
- const o = (p = n.value) == null ? void 0 : p.offsetHeight, _ = (S = n.value) == null ? void 0 : S.scrollHeight;
153
- o && _ && _ > o && (g = !0);
147
+ const t = ((R = l.value) == null ? void 0 : R.textContent) || "";
148
+ if (i.truncated) {
149
+ const r = (L = l.value) == null ? void 0 : L.offsetWidth, w = (y = l.value) == null ? void 0 : y.scrollWidth;
150
+ r && w && w > r && (g = !0);
151
+ } else if (!Oe(i.lineClamp)) {
152
+ const r = (d = l.value) == null ? void 0 : d.offsetHeight, w = (_ = l.value) == null ? void 0 : _.scrollHeight;
153
+ r && w && w > r && (g = !0);
154
154
  }
155
- g ? n.value.setAttribute("title", l) : n.value.removeAttribute("title");
155
+ g ? l.value.setAttribute("title", t) : l.value.removeAttribute("title");
156
156
  };
157
- return Fe(E), ot(E), (D, L) => (s(), C(ze(D.tag), {
157
+ return Le(q), st(q), (R, L) => (n(), U(Fe(R.tag), {
158
158
  ref_key: "textRef",
159
- ref: n,
160
- class: Q(I(O)),
161
- style: ve({ "-webkit-line-clamp": D.lineClamp })
159
+ ref: l,
160
+ class: J(T($)),
161
+ style: ye({ "-webkit-line-clamp": R.lineClamp })
162
162
  }, {
163
163
  default: f(() => [
164
- ne(D.$slots, "default")
164
+ ae(R.$slots, "default")
165
165
  ]),
166
166
  _: 3
167
167
  }, 8, ["class", "style"]));
168
168
  }
169
169
  });
170
- var Ct = /* @__PURE__ */ pe(wt, [["__file", "text.vue"]]);
171
- const Tt = Me(Ct), Ye = ["success", "info", "warning", "error"], B = yt({
170
+ var Ct = /* @__PURE__ */ me(Tt, [["__file", "text.vue"]]);
171
+ const St = Me(Ct), Ye = ["success", "info", "warning", "error"], P = bt({
172
172
  customClass: "",
173
173
  center: !1,
174
174
  dangerouslyUseHTMLString: !1,
@@ -185,270 +185,270 @@ const Tt = Me(Ct), Ye = ["success", "info", "warning", "error"], B = yt({
185
185
  grouping: !1,
186
186
  repeatNum: 1,
187
187
  appendTo: Ue ? document.body : void 0
188
- }), St = de({
188
+ }), Mt = fe({
189
189
  customClass: {
190
190
  type: String,
191
- default: B.customClass
191
+ default: P.customClass
192
192
  },
193
193
  center: {
194
194
  type: Boolean,
195
- default: B.center
195
+ default: P.center
196
196
  },
197
197
  dangerouslyUseHTMLString: {
198
198
  type: Boolean,
199
- default: B.dangerouslyUseHTMLString
199
+ default: P.dangerouslyUseHTMLString
200
200
  },
201
201
  duration: {
202
202
  type: Number,
203
- default: B.duration
203
+ default: P.duration
204
204
  },
205
205
  icon: {
206
- type: ft,
207
- default: B.icon
206
+ type: mt,
207
+ default: P.icon
208
208
  },
209
209
  id: {
210
210
  type: String,
211
- default: B.id
211
+ default: P.id
212
212
  },
213
213
  message: {
214
- type: le([
214
+ type: ne([
215
215
  String,
216
216
  Object,
217
217
  Function
218
218
  ]),
219
- default: B.message
219
+ default: P.message
220
220
  },
221
221
  onClose: {
222
- type: le(Function),
223
- default: B.onClose
222
+ type: ne(Function),
223
+ default: P.onClose
224
224
  },
225
225
  showClose: {
226
226
  type: Boolean,
227
- default: B.showClose
227
+ default: P.showClose
228
228
  },
229
229
  type: {
230
230
  type: String,
231
231
  values: Ye,
232
- default: B.type
232
+ default: P.type
233
233
  },
234
234
  plain: {
235
235
  type: Boolean,
236
- default: B.plain
236
+ default: P.plain
237
237
  },
238
238
  offset: {
239
239
  type: Number,
240
- default: B.offset
240
+ default: P.offset
241
241
  },
242
242
  zIndex: {
243
243
  type: Number,
244
- default: B.zIndex
244
+ default: P.zIndex
245
245
  },
246
246
  grouping: {
247
247
  type: Boolean,
248
- default: B.grouping
248
+ default: P.grouping
249
249
  },
250
250
  repeatNum: {
251
251
  type: Number,
252
- default: B.repeatNum
252
+ default: P.repeatNum
253
253
  }
254
- }), Mt = {
254
+ }), Ut = {
255
255
  destroy: () => !0
256
- }, H = st([]), Ut = (r) => {
257
- const c = H.findIndex((d) => d.id === r), n = H[c];
258
- let i;
259
- return c > 0 && (i = H[c - 1]), { current: n, prev: i };
260
- }, Et = (r) => {
261
- const { prev: c } = Ut(r);
262
- return c ? c.vm.exposed.bottom.value : 0;
263
- }, qt = (r, c) => H.findIndex((i) => i.id === r) > 0 ? 16 : c, Dt = Z({
256
+ }, G = rt([]), Et = (s) => {
257
+ const i = G.findIndex((c) => c.id === s), l = G[i];
258
+ let u;
259
+ return i > 0 && (u = G[i - 1]), { current: l, prev: u };
260
+ }, qt = (s) => {
261
+ const { prev: i } = Et(s);
262
+ return i ? i.vm.exposed.bottom.value : 0;
263
+ }, Dt = (s, i) => G.findIndex((u) => u.id === s) > 0 ? 16 : i, Rt = K({
264
264
  name: "ElMessage"
265
- }), Lt = /* @__PURE__ */ Z({
266
- ...Dt,
267
- props: St,
268
- emits: Mt,
269
- setup(r, { expose: c }) {
270
- const n = r, { Close: i } = mt, { ns: d, zIndex: O } = bt("message"), { currentZIndex: e, nextZIndex: E } = O, D = Y(), L = Y(!1), v = Y(0);
271
- let p;
272
- const S = j(() => n.type ? n.type === "error" ? "danger" : n.type : "info"), g = j(() => {
273
- const m = n.type;
274
- return { [d.bm("icon", m)]: m && we[m] };
275
- }), l = j(() => n.icon || we[n.type] || ""), o = j(() => Et(n.id)), _ = j(() => qt(n.id, n.offset) + o.value), h = j(() => v.value + _.value), y = j(() => ({
276
- top: `${_.value}px`,
265
+ }), Lt = /* @__PURE__ */ K({
266
+ ...Rt,
267
+ props: Mt,
268
+ emits: Ut,
269
+ setup(s, { expose: i }) {
270
+ const l = s, { Close: u } = vt, { ns: c, zIndex: $ } = kt("message"), { currentZIndex: e, nextZIndex: q } = $, R = H(), L = H(!1), y = H(0);
271
+ let d;
272
+ const _ = B(() => l.type ? l.type === "error" ? "danger" : l.type : "info"), g = B(() => {
273
+ const V = l.type;
274
+ return { [c.bm("icon", V)]: V && we[V] };
275
+ }), t = B(() => l.icon || we[l.type] || ""), r = B(() => qt(l.id)), w = B(() => Dt(l.id, l.offset) + r.value), h = B(() => y.value + w.value), x = B(() => ({
276
+ top: `${w.value}px`,
277
277
  zIndex: e.value
278
278
  }));
279
- function M() {
280
- n.duration !== 0 && ({ stop: p } = Qe(() => {
281
- a();
282
- }, n.duration));
279
+ function I() {
280
+ l.duration !== 0 && ({ stop: d } = Qe(() => {
281
+ p();
282
+ }, l.duration));
283
283
  }
284
- function w() {
285
- p == null || p();
284
+ function M() {
285
+ d == null || d();
286
286
  }
287
- function a() {
287
+ function p() {
288
288
  L.value = !1;
289
289
  }
290
- function $({ code: m }) {
291
- m === kt.esc && a();
290
+ function v({ code: V }) {
291
+ V === _t.esc && p();
292
292
  }
293
- return Fe(() => {
294
- M(), E(), L.value = !0;
295
- }), ae(() => n.repeatNum, () => {
296
- w(), M();
297
- }), it(document, "keydown", $), ut(D, () => {
298
- v.value = D.value.getBoundingClientRect().height;
299
- }), c({
293
+ return Le(() => {
294
+ I(), q(), L.value = !0;
295
+ }), oe(() => l.repeatNum, () => {
296
+ M(), I();
297
+ }), it(document, "keydown", v), ct(R, () => {
298
+ y.value = R.value.getBoundingClientRect().height;
299
+ }), i({
300
300
  visible: L,
301
301
  bottom: h,
302
- close: a
303
- }), (m, t) => (s(), C(qe, {
304
- name: I(d).b("fade"),
305
- onBeforeLeave: m.onClose,
306
- onAfterLeave: (R) => m.$emit("destroy"),
302
+ close: p
303
+ }), (V, m) => (n(), U(qe, {
304
+ name: T(c).b("fade"),
305
+ onBeforeLeave: V.onClose,
306
+ onAfterLeave: (a) => V.$emit("destroy"),
307
307
  persisted: ""
308
308
  }, {
309
309
  default: f(() => [
310
- De(x("div", {
311
- id: m.id,
310
+ De(O("div", {
311
+ id: V.id,
312
312
  ref_key: "messageRef",
313
- ref: D,
314
- class: Q([
315
- I(d).b(),
316
- { [I(d).m(m.type)]: m.type },
317
- I(d).is("center", m.center),
318
- I(d).is("closable", m.showClose),
319
- I(d).is("plain", m.plain),
320
- m.customClass
313
+ ref: R,
314
+ class: J([
315
+ T(c).b(),
316
+ { [T(c).m(V.type)]: V.type },
317
+ T(c).is("center", V.center),
318
+ T(c).is("closable", V.showClose),
319
+ T(c).is("plain", V.plain),
320
+ V.customClass
321
321
  ]),
322
- style: ve(I(y)),
322
+ style: ye(T(x)),
323
323
  role: "alert",
324
- onMouseenter: w,
325
- onMouseleave: M
324
+ onMouseenter: M,
325
+ onMouseleave: I
326
326
  }, [
327
- m.repeatNum > 1 ? (s(), C(I(It), {
327
+ V.repeatNum > 1 ? (n(), U(T($t), {
328
328
  key: 0,
329
- value: m.repeatNum,
330
- type: I(S),
331
- class: Q(I(d).e("badge"))
332
- }, null, 8, ["value", "type", "class"])) : q("v-if", !0),
333
- I(l) ? (s(), C(I(ce), {
329
+ value: V.repeatNum,
330
+ type: T(_),
331
+ class: J(T(c).e("badge"))
332
+ }, null, 8, ["value", "type", "class"])) : D("v-if", !0),
333
+ T(t) ? (n(), U(T(pe), {
334
334
  key: 1,
335
- class: Q([I(d).e("icon"), I(g)])
335
+ class: J([T(c).e("icon"), T(g)])
336
336
  }, {
337
337
  default: f(() => [
338
- (s(), C(ze(I(l))))
338
+ (n(), U(Fe(T(t))))
339
339
  ]),
340
340
  _: 1
341
- }, 8, ["class"])) : q("v-if", !0),
342
- ne(m.$slots, "default", {}, () => [
343
- m.dangerouslyUseHTMLString ? (s(), k(T, { key: 1 }, [
344
- q(" Caution here, message could've been compromised, never use user's input as message "),
345
- x("p", {
346
- class: Q(I(d).e("content")),
347
- innerHTML: m.message
341
+ }, 8, ["class"])) : D("v-if", !0),
342
+ ae(V.$slots, "default", {}, () => [
343
+ V.dangerouslyUseHTMLString ? (n(), k(E, { key: 1 }, [
344
+ D(" Caution here, message could've been compromised, never use user's input as message "),
345
+ O("p", {
346
+ class: J(T(c).e("content")),
347
+ innerHTML: V.message
348
348
  }, null, 10, ["innerHTML"])
349
- ], 2112)) : (s(), k("p", {
349
+ ], 2112)) : (n(), k("p", {
350
350
  key: 0,
351
- class: Q(I(d).e("content"))
352
- }, A(m.message), 3))
351
+ class: J(T(c).e("content"))
352
+ }, Y(V.message), 3))
353
353
  ]),
354
- m.showClose ? (s(), C(I(ce), {
354
+ V.showClose ? (n(), U(T(pe), {
355
355
  key: 2,
356
- class: Q(I(d).e("closeBtn")),
357
- onClick: rt(a, ["stop"])
356
+ class: J(T(c).e("closeBtn")),
357
+ onClick: ut(p, ["stop"])
358
358
  }, {
359
359
  default: f(() => [
360
- u(I(i))
360
+ o(T(u))
361
361
  ]),
362
362
  _: 1
363
- }, 8, ["class", "onClick"])) : q("v-if", !0)
363
+ }, 8, ["class", "onClick"])) : D("v-if", !0)
364
364
  ], 46, ["id"]), [
365
- [Le, L.value]
365
+ [Re, L.value]
366
366
  ])
367
367
  ]),
368
368
  _: 3
369
369
  }, 8, ["name", "onBeforeLeave", "onAfterLeave"]));
370
370
  }
371
371
  });
372
- var Ft = /* @__PURE__ */ pe(Lt, [["__file", "message.vue"]]);
372
+ var Ft = /* @__PURE__ */ me(Lt, [["__file", "message.vue"]]);
373
373
  let zt = 1;
374
- const He = (r) => {
375
- const c = !r || Oe(r) || Ne(r) || ue(r) ? { message: r } : r, n = {
376
- ...B,
377
- ...c
374
+ const He = (s) => {
375
+ const i = !s || Ve(s) || ze(s) || de(s) ? { message: s } : s, l = {
376
+ ...P,
377
+ ...i
378
378
  };
379
- if (!n.appendTo)
380
- n.appendTo = document.body;
381
- else if (Oe(n.appendTo)) {
382
- let i = document.querySelector(n.appendTo);
383
- Je(i) || (We("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), i = document.body), n.appendTo = i;
379
+ if (!l.appendTo)
380
+ l.appendTo = document.body;
381
+ else if (Ve(l.appendTo)) {
382
+ let u = document.querySelector(l.appendTo);
383
+ Je(u) || (We("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), u = document.body), l.appendTo = u;
384
384
  }
385
- return Ie(G.grouping) && !n.grouping && (n.grouping = G.grouping), K(G.duration) && n.duration === 3e3 && (n.duration = G.duration), K(G.offset) && n.offset === 16 && (n.offset = G.offset), Ie(G.showClose) && !n.showClose && (n.showClose = G.showClose), n;
386
- }, Nt = (r) => {
387
- const c = H.indexOf(r);
388
- if (c === -1)
385
+ return $e(Q.grouping) && !l.grouping && (l.grouping = Q.grouping), X(Q.duration) && l.duration === 3e3 && (l.duration = Q.duration), X(Q.offset) && l.offset === 16 && (l.offset = Q.offset), $e(Q.showClose) && !l.showClose && (l.showClose = Q.showClose), l;
386
+ }, Nt = (s) => {
387
+ const i = G.indexOf(s);
388
+ if (i === -1)
389
389
  return;
390
- H.splice(c, 1);
391
- const { handler: n } = r;
392
- n.close();
393
- }, Rt = ({ appendTo: r, ...c }, n) => {
394
- const i = `message_${zt++}`, d = c.onClose, O = document.createElement("div"), e = {
395
- ...c,
396
- id: i,
390
+ G.splice(i, 1);
391
+ const { handler: l } = s;
392
+ l.close();
393
+ }, Pt = ({ appendTo: s, ...i }, l) => {
394
+ const u = `message_${zt++}`, c = i.onClose, $ = document.createElement("div"), e = {
395
+ ...i,
396
+ id: u,
397
397
  onClose: () => {
398
- d == null || d(), Nt(v);
398
+ c == null || c(), Nt(y);
399
399
  },
400
400
  onDestroy: () => {
401
- Ve(null, O);
401
+ Ie(null, $);
402
402
  }
403
- }, E = u(Ft, e, ue(e.message) || Ne(e.message) ? {
404
- default: ue(e.message) ? e.message : () => e.message
403
+ }, q = o(Ft, e, de(e.message) || ze(e.message) ? {
404
+ default: de(e.message) ? e.message : () => e.message
405
405
  } : null);
406
- E.appContext = n || W._context, Ve(E, O), r.appendChild(O.firstElementChild);
407
- const D = E.component, v = {
408
- id: i,
409
- vnode: E,
410
- vm: D,
406
+ q.appContext = l || Z._context, Ie(q, $), s.appendChild($.firstElementChild);
407
+ const R = q.component, y = {
408
+ id: u,
409
+ vnode: q,
410
+ vm: R,
411
411
  handler: {
412
412
  close: () => {
413
- D.exposed.visible.value = !1;
413
+ R.exposed.visible.value = !1;
414
414
  }
415
415
  },
416
- props: E.component.props
416
+ props: q.component.props
417
417
  };
418
- return v;
419
- }, W = (r = {}, c) => {
418
+ return y;
419
+ }, Z = (s = {}, i) => {
420
420
  if (!Ue)
421
421
  return { close: () => {
422
422
  } };
423
- const n = He(r);
424
- if (n.grouping && H.length) {
425
- const d = H.find(({ vnode: O }) => {
423
+ const l = He(s);
424
+ if (l.grouping && G.length) {
425
+ const c = G.find(({ vnode: $ }) => {
426
426
  var e;
427
- return ((e = O.props) == null ? void 0 : e.message) === n.message;
427
+ return ((e = $.props) == null ? void 0 : e.message) === l.message;
428
428
  });
429
- if (d)
430
- return d.props.repeatNum += 1, d.props.type = n.type, d.handler;
429
+ if (c)
430
+ return c.props.repeatNum += 1, c.props.type = l.type, c.handler;
431
431
  }
432
- if (K(G.max) && H.length >= G.max)
432
+ if (X(Q.max) && G.length >= Q.max)
433
433
  return { close: () => {
434
434
  } };
435
- const i = Rt(n, c);
436
- return H.push(i), i.handler;
435
+ const u = Pt(l, i);
436
+ return G.push(u), u.handler;
437
437
  };
438
- Ye.forEach((r) => {
439
- W[r] = (c = {}, n) => {
440
- const i = He(c);
441
- return W({ ...i, type: r }, n);
438
+ Ye.forEach((s) => {
439
+ Z[s] = (i = {}, l) => {
440
+ const u = He(i);
441
+ return Z({ ...u, type: s }, l);
442
442
  };
443
443
  });
444
- function Pt(r) {
445
- for (const c of H)
446
- (!r || r === c.props.type) && c.handler.close();
444
+ function Bt(s) {
445
+ for (const i of G)
446
+ (!s || s === i.props.type) && i.handler.close();
447
447
  }
448
- W.closeAll = Pt;
449
- W._context = null;
450
- const J = Ze(W, "$message");
451
- const Ce = {
448
+ Z.closeAll = Bt;
449
+ Z._context = null;
450
+ const W = Ze(Z, "$message");
451
+ const Te = {
452
452
  // 品种市场 [选项: 前端默认]
453
453
  varietyMarket: {
454
454
  show: !0,
@@ -727,7 +727,13 @@ const Ce = {
727
727
  // 默认选中单位
728
728
  defaultUnit: ["亿", "亿"],
729
729
  // 单位下拉框选项
730
- unitOptions: ["元", "千万", "亿"]
730
+ unitOptions: ["元", "千万", "亿"],
731
+ // 是否展示排名类型
732
+ showRankType: !0,
733
+ // 默认单选类型 0: 数值类型 1: 排名
734
+ defaultRadioType: "1",
735
+ // 默认数值
736
+ defaultRankRange: [0, 25]
731
737
  },
732
738
  // 净资产收益率roe
733
739
  {
@@ -890,7 +896,13 @@ const Ce = {
890
896
  // 默认选中单位
891
897
  defaultUnit: ["万", "万"],
892
898
  // 单位下拉框选项
893
- unitOptions: ["万"]
899
+ unitOptions: ["万"],
900
+ // 是否展示排名类型
901
+ showRankType: !0,
902
+ // 默认单选类型 0: 数值类型 1: 排名
903
+ defaultRadioType: "1",
904
+ // 默认数值
905
+ defaultRankRange: [0, 25]
894
906
  },
895
907
  // 成交量
896
908
  {
@@ -905,7 +917,13 @@ const Ce = {
905
917
  // 默认选中单位
906
918
  defaultUnit: [],
907
919
  // 单位下拉框选项
908
- unitOptions: []
920
+ unitOptions: [],
921
+ // 是否展示排名类型
922
+ showRankType: !0,
923
+ // 默认单选类型 0: 数值类型 1: 排名
924
+ defaultRadioType: "1",
925
+ // 默认数值
926
+ defaultRankRange: [0, 25]
909
927
  },
910
928
  // 持仓量
911
929
  {
@@ -920,7 +938,13 @@ const Ce = {
920
938
  // 默认选中单位
921
939
  defaultUnit: [],
922
940
  // 单位下拉框选项
923
- unitOptions: []
941
+ unitOptions: [],
942
+ // 是否展示排名类型
943
+ showRankType: !0,
944
+ // 默认单选类型 0: 数值类型 1: 排名
945
+ defaultRadioType: "1",
946
+ // 默认数值
947
+ defaultRankRange: [0, 25]
924
948
  },
925
949
  // 认沽认购
926
950
  {
@@ -950,49 +974,49 @@ const Ce = {
950
974
  ]
951
975
  }
952
976
  };
953
- const Bt = (r, c, n) => {
954
- !c[0] && c[0] !== 0 && !c[1] && c[1] !== 0 ? n(new Error("至少填写一个分数")) : n();
955
- }, Te = (r) => {
956
- const c = /(条件(\d+))/g;
957
- return r.match(c) || [];
958
- }, jt = {
977
+ const jt = (s, i, l) => {
978
+ !i[0] && i[0] !== 0 && !i[1] && i[1] !== 0 ? l(new Error("至少填写一个分数")) : l();
979
+ }, Ce = (s) => {
980
+ const i = /(条件(\d+))/g;
981
+ return s.match(i) || [];
982
+ }, At = {
959
983
  __name: "FactorDescription",
960
- props: /* @__PURE__ */ oe({
984
+ props: /* @__PURE__ */ se({
961
985
  data: { type: Array, default: [] }
962
986
  }, {
963
987
  visible: { default: !1 },
964
988
  visibleModifiers: {}
965
989
  }),
966
990
  emits: ["update:visible"],
967
- setup(r) {
968
- const c = se(r, "visible");
969
- return (n, i) => {
970
- const d = et, O = tt, e = be;
971
- return s(), C(e, {
972
- modelValue: c.value,
973
- "onUpdate:modelValue": i[0] || (i[0] = (E) => c.value = E),
991
+ setup(s) {
992
+ const i = re(s, "visible");
993
+ return (l, u) => {
994
+ const c = tt, $ = lt, e = _e;
995
+ return n(), U(e, {
996
+ modelValue: i.value,
997
+ "onUpdate:modelValue": u[0] || (u[0] = (q) => i.value = q),
974
998
  title: "因子使用说明",
975
999
  width: "1000",
976
1000
  "align-center": "",
977
1001
  "destroy-on-close": ""
978
1002
  }, {
979
1003
  default: f(() => [
980
- u(O, {
981
- data: r.data,
1004
+ o($, {
1005
+ data: s.data,
982
1006
  border: "",
983
1007
  height: "500"
984
1008
  }, {
985
1009
  default: f(() => [
986
- u(d, {
1010
+ o(c, {
987
1011
  prop: "factorName",
988
1012
  label: "因子名称",
989
1013
  width: "200"
990
1014
  }),
991
- u(d, {
1015
+ o(c, {
992
1016
  prop: "factorDesc",
993
1017
  label: "因子说明"
994
1018
  }),
995
- u(d, {
1019
+ o(c, {
996
1020
  prop: "factorScoreDefine",
997
1021
  label: "分值定义"
998
1022
  })
@@ -1005,9 +1029,9 @@ const Bt = (r, c, n) => {
1005
1029
  };
1006
1030
  }
1007
1031
  };
1008
- const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "factor-screen" }, Yt = { class: "custom-header" }, Ht = ["id"], Gt = { class: "form-row" }, Qt = { class: "index" }, Jt = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, Wt = /* @__PURE__ */ Ge(() => /* @__PURE__ */ x("span", null, "~", -1)), Zt = /* @__PURE__ */ Ge(() => /* @__PURE__ */ x("span", null, "&&代表and,||代表or", -1)), Kt = { class: "dialog-footer" }, Xt = {
1032
+ const Ge = (s) => (be("data-v-3cac46e2"), s = s(), ke(), s), Yt = { class: "factor-screen" }, Ht = { class: "custom-header" }, Gt = ["id"], Qt = { class: "form-row" }, Jt = { class: "index" }, Wt = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, Zt = /* @__PURE__ */ Ge(() => /* @__PURE__ */ O("span", null, "~", -1)), Kt = /* @__PURE__ */ Ge(() => /* @__PURE__ */ O("span", null, "&&代表and,||代表or", -1)), Xt = { class: "dialog-footer" }, el = {
1009
1033
  __name: "index",
1010
- props: /* @__PURE__ */ oe({
1034
+ props: /* @__PURE__ */ se({
1011
1035
  config: {
1012
1036
  type: Object,
1013
1037
  default: {
@@ -1036,12 +1060,12 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
1036
1060
  dataModifiers: {}
1037
1061
  }),
1038
1062
  emits: ["update:data"],
1039
- setup(r) {
1040
- const c = r, n = se(r, "data"), i = Y(!1), d = Y(!1), O = Y(null), e = Y({
1063
+ setup(s) {
1064
+ const i = s, l = re(s, "data"), u = H(!1), c = H(!1), $ = H(null), e = H({
1041
1065
  // 筛选因子列表
1042
1066
  list: [
1043
1067
  {
1044
- cycle: c.config.cycleDefault ?? null,
1068
+ cycle: i.config.cycleDefault ?? null,
1045
1069
  // 周期
1046
1070
  factor: null,
1047
1071
  // 因子
@@ -1053,81 +1077,81 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
1053
1077
  sqlEnable: 0,
1054
1078
  // SQL语句
1055
1079
  sqlValue: null
1056
- }), E = () => {
1057
- const { list: l, sqlEnable: o, sqlValue: _ } = n.value;
1080
+ }), q = () => {
1081
+ const { list: t, sqlEnable: r, sqlValue: w } = l.value;
1058
1082
  e.value = {
1059
- list: JSON.parse(JSON.stringify(l)),
1060
- sqlEnable: o,
1061
- sqlValue: _
1062
- }, e.value.list.length || v(), i.value = !0;
1063
- }, D = () => {
1064
- O.value.validate((l) => {
1065
- const { list: o, sqlEnable: _, sqlValue: h } = e.value;
1066
- if (l) {
1067
- if (_) {
1083
+ list: JSON.parse(JSON.stringify(t)),
1084
+ sqlEnable: r,
1085
+ sqlValue: w
1086
+ }, e.value.list.length || y(), u.value = !0;
1087
+ }, R = () => {
1088
+ $.value.validate((t) => {
1089
+ const { list: r, sqlEnable: w, sqlValue: h } = e.value;
1090
+ if (t) {
1091
+ if (w) {
1068
1092
  if (!h)
1069
- return J.error("SQL语句不能为空");
1070
- const y = Te(h), M = o.map((a, $) => `条件${$ + 1}`), w = y.filter((a) => !M.includes(a));
1071
- if (w.length)
1072
- return J.error(`请检查SQL语句, 不存在[${w}]`);
1093
+ return W.error("SQL语句不能为空");
1094
+ const x = Ce(h), I = r.map((p, v) => `条件${v + 1}`), M = x.filter((p) => !I.includes(p));
1095
+ if (M.length)
1096
+ return W.error(`请检查SQL语句, 不存在[${M}]`);
1073
1097
  }
1074
- n.value = {
1075
- list: JSON.parse(JSON.stringify(o)),
1076
- sqlEnable: _,
1098
+ l.value = {
1099
+ list: JSON.parse(JSON.stringify(r)),
1100
+ sqlEnable: w,
1077
1101
  sqlValue: h
1078
- }, i.value = !1;
1102
+ }, u.value = !1;
1079
1103
  }
1080
1104
  });
1081
- }, L = (l) => {
1082
- e.value.list.splice(l, 1);
1083
- }, v = (l) => {
1084
- switch (l) {
1105
+ }, L = (t) => {
1106
+ e.value.list.splice(t, 1);
1107
+ }, y = (t) => {
1108
+ switch (t) {
1085
1109
  case "compare": {
1086
1110
  e.value.list.push({
1087
1111
  key: "compare",
1088
- cycle: c.config.cycleDefault ?? null,
1112
+ cycle: i.config.cycleDefault ?? null,
1089
1113
  factor: null,
1090
1114
  compareType: ">",
1091
- cycle2: c.config.cycleDefault ?? null,
1115
+ cycle2: i.config.cycleDefault ?? null,
1092
1116
  factor2: null
1093
1117
  });
1094
1118
  break;
1095
1119
  }
1096
1120
  default: {
1097
1121
  e.value.list.push({
1098
- cycle: c.config.cycleDefault ?? null,
1122
+ cycle: i.config.cycleDefault ?? null,
1099
1123
  factor: null,
1100
1124
  score: [null, null]
1101
1125
  });
1102
1126
  break;
1103
1127
  }
1104
1128
  }
1105
- }, p = () => {
1106
- O.value.validate((l) => {
1107
- if (l)
1129
+ }, d = () => {
1130
+ $.value.validate((t) => {
1131
+ if (t)
1108
1132
  if (e.value.sqlValue) {
1109
- const o = Te(e.value.sqlValue);
1110
- e.value.sqlValue = e.value.list.reduce((_, h, y) => (o.includes(`条件${y + 1}`) || (_ += `&& 条件${y + 1} `), _), e.value.sqlValue);
1133
+ const r = Ce(e.value.sqlValue);
1134
+ e.value.sqlValue = e.value.list.reduce((w, h, x) => (r.includes(`条件${x + 1}`) || (w += `&& 条件${x + 1} `), w), e.value.sqlValue);
1111
1135
  } else
1112
- e.value.sqlValue = e.value.list.reduce((o, _, h) => (h === 0 ? o += `条件${h + 1} ` : o += `&& 条件${h + 1} `, o), "");
1136
+ e.value.sqlValue = e.value.list.reduce((r, w, h) => (h === 0 ? r += `条件${h + 1} ` : r += `&& 条件${h + 1} `, r), "");
1113
1137
  });
1114
- }, S = (l) => {
1115
- switch (l.key) {
1138
+ }, _ = (t) => {
1139
+ switch (t.key) {
1116
1140
  case "compare": {
1117
- const { cycle: o, factor: _, compareType: h, cycle2: y, factor2: M } = l;
1118
- let w = "";
1119
- return w += ` ${c.config.cycleOptions.find(({ value: a }) => a === o).label}`, w += ` ${c.config.factorOptions.find(({ value: a }) => a === _).label}`, w += ` ${h}`, w += ` ${c.config.cycleOptions.find(({ value: a }) => a === y).label}`, w += ` ${c.config.factorOptions.find(({ value: a }) => a === M).label}`, w;
1141
+ const { cycle: r, factor: w, compareType: h, cycle2: x, factor2: I } = t;
1142
+ let M = "";
1143
+ return M += ` ${i.config.cycleOptions.find(({ value: p }) => p === r).label}`, M += ` ${i.config.factorOptions.find(({ value: p }) => p === w).label}`, M += ` ${h}`, M += ` ${i.config.cycleOptions.find(({ value: p }) => p === x).label}`, M += ` ${i.config.factorOptions.find(({ value: p }) => p === I).label}`, M;
1120
1144
  }
1121
1145
  default: {
1122
- const { cycle: o, factor: _, score: h } = l;
1123
- let y = "";
1124
- return y += ` ${c.config.cycleOptions.find(({ value: M }) => M === o).label}`, y += ` ${c.config.factorOptions.find(({ value: M }) => M === _).label}`, y += ` ${h[0] || h[0] === 0 ? `${h[0]}分` : "∞"}`, y += " ~", y += ` ${h[1] || h[1] === 0 ? `${h[1]}分` : "∞"}`, y;
1146
+ const { cycle: r, factor: w, score: h } = t;
1147
+ let x = "";
1148
+ return x += ` ${i.config.cycleOptions.find(({ value: I }) => I === r).label}`, x += ` ${i.config.factorOptions.find(({ value: I }) => I === w).label}`, x += ` ${h[0] || h[0] === 0 ? `${h[0]}分` : "∞"}`, x += " ~", x += ` ${h[1] || h[1] === 0 ? `${h[1]}分` : "∞"}`, x;
1125
1149
  }
1126
1150
  }
1127
- }, g = (l, o) => {
1128
- switch (l) {
1151
+ }, g = (t, r) => {
1152
+ switch (t) {
1129
1153
  case "sqlTag": {
1130
- n.value = {
1154
+ l.value = {
1131
1155
  list: [],
1132
1156
  sqlEnable: 0,
1133
1157
  sqlValue: null
@@ -1135,85 +1159,85 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
1135
1159
  break;
1136
1160
  }
1137
1161
  case "factorTag": {
1138
- n.value.list.splice(o, 1);
1162
+ l.value.list.splice(r, 1);
1139
1163
  break;
1140
1164
  }
1141
1165
  }
1142
1166
  };
1143
- return (l, o) => {
1144
- const _ = Tt, h = Pe, y = Ae, M = ce, w = ct, a = Be, $ = je, m = Ke, t = Ee, R = fe, P = me, re = Re, ee = Xe, te = be;
1145
- return s(), k(T, null, [
1146
- x("div", At, [
1147
- x("div", null, [
1148
- n.value.sqlEnable && n.value.sqlValue ? (s(), C(h, {
1167
+ return (t, r) => {
1168
+ const w = St, h = Pe, x = Ae, I = pe, M = dt, p = Be, v = je, V = Ke, m = Ee, a = ve, A = ge, j = Ne, te = Xe, le = _e;
1169
+ return n(), k(E, null, [
1170
+ O("div", Yt, [
1171
+ O("div", null, [
1172
+ l.value.sqlEnable && l.value.sqlValue ? (n(), U(h, {
1149
1173
  key: 0,
1150
1174
  closable: "",
1151
1175
  type: "info",
1152
- title: n.value.sqlValue,
1153
- onClose: o[0] || (o[0] = (b) => g("sqlTag"))
1176
+ title: l.value.sqlValue,
1177
+ onClose: r[0] || (r[0] = (C) => g("sqlTag"))
1154
1178
  }, {
1155
1179
  default: f(() => [
1156
- u(_, {
1180
+ o(w, {
1157
1181
  type: "info",
1158
1182
  truncated: "",
1159
1183
  style: { "max-width": "500px" }
1160
1184
  }, {
1161
1185
  default: f(() => [
1162
- z(A(n.value.sqlValue), 1)
1186
+ F(Y(l.value.sqlValue), 1)
1163
1187
  ]),
1164
1188
  _: 1
1165
1189
  })
1166
1190
  ]),
1167
1191
  _: 1
1168
- }, 8, ["title"])) : q("", !0),
1169
- !n.value.sqlEnable && n.value.list.length ? (s(!0), k(T, { key: 1 }, F(n.value.list, (b, U) => (s(), C(h, {
1192
+ }, 8, ["title"])) : D("", !0),
1193
+ !l.value.sqlEnable && l.value.list.length ? (n(!0), k(E, { key: 1 }, z(l.value.list, (C, N) => (n(), U(h, {
1170
1194
  closable: "",
1171
1195
  type: "info",
1172
- onClose: (V) => g("factorTag", U)
1196
+ onClose: (b) => g("factorTag", N)
1173
1197
  }, {
1174
1198
  default: f(() => [
1175
- z(A(S(b)), 1)
1199
+ F(Y(_(C)), 1)
1176
1200
  ]),
1177
1201
  _: 2
1178
- }, 1032, ["onClose"]))), 256)) : q("", !0),
1179
- u(y, {
1202
+ }, 1032, ["onClose"]))), 256)) : D("", !0),
1203
+ o(x, {
1180
1204
  class: "screen-btn",
1181
1205
  type: "primary",
1182
1206
  plain: "",
1183
1207
  size: "small",
1184
- icon: I(ie),
1185
- onClick: E
1208
+ icon: T(ce),
1209
+ onClick: q
1186
1210
  }, {
1187
1211
  default: f(() => [
1188
- z(" 添加因子 ")
1212
+ F(" 添加因子 ")
1189
1213
  ]),
1190
1214
  _: 1
1191
1215
  }, 8, ["icon"])
1192
1216
  ]),
1193
- u(te, {
1194
- modelValue: i.value,
1195
- "onUpdate:modelValue": o[5] || (o[5] = (b) => i.value = b),
1217
+ o(le, {
1218
+ modelValue: u.value,
1219
+ "onUpdate:modelValue": r[5] || (r[5] = (C) => u.value = C),
1196
1220
  width: "602",
1197
1221
  "align-center": "",
1198
1222
  "destroy-on-close": ""
1199
1223
  }, {
1200
- header: f(({ titleId: b, titleClass: U }) => [
1201
- x("div", Yt, [
1202
- x("span", {
1203
- id: b,
1204
- class: Q(U)
1205
- }, " 因子筛选 ", 10, Ht),
1206
- u(w, {
1224
+ header: f(({ titleId: C, titleClass: N }) => [
1225
+ O("div", Ht, [
1226
+ O("span", {
1227
+ id: C,
1228
+ class: J(N)
1229
+ }, " 因子筛选 ", 10, Gt),
1230
+ o(M, {
1207
1231
  effect: "dark",
1208
1232
  content: "点击查看: 因子使用说明",
1209
1233
  placement: "right"
1210
1234
  }, {
1211
1235
  default: f(() => [
1212
- u(M, {
1213
- onClick: o[1] || (o[1] = (V) => d.value = !0)
1236
+ o(I, {
1237
+ onClick: r[1] || (r[1] = (b) => c.value = !0)
1214
1238
  }, {
1215
1239
  default: f(() => [
1216
- u(I(vt))
1240
+ o(T(gt))
1217
1241
  ]),
1218
1242
  _: 1
1219
1243
  })
@@ -1223,72 +1247,72 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
1223
1247
  ])
1224
1248
  ]),
1225
1249
  footer: f(() => [
1226
- x("div", Kt, [
1227
- u(y, {
1250
+ O("div", Xt, [
1251
+ o(x, {
1228
1252
  type: "primary",
1229
- onClick: D
1253
+ onClick: R
1230
1254
  }, {
1231
1255
  default: f(() => [
1232
- z("确定")
1256
+ F("确定")
1233
1257
  ]),
1234
1258
  _: 1
1235
1259
  })
1236
1260
  ])
1237
1261
  ]),
1238
1262
  default: f(() => [
1239
- u(ee, {
1263
+ o(te, {
1240
1264
  ref_key: "dialogFormRef",
1241
- ref: O,
1265
+ ref: $,
1242
1266
  model: e.value
1243
1267
  }, {
1244
1268
  default: f(() => [
1245
- (s(!0), k(T, null, F(e.value.list, (b, U) => (s(), k("div", Gt, [
1246
- x("span", Qt, A(`条件${U + 1}`), 1),
1247
- b.key === "compare" ? (s(), k(T, { key: 0 }, [
1248
- r.config.cycleShow ? (s(), C(m, {
1269
+ (n(!0), k(E, null, z(e.value.list, (C, N) => (n(), k("div", Qt, [
1270
+ O("span", Jt, Y(`条件${N + 1}`), 1),
1271
+ C.key === "compare" ? (n(), k(E, { key: 0 }, [
1272
+ s.config.cycleShow ? (n(), U(V, {
1249
1273
  key: 0,
1250
- prop: "list." + U + ".cycle",
1274
+ prop: "list." + N + ".cycle",
1251
1275
  rules: { required: !0, message: "周期不能为空", trigger: "blur" },
1252
1276
  style: { width: "100px", "margin-right": "10px" }
1253
1277
  }, {
1254
1278
  default: f(() => [
1255
- u($, {
1256
- modelValue: b.cycle,
1257
- "onUpdate:modelValue": (V) => b.cycle = V,
1279
+ o(v, {
1280
+ modelValue: C.cycle,
1281
+ "onUpdate:modelValue": (b) => C.cycle = b,
1258
1282
  placeholder: "选择周期",
1259
1283
  size: "small"
1260
1284
  }, {
1261
1285
  default: f(() => [
1262
- (s(!0), k(T, null, F(r.config.cycleOptions, ({ label: V, value: N }) => (s(), C(a, {
1263
- label: V,
1264
- value: N,
1265
- key: N
1286
+ (n(!0), k(E, null, z(s.config.cycleOptions, ({ label: b, value: S }) => (n(), U(p, {
1287
+ label: b,
1288
+ value: S,
1289
+ key: S
1266
1290
  }, null, 8, ["label", "value"]))), 128))
1267
1291
  ]),
1268
1292
  _: 2
1269
1293
  }, 1032, ["modelValue", "onUpdate:modelValue"])
1270
1294
  ]),
1271
1295
  _: 2
1272
- }, 1032, ["prop"])) : q("", !0),
1273
- u(m, {
1274
- prop: "list." + U + ".factor",
1296
+ }, 1032, ["prop"])) : D("", !0),
1297
+ o(V, {
1298
+ prop: "list." + N + ".factor",
1275
1299
  rules: { required: !0, message: "因子不能为空", trigger: "blur" },
1276
1300
  style: { width: "100px", "margin-right": "10px" }
1277
1301
  }, {
1278
1302
  default: f(() => [
1279
- u($, {
1280
- modelValue: b.factor,
1281
- "onUpdate:modelValue": (V) => b.factor = V,
1303
+ o(v, {
1304
+ modelValue: C.factor,
1305
+ "onUpdate:modelValue": (b) => C.factor = b,
1282
1306
  placeholder: "选择因子",
1283
1307
  filterable: "",
1284
1308
  size: "small",
1285
1309
  "no-match-text": "无匹配数据"
1286
1310
  }, {
1287
1311
  default: f(() => [
1288
- (s(!0), k(T, null, F(r.config.factorOptions, ({ label: V, value: N }) => (s(), C(a, {
1289
- label: V,
1290
- value: N,
1291
- key: N
1312
+ (n(!0), k(E, null, z(s.config.factorOptions, ({ label: b, value: S }) => (n(), U(p, {
1313
+ label: b,
1314
+ value: S,
1315
+ key: S
1292
1316
  }, null, 8, ["label", "value"]))), 128))
1293
1317
  ]),
1294
1318
  _: 2
@@ -1296,18 +1320,18 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
1296
1320
  ]),
1297
1321
  _: 2
1298
1322
  }, 1032, ["prop"]),
1299
- u(m, { style: { width: "52px", "margin-right": "10px" } }, {
1323
+ o(V, { style: { width: "52px", "margin-right": "10px" } }, {
1300
1324
  default: f(() => [
1301
- u($, {
1302
- modelValue: b.compareType,
1303
- "onUpdate:modelValue": (V) => b.compareType = V,
1325
+ o(v, {
1326
+ modelValue: C.compareType,
1327
+ "onUpdate:modelValue": (b) => C.compareType = b,
1304
1328
  size: "small"
1305
1329
  }, {
1306
1330
  default: f(() => [
1307
- (s(), k(T, null, F([">", ">=", "<", "<="], (V) => u(a, {
1308
- label: V,
1309
- value: V,
1310
- key: V
1331
+ (n(), k(E, null, z([">", ">=", "<", "<="], (b) => o(p, {
1332
+ label: b,
1333
+ value: b,
1334
+ key: b
1311
1335
  }, null, 8, ["label", "value"])), 64))
1312
1336
  ]),
1313
1337
  _: 2
@@ -1315,50 +1339,50 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
1315
1339
  ]),
1316
1340
  _: 2
1317
1341
  }, 1024),
1318
- r.config.cycleShow ? (s(), C(m, {
1342
+ s.config.cycleShow ? (n(), U(V, {
1319
1343
  key: 1,
1320
- prop: "list." + U + ".cycle2",
1344
+ prop: "list." + N + ".cycle2",
1321
1345
  rules: { required: !0, message: "周期不能为空", trigger: "blur" },
1322
1346
  style: { width: "100px", "margin-right": "10px" }
1323
1347
  }, {
1324
1348
  default: f(() => [
1325
- u($, {
1326
- modelValue: b.cycle2,
1327
- "onUpdate:modelValue": (V) => b.cycle2 = V,
1349
+ o(v, {
1350
+ modelValue: C.cycle2,
1351
+ "onUpdate:modelValue": (b) => C.cycle2 = b,
1328
1352
  placeholder: "选择周期",
1329
1353
  size: "small"
1330
1354
  }, {
1331
1355
  default: f(() => [
1332
- (s(!0), k(T, null, F(r.config.cycleOptions, ({ label: V, value: N }) => (s(), C(a, {
1333
- label: V,
1334
- value: N,
1335
- key: N
1356
+ (n(!0), k(E, null, z(s.config.cycleOptions, ({ label: b, value: S }) => (n(), U(p, {
1357
+ label: b,
1358
+ value: S,
1359
+ key: S
1336
1360
  }, null, 8, ["label", "value"]))), 128))
1337
1361
  ]),
1338
1362
  _: 2
1339
1363
  }, 1032, ["modelValue", "onUpdate:modelValue"])
1340
1364
  ]),
1341
1365
  _: 2
1342
- }, 1032, ["prop"])) : q("", !0),
1343
- u(m, {
1344
- prop: "list." + U + ".factor2",
1366
+ }, 1032, ["prop"])) : D("", !0),
1367
+ o(V, {
1368
+ prop: "list." + N + ".factor2",
1345
1369
  rules: { required: !0, message: "因子不能为空", trigger: "blur" },
1346
1370
  style: { width: "100px", "margin-right": "10px" }
1347
1371
  }, {
1348
1372
  default: f(() => [
1349
- u($, {
1350
- modelValue: b.factor2,
1351
- "onUpdate:modelValue": (V) => b.factor2 = V,
1373
+ o(v, {
1374
+ modelValue: C.factor2,
1375
+ "onUpdate:modelValue": (b) => C.factor2 = b,
1352
1376
  placeholder: "选择因子",
1353
1377
  filterable: "",
1354
1378
  size: "small",
1355
1379
  "no-match-text": "无匹配数据"
1356
1380
  }, {
1357
1381
  default: f(() => [
1358
- (s(!0), k(T, null, F(r.config.factorOptions, ({ label: V, value: N }) => (s(), C(a, {
1359
- label: V,
1360
- value: N,
1361
- key: N
1382
+ (n(!0), k(E, null, z(s.config.factorOptions, ({ label: b, value: S }) => (n(), U(p, {
1383
+ label: b,
1384
+ value: S,
1385
+ key: S
1362
1386
  }, null, 8, ["label", "value"]))), 128))
1363
1387
  ]),
1364
1388
  _: 2
@@ -1366,51 +1390,51 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
1366
1390
  ]),
1367
1391
  _: 2
1368
1392
  }, 1032, ["prop"])
1369
- ], 64)) : (s(), k(T, { key: 1 }, [
1370
- r.config.cycleShow ? (s(), C(m, {
1393
+ ], 64)) : (n(), k(E, { key: 1 }, [
1394
+ s.config.cycleShow ? (n(), U(V, {
1371
1395
  key: 0,
1372
- prop: "list." + U + ".cycle",
1396
+ prop: "list." + N + ".cycle",
1373
1397
  rules: { required: !0, message: "周期不能为空", trigger: "blur" },
1374
1398
  style: { width: "100px", "margin-right": "10px" }
1375
1399
  }, {
1376
1400
  default: f(() => [
1377
- u($, {
1378
- modelValue: b.cycle,
1379
- "onUpdate:modelValue": (V) => b.cycle = V,
1401
+ o(v, {
1402
+ modelValue: C.cycle,
1403
+ "onUpdate:modelValue": (b) => C.cycle = b,
1380
1404
  placeholder: "选择周期",
1381
1405
  size: "small"
1382
1406
  }, {
1383
1407
  default: f(() => [
1384
- (s(!0), k(T, null, F(r.config.cycleOptions, ({ label: V, value: N }) => (s(), C(a, {
1385
- label: V,
1386
- value: N,
1387
- key: N
1408
+ (n(!0), k(E, null, z(s.config.cycleOptions, ({ label: b, value: S }) => (n(), U(p, {
1409
+ label: b,
1410
+ value: S,
1411
+ key: S
1388
1412
  }, null, 8, ["label", "value"]))), 128))
1389
1413
  ]),
1390
1414
  _: 2
1391
1415
  }, 1032, ["modelValue", "onUpdate:modelValue"])
1392
1416
  ]),
1393
1417
  _: 2
1394
- }, 1032, ["prop"])) : q("", !0),
1395
- u(m, {
1396
- prop: "list." + U + ".factor",
1418
+ }, 1032, ["prop"])) : D("", !0),
1419
+ o(V, {
1420
+ prop: "list." + N + ".factor",
1397
1421
  rules: { required: !0, message: "因子不能为空", trigger: "blur" },
1398
1422
  style: { width: "100px", "margin-right": "10px" }
1399
1423
  }, {
1400
1424
  default: f(() => [
1401
- u($, {
1402
- modelValue: b.factor,
1403
- "onUpdate:modelValue": (V) => b.factor = V,
1425
+ o(v, {
1426
+ modelValue: C.factor,
1427
+ "onUpdate:modelValue": (b) => C.factor = b,
1404
1428
  placeholder: "选择因子",
1405
1429
  filterable: "",
1406
1430
  size: "small",
1407
1431
  "no-match-text": "无匹配数据"
1408
1432
  }, {
1409
1433
  default: f(() => [
1410
- (s(!0), k(T, null, F(r.config.factorOptions, ({ label: V, value: N }) => (s(), C(a, {
1411
- label: V,
1412
- value: N,
1413
- key: N
1434
+ (n(!0), k(E, null, z(s.config.factorOptions, ({ label: b, value: S }) => (n(), U(p, {
1435
+ label: b,
1436
+ value: S,
1437
+ key: S
1414
1438
  }, null, 8, ["label", "value"]))), 128))
1415
1439
  ]),
1416
1440
  _: 2
@@ -1418,23 +1442,23 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
1418
1442
  ]),
1419
1443
  _: 2
1420
1444
  }, 1032, ["prop"]),
1421
- u(m, {
1422
- prop: "list." + U + ".score",
1423
- rules: { validator: I(Bt), trigger: "blur" },
1445
+ o(V, {
1446
+ prop: "list." + N + ".score",
1447
+ rules: { validator: T(jt), trigger: "blur" },
1424
1448
  style: { width: "200px", "margin-right": "10px" }
1425
1449
  }, {
1426
1450
  default: f(() => [
1427
- x("div", Jt, [
1428
- u(t, {
1429
- modelValue: b.score[0],
1430
- "onUpdate:modelValue": (V) => b.score[0] = V,
1451
+ O("div", Wt, [
1452
+ o(m, {
1453
+ modelValue: C.score[0],
1454
+ "onUpdate:modelValue": (b) => C.score[0] = b,
1431
1455
  size: "small",
1432
1456
  "controls-position": "right"
1433
1457
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
1434
- Wt,
1435
- u(t, {
1436
- modelValue: b.score[1],
1437
- "onUpdate:modelValue": (V) => b.score[1] = V,
1458
+ Zt,
1459
+ o(m, {
1460
+ modelValue: C.score[1],
1461
+ "onUpdate:modelValue": (b) => C.score[1] = b,
1438
1462
  size: "small",
1439
1463
  "controls-position": "right"
1440
1464
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
@@ -1443,86 +1467,86 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
1443
1467
  _: 2
1444
1468
  }, 1032, ["prop", "rules"])
1445
1469
  ], 64)),
1446
- u(M, {
1447
- onClick: (V) => L(U)
1470
+ o(I, {
1471
+ onClick: (b) => L(N)
1448
1472
  }, {
1449
1473
  default: f(() => [
1450
- u(I(gt))
1474
+ o(T(yt))
1451
1475
  ]),
1452
1476
  _: 2
1453
1477
  }, 1032, ["onClick"])
1454
1478
  ]))), 256)),
1455
- u(y, {
1479
+ o(x, {
1456
1480
  type: "primary",
1457
1481
  plain: "",
1458
1482
  size: "small",
1459
- icon: I(ie),
1460
- onClick: v,
1483
+ icon: T(ce),
1484
+ onClick: y,
1461
1485
  style: { "margin-bottom": "10px" }
1462
1486
  }, {
1463
1487
  default: f(() => [
1464
- z("添加因子")
1488
+ F("添加因子")
1465
1489
  ]),
1466
1490
  _: 1
1467
1491
  }, 8, ["icon"]),
1468
- u(y, {
1492
+ o(x, {
1469
1493
  type: "primary",
1470
1494
  plain: "",
1471
1495
  size: "small",
1472
- icon: I(ie),
1473
- onClick: o[2] || (o[2] = (b) => v("compare")),
1496
+ icon: T(ce),
1497
+ onClick: r[2] || (r[2] = (C) => y("compare")),
1474
1498
  style: { "margin-bottom": "10px" }
1475
1499
  }, {
1476
1500
  default: f(() => [
1477
- z("添加因子对比")
1501
+ F("添加因子对比")
1478
1502
  ]),
1479
1503
  _: 1
1480
1504
  }, 8, ["icon"]),
1481
- r.config.sqlShow ? (s(), k(T, { key: 0 }, [
1482
- u(m, { label: "SQL功能: " }, {
1505
+ s.config.sqlShow ? (n(), k(E, { key: 0 }, [
1506
+ o(V, { label: "SQL功能: " }, {
1483
1507
  default: f(() => [
1484
- u(P, {
1508
+ o(A, {
1485
1509
  modelValue: e.value.sqlEnable,
1486
- "onUpdate:modelValue": o[3] || (o[3] = (b) => e.value.sqlEnable = b)
1510
+ "onUpdate:modelValue": r[3] || (r[3] = (C) => e.value.sqlEnable = C)
1487
1511
  }, {
1488
1512
  default: f(() => [
1489
- u(R, {
1513
+ o(a, {
1490
1514
  label: "关闭",
1491
1515
  value: 0
1492
1516
  }),
1493
- u(R, {
1517
+ o(a, {
1494
1518
  label: "启用",
1495
1519
  value: 1
1496
1520
  })
1497
1521
  ]),
1498
1522
  _: 1
1499
1523
  }, 8, ["modelValue"]),
1500
- e.value.sqlEnable ? (s(), C(y, {
1524
+ e.value.sqlEnable ? (n(), U(x, {
1501
1525
  key: 0,
1502
1526
  type: "primary",
1503
1527
  size: "small",
1504
- onClick: p,
1528
+ onClick: d,
1505
1529
  style: { "margin-left": "auto" }
1506
1530
  }, {
1507
1531
  default: f(() => [
1508
- z("生成SQL")
1532
+ F("生成SQL")
1509
1533
  ]),
1510
1534
  _: 1
1511
- })) : q("", !0)
1535
+ })) : D("", !0)
1512
1536
  ]),
1513
1537
  _: 1
1514
1538
  }),
1515
- e.value.sqlEnable ? (s(), k(T, { key: 0 }, [
1516
- u(re, {
1539
+ e.value.sqlEnable ? (n(), k(E, { key: 0 }, [
1540
+ o(j, {
1517
1541
  modelValue: e.value.sqlValue,
1518
- "onUpdate:modelValue": o[4] || (o[4] = (b) => e.value.sqlValue = b),
1542
+ "onUpdate:modelValue": r[4] || (r[4] = (C) => e.value.sqlValue = C),
1519
1543
  autosize: { minRows: 4 },
1520
1544
  type: "textarea",
1521
1545
  style: { "margin-bottom": "10px" }
1522
1546
  }, null, 8, ["modelValue"]),
1523
- Zt
1524
- ], 64)) : q("", !0)
1525
- ], 64)) : q("", !0)
1547
+ Kt
1548
+ ], 64)) : D("", !0)
1549
+ ], 64)) : D("", !0)
1526
1550
  ]),
1527
1551
  _: 1
1528
1552
  }, 8, ["model"])
@@ -1530,27 +1554,30 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
1530
1554
  _: 1
1531
1555
  }, 8, ["modelValue"])
1532
1556
  ]),
1533
- u(jt, {
1534
- visible: d.value,
1535
- "onUpdate:visible": o[6] || (o[6] = (b) => d.value = b),
1536
- data: r.config.factorDescriptions
1557
+ o(At, {
1558
+ visible: c.value,
1559
+ "onUpdate:visible": r[6] || (r[6] = (C) => c.value = C),
1560
+ data: s.config.factorDescriptions
1537
1561
  }, null, 8, ["visible", "data"])
1538
1562
  ], 64);
1539
1563
  };
1540
1564
  }
1541
- }, el = /* @__PURE__ */ ke(Xt, [["__scopeId", "data-v-3cac46e2"]]);
1542
- const _e = (r) => (ge("data-v-c3a0c0f0"), r = r(), ye(), r), tl = {
1565
+ }, tl = /* @__PURE__ */ he(el, [["__scopeId", "data-v-3cac46e2"]]);
1566
+ const ue = (s) => (be("data-v-7cb706a5"), s = s(), ke(), s), ll = {
1543
1567
  key: 0,
1544
1568
  class: "common-indicator"
1545
- }, ll = { class: "indicator" }, nl = /* @__PURE__ */ _e(() => /* @__PURE__ */ x("div", { class: "title" }, [
1546
- /* @__PURE__ */ x("span", null, "常用指标: "),
1547
- /* @__PURE__ */ x("span", null, "不限")
1548
- ], -1)), al = { class: "options" }, ol = ["onClick"], sl = { class: "tags" }, rl = ["onClick"], il = {
1569
+ }, nl = { class: "indicator" }, al = /* @__PURE__ */ ue(() => /* @__PURE__ */ O("div", { class: "title" }, [
1570
+ /* @__PURE__ */ O("span", null, "常用指标: "),
1571
+ /* @__PURE__ */ O("span", null, "不限")
1572
+ ], -1)), ol = { class: "options" }, sl = ["onClick"], rl = { class: "tags" }, ul = ["onClick"], il = { style: { "font-size": "18px" } }, cl = {
1573
+ key: 0,
1574
+ class: "out-box"
1575
+ }, dl = /* @__PURE__ */ ue(() => /* @__PURE__ */ O("span", null, "自定义: ", -1)), pl = {
1549
1576
  key: 0,
1550
1577
  class: "convenient-option-box"
1551
- }, ul = { class: "out-box" }, cl = /* @__PURE__ */ _e(() => /* @__PURE__ */ x("span", null, "自定义: ", -1)), dl = { key: 0 }, pl = { key: 0 }, fl = { key: 0 }, ml = { key: 1 }, vl = { class: "tFeaturelncomes-option-box" }, gl = { class: "tFeaturelncomes-out-box" }, yl = /* @__PURE__ */ _e(() => /* @__PURE__ */ x("span", null, "自定义: ", -1)), bl = { key: 2 }, kl = { key: 3 }, _l = { key: 4 }, hl = { class: "dialog-footer" }, xl = {
1578
+ }, fl = { class: "out-box" }, ml = /* @__PURE__ */ ue(() => /* @__PURE__ */ O("span", null, "自定义: ", -1)), vl = { key: 0 }, gl = { key: 0 }, yl = { key: 0 }, bl = { key: 1 }, kl = { class: "tFeaturelncomes-option-box" }, _l = { class: "tFeaturelncomes-out-box" }, hl = /* @__PURE__ */ ue(() => /* @__PURE__ */ O("span", null, "自定义: ", -1)), xl = { key: 2 }, Ol = { key: 3 }, Vl = { key: 4 }, $l = { class: "dialog-footer" }, Il = {
1552
1579
  __name: "index",
1553
- props: /* @__PURE__ */ oe({
1580
+ props: /* @__PURE__ */ se({
1554
1581
  config: { type: Object, default: () => {
1555
1582
  } },
1556
1583
  varietyMarket: { type: Number, default: () => null },
@@ -1562,28 +1589,28 @@ const _e = (r) => (ge("data-v-c3a0c0f0"), r = r(), ye(), r), tl = {
1562
1589
  dataModifiers: {}
1563
1590
  }),
1564
1591
  emits: ["update:data"],
1565
- setup(r) {
1566
- const c = se(r, "data"), n = r, i = Y(!1), d = j(() => {
1592
+ setup(s) {
1593
+ const i = re(s, "data"), l = s, u = H(!1), c = B(() => {
1567
1594
  let g = [];
1568
- return n.varietyMarket === null && !n.commonOption.length ? g = n.config.options : (g = n.config.options, n.varietyMarket && (g = g.filter(({ parent: l }) => l.varietyMarketIds.includes(n.varietyMarket))), n.commonOption.length && (g = g.filter(({ parent: l }) => {
1569
- const { commonOptionIds: o } = l;
1570
- return [.../* @__PURE__ */ new Set([...o, ...n.commonOption])].length !== [...o, ...n.commonOption].length;
1595
+ return l.varietyMarket === null && !l.commonOption.length ? g = l.config.options : (g = l.config.options, l.varietyMarket && (g = g.filter(({ parent: t }) => t.varietyMarketIds.includes(l.varietyMarket))), l.commonOption.length && (g = g.filter(({ parent: t }) => {
1596
+ const { commonOptionIds: r } = t;
1597
+ return [.../* @__PURE__ */ new Set([...r, ...l.commonOption])].length !== [...r, ...l.commonOption].length;
1571
1598
  }))), g;
1572
- }), O = Y({}), e = Y({}), E = (g) => {
1573
- O.value = g;
1574
- const l = {
1599
+ }), $ = H({}), e = H({}), q = (g) => {
1600
+ $.value = g;
1601
+ const t = {
1575
1602
  key: g.key,
1576
1603
  type: g.type,
1577
1604
  label: g.label
1578
1605
  };
1579
1606
  switch (g.key) {
1580
1607
  case "st": {
1581
- e.value = { ...l, st: null };
1608
+ e.value = { ...t, st: null };
1582
1609
  break;
1583
1610
  }
1584
1611
  case "tFeaturelncomes": {
1585
1612
  e.value = {
1586
- ...l,
1613
+ ...t,
1587
1614
  rule: 1,
1588
1615
  // 1超 2跌
1589
1616
  withFewYears: null,
@@ -1593,16 +1620,16 @@ const _e = (r) => (ge("data-v-c3a0c0f0"), r = r(), ye(), r), tl = {
1593
1620
  break;
1594
1621
  }
1595
1622
  case "priceLevels": {
1596
- e.value = { ...l, priceLevels: null };
1623
+ e.value = { ...t, priceLevels: null };
1597
1624
  break;
1598
1625
  }
1599
1626
  case "peTtmLevels": {
1600
- e.value = { ...l, peTtmLevels: null };
1627
+ e.value = { ...t, peTtmLevels: null };
1601
1628
  break;
1602
1629
  }
1603
1630
  case "optionsCpType": {
1604
1631
  e.value = {
1605
- ...l,
1632
+ ...t,
1606
1633
  optionsCpType: null
1607
1634
  // 1看涨 2看跌
1608
1635
  };
@@ -1610,65 +1637,69 @@ const _e = (r) => (ge("data-v-c3a0c0f0"), r = r(), ye(), r), tl = {
1610
1637
  }
1611
1638
  default:
1612
1639
  e.value = {
1613
- ...l,
1640
+ ...t,
1614
1641
  range: [null, null],
1615
- unit: g.defaultUnit.length ? [...g.defaultUnit] : [null, null]
1642
+ unit: g.defaultUnit.length ? [...g.defaultUnit] : [null, null],
1643
+ radioType: g.defaultRadioType,
1644
+ // 0数值 1排名
1645
+ rankRange: g.defaultRankRange || [null, null]
1646
+ // 默认排名
1616
1647
  };
1617
1648
  }
1618
- i.value = !0;
1619
- }, D = () => {
1649
+ u.value = !0;
1650
+ }, R = () => {
1620
1651
  switch (e.value.key) {
1621
1652
  case "st": {
1622
- const { label: l, st: o } = e.value;
1623
- if (o === null)
1624
- return J.warning("格式错误: 请至少选择一个值");
1625
- e.value.tagText = `${l}: ${o ? "是" : "否"}`;
1653
+ const { label: t, st: r } = e.value;
1654
+ if (r === null)
1655
+ return W.warning("格式错误: 请至少选择一个值");
1656
+ e.value.tagText = `${t}: ${r ? "是" : "否"}`;
1626
1657
  break;
1627
1658
  }
1628
1659
  case "tFeaturelncomes": {
1629
- const { label: l, rule: o, withFewYears: _, yearsCount: h, netProfit: y } = e.value;
1630
- if (["", null].includes(_) || ["", null].includes(h) || ["", null].includes(y))
1631
- return J.warning("格式错误: 请填写完整");
1632
- e.value.tagText = `${l}: ${_}年内${h}年以上盈利${o === 1 ? "超" : "跌"}过${y}亿`;
1660
+ const { label: t, rule: r, withFewYears: w, yearsCount: h, netProfit: x } = e.value;
1661
+ if (["", null].includes(w) || ["", null].includes(h) || ["", null].includes(x))
1662
+ return W.warning("格式错误: 请填写完整");
1663
+ e.value.tagText = `${t}: ${w}年内${h}年以上盈利${r === 1 ? "超" : "跌"}过${x}亿`;
1633
1664
  break;
1634
1665
  }
1635
1666
  case "priceLevels": {
1636
- const { label: l, priceLevels: o } = e.value;
1637
- if (!o || o.length === 0)
1638
- return J.warning("格式错误: 请至少选择一个值");
1639
- e.value.tagText = `${l}: 已选${o}分位`;
1667
+ const { label: t, priceLevels: r } = e.value;
1668
+ if (!r || r.length === 0)
1669
+ return W.warning("格式错误: 请至少选择一个值");
1670
+ e.value.tagText = `${t}: 已选${r}分位`;
1640
1671
  break;
1641
1672
  }
1642
1673
  case "peTtmLevels": {
1643
- const { label: l, peTtmLevels: o } = e.value;
1644
- if (!o || o.length === 0)
1645
- return J.warning("格式错误: 请至少选择一个值");
1646
- e.value.tagText = `${l}: 已选${o}分位`;
1674
+ const { label: t, peTtmLevels: r } = e.value;
1675
+ if (!r || r.length === 0)
1676
+ return W.warning("格式错误: 请至少选择一个值");
1677
+ e.value.tagText = `${t}: 已选${r}分位`;
1647
1678
  break;
1648
1679
  }
1649
1680
  case "optionsCpType": {
1650
- const { label: l, optionsCpType: o } = e.value;
1651
- if (o === null)
1652
- return J.warning("格式错误: 请至少选择一个值");
1653
- e.value.tagText = `${l}: ${o === 1 ? "看涨" : "看跌"}`;
1681
+ const { label: t, optionsCpType: r } = e.value;
1682
+ if (r === null)
1683
+ return W.warning("格式错误: 请至少选择一个值");
1684
+ e.value.tagText = `${t}: ${r === 1 ? "看涨" : "看跌"}`;
1654
1685
  break;
1655
1686
  }
1656
1687
  default: {
1657
- const { label: l, range: o, unit: _ } = e.value;
1658
- if (["", null].includes(o[0]) && ["", null].includes(o[1]))
1659
- return J.warning("格式错误: 请至少填写一个值");
1660
- !["", null].includes(o[0]) && !["", null].includes(o[1]) ? e.value.tagText = `${l}: ${o[0]}${_[0] ?? ""} ~ ${o[1]}${_[1] ?? ""}` : ["", null].includes(o[0]) ? e.value.tagText = `${l}: ≤${o[1]}${_[1] ?? ""}` : e.value.tagText = `${l}: ≥${o[0]}${_[0] ?? ""}`;
1688
+ const { label: t, unit: r, radioType: w } = e.value, h = w === "1" ? e.value.rankRange : e.value.range;
1689
+ if (["", null].includes(h[0]) && ["", null].includes(h[1]))
1690
+ return W.warning("格式错误: 请至少填写一个值");
1691
+ !["", null].includes(h[0]) && !["", null].includes(h[1]) ? e.value.tagText = `${t}${w === "1" ? "排名" : ""}: ${h[0]}${r[0] ?? ""} ~ ${h[1]}${r[1] ?? ""}` : ["", null].includes(h[0]) ? e.value.tagText = `${t}${w === "1" ? "排名" : ""}: ≤${h[1]}${r[1] ?? ""}` : e.value.tagText = `${t}${w === "1" ? "排名" : ""}: ≥${h[0]}${r[0] ?? ""}`;
1661
1692
  }
1662
1693
  }
1663
- const g = c.value.findIndex(({ key: l }) => l === e.value.key);
1664
- g === -1 ? c.value.push(e.value) : c.value.splice(g, 1, e.value), i.value = !1;
1694
+ const g = i.value.findIndex(({ key: t }) => t === e.value.key);
1695
+ g === -1 ? i.value.push(e.value) : i.value.splice(g, 1, e.value), u.value = !1;
1665
1696
  }, L = (g) => {
1666
- O.value = d.value.find(({ key: l }) => l === g.key), e.value = JSON.parse(JSON.stringify(g)), i.value = !0;
1667
- }, v = (g) => {
1668
- c.value.splice(g, 1);
1669
- }, p = (g) => {
1697
+ $.value = c.value.find(({ key: t }) => t === g.key), e.value = JSON.parse(JSON.stringify(g)), u.value = !0;
1698
+ }, y = (g) => {
1699
+ i.value.splice(g, 1);
1700
+ }, d = (g) => {
1670
1701
  e.value.range = [...g.range], e.value.unit = [...g.unit];
1671
- }, S = (g) => {
1702
+ }, _ = (g) => {
1672
1703
  switch (g) {
1673
1704
  case "≤0":
1674
1705
  Object.assign(e.value, {
@@ -1713,93 +1744,106 @@ const _e = (r) => (ge("data-v-c3a0c0f0"), r = r(), ye(), r), tl = {
1713
1744
  break;
1714
1745
  }
1715
1746
  };
1716
- return ae(
1717
- () => d.value,
1747
+ return oe(
1748
+ () => c.value,
1718
1749
  () => {
1719
- c.value.length && (c.value = c.value.filter(({ key: g }) => d.value.find((l) => l.key === g)));
1750
+ i.value.length && (i.value = i.value.filter(({ key: g }) => c.value.find((t) => t.key === g)));
1720
1751
  }
1721
- ), (g, l) => {
1722
- const o = Pe, _ = Ae, h = Be, y = je, M = Re, w = fe, a = me, $ = Ee, m = be;
1723
- return r.config.show && d.value.length ? (s(), k("div", tl, [
1724
- x("div", ll, [
1725
- nl,
1726
- x("div", al, [
1727
- (s(!0), k(T, null, F(d.value, (t) => (s(), k("span", {
1728
- key: t.key,
1729
- onClick: (R) => E(t)
1730
- }, A(t.label), 9, ol))), 128))
1752
+ ), (g, t) => {
1753
+ const r = Pe, w = et, h = ge, x = Ne, I = Ae, M = Be, p = je, v = ve, V = Ee, m = _e;
1754
+ return s.config.show && c.value.length ? (n(), k("div", ll, [
1755
+ O("div", nl, [
1756
+ al,
1757
+ O("div", ol, [
1758
+ (n(!0), k(E, null, z(c.value, (a) => (n(), k("span", {
1759
+ key: a.key,
1760
+ onClick: (A) => q(a)
1761
+ }, Y(a.label), 9, sl))), 128))
1731
1762
  ])
1732
1763
  ]),
1733
- x("div", sl, [
1734
- (s(!0), k(T, null, F(c.value, (t, R) => (s(), C(o, {
1764
+ O("div", rl, [
1765
+ (n(!0), k(E, null, z(i.value, (a, A) => (n(), U(r, {
1735
1766
  closable: "",
1736
1767
  type: "info",
1737
- onClose: (P) => v(R)
1768
+ onClose: (j) => y(A)
1738
1769
  }, {
1739
1770
  default: f(() => [
1740
- x("span", null, A(t.tagText), 1),
1741
- x("span", {
1771
+ O("span", null, Y(a.tagText), 1),
1772
+ O("span", {
1742
1773
  class: "edit",
1743
- onClick: (P) => L(t)
1744
- }, "编辑", 8, rl)
1774
+ onClick: (j) => L(a)
1775
+ }, "编辑", 8, ul)
1745
1776
  ]),
1746
1777
  _: 2
1747
1778
  }, 1032, ["onClose"]))), 256))
1748
1779
  ]),
1749
- u(m, {
1750
- modelValue: i.value,
1751
- "onUpdate:modelValue": l[16] || (l[16] = (t) => i.value = t),
1752
- title: O.value.label,
1780
+ o(m, {
1781
+ modelValue: u.value,
1782
+ "onUpdate:modelValue": t[19] || (t[19] = (a) => u.value = a),
1783
+ title: $.value.label,
1753
1784
  width: "600",
1754
1785
  "align-center": "",
1755
1786
  "destroy-on-close": ""
1756
- }, {
1787
+ }, ie({
1757
1788
  footer: f(() => [
1758
- x("div", hl, [
1759
- u(_, {
1789
+ O("div", $l, [
1790
+ o(I, {
1760
1791
  type: "primary",
1761
- onClick: D
1792
+ onClick: R
1762
1793
  }, {
1763
1794
  default: f(() => [
1764
- z("确定")
1795
+ F("确定")
1765
1796
  ]),
1766
1797
  _: 1
1767
1798
  })
1768
1799
  ])
1769
1800
  ]),
1770
1801
  default: f(() => [
1771
- O.value.type === void 0 ? (s(), k(T, { key: 0 }, [
1772
- O.value.convenientOptions.length ? (s(), k("div", il, [
1773
- (s(!0), k(T, null, F(O.value.convenientOptions, (t) => (s(), C(_, {
1774
- key: t.text,
1775
- onClick: (R) => p(t)
1802
+ $.value.type === void 0 && e.value.radioType === "1" ? (n(), k("div", cl, [
1803
+ dl,
1804
+ o(x, {
1805
+ modelValue: e.value.rankRange[0],
1806
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.rankRange[0] = a),
1807
+ style: { flex: "1" }
1808
+ }, null, 8, ["modelValue"]),
1809
+ F(" ~ "),
1810
+ o(x, {
1811
+ modelValue: e.value.rankRange[1],
1812
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.rankRange[1] = a),
1813
+ style: { flex: "1" }
1814
+ }, null, 8, ["modelValue"])
1815
+ ])) : $.value.type === void 0 ? (n(), k(E, { key: 1 }, [
1816
+ $.value.convenientOptions.length ? (n(), k("div", pl, [
1817
+ (n(!0), k(E, null, z($.value.convenientOptions, (a) => (n(), U(I, {
1818
+ key: a.text,
1819
+ onClick: (A) => d(a)
1776
1820
  }, {
1777
1821
  default: f(() => [
1778
- z(A(t.text), 1)
1822
+ F(Y(a.text), 1)
1779
1823
  ]),
1780
1824
  _: 2
1781
1825
  }, 1032, ["onClick"]))), 128))
1782
- ])) : q("", !0),
1783
- x("div", ul, [
1784
- cl,
1785
- u(M, {
1826
+ ])) : D("", !0),
1827
+ O("div", fl, [
1828
+ ml,
1829
+ o(x, {
1786
1830
  modelValue: e.value.range[0],
1787
- "onUpdate:modelValue": l[1] || (l[1] = (t) => e.value.range[0] = t),
1831
+ "onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.range[0] = a),
1788
1832
  style: { flex: "1" }
1789
- }, $e({ _: 2 }, [
1790
- O.value.unitOptions.length ? {
1833
+ }, ie({ _: 2 }, [
1834
+ $.value.unitOptions.length ? {
1791
1835
  name: "append",
1792
1836
  fn: f(() => [
1793
- O.value.unitOptions.length === 1 ? (s(), k("span", dl, A(e.value.unit[0]), 1)) : (s(), C(y, {
1837
+ $.value.unitOptions.length === 1 ? (n(), k("span", vl, Y(e.value.unit[0]), 1)) : (n(), U(p, {
1794
1838
  key: 1,
1795
1839
  modelValue: e.value.unit[0],
1796
- "onUpdate:modelValue": l[0] || (l[0] = (t) => e.value.unit[0] = t),
1840
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.unit[0] = a),
1797
1841
  style: { width: "72px" }
1798
1842
  }, {
1799
1843
  default: f(() => [
1800
- (s(!0), k(T, null, F(O.value.unitOptions, (t) => (s(), C(h, {
1801
- label: t,
1802
- value: t
1844
+ (n(!0), k(E, null, z($.value.unitOptions, (a) => (n(), U(M, {
1845
+ label: a,
1846
+ value: a
1803
1847
  }, null, 8, ["label", "value"]))), 256))
1804
1848
  ]),
1805
1849
  _: 1
@@ -1808,25 +1852,25 @@ const _e = (r) => (ge("data-v-c3a0c0f0"), r = r(), ye(), r), tl = {
1808
1852
  key: "0"
1809
1853
  } : void 0
1810
1854
  ]), 1032, ["modelValue"]),
1811
- z(" ~ "),
1812
- u(M, {
1855
+ F(" ~ "),
1856
+ o(x, {
1813
1857
  modelValue: e.value.range[1],
1814
- "onUpdate:modelValue": l[3] || (l[3] = (t) => e.value.range[1] = t),
1858
+ "onUpdate:modelValue": t[6] || (t[6] = (a) => e.value.range[1] = a),
1815
1859
  style: { flex: "1" }
1816
- }, $e({ _: 2 }, [
1817
- O.value.unitOptions.length ? {
1860
+ }, ie({ _: 2 }, [
1861
+ $.value.unitOptions.length ? {
1818
1862
  name: "append",
1819
1863
  fn: f(() => [
1820
- O.value.unitOptions.length === 1 ? (s(), k("span", pl, A(e.value.unit[1]), 1)) : (s(), C(y, {
1864
+ $.value.unitOptions.length === 1 ? (n(), k("span", gl, Y(e.value.unit[1]), 1)) : (n(), U(p, {
1821
1865
  key: 1,
1822
1866
  modelValue: e.value.unit[1],
1823
- "onUpdate:modelValue": l[2] || (l[2] = (t) => e.value.unit[1] = t),
1867
+ "onUpdate:modelValue": t[5] || (t[5] = (a) => e.value.unit[1] = a),
1824
1868
  style: { width: "72px" }
1825
1869
  }, {
1826
1870
  default: f(() => [
1827
- (s(!0), k(T, null, F(O.value.unitOptions, (t) => (s(), C(h, {
1828
- label: t,
1829
- value: t
1871
+ (n(!0), k(E, null, z($.value.unitOptions, (a) => (n(), U(M, {
1872
+ label: a,
1873
+ value: a
1830
1874
  }, null, 8, ["label", "value"]))), 256))
1831
1875
  ]),
1832
1876
  _: 1
@@ -1836,181 +1880,206 @@ const _e = (r) => (ge("data-v-c3a0c0f0"), r = r(), ye(), r), tl = {
1836
1880
  } : void 0
1837
1881
  ]), 1032, ["modelValue"])
1838
1882
  ])
1839
- ], 64)) : (s(), k(T, { key: 1 }, [
1840
- O.value.key === "st" ? (s(), k("div", fl, [
1841
- u(a, {
1883
+ ], 64)) : (n(), k(E, { key: 2 }, [
1884
+ $.value.key === "st" ? (n(), k("div", yl, [
1885
+ o(h, {
1842
1886
  modelValue: e.value.st,
1843
- "onUpdate:modelValue": l[4] || (l[4] = (t) => e.value.st = t)
1887
+ "onUpdate:modelValue": t[7] || (t[7] = (a) => e.value.st = a)
1844
1888
  }, {
1845
1889
  default: f(() => [
1846
- u(w, {
1890
+ o(v, {
1847
1891
  label: "是",
1848
1892
  value: 1
1849
1893
  }),
1850
- u(w, {
1894
+ o(v, {
1851
1895
  label: "否",
1852
1896
  value: 0
1853
1897
  })
1854
1898
  ]),
1855
1899
  _: 1
1856
1900
  }, 8, ["modelValue"])
1857
- ])) : q("", !0),
1858
- O.value.key === "tFeaturelncomes" ? (s(), k("div", ml, [
1859
- x("div", vl, [
1860
- u(_, {
1861
- onClick: l[5] || (l[5] = (t) => S("≤0"))
1901
+ ])) : D("", !0),
1902
+ $.value.key === "tFeaturelncomes" ? (n(), k("div", bl, [
1903
+ O("div", kl, [
1904
+ o(I, {
1905
+ onClick: t[8] || (t[8] = (a) => _("≤0"))
1862
1906
  }, {
1863
1907
  default: f(() => [
1864
- z("≤0")
1908
+ F("≤0")
1865
1909
  ]),
1866
1910
  _: 1
1867
1911
  }),
1868
- u(_, {
1869
- onClick: l[6] || (l[6] = (t) => S("≥0"))
1912
+ o(I, {
1913
+ onClick: t[9] || (t[9] = (a) => _("≥0"))
1870
1914
  }, {
1871
1915
  default: f(() => [
1872
- z("≥0")
1916
+ F("≥0")
1873
1917
  ]),
1874
1918
  _: 1
1875
1919
  }),
1876
- u(_, {
1877
- onClick: l[7] || (l[7] = (t) => S("五年内有四年以上盈利超过5千万"))
1920
+ o(I, {
1921
+ onClick: t[10] || (t[10] = (a) => _("五年内有四年以上盈利超过5千万"))
1878
1922
  }, {
1879
1923
  default: f(() => [
1880
- z("五年内有四年以上盈利超过5千万")
1924
+ F("五年内有四年以上盈利超过5千万")
1881
1925
  ]),
1882
1926
  _: 1
1883
1927
  }),
1884
- u(_, {
1885
- onClick: l[8] || (l[8] = (t) => S("≥10亿"))
1928
+ o(I, {
1929
+ onClick: t[11] || (t[11] = (a) => _("≥10亿"))
1886
1930
  }, {
1887
1931
  default: f(() => [
1888
- z("≥10亿")
1932
+ F("≥10亿")
1889
1933
  ]),
1890
1934
  _: 1
1891
1935
  }),
1892
- u(_, {
1893
- onClick: l[9] || (l[9] = (t) => S("≥20亿"))
1936
+ o(I, {
1937
+ onClick: t[12] || (t[12] = (a) => _("≥20亿"))
1894
1938
  }, {
1895
1939
  default: f(() => [
1896
- z("≥20亿")
1940
+ F("≥20亿")
1897
1941
  ]),
1898
1942
  _: 1
1899
1943
  })
1900
1944
  ]),
1901
- x("div", gl, [
1902
- yl,
1903
- x("div", null, [
1904
- u($, {
1945
+ O("div", _l, [
1946
+ hl,
1947
+ O("div", null, [
1948
+ o(V, {
1905
1949
  modelValue: e.value.withFewYears,
1906
- "onUpdate:modelValue": l[10] || (l[10] = (t) => e.value.withFewYears = t),
1950
+ "onUpdate:modelValue": t[13] || (t[13] = (a) => e.value.withFewYears = a),
1907
1951
  "controls-position": "right"
1908
1952
  }, null, 8, ["modelValue"]),
1909
- z(" 年内 "),
1910
- u($, {
1953
+ F(" 年内 "),
1954
+ o(V, {
1911
1955
  modelValue: e.value.yearsCount,
1912
- "onUpdate:modelValue": l[11] || (l[11] = (t) => e.value.yearsCount = t),
1956
+ "onUpdate:modelValue": t[14] || (t[14] = (a) => e.value.yearsCount = a),
1913
1957
  "controls-position": "right"
1914
1958
  }, null, 8, ["modelValue"]),
1915
- z(" 年以上盈利" + A(e.value.rule === 1 ? "超" : "跌") + "过 ", 1),
1916
- u($, {
1959
+ F(" 年以上盈利" + Y(e.value.rule === 1 ? "超" : "跌") + "过 ", 1),
1960
+ o(V, {
1917
1961
  modelValue: e.value.netProfit,
1918
- "onUpdate:modelValue": l[12] || (l[12] = (t) => e.value.netProfit = t),
1962
+ "onUpdate:modelValue": t[15] || (t[15] = (a) => e.value.netProfit = a),
1919
1963
  "controls-position": "right"
1920
1964
  }, null, 8, ["modelValue"]),
1921
- z(" 亿 ")
1965
+ F(" 亿 ")
1922
1966
  ])
1923
1967
  ])
1924
- ])) : q("", !0),
1925
- O.value.key === "priceLevels" ? (s(), k("div", bl, [
1926
- u(y, {
1968
+ ])) : D("", !0),
1969
+ $.value.key === "priceLevels" ? (n(), k("div", xl, [
1970
+ o(p, {
1927
1971
  modelValue: e.value.priceLevels,
1928
- "onUpdate:modelValue": l[13] || (l[13] = (t) => e.value.priceLevels = t),
1972
+ "onUpdate:modelValue": t[16] || (t[16] = (a) => e.value.priceLevels = a),
1929
1973
  multiple: "",
1930
1974
  clearable: "",
1931
1975
  placeholder: "请选择",
1932
1976
  style: { width: "420px" }
1933
1977
  }, {
1934
1978
  default: f(() => [
1935
- (s(), k(T, null, F([1, 2, 3, 4, 5], (t) => u(h, {
1936
- key: t,
1937
- label: `${t}分位`,
1938
- value: t
1979
+ (n(), k(E, null, z([1, 2, 3, 4, 5], (a) => o(M, {
1980
+ key: a,
1981
+ label: `${a}分位`,
1982
+ value: a
1939
1983
  }, null, 8, ["label", "value"])), 64))
1940
1984
  ]),
1941
1985
  _: 1
1942
1986
  }, 8, ["modelValue"])
1943
- ])) : q("", !0),
1944
- O.value.key === "peTtmLevels" ? (s(), k("div", kl, [
1945
- u(y, {
1987
+ ])) : D("", !0),
1988
+ $.value.key === "peTtmLevels" ? (n(), k("div", Ol, [
1989
+ o(p, {
1946
1990
  modelValue: e.value.peTtmLevels,
1947
- "onUpdate:modelValue": l[14] || (l[14] = (t) => e.value.peTtmLevels = t),
1991
+ "onUpdate:modelValue": t[17] || (t[17] = (a) => e.value.peTtmLevels = a),
1948
1992
  multiple: "",
1949
1993
  clearable: "",
1950
1994
  placeholder: "请选择",
1951
1995
  style: { width: "420px" }
1952
1996
  }, {
1953
1997
  default: f(() => [
1954
- (s(), k(T, null, F([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (t) => u(h, {
1955
- key: t,
1956
- label: `${t}分位`,
1957
- value: t
1998
+ (n(), k(E, null, z([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (a) => o(M, {
1999
+ key: a,
2000
+ label: `${a}分位`,
2001
+ value: a
1958
2002
  }, null, 8, ["label", "value"])), 64))
1959
2003
  ]),
1960
2004
  _: 1
1961
2005
  }, 8, ["modelValue"])
1962
- ])) : q("", !0),
1963
- O.value.key === "optionsCpType" ? (s(), k("div", _l, [
1964
- u(a, {
2006
+ ])) : D("", !0),
2007
+ $.value.key === "optionsCpType" ? (n(), k("div", Vl, [
2008
+ o(h, {
1965
2009
  modelValue: e.value.optionsCpType,
1966
- "onUpdate:modelValue": l[15] || (l[15] = (t) => e.value.optionsCpType = t)
2010
+ "onUpdate:modelValue": t[18] || (t[18] = (a) => e.value.optionsCpType = a)
1967
2011
  }, {
1968
2012
  default: f(() => [
1969
- u(w, {
2013
+ o(v, {
1970
2014
  label: "看涨",
1971
2015
  value: 1
1972
2016
  }),
1973
- u(w, {
2017
+ o(v, {
1974
2018
  label: "看跌",
1975
2019
  value: 2
1976
2020
  })
1977
2021
  ]),
1978
2022
  _: 1
1979
2023
  }, 8, ["modelValue"])
1980
- ])) : q("", !0)
2024
+ ])) : D("", !0)
1981
2025
  ], 64))
1982
2026
  ]),
1983
- _: 1
1984
- }, 8, ["modelValue", "title"])
1985
- ])) : q("", !0);
2027
+ _: 2
2028
+ }, [
2029
+ $.value.showRankType ? {
2030
+ name: "header",
2031
+ fn: f(() => [
2032
+ O("span", il, Y($.value.label), 1),
2033
+ o(h, {
2034
+ modelValue: e.value.radioType,
2035
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.radioType = a),
2036
+ style: { "vertical-align": "4px", "margin-left": "12px" }
2037
+ }, {
2038
+ default: f(() => [
2039
+ o(w, {
2040
+ label: "数值",
2041
+ value: "0"
2042
+ }),
2043
+ o(w, {
2044
+ label: "排名",
2045
+ value: "1"
2046
+ })
2047
+ ]),
2048
+ _: 1
2049
+ }, 8, ["modelValue"])
2050
+ ]),
2051
+ key: "0"
2052
+ } : void 0
2053
+ ]), 1032, ["modelValue", "title"])
2054
+ ])) : D("", !0);
1986
2055
  };
1987
2056
  }
1988
- }, Ol = /* @__PURE__ */ ke(xl, [["__scopeId", "data-v-c3a0c0f0"]]);
1989
- const X = (r) => (ge("data-v-3d6e5358"), r = r(), ye(), r), Il = { class: "variety-search" }, Vl = {
2057
+ }, wl = /* @__PURE__ */ he(Il, [["__scopeId", "data-v-7cb706a5"]]);
2058
+ const ee = (s) => (be("data-v-8b39d515"), s = s(), ke(), s), Tl = { class: "variety-search" }, Cl = {
1990
2059
  key: 0,
1991
2060
  class: "variety-search-row"
1992
- }, $l = { class: "title" }, wl = /* @__PURE__ */ X(() => /* @__PURE__ */ x("span", null, "品种市场: ", -1)), Cl = {
2061
+ }, Sl = { class: "title" }, Ml = /* @__PURE__ */ ee(() => /* @__PURE__ */ O("span", null, "品种市场: ", -1)), Ul = {
1993
2062
  key: 1,
1994
2063
  class: "variety-search-row"
1995
- }, Tl = { class: "title" }, Sl = /* @__PURE__ */ X(() => /* @__PURE__ */ x("span", null, "常用选项: ", -1)), Ml = {
2064
+ }, El = { class: "title" }, ql = /* @__PURE__ */ ee(() => /* @__PURE__ */ O("span", null, "常用选项: ", -1)), Dl = {
1996
2065
  key: 2,
1997
2066
  class: "variety-search-row"
1998
- }, Ul = { class: "title" }, El = /* @__PURE__ */ X(() => /* @__PURE__ */ x("span", null, "上市板块: ", -1)), ql = {
2067
+ }, Rl = { class: "title" }, Ll = /* @__PURE__ */ ee(() => /* @__PURE__ */ O("span", null, "上市板块: ", -1)), Fl = {
1999
2068
  key: 3,
2000
2069
  class: "variety-search-row"
2001
- }, Dl = { class: "title" }, Ll = /* @__PURE__ */ X(() => /* @__PURE__ */ x("span", null, "自定标签: ", -1)), Fl = {
2070
+ }, zl = { class: "title" }, Nl = /* @__PURE__ */ ee(() => /* @__PURE__ */ O("span", null, "自定标签: ", -1)), Pl = {
2002
2071
  key: 4,
2003
2072
  class: "variety-search-row"
2004
- }, zl = { class: "title" }, Nl = /* @__PURE__ */ X(() => /* @__PURE__ */ x("span", null, "因子筛选: ", -1)), Rl = {
2073
+ }, Bl = { class: "title" }, jl = /* @__PURE__ */ ee(() => /* @__PURE__ */ O("span", null, "因子筛选: ", -1)), Al = {
2005
2074
  __name: "index",
2006
- props: /* @__PURE__ */ oe({ config: { type: Object, default: {} } }, {
2075
+ props: /* @__PURE__ */ se({ config: { type: Object, default: {} } }, {
2007
2076
  searchData: {},
2008
2077
  searchDataModifiers: {}
2009
2078
  }),
2010
2079
  emits: ["update:searchData"],
2011
- setup(r, { expose: c }) {
2012
- const n = r, i = se(r, "searchData");
2013
- i.value = Object.assign(i.value, {
2080
+ setup(s, { expose: i }) {
2081
+ const l = s, u = re(s, "searchData");
2082
+ u.value = Object.assign(u.value, {
2014
2083
  // 品种市场
2015
2084
  varietyMarket: null,
2016
2085
  // 常用选项
@@ -2028,103 +2097,114 @@ const X = (r) => (ge("data-v-3d6e5358"), r = r(), ye(), r), Il = { class: "varie
2028
2097
  // 常用指标
2029
2098
  commonIndicator: []
2030
2099
  });
2031
- const d = j(() => {
2032
- const v = {};
2033
- return Object.keys(Ce).forEach((p) => {
2034
- const S = Ce[p], g = n.config[p] ?? {}, l = { ...S, ...g };
2035
- v[p] = l;
2036
- }), v;
2037
- }), O = j(() => d.value.varietyMarket.options), e = j(() => {
2038
- const { varietyMarket: v } = i.value;
2039
- if (v) {
2040
- const p = O.value.find(({ value: S }) => S === v).memo;
2041
- return d.value.commonOption.options.filter(({ value: S }) => p.includes(S));
2100
+ const c = B(() => {
2101
+ const y = {};
2102
+ return Object.keys(Te).forEach((d) => {
2103
+ const _ = Te[d], g = l.config[d] ?? {}, t = { ..._, ...g };
2104
+ y[d] = t;
2105
+ }), y;
2106
+ }), $ = B(() => c.value.varietyMarket.options), e = B(() => {
2107
+ const { varietyMarket: y } = u.value;
2108
+ if (y) {
2109
+ const d = $.value.find(({ value: _ }) => _ === y).memo;
2110
+ return c.value.commonOption.options.filter(({ value: _ }) => d.includes(_));
2042
2111
  } else
2043
- return d.value.commonOption.options;
2044
- }), E = j(() => {
2045
- const { varietyMarket: v } = i.value;
2046
- return v ? d.value.marketIds.options.filter((p) => p.varietyMarketIds.includes(v)) : d.value.marketIds.options;
2047
- }), D = j(() => d.value.customTag.options), L = (v) => {
2048
- ["commonOption", "marketIds", "customTag", "factorScreen", "commonIndicator"].includes(v) ? i.value[v] = [] : i.value[v] = null;
2112
+ return c.value.commonOption.options;
2113
+ }), q = B(() => {
2114
+ const { varietyMarket: y } = u.value;
2115
+ return y ? c.value.marketIds.options.filter((d) => d.varietyMarketIds.includes(y)) : c.value.marketIds.options;
2116
+ }), R = B(() => c.value.customTag.options), L = (y) => {
2117
+ ["commonOption", "marketIds", "customTag", "factorScreen", "commonIndicator"].includes(y) ? u.value[y] = [] : u.value[y] = null;
2049
2118
  };
2050
- return ae(
2119
+ return oe(
2051
2120
  () => e.value,
2052
- (v) => {
2053
- var p;
2054
- (p = i.value.commonOption) != null && p.length && (i.value.commonOption = i.value.commonOption.filter((S) => v.find(({ value: g }) => g === S)));
2121
+ (y) => {
2122
+ var d;
2123
+ (d = u.value.commonOption) != null && d.length && (u.value.commonOption = u.value.commonOption.filter((_) => y.find(({ value: g }) => g === _)));
2055
2124
  }
2056
- ), ae(
2057
- () => E.value,
2058
- (v) => {
2059
- var p;
2060
- (p = i.value.marketIds) != null && p.length && (i.value.marketIds = i.value.marketIds.filter((S) => v.find(({ value: g }) => g === S)));
2125
+ ), oe(
2126
+ () => q.value,
2127
+ (y) => {
2128
+ var d;
2129
+ (d = u.value.marketIds) != null && d.length && (u.value.marketIds = u.value.marketIds.filter((_) => y.find(({ value: g }) => g === _)));
2061
2130
  }
2062
- ), c({
2131
+ ), i({
2063
2132
  // 生成接口传参结构的数据
2064
- formatData: (v) => {
2065
- var S, g, l, o, _;
2133
+ formatData: (y) => {
2134
+ var g, t, r, w, h;
2066
2135
  console.log("%c[st-varietySearch]: 正在生成接口传参结构的数据...", "color: tomato");
2067
- const p = {};
2068
- if (v.varietyMarket && (p.exchangeId = String(v.varietyMarket)), (S = v.commonOption) != null && S.length && (p.optionId = v.commonOption.join(",")), (g = v.marketIds) != null && g.length && (p.marketIds = v.marketIds), (l = v.customTag) != null && l.length && (p.tagIds = v.customTag), (o = d.value.factorScreen) != null && o.show) {
2069
- const { factorScreen: h } = v;
2070
- if ((_ = h == null ? void 0 : h.list) != null && _.length && (p.tbFeatureFactorScores = h.list.map((y) => {
2071
- switch (y.key) {
2136
+ const d = {}, _ = { rangeDtoList: [] };
2137
+ if (y.varietyMarket && (d.exchangeId = String(y.varietyMarket)), (g = y.commonOption) != null && g.length && (d.optionId = y.commonOption.join(",")), (t = y.marketIds) != null && t.length && (d.marketIds = y.marketIds), (r = y.customTag) != null && r.length && (d.tagIds = y.customTag), (w = c.value.factorScreen) != null && w.show) {
2138
+ const { factorScreen: x } = y;
2139
+ if ((h = x == null ? void 0 : x.list) != null && h.length && (d.tbFeatureFactorScores = x.list.map((I) => {
2140
+ switch (I.key) {
2072
2141
  case "compare":
2073
2142
  return {
2074
- freqId: y.cycle,
2075
- factorId: y.factor,
2076
- compareType: y.compareType,
2077
- freqId2: y.cycle2,
2078
- factorId2: y.factor2
2143
+ freqId: I.cycle,
2144
+ factorId: I.factor,
2145
+ compareType: I.compareType,
2146
+ freqId2: I.cycle2,
2147
+ factorId2: I.factor2
2079
2148
  };
2080
2149
  default:
2081
2150
  return {
2082
- freqId: y.cycle,
2083
- factorId: y.factor,
2084
- startScore: y.score[0],
2085
- endScore: y.score[1]
2151
+ freqId: I.cycle,
2152
+ factorId: I.factor,
2153
+ startScore: I.score[0],
2154
+ endScore: I.score[1]
2086
2155
  };
2087
2156
  }
2088
- })), h.sqlEnable) {
2089
- const y = h.list.reduce((w, a, $) => {
2090
- var t, R;
2091
- const m = `条件${$ + 1}`;
2092
- switch (a.key) {
2157
+ })), x.sqlEnable) {
2158
+ const I = x.list.reduce((p, v, V) => {
2159
+ var a, A;
2160
+ const m = `条件${V + 1}`;
2161
+ switch (v.key) {
2093
2162
  case "compare": {
2094
- let P = "";
2095
- (t = d.value.factorScreen) != null && t.cycleShow ? P = `freq_id = ${a.cycle} and factor_id = ${a.factor} ${a.compareType} freq_id = ${a.cycle2} and factor_id = ${a.factor2}` : P = `factor_id = ${a.factor} ${a.compareType} factor_id = ${a.factor2}`, w.set(m, `(${P})`);
2163
+ let j = "";
2164
+ (a = c.value.factorScreen) != null && a.cycleShow ? j = `freq_id = ${v.cycle} and factor_id = ${v.factor} ${v.compareType} freq_id = ${v.cycle2} and factor_id = ${v.factor2}` : j = `factor_id = ${v.factor} ${v.compareType} factor_id = ${v.factor2}`, p.set(m, `(${j})`);
2096
2165
  break;
2097
2166
  }
2098
2167
  default: {
2099
- let P = `factor_id = ${a.factor} and `;
2100
- (R = d.value.factorScreen) != null && R.cycleShow && (P = `freq_id = ${a.cycle} and factor_id = ${a.factor} and `), (a.score[0] || a.score[0] === 0) && (a.score[1] || a.score[1] === 0) ? P += `score >= ${a.score[0]} and score <= ${a.score[1]}` : a.score[0] || a.score[0] === 0 ? P += `score >= ${a.score[0]}` : (a.score[1] || a.score[1] === 0) && (P += `score <= ${a.score[1]}`), w.set(m, `(${P})`);
2168
+ let j = `factor_id = ${v.factor} and `;
2169
+ (A = c.value.factorScreen) != null && A.cycleShow && (j = `freq_id = ${v.cycle} and factor_id = ${v.factor} and `), (v.score[0] || v.score[0] === 0) && (v.score[1] || v.score[1] === 0) ? j += `score >= ${v.score[0]} and score <= ${v.score[1]}` : v.score[0] || v.score[0] === 0 ? j += `score >= ${v.score[0]}` : (v.score[1] || v.score[1] === 0) && (j += `score <= ${v.score[1]}`), p.set(m, `(${j})`);
2101
2170
  }
2102
2171
  }
2103
- return w;
2172
+ return p;
2104
2173
  }, /* @__PURE__ */ new Map([]));
2105
- let M = h.sqlValue;
2106
- for (const [w, a] of y) {
2107
- const $ = new RegExp(w, "g");
2108
- M = M.replace($, a);
2174
+ let M = x.sqlValue;
2175
+ for (const [p, v] of I) {
2176
+ const V = new RegExp(p, "g");
2177
+ M = M.replace(V, v);
2109
2178
  }
2110
- p.sql = M;
2179
+ d.sql = M;
2111
2180
  }
2112
- p.enableSql = h.sqlEnable === 1 ? 2 : 1;
2181
+ d.enableSql = x.sqlEnable === 1 ? 2 : 1;
2113
2182
  }
2114
2183
  {
2115
- const h = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], y = v.commonIndicator.reduce((t, R) => {
2116
- const { key: P, type: re, range: ee, unit: te } = R;
2117
- if (P === "dividendYield") {
2118
- let [b, U] = ee;
2119
- ["", null].includes(b) || (b = b / 100), ["", null].includes(U) || (U = U / 100), t.push({
2120
- column: R.key,
2184
+ const x = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], I = y.commonIndicator.reduce((m, a) => {
2185
+ const { key: A, type: j, range: te, unit: le, radioType: C, rankRange: N } = a;
2186
+ if (C === "1")
2187
+ x.includes(A) ? _.rangeDtoList.push({
2188
+ column: a.key,
2189
+ start: N[0] || null,
2190
+ end: N[1] || null
2191
+ }) : m.push({
2192
+ column: a.key,
2193
+ type: "1",
2194
+ start: N[0] || null,
2195
+ end: N[1] || null
2196
+ });
2197
+ else if (A === "dividendYield") {
2198
+ let [b, S] = te;
2199
+ ["", null].includes(b) || (b = b / 100), ["", null].includes(S) || (S = S / 100), m.push({
2200
+ column: a.key,
2121
2201
  start: b,
2122
- end: U
2202
+ end: S
2123
2203
  });
2124
- } else if (re === void 0 && !h.includes(P)) {
2125
- let [b, U] = ee;
2204
+ } else if (j === void 0 && !x.includes(A)) {
2205
+ let [b, S] = te;
2126
2206
  if (!["", null].includes(b))
2127
- switch (te[0]) {
2207
+ switch (le[0]) {
2128
2208
  case "亿":
2129
2209
  b = b * 1e8;
2130
2210
  break;
@@ -2135,77 +2215,75 @@ const X = (r) => (ge("data-v-3d6e5358"), r = r(), ye(), r), Il = { class: "varie
2135
2215
  b = b;
2136
2216
  break;
2137
2217
  }
2138
- if (!["", null].includes(U))
2139
- switch (te[1]) {
2218
+ if (!["", null].includes(S))
2219
+ switch (le[1]) {
2140
2220
  case "亿":
2141
- U = U * 1e8;
2221
+ S = S * 1e8;
2142
2222
  break;
2143
2223
  case "千万":
2144
- U = U * 1e7;
2224
+ S = S * 1e7;
2145
2225
  break;
2146
2226
  default:
2147
- U = U;
2227
+ S = S;
2148
2228
  break;
2149
2229
  }
2150
- t.push({
2151
- column: R.key,
2230
+ m.push({
2231
+ column: a.key,
2152
2232
  start: b,
2153
- end: U
2233
+ end: S
2154
2234
  });
2155
2235
  }
2156
- return t;
2236
+ return m;
2157
2237
  }, []);
2158
- y.length && (p.query = y);
2159
- const M = v.commonIndicator.find(({ key: t }) => t === "st");
2160
- M && (p.st = M.st);
2161
- const w = v.commonIndicator.find(({ key: t }) => t === "tFeaturelncomes");
2162
- w && (p.netProfitQueryDto = { ...w, netProfit: w.netProfit * 1e8 });
2163
- const a = v.commonIndicator.find(({ key: t }) => t === "priceLevels");
2164
- a && (p.priceLevels = a.priceLevels);
2165
- const $ = v.commonIndicator.find(({ key: t }) => t === "peTtmLevels");
2166
- $ && (p.peTtmLevels = $.peTtmLevels);
2167
- const m = {};
2168
- v.commonIndicator.forEach((t) => {
2169
- const { key: R } = t;
2170
- switch (R) {
2238
+ I.length && (d.query = I);
2239
+ const M = y.commonIndicator.find(({ key: m }) => m === "st");
2240
+ M && (d.st = M.st);
2241
+ const p = y.commonIndicator.find(({ key: m }) => m === "tFeaturelncomes");
2242
+ p && (d.netProfitQueryDto = { ...p, netProfit: p.netProfit * 1e8 });
2243
+ const v = y.commonIndicator.find(({ key: m }) => m === "priceLevels");
2244
+ v && (d.priceLevels = v.priceLevels);
2245
+ const V = y.commonIndicator.find(({ key: m }) => m === "peTtmLevels");
2246
+ V && (d.peTtmLevels = V.peTtmLevels), y.commonIndicator.forEach((m) => {
2247
+ const { key: a } = m;
2248
+ switch (a) {
2171
2249
  case "expireDays":
2172
- ["", null].includes(t.range[0]) || (m.minExpireDays = t.range[0]), ["", null].includes(t.range[1]) || (m.maxExpireDays = t.range[1]);
2250
+ ["", null].includes(m.range[0]) || (_.minExpireDays = m.range[0]), ["", null].includes(m.range[1]) || (_.maxExpireDays = m.range[1]);
2173
2251
  break;
2174
2252
  case "virtualRealDegree":
2175
- ["", null].includes(t.range[0]) || (m.minVirtualRealDegree = t.range[0] / 100), ["", null].includes(t.range[1]) || (m.maxVirtualRealDegree = t.range[1] / 100);
2253
+ ["", null].includes(m.range[0]) || (_.minVirtualRealDegree = m.range[0] / 100), ["", null].includes(m.range[1]) || (_.maxVirtualRealDegree = m.range[1] / 100);
2176
2254
  break;
2177
2255
  case "yearProfitRate":
2178
- ["", null].includes(t.range[0]) || (m.minYearProfitRate = t.range[0] / 100), ["", null].includes(t.range[1]) || (m.maxYearProfitRate = t.range[1] / 100);
2256
+ ["", null].includes(m.range[0]) || (_.minYearProfitRate = m.range[0] / 100), ["", null].includes(m.range[1]) || (_.maxYearProfitRate = m.range[1] / 100);
2179
2257
  break;
2180
2258
  case "impliedVolatility":
2181
- ["", null].includes(t.range[0]) || (m.minImpliedVolatility = t.range[0] / 100), ["", null].includes(t.range[1]) || (m.maxImpliedVolatility = t.range[1] / 100);
2259
+ ["", null].includes(m.range[0]) || (_.minImpliedVolatility = m.range[0] / 100), ["", null].includes(m.range[1]) || (_.maxImpliedVolatility = m.range[1] / 100);
2182
2260
  break;
2183
2261
  case "levelMultiplier":
2184
- ["", null].includes(t.range[0]) || (m.minLevelMultiplier = t.range[0]), ["", null].includes(t.range[1]) || (m.maxLevelMultiplier = t.range[1]);
2262
+ ["", null].includes(m.range[0]) || (_.minLevelMultiplier = m.range[0]), ["", null].includes(m.range[1]) || (_.maxLevelMultiplier = m.range[1]);
2185
2263
  break;
2186
2264
  case "turnover":
2187
- ["", null].includes(t.range[0]) || (m.minTurnover = t.range[0] * 1e4), ["", null].includes(t.range[1]) || (m.maxTurnover = t.range[1] * 1e4);
2265
+ ["", null].includes(m.range[0]) || (_.minTurnover = m.range[0] * 1e4), ["", null].includes(m.range[1]) || (_.maxTurnover = m.range[1] * 1e4);
2188
2266
  break;
2189
2267
  case "volume":
2190
- ["", null].includes(t.range[0]) || (m.minVolume = t.range[0]), ["", null].includes(t.range[1]) || (m.maxVolume = t.range[1]);
2268
+ ["", null].includes(m.range[0]) || (_.minVolume = m.range[0]), ["", null].includes(m.range[1]) || (_.maxVolume = m.range[1]);
2191
2269
  break;
2192
2270
  case "openInterest":
2193
- ["", null].includes(t.range[0]) || (m.minOpenInterest = t.range[0]), ["", null].includes(t.range[1]) || (m.maxOpenInterest = t.range[1]);
2271
+ ["", null].includes(m.range[0]) || (_.minOpenInterest = m.range[0]), ["", null].includes(m.range[1]) || (_.maxOpenInterest = m.range[1]);
2194
2272
  break;
2195
2273
  case "optionsCpType":
2196
- m.optionsCpType = t.optionsCpType;
2274
+ _.optionsCpType = m.optionsCpType;
2197
2275
  break;
2198
2276
  case "optionGear":
2199
- ["", null].includes(t.range[0]) || (m.minOptionGear = t.range[0]), ["", null].includes(t.range[1]) || (m.maxOptionGear = t.range[1]);
2277
+ ["", null].includes(m.range[0]) || (_.minOptionGear = m.range[0]), ["", null].includes(m.range[1]) || (_.maxOptionGear = m.range[1]);
2200
2278
  break;
2201
2279
  }
2202
- }), Object.keys(m).length && (p.searchOptionDto = m);
2280
+ }), Object.keys(_).length && (d.searchOptionDto = _);
2203
2281
  }
2204
- return console.log("%c[st-varietySearch]: 接口传参数据生成完毕", "color: green", p), p;
2282
+ return console.log("%c[st-varietySearch]: 接口传参数据生成完毕", "color: green", d), d;
2205
2283
  },
2206
2284
  // 重置函数
2207
2285
  reset: () => {
2208
- i.value = {
2286
+ u.value = {
2209
2287
  // 品种市场
2210
2288
  varietyMarket: null,
2211
2289
  // 常用选项
@@ -2224,126 +2302,126 @@ const X = (r) => (ge("data-v-3d6e5358"), r = r(), ye(), r), Il = { class: "varie
2224
2302
  commonIndicator: []
2225
2303
  };
2226
2304
  }
2227
- }), (v, p) => {
2228
- var _, h, y, M, w;
2229
- const S = fe, g = me, l = lt, o = nt;
2230
- return s(), k("div", Il, [
2231
- (_ = d.value.varietyMarket) != null && _.show ? (s(), k("div", Vl, [
2232
- x("div", $l, [
2233
- wl,
2234
- x("span", {
2235
- onClick: p[0] || (p[0] = (a) => L("varietyMarket"))
2305
+ }), (y, d) => {
2306
+ var w, h, x, I, M;
2307
+ const _ = ve, g = ge, t = nt, r = at;
2308
+ return n(), k("div", Tl, [
2309
+ (w = c.value.varietyMarket) != null && w.show ? (n(), k("div", Cl, [
2310
+ O("div", Sl, [
2311
+ Ml,
2312
+ O("span", {
2313
+ onClick: d[0] || (d[0] = (p) => L("varietyMarket"))
2236
2314
  }, "不限")
2237
2315
  ]),
2238
- u(g, {
2239
- modelValue: i.value.varietyMarket,
2240
- "onUpdate:modelValue": p[1] || (p[1] = (a) => i.value.varietyMarket = a),
2316
+ o(g, {
2317
+ modelValue: u.value.varietyMarket,
2318
+ "onUpdate:modelValue": d[1] || (d[1] = (p) => u.value.varietyMarket = p),
2241
2319
  size: "small"
2242
2320
  }, {
2243
2321
  default: f(() => [
2244
- (s(!0), k(T, null, F(O.value, ({ label: a, value: $ }) => (s(), C(S, {
2245
- label: a,
2246
- value: $,
2247
- key: $
2322
+ (n(!0), k(E, null, z($.value, ({ label: p, value: v }) => (n(), U(_, {
2323
+ label: p,
2324
+ value: v,
2325
+ key: v
2248
2326
  }, null, 8, ["label", "value"]))), 128))
2249
2327
  ]),
2250
2328
  _: 1
2251
2329
  }, 8, ["modelValue"])
2252
- ])) : q("", !0),
2253
- (h = d.value.commonOption) != null && h.show && e.value.length ? (s(), k("div", Cl, [
2254
- x("div", Tl, [
2255
- Sl,
2256
- x("span", {
2257
- onClick: p[2] || (p[2] = (a) => L("commonOption"))
2330
+ ])) : D("", !0),
2331
+ (h = c.value.commonOption) != null && h.show && e.value.length ? (n(), k("div", Ul, [
2332
+ O("div", El, [
2333
+ ql,
2334
+ O("span", {
2335
+ onClick: d[2] || (d[2] = (p) => L("commonOption"))
2258
2336
  }, "不限")
2259
2337
  ]),
2260
- u(o, {
2261
- modelValue: i.value.commonOption,
2262
- "onUpdate:modelValue": p[3] || (p[3] = (a) => i.value.commonOption = a),
2338
+ o(r, {
2339
+ modelValue: u.value.commonOption,
2340
+ "onUpdate:modelValue": d[3] || (d[3] = (p) => u.value.commonOption = p),
2263
2341
  size: "small"
2264
2342
  }, {
2265
2343
  default: f(() => [
2266
- (s(!0), k(T, null, F(e.value, ({ label: a, value: $ }) => (s(), C(l, {
2267
- label: a,
2268
- value: $,
2269
- key: $
2344
+ (n(!0), k(E, null, z(e.value, ({ label: p, value: v }) => (n(), U(t, {
2345
+ label: p,
2346
+ value: v,
2347
+ key: v
2270
2348
  }, null, 8, ["label", "value"]))), 128))
2271
2349
  ]),
2272
2350
  _: 1
2273
2351
  }, 8, ["modelValue"])
2274
- ])) : q("", !0),
2275
- (y = d.value.marketIds) != null && y.show && E.value.length ? (s(), k("div", Ml, [
2276
- x("div", Ul, [
2277
- El,
2278
- x("span", {
2279
- onClick: p[4] || (p[4] = (a) => L("marketIds"))
2352
+ ])) : D("", !0),
2353
+ (x = c.value.marketIds) != null && x.show && q.value.length ? (n(), k("div", Dl, [
2354
+ O("div", Rl, [
2355
+ Ll,
2356
+ O("span", {
2357
+ onClick: d[4] || (d[4] = (p) => L("marketIds"))
2280
2358
  }, "不限")
2281
2359
  ]),
2282
- u(o, {
2283
- modelValue: i.value.marketIds,
2284
- "onUpdate:modelValue": p[5] || (p[5] = (a) => i.value.marketIds = a),
2360
+ o(r, {
2361
+ modelValue: u.value.marketIds,
2362
+ "onUpdate:modelValue": d[5] || (d[5] = (p) => u.value.marketIds = p),
2285
2363
  size: "small"
2286
2364
  }, {
2287
2365
  default: f(() => [
2288
- (s(!0), k(T, null, F(E.value, ({ label: a, value: $ }) => (s(), C(l, {
2289
- label: a,
2290
- value: $,
2291
- key: $
2366
+ (n(!0), k(E, null, z(q.value, ({ label: p, value: v }) => (n(), U(t, {
2367
+ label: p,
2368
+ value: v,
2369
+ key: v
2292
2370
  }, null, 8, ["label", "value"]))), 128))
2293
2371
  ]),
2294
2372
  _: 1
2295
2373
  }, 8, ["modelValue"])
2296
- ])) : q("", !0),
2297
- (M = d.value.customTag) != null && M.show && D.value.length ? (s(), k("div", ql, [
2298
- x("div", Dl, [
2299
- Ll,
2300
- x("span", {
2301
- onClick: p[6] || (p[6] = (a) => L("customTag"))
2374
+ ])) : D("", !0),
2375
+ (I = c.value.customTag) != null && I.show && R.value.length ? (n(), k("div", Fl, [
2376
+ O("div", zl, [
2377
+ Nl,
2378
+ O("span", {
2379
+ onClick: d[6] || (d[6] = (p) => L("customTag"))
2302
2380
  }, "不限")
2303
2381
  ]),
2304
- u(o, {
2305
- modelValue: i.value.customTag,
2306
- "onUpdate:modelValue": p[7] || (p[7] = (a) => i.value.customTag = a),
2382
+ o(r, {
2383
+ modelValue: u.value.customTag,
2384
+ "onUpdate:modelValue": d[7] || (d[7] = (p) => u.value.customTag = p),
2307
2385
  size: "small"
2308
2386
  }, {
2309
2387
  default: f(() => [
2310
- (s(!0), k(T, null, F(D.value, ({ label: a, value: $ }) => (s(), C(l, {
2311
- label: a,
2312
- value: $,
2313
- key: $
2388
+ (n(!0), k(E, null, z(R.value, ({ label: p, value: v }) => (n(), U(t, {
2389
+ label: p,
2390
+ value: v,
2391
+ key: v
2314
2392
  }, null, 8, ["label", "value"]))), 128))
2315
2393
  ]),
2316
2394
  _: 1
2317
2395
  }, 8, ["modelValue"])
2318
- ])) : q("", !0),
2319
- (w = d.value.factorScreen) != null && w.show ? (s(), k("div", Fl, [
2320
- x("div", zl, [
2321
- Nl,
2322
- x("span", {
2323
- onClick: p[8] || (p[8] = (a) => L("factorScreen"))
2396
+ ])) : D("", !0),
2397
+ (M = c.value.factorScreen) != null && M.show ? (n(), k("div", Pl, [
2398
+ O("div", Bl, [
2399
+ jl,
2400
+ O("span", {
2401
+ onClick: d[8] || (d[8] = (p) => L("factorScreen"))
2324
2402
  }, "不限")
2325
2403
  ]),
2326
- u(el, {
2327
- data: i.value.factorScreen,
2328
- "onUpdate:data": p[9] || (p[9] = (a) => i.value.factorScreen = a),
2329
- config: d.value.factorScreen
2404
+ o(tl, {
2405
+ data: u.value.factorScreen,
2406
+ "onUpdate:data": d[9] || (d[9] = (p) => u.value.factorScreen = p),
2407
+ config: c.value.factorScreen
2330
2408
  }, null, 8, ["data", "config"])
2331
- ])) : q("", !0),
2332
- u(Ol, {
2333
- data: i.value.commonIndicator,
2334
- "onUpdate:data": p[10] || (p[10] = (a) => i.value.commonIndicator = a),
2335
- varietyMarket: i.value.varietyMarket,
2336
- commonOption: i.value.commonOption,
2337
- config: d.value.commonIndicator
2409
+ ])) : D("", !0),
2410
+ o(wl, {
2411
+ data: u.value.commonIndicator,
2412
+ "onUpdate:data": d[10] || (d[10] = (p) => u.value.commonIndicator = p),
2413
+ varietyMarket: u.value.varietyMarket,
2414
+ commonOption: u.value.commonOption,
2415
+ config: c.value.commonIndicator
2338
2416
  }, null, 8, ["data", "varietyMarket", "commonOption", "config"])
2339
2417
  ]);
2340
2418
  };
2341
2419
  }
2342
- }, Pl = /* @__PURE__ */ ke(Rl, [["__scopeId", "data-v-3d6e5358"]]), gn = {
2343
- install(r) {
2344
- r.component("st-varietySearch", Pl);
2420
+ }, Yl = /* @__PURE__ */ he(Al, [["__scopeId", "data-v-8b39d515"]]), _n = {
2421
+ install(s) {
2422
+ s.component("st-varietySearch", Yl);
2345
2423
  }
2346
2424
  };
2347
2425
  export {
2348
- gn as default
2426
+ _n as default
2349
2427
  };