st-comp 0.0.148 → 0.0.150
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.
- package/components.d.ts +3 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +5 -4
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +28 -24
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +577 -631
- package/es/Kline.cjs +1 -0
- package/es/Kline.js +1903 -0
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +677 -1428
- package/es/KlineNew.cjs +1 -3
- package/es/KlineNew.js +316 -2740
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +60 -58
- package/es/PasswordPrompt.cjs +1 -0
- package/es/PasswordPrompt.js +13 -0
- package/es/Table.cjs +1 -1
- package/es/Table.js +102 -98
- package/es/User.cjs +1 -1
- package/es/User.js +397 -373
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +2395 -1
- package/es/VirtualTable.cjs +5 -5
- package/es/VirtualTable.js +154 -151
- package/es/_initCloneObject-47814efa.cjs +1 -0
- package/es/{_initCloneObject-ec5c9523.js → _initCloneObject-e3d8a9ab.js} +13 -13
- package/es/base-0ca7c43a.cjs +5 -0
- package/es/base-19787dfb.js +303 -0
- package/es/{castArray-c770910d.js → castArray-8405000b.js} +1 -1
- package/es/castArray-a78ae889.cjs +1 -0
- package/es/{config-provider-feed0e8a.js → config-provider-0f6672af.js} +3 -3
- package/es/{config-provider-c87e277f.cjs → config-provider-cfbb9cd8.cjs} +1 -1
- package/es/{debounce-c64fb3b5.js → debounce-6cb0781f.js} +29 -29
- package/es/debounce-cf26af24.cjs +1 -0
- package/es/{dropdown-c9272ca3.js → dropdown-17b3ef6a.js} +4 -4
- package/es/{dropdown-6bdb3cf4.cjs → dropdown-790d31ea.cjs} +1 -1
- package/es/el-button-0bf1d532.js +236 -0
- package/es/el-button-62966947.cjs +1 -0
- package/es/el-checkbox-group-45247bbf.cjs +1 -0
- package/es/el-checkbox-group-d53bc316.js +67 -0
- package/es/el-empty-2ece1134.cjs +1 -0
- package/es/{el-empty-89a523ed.js → el-empty-bd5343a7.js} +10 -9
- package/es/{el-form-item-55d36086.js → el-form-item-05c0e335.js} +82 -81
- package/es/el-form-item-47e255d4.cjs +12 -0
- package/es/{el-input-cb528574.js → el-input-1e309239.js} +46 -45
- package/es/el-input-6a3805c5.cjs +1 -0
- package/es/{el-input-number-ce30bfa8.js → el-input-number-60ebc58f.js} +50 -48
- package/es/el-input-number-96ff2e47.cjs +1 -0
- package/es/el-menu-item-4c9eb7ad.cjs +1 -0
- package/es/el-menu-item-6c6236a1.js +772 -0
- package/es/{el-message-d51d032b.js → el-message-7d927756.js} +56 -55
- package/es/el-message-d5ed7a4f.cjs +1 -0
- package/es/el-overlay-26bf0945.js +521 -0
- package/es/el-overlay-41994f67.cjs +1 -0
- package/es/el-popover-17e2e66c.js +140 -0
- package/es/el-popover-7bd8a7c3.cjs +1 -0
- package/es/el-popper-7adbf1c6.cjs +1 -0
- package/es/{el-popper-f4b01f85.js → el-popper-b6527ae2.js} +217 -216
- package/es/{el-scrollbar-e8e93751.js → el-scrollbar-29bcab5f.js} +22 -22
- package/es/el-scrollbar-ac525239.cjs +1 -0
- package/es/el-select-31f8ac8a.cjs +1 -0
- package/es/{el-select-e71af2e6.js → el-select-7395562b.js} +42 -40
- package/es/el-table-column-47d80736.js +3804 -0
- package/es/el-table-column-bdc46568.cjs +14 -0
- package/es/{el-tag-d65768f4.js → el-tag-7414e0c7.js} +59 -58
- package/es/el-tag-9732314f.cjs +1 -0
- package/es/{index-da646183.cjs → index-1d85ba4b.cjs} +1 -1
- package/es/{index-92ba4292.js → index-273822d1.js} +26 -25
- package/es/index-2f958e56.cjs +3 -0
- package/es/index-375e8de4.cjs +5 -0
- package/es/{index-121e2861.js → index-621b092b.js} +3 -3
- package/es/index-657047bb.js +513 -0
- package/es/{index-18416440.cjs → index-65b4113e.cjs} +1 -1
- package/es/index-70372cdb.js +519 -0
- package/es/{use-form-common-props-4d37077d.js → index-72151b24.js} +151 -312
- package/es/index-9e6e8d03.cjs +1 -0
- package/es/index-ab96bbf4.js +156 -0
- package/es/index-afc88a4b.cjs +1 -0
- package/es/index-c066fe0d.js +82 -0
- package/es/index-ce3223db.cjs +1 -0
- package/es/{index-709675d5.js → index-dc22ffe4.js} +18 -18
- package/es/index-eea0bcb3.cjs +1 -0
- package/es/index.esm-8d9a2abe.js +2432 -0
- package/es/index.esm-94a95a2a.cjs +3 -0
- package/es/{raf-f55e0daa.js → raf-a532c514.js} +1 -1
- package/es/{raf-2d77cbbe.cjs → raf-f46caea0.cjs} +1 -1
- package/es/{scroll-c8ac196e.cjs → scroll-339681d4.cjs} +1 -1
- package/es/{scroll-ca84f80a.js → scroll-d787d648.js} +1 -1
- package/es/style.css +1 -1
- package/es/use-form-common-props-5ff2f51b.js +171 -0
- package/es/use-form-common-props-74a96df2.cjs +2 -0
- package/es/vnode-6a0c7411.js +14 -0
- package/es/vnode-b15eb11b.cjs +1 -0
- package/es/{zh-cn-414d7f0c.cjs → zh-cn-36f34912.cjs} +1 -1
- package/es/{zh-cn-23c8e0d1.js → zh-cn-f37255ae.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +206 -206
- package/lib/{index-ffeb163e.js → index-d0cb2fa2.js} +33754 -31705
- package/lib/{python-0ec8f68c.js → python-050ba5a4.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/Kline/components/Contextmenu/index.vue +110 -0
- package/packages/Kline/components/Tips/index.vue +40 -0
- package/packages/Kline/componentsNew/KlineSlide/index.vue +155 -0
- package/packages/Kline/componentsNew/KlineSub/index.vue +297 -0
- package/packages/Kline/componentsNew/KlineTips/index.vue +66 -0
- package/packages/Kline/componentsNew/KlineUtils/index.vue +84 -0
- package/packages/Kline/componentsNew/Tips/index.vue +33 -0
- package/packages/Kline/formatKlineData.ts +109 -0
- package/packages/Kline/images/buy.svg +1 -0
- package/packages/Kline/images/pen.png +0 -0
- package/packages/Kline/images/sell.svg +1 -0
- package/packages/Kline/images/t.svg +1 -0
- package/packages/Kline/index.ts +16 -0
- package/packages/Kline/index.vue +891 -0
- package/packages/Kline/option.ts +539 -0
- package/packages/Kline/type.d.ts +219 -0
- package/packages/Kline/utils.ts +682 -0
- package/packages/PasswordPrompt/index.ts +8 -0
- package/packages/PasswordPrompt/index.vue +266 -0
- package/packages/User/index.vue +97 -58
- package/packages/index.ts +4 -0
- package/src/pages/Kline/index.vue +12 -0
- package/src/pages/PasswordPrompt/index.vue +12 -0
- package/src/router/routes.ts +10 -0
- package/es/_initCloneObject-476b02ce.cjs +0 -1
- package/es/base-6ccc8fc2.cjs +0 -9
- package/es/base-950bac7e.js +0 -816
- package/es/castArray-374558a5.cjs +0 -1
- package/es/debounce-a6b4f91b.cjs +0 -1
- package/es/el-button-b8f71c7d.cjs +0 -1
- package/es/el-button-d7b6eebd.js +0 -745
- package/es/el-empty-12eece57.cjs +0 -1
- package/es/el-form-item-ebbf096d.cjs +0 -12
- package/es/el-input-2c7e70a3.cjs +0 -1
- package/es/el-input-number-8e168e83.cjs +0 -1
- package/es/el-message-612c2346.cjs +0 -1
- package/es/el-overlay-07414277.js +0 -526
- package/es/el-overlay-fb255b83.cjs +0 -1
- package/es/el-popper-8360bd91.cjs +0 -1
- package/es/el-scrollbar-271142ad.cjs +0 -1
- package/es/el-select-2e71d4af.cjs +0 -1
- package/es/el-table-column-9fe79f05.cjs +0 -14
- package/es/el-table-column-dc562f14.js +0 -3933
- package/es/el-tag-930e7b32.cjs +0 -1
- package/es/index-0ed86daf.cjs +0 -3
- package/es/index-674d2fd7.cjs +0 -1
- package/es/index-aece600c.js +0 -81
- package/es/use-form-common-props-c1960844.cjs +0 -2
package/es/FactorWarning.js
CHANGED
|
@@ -1,97 +1,43 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { z as
|
|
3
|
-
import { a as
|
|
4
|
-
import "./el-tag-
|
|
1
|
+
import { b as Ge, d as Ce, i as ae, a as ke, c as Ee, u as We, e as $e, _ as Ne, f as ce, w as Ye, g as ve, h as Je, j as we, k as Ze, l as Te } from "./base-19787dfb.js";
|
|
2
|
+
import { z as Qe, E as xe } from "./zh-cn-f37255ae.js";
|
|
3
|
+
import { a as et, u as tt, b as lt, c as ot, E as at } from "./el-overlay-26bf0945.js";
|
|
4
|
+
import "./el-tag-7414e0c7.js";
|
|
5
5
|
import "./el-tooltip-4ed993c7.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { E as
|
|
10
|
-
import { E as
|
|
11
|
-
import { E as
|
|
12
|
-
import { E as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { E as
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
6
|
+
import { u as nt, E as st } from "./el-popper-b6527ae2.js";
|
|
7
|
+
import { E as rt, a as it, b as ut, c as ct } from "./el-table-column-47d80736.js";
|
|
8
|
+
import { u as dt, a as ft } from "./el-scrollbar-29bcab5f.js";
|
|
9
|
+
import { E as mt } from "./el-popover-17e2e66c.js";
|
|
10
|
+
import { E as Oe } from "./el-button-0bf1d532.js";
|
|
11
|
+
import { E as pt, a as vt } from "./el-form-item-05c0e335.js";
|
|
12
|
+
import { E as Fe } from "./el-input-1e309239.js";
|
|
13
|
+
import { E as gt } from "./el-checkbox-group-d53bc316.js";
|
|
14
|
+
import { E as yt } from "./el-input-number-60ebc58f.js";
|
|
15
|
+
import { defineComponent as he, ref as O, reactive as ze, computed as P, watch as ne, openBlock as n, createElementBlock as T, unref as _, normalizeClass as k, createElementVNode as f, normalizeStyle as ge, Fragment as X, renderList as Y, renderSlot as Ae, createTextVNode as B, toDisplayString as M, createCommentVNode as S, nextTick as oe, markRaw as Se, onMounted as bt, onBeforeUnmount as ht, toRefs as Ct, resolveComponent as Q, createBlock as E, Transition as kt, withCtx as o, withDirectives as me, createVNode as r, withModifiers as re, resolveDynamicComponent as ie, withKeys as ue, vShow as pe, isVNode as Pe, render as Re, mergeModels as _e, useModel as Et, pushScopeId as wt, popScopeId as Tt } from "vue";
|
|
16
|
+
import { E as De, l as Be, i as Ve } from "./index-72151b24.js";
|
|
17
|
+
import { G as St } from "./index-8542fe24.js";
|
|
18
|
+
import { _ as _t } from "./_plugin-vue_export-helper-dad06003.js";
|
|
19
|
+
import { U as Ue, C as qe, o as Ie, E as Bt, a as Vt } from "./index-621b092b.js";
|
|
20
|
+
import { c as It, u as Lt, a as Mt, b as $t, d as Nt, e as Ot, T as Ft, f as Le } from "./use-form-common-props-5ff2f51b.js";
|
|
21
|
+
import { u as zt } from "./index-c066fe0d.js";
|
|
22
|
+
import { u as ye } from "./index-70372cdb.js";
|
|
23
|
+
import { E as At } from "./index-273822d1.js";
|
|
24
|
+
import "./config-provider-0f6672af.js";
|
|
25
|
+
import "./vnode-6a0c7411.js";
|
|
26
|
+
import "./scroll-d787d648.js";
|
|
27
|
+
import "./_initCloneObject-e3d8a9ab.js";
|
|
28
|
+
import "./debounce-6cb0781f.js";
|
|
29
|
+
import "./raf-a532c514.js";
|
|
30
|
+
import "./index-657047bb.js";
|
|
31
|
+
import "./castArray-8405000b.js";
|
|
26
32
|
import "./typescript-7ae59c4c.js";
|
|
27
|
-
import "./index-
|
|
28
|
-
const
|
|
29
|
-
type: {
|
|
30
|
-
type: String,
|
|
31
|
-
values: ["primary", "success", "info", "warning", "danger", ""],
|
|
32
|
-
default: ""
|
|
33
|
-
},
|
|
34
|
-
size: {
|
|
35
|
-
type: String,
|
|
36
|
-
values: je,
|
|
37
|
-
default: ""
|
|
38
|
-
},
|
|
39
|
-
truncated: Boolean,
|
|
40
|
-
lineClamp: {
|
|
41
|
-
type: [String, Number]
|
|
42
|
-
},
|
|
43
|
-
tag: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: "span"
|
|
46
|
-
}
|
|
47
|
-
}), Ut = ie({
|
|
48
|
-
name: "ElText"
|
|
49
|
-
}), qt = /* @__PURE__ */ ie({
|
|
50
|
-
...Ut,
|
|
51
|
-
props: Dt,
|
|
52
|
-
setup(e) {
|
|
53
|
-
const d = e, l = F(), c = xe(), m = Ae("text"), p = U(() => [
|
|
54
|
-
m.b(),
|
|
55
|
-
m.m(d.type),
|
|
56
|
-
m.m(c.value),
|
|
57
|
-
m.is("truncated", d.truncated),
|
|
58
|
-
m.is("line-clamp", !ye(d.lineClamp))
|
|
59
|
-
]), y = Ct().title, E = () => {
|
|
60
|
-
var n, r, O, v, f;
|
|
61
|
-
if (y)
|
|
62
|
-
return;
|
|
63
|
-
let D = !1;
|
|
64
|
-
const q = ((n = l.value) == null ? void 0 : n.textContent) || "";
|
|
65
|
-
if (d.truncated) {
|
|
66
|
-
const M = (r = l.value) == null ? void 0 : r.offsetWidth, $ = (O = l.value) == null ? void 0 : O.scrollWidth;
|
|
67
|
-
M && $ && $ > M && (D = !0);
|
|
68
|
-
} else if (!ye(d.lineClamp)) {
|
|
69
|
-
const M = (v = l.value) == null ? void 0 : v.offsetHeight, $ = (f = l.value) == null ? void 0 : f.scrollHeight;
|
|
70
|
-
M && $ && $ > M && (D = !0);
|
|
71
|
-
}
|
|
72
|
-
D ? l.value.setAttribute("title", q) : l.value.removeAttribute("title");
|
|
73
|
-
};
|
|
74
|
-
return Ue(E), kt(E), (n, r) => (s(), w(oe(n.tag), {
|
|
75
|
-
ref_key: "textRef",
|
|
76
|
-
ref: l,
|
|
77
|
-
class: k(B(p)),
|
|
78
|
-
style: fe({ "-webkit-line-clamp": n.lineClamp })
|
|
79
|
-
}, {
|
|
80
|
-
default: a(() => [
|
|
81
|
-
we(n.$slots, "default")
|
|
82
|
-
]),
|
|
83
|
-
_: 3
|
|
84
|
-
}, 8, ["class", "style"]));
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
var Ht = /* @__PURE__ */ ke(qt, [["__file", "text.vue"]]);
|
|
88
|
-
const Kt = ze(Ht), jt = Fe({
|
|
33
|
+
import "./index-dc22ffe4.js";
|
|
34
|
+
const Pt = (e) => ["", ...It].includes(e), Rt = Ge({
|
|
89
35
|
direction: {
|
|
90
|
-
type:
|
|
36
|
+
type: Ce(String),
|
|
91
37
|
default: "horizontal"
|
|
92
38
|
},
|
|
93
39
|
options: {
|
|
94
|
-
type:
|
|
40
|
+
type: Ce(Array),
|
|
95
41
|
default: () => []
|
|
96
42
|
},
|
|
97
43
|
modelValue: {
|
|
@@ -99,7 +45,7 @@ const Kt = ze(Ht), jt = Fe({
|
|
|
99
45
|
default: void 0
|
|
100
46
|
},
|
|
101
47
|
block: Boolean,
|
|
102
|
-
size:
|
|
48
|
+
size: Lt,
|
|
103
49
|
disabled: Boolean,
|
|
104
50
|
validateEvent: {
|
|
105
51
|
type: Boolean,
|
|
@@ -107,154 +53,154 @@ const Kt = ze(Ht), jt = Fe({
|
|
|
107
53
|
},
|
|
108
54
|
id: String,
|
|
109
55
|
name: String,
|
|
110
|
-
...
|
|
111
|
-
}),
|
|
112
|
-
[
|
|
113
|
-
[
|
|
114
|
-
},
|
|
56
|
+
...nt(["ariaLabel"])
|
|
57
|
+
}), Dt = {
|
|
58
|
+
[Ue]: (e) => ae(e) || ke(e) || Ee(e),
|
|
59
|
+
[qe]: (e) => ae(e) || ke(e) || Ee(e)
|
|
60
|
+
}, Ut = he({
|
|
115
61
|
name: "ElSegmented"
|
|
116
|
-
}),
|
|
117
|
-
...
|
|
118
|
-
props:
|
|
119
|
-
emits:
|
|
120
|
-
setup(e, { emit:
|
|
121
|
-
const
|
|
122
|
-
formItemContext:
|
|
123
|
-
}),
|
|
62
|
+
}), qt = /* @__PURE__ */ he({
|
|
63
|
+
...Ut,
|
|
64
|
+
props: Rt,
|
|
65
|
+
emits: Dt,
|
|
66
|
+
setup(e, { emit: m }) {
|
|
67
|
+
const a = e, c = We("segmented"), g = ye(), p = Mt(), C = $t(), { formItem: V } = Nt(), { inputId: u, isLabeledByFormItem: i } = Ot(a, {
|
|
68
|
+
formItemContext: V
|
|
69
|
+
}), A = O(null), v = dt(), d = ze({
|
|
124
70
|
isInit: !1,
|
|
125
71
|
width: 0,
|
|
126
72
|
height: 0,
|
|
127
73
|
translateX: 0,
|
|
128
74
|
translateY: 0,
|
|
129
75
|
focusVisible: !1
|
|
130
|
-
}),
|
|
131
|
-
const L =
|
|
132
|
-
|
|
133
|
-
},
|
|
76
|
+
}), H = (s) => {
|
|
77
|
+
const L = K(s);
|
|
78
|
+
m(Ue, L), m(qe, L);
|
|
79
|
+
}, K = (s) => ce(s) ? s.value : s, R = (s) => ce(s) ? s.label : s, D = (s) => !!(C.value || ce(s) && s.disabled), U = (s) => a.modelValue === K(s), j = (s) => a.options.find((L) => K(L) === s), Z = (s) => [
|
|
134
80
|
c.e("item"),
|
|
135
|
-
c.is("selected",
|
|
136
|
-
c.is("disabled",
|
|
137
|
-
],
|
|
138
|
-
if (!
|
|
81
|
+
c.is("selected", U(s)),
|
|
82
|
+
c.is("disabled", D(s))
|
|
83
|
+
], w = () => {
|
|
84
|
+
if (!A.value)
|
|
139
85
|
return;
|
|
140
|
-
const
|
|
141
|
-
if (!
|
|
142
|
-
|
|
86
|
+
const s = A.value.querySelector(".is-selected"), L = A.value.querySelector(".is-selected input");
|
|
87
|
+
if (!s || !L) {
|
|
88
|
+
d.width = 0, d.height = 0, d.translateX = 0, d.translateY = 0, d.focusVisible = !1;
|
|
143
89
|
return;
|
|
144
90
|
}
|
|
145
|
-
const
|
|
146
|
-
|
|
91
|
+
const b = s.getBoundingClientRect();
|
|
92
|
+
d.isInit = !0, a.direction === "vertical" ? (d.height = b.height, d.translateY = s.offsetTop) : (d.width = b.width, d.translateX = s.offsetLeft);
|
|
147
93
|
try {
|
|
148
|
-
|
|
94
|
+
d.focusVisible = L.matches(":focus-visible");
|
|
149
95
|
} catch {
|
|
150
96
|
}
|
|
151
|
-
},
|
|
97
|
+
}, l = P(() => [
|
|
152
98
|
c.b(),
|
|
153
99
|
c.m(p.value),
|
|
154
|
-
c.is("block",
|
|
155
|
-
]),
|
|
156
|
-
width:
|
|
157
|
-
height:
|
|
158
|
-
transform:
|
|
159
|
-
display:
|
|
160
|
-
})),
|
|
100
|
+
c.is("block", a.block)
|
|
101
|
+
]), $ = P(() => ({
|
|
102
|
+
width: a.direction === "vertical" ? "100%" : `${d.width}px`,
|
|
103
|
+
height: a.direction === "vertical" ? `${d.height}px` : "100%",
|
|
104
|
+
transform: a.direction === "vertical" ? `translateY(${d.translateY}px)` : `translateX(${d.translateX}px)`,
|
|
105
|
+
display: d.isInit ? "block" : "none"
|
|
106
|
+
})), y = P(() => [
|
|
161
107
|
c.e("item-selected"),
|
|
162
|
-
c.is("disabled",
|
|
163
|
-
c.is("focus-visible",
|
|
164
|
-
]), I =
|
|
165
|
-
return
|
|
166
|
-
var
|
|
167
|
-
|
|
108
|
+
c.is("disabled", D(j(a.modelValue))),
|
|
109
|
+
c.is("focus-visible", d.focusVisible)
|
|
110
|
+
]), I = P(() => a.name || g.value);
|
|
111
|
+
return ft(A, w), ne(v, w), ne(() => a.modelValue, () => {
|
|
112
|
+
var s;
|
|
113
|
+
w(), a.validateEvent && ((s = V == null ? void 0 : V.validate) == null || s.call(V, "change").catch((L) => $e(L)));
|
|
168
114
|
}, {
|
|
169
115
|
flush: "post"
|
|
170
|
-
}), (
|
|
116
|
+
}), (s, L) => s.options.length ? (n(), T("div", {
|
|
171
117
|
key: 0,
|
|
172
|
-
id:
|
|
118
|
+
id: _(u),
|
|
173
119
|
ref_key: "segmentedRef",
|
|
174
|
-
ref:
|
|
175
|
-
class: k(
|
|
120
|
+
ref: A,
|
|
121
|
+
class: k(_(l)),
|
|
176
122
|
role: "radiogroup",
|
|
177
|
-
"aria-label":
|
|
178
|
-
"aria-labelledby":
|
|
123
|
+
"aria-label": _(i) ? void 0 : s.ariaLabel || "segmented",
|
|
124
|
+
"aria-labelledby": _(i) ? _(V).labelId : void 0
|
|
179
125
|
}, [
|
|
180
|
-
|
|
181
|
-
class: k([
|
|
126
|
+
f("div", {
|
|
127
|
+
class: k([_(c).e("group"), _(c).m(a.direction)])
|
|
182
128
|
}, [
|
|
183
|
-
|
|
184
|
-
style:
|
|
185
|
-
class: k(
|
|
129
|
+
f("div", {
|
|
130
|
+
style: ge(_($)),
|
|
131
|
+
class: k(_(y))
|
|
186
132
|
}, null, 6),
|
|
187
|
-
(
|
|
188
|
-
key:
|
|
189
|
-
class: k(
|
|
133
|
+
(n(!0), T(X, null, Y(s.options, (b, W) => (n(), T("label", {
|
|
134
|
+
key: W,
|
|
135
|
+
class: k(Z(b))
|
|
190
136
|
}, [
|
|
191
|
-
|
|
192
|
-
class: k(
|
|
137
|
+
f("input", {
|
|
138
|
+
class: k(_(c).e("item-input")),
|
|
193
139
|
type: "radio",
|
|
194
|
-
name:
|
|
195
|
-
disabled:
|
|
196
|
-
checked:
|
|
197
|
-
onChange: (ee) =>
|
|
140
|
+
name: _(I),
|
|
141
|
+
disabled: D(b),
|
|
142
|
+
checked: U(b),
|
|
143
|
+
onChange: (ee) => H(b)
|
|
198
144
|
}, null, 42, ["name", "disabled", "checked", "onChange"]),
|
|
199
|
-
|
|
200
|
-
class: k(
|
|
145
|
+
f("div", {
|
|
146
|
+
class: k(_(c).e("item-label"))
|
|
201
147
|
}, [
|
|
202
|
-
|
|
203
|
-
|
|
148
|
+
Ae(s.$slots, "default", { item: b }, () => [
|
|
149
|
+
B(M(R(b)), 1)
|
|
204
150
|
])
|
|
205
151
|
], 2)
|
|
206
152
|
], 2))), 128))
|
|
207
153
|
], 2)
|
|
208
|
-
], 10, ["id", "aria-label", "aria-labelledby"])) :
|
|
154
|
+
], 10, ["id", "aria-label", "aria-labelledby"])) : S("v-if", !0);
|
|
209
155
|
}
|
|
210
156
|
});
|
|
211
|
-
var
|
|
212
|
-
const
|
|
213
|
-
var
|
|
214
|
-
if (
|
|
157
|
+
var Ht = /* @__PURE__ */ Ne(qt, [["__file", "segmented.vue"]]);
|
|
158
|
+
const Kt = Ye(Ht), be = "_trap-focus-children", J = [], Me = (e) => {
|
|
159
|
+
var m;
|
|
160
|
+
if (J.length === 0)
|
|
215
161
|
return;
|
|
216
|
-
const
|
|
217
|
-
if (
|
|
218
|
-
if (
|
|
219
|
-
e.preventDefault(), document.activeElement !==
|
|
162
|
+
const a = J[J.length - 1][be];
|
|
163
|
+
if (a.length > 0 && e.code === Bt.tab) {
|
|
164
|
+
if (a.length === 1) {
|
|
165
|
+
e.preventDefault(), document.activeElement !== a[0] && a[0].focus();
|
|
220
166
|
return;
|
|
221
167
|
}
|
|
222
|
-
const c = e.shiftKey,
|
|
223
|
-
if (
|
|
224
|
-
const
|
|
225
|
-
|
|
168
|
+
const c = e.shiftKey, g = e.target === a[0], p = e.target === a[a.length - 1];
|
|
169
|
+
if (g && c && (e.preventDefault(), a[a.length - 1].focus()), p && !c && (e.preventDefault(), a[0].focus()), process.env.NODE_ENV === "test") {
|
|
170
|
+
const C = a.indexOf(e.target);
|
|
171
|
+
C !== -1 && ((m = a[c ? C - 1 : C + 1]) == null || m.focus());
|
|
226
172
|
}
|
|
227
173
|
}
|
|
228
|
-
},
|
|
174
|
+
}, jt = {
|
|
229
175
|
beforeMount(e) {
|
|
230
|
-
e[
|
|
176
|
+
e[be] = Ie(e), J.push(e), J.length <= 1 && document.addEventListener("keydown", Me);
|
|
231
177
|
},
|
|
232
178
|
updated(e) {
|
|
233
|
-
|
|
234
|
-
e[
|
|
179
|
+
oe(() => {
|
|
180
|
+
e[be] = Ie(e);
|
|
235
181
|
});
|
|
236
182
|
},
|
|
237
183
|
unmounted() {
|
|
238
|
-
|
|
184
|
+
J.shift(), J.length === 0 && document.removeEventListener("keydown", Me);
|
|
239
185
|
}
|
|
240
|
-
},
|
|
186
|
+
}, Xt = he({
|
|
241
187
|
name: "ElMessageBox",
|
|
242
188
|
directives: {
|
|
243
|
-
TrapFocus:
|
|
189
|
+
TrapFocus: jt
|
|
244
190
|
},
|
|
245
191
|
components: {
|
|
246
|
-
ElButton:
|
|
247
|
-
ElFocusTrap:
|
|
248
|
-
ElInput:
|
|
249
|
-
ElOverlay:
|
|
250
|
-
ElIcon:
|
|
251
|
-
|
|
192
|
+
ElButton: Oe,
|
|
193
|
+
ElFocusTrap: Vt,
|
|
194
|
+
ElInput: Fe,
|
|
195
|
+
ElOverlay: et,
|
|
196
|
+
ElIcon: De,
|
|
197
|
+
...Ft
|
|
252
198
|
},
|
|
253
199
|
inheritAttrs: !1,
|
|
254
200
|
props: {
|
|
255
201
|
buttonSize: {
|
|
256
202
|
type: String,
|
|
257
|
-
validator:
|
|
203
|
+
validator: Pt
|
|
258
204
|
},
|
|
259
205
|
modal: {
|
|
260
206
|
type: Boolean,
|
|
@@ -297,13 +243,13 @@ const Yt = ze(Xt), Ce = "_trap-focus-children", Y = [], Oe = (e) => {
|
|
|
297
243
|
}
|
|
298
244
|
},
|
|
299
245
|
emits: ["vanish", "action"],
|
|
300
|
-
setup(e, { emit:
|
|
246
|
+
setup(e, { emit: m }) {
|
|
301
247
|
const {
|
|
302
|
-
locale:
|
|
248
|
+
locale: a,
|
|
303
249
|
zIndex: c,
|
|
304
|
-
ns:
|
|
250
|
+
ns: g,
|
|
305
251
|
size: p
|
|
306
|
-
} = zt("message-box",
|
|
252
|
+
} = zt("message-box", P(() => e.buttonSize)), { t: C } = a, { nextZIndex: V } = c, u = O(!1), i = ze({
|
|
307
253
|
autofocus: !0,
|
|
308
254
|
beforeClose: null,
|
|
309
255
|
callback: null,
|
|
@@ -333,113 +279,113 @@ const Yt = ze(Xt), Ce = "_trap-focus-children", Y = [], Oe = (e) => {
|
|
|
333
279
|
action: "",
|
|
334
280
|
confirmButtonLoading: !1,
|
|
335
281
|
cancelButtonLoading: !1,
|
|
336
|
-
confirmButtonLoadingIcon:
|
|
337
|
-
cancelButtonLoadingIcon:
|
|
282
|
+
confirmButtonLoadingIcon: Se(Be),
|
|
283
|
+
cancelButtonLoadingIcon: Se(Be),
|
|
338
284
|
confirmButtonDisabled: !1,
|
|
339
285
|
editorErrorMessage: "",
|
|
340
286
|
validateError: !1,
|
|
341
|
-
zIndex:
|
|
342
|
-
}),
|
|
343
|
-
const
|
|
344
|
-
return { [
|
|
345
|
-
}), v =
|
|
346
|
-
const
|
|
347
|
-
return
|
|
348
|
-
}),
|
|
349
|
-
|
|
350
|
-
await
|
|
351
|
-
}, { immediate: !0 }),
|
|
352
|
-
var
|
|
353
|
-
|
|
287
|
+
zIndex: V()
|
|
288
|
+
}), A = P(() => {
|
|
289
|
+
const h = i.type;
|
|
290
|
+
return { [g.bm("icon", h)]: h && Le[h] };
|
|
291
|
+
}), v = ye(), d = ye(), H = P(() => {
|
|
292
|
+
const h = i.type;
|
|
293
|
+
return i.icon || h && Le[h] || "";
|
|
294
|
+
}), K = P(() => !!i.message), R = O(), D = O(), U = O(), j = O(), Z = O(), w = P(() => i.confirmButtonClass);
|
|
295
|
+
ne(() => i.inputValue, async (h) => {
|
|
296
|
+
await oe(), e.boxType === "prompt" && h !== null && W();
|
|
297
|
+
}, { immediate: !0 }), ne(() => u.value, (h) => {
|
|
298
|
+
var F, N;
|
|
299
|
+
h && (e.boxType !== "prompt" && (i.autofocus ? U.value = (N = (F = Z.value) == null ? void 0 : F.$el) != null ? N : R.value : U.value = R.value), i.zIndex = V()), e.boxType === "prompt" && (h ? oe().then(() => {
|
|
354
300
|
var le;
|
|
355
|
-
j.value && j.value.$el && (
|
|
356
|
-
}) : (
|
|
301
|
+
j.value && j.value.$el && (i.autofocus ? U.value = (le = ee()) != null ? le : R.value : U.value = R.value);
|
|
302
|
+
}) : (i.editorErrorMessage = "", i.validateError = !1));
|
|
357
303
|
});
|
|
358
|
-
const
|
|
359
|
-
|
|
360
|
-
await
|
|
361
|
-
}),
|
|
362
|
-
e.closeOnHashChange && window.removeEventListener("hashchange",
|
|
304
|
+
const l = P(() => e.draggable), $ = P(() => e.overflow);
|
|
305
|
+
tt(R, D, l, $), bt(async () => {
|
|
306
|
+
await oe(), e.closeOnHashChange && window.addEventListener("hashchange", y);
|
|
307
|
+
}), ht(() => {
|
|
308
|
+
e.closeOnHashChange && window.removeEventListener("hashchange", y);
|
|
363
309
|
});
|
|
364
|
-
function
|
|
365
|
-
|
|
366
|
-
|
|
310
|
+
function y() {
|
|
311
|
+
u.value && (u.value = !1, oe(() => {
|
|
312
|
+
i.action && m("action", i.action);
|
|
367
313
|
}));
|
|
368
314
|
}
|
|
369
315
|
const I = () => {
|
|
370
|
-
e.closeOnClickModal &&
|
|
371
|
-
},
|
|
372
|
-
if (
|
|
373
|
-
return
|
|
374
|
-
},
|
|
375
|
-
var
|
|
376
|
-
e.boxType === "prompt" &&
|
|
377
|
-
},
|
|
316
|
+
e.closeOnClickModal && b(i.distinguishCancelAndClose ? "close" : "cancel");
|
|
317
|
+
}, s = ot(I), L = (h) => {
|
|
318
|
+
if (i.inputType !== "textarea")
|
|
319
|
+
return h.preventDefault(), b("confirm");
|
|
320
|
+
}, b = (h) => {
|
|
321
|
+
var F;
|
|
322
|
+
e.boxType === "prompt" && h === "confirm" && !W() || (i.action = h, i.beforeClose ? (F = i.beforeClose) == null || F.call(i, h, i, y) : y());
|
|
323
|
+
}, W = () => {
|
|
378
324
|
if (e.boxType === "prompt") {
|
|
379
|
-
const
|
|
380
|
-
if (
|
|
381
|
-
return
|
|
382
|
-
const
|
|
383
|
-
if (
|
|
384
|
-
const
|
|
385
|
-
if (
|
|
386
|
-
return
|
|
387
|
-
if (
|
|
388
|
-
return
|
|
325
|
+
const h = i.inputPattern;
|
|
326
|
+
if (h && !h.test(i.inputValue || ""))
|
|
327
|
+
return i.editorErrorMessage = i.inputErrorMessage || C("el.messagebox.error"), i.validateError = !0, !1;
|
|
328
|
+
const F = i.inputValidator;
|
|
329
|
+
if (ve(F)) {
|
|
330
|
+
const N = F(i.inputValue);
|
|
331
|
+
if (N === !1)
|
|
332
|
+
return i.editorErrorMessage = i.inputErrorMessage || C("el.messagebox.error"), i.validateError = !0, !1;
|
|
333
|
+
if (ae(N))
|
|
334
|
+
return i.editorErrorMessage = N, i.validateError = !0, !1;
|
|
389
335
|
}
|
|
390
336
|
}
|
|
391
|
-
return
|
|
337
|
+
return i.editorErrorMessage = "", i.validateError = !1, !0;
|
|
392
338
|
}, ee = () => {
|
|
393
|
-
var
|
|
394
|
-
const
|
|
395
|
-
return (
|
|
339
|
+
var h, F;
|
|
340
|
+
const N = (h = j.value) == null ? void 0 : h.$refs;
|
|
341
|
+
return (F = N == null ? void 0 : N.input) != null ? F : N == null ? void 0 : N.textarea;
|
|
396
342
|
}, te = () => {
|
|
397
|
-
|
|
398
|
-
},
|
|
343
|
+
b("close");
|
|
344
|
+
}, q = () => {
|
|
399
345
|
e.closeOnPressEscape && te();
|
|
400
346
|
};
|
|
401
|
-
return e.lockScroll &&
|
|
402
|
-
...
|
|
403
|
-
ns:
|
|
404
|
-
overlayEvent:
|
|
405
|
-
visible:
|
|
406
|
-
hasMessage:
|
|
407
|
-
typeClass:
|
|
347
|
+
return e.lockScroll && lt(u), {
|
|
348
|
+
...Ct(i),
|
|
349
|
+
ns: g,
|
|
350
|
+
overlayEvent: s,
|
|
351
|
+
visible: u,
|
|
352
|
+
hasMessage: K,
|
|
353
|
+
typeClass: A,
|
|
408
354
|
contentId: v,
|
|
409
|
-
inputId:
|
|
355
|
+
inputId: d,
|
|
410
356
|
btnSize: p,
|
|
411
|
-
iconComponent:
|
|
412
|
-
confirmButtonClasses:
|
|
413
|
-
rootRef:
|
|
414
|
-
focusStartRef:
|
|
415
|
-
headerRef:
|
|
357
|
+
iconComponent: H,
|
|
358
|
+
confirmButtonClasses: w,
|
|
359
|
+
rootRef: R,
|
|
360
|
+
focusStartRef: U,
|
|
361
|
+
headerRef: D,
|
|
416
362
|
inputRef: j,
|
|
417
|
-
confirmRef:
|
|
418
|
-
doClose:
|
|
363
|
+
confirmRef: Z,
|
|
364
|
+
doClose: y,
|
|
419
365
|
handleClose: te,
|
|
420
|
-
onCloseRequested:
|
|
366
|
+
onCloseRequested: q,
|
|
421
367
|
handleWrapperClick: I,
|
|
422
368
|
handleInputEnter: L,
|
|
423
|
-
handleAction:
|
|
424
|
-
t:
|
|
369
|
+
handleAction: b,
|
|
370
|
+
t: C
|
|
425
371
|
};
|
|
426
372
|
}
|
|
427
373
|
});
|
|
428
|
-
function
|
|
429
|
-
const
|
|
430
|
-
return
|
|
374
|
+
function Gt(e, m, a, c, g, p) {
|
|
375
|
+
const C = Q("el-icon"), V = Q("close"), u = Q("el-input"), i = Q("el-button"), A = Q("el-focus-trap"), v = Q("el-overlay");
|
|
376
|
+
return n(), E(kt, {
|
|
431
377
|
name: "fade-in-linear",
|
|
432
|
-
onAfterLeave: (
|
|
378
|
+
onAfterLeave: (d) => e.$emit("vanish"),
|
|
433
379
|
persisted: ""
|
|
434
380
|
}, {
|
|
435
|
-
default:
|
|
436
|
-
|
|
381
|
+
default: o(() => [
|
|
382
|
+
me(r(v, {
|
|
437
383
|
"z-index": e.zIndex,
|
|
438
384
|
"overlay-class": [e.ns.is("message-box"), e.modalClass],
|
|
439
385
|
mask: e.modal
|
|
440
386
|
}, {
|
|
441
|
-
default:
|
|
442
|
-
|
|
387
|
+
default: o(() => [
|
|
388
|
+
f("div", {
|
|
443
389
|
role: "dialog",
|
|
444
390
|
"aria-label": e.title,
|
|
445
391
|
"aria-modal": "true",
|
|
@@ -449,15 +395,15 @@ function Qt(e, d, l, c, m, p) {
|
|
|
449
395
|
onMousedown: e.overlayEvent.onMousedown,
|
|
450
396
|
onMouseup: e.overlayEvent.onMouseup
|
|
451
397
|
}, [
|
|
452
|
-
|
|
398
|
+
r(A, {
|
|
453
399
|
loop: "",
|
|
454
400
|
trapped: e.visible,
|
|
455
401
|
"focus-trap-el": e.rootRef,
|
|
456
402
|
"focus-start-el": e.focusStartRef,
|
|
457
403
|
onReleaseRequested: e.onCloseRequested
|
|
458
404
|
}, {
|
|
459
|
-
default:
|
|
460
|
-
|
|
405
|
+
default: o(() => [
|
|
406
|
+
f("div", {
|
|
461
407
|
ref: "rootRef",
|
|
462
408
|
class: k([
|
|
463
409
|
e.ns.b(),
|
|
@@ -465,128 +411,128 @@ function Qt(e, d, l, c, m, p) {
|
|
|
465
411
|
e.ns.is("draggable", e.draggable),
|
|
466
412
|
{ [e.ns.m("center")]: e.center }
|
|
467
413
|
]),
|
|
468
|
-
style:
|
|
414
|
+
style: ge(e.customStyle),
|
|
469
415
|
tabindex: "-1",
|
|
470
|
-
onClick:
|
|
416
|
+
onClick: re(() => {
|
|
471
417
|
}, ["stop"])
|
|
472
418
|
}, [
|
|
473
|
-
e.title !== null && e.title !== void 0 ? (
|
|
419
|
+
e.title !== null && e.title !== void 0 ? (n(), T("div", {
|
|
474
420
|
key: 0,
|
|
475
421
|
ref: "headerRef",
|
|
476
422
|
class: k([e.ns.e("header"), { "show-close": e.showClose }])
|
|
477
423
|
}, [
|
|
478
|
-
|
|
424
|
+
f("div", {
|
|
479
425
|
class: k(e.ns.e("title"))
|
|
480
426
|
}, [
|
|
481
|
-
e.iconComponent && e.center ? (
|
|
427
|
+
e.iconComponent && e.center ? (n(), E(C, {
|
|
482
428
|
key: 0,
|
|
483
429
|
class: k([e.ns.e("status"), e.typeClass])
|
|
484
430
|
}, {
|
|
485
|
-
default:
|
|
486
|
-
(
|
|
431
|
+
default: o(() => [
|
|
432
|
+
(n(), E(ie(e.iconComponent)))
|
|
487
433
|
]),
|
|
488
434
|
_: 1
|
|
489
|
-
}, 8, ["class"])) :
|
|
490
|
-
|
|
435
|
+
}, 8, ["class"])) : S("v-if", !0),
|
|
436
|
+
f("span", null, M(e.title), 1)
|
|
491
437
|
], 2),
|
|
492
|
-
e.showClose ? (
|
|
438
|
+
e.showClose ? (n(), T("button", {
|
|
493
439
|
key: 0,
|
|
494
440
|
type: "button",
|
|
495
441
|
class: k(e.ns.e("headerbtn")),
|
|
496
442
|
"aria-label": e.t("el.messagebox.close"),
|
|
497
|
-
onClick: (
|
|
498
|
-
onKeydown:
|
|
443
|
+
onClick: (d) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"),
|
|
444
|
+
onKeydown: ue(re((d) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"])
|
|
499
445
|
}, [
|
|
500
|
-
|
|
446
|
+
r(C, {
|
|
501
447
|
class: k(e.ns.e("close"))
|
|
502
448
|
}, {
|
|
503
|
-
default:
|
|
504
|
-
|
|
449
|
+
default: o(() => [
|
|
450
|
+
r(V)
|
|
505
451
|
]),
|
|
506
452
|
_: 1
|
|
507
453
|
}, 8, ["class"])
|
|
508
|
-
], 42, ["aria-label", "onClick", "onKeydown"])) :
|
|
509
|
-
], 2)) :
|
|
510
|
-
|
|
454
|
+
], 42, ["aria-label", "onClick", "onKeydown"])) : S("v-if", !0)
|
|
455
|
+
], 2)) : S("v-if", !0),
|
|
456
|
+
f("div", {
|
|
511
457
|
id: e.contentId,
|
|
512
458
|
class: k(e.ns.e("content"))
|
|
513
459
|
}, [
|
|
514
|
-
|
|
460
|
+
f("div", {
|
|
515
461
|
class: k(e.ns.e("container"))
|
|
516
462
|
}, [
|
|
517
|
-
e.iconComponent && !e.center && e.hasMessage ? (
|
|
463
|
+
e.iconComponent && !e.center && e.hasMessage ? (n(), E(C, {
|
|
518
464
|
key: 0,
|
|
519
465
|
class: k([e.ns.e("status"), e.typeClass])
|
|
520
466
|
}, {
|
|
521
|
-
default:
|
|
522
|
-
(
|
|
467
|
+
default: o(() => [
|
|
468
|
+
(n(), E(ie(e.iconComponent)))
|
|
523
469
|
]),
|
|
524
470
|
_: 1
|
|
525
|
-
}, 8, ["class"])) :
|
|
526
|
-
e.hasMessage ? (
|
|
471
|
+
}, 8, ["class"])) : S("v-if", !0),
|
|
472
|
+
e.hasMessage ? (n(), T("div", {
|
|
527
473
|
key: 1,
|
|
528
474
|
class: k(e.ns.e("message"))
|
|
529
475
|
}, [
|
|
530
|
-
|
|
531
|
-
e.dangerouslyUseHTMLString ? (
|
|
476
|
+
Ae(e.$slots, "default", {}, () => [
|
|
477
|
+
e.dangerouslyUseHTMLString ? (n(), E(ie(e.showInput ? "label" : "p"), {
|
|
532
478
|
key: 1,
|
|
533
479
|
for: e.showInput ? e.inputId : void 0,
|
|
534
480
|
innerHTML: e.message
|
|
535
|
-
}, null, 8, ["for", "innerHTML"])) : (
|
|
481
|
+
}, null, 8, ["for", "innerHTML"])) : (n(), E(ie(e.showInput ? "label" : "p"), {
|
|
536
482
|
key: 0,
|
|
537
483
|
for: e.showInput ? e.inputId : void 0
|
|
538
484
|
}, {
|
|
539
|
-
default:
|
|
540
|
-
|
|
485
|
+
default: o(() => [
|
|
486
|
+
B(M(e.dangerouslyUseHTMLString ? "" : e.message), 1)
|
|
541
487
|
]),
|
|
542
488
|
_: 1
|
|
543
489
|
}, 8, ["for"]))
|
|
544
490
|
])
|
|
545
|
-
], 2)) :
|
|
491
|
+
], 2)) : S("v-if", !0)
|
|
546
492
|
], 2),
|
|
547
|
-
|
|
493
|
+
me(f("div", {
|
|
548
494
|
class: k(e.ns.e("input"))
|
|
549
495
|
}, [
|
|
550
|
-
u
|
|
496
|
+
r(u, {
|
|
551
497
|
id: e.inputId,
|
|
552
498
|
ref: "inputRef",
|
|
553
499
|
modelValue: e.inputValue,
|
|
554
|
-
"onUpdate:modelValue": (
|
|
500
|
+
"onUpdate:modelValue": (d) => e.inputValue = d,
|
|
555
501
|
type: e.inputType,
|
|
556
502
|
placeholder: e.inputPlaceholder,
|
|
557
503
|
"aria-invalid": e.validateError,
|
|
558
504
|
class: k({ invalid: e.validateError }),
|
|
559
|
-
onKeydown:
|
|
505
|
+
onKeydown: ue(e.handleInputEnter, ["enter"])
|
|
560
506
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "type", "placeholder", "aria-invalid", "class", "onKeydown"]),
|
|
561
|
-
|
|
507
|
+
f("div", {
|
|
562
508
|
class: k(e.ns.e("errormsg")),
|
|
563
|
-
style:
|
|
509
|
+
style: ge({
|
|
564
510
|
visibility: e.editorErrorMessage ? "visible" : "hidden"
|
|
565
511
|
})
|
|
566
|
-
},
|
|
512
|
+
}, M(e.editorErrorMessage), 7)
|
|
567
513
|
], 2), [
|
|
568
|
-
[
|
|
514
|
+
[pe, e.showInput]
|
|
569
515
|
])
|
|
570
516
|
], 10, ["id"]),
|
|
571
|
-
|
|
517
|
+
f("div", {
|
|
572
518
|
class: k(e.ns.e("btns"))
|
|
573
519
|
}, [
|
|
574
|
-
e.showCancelButton ? (
|
|
520
|
+
e.showCancelButton ? (n(), E(i, {
|
|
575
521
|
key: 0,
|
|
576
522
|
loading: e.cancelButtonLoading,
|
|
577
523
|
"loading-icon": e.cancelButtonLoadingIcon,
|
|
578
524
|
class: k([e.cancelButtonClass]),
|
|
579
525
|
round: e.roundButton,
|
|
580
526
|
size: e.btnSize,
|
|
581
|
-
onClick: (
|
|
582
|
-
onKeydown:
|
|
527
|
+
onClick: (d) => e.handleAction("cancel"),
|
|
528
|
+
onKeydown: ue(re((d) => e.handleAction("cancel"), ["prevent"]), ["enter"])
|
|
583
529
|
}, {
|
|
584
|
-
default:
|
|
585
|
-
|
|
530
|
+
default: o(() => [
|
|
531
|
+
B(M(e.cancelButtonText || e.t("el.messagebox.cancel")), 1)
|
|
586
532
|
]),
|
|
587
533
|
_: 1
|
|
588
|
-
}, 8, ["loading", "loading-icon", "class", "round", "size", "onClick", "onKeydown"])) :
|
|
589
|
-
|
|
534
|
+
}, 8, ["loading", "loading-icon", "class", "round", "size", "onClick", "onKeydown"])) : S("v-if", !0),
|
|
535
|
+
me(r(i, {
|
|
590
536
|
ref: "confirmRef",
|
|
591
537
|
type: "primary",
|
|
592
538
|
loading: e.confirmButtonLoading,
|
|
@@ -595,15 +541,15 @@ function Qt(e, d, l, c, m, p) {
|
|
|
595
541
|
round: e.roundButton,
|
|
596
542
|
disabled: e.confirmButtonDisabled,
|
|
597
543
|
size: e.btnSize,
|
|
598
|
-
onClick: (
|
|
599
|
-
onKeydown:
|
|
544
|
+
onClick: (d) => e.handleAction("confirm"),
|
|
545
|
+
onKeydown: ue(re((d) => e.handleAction("confirm"), ["prevent"]), ["enter"])
|
|
600
546
|
}, {
|
|
601
|
-
default:
|
|
602
|
-
|
|
547
|
+
default: o(() => [
|
|
548
|
+
B(M(e.confirmButtonText || e.t("el.messagebox.confirm")), 1)
|
|
603
549
|
]),
|
|
604
550
|
_: 1
|
|
605
551
|
}, 8, ["loading", "loading-icon", "class", "round", "disabled", "size", "onClick", "onKeydown"]), [
|
|
606
|
-
[
|
|
552
|
+
[pe, e.showConfirmButton]
|
|
607
553
|
])
|
|
608
554
|
], 2)
|
|
609
555
|
], 14, ["onClick"])
|
|
@@ -614,84 +560,84 @@ function Qt(e, d, l, c, m, p) {
|
|
|
614
560
|
]),
|
|
615
561
|
_: 3
|
|
616
562
|
}, 8, ["z-index", "overlay-class", "mask"]), [
|
|
617
|
-
[
|
|
563
|
+
[pe, e.visible]
|
|
618
564
|
])
|
|
619
565
|
]),
|
|
620
566
|
_: 3
|
|
621
567
|
}, 8, ["onAfterLeave"]);
|
|
622
568
|
}
|
|
623
|
-
var
|
|
624
|
-
const
|
|
625
|
-
let
|
|
626
|
-
return e.appendTo && (
|
|
627
|
-
},
|
|
628
|
-
const c =
|
|
629
|
-
default:
|
|
569
|
+
var Wt = /* @__PURE__ */ Ne(Xt, [["render", Gt], ["__file", "index.vue"]]);
|
|
570
|
+
const se = /* @__PURE__ */ new Map(), Yt = (e) => {
|
|
571
|
+
let m = document.body;
|
|
572
|
+
return e.appendTo && (ae(e.appendTo) && (m = document.querySelector(e.appendTo)), Te(e.appendTo) && (m = e.appendTo), Te(m) || ($e("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body."), m = document.body)), m;
|
|
573
|
+
}, Jt = (e, m, a = null) => {
|
|
574
|
+
const c = r(Wt, e, ve(e.message) || Pe(e.message) ? {
|
|
575
|
+
default: ve(e.message) ? e.message : () => e.message
|
|
630
576
|
} : null);
|
|
631
|
-
return c.appContext =
|
|
632
|
-
},
|
|
633
|
-
const
|
|
577
|
+
return c.appContext = a, Re(c, m), Yt(e).appendChild(m.firstElementChild), c.component;
|
|
578
|
+
}, Zt = () => document.createElement("div"), Qt = (e, m) => {
|
|
579
|
+
const a = Zt();
|
|
634
580
|
e.onVanish = () => {
|
|
635
|
-
|
|
581
|
+
Re(null, a), se.delete(g);
|
|
636
582
|
}, e.onAction = (p) => {
|
|
637
|
-
const
|
|
638
|
-
let
|
|
639
|
-
e.showInput ?
|
|
583
|
+
const C = se.get(g);
|
|
584
|
+
let V;
|
|
585
|
+
e.showInput ? V = { value: g.inputValue, action: p } : V = p, e.callback ? e.callback(V, c.proxy) : p === "cancel" || p === "close" ? e.distinguishCancelAndClose && p !== "cancel" ? C.reject("close") : C.reject("cancel") : C.resolve(V);
|
|
640
586
|
};
|
|
641
|
-
const c =
|
|
587
|
+
const c = Jt(e, a, m), g = c.proxy;
|
|
642
588
|
for (const p in e)
|
|
643
|
-
|
|
644
|
-
return
|
|
589
|
+
we(e, p) && !we(g.$props, p) && (g[p] = e[p]);
|
|
590
|
+
return g.visible = !0, g;
|
|
645
591
|
};
|
|
646
|
-
function
|
|
647
|
-
if (!
|
|
592
|
+
function x(e, m = null) {
|
|
593
|
+
if (!Je)
|
|
648
594
|
return Promise.reject();
|
|
649
|
-
let
|
|
650
|
-
return
|
|
595
|
+
let a;
|
|
596
|
+
return ae(e) || Pe(e) ? e = {
|
|
651
597
|
message: e
|
|
652
|
-
} :
|
|
653
|
-
const p =
|
|
654
|
-
|
|
598
|
+
} : a = e.callback, new Promise((c, g) => {
|
|
599
|
+
const p = Qt(e, m ?? x._context);
|
|
600
|
+
se.set(p, {
|
|
655
601
|
options: e,
|
|
656
|
-
callback:
|
|
602
|
+
callback: a,
|
|
657
603
|
resolve: c,
|
|
658
|
-
reject:
|
|
604
|
+
reject: g
|
|
659
605
|
});
|
|
660
606
|
});
|
|
661
607
|
}
|
|
662
|
-
const
|
|
608
|
+
const xt = ["alert", "confirm", "prompt"], el = {
|
|
663
609
|
alert: { closeOnPressEscape: !1, closeOnClickModal: !1 },
|
|
664
610
|
confirm: { showCancelButton: !0 },
|
|
665
611
|
prompt: { showCancelButton: !0, showInput: !0 }
|
|
666
612
|
};
|
|
667
|
-
|
|
668
|
-
|
|
613
|
+
xt.forEach((e) => {
|
|
614
|
+
x[e] = tl(e);
|
|
669
615
|
});
|
|
670
|
-
function
|
|
671
|
-
return (
|
|
616
|
+
function tl(e) {
|
|
617
|
+
return (m, a, c, g) => {
|
|
672
618
|
let p = "";
|
|
673
|
-
return
|
|
619
|
+
return ce(a) ? (c = a, p = "") : Ze(a) ? p = "" : p = a, x(Object.assign({
|
|
674
620
|
title: p,
|
|
675
|
-
message:
|
|
621
|
+
message: m,
|
|
676
622
|
type: "",
|
|
677
|
-
...
|
|
623
|
+
...el[e]
|
|
678
624
|
}, c, {
|
|
679
625
|
boxType: e
|
|
680
|
-
}),
|
|
626
|
+
}), g);
|
|
681
627
|
};
|
|
682
628
|
}
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
}),
|
|
629
|
+
x.close = () => {
|
|
630
|
+
se.forEach((e, m) => {
|
|
631
|
+
m.doClose();
|
|
632
|
+
}), se.clear();
|
|
687
633
|
};
|
|
688
|
-
|
|
689
|
-
const
|
|
690
|
-
|
|
691
|
-
|
|
634
|
+
x._context = null;
|
|
635
|
+
const G = x;
|
|
636
|
+
G.install = (e) => {
|
|
637
|
+
G._context = e._context, e.config.globalProperties.$msgbox = G, e.config.globalProperties.$messageBox = G, e.config.globalProperties.$alert = G.alert, e.config.globalProperties.$confirm = G.confirm, e.config.globalProperties.$prompt = G.prompt;
|
|
692
638
|
};
|
|
693
|
-
const
|
|
694
|
-
const
|
|
639
|
+
const ll = G;
|
|
640
|
+
const ol = {
|
|
695
641
|
// 表单字段
|
|
696
642
|
ruleFormPrice: !0,
|
|
697
643
|
// 价格范围
|
|
@@ -707,21 +653,21 @@ const ul = {
|
|
|
707
653
|
tableEnable: !0
|
|
708
654
|
// 启用按钮
|
|
709
655
|
};
|
|
710
|
-
const
|
|
656
|
+
const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-factorWarning" }, nl = { class: "custom-header" }, sl = /* @__PURE__ */ de(() => /* @__PURE__ */ f("span", { style: { "margin-right": "4px" } }, "因子预警", -1)), rl = { class: "factor-name" }, il = ["onClick"], ul = { class: "factor-name" }, cl = ["onClick"], dl = { style: { display: "flex", "align-items": "start" } }, fl = {
|
|
711
657
|
key: 0,
|
|
712
658
|
style: { flex: "1" }
|
|
713
|
-
},
|
|
659
|
+
}, ml = /* @__PURE__ */ de(() => /* @__PURE__ */ f("span", { style: { margin: "0 5px" } }, "~", -1)), pl = {
|
|
714
660
|
key: 0,
|
|
715
661
|
style: { color: "#f56c6c" }
|
|
716
|
-
},
|
|
662
|
+
}, vl = {
|
|
717
663
|
key: 1,
|
|
718
664
|
style: { color: "#67c23a" }
|
|
719
|
-
},
|
|
665
|
+
}, gl = { key: 0 }, yl = { key: 1 }, bl = { key: 2 }, hl = { class: "shortcut-title" }, Cl = /* @__PURE__ */ de(() => /* @__PURE__ */ f("span", null, "我的配置", -1)), kl = { class: "shortcut-config" }, El = {
|
|
720
666
|
key: 1,
|
|
721
667
|
class: "empty"
|
|
722
|
-
},
|
|
668
|
+
}, wl = { class: "shortcut-title" }, Tl = /* @__PURE__ */ de(() => /* @__PURE__ */ f("span", null, "新增配置", -1)), Sl = { class: "custom-footer" }, _l = {
|
|
723
669
|
__name: "index",
|
|
724
|
-
props: /* @__PURE__ */
|
|
670
|
+
props: /* @__PURE__ */ _e({
|
|
725
671
|
// 弹窗名称
|
|
726
672
|
title: { type: [String, null], default: null },
|
|
727
673
|
// 因子数据
|
|
@@ -739,31 +685,31 @@ const me = (e) => (_t("data-v-b57c57a6"), e = e(), Bt(), e), cl = { class: "st-f
|
|
|
739
685
|
visible: { default: !1 },
|
|
740
686
|
visibleModifiers: {}
|
|
741
687
|
}),
|
|
742
|
-
emits: /* @__PURE__ */
|
|
743
|
-
setup(e, { emit:
|
|
744
|
-
const
|
|
688
|
+
emits: /* @__PURE__ */ _e(["add", "delete", "enabled", "closed", "shortcutAdd", "shortcutDelete"], ["update:visible"]),
|
|
689
|
+
setup(e, { emit: m }) {
|
|
690
|
+
const a = O("ruleForm"), c = Et(e, "visible"), g = m, p = e, C = Object.assign(ol, p.showConfig), V = O(null), u = O({
|
|
745
691
|
factorType: 1,
|
|
746
692
|
factorSelectedList: [],
|
|
747
693
|
totalCount: 1,
|
|
748
694
|
minPrice: null,
|
|
749
695
|
maxPrice: null,
|
|
750
696
|
mark: null
|
|
751
|
-
}),
|
|
697
|
+
}), i = O({
|
|
752
698
|
factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
|
|
753
699
|
factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
|
|
754
700
|
totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }]
|
|
755
|
-
}),
|
|
701
|
+
}), A = O(null), v = O({
|
|
756
702
|
shortcutName: null,
|
|
757
703
|
factorType: 1,
|
|
758
704
|
factorSelectedList: [],
|
|
759
705
|
totalCount: 1
|
|
760
|
-
}),
|
|
706
|
+
}), d = O({
|
|
761
707
|
factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
|
|
762
708
|
factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
|
|
763
709
|
totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }],
|
|
764
710
|
shortcutName: [{ required: !0, message: "请填写配置名称", trigger: "blur" }]
|
|
765
|
-
}),
|
|
766
|
-
|
|
711
|
+
}), H = () => {
|
|
712
|
+
u.value = {
|
|
767
713
|
factorType: 1,
|
|
768
714
|
factorSelectedList: [],
|
|
769
715
|
totalCount: 1,
|
|
@@ -776,108 +722,108 @@ const me = (e) => (_t("data-v-b57c57a6"), e = e(), Bt(), e), cl = { class: "st-f
|
|
|
776
722
|
factorSelectedList: [],
|
|
777
723
|
totalCount: 1
|
|
778
724
|
};
|
|
779
|
-
},
|
|
780
|
-
Object.assign(
|
|
781
|
-
factorSelectedList: [
|
|
725
|
+
}, K = async (w) => {
|
|
726
|
+
Object.assign(u.value, {
|
|
727
|
+
factorSelectedList: [w],
|
|
782
728
|
totalCount: 3
|
|
783
729
|
});
|
|
784
|
-
const
|
|
785
|
-
factorSelectedList:
|
|
786
|
-
factorName:
|
|
787
|
-
...
|
|
730
|
+
const l = {
|
|
731
|
+
factorSelectedList: u.value.factorSelectedList.map((y) => ({
|
|
732
|
+
factorName: y,
|
|
733
|
+
...u.value
|
|
788
734
|
}))
|
|
789
|
-
},
|
|
790
|
-
const
|
|
791
|
-
|
|
735
|
+
}, $ = () => {
|
|
736
|
+
const y = u.value.factorType;
|
|
737
|
+
H(), u.value.factorType = y;
|
|
792
738
|
};
|
|
793
|
-
|
|
794
|
-
},
|
|
795
|
-
const
|
|
796
|
-
Object.assign(
|
|
797
|
-
factorType:
|
|
798
|
-
factorSelectedList:
|
|
799
|
-
totalCount:
|
|
739
|
+
D(V.value, l, $);
|
|
740
|
+
}, R = async (w) => {
|
|
741
|
+
const l = JSON.parse(w.data);
|
|
742
|
+
Object.assign(u.value, {
|
|
743
|
+
factorType: l.factorType,
|
|
744
|
+
factorSelectedList: l.factorSelectedList,
|
|
745
|
+
totalCount: l.totalCount
|
|
800
746
|
});
|
|
801
|
-
const
|
|
747
|
+
const $ = {
|
|
802
748
|
// 通过快捷进行添加的因子, 具备有效次数上限10的校验
|
|
803
|
-
factorSelectedList:
|
|
804
|
-
let
|
|
805
|
-
const L = p.tableData.find(({ factorExtendName:
|
|
749
|
+
factorSelectedList: u.value.factorSelectedList.map((I) => {
|
|
750
|
+
let s = l.totalCount;
|
|
751
|
+
const L = p.tableData.find(({ factorExtendName: b }) => b === I);
|
|
806
752
|
if (L) {
|
|
807
|
-
const
|
|
808
|
-
|
|
753
|
+
const b = L.totalCount - L.currentCount;
|
|
754
|
+
b === 0 ? s = l.totalCount : s = Math.min(l.totalCount, 10 - b >= 0 ? 10 - b : 0);
|
|
809
755
|
}
|
|
810
756
|
return {
|
|
811
757
|
factorName: I,
|
|
812
|
-
...
|
|
813
|
-
totalCount:
|
|
758
|
+
...u.value,
|
|
759
|
+
totalCount: s
|
|
814
760
|
};
|
|
815
761
|
})
|
|
816
|
-
},
|
|
817
|
-
|
|
818
|
-
},
|
|
819
|
-
|
|
820
|
-
if (!
|
|
762
|
+
}, y = () => H();
|
|
763
|
+
D(V.value, $, y);
|
|
764
|
+
}, D = St(async (w, l, $) => {
|
|
765
|
+
w && await w.validate((y) => {
|
|
766
|
+
if (!y)
|
|
821
767
|
return !1;
|
|
822
|
-
const I =
|
|
823
|
-
factorSelectedList:
|
|
824
|
-
factorName:
|
|
825
|
-
...
|
|
768
|
+
const I = l ?? {
|
|
769
|
+
factorSelectedList: u.value.factorSelectedList.map((s) => ({
|
|
770
|
+
factorName: s,
|
|
771
|
+
...u.value
|
|
826
772
|
}))
|
|
827
773
|
};
|
|
828
|
-
|
|
774
|
+
g("add", I), $ ? $() : c.value = !1;
|
|
829
775
|
});
|
|
830
|
-
}, 200),
|
|
831
|
-
|
|
832
|
-
if (!
|
|
776
|
+
}, 200), U = async (w) => {
|
|
777
|
+
w && await w.validate((l) => {
|
|
778
|
+
if (!l)
|
|
833
779
|
return !1;
|
|
834
|
-
const
|
|
780
|
+
const $ = {
|
|
835
781
|
shortcutName: v.value.shortcutName,
|
|
836
782
|
data: JSON.stringify(v.value)
|
|
837
783
|
};
|
|
838
|
-
|
|
784
|
+
g("shortcutAdd", $), H();
|
|
839
785
|
});
|
|
840
|
-
}, j = (
|
|
841
|
-
v.value = JSON.parse(
|
|
842
|
-
},
|
|
843
|
-
|
|
786
|
+
}, j = (w) => {
|
|
787
|
+
v.value = JSON.parse(w.data);
|
|
788
|
+
}, Z = (w) => {
|
|
789
|
+
ll.confirm(`是否确认删除配置: ${w.shortcutName} ?`, "删除提示", {
|
|
844
790
|
confirmButtonText: "确认",
|
|
845
791
|
cancelButtonText: "取消",
|
|
846
792
|
type: "warning"
|
|
847
|
-
}).then(() =>
|
|
793
|
+
}).then(() => g("shortcutDelete", w));
|
|
848
794
|
};
|
|
849
|
-
return
|
|
795
|
+
return ne(
|
|
850
796
|
() => c.value,
|
|
851
|
-
(
|
|
852
|
-
|
|
797
|
+
(w) => {
|
|
798
|
+
w && (a.value = p.allowOperation ? "ruleForm" : "table", H());
|
|
853
799
|
},
|
|
854
800
|
{
|
|
855
801
|
immediate: !0
|
|
856
802
|
}
|
|
857
|
-
), (
|
|
858
|
-
const
|
|
859
|
-
return
|
|
860
|
-
|
|
861
|
-
default:
|
|
862
|
-
|
|
803
|
+
), (w, l) => {
|
|
804
|
+
const $ = Kt, y = Oe, I = pt, s = rt, L = it, b = yt, W = gt, ee = Fe, te = vt, q = ut, h = mt, F = ct, N = De, le = st, He = At, Ke = at, je = xe;
|
|
805
|
+
return n(), T("div", al, [
|
|
806
|
+
r(je, { locale: _(Qe) }, {
|
|
807
|
+
default: o(() => [
|
|
808
|
+
r(Ke, {
|
|
863
809
|
modelValue: c.value,
|
|
864
|
-
"onUpdate:modelValue":
|
|
810
|
+
"onUpdate:modelValue": l[17] || (l[17] = (t) => c.value = t),
|
|
865
811
|
width: "1020",
|
|
866
812
|
"align-center": "",
|
|
867
813
|
"destroy-on-close": "",
|
|
868
|
-
onClosed:
|
|
814
|
+
onClosed: l[18] || (l[18] = (t) => g("closed"))
|
|
869
815
|
}, {
|
|
870
|
-
header:
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
class: k(
|
|
816
|
+
header: o(({ close: t, titleId: z, titleClass: fe }) => [
|
|
817
|
+
f("div", nl, [
|
|
818
|
+
f("div", {
|
|
819
|
+
class: k(fe)
|
|
874
820
|
}, [
|
|
875
|
-
|
|
876
|
-
|
|
821
|
+
sl,
|
|
822
|
+
f("span", null, M(e.title), 1)
|
|
877
823
|
], 2),
|
|
878
|
-
|
|
879
|
-
modelValue:
|
|
880
|
-
"onUpdate:modelValue":
|
|
824
|
+
r($, {
|
|
825
|
+
modelValue: a.value,
|
|
826
|
+
"onUpdate:modelValue": l[0] || (l[0] = (Xe) => a.value = Xe),
|
|
881
827
|
size: "default",
|
|
882
828
|
options: [
|
|
883
829
|
{ label: "添加", value: "ruleForm", disabled: !e.allowOperation },
|
|
@@ -887,168 +833,168 @@ const me = (e) => (_t("data-v-b57c57a6"), e = e(), Bt(), e), cl = { class: "st-f
|
|
|
887
833
|
}, null, 8, ["modelValue", "options"])
|
|
888
834
|
])
|
|
889
835
|
]),
|
|
890
|
-
footer:
|
|
891
|
-
|
|
892
|
-
|
|
836
|
+
footer: o(() => [
|
|
837
|
+
f("div", Sl, [
|
|
838
|
+
r(y, {
|
|
893
839
|
size: "default",
|
|
894
|
-
onClick:
|
|
840
|
+
onClick: l[14] || (l[14] = (t) => c.value = !1)
|
|
895
841
|
}, {
|
|
896
|
-
default:
|
|
897
|
-
|
|
842
|
+
default: o(() => [
|
|
843
|
+
B("关闭")
|
|
898
844
|
]),
|
|
899
845
|
_: 1
|
|
900
846
|
}),
|
|
901
|
-
|
|
847
|
+
a.value === "ruleForm" ? (n(), E(y, {
|
|
902
848
|
key: 0,
|
|
903
849
|
size: "default",
|
|
904
850
|
type: "primary",
|
|
905
|
-
onClick:
|
|
851
|
+
onClick: l[15] || (l[15] = (t) => _(D)(V.value))
|
|
906
852
|
}, {
|
|
907
|
-
default:
|
|
908
|
-
|
|
853
|
+
default: o(() => [
|
|
854
|
+
B(" 确认 ")
|
|
909
855
|
]),
|
|
910
856
|
_: 1
|
|
911
|
-
})) :
|
|
912
|
-
|
|
857
|
+
})) : S("", !0),
|
|
858
|
+
a.value === "shortcut" ? (n(), E(y, {
|
|
913
859
|
key: 1,
|
|
914
860
|
size: "default",
|
|
915
861
|
type: "primary",
|
|
916
|
-
onClick:
|
|
862
|
+
onClick: l[16] || (l[16] = (t) => U(A.value))
|
|
917
863
|
}, {
|
|
918
|
-
default:
|
|
919
|
-
|
|
864
|
+
default: o(() => [
|
|
865
|
+
B(" 保存配置 ")
|
|
920
866
|
]),
|
|
921
867
|
_: 1
|
|
922
|
-
})) :
|
|
868
|
+
})) : S("", !0)
|
|
923
869
|
])
|
|
924
870
|
]),
|
|
925
|
-
default:
|
|
926
|
-
|
|
871
|
+
default: o(() => [
|
|
872
|
+
a.value === "ruleForm" ? (n(), E(te, {
|
|
927
873
|
key: 0,
|
|
928
874
|
ref_key: "ruleFormRef",
|
|
929
|
-
ref:
|
|
930
|
-
model:
|
|
931
|
-
rules:
|
|
875
|
+
ref: V,
|
|
876
|
+
model: u.value,
|
|
877
|
+
rules: i.value,
|
|
932
878
|
size: "default",
|
|
933
879
|
"label-width": "90px"
|
|
934
880
|
}, {
|
|
935
|
-
default:
|
|
936
|
-
|
|
881
|
+
default: o(() => [
|
|
882
|
+
r(I, {
|
|
937
883
|
label: "交易类型:",
|
|
938
884
|
prop: "factorType"
|
|
939
885
|
}, {
|
|
940
|
-
default:
|
|
941
|
-
|
|
886
|
+
default: o(() => [
|
|
887
|
+
r(y, {
|
|
942
888
|
type: "danger",
|
|
943
|
-
plain:
|
|
944
|
-
onClick:
|
|
945
|
-
|
|
889
|
+
plain: u.value.factorType !== 1,
|
|
890
|
+
onClick: l[1] || (l[1] = () => {
|
|
891
|
+
u.value.factorType === -1 && (u.value.factorSelectedList = []), u.value.factorType = 1;
|
|
946
892
|
})
|
|
947
893
|
}, {
|
|
948
|
-
default:
|
|
949
|
-
|
|
894
|
+
default: o(() => [
|
|
895
|
+
B(" 多 ")
|
|
950
896
|
]),
|
|
951
897
|
_: 1
|
|
952
898
|
}, 8, ["plain"]),
|
|
953
|
-
|
|
899
|
+
r(y, {
|
|
954
900
|
type: "success",
|
|
955
|
-
plain:
|
|
956
|
-
onClick:
|
|
957
|
-
|
|
901
|
+
plain: u.value.factorType !== -1,
|
|
902
|
+
onClick: l[2] || (l[2] = () => {
|
|
903
|
+
u.value.factorType === 1 && (u.value.factorSelectedList = []), u.value.factorType = -1;
|
|
958
904
|
})
|
|
959
905
|
}, {
|
|
960
|
-
default:
|
|
961
|
-
|
|
906
|
+
default: o(() => [
|
|
907
|
+
B(" 空 ")
|
|
962
908
|
]),
|
|
963
909
|
_: 1
|
|
964
910
|
}, 8, ["plain"])
|
|
965
911
|
]),
|
|
966
912
|
_: 1
|
|
967
913
|
}),
|
|
968
|
-
|
|
914
|
+
r(I, {
|
|
969
915
|
label: "预警因子:",
|
|
970
916
|
prop: "factorSelectedList"
|
|
971
917
|
}, {
|
|
972
|
-
default:
|
|
973
|
-
|
|
974
|
-
modelValue:
|
|
975
|
-
"onUpdate:modelValue":
|
|
918
|
+
default: o(() => [
|
|
919
|
+
r(L, {
|
|
920
|
+
modelValue: u.value.factorSelectedList,
|
|
921
|
+
"onUpdate:modelValue": l[3] || (l[3] = (t) => u.value.factorSelectedList = t)
|
|
976
922
|
}, {
|
|
977
|
-
default:
|
|
978
|
-
|
|
923
|
+
default: o(() => [
|
|
924
|
+
u.value.factorType === 1 ? (n(!0), T(X, { key: 0 }, Y(e.moreFactorOptions, (t, z) => (n(), T("div", {
|
|
979
925
|
class: "factor-checkbox",
|
|
980
|
-
key:
|
|
926
|
+
key: z
|
|
981
927
|
}, [
|
|
982
|
-
|
|
928
|
+
r(s, {
|
|
983
929
|
label: t.factorTypeName,
|
|
984
930
|
value: t.factorTypeName
|
|
985
931
|
}, {
|
|
986
|
-
default:
|
|
987
|
-
|
|
932
|
+
default: o(() => [
|
|
933
|
+
f("span", rl, M(t.factorTypeName), 1)
|
|
988
934
|
]),
|
|
989
935
|
_: 2
|
|
990
936
|
}, 1032, ["label", "value"]),
|
|
991
|
-
|
|
937
|
+
f("span", {
|
|
992
938
|
class: "tag-button",
|
|
993
|
-
onClick: (
|
|
994
|
-
}, "+3", 8,
|
|
995
|
-
]))), 128)) :
|
|
996
|
-
|
|
939
|
+
onClick: (fe) => K(t.factorTypeName)
|
|
940
|
+
}, "+3", 8, il)
|
|
941
|
+
]))), 128)) : S("", !0),
|
|
942
|
+
u.value.factorType === -1 ? (n(!0), T(X, { key: 1 }, Y(e.emptyFactorOptions, (t, z) => (n(), T("div", {
|
|
997
943
|
class: "factor-checkbox",
|
|
998
|
-
key:
|
|
944
|
+
key: z
|
|
999
945
|
}, [
|
|
1000
|
-
|
|
946
|
+
r(s, {
|
|
1001
947
|
label: t.factorTypeName,
|
|
1002
948
|
value: t.factorTypeName
|
|
1003
949
|
}, {
|
|
1004
|
-
default:
|
|
1005
|
-
|
|
950
|
+
default: o(() => [
|
|
951
|
+
f("span", ul, M(t.factorTypeName), 1)
|
|
1006
952
|
]),
|
|
1007
953
|
_: 2
|
|
1008
954
|
}, 1032, ["label", "value"]),
|
|
1009
|
-
|
|
955
|
+
f("span", {
|
|
1010
956
|
class: "tag-button",
|
|
1011
|
-
onClick: (
|
|
1012
|
-
}, "+3", 8,
|
|
1013
|
-
]))), 128)) :
|
|
957
|
+
onClick: (fe) => K(t.factorTypeName)
|
|
958
|
+
}, "+3", 8, cl)
|
|
959
|
+
]))), 128)) : S("", !0)
|
|
1014
960
|
]),
|
|
1015
961
|
_: 1
|
|
1016
962
|
}, 8, ["modelValue"])
|
|
1017
963
|
]),
|
|
1018
964
|
_: 1
|
|
1019
965
|
}),
|
|
1020
|
-
|
|
966
|
+
r(I, {
|
|
1021
967
|
label: "预警次数:",
|
|
1022
968
|
prop: "totalCount"
|
|
1023
969
|
}, {
|
|
1024
|
-
default:
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
modelValue:
|
|
1028
|
-
"onUpdate:modelValue":
|
|
970
|
+
default: o(() => [
|
|
971
|
+
f("div", dl, [
|
|
972
|
+
r(b, {
|
|
973
|
+
modelValue: u.value.totalCount,
|
|
974
|
+
"onUpdate:modelValue": l[4] || (l[4] = (t) => u.value.totalCount = t),
|
|
1029
975
|
min: 1,
|
|
1030
976
|
"controls-position": "right",
|
|
1031
977
|
style: { "margin-right": "20px" }
|
|
1032
978
|
}, null, 8, ["modelValue"]),
|
|
1033
|
-
e.shortcutData.length ? (
|
|
1034
|
-
(
|
|
979
|
+
e.shortcutData.length ? (n(), T("div", fl, [
|
|
980
|
+
(n(!0), T(X, null, Y(e.shortcutData, (t) => (n(), E(y, {
|
|
1035
981
|
key: t.id,
|
|
1036
|
-
onClick: (
|
|
982
|
+
onClick: (z) => R(t),
|
|
1037
983
|
style: { margin: "0 12px 4px 0" }
|
|
1038
984
|
}, {
|
|
1039
|
-
default:
|
|
1040
|
-
|
|
985
|
+
default: o(() => [
|
|
986
|
+
B(M(t.shortcutName), 1)
|
|
1041
987
|
]),
|
|
1042
988
|
_: 2
|
|
1043
989
|
}, 1032, ["onClick"]))), 128))
|
|
1044
|
-
])) : (
|
|
990
|
+
])) : (n(), E(W, {
|
|
1045
991
|
key: 1,
|
|
1046
992
|
type: "primary",
|
|
1047
993
|
style: { cursor: "pointer" },
|
|
1048
|
-
onClick:
|
|
994
|
+
onClick: l[5] || (l[5] = () => a.value = "shortcut")
|
|
1049
995
|
}, {
|
|
1050
|
-
default:
|
|
1051
|
-
|
|
996
|
+
default: o(() => [
|
|
997
|
+
B(" 暂无快捷配置, 是否点击前往自定义配置? ")
|
|
1052
998
|
]),
|
|
1053
999
|
_: 1
|
|
1054
1000
|
}))
|
|
@@ -1056,23 +1002,23 @@ const me = (e) => (_t("data-v-b57c57a6"), e = e(), Bt(), e), cl = { class: "st-f
|
|
|
1056
1002
|
]),
|
|
1057
1003
|
_: 1
|
|
1058
1004
|
}),
|
|
1059
|
-
|
|
1005
|
+
_(C).ruleFormPrice ? (n(), E(I, {
|
|
1060
1006
|
key: 0,
|
|
1061
1007
|
label: "价格范围:"
|
|
1062
1008
|
}, {
|
|
1063
|
-
default:
|
|
1064
|
-
|
|
1065
|
-
modelValue:
|
|
1066
|
-
"onUpdate:modelValue":
|
|
1009
|
+
default: o(() => [
|
|
1010
|
+
r(b, {
|
|
1011
|
+
modelValue: u.value.minPrice,
|
|
1012
|
+
"onUpdate:modelValue": l[6] || (l[6] = (t) => u.value.minPrice = t),
|
|
1067
1013
|
min: -999,
|
|
1068
1014
|
placeholder: "请输入",
|
|
1069
1015
|
max: 999,
|
|
1070
1016
|
"controls-position": "right"
|
|
1071
1017
|
}, null, 8, ["modelValue"]),
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
modelValue:
|
|
1075
|
-
"onUpdate:modelValue":
|
|
1018
|
+
ml,
|
|
1019
|
+
r(b, {
|
|
1020
|
+
modelValue: u.value.maxPrice,
|
|
1021
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => u.value.maxPrice = t),
|
|
1076
1022
|
placeholder: "请输入",
|
|
1077
1023
|
min: -999,
|
|
1078
1024
|
max: 999,
|
|
@@ -1080,15 +1026,15 @@ const me = (e) => (_t("data-v-b57c57a6"), e = e(), Bt(), e), cl = { class: "st-f
|
|
|
1080
1026
|
}, null, 8, ["modelValue"])
|
|
1081
1027
|
]),
|
|
1082
1028
|
_: 1
|
|
1083
|
-
})) :
|
|
1084
|
-
|
|
1029
|
+
})) : S("", !0),
|
|
1030
|
+
_(C).ruleFormMark ? (n(), E(I, {
|
|
1085
1031
|
key: 1,
|
|
1086
1032
|
label: "备注:"
|
|
1087
1033
|
}, {
|
|
1088
|
-
default:
|
|
1089
|
-
|
|
1090
|
-
modelValue:
|
|
1091
|
-
"onUpdate:modelValue":
|
|
1034
|
+
default: o(() => [
|
|
1035
|
+
r(ee, {
|
|
1036
|
+
modelValue: u.value.mark,
|
|
1037
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => u.value.mark = t),
|
|
1092
1038
|
type: "textarea",
|
|
1093
1039
|
placeholder: "请输入关键字",
|
|
1094
1040
|
rows: 2,
|
|
@@ -1096,106 +1042,106 @@ const me = (e) => (_t("data-v-b57c57a6"), e = e(), Bt(), e), cl = { class: "st-f
|
|
|
1096
1042
|
}, null, 8, ["modelValue"])
|
|
1097
1043
|
]),
|
|
1098
1044
|
_: 1
|
|
1099
|
-
})) :
|
|
1045
|
+
})) : S("", !0)
|
|
1100
1046
|
]),
|
|
1101
1047
|
_: 1
|
|
1102
|
-
}, 8, ["model", "rules"])) :
|
|
1103
|
-
|
|
1048
|
+
}, 8, ["model", "rules"])) : S("", !0),
|
|
1049
|
+
a.value === "table" ? (n(), E(F, {
|
|
1104
1050
|
key: 1,
|
|
1105
1051
|
data: e.tableData,
|
|
1106
1052
|
size: "small"
|
|
1107
1053
|
}, {
|
|
1108
|
-
default:
|
|
1109
|
-
|
|
1054
|
+
default: o(() => [
|
|
1055
|
+
r(q, {
|
|
1110
1056
|
label: "预警周期",
|
|
1111
1057
|
width: "70"
|
|
1112
1058
|
}, {
|
|
1113
|
-
default:
|
|
1114
|
-
|
|
1059
|
+
default: o((t) => [
|
|
1060
|
+
B(M(t.row.freqName || "-"), 1)
|
|
1115
1061
|
]),
|
|
1116
1062
|
_: 1
|
|
1117
1063
|
}),
|
|
1118
|
-
|
|
1064
|
+
r(q, {
|
|
1119
1065
|
label: "交易类型",
|
|
1120
1066
|
width: "70"
|
|
1121
1067
|
}, {
|
|
1122
|
-
default:
|
|
1123
|
-
t.row.factorExtendValue == 1 ? (
|
|
1068
|
+
default: o((t) => [
|
|
1069
|
+
t.row.factorExtendValue == 1 ? (n(), T("span", pl, "多")) : (n(), T("span", vl, "空"))
|
|
1124
1070
|
]),
|
|
1125
1071
|
_: 1
|
|
1126
1072
|
}),
|
|
1127
|
-
|
|
1128
|
-
default:
|
|
1129
|
-
|
|
1073
|
+
r(q, { label: "预警因子" }, {
|
|
1074
|
+
default: o((t) => [
|
|
1075
|
+
B(M(t.row.factorExtendName || "-"), 1)
|
|
1130
1076
|
]),
|
|
1131
1077
|
_: 1
|
|
1132
1078
|
}),
|
|
1133
|
-
|
|
1079
|
+
r(q, {
|
|
1134
1080
|
label: "预警次数",
|
|
1135
1081
|
width: "70"
|
|
1136
1082
|
}, {
|
|
1137
|
-
default:
|
|
1138
|
-
|
|
1083
|
+
default: o((t) => [
|
|
1084
|
+
B(M(`${t.row.currentCount} / ${t.row.totalCount}`), 1)
|
|
1139
1085
|
]),
|
|
1140
1086
|
_: 1
|
|
1141
1087
|
}),
|
|
1142
|
-
|
|
1088
|
+
_(C).tableStatus ? (n(), E(q, {
|
|
1143
1089
|
key: 0,
|
|
1144
1090
|
label: "状态",
|
|
1145
1091
|
width: "70"
|
|
1146
1092
|
}, {
|
|
1147
|
-
default:
|
|
1148
|
-
|
|
1149
|
-
t.row.enable === 1 ? (
|
|
1093
|
+
default: o((t) => [
|
|
1094
|
+
f("div", null, [
|
|
1095
|
+
t.row.enable === 1 ? (n(), T("span", gl, "未触发")) : t.row.enable === 2 ? (n(), T("span", yl, "已触发")) : (n(), T("span", bl, "-"))
|
|
1150
1096
|
])
|
|
1151
1097
|
]),
|
|
1152
1098
|
_: 1
|
|
1153
|
-
})) :
|
|
1154
|
-
|
|
1099
|
+
})) : S("", !0),
|
|
1100
|
+
_(C).tableCreateTime ? (n(), E(q, {
|
|
1155
1101
|
key: 1,
|
|
1156
1102
|
label: "设置时间",
|
|
1157
1103
|
width: "136"
|
|
1158
1104
|
}, {
|
|
1159
|
-
default:
|
|
1160
|
-
|
|
1105
|
+
default: o((t) => [
|
|
1106
|
+
B(M(t.row.createdTime || "-"), 1)
|
|
1161
1107
|
]),
|
|
1162
1108
|
_: 1
|
|
1163
|
-
})) :
|
|
1164
|
-
|
|
1109
|
+
})) : S("", !0),
|
|
1110
|
+
_(C).tableMark ? (n(), E(q, {
|
|
1165
1111
|
key: 2,
|
|
1166
1112
|
label: "备注",
|
|
1167
1113
|
width: "70"
|
|
1168
1114
|
}, {
|
|
1169
|
-
default:
|
|
1170
|
-
|
|
1115
|
+
default: o((t) => [
|
|
1116
|
+
B(M(t.row.mark || "-"), 1)
|
|
1171
1117
|
]),
|
|
1172
1118
|
_: 1
|
|
1173
|
-
})) :
|
|
1174
|
-
e.allowOperation ? (
|
|
1119
|
+
})) : S("", !0),
|
|
1120
|
+
e.allowOperation ? (n(), E(q, {
|
|
1175
1121
|
key: 3,
|
|
1176
1122
|
label: "操作",
|
|
1177
1123
|
width: "140"
|
|
1178
1124
|
}, {
|
|
1179
|
-
default:
|
|
1180
|
-
|
|
1125
|
+
default: o((t) => [
|
|
1126
|
+
_(C).tableEnable ? (n(), E(y, {
|
|
1181
1127
|
key: 0,
|
|
1182
1128
|
disabled: t.row.currentCount !== t.row.totalCount,
|
|
1183
1129
|
size: "small",
|
|
1184
|
-
onClick: (
|
|
1130
|
+
onClick: (z) => g("enabled", t.row)
|
|
1185
1131
|
}, {
|
|
1186
|
-
default:
|
|
1187
|
-
|
|
1132
|
+
default: o(() => [
|
|
1133
|
+
B(" 启用 ")
|
|
1188
1134
|
]),
|
|
1189
1135
|
_: 2
|
|
1190
|
-
}, 1032, ["disabled", "onClick"])) :
|
|
1191
|
-
|
|
1136
|
+
}, 1032, ["disabled", "onClick"])) : S("", !0),
|
|
1137
|
+
r(h, {
|
|
1192
1138
|
title: "确定删除?",
|
|
1193
|
-
onConfirm: (
|
|
1139
|
+
onConfirm: (z) => g("delete", t.row)
|
|
1194
1140
|
}, {
|
|
1195
|
-
reference:
|
|
1196
|
-
|
|
1197
|
-
default:
|
|
1198
|
-
|
|
1141
|
+
reference: o(() => [
|
|
1142
|
+
r(y, { size: "small" }, {
|
|
1143
|
+
default: o(() => [
|
|
1144
|
+
B("删除")
|
|
1199
1145
|
]),
|
|
1200
1146
|
_: 1
|
|
1201
1147
|
})
|
|
@@ -1204,22 +1150,22 @@ const me = (e) => (_t("data-v-b57c57a6"), e = e(), Bt(), e), cl = { class: "st-f
|
|
|
1204
1150
|
}, 1032, ["onConfirm"])
|
|
1205
1151
|
]),
|
|
1206
1152
|
_: 1
|
|
1207
|
-
})) :
|
|
1153
|
+
})) : S("", !0)
|
|
1208
1154
|
]),
|
|
1209
1155
|
_: 1
|
|
1210
|
-
}, 8, ["data"])) :
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1156
|
+
}, 8, ["data"])) : S("", !0),
|
|
1157
|
+
a.value === "shortcut" ? (n(), T(X, { key: 2 }, [
|
|
1158
|
+
f("div", hl, [
|
|
1159
|
+
Cl,
|
|
1160
|
+
r(le, {
|
|
1215
1161
|
effect: "dark",
|
|
1216
1162
|
content: "如有配置数据, 可点击查看该配置的具体信息",
|
|
1217
1163
|
placement: "right-start"
|
|
1218
1164
|
}, {
|
|
1219
|
-
default:
|
|
1220
|
-
|
|
1221
|
-
default:
|
|
1222
|
-
|
|
1165
|
+
default: o(() => [
|
|
1166
|
+
r(N, null, {
|
|
1167
|
+
default: o(() => [
|
|
1168
|
+
r(_(Ve))
|
|
1223
1169
|
]),
|
|
1224
1170
|
_: 1
|
|
1225
1171
|
})
|
|
@@ -1227,32 +1173,32 @@ const me = (e) => (_t("data-v-b57c57a6"), e = e(), Bt(), e), cl = { class: "st-f
|
|
|
1227
1173
|
_: 1
|
|
1228
1174
|
})
|
|
1229
1175
|
]),
|
|
1230
|
-
|
|
1231
|
-
e.shortcutData.length ? (
|
|
1176
|
+
f("div", kl, [
|
|
1177
|
+
e.shortcutData.length ? (n(!0), T(X, { key: 0 }, Y(e.shortcutData, (t) => (n(), E(He, {
|
|
1232
1178
|
key: t.id,
|
|
1233
1179
|
type: "primary",
|
|
1234
1180
|
size: "default",
|
|
1235
1181
|
closable: "",
|
|
1236
|
-
onClick: (
|
|
1237
|
-
onClose: (
|
|
1182
|
+
onClick: (z) => j(t),
|
|
1183
|
+
onClose: (z) => Z(t)
|
|
1238
1184
|
}, {
|
|
1239
|
-
default:
|
|
1240
|
-
|
|
1185
|
+
default: o(() => [
|
|
1186
|
+
B(M(t.shortcutName), 1)
|
|
1241
1187
|
]),
|
|
1242
1188
|
_: 2
|
|
1243
|
-
}, 1032, ["onClick", "onClose"]))), 128)) : (
|
|
1189
|
+
}, 1032, ["onClick", "onClose"]))), 128)) : (n(), T("span", El, "暂无数据"))
|
|
1244
1190
|
]),
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1191
|
+
f("div", wl, [
|
|
1192
|
+
Tl,
|
|
1193
|
+
r(le, {
|
|
1248
1194
|
effect: "dark",
|
|
1249
1195
|
content: "同名配置将会进行覆盖",
|
|
1250
1196
|
placement: "right-start"
|
|
1251
1197
|
}, {
|
|
1252
|
-
default:
|
|
1253
|
-
|
|
1254
|
-
default:
|
|
1255
|
-
|
|
1198
|
+
default: o(() => [
|
|
1199
|
+
r(N, null, {
|
|
1200
|
+
default: o(() => [
|
|
1201
|
+
r(_(Ve))
|
|
1256
1202
|
]),
|
|
1257
1203
|
_: 1
|
|
1258
1204
|
})
|
|
@@ -1260,23 +1206,23 @@ const me = (e) => (_t("data-v-b57c57a6"), e = e(), Bt(), e), cl = { class: "st-f
|
|
|
1260
1206
|
_: 1
|
|
1261
1207
|
})
|
|
1262
1208
|
]),
|
|
1263
|
-
|
|
1209
|
+
r(te, {
|
|
1264
1210
|
ref_key: "shortcut_ruleFormRef",
|
|
1265
|
-
ref:
|
|
1211
|
+
ref: A,
|
|
1266
1212
|
model: v.value,
|
|
1267
|
-
rules:
|
|
1213
|
+
rules: d.value,
|
|
1268
1214
|
"label-width": "90px",
|
|
1269
1215
|
size: "default"
|
|
1270
1216
|
}, {
|
|
1271
|
-
default:
|
|
1272
|
-
|
|
1217
|
+
default: o(() => [
|
|
1218
|
+
r(I, {
|
|
1273
1219
|
label: "配置名称:",
|
|
1274
1220
|
prop: "shortcutName"
|
|
1275
1221
|
}, {
|
|
1276
|
-
default:
|
|
1277
|
-
|
|
1222
|
+
default: o(() => [
|
|
1223
|
+
r(ee, {
|
|
1278
1224
|
modelValue: v.value.shortcutName,
|
|
1279
|
-
"onUpdate:modelValue":
|
|
1225
|
+
"onUpdate:modelValue": l[9] || (l[9] = (t) => v.value.shortcutName = t),
|
|
1280
1226
|
maxlength: "6",
|
|
1281
1227
|
"show-word-limit": "",
|
|
1282
1228
|
style: { width: "160px" }
|
|
@@ -1284,74 +1230,74 @@ const me = (e) => (_t("data-v-b57c57a6"), e = e(), Bt(), e), cl = { class: "st-f
|
|
|
1284
1230
|
]),
|
|
1285
1231
|
_: 1
|
|
1286
1232
|
}),
|
|
1287
|
-
|
|
1233
|
+
r(I, {
|
|
1288
1234
|
label: "交易类型:",
|
|
1289
1235
|
prop: "factorType"
|
|
1290
1236
|
}, {
|
|
1291
|
-
default:
|
|
1292
|
-
|
|
1237
|
+
default: o(() => [
|
|
1238
|
+
r(y, {
|
|
1293
1239
|
type: "danger",
|
|
1294
1240
|
plain: v.value.factorType !== 1,
|
|
1295
|
-
onClick:
|
|
1241
|
+
onClick: l[10] || (l[10] = () => {
|
|
1296
1242
|
v.value.factorType === -1 && (v.value.factorSelectedList = []), v.value.factorType = 1;
|
|
1297
1243
|
})
|
|
1298
1244
|
}, {
|
|
1299
|
-
default:
|
|
1300
|
-
|
|
1245
|
+
default: o(() => [
|
|
1246
|
+
B(" 多 ")
|
|
1301
1247
|
]),
|
|
1302
1248
|
_: 1
|
|
1303
1249
|
}, 8, ["plain"]),
|
|
1304
|
-
|
|
1250
|
+
r(y, {
|
|
1305
1251
|
type: "success",
|
|
1306
1252
|
plain: v.value.factorType !== -1,
|
|
1307
|
-
onClick:
|
|
1253
|
+
onClick: l[11] || (l[11] = () => {
|
|
1308
1254
|
v.value.factorType === 1 && (v.value.factorSelectedList = []), v.value.factorType = -1;
|
|
1309
1255
|
})
|
|
1310
1256
|
}, {
|
|
1311
|
-
default:
|
|
1312
|
-
|
|
1257
|
+
default: o(() => [
|
|
1258
|
+
B(" 空 ")
|
|
1313
1259
|
]),
|
|
1314
1260
|
_: 1
|
|
1315
1261
|
}, 8, ["plain"])
|
|
1316
1262
|
]),
|
|
1317
1263
|
_: 1
|
|
1318
1264
|
}),
|
|
1319
|
-
|
|
1265
|
+
r(I, {
|
|
1320
1266
|
label: "预警因子:",
|
|
1321
1267
|
prop: "factorSelectedList"
|
|
1322
1268
|
}, {
|
|
1323
|
-
default:
|
|
1324
|
-
|
|
1269
|
+
default: o(() => [
|
|
1270
|
+
r(L, {
|
|
1325
1271
|
modelValue: v.value.factorSelectedList,
|
|
1326
|
-
"onUpdate:modelValue":
|
|
1272
|
+
"onUpdate:modelValue": l[12] || (l[12] = (t) => v.value.factorSelectedList = t)
|
|
1327
1273
|
}, {
|
|
1328
|
-
default:
|
|
1329
|
-
v.value.factorType === 1 ? (
|
|
1330
|
-
key:
|
|
1274
|
+
default: o(() => [
|
|
1275
|
+
v.value.factorType === 1 ? (n(!0), T(X, { key: 0 }, Y(e.moreFactorOptions, (t, z) => (n(), E(s, {
|
|
1276
|
+
key: z,
|
|
1331
1277
|
label: t.factorTypeName,
|
|
1332
1278
|
value: t.factorTypeName,
|
|
1333
1279
|
style: { width: "200px" }
|
|
1334
|
-
}, null, 8, ["label", "value"]))), 128)) :
|
|
1335
|
-
v.value.factorType === -1 ? (
|
|
1336
|
-
key:
|
|
1280
|
+
}, null, 8, ["label", "value"]))), 128)) : S("", !0),
|
|
1281
|
+
v.value.factorType === -1 ? (n(!0), T(X, { key: 1 }, Y(e.emptyFactorOptions, (t, z) => (n(), E(s, {
|
|
1282
|
+
key: z,
|
|
1337
1283
|
label: t.factorTypeName,
|
|
1338
1284
|
value: t.factorTypeName,
|
|
1339
1285
|
style: { width: "200px" }
|
|
1340
|
-
}, null, 8, ["label", "value"]))), 128)) :
|
|
1286
|
+
}, null, 8, ["label", "value"]))), 128)) : S("", !0)
|
|
1341
1287
|
]),
|
|
1342
1288
|
_: 1
|
|
1343
1289
|
}, 8, ["modelValue"])
|
|
1344
1290
|
]),
|
|
1345
1291
|
_: 1
|
|
1346
1292
|
}),
|
|
1347
|
-
|
|
1293
|
+
r(I, {
|
|
1348
1294
|
label: "预警次数:",
|
|
1349
1295
|
prop: "totalCount"
|
|
1350
1296
|
}, {
|
|
1351
|
-
default:
|
|
1352
|
-
|
|
1297
|
+
default: o(() => [
|
|
1298
|
+
r(b, {
|
|
1353
1299
|
modelValue: v.value.totalCount,
|
|
1354
|
-
"onUpdate:modelValue":
|
|
1300
|
+
"onUpdate:modelValue": l[13] || (l[13] = (t) => v.value.totalCount = t),
|
|
1355
1301
|
min: 1,
|
|
1356
1302
|
max: 10,
|
|
1357
1303
|
"controls-position": "right",
|
|
@@ -1363,7 +1309,7 @@ const me = (e) => (_t("data-v-b57c57a6"), e = e(), Bt(), e), cl = { class: "st-f
|
|
|
1363
1309
|
]),
|
|
1364
1310
|
_: 1
|
|
1365
1311
|
}, 8, ["model", "rules"])
|
|
1366
|
-
], 64)) :
|
|
1312
|
+
], 64)) : S("", !0)
|
|
1367
1313
|
]),
|
|
1368
1314
|
_: 1
|
|
1369
1315
|
}, 8, ["modelValue"])
|
|
@@ -1373,9 +1319,9 @@ const me = (e) => (_t("data-v-b57c57a6"), e = e(), Bt(), e), cl = { class: "st-f
|
|
|
1373
1319
|
]);
|
|
1374
1320
|
};
|
|
1375
1321
|
}
|
|
1376
|
-
},
|
|
1322
|
+
}, Bl = /* @__PURE__ */ _t(_l, [["__scopeId", "data-v-b57c57a6"]]), ro = {
|
|
1377
1323
|
install(e) {
|
|
1378
|
-
e.component("st-factorWarning",
|
|
1324
|
+
e.component("st-factorWarning", Bl);
|
|
1379
1325
|
}
|
|
1380
1326
|
};
|
|
1381
1327
|
export {
|