st-comp 0.0.173 → 0.0.174

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/es/ChartLayout.js +3 -3
  2. package/es/Dialog.js +14 -14
  3. package/es/FactorWarning.cjs +1 -1
  4. package/es/FactorWarning.js +337 -817
  5. package/es/Kline.js +16 -16
  6. package/es/KlineBasic.js +26 -26
  7. package/es/KlineConfig.cjs +1 -1
  8. package/es/KlineConfig.js +41 -40
  9. package/es/KlineNew.js +14 -14
  10. package/es/KlinePlus.js +17 -17
  11. package/es/Pagination.js +19 -19
  12. package/es/PasswordPrompt.js +3 -3
  13. package/es/Table.js +21 -21
  14. package/es/User.js +39 -39
  15. package/es/VarSelectDialog.cjs +2 -2
  16. package/es/VarSelectDialog.js +146 -144
  17. package/es/VarietySearch.cjs +5 -5
  18. package/es/VarietySearch.js +529 -513
  19. package/es/VirtualTable.js +494 -494
  20. package/es/{_initCloneObject-a9305c1e.js → _initCloneObject-da90eef0.js} +3 -3
  21. package/es/{base-4bcd2756.js → base-d9284bf0.js} +23 -23
  22. package/es/{castArray-681d750b.js → castArray-b0ab0165.js} +1 -1
  23. package/es/{config-provider-93846ae3.js → config-provider-f0151e9f.js} +10 -10
  24. package/es/{debounce-51046b06.js → debounce-3cec4646.js} +1 -1
  25. package/es/{dropdown-65e74de8.js → dropdown-82b80e8b.js} +6 -6
  26. package/es/{el-button-d39472d3.js → el-button-34665425.js} +9 -9
  27. package/es/{el-dialog-f45ec2a1.js → el-dialog-a412484e.js} +17 -17
  28. package/es/{el-divider-7cf13678.js → el-divider-fd2b4e2e.js} +4 -4
  29. package/es/{el-empty-64b2ea8a.js → el-empty-412fc297.js} +2 -2
  30. package/es/{el-form-item-b31e7a98.js → el-form-item-668ba024.js} +65 -65
  31. package/es/{el-input-42315ac4.js → el-input-22e66e37.js} +22 -22
  32. package/es/{el-input-number-ebd64e22.js → el-input-number-481e21c5.js} +26 -26
  33. package/es/{el-loading-5d29f26d.js → el-loading-d4e403ab.js} +5 -5
  34. package/es/{el-menu-item-d62e0a3f.js → el-menu-item-404c10e5.js} +8 -8
  35. package/es/el-message-box-41f39f6d.js +558 -0
  36. package/es/el-message-box-6694f827.cjs +1 -0
  37. package/es/{el-message-bd1d2c82.js → el-message-ef506caa.js} +24 -24
  38. package/es/{el-overlay-690b50aa.js → el-overlay-4a9fa4e1.js} +30 -30
  39. package/es/{el-popconfirm-88bbd066.js → el-popconfirm-7b9183aa.js} +6 -6
  40. package/es/{el-popper-85365d5b.js → el-popper-e73466eb.js} +5 -5
  41. package/es/{el-scrollbar-bcf29780.js → el-scrollbar-45318df0.js} +8 -8
  42. package/es/el-segmented-3ba6d664.cjs +1 -0
  43. package/es/el-segmented-41820018.js +135 -0
  44. package/es/{el-select-d3bce4d1.js → el-select-d7a00294.js} +13 -13
  45. package/es/{el-table-column-9691b26d.js → el-table-column-a2d0c635.js} +122 -122
  46. package/es/{el-tag-6036f51c.js → el-tag-7f391090.js} +32 -32
  47. package/es/{index-d3c37134.js → index-1c41bd56.js} +3 -3
  48. package/es/index-3120be08.js +14 -0
  49. package/es/{index-fbe85773.js → index-85a32a00.js} +15 -15
  50. package/es/{index-21fb27eb.js → index-94f38460.js} +19 -19
  51. package/es/{index-ef7c4392.js → index-a8e9ec0f.js} +23 -23
  52. package/es/{index-cb8157f2.js → index-d577b81b.js} +2 -2
  53. package/es/{index-8ee89b40.js → index-d99fdc6d.js} +8 -8
  54. package/es/{index-3425f2f0.js → index-ee1cebbc.js} +5 -5
  55. package/es/{raf-36faa519.js → raf-bfbf42e4.js} +1 -1
  56. package/es/{scroll-0277d145.js → scroll-e3cb691f.js} +2 -2
  57. package/es/style.css +1 -1
  58. package/es/{use-form-common-props-54c31983.js → use-form-common-props-cc347a83.js} +36 -36
  59. package/es/{use-global-config-946f61a4.js → use-global-config-c7f0a7e3.js} +3 -3
  60. package/es/validator-10fa54fe.js +5 -0
  61. package/es/validator-af488a9a.cjs +1 -0
  62. package/es/{vnode-dfc92f20.js → vnode-6be33bb1.js} +1 -1
  63. package/es/{zh-cn-5066f5e9.js → zh-cn-d883afa8.js} +2 -2
  64. package/lib/bundle.js +1 -1
  65. package/lib/bundle.umd.cjs +135 -135
  66. package/lib/{index-c35886c2.js → index-c5c93747.js} +6970 -6953
  67. package/lib/{python-37ee7d62.js → python-1b054f75.js} +1 -1
  68. package/lib/style.css +1 -1
  69. package/package.json +1 -1
  70. package/packages/VarSelectDialog/index.vue +3 -1
  71. package/packages/VarietySearch/components/FactorScreen/index.vue +54 -40
  72. package/es/el-checkbox-group-020b49f5.cjs +0 -1
  73. package/es/el-checkbox-group-779f353a.js +0 -67
  74. package/es/el-segmented-84707138.js +0 -136
  75. package/es/el-segmented-bccd9f2a.cjs +0 -1
  76. package/es/index-c45ac024.js +0 -14
@@ -1,521 +1,41 @@
1
- import { i as fe, a as ve, _ as Ae, b as ze, h as ye, c as Pe, d as Re, e as ge, f as De } from "./base-4bcd2756.js";
2
- import { z as Ue, E as qe } from "./zh-cn-5066f5e9.js";
3
- import { u as He, E as Ke } from "./el-dialog-f45ec2a1.js";
4
- import { E as je, u as Ge, a as We } from "./el-overlay-690b50aa.js";
5
- import "./el-tag-6036f51c.js";
1
+ import "./base-d9284bf0.js";
2
+ import { z as re, E as ne } from "./zh-cn-d883afa8.js";
3
+ import { E as ue } from "./el-dialog-a412484e.js";
4
+ import "./el-overlay-4a9fa4e1.js";
5
+ import "./el-tag-7f391090.js";
6
6
  import "./el-tooltip-4ed993c7.js";
7
- import { E as Je } from "./el-popper-85365d5b.js";
8
- import { E as Xe, a as Ze, b as Qe, c as Ye } from "./el-table-column-9691b26d.js";
9
- import "./el-scrollbar-bcf29780.js";
10
- import { E as xe } from "./el-popconfirm-88bbd066.js";
11
- import { E as Be } from "./el-button-d39472d3.js";
12
- import { E as et, a as tt } from "./el-form-item-b31e7a98.js";
13
- import { E as Ve } from "./el-input-42315ac4.js";
14
- import { E as ot } from "./el-checkbox-group-779f353a.js";
15
- import { E as lt } from "./el-input-number-ebd64e22.js";
16
- import { i as at, E as nt } from "./el-segmented-84707138.js";
17
- import { nextTick as x, defineComponent as st, computed as U, ref as I, reactive as rt, markRaw as be, watch as me, onMounted as it, onBeforeUnmount as ut, toRefs as ct, resolveComponent as J, openBlock as n, createBlock as g, Transition as dt, withCtx as o, withDirectives as ce, createVNode as a, createElementVNode as c, normalizeClass as w, normalizeStyle as he, withModifiers as ne, createElementBlock as C, resolveDynamicComponent as se, createCommentVNode as h, toDisplayString as _, withKeys as re, renderSlot as ft, createTextVNode as k, vShow as de, isVNode as Me, render as Le, mergeModels as Ce, useModel as mt, unref as A, Fragment as q, renderList as X, pushScopeId as pt, popScopeId as vt } from "vue";
18
- import { E as Ie, l as ke, i as Ee } from "./index-3425f2f0.js";
19
- import { G as yt } from "./index-7ed0999e.js";
20
- import { _ as gt } from "./_plugin-vue_export-helper-dad06003.js";
21
- import { o as we, E as bt, a as ht } from "./index-21fb27eb.js";
22
- import { T as Ct, a as Te } from "./use-form-common-props-54c31983.js";
23
- import { u as kt } from "./use-global-config-946f61a4.js";
24
- import { u as Se } from "./index-ef7c4392.js";
25
- import { E as Et } from "./index-d3c37134.js";
26
- import "./config-provider-93846ae3.js";
27
- import "./index-c45ac024.js";
28
- import "./vnode-dfc92f20.js";
29
- import "./scroll-0277d145.js";
30
- import "./_initCloneObject-a9305c1e.js";
31
- import "./debounce-51046b06.js";
32
- import "./raf-36faa519.js";
7
+ import { E as se } from "./el-popper-e73466eb.js";
8
+ import { E as ie, a as ce, b as de, c as me } from "./el-table-column-a2d0c635.js";
9
+ import "./el-scrollbar-45318df0.js";
10
+ import { E as fe } from "./el-popconfirm-7b9183aa.js";
11
+ import { E as pe } from "./el-button-34665425.js";
12
+ import { E as ye, a as ve } from "./el-form-item-668ba024.js";
13
+ import { E as _e } from "./el-input-22e66e37.js";
14
+ import { E as be, a as he } from "./el-message-box-41f39f6d.js";
15
+ import { E as ge } from "./el-input-number-481e21c5.js";
16
+ import { E as ke } from "./el-segmented-41820018.js";
17
+ import { mergeModels as R, ref as w, useModel as Ce, watch as Te, openBlock as o, createElementBlock as c, createVNode as a, unref as g, withCtx as l, createElementVNode as m, normalizeClass as we, toDisplayString as k, createTextVNode as d, createBlock as f, createCommentVNode as p, Fragment as x, renderList as N, pushScopeId as xe, popScopeId as Se } from "vue";
18
+ import { i as j, E as Ve } from "./index-ee1cebbc.js";
19
+ import { G as Ee } from "./index-7ed0999e.js";
20
+ import { _ as Ne } from "./_plugin-vue_export-helper-dad06003.js";
21
+ import { E as Fe } from "./index-1c41bd56.js";
22
+ import "./config-provider-f0151e9f.js";
23
+ import "./use-global-config-c7f0a7e3.js";
24
+ import "./use-form-common-props-cc347a83.js";
25
+ import "./index-a8e9ec0f.js";
26
+ import "./index-94f38460.js";
27
+ import "./index-3120be08.js";
28
+ import "./vnode-6be33bb1.js";
29
+ import "./scroll-e3cb691f.js";
30
+ import "./_initCloneObject-da90eef0.js";
31
+ import "./debounce-3cec4646.js";
32
+ import "./raf-bfbf42e4.js";
33
33
  import "./index-657047bb.js";
34
- import "./castArray-681d750b.js";
34
+ import "./castArray-b0ab0165.js";
35
35
  import "./typescript-7ae59c4c.js";
36
- import "./index-fbe85773.js";
37
- const pe = "_trap-focus-children", H = [], _e = (e) => {
38
- var d;
39
- if (H.length === 0)
40
- return;
41
- const i = H[H.length - 1][pe];
42
- if (i.length > 0 && e.code === bt.tab) {
43
- if (i.length === 1) {
44
- e.preventDefault(), document.activeElement !== i[0] && i[0].focus();
45
- return;
46
- }
47
- const p = e.shiftKey, v = e.target === i[0], u = e.target === i[i.length - 1];
48
- if (v && p && (e.preventDefault(), i[i.length - 1].focus()), u && !p && (e.preventDefault(), i[0].focus()), process.env.NODE_ENV === "test") {
49
- const b = i.indexOf(e.target);
50
- b !== -1 && ((d = i[p ? b - 1 : b + 1]) == null || d.focus());
51
- }
52
- }
53
- }, wt = {
54
- beforeMount(e) {
55
- e[pe] = we(e), H.push(e), H.length <= 1 && document.addEventListener("keydown", _e);
56
- },
57
- updated(e) {
58
- x(() => {
59
- e[pe] = we(e);
60
- });
61
- },
62
- unmounted() {
63
- H.shift(), H.length === 0 && document.removeEventListener("keydown", _e);
64
- }
65
- }, Tt = st({
66
- name: "ElMessageBox",
67
- directives: {
68
- TrapFocus: wt
69
- },
70
- components: {
71
- ElButton: Be,
72
- ElFocusTrap: ht,
73
- ElInput: Ve,
74
- ElOverlay: je,
75
- ElIcon: Ie,
76
- ...Ct
77
- },
78
- inheritAttrs: !1,
79
- props: {
80
- buttonSize: {
81
- type: String,
82
- validator: at
83
- },
84
- modal: {
85
- type: Boolean,
86
- default: !0
87
- },
88
- lockScroll: {
89
- type: Boolean,
90
- default: !0
91
- },
92
- showClose: {
93
- type: Boolean,
94
- default: !0
95
- },
96
- closeOnClickModal: {
97
- type: Boolean,
98
- default: !0
99
- },
100
- closeOnPressEscape: {
101
- type: Boolean,
102
- default: !0
103
- },
104
- closeOnHashChange: {
105
- type: Boolean,
106
- default: !0
107
- },
108
- center: Boolean,
109
- draggable: Boolean,
110
- overflow: Boolean,
111
- roundButton: {
112
- default: !1,
113
- type: Boolean
114
- },
115
- container: {
116
- type: String,
117
- default: "body"
118
- },
119
- boxType: {
120
- type: String,
121
- default: ""
122
- }
123
- },
124
- emits: ["vanish", "action"],
125
- setup(e, { emit: d }) {
126
- const {
127
- locale: i,
128
- zIndex: p,
129
- ns: v,
130
- size: u
131
- } = kt("message-box", U(() => e.buttonSize)), { t: b } = i, { nextZIndex: B } = p, s = I(!1), r = rt({
132
- autofocus: !0,
133
- beforeClose: null,
134
- callback: null,
135
- cancelButtonText: "",
136
- cancelButtonClass: "",
137
- confirmButtonText: "",
138
- confirmButtonClass: "",
139
- customClass: "",
140
- customStyle: {},
141
- dangerouslyUseHTMLString: !1,
142
- distinguishCancelAndClose: !1,
143
- icon: "",
144
- inputPattern: null,
145
- inputPlaceholder: "",
146
- inputType: "text",
147
- inputValue: "",
148
- inputValidator: void 0,
149
- inputErrorMessage: "",
150
- message: "",
151
- modalFade: !0,
152
- modalClass: "",
153
- showCancelButton: !1,
154
- showConfirmButton: !0,
155
- type: "",
156
- title: void 0,
157
- showInput: !1,
158
- action: "",
159
- confirmButtonLoading: !1,
160
- cancelButtonLoading: !1,
161
- confirmButtonLoadingIcon: be(ke),
162
- cancelButtonLoadingIcon: be(ke),
163
- confirmButtonDisabled: !1,
164
- editorErrorMessage: "",
165
- validateError: !1,
166
- zIndex: B()
167
- }), K = U(() => {
168
- const m = r.type;
169
- return { [v.bm("icon", m)]: m && Te[m] };
170
- }), f = Se(), O = Se(), j = U(() => {
171
- const m = r.type;
172
- return r.icon || m && Te[m] || "";
173
- }), te = U(() => !!r.message), z = I(), G = I(), D = I(), W = I(), oe = I(), E = U(() => r.confirmButtonClass);
174
- me(() => r.inputValue, async (m) => {
175
- await x(), e.boxType === "prompt" && m !== null && le();
176
- }, { immediate: !0 }), me(() => s.value, (m) => {
177
- var M, V;
178
- m && (e.boxType !== "prompt" && (r.autofocus ? D.value = (V = (M = oe.value) == null ? void 0 : M.$el) != null ? V : z.value : D.value = z.value), r.zIndex = B()), e.boxType === "prompt" && (m ? x().then(() => {
179
- var Y;
180
- W.value && W.value.$el && (r.autofocus ? D.value = (Y = ae()) != null ? Y : z.value : D.value = z.value);
181
- }) : (r.editorErrorMessage = "", r.validateError = !1));
182
- });
183
- const l = U(() => e.draggable), F = U(() => e.overflow);
184
- He(z, G, l, F), it(async () => {
185
- await x(), e.closeOnHashChange && window.addEventListener("hashchange", y);
186
- }), ut(() => {
187
- e.closeOnHashChange && window.removeEventListener("hashchange", y);
188
- });
189
- function y() {
190
- s.value && (s.value = !1, x(() => {
191
- r.action && d("action", r.action);
192
- }));
193
- }
194
- const T = () => {
195
- e.closeOnClickModal && S(r.distinguishCancelAndClose ? "close" : "cancel");
196
- }, N = We(T), P = (m) => {
197
- if (r.inputType !== "textarea")
198
- return m.preventDefault(), S("confirm");
199
- }, S = (m) => {
200
- var M;
201
- e.boxType === "prompt" && m === "confirm" && !le() || (r.action = m, r.beforeClose ? (M = r.beforeClose) == null || M.call(r, m, r, y) : y());
202
- }, le = () => {
203
- if (e.boxType === "prompt") {
204
- const m = r.inputPattern;
205
- if (m && !m.test(r.inputValue || ""))
206
- return r.editorErrorMessage = r.inputErrorMessage || b("el.messagebox.error"), r.validateError = !0, !1;
207
- const M = r.inputValidator;
208
- if (fe(M)) {
209
- const V = M(r.inputValue);
210
- if (V === !1)
211
- return r.editorErrorMessage = r.inputErrorMessage || b("el.messagebox.error"), r.validateError = !0, !1;
212
- if (ve(V))
213
- return r.editorErrorMessage = V, r.validateError = !0, !1;
214
- }
215
- }
216
- return r.editorErrorMessage = "", r.validateError = !1, !0;
217
- }, ae = () => {
218
- var m, M;
219
- const V = (m = W.value) == null ? void 0 : m.$refs;
220
- return (M = V == null ? void 0 : V.input) != null ? M : V == null ? void 0 : V.textarea;
221
- }, Q = () => {
222
- S("close");
223
- }, $ = () => {
224
- e.closeOnPressEscape && Q();
225
- };
226
- return e.lockScroll && Ge(s), {
227
- ...ct(r),
228
- ns: v,
229
- overlayEvent: N,
230
- visible: s,
231
- hasMessage: te,
232
- typeClass: K,
233
- contentId: f,
234
- inputId: O,
235
- btnSize: u,
236
- iconComponent: j,
237
- confirmButtonClasses: E,
238
- rootRef: z,
239
- focusStartRef: D,
240
- headerRef: G,
241
- inputRef: W,
242
- confirmRef: oe,
243
- doClose: y,
244
- handleClose: Q,
245
- onCloseRequested: $,
246
- handleWrapperClick: T,
247
- handleInputEnter: P,
248
- handleAction: S,
249
- t: b
250
- };
251
- }
252
- });
253
- function St(e, d, i, p, v, u) {
254
- const b = J("el-icon"), B = J("close"), s = J("el-input"), r = J("el-button"), K = J("el-focus-trap"), f = J("el-overlay");
255
- return n(), g(dt, {
256
- name: "fade-in-linear",
257
- onAfterLeave: (O) => e.$emit("vanish"),
258
- persisted: ""
259
- }, {
260
- default: o(() => [
261
- ce(a(f, {
262
- "z-index": e.zIndex,
263
- "overlay-class": [e.ns.is("message-box"), e.modalClass],
264
- mask: e.modal
265
- }, {
266
- default: o(() => [
267
- c("div", {
268
- role: "dialog",
269
- "aria-label": e.title,
270
- "aria-modal": "true",
271
- "aria-describedby": e.showInput ? void 0 : e.contentId,
272
- class: w(`${e.ns.namespace.value}-overlay-message-box`),
273
- onClick: e.overlayEvent.onClick,
274
- onMousedown: e.overlayEvent.onMousedown,
275
- onMouseup: e.overlayEvent.onMouseup
276
- }, [
277
- a(K, {
278
- loop: "",
279
- trapped: e.visible,
280
- "focus-trap-el": e.rootRef,
281
- "focus-start-el": e.focusStartRef,
282
- onReleaseRequested: e.onCloseRequested
283
- }, {
284
- default: o(() => [
285
- c("div", {
286
- ref: "rootRef",
287
- class: w([
288
- e.ns.b(),
289
- e.customClass,
290
- e.ns.is("draggable", e.draggable),
291
- { [e.ns.m("center")]: e.center }
292
- ]),
293
- style: he(e.customStyle),
294
- tabindex: "-1",
295
- onClick: ne(() => {
296
- }, ["stop"])
297
- }, [
298
- e.title !== null && e.title !== void 0 ? (n(), C("div", {
299
- key: 0,
300
- ref: "headerRef",
301
- class: w([e.ns.e("header"), { "show-close": e.showClose }])
302
- }, [
303
- c("div", {
304
- class: w(e.ns.e("title"))
305
- }, [
306
- e.iconComponent && e.center ? (n(), g(b, {
307
- key: 0,
308
- class: w([e.ns.e("status"), e.typeClass])
309
- }, {
310
- default: o(() => [
311
- (n(), g(se(e.iconComponent)))
312
- ]),
313
- _: 1
314
- }, 8, ["class"])) : h("v-if", !0),
315
- c("span", null, _(e.title), 1)
316
- ], 2),
317
- e.showClose ? (n(), C("button", {
318
- key: 0,
319
- type: "button",
320
- class: w(e.ns.e("headerbtn")),
321
- "aria-label": e.t("el.messagebox.close"),
322
- onClick: (O) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"),
323
- onKeydown: re(ne((O) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"])
324
- }, [
325
- a(b, {
326
- class: w(e.ns.e("close"))
327
- }, {
328
- default: o(() => [
329
- a(B)
330
- ]),
331
- _: 1
332
- }, 8, ["class"])
333
- ], 42, ["aria-label", "onClick", "onKeydown"])) : h("v-if", !0)
334
- ], 2)) : h("v-if", !0),
335
- c("div", {
336
- id: e.contentId,
337
- class: w(e.ns.e("content"))
338
- }, [
339
- c("div", {
340
- class: w(e.ns.e("container"))
341
- }, [
342
- e.iconComponent && !e.center && e.hasMessage ? (n(), g(b, {
343
- key: 0,
344
- class: w([e.ns.e("status"), e.typeClass])
345
- }, {
346
- default: o(() => [
347
- (n(), g(se(e.iconComponent)))
348
- ]),
349
- _: 1
350
- }, 8, ["class"])) : h("v-if", !0),
351
- e.hasMessage ? (n(), C("div", {
352
- key: 1,
353
- class: w(e.ns.e("message"))
354
- }, [
355
- ft(e.$slots, "default", {}, () => [
356
- e.dangerouslyUseHTMLString ? (n(), g(se(e.showInput ? "label" : "p"), {
357
- key: 1,
358
- for: e.showInput ? e.inputId : void 0,
359
- innerHTML: e.message
360
- }, null, 8, ["for", "innerHTML"])) : (n(), g(se(e.showInput ? "label" : "p"), {
361
- key: 0,
362
- for: e.showInput ? e.inputId : void 0
363
- }, {
364
- default: o(() => [
365
- k(_(e.dangerouslyUseHTMLString ? "" : e.message), 1)
366
- ]),
367
- _: 1
368
- }, 8, ["for"]))
369
- ])
370
- ], 2)) : h("v-if", !0)
371
- ], 2),
372
- ce(c("div", {
373
- class: w(e.ns.e("input"))
374
- }, [
375
- a(s, {
376
- id: e.inputId,
377
- ref: "inputRef",
378
- modelValue: e.inputValue,
379
- "onUpdate:modelValue": (O) => e.inputValue = O,
380
- type: e.inputType,
381
- placeholder: e.inputPlaceholder,
382
- "aria-invalid": e.validateError,
383
- class: w({ invalid: e.validateError }),
384
- onKeydown: re(e.handleInputEnter, ["enter"])
385
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "type", "placeholder", "aria-invalid", "class", "onKeydown"]),
386
- c("div", {
387
- class: w(e.ns.e("errormsg")),
388
- style: he({
389
- visibility: e.editorErrorMessage ? "visible" : "hidden"
390
- })
391
- }, _(e.editorErrorMessage), 7)
392
- ], 2), [
393
- [de, e.showInput]
394
- ])
395
- ], 10, ["id"]),
396
- c("div", {
397
- class: w(e.ns.e("btns"))
398
- }, [
399
- e.showCancelButton ? (n(), g(r, {
400
- key: 0,
401
- loading: e.cancelButtonLoading,
402
- "loading-icon": e.cancelButtonLoadingIcon,
403
- class: w([e.cancelButtonClass]),
404
- round: e.roundButton,
405
- size: e.btnSize,
406
- onClick: (O) => e.handleAction("cancel"),
407
- onKeydown: re(ne((O) => e.handleAction("cancel"), ["prevent"]), ["enter"])
408
- }, {
409
- default: o(() => [
410
- k(_(e.cancelButtonText || e.t("el.messagebox.cancel")), 1)
411
- ]),
412
- _: 1
413
- }, 8, ["loading", "loading-icon", "class", "round", "size", "onClick", "onKeydown"])) : h("v-if", !0),
414
- ce(a(r, {
415
- ref: "confirmRef",
416
- type: "primary",
417
- loading: e.confirmButtonLoading,
418
- "loading-icon": e.confirmButtonLoadingIcon,
419
- class: w([e.confirmButtonClasses]),
420
- round: e.roundButton,
421
- disabled: e.confirmButtonDisabled,
422
- size: e.btnSize,
423
- onClick: (O) => e.handleAction("confirm"),
424
- onKeydown: re(ne((O) => e.handleAction("confirm"), ["prevent"]), ["enter"])
425
- }, {
426
- default: o(() => [
427
- k(_(e.confirmButtonText || e.t("el.messagebox.confirm")), 1)
428
- ]),
429
- _: 1
430
- }, 8, ["loading", "loading-icon", "class", "round", "disabled", "size", "onClick", "onKeydown"]), [
431
- [de, e.showConfirmButton]
432
- ])
433
- ], 2)
434
- ], 14, ["onClick"])
435
- ]),
436
- _: 3
437
- }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onReleaseRequested"])
438
- ], 42, ["aria-label", "aria-describedby", "onClick", "onMousedown", "onMouseup"])
439
- ]),
440
- _: 3
441
- }, 8, ["z-index", "overlay-class", "mask"]), [
442
- [de, e.visible]
443
- ])
444
- ]),
445
- _: 3
446
- }, 8, ["onAfterLeave"]);
447
- }
448
- var _t = /* @__PURE__ */ Ae(Tt, [["render", St], ["__file", "index.vue"]]);
449
- const ee = /* @__PURE__ */ new Map(), Bt = (e) => {
450
- let d = document.body;
451
- return e.appendTo && (ve(e.appendTo) && (d = document.querySelector(e.appendTo)), ge(e.appendTo) && (d = e.appendTo), ge(d) || (De("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body."), d = document.body)), d;
452
- }, Vt = (e, d, i = null) => {
453
- const p = a(_t, e, fe(e.message) || Me(e.message) ? {
454
- default: fe(e.message) ? e.message : () => e.message
455
- } : null);
456
- return p.appContext = i, Le(p, d), Bt(e).appendChild(d.firstElementChild), p.component;
457
- }, Mt = () => document.createElement("div"), Lt = (e, d) => {
458
- const i = Mt();
459
- e.onVanish = () => {
460
- Le(null, i), ee.delete(v);
461
- }, e.onAction = (u) => {
462
- const b = ee.get(v);
463
- let B;
464
- e.showInput ? B = { value: v.inputValue, action: u } : B = u, e.callback ? e.callback(B, p.proxy) : u === "cancel" || u === "close" ? e.distinguishCancelAndClose && u !== "cancel" ? b.reject("close") : b.reject("cancel") : b.resolve(B);
465
- };
466
- const p = Vt(e, i, d), v = p.proxy;
467
- for (const u in e)
468
- ye(e, u) && !ye(v.$props, u) && (v[u] = e[u]);
469
- return v.visible = !0, v;
470
- };
471
- function Z(e, d = null) {
472
- if (!ze)
473
- return Promise.reject();
474
- let i;
475
- return ve(e) || Me(e) ? e = {
476
- message: e
477
- } : i = e.callback, new Promise((p, v) => {
478
- const u = Lt(e, d ?? Z._context);
479
- ee.set(u, {
480
- options: e,
481
- callback: i,
482
- resolve: p,
483
- reject: v
484
- });
485
- });
486
- }
487
- const It = ["alert", "confirm", "prompt"], Ot = {
488
- alert: { closeOnPressEscape: !1, closeOnClickModal: !1 },
489
- confirm: { showCancelButton: !0 },
490
- prompt: { showCancelButton: !0, showInput: !0 }
491
- };
492
- It.forEach((e) => {
493
- Z[e] = Ft(e);
494
- });
495
- function Ft(e) {
496
- return (d, i, p, v) => {
497
- let u = "";
498
- return Pe(i) ? (p = i, u = "") : Re(i) ? u = "" : u = i, Z(Object.assign({
499
- title: u,
500
- message: d,
501
- type: "",
502
- ...Ot[e]
503
- }, p, {
504
- boxType: e
505
- }), v);
506
- };
507
- }
508
- Z.close = () => {
509
- ee.forEach((e, d) => {
510
- d.doClose();
511
- }), ee.clear();
512
- };
513
- Z._context = null;
514
- const R = Z;
515
- R.install = (e) => {
516
- R._context = e._context, e.config.globalProperties.$msgbox = R, e.config.globalProperties.$messageBox = R, e.config.globalProperties.$alert = R.alert, e.config.globalProperties.$confirm = R.confirm, e.config.globalProperties.$prompt = R.prompt;
517
- };
518
- const Nt = R, $t = {
36
+ import "./index-85a32a00.js";
37
+ import "./validator-10fa54fe.js";
38
+ const Le = {
519
39
  // 表单字段
520
40
  ruleFormPrice: !0,
521
41
  // 价格范围
@@ -531,21 +51,21 @@ const Nt = R, $t = {
531
51
  tableEnable: !0
532
52
  // 启用按钮
533
53
  };
534
- const ie = (e) => (pt("data-v-b57c57a6"), e = e(), vt(), e), At = { class: "st-factorWarning" }, zt = { class: "custom-header" }, Pt = /* @__PURE__ */ ie(() => /* @__PURE__ */ c("span", { style: { "margin-right": "4px" } }, "因子预警", -1)), Rt = { class: "factor-name" }, Dt = ["onClick"], Ut = { class: "factor-name" }, qt = ["onClick"], Ht = { style: { display: "flex", "align-items": "start" } }, Kt = {
54
+ const D = (n) => (xe("data-v-b57c57a6"), n = n(), Se(), n), Oe = { class: "st-factorWarning" }, De = { class: "custom-header" }, Pe = /* @__PURE__ */ D(() => /* @__PURE__ */ m("span", { style: { "margin-right": "4px" } }, "因子预警", -1)), $e = { class: "factor-name" }, ze = ["onClick"], Ue = { class: "factor-name" }, Be = ["onClick"], Ie = { style: { display: "flex", "align-items": "start" } }, Me = {
535
55
  key: 0,
536
56
  style: { flex: "1" }
537
- }, jt = /* @__PURE__ */ ie(() => /* @__PURE__ */ c("span", { style: { margin: "0 5px" } }, "~", -1)), Gt = {
57
+ }, qe = /* @__PURE__ */ D(() => /* @__PURE__ */ m("span", { style: { margin: "0 5px" } }, "~", -1)), Ae = {
538
58
  key: 0,
539
59
  style: { color: "#f56c6c" }
540
- }, Wt = {
60
+ }, Re = {
541
61
  key: 1,
542
62
  style: { color: "#67c23a" }
543
- }, Jt = { key: 0 }, Xt = { key: 1 }, Zt = { key: 2 }, Qt = { class: "shortcut-title" }, Yt = /* @__PURE__ */ ie(() => /* @__PURE__ */ c("span", null, "我的配置", -1)), xt = { class: "shortcut-config" }, eo = {
63
+ }, je = { key: 0 }, Je = { key: 1 }, We = { key: 2 }, Ge = { class: "shortcut-title" }, He = /* @__PURE__ */ D(() => /* @__PURE__ */ m("span", null, "我的配置", -1)), Ke = { class: "shortcut-config" }, Qe = {
544
64
  key: 1,
545
65
  class: "empty"
546
- }, to = { class: "shortcut-title" }, oo = /* @__PURE__ */ ie(() => /* @__PURE__ */ c("span", null, "新增配置", -1)), lo = { class: "custom-footer" }, ao = {
66
+ }, Xe = { class: "shortcut-title" }, Ye = /* @__PURE__ */ D(() => /* @__PURE__ */ m("span", null, "新增配置", -1)), Ze = { class: "custom-footer" }, et = {
547
67
  __name: "index",
548
- props: /* @__PURE__ */ Ce({
68
+ props: /* @__PURE__ */ R({
549
69
  // 弹窗名称
550
70
  title: { type: [String, null], default: null },
551
71
  // 因子数据
@@ -563,316 +83,316 @@ const ie = (e) => (pt("data-v-b57c57a6"), e = e(), vt(), e), At = { class: "st-f
563
83
  visible: { default: !1 },
564
84
  visibleModifiers: {}
565
85
  }),
566
- emits: /* @__PURE__ */ Ce(["add", "delete", "enabled", "closed", "shortcutAdd", "shortcutDelete"], ["update:visible"]),
567
- setup(e, { emit: d }) {
568
- const i = I("ruleForm"), p = mt(e, "visible"), v = d, u = e, b = Object.assign($t, u.showConfig), B = I(null), s = I({
86
+ emits: /* @__PURE__ */ R(["add", "delete", "enabled", "closed", "shortcutAdd", "shortcutDelete"], ["update:visible"]),
87
+ setup(n, { emit: J }) {
88
+ const C = w("ruleForm"), F = Ce(n, "visible"), S = J, P = n, V = Object.assign(Le, P.showConfig), L = w(null), r = w({
569
89
  factorType: 1,
570
90
  factorSelectedList: [],
571
91
  totalCount: 1,
572
92
  minPrice: null,
573
93
  maxPrice: null,
574
94
  mark: null
575
- }), r = I({
95
+ }), W = w({
576
96
  factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
577
97
  factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
578
98
  totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }]
579
- }), K = I(null), f = I({
99
+ }), U = w(null), u = w({
580
100
  shortcutName: null,
581
101
  factorType: 1,
582
102
  factorSelectedList: [],
583
103
  totalCount: 1
584
- }), O = I({
104
+ }), G = w({
585
105
  factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
586
106
  factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
587
107
  totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }],
588
108
  shortcutName: [{ required: !0, message: "请填写配置名称", trigger: "blur" }]
589
- }), j = () => {
590
- s.value = {
109
+ }), O = () => {
110
+ r.value = {
591
111
  factorType: 1,
592
112
  factorSelectedList: [],
593
113
  totalCount: 1,
594
114
  minPrice: null,
595
115
  maxPrice: null,
596
116
  mark: null
597
- }, f.value = {
117
+ }, u.value = {
598
118
  shortcutName: null,
599
119
  factorType: 1,
600
120
  factorSelectedList: [],
601
121
  totalCount: 1
602
122
  };
603
- }, te = async (E) => {
604
- Object.assign(s.value, {
605
- factorSelectedList: [E],
123
+ }, B = async (i) => {
124
+ Object.assign(r.value, {
125
+ factorSelectedList: [i],
606
126
  totalCount: 3
607
127
  });
608
- const l = {
609
- factorSelectedList: s.value.factorSelectedList.map((y) => ({
610
- factorName: y,
611
- ...s.value
128
+ const t = {
129
+ factorSelectedList: r.value.factorSelectedList.map((s) => ({
130
+ factorName: s,
131
+ ...r.value
612
132
  }))
613
- }, F = () => {
614
- const y = s.value.factorType;
615
- j(), s.value.factorType = y;
133
+ }, _ = () => {
134
+ const s = r.value.factorType;
135
+ O(), r.value.factorType = s;
616
136
  };
617
- G(B.value, l, F);
618
- }, z = async (E) => {
619
- const l = JSON.parse(E.data);
620
- Object.assign(s.value, {
621
- factorType: l.factorType,
622
- factorSelectedList: l.factorSelectedList,
623
- totalCount: l.totalCount
137
+ $(L.value, t, _);
138
+ }, H = async (i) => {
139
+ const t = JSON.parse(i.data);
140
+ Object.assign(r.value, {
141
+ factorType: t.factorType,
142
+ factorSelectedList: t.factorSelectedList,
143
+ totalCount: t.totalCount
624
144
  });
625
- const F = {
145
+ const _ = {
626
146
  // 通过快捷进行添加的因子, 具备有效次数上限10的校验
627
- factorSelectedList: s.value.factorSelectedList.map((T) => {
628
- let N = l.totalCount;
629
- const P = u.tableData.find(({ factorExtendName: S }) => S === T);
630
- if (P) {
631
- const S = P.totalCount - P.currentCount;
632
- S === 0 ? N = l.totalCount : N = Math.min(l.totalCount, 10 - S >= 0 ? 10 - S : 0);
147
+ factorSelectedList: r.value.factorSelectedList.map((y) => {
148
+ let b = t.totalCount;
149
+ const E = P.tableData.find(({ factorExtendName: h }) => h === y);
150
+ if (E) {
151
+ const h = E.totalCount - E.currentCount;
152
+ h === 0 ? b = t.totalCount : b = Math.min(t.totalCount, 10 - h >= 0 ? 10 - h : 0);
633
153
  }
634
154
  return {
635
- factorName: T,
636
- ...s.value,
637
- totalCount: N
155
+ factorName: y,
156
+ ...r.value,
157
+ totalCount: b
638
158
  };
639
159
  })
640
- }, y = () => j();
641
- G(B.value, F, y);
642
- }, G = yt(async (E, l, F) => {
643
- E && await E.validate((y) => {
644
- if (!y)
160
+ }, s = () => O();
161
+ $(L.value, _, s);
162
+ }, $ = Ee(async (i, t, _) => {
163
+ i && await i.validate((s) => {
164
+ if (!s)
645
165
  return !1;
646
- const T = l ?? {
647
- factorSelectedList: s.value.factorSelectedList.map((N) => ({
648
- factorName: N,
649
- ...s.value
166
+ const y = t ?? {
167
+ factorSelectedList: r.value.factorSelectedList.map((b) => ({
168
+ factorName: b,
169
+ ...r.value
650
170
  }))
651
171
  };
652
- v("add", T), F ? F() : p.value = !1;
172
+ S("add", y), _ ? _() : F.value = !1;
653
173
  });
654
- }, 200), D = async (E) => {
655
- E && await E.validate((l) => {
656
- if (!l)
174
+ }, 200), K = async (i) => {
175
+ i && await i.validate((t) => {
176
+ if (!t)
657
177
  return !1;
658
- const F = {
659
- shortcutName: f.value.shortcutName,
660
- data: JSON.stringify(f.value)
178
+ const _ = {
179
+ shortcutName: u.value.shortcutName,
180
+ data: JSON.stringify(u.value)
661
181
  };
662
- v("shortcutAdd", F), j();
182
+ S("shortcutAdd", _), O();
663
183
  });
664
- }, W = (E) => {
665
- f.value = JSON.parse(E.data);
666
- }, oe = (E) => {
667
- Nt.confirm(`是否确认删除配置: ${E.shortcutName} ?`, "删除提示", {
184
+ }, Q = (i) => {
185
+ u.value = JSON.parse(i.data);
186
+ }, X = (i) => {
187
+ be.confirm(`是否确认删除配置: ${i.shortcutName} ?`, "删除提示", {
668
188
  confirmButtonText: "确认",
669
189
  cancelButtonText: "取消",
670
190
  type: "warning"
671
- }).then(() => v("shortcutDelete", E));
191
+ }).then(() => S("shortcutDelete", i));
672
192
  };
673
- return me(
674
- () => p.value,
675
- (E) => {
676
- E && (i.value = u.allowOperation ? "ruleForm" : "table", j());
193
+ return Te(
194
+ () => F.value,
195
+ (i) => {
196
+ i && (C.value = P.allowOperation ? "ruleForm" : "table", O());
677
197
  },
678
198
  {
679
199
  immediate: !0
680
200
  }
681
- ), (E, l) => {
682
- const F = nt, y = Be, T = et, N = Xe, P = Ze, S = lt, le = ot, ae = Ve, Q = tt, $ = Qe, m = xe, M = Ye, V = Ie, Y = Je, Oe = Et, Fe = Ke, Ne = qe;
683
- return n(), C("div", At, [
684
- a(Ne, { locale: A(Ue) }, {
685
- default: o(() => [
686
- a(Fe, {
687
- modelValue: p.value,
688
- "onUpdate:modelValue": l[17] || (l[17] = (t) => p.value = t),
201
+ ), (i, t) => {
202
+ const _ = ke, s = pe, y = ye, b = ie, E = ce, h = ge, Y = he, I = _e, M = ve, T = de, Z = fe, ee = me, q = Ve, A = se, te = Fe, le = ue, ae = ne;
203
+ return o(), c("div", Oe, [
204
+ a(ae, { locale: g(re) }, {
205
+ default: l(() => [
206
+ a(le, {
207
+ modelValue: F.value,
208
+ "onUpdate:modelValue": t[17] || (t[17] = (e) => F.value = e),
689
209
  width: "1020",
690
210
  "align-center": "",
691
211
  "destroy-on-close": "",
692
- onClosed: l[18] || (l[18] = (t) => v("closed"))
212
+ onClosed: t[18] || (t[18] = (e) => S("closed"))
693
213
  }, {
694
- header: o(({ close: t, titleId: L, titleClass: ue }) => [
695
- c("div", zt, [
696
- c("div", {
697
- class: w(ue)
214
+ header: l(({ close: e, titleId: v, titleClass: z }) => [
215
+ m("div", De, [
216
+ m("div", {
217
+ class: we(z)
698
218
  }, [
699
- Pt,
700
- c("span", null, _(e.title), 1)
219
+ Pe,
220
+ m("span", null, k(n.title), 1)
701
221
  ], 2),
702
- a(F, {
703
- modelValue: i.value,
704
- "onUpdate:modelValue": l[0] || (l[0] = ($e) => i.value = $e),
222
+ a(_, {
223
+ modelValue: C.value,
224
+ "onUpdate:modelValue": t[0] || (t[0] = (oe) => C.value = oe),
705
225
  size: "default",
706
226
  options: [
707
- { label: "添加", value: "ruleForm", disabled: !e.allowOperation },
227
+ { label: "添加", value: "ruleForm", disabled: !n.allowOperation },
708
228
  { label: "管理", value: "table", disabled: !1 },
709
- { label: "快捷配置", value: "shortcut", disabled: !e.allowOperation }
229
+ { label: "快捷配置", value: "shortcut", disabled: !n.allowOperation }
710
230
  ]
711
231
  }, null, 8, ["modelValue", "options"])
712
232
  ])
713
233
  ]),
714
- footer: o(() => [
715
- c("div", lo, [
716
- a(y, {
234
+ footer: l(() => [
235
+ m("div", Ze, [
236
+ a(s, {
717
237
  size: "default",
718
- onClick: l[14] || (l[14] = (t) => p.value = !1)
238
+ onClick: t[14] || (t[14] = (e) => F.value = !1)
719
239
  }, {
720
- default: o(() => [
721
- k("关闭")
240
+ default: l(() => [
241
+ d("关闭")
722
242
  ]),
723
243
  _: 1
724
244
  }),
725
- i.value === "ruleForm" ? (n(), g(y, {
245
+ C.value === "ruleForm" ? (o(), f(s, {
726
246
  key: 0,
727
247
  size: "default",
728
248
  type: "primary",
729
- onClick: l[15] || (l[15] = (t) => A(G)(B.value))
249
+ onClick: t[15] || (t[15] = (e) => g($)(L.value))
730
250
  }, {
731
- default: o(() => [
732
- k(" 确认 ")
251
+ default: l(() => [
252
+ d(" 确认 ")
733
253
  ]),
734
254
  _: 1
735
- })) : h("", !0),
736
- i.value === "shortcut" ? (n(), g(y, {
255
+ })) : p("", !0),
256
+ C.value === "shortcut" ? (o(), f(s, {
737
257
  key: 1,
738
258
  size: "default",
739
259
  type: "primary",
740
- onClick: l[16] || (l[16] = (t) => D(K.value))
260
+ onClick: t[16] || (t[16] = (e) => K(U.value))
741
261
  }, {
742
- default: o(() => [
743
- k(" 保存配置 ")
262
+ default: l(() => [
263
+ d(" 保存配置 ")
744
264
  ]),
745
265
  _: 1
746
- })) : h("", !0)
266
+ })) : p("", !0)
747
267
  ])
748
268
  ]),
749
- default: o(() => [
750
- i.value === "ruleForm" ? (n(), g(Q, {
269
+ default: l(() => [
270
+ C.value === "ruleForm" ? (o(), f(M, {
751
271
  key: 0,
752
272
  ref_key: "ruleFormRef",
753
- ref: B,
754
- model: s.value,
755
- rules: r.value,
273
+ ref: L,
274
+ model: r.value,
275
+ rules: W.value,
756
276
  size: "default",
757
277
  "label-width": "90px"
758
278
  }, {
759
- default: o(() => [
760
- a(T, {
279
+ default: l(() => [
280
+ a(y, {
761
281
  label: "交易类型:",
762
282
  prop: "factorType"
763
283
  }, {
764
- default: o(() => [
765
- a(y, {
284
+ default: l(() => [
285
+ a(s, {
766
286
  type: "danger",
767
- plain: s.value.factorType !== 1,
768
- onClick: l[1] || (l[1] = () => {
769
- s.value.factorType === -1 && (s.value.factorSelectedList = []), s.value.factorType = 1;
287
+ plain: r.value.factorType !== 1,
288
+ onClick: t[1] || (t[1] = () => {
289
+ r.value.factorType === -1 && (r.value.factorSelectedList = []), r.value.factorType = 1;
770
290
  })
771
291
  }, {
772
- default: o(() => [
773
- k(" 多 ")
292
+ default: l(() => [
293
+ d(" 多 ")
774
294
  ]),
775
295
  _: 1
776
296
  }, 8, ["plain"]),
777
- a(y, {
297
+ a(s, {
778
298
  type: "success",
779
- plain: s.value.factorType !== -1,
780
- onClick: l[2] || (l[2] = () => {
781
- s.value.factorType === 1 && (s.value.factorSelectedList = []), s.value.factorType = -1;
299
+ plain: r.value.factorType !== -1,
300
+ onClick: t[2] || (t[2] = () => {
301
+ r.value.factorType === 1 && (r.value.factorSelectedList = []), r.value.factorType = -1;
782
302
  })
783
303
  }, {
784
- default: o(() => [
785
- k(" 空 ")
304
+ default: l(() => [
305
+ d(" 空 ")
786
306
  ]),
787
307
  _: 1
788
308
  }, 8, ["plain"])
789
309
  ]),
790
310
  _: 1
791
311
  }),
792
- a(T, {
312
+ a(y, {
793
313
  label: "预警因子:",
794
314
  prop: "factorSelectedList"
795
315
  }, {
796
- default: o(() => [
797
- a(P, {
798
- modelValue: s.value.factorSelectedList,
799
- "onUpdate:modelValue": l[3] || (l[3] = (t) => s.value.factorSelectedList = t)
316
+ default: l(() => [
317
+ a(E, {
318
+ modelValue: r.value.factorSelectedList,
319
+ "onUpdate:modelValue": t[3] || (t[3] = (e) => r.value.factorSelectedList = e)
800
320
  }, {
801
- default: o(() => [
802
- s.value.factorType === 1 ? (n(!0), C(q, { key: 0 }, X(e.moreFactorOptions, (t, L) => (n(), C("div", {
321
+ default: l(() => [
322
+ r.value.factorType === 1 ? (o(!0), c(x, { key: 0 }, N(n.moreFactorOptions, (e, v) => (o(), c("div", {
803
323
  class: "factor-checkbox",
804
- key: L
324
+ key: v
805
325
  }, [
806
- a(N, {
807
- label: t.factorTypeName,
808
- value: t.factorTypeName
326
+ a(b, {
327
+ label: e.factorTypeName,
328
+ value: e.factorTypeName
809
329
  }, {
810
- default: o(() => [
811
- c("span", Rt, _(t.factorTypeName), 1)
330
+ default: l(() => [
331
+ m("span", $e, k(e.factorTypeName), 1)
812
332
  ]),
813
333
  _: 2
814
334
  }, 1032, ["label", "value"]),
815
- c("span", {
335
+ m("span", {
816
336
  class: "tag-button",
817
- onClick: (ue) => te(t.factorTypeName)
818
- }, "+3", 8, Dt)
819
- ]))), 128)) : h("", !0),
820
- s.value.factorType === -1 ? (n(!0), C(q, { key: 1 }, X(e.emptyFactorOptions, (t, L) => (n(), C("div", {
337
+ onClick: (z) => B(e.factorTypeName)
338
+ }, "+3", 8, ze)
339
+ ]))), 128)) : p("", !0),
340
+ r.value.factorType === -1 ? (o(!0), c(x, { key: 1 }, N(n.emptyFactorOptions, (e, v) => (o(), c("div", {
821
341
  class: "factor-checkbox",
822
- key: L
342
+ key: v
823
343
  }, [
824
- a(N, {
825
- label: t.factorTypeName,
826
- value: t.factorTypeName
344
+ a(b, {
345
+ label: e.factorTypeName,
346
+ value: e.factorTypeName
827
347
  }, {
828
- default: o(() => [
829
- c("span", Ut, _(t.factorTypeName), 1)
348
+ default: l(() => [
349
+ m("span", Ue, k(e.factorTypeName), 1)
830
350
  ]),
831
351
  _: 2
832
352
  }, 1032, ["label", "value"]),
833
- c("span", {
353
+ m("span", {
834
354
  class: "tag-button",
835
- onClick: (ue) => te(t.factorTypeName)
836
- }, "+3", 8, qt)
837
- ]))), 128)) : h("", !0)
355
+ onClick: (z) => B(e.factorTypeName)
356
+ }, "+3", 8, Be)
357
+ ]))), 128)) : p("", !0)
838
358
  ]),
839
359
  _: 1
840
360
  }, 8, ["modelValue"])
841
361
  ]),
842
362
  _: 1
843
363
  }),
844
- a(T, {
364
+ a(y, {
845
365
  label: "预警次数:",
846
366
  prop: "totalCount"
847
367
  }, {
848
- default: o(() => [
849
- c("div", Ht, [
850
- a(S, {
851
- modelValue: s.value.totalCount,
852
- "onUpdate:modelValue": l[4] || (l[4] = (t) => s.value.totalCount = t),
368
+ default: l(() => [
369
+ m("div", Ie, [
370
+ a(h, {
371
+ modelValue: r.value.totalCount,
372
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.totalCount = e),
853
373
  min: 1,
854
374
  "controls-position": "right",
855
375
  style: { "margin-right": "20px" }
856
376
  }, null, 8, ["modelValue"]),
857
- e.shortcutData.length ? (n(), C("div", Kt, [
858
- (n(!0), C(q, null, X(e.shortcutData, (t) => (n(), g(y, {
859
- key: t.id,
860
- onClick: (L) => z(t),
377
+ n.shortcutData.length ? (o(), c("div", Me, [
378
+ (o(!0), c(x, null, N(n.shortcutData, (e) => (o(), f(s, {
379
+ key: e.id,
380
+ onClick: (v) => H(e),
861
381
  style: { margin: "0 12px 4px 0" }
862
382
  }, {
863
- default: o(() => [
864
- k(_(t.shortcutName), 1)
383
+ default: l(() => [
384
+ d(k(e.shortcutName), 1)
865
385
  ]),
866
386
  _: 2
867
387
  }, 1032, ["onClick"]))), 128))
868
- ])) : (n(), g(le, {
388
+ ])) : (o(), f(Y, {
869
389
  key: 1,
870
390
  type: "primary",
871
391
  style: { cursor: "pointer" },
872
- onClick: l[5] || (l[5] = () => i.value = "shortcut")
392
+ onClick: t[5] || (t[5] = () => C.value = "shortcut")
873
393
  }, {
874
- default: o(() => [
875
- k(" 暂无快捷配置, 是否点击前往自定义配置? ")
394
+ default: l(() => [
395
+ d(" 暂无快捷配置, 是否点击前往自定义配置? ")
876
396
  ]),
877
397
  _: 1
878
398
  }))
@@ -880,23 +400,23 @@ const ie = (e) => (pt("data-v-b57c57a6"), e = e(), vt(), e), At = { class: "st-f
880
400
  ]),
881
401
  _: 1
882
402
  }),
883
- A(b).ruleFormPrice ? (n(), g(T, {
403
+ g(V).ruleFormPrice ? (o(), f(y, {
884
404
  key: 0,
885
405
  label: "价格范围:"
886
406
  }, {
887
- default: o(() => [
888
- a(S, {
889
- modelValue: s.value.minPrice,
890
- "onUpdate:modelValue": l[6] || (l[6] = (t) => s.value.minPrice = t),
407
+ default: l(() => [
408
+ a(h, {
409
+ modelValue: r.value.minPrice,
410
+ "onUpdate:modelValue": t[6] || (t[6] = (e) => r.value.minPrice = e),
891
411
  min: -999,
892
412
  placeholder: "请输入",
893
413
  max: 999,
894
414
  "controls-position": "right"
895
415
  }, null, 8, ["modelValue"]),
896
- jt,
897
- a(S, {
898
- modelValue: s.value.maxPrice,
899
- "onUpdate:modelValue": l[7] || (l[7] = (t) => s.value.maxPrice = t),
416
+ qe,
417
+ a(h, {
418
+ modelValue: r.value.maxPrice,
419
+ "onUpdate:modelValue": t[7] || (t[7] = (e) => r.value.maxPrice = e),
900
420
  placeholder: "请输入",
901
421
  min: -999,
902
422
  max: 999,
@@ -904,15 +424,15 @@ const ie = (e) => (pt("data-v-b57c57a6"), e = e(), vt(), e), At = { class: "st-f
904
424
  }, null, 8, ["modelValue"])
905
425
  ]),
906
426
  _: 1
907
- })) : h("", !0),
908
- A(b).ruleFormMark ? (n(), g(T, {
427
+ })) : p("", !0),
428
+ g(V).ruleFormMark ? (o(), f(y, {
909
429
  key: 1,
910
430
  label: "备注:"
911
431
  }, {
912
- default: o(() => [
913
- a(ae, {
914
- modelValue: s.value.mark,
915
- "onUpdate:modelValue": l[8] || (l[8] = (t) => s.value.mark = t),
432
+ default: l(() => [
433
+ a(I, {
434
+ modelValue: r.value.mark,
435
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => r.value.mark = e),
916
436
  type: "textarea",
917
437
  placeholder: "请输入关键字",
918
438
  rows: 2,
@@ -920,106 +440,106 @@ const ie = (e) => (pt("data-v-b57c57a6"), e = e(), vt(), e), At = { class: "st-f
920
440
  }, null, 8, ["modelValue"])
921
441
  ]),
922
442
  _: 1
923
- })) : h("", !0)
443
+ })) : p("", !0)
924
444
  ]),
925
445
  _: 1
926
- }, 8, ["model", "rules"])) : h("", !0),
927
- i.value === "table" ? (n(), g(M, {
446
+ }, 8, ["model", "rules"])) : p("", !0),
447
+ C.value === "table" ? (o(), f(ee, {
928
448
  key: 1,
929
- data: e.tableData,
449
+ data: n.tableData,
930
450
  size: "small"
931
451
  }, {
932
- default: o(() => [
933
- a($, {
452
+ default: l(() => [
453
+ a(T, {
934
454
  label: "预警周期",
935
455
  width: "70"
936
456
  }, {
937
- default: o((t) => [
938
- k(_(t.row.freqName || "-"), 1)
457
+ default: l((e) => [
458
+ d(k(e.row.freqName || "-"), 1)
939
459
  ]),
940
460
  _: 1
941
461
  }),
942
- a($, {
462
+ a(T, {
943
463
  label: "交易类型",
944
464
  width: "70"
945
465
  }, {
946
- default: o((t) => [
947
- t.row.factorExtendValue == 1 ? (n(), C("span", Gt, "多")) : (n(), C("span", Wt, "空"))
466
+ default: l((e) => [
467
+ e.row.factorExtendValue == 1 ? (o(), c("span", Ae, "多")) : (o(), c("span", Re, "空"))
948
468
  ]),
949
469
  _: 1
950
470
  }),
951
- a($, { label: "预警因子" }, {
952
- default: o((t) => [
953
- k(_(t.row.factorExtendName || "-"), 1)
471
+ a(T, { label: "预警因子" }, {
472
+ default: l((e) => [
473
+ d(k(e.row.factorExtendName || "-"), 1)
954
474
  ]),
955
475
  _: 1
956
476
  }),
957
- a($, {
477
+ a(T, {
958
478
  label: "预警次数",
959
479
  width: "70"
960
480
  }, {
961
- default: o((t) => [
962
- k(_(`${t.row.currentCount} / ${t.row.totalCount}`), 1)
481
+ default: l((e) => [
482
+ d(k(`${e.row.currentCount} / ${e.row.totalCount}`), 1)
963
483
  ]),
964
484
  _: 1
965
485
  }),
966
- A(b).tableStatus ? (n(), g($, {
486
+ g(V).tableStatus ? (o(), f(T, {
967
487
  key: 0,
968
488
  label: "状态",
969
489
  width: "70"
970
490
  }, {
971
- default: o((t) => [
972
- c("div", null, [
973
- t.row.enable === 1 ? (n(), C("span", Jt, "未触发")) : t.row.enable === 2 ? (n(), C("span", Xt, "已触发")) : (n(), C("span", Zt, "-"))
491
+ default: l((e) => [
492
+ m("div", null, [
493
+ e.row.enable === 1 ? (o(), c("span", je, "未触发")) : e.row.enable === 2 ? (o(), c("span", Je, "已触发")) : (o(), c("span", We, "-"))
974
494
  ])
975
495
  ]),
976
496
  _: 1
977
- })) : h("", !0),
978
- A(b).tableCreateTime ? (n(), g($, {
497
+ })) : p("", !0),
498
+ g(V).tableCreateTime ? (o(), f(T, {
979
499
  key: 1,
980
500
  label: "设置时间",
981
501
  width: "136"
982
502
  }, {
983
- default: o((t) => [
984
- k(_(t.row.createdTime || "-"), 1)
503
+ default: l((e) => [
504
+ d(k(e.row.createdTime || "-"), 1)
985
505
  ]),
986
506
  _: 1
987
- })) : h("", !0),
988
- A(b).tableMark ? (n(), g($, {
507
+ })) : p("", !0),
508
+ g(V).tableMark ? (o(), f(T, {
989
509
  key: 2,
990
510
  label: "备注",
991
511
  width: "70"
992
512
  }, {
993
- default: o((t) => [
994
- k(_(t.row.mark || "-"), 1)
513
+ default: l((e) => [
514
+ d(k(e.row.mark || "-"), 1)
995
515
  ]),
996
516
  _: 1
997
- })) : h("", !0),
998
- e.allowOperation ? (n(), g($, {
517
+ })) : p("", !0),
518
+ n.allowOperation ? (o(), f(T, {
999
519
  key: 3,
1000
520
  label: "操作",
1001
521
  width: "140"
1002
522
  }, {
1003
- default: o((t) => [
1004
- A(b).tableEnable ? (n(), g(y, {
523
+ default: l((e) => [
524
+ g(V).tableEnable ? (o(), f(s, {
1005
525
  key: 0,
1006
- disabled: t.row.currentCount !== t.row.totalCount,
526
+ disabled: e.row.currentCount !== e.row.totalCount,
1007
527
  size: "small",
1008
- onClick: (L) => v("enabled", t.row)
528
+ onClick: (v) => S("enabled", e.row)
1009
529
  }, {
1010
- default: o(() => [
1011
- k(" 启用 ")
530
+ default: l(() => [
531
+ d(" 启用 ")
1012
532
  ]),
1013
533
  _: 2
1014
- }, 1032, ["disabled", "onClick"])) : h("", !0),
1015
- a(m, {
534
+ }, 1032, ["disabled", "onClick"])) : p("", !0),
535
+ a(Z, {
1016
536
  title: "确定删除?",
1017
- onConfirm: (L) => v("delete", t.row)
537
+ onConfirm: (v) => S("delete", e.row)
1018
538
  }, {
1019
- reference: o(() => [
1020
- a(y, { size: "small" }, {
1021
- default: o(() => [
1022
- k("删除")
539
+ reference: l(() => [
540
+ a(s, { size: "small" }, {
541
+ default: l(() => [
542
+ d("删除")
1023
543
  ]),
1024
544
  _: 1
1025
545
  })
@@ -1028,22 +548,22 @@ const ie = (e) => (pt("data-v-b57c57a6"), e = e(), vt(), e), At = { class: "st-f
1028
548
  }, 1032, ["onConfirm"])
1029
549
  ]),
1030
550
  _: 1
1031
- })) : h("", !0)
551
+ })) : p("", !0)
1032
552
  ]),
1033
553
  _: 1
1034
- }, 8, ["data"])) : h("", !0),
1035
- i.value === "shortcut" ? (n(), C(q, { key: 2 }, [
1036
- c("div", Qt, [
1037
- Yt,
1038
- a(Y, {
554
+ }, 8, ["data"])) : p("", !0),
555
+ C.value === "shortcut" ? (o(), c(x, { key: 2 }, [
556
+ m("div", Ge, [
557
+ He,
558
+ a(A, {
1039
559
  effect: "dark",
1040
560
  content: "如有配置数据, 可点击查看该配置的具体信息",
1041
561
  placement: "right-start"
1042
562
  }, {
1043
- default: o(() => [
1044
- a(V, null, {
1045
- default: o(() => [
1046
- a(A(Ee))
563
+ default: l(() => [
564
+ a(q, null, {
565
+ default: l(() => [
566
+ a(g(j))
1047
567
  ]),
1048
568
  _: 1
1049
569
  })
@@ -1051,32 +571,32 @@ const ie = (e) => (pt("data-v-b57c57a6"), e = e(), vt(), e), At = { class: "st-f
1051
571
  _: 1
1052
572
  })
1053
573
  ]),
1054
- c("div", xt, [
1055
- e.shortcutData.length ? (n(!0), C(q, { key: 0 }, X(e.shortcutData, (t) => (n(), g(Oe, {
1056
- key: t.id,
574
+ m("div", Ke, [
575
+ n.shortcutData.length ? (o(!0), c(x, { key: 0 }, N(n.shortcutData, (e) => (o(), f(te, {
576
+ key: e.id,
1057
577
  type: "primary",
1058
578
  size: "default",
1059
579
  closable: "",
1060
- onClick: (L) => W(t),
1061
- onClose: (L) => oe(t)
580
+ onClick: (v) => Q(e),
581
+ onClose: (v) => X(e)
1062
582
  }, {
1063
- default: o(() => [
1064
- k(_(t.shortcutName), 1)
583
+ default: l(() => [
584
+ d(k(e.shortcutName), 1)
1065
585
  ]),
1066
586
  _: 2
1067
- }, 1032, ["onClick", "onClose"]))), 128)) : (n(), C("span", eo, "暂无数据"))
587
+ }, 1032, ["onClick", "onClose"]))), 128)) : (o(), c("span", Qe, "暂无数据"))
1068
588
  ]),
1069
- c("div", to, [
1070
- oo,
1071
- a(Y, {
589
+ m("div", Xe, [
590
+ Ye,
591
+ a(A, {
1072
592
  effect: "dark",
1073
593
  content: "同名配置将会进行覆盖",
1074
594
  placement: "right-start"
1075
595
  }, {
1076
- default: o(() => [
1077
- a(V, null, {
1078
- default: o(() => [
1079
- a(A(Ee))
596
+ default: l(() => [
597
+ a(q, null, {
598
+ default: l(() => [
599
+ a(g(j))
1080
600
  ]),
1081
601
  _: 1
1082
602
  })
@@ -1084,23 +604,23 @@ const ie = (e) => (pt("data-v-b57c57a6"), e = e(), vt(), e), At = { class: "st-f
1084
604
  _: 1
1085
605
  })
1086
606
  ]),
1087
- a(Q, {
607
+ a(M, {
1088
608
  ref_key: "shortcut_ruleFormRef",
1089
- ref: K,
1090
- model: f.value,
1091
- rules: O.value,
609
+ ref: U,
610
+ model: u.value,
611
+ rules: G.value,
1092
612
  "label-width": "90px",
1093
613
  size: "default"
1094
614
  }, {
1095
- default: o(() => [
1096
- a(T, {
615
+ default: l(() => [
616
+ a(y, {
1097
617
  label: "配置名称:",
1098
618
  prop: "shortcutName"
1099
619
  }, {
1100
- default: o(() => [
1101
- a(ae, {
1102
- modelValue: f.value.shortcutName,
1103
- "onUpdate:modelValue": l[9] || (l[9] = (t) => f.value.shortcutName = t),
620
+ default: l(() => [
621
+ a(I, {
622
+ modelValue: u.value.shortcutName,
623
+ "onUpdate:modelValue": t[9] || (t[9] = (e) => u.value.shortcutName = e),
1104
624
  maxlength: "6",
1105
625
  "show-word-limit": "",
1106
626
  style: { width: "160px" }
@@ -1108,74 +628,74 @@ const ie = (e) => (pt("data-v-b57c57a6"), e = e(), vt(), e), At = { class: "st-f
1108
628
  ]),
1109
629
  _: 1
1110
630
  }),
1111
- a(T, {
631
+ a(y, {
1112
632
  label: "交易类型:",
1113
633
  prop: "factorType"
1114
634
  }, {
1115
- default: o(() => [
1116
- a(y, {
635
+ default: l(() => [
636
+ a(s, {
1117
637
  type: "danger",
1118
- plain: f.value.factorType !== 1,
1119
- onClick: l[10] || (l[10] = () => {
1120
- f.value.factorType === -1 && (f.value.factorSelectedList = []), f.value.factorType = 1;
638
+ plain: u.value.factorType !== 1,
639
+ onClick: t[10] || (t[10] = () => {
640
+ u.value.factorType === -1 && (u.value.factorSelectedList = []), u.value.factorType = 1;
1121
641
  })
1122
642
  }, {
1123
- default: o(() => [
1124
- k(" 多 ")
643
+ default: l(() => [
644
+ d(" 多 ")
1125
645
  ]),
1126
646
  _: 1
1127
647
  }, 8, ["plain"]),
1128
- a(y, {
648
+ a(s, {
1129
649
  type: "success",
1130
- plain: f.value.factorType !== -1,
1131
- onClick: l[11] || (l[11] = () => {
1132
- f.value.factorType === 1 && (f.value.factorSelectedList = []), f.value.factorType = -1;
650
+ plain: u.value.factorType !== -1,
651
+ onClick: t[11] || (t[11] = () => {
652
+ u.value.factorType === 1 && (u.value.factorSelectedList = []), u.value.factorType = -1;
1133
653
  })
1134
654
  }, {
1135
- default: o(() => [
1136
- k(" 空 ")
655
+ default: l(() => [
656
+ d(" 空 ")
1137
657
  ]),
1138
658
  _: 1
1139
659
  }, 8, ["plain"])
1140
660
  ]),
1141
661
  _: 1
1142
662
  }),
1143
- a(T, {
663
+ a(y, {
1144
664
  label: "预警因子:",
1145
665
  prop: "factorSelectedList"
1146
666
  }, {
1147
- default: o(() => [
1148
- a(P, {
1149
- modelValue: f.value.factorSelectedList,
1150
- "onUpdate:modelValue": l[12] || (l[12] = (t) => f.value.factorSelectedList = t)
667
+ default: l(() => [
668
+ a(E, {
669
+ modelValue: u.value.factorSelectedList,
670
+ "onUpdate:modelValue": t[12] || (t[12] = (e) => u.value.factorSelectedList = e)
1151
671
  }, {
1152
- default: o(() => [
1153
- f.value.factorType === 1 ? (n(!0), C(q, { key: 0 }, X(e.moreFactorOptions, (t, L) => (n(), g(N, {
1154
- key: L,
1155
- label: t.factorTypeName,
1156
- value: t.factorTypeName,
672
+ default: l(() => [
673
+ u.value.factorType === 1 ? (o(!0), c(x, { key: 0 }, N(n.moreFactorOptions, (e, v) => (o(), f(b, {
674
+ key: v,
675
+ label: e.factorTypeName,
676
+ value: e.factorTypeName,
1157
677
  style: { width: "200px" }
1158
- }, null, 8, ["label", "value"]))), 128)) : h("", !0),
1159
- f.value.factorType === -1 ? (n(!0), C(q, { key: 1 }, X(e.emptyFactorOptions, (t, L) => (n(), g(N, {
1160
- key: L,
1161
- label: t.factorTypeName,
1162
- value: t.factorTypeName,
678
+ }, null, 8, ["label", "value"]))), 128)) : p("", !0),
679
+ u.value.factorType === -1 ? (o(!0), c(x, { key: 1 }, N(n.emptyFactorOptions, (e, v) => (o(), f(b, {
680
+ key: v,
681
+ label: e.factorTypeName,
682
+ value: e.factorTypeName,
1163
683
  style: { width: "200px" }
1164
- }, null, 8, ["label", "value"]))), 128)) : h("", !0)
684
+ }, null, 8, ["label", "value"]))), 128)) : p("", !0)
1165
685
  ]),
1166
686
  _: 1
1167
687
  }, 8, ["modelValue"])
1168
688
  ]),
1169
689
  _: 1
1170
690
  }),
1171
- a(T, {
691
+ a(y, {
1172
692
  label: "预警次数:",
1173
693
  prop: "totalCount"
1174
694
  }, {
1175
- default: o(() => [
1176
- a(S, {
1177
- modelValue: f.value.totalCount,
1178
- "onUpdate:modelValue": l[13] || (l[13] = (t) => f.value.totalCount = t),
695
+ default: l(() => [
696
+ a(h, {
697
+ modelValue: u.value.totalCount,
698
+ "onUpdate:modelValue": t[13] || (t[13] = (e) => u.value.totalCount = e),
1179
699
  min: 1,
1180
700
  max: 10,
1181
701
  "controls-position": "right",
@@ -1187,7 +707,7 @@ const ie = (e) => (pt("data-v-b57c57a6"), e = e(), vt(), e), At = { class: "st-f
1187
707
  ]),
1188
708
  _: 1
1189
709
  }, 8, ["model", "rules"])
1190
- ], 64)) : h("", !0)
710
+ ], 64)) : p("", !0)
1191
711
  ]),
1192
712
  _: 1
1193
713
  }, 8, ["modelValue"])
@@ -1197,11 +717,11 @@ const ie = (e) => (pt("data-v-b57c57a6"), e = e(), vt(), e), At = { class: "st-f
1197
717
  ]);
1198
718
  };
1199
719
  }
1200
- }, no = /* @__PURE__ */ gt(ao, [["__scopeId", "data-v-b57c57a6"]]), Ho = {
1201
- install(e) {
1202
- e.component("st-factorWarning", no);
720
+ }, tt = /* @__PURE__ */ Ne(et, [["__scopeId", "data-v-b57c57a6"]]), It = {
721
+ install(n) {
722
+ n.component("st-factorWarning", tt);
1203
723
  }
1204
724
  };
1205
725
  export {
1206
- Ho as default
726
+ It as default
1207
727
  };