st-comp 0.0.119 → 0.0.120
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/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +11 -11
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +114 -111
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +12 -12
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +11 -11
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +53 -53
- package/es/Pie.cjs +1 -2
- package/es/Pie.js +1 -159
- package/es/Table.cjs +1 -1
- package/es/Table.js +42 -42
- package/es/User.cjs +1 -1
- package/es/User.js +32 -32
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +71 -71
- package/es/VirtualTable.cjs +2 -2
- package/es/VirtualTable.js +10 -10
- package/es/{base-f7877059.js → base-11914420.js} +67 -67
- package/es/{base-ec05f348.cjs → base-b384d332.cjs} +1 -1
- package/es/{castArray-a45823fe.cjs → castArray-21cb8c6a.cjs} +1 -1
- package/es/{castArray-18f43497.js → castArray-63513408.js} +1 -1
- package/es/{config-provider-7cdfca4d.cjs → config-provider-08c54ec3.cjs} +1 -1
- package/es/{config-provider-6479d795.js → config-provider-40502529.js} +3 -3
- package/es/debounce-2ecf2d1f.cjs +1 -0
- package/es/{debounce-2336e546.js → debounce-a57891c6.js} +12 -12
- package/es/{dropdown-9a974876.cjs → dropdown-1de99dc2.cjs} +1 -1
- package/es/{dropdown-46daf582.js → dropdown-4fb49237.js} +4 -4
- package/es/{el-button-196807af.cjs → el-button-d234707c.cjs} +1 -1
- package/es/{el-button-802f579a.js → el-button-f0269eec.js} +18 -18
- package/es/{el-empty-19ea04f4.cjs → el-empty-2d7a61d4.cjs} +1 -1
- package/es/{el-empty-3c5ec277.js → el-empty-d85386ab.js} +5 -5
- package/es/el-form-item-7cf4d392.cjs +12 -0
- package/es/{el-form-item-84099d46.js → el-form-item-a2793eee.js} +43 -43
- package/es/{el-input-fac5b401.js → el-input-c7436eee.js} +63 -63
- package/es/el-input-fd2b3a26.cjs +1 -0
- package/es/{el-overlay-69e9ae49.js → el-overlay-587c0f42.js} +79 -79
- package/es/{el-overlay-891dcc40.cjs → el-overlay-7d8307c8.cjs} +1 -1
- package/es/{el-popover-8735b1fa.cjs → el-popover-129a9692.cjs} +1 -1
- package/es/{el-popover-694ded47.js → el-popover-7781eefc.js} +20 -20
- package/es/{el-popper-6126b1f6.js → el-popper-242a0eb5.js} +170 -170
- package/es/el-popper-3d8f2656.cjs +1 -0
- package/es/{el-scrollbar-e0493906.js → el-scrollbar-41e6d010.js} +10 -10
- package/es/el-scrollbar-a01fea99.cjs +1 -0
- package/es/el-select-d3f8b31c.cjs +1 -0
- package/es/{el-select-513126a5.js → el-select-f70bb17d.js} +64 -64
- package/es/el-table-column-1319b1ba.cjs +14 -0
- package/es/{el-table-column-3c920bdd.js → el-table-column-d6952a3d.js} +73 -73
- package/es/{el-tag-5becabc9.js → el-tag-33526075.js} +68 -68
- package/es/{el-tag-3b03d13e.cjs → el-tag-6d45f0b2.cjs} +1 -1
- package/es/{index-048dca7e.js → index-20c6f535.js} +1 -1
- package/es/{index-80a2b137.cjs → index-2d697ae8.cjs} +1 -1
- package/es/{index-7e40be25.js → index-7ee24173.js} +18 -18
- package/es/index-bdc8ae3f.js +81 -0
- package/es/{index-8a0b1c53.cjs → index-cb665c76.cjs} +1 -1
- package/es/{index-e1e83173.cjs → index-e0fa2f71.cjs} +1 -1
- package/es/{raf-07da7cdf.js → raf-862dc8b5.js} +1 -1
- package/es/{raf-8fc301fd.cjs → raf-930895a1.cjs} +1 -1
- package/es/{refs-d00b710b.cjs → refs-4b61ff18.cjs} +1 -1
- package/es/refs-e2671b32.js +9 -0
- package/es/{scroll-41224831.cjs → scroll-495227b0.cjs} +1 -1
- package/es/{scroll-3b521d81.js → scroll-c4e30037.js} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-1b84d8f4.cjs → use-form-common-props-41091f5f.cjs} +2 -2
- package/es/{use-form-common-props-f3a520d0.js → use-form-common-props-422d25a5.js} +70 -70
- package/es/{vnode-25d7c2f5.js → vnode-029f1740.js} +1 -1
- package/es/{vnode-7fbc61e1.cjs → vnode-44ebae3f.cjs} +1 -1
- package/es/{zh-cn-ab9a583d.cjs → zh-cn-44d71e6d.cjs} +1 -1
- package/es/{zh-cn-74781bbd.js → zh-cn-4659cb4f.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-824e4fa8.js → index-b77b391d.js} +7 -4
- package/lib/{python-d78b6dc4.js → python-7a6d9a11.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/FactorWarning/index.vue +4 -1
- package/es/debounce-b2ff12bd.cjs +0 -1
- package/es/el-form-item-c39f717e.cjs +0 -12
- package/es/el-input-6c6f5bda.cjs +0 -1
- package/es/el-popper-f62316cd.cjs +0 -1
- package/es/el-scrollbar-d1c3e7f7.cjs +0 -1
- package/es/el-select-928f8c19.cjs +0 -1
- package/es/el-table-column-dd8b62aa.cjs +0 -14
- package/es/index-35117549.js +0 -81
- package/es/refs-1b1fe6ca.js +0 -9
package/es/FactorWarning.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { z as
|
|
3
|
-
import { a as xe, u as et, b as tt, c as lt, E as ot } from "./el-overlay-
|
|
4
|
-
import "./el-tag-
|
|
5
|
-
import {
|
|
1
|
+
import { d as Ge, e as Ce, D as te, C as ke, I as we, l as Xe, o as ve, x as Me, _ as Fe, G as de, w as We, a as ge, b as Ye, P as Ee, Q as Je, B as Se } from "./base-11914420.js";
|
|
2
|
+
import { z as Qe, E as Ze } from "./zh-cn-4659cb4f.js";
|
|
3
|
+
import { a as xe, u as et, b as tt, c as lt, E as ot } from "./el-overlay-587c0f42.js";
|
|
4
|
+
import "./el-tag-33526075.js";
|
|
5
|
+
import { b as at, c as nt, E as st, a as rt } from "./el-table-column-d6952a3d.js";
|
|
6
6
|
import "./el-tooltip-4ed993c7.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { E as ft } from "./el-popover-
|
|
10
|
-
import { E as
|
|
11
|
-
import { E as mt, a as pt, b as vt, c as gt } from "./el-form-item-
|
|
12
|
-
import { E as
|
|
13
|
-
import { defineComponent as he, ref as
|
|
14
|
-
import {
|
|
7
|
+
import { b as it, E as ut } from "./el-popper-242a0eb5.js";
|
|
8
|
+
import { b as dt, a as ct } from "./el-scrollbar-41e6d010.js";
|
|
9
|
+
import { E as ft } from "./el-popover-7781eefc.js";
|
|
10
|
+
import { E as Oe } from "./el-button-f0269eec.js";
|
|
11
|
+
import { E as mt, a as pt, b as vt, c as gt } from "./el-form-item-a2793eee.js";
|
|
12
|
+
import { E as $e } from "./el-input-c7436eee.js";
|
|
13
|
+
import { defineComponent as he, ref as F, reactive as Ne, computed as z, watch as le, openBlock as n, createElementBlock as T, unref as E, normalizeClass as C, createElementVNode as b, normalizeStyle as ye, Fragment as H, renderList as Y, renderSlot as Ae, createTextVNode as S, toDisplayString as M, createCommentVNode as w, nextTick as ee, markRaw as Te, onMounted as yt, onBeforeUnmount as bt, toRefs as ht, resolveComponent as Q, createBlock as y, Transition as Ct, withCtx as o, withDirectives as fe, createVNode as s, withModifiers as re, resolveDynamicComponent as ie, withKeys as ue, vShow as me, isVNode as Pe, render as De, mergeModels as _e, useModel as kt, pushScopeId as wt, popScopeId as Et } from "vue";
|
|
14
|
+
import { f as St, u as Tt, g as _t, l as Bt, j as Vt, k as It, E as Re, T as Lt, o as Be, r as Ve, s as pe } from "./use-form-common-props-422d25a5.js";
|
|
15
15
|
import { G as Mt } from "./index-57f8f7b9.js";
|
|
16
|
-
import { _ as
|
|
17
|
-
import { o as Ie, E as
|
|
18
|
-
import {
|
|
16
|
+
import { _ as Ft } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
|
+
import { o as Ie, E as Ot, a as $t } from "./index-20c6f535.js";
|
|
18
|
+
import { b as Nt } from "./index-bdc8ae3f.js";
|
|
19
19
|
import { U as ze, C as Ue } from "./event-09e37cc8.js";
|
|
20
|
-
import { E as At } from "./index-
|
|
21
|
-
import "./config-provider-
|
|
22
|
-
import "./vnode-
|
|
23
|
-
import "./refs-
|
|
24
|
-
import "./scroll-
|
|
25
|
-
import "./debounce-
|
|
26
|
-
import "./raf-
|
|
20
|
+
import { E as At } from "./index-7ee24173.js";
|
|
21
|
+
import "./config-provider-40502529.js";
|
|
22
|
+
import "./vnode-029f1740.js";
|
|
23
|
+
import "./refs-e2671b32.js";
|
|
24
|
+
import "./scroll-c4e30037.js";
|
|
25
|
+
import "./debounce-a57891c6.js";
|
|
26
|
+
import "./raf-862dc8b5.js";
|
|
27
27
|
import "./index-657047bb.js";
|
|
28
|
-
import "./castArray-
|
|
28
|
+
import "./castArray-63513408.js";
|
|
29
29
|
import "./typescript-7ae59c4c.js";
|
|
30
|
-
const Pt = (e) => ["", ...St].includes(e),
|
|
30
|
+
const Pt = (e) => ["", ...St].includes(e), Dt = Ge({
|
|
31
31
|
direction: {
|
|
32
32
|
type: Ce(String),
|
|
33
33
|
default: "horizontal"
|
|
@@ -50,29 +50,29 @@ const Pt = (e) => ["", ...St].includes(e), Rt = Xe({
|
|
|
50
50
|
id: String,
|
|
51
51
|
name: String,
|
|
52
52
|
...it(["ariaLabel"])
|
|
53
|
-
}),
|
|
53
|
+
}), Rt = {
|
|
54
54
|
[ze]: (e) => te(e) || ke(e) || we(e),
|
|
55
55
|
[Ue]: (e) => te(e) || ke(e) || we(e)
|
|
56
56
|
}, zt = he({
|
|
57
57
|
name: "ElSegmented"
|
|
58
58
|
}), Ut = /* @__PURE__ */ he({
|
|
59
59
|
...zt,
|
|
60
|
-
props:
|
|
61
|
-
emits:
|
|
60
|
+
props: Dt,
|
|
61
|
+
emits: Rt,
|
|
62
62
|
setup(e, { emit: m }) {
|
|
63
|
-
const a = e, u =
|
|
63
|
+
const a = e, u = Xe("segmented"), g = ve(), p = _t(), h = Bt(), { formItem: B } = Vt(), { inputId: d, isLabeledByFormItem: r } = It(a, {
|
|
64
64
|
formItemContext: B
|
|
65
|
-
}), P =
|
|
65
|
+
}), P = F(null), v = dt(), f = Ne({
|
|
66
66
|
isInit: !1,
|
|
67
67
|
width: 0,
|
|
68
68
|
height: 0,
|
|
69
69
|
translateX: 0,
|
|
70
70
|
translateY: 0,
|
|
71
71
|
focusVisible: !1
|
|
72
|
-
}),
|
|
72
|
+
}), X = (i) => {
|
|
73
73
|
const L = W(i);
|
|
74
74
|
m(ze, L), m(Ue, L);
|
|
75
|
-
}, W = (i) => de(i) ? i.value : i,
|
|
75
|
+
}, W = (i) => de(i) ? i.value : i, D = (i) => de(i) ? i.label : i, K = (i) => !!(h.value || de(i) && i.disabled), U = (i) => a.modelValue === W(i), j = (i) => a.options.find((L) => W(L) === i), _ = (i) => [
|
|
76
76
|
u.e("item"),
|
|
77
77
|
u.is("selected", U(i)),
|
|
78
78
|
u.is("disabled", K(i))
|
|
@@ -90,7 +90,7 @@ const Pt = (e) => ["", ...St].includes(e), Rt = Xe({
|
|
|
90
90
|
f.focusVisible = L.matches(":focus-visible");
|
|
91
91
|
} catch {
|
|
92
92
|
}
|
|
93
|
-
},
|
|
93
|
+
}, R = z(() => [
|
|
94
94
|
u.b(),
|
|
95
95
|
u.m(p.value),
|
|
96
96
|
u.is("block", a.block)
|
|
@@ -103,7 +103,7 @@ const Pt = (e) => ["", ...St].includes(e), Rt = Xe({
|
|
|
103
103
|
u.e("item-selected"),
|
|
104
104
|
u.is("disabled", K(j(a.modelValue))),
|
|
105
105
|
u.is("focus-visible", f.focusVisible)
|
|
106
|
-
]),
|
|
106
|
+
]), O = z(() => a.name || g.value);
|
|
107
107
|
return ct(P, l), le(v, l), le(() => a.modelValue, () => {
|
|
108
108
|
var i;
|
|
109
109
|
l(), a.validateEvent && ((i = B == null ? void 0 : B.validate) == null || i.call(B, "change").catch((L) => Me(L)));
|
|
@@ -114,7 +114,7 @@ const Pt = (e) => ["", ...St].includes(e), Rt = Xe({
|
|
|
114
114
|
id: E(d),
|
|
115
115
|
ref_key: "segmentedRef",
|
|
116
116
|
ref: P,
|
|
117
|
-
class: C(E(
|
|
117
|
+
class: C(E(R)),
|
|
118
118
|
role: "radiogroup",
|
|
119
119
|
"aria-label": E(r) ? void 0 : i.ariaLabel || "segmented",
|
|
120
120
|
"aria-labelledby": E(r) ? E(B).labelId : void 0
|
|
@@ -133,16 +133,16 @@ const Pt = (e) => ["", ...St].includes(e), Rt = Xe({
|
|
|
133
133
|
b("input", {
|
|
134
134
|
class: C(E(u).e("item-input")),
|
|
135
135
|
type: "radio",
|
|
136
|
-
name: E(
|
|
136
|
+
name: E(O),
|
|
137
137
|
disabled: K(I),
|
|
138
138
|
checked: U(I),
|
|
139
|
-
onChange: (ae) =>
|
|
139
|
+
onChange: (ae) => X(I)
|
|
140
140
|
}, null, 42, ["name", "disabled", "checked", "onChange"]),
|
|
141
141
|
b("div", {
|
|
142
142
|
class: C(E(u).e("item-label"))
|
|
143
143
|
}, [
|
|
144
144
|
Ae(i.$slots, "default", { item: I }, () => [
|
|
145
|
-
S(M(
|
|
145
|
+
S(M(D(I)), 1)
|
|
146
146
|
])
|
|
147
147
|
], 2)
|
|
148
148
|
], 2))), 128))
|
|
@@ -150,13 +150,13 @@ const Pt = (e) => ["", ...St].includes(e), Rt = Xe({
|
|
|
150
150
|
], 10, ["id", "aria-label", "aria-labelledby"])) : w("v-if", !0);
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
|
-
var qt = /* @__PURE__ */
|
|
153
|
+
var qt = /* @__PURE__ */ Fe(Ut, [["__file", "segmented.vue"]]);
|
|
154
154
|
const Ht = We(qt), be = "_trap-focus-children", J = [], Le = (e) => {
|
|
155
155
|
var m;
|
|
156
156
|
if (J.length === 0)
|
|
157
157
|
return;
|
|
158
158
|
const a = J[J.length - 1][be];
|
|
159
|
-
if (a.length > 0 && e.code ===
|
|
159
|
+
if (a.length > 0 && e.code === Ot.tab) {
|
|
160
160
|
if (a.length === 1) {
|
|
161
161
|
e.preventDefault(), document.activeElement !== a[0] && a[0].focus();
|
|
162
162
|
return;
|
|
@@ -185,11 +185,11 @@ const Ht = We(qt), be = "_trap-focus-children", J = [], Le = (e) => {
|
|
|
185
185
|
TrapFocus: Kt
|
|
186
186
|
},
|
|
187
187
|
components: {
|
|
188
|
-
ElButton:
|
|
189
|
-
ElFocusTrap:
|
|
190
|
-
ElInput:
|
|
188
|
+
ElButton: Oe,
|
|
189
|
+
ElFocusTrap: $t,
|
|
190
|
+
ElInput: $e,
|
|
191
191
|
ElOverlay: xe,
|
|
192
|
-
ElIcon:
|
|
192
|
+
ElIcon: Re,
|
|
193
193
|
...Lt
|
|
194
194
|
},
|
|
195
195
|
inheritAttrs: !1,
|
|
@@ -245,7 +245,7 @@ const Ht = We(qt), be = "_trap-focus-children", J = [], Le = (e) => {
|
|
|
245
245
|
zIndex: u,
|
|
246
246
|
ns: g,
|
|
247
247
|
size: p
|
|
248
|
-
} = Nt("message-box", z(() => e.buttonSize)), { t: h } = a, { nextZIndex: B } = u, d =
|
|
248
|
+
} = Nt("message-box", z(() => e.buttonSize)), { t: h } = a, { nextZIndex: B } = u, d = F(!1), r = Ne({
|
|
249
249
|
autofocus: !0,
|
|
250
250
|
beforeClose: null,
|
|
251
251
|
callback: null,
|
|
@@ -284,21 +284,21 @@ const Ht = We(qt), be = "_trap-focus-children", J = [], Le = (e) => {
|
|
|
284
284
|
}), P = z(() => {
|
|
285
285
|
const c = r.type;
|
|
286
286
|
return { [g.bm("icon", c)]: c && Ve[c] };
|
|
287
|
-
}), v = ve(), f = ve(),
|
|
287
|
+
}), v = ve(), f = ve(), X = z(() => {
|
|
288
288
|
const c = r.type;
|
|
289
289
|
return r.icon || c && Ve[c] || "";
|
|
290
|
-
}), W = z(() => !!r.message),
|
|
290
|
+
}), W = z(() => !!r.message), D = F(), K = F(), U = F(), j = F(), _ = F(), l = z(() => r.confirmButtonClass);
|
|
291
291
|
le(() => r.inputValue, async (c) => {
|
|
292
292
|
await ee(), e.boxType === "prompt" && c !== null && q();
|
|
293
293
|
}, { immediate: !0 }), le(() => d.value, (c) => {
|
|
294
|
-
var
|
|
295
|
-
c && (e.boxType !== "prompt" && (r.autofocus ? U.value = (N = (
|
|
294
|
+
var $, N;
|
|
295
|
+
c && (e.boxType !== "prompt" && (r.autofocus ? U.value = (N = ($ = _.value) == null ? void 0 : $.$el) != null ? N : D.value : U.value = D.value), r.zIndex = B()), e.boxType === "prompt" && (c ? ee().then(() => {
|
|
296
296
|
var se;
|
|
297
|
-
j.value && j.value.$el && (r.autofocus ? U.value = (se = ae()) != null ? se :
|
|
297
|
+
j.value && j.value.$el && (r.autofocus ? U.value = (se = ae()) != null ? se : D.value : U.value = D.value);
|
|
298
298
|
}) : (r.editorErrorMessage = "", r.validateError = !1));
|
|
299
299
|
});
|
|
300
|
-
const
|
|
301
|
-
et(
|
|
300
|
+
const R = z(() => e.draggable), V = z(() => e.overflow);
|
|
301
|
+
et(D, K, R, V), yt(async () => {
|
|
302
302
|
await ee(), e.closeOnHashChange && window.addEventListener("hashchange", k);
|
|
303
303
|
}), bt(() => {
|
|
304
304
|
e.closeOnHashChange && window.removeEventListener("hashchange", k);
|
|
@@ -308,22 +308,22 @@ const Ht = We(qt), be = "_trap-focus-children", J = [], Le = (e) => {
|
|
|
308
308
|
r.action && m("action", r.action);
|
|
309
309
|
}));
|
|
310
310
|
}
|
|
311
|
-
const
|
|
311
|
+
const O = () => {
|
|
312
312
|
e.closeOnClickModal && I(r.distinguishCancelAndClose ? "close" : "cancel");
|
|
313
|
-
}, i = lt(
|
|
313
|
+
}, i = lt(O), L = (c) => {
|
|
314
314
|
if (r.inputType !== "textarea")
|
|
315
315
|
return c.preventDefault(), I("confirm");
|
|
316
316
|
}, I = (c) => {
|
|
317
|
-
var
|
|
318
|
-
e.boxType === "prompt" && c === "confirm" && !q() || (r.action = c, r.beforeClose ? (
|
|
317
|
+
var $;
|
|
318
|
+
e.boxType === "prompt" && c === "confirm" && !q() || (r.action = c, r.beforeClose ? ($ = r.beforeClose) == null || $.call(r, c, r, k) : k());
|
|
319
319
|
}, q = () => {
|
|
320
320
|
if (e.boxType === "prompt") {
|
|
321
321
|
const c = r.inputPattern;
|
|
322
322
|
if (c && !c.test(r.inputValue || ""))
|
|
323
323
|
return r.editorErrorMessage = r.inputErrorMessage || h("el.messagebox.error"), r.validateError = !0, !1;
|
|
324
|
-
const
|
|
325
|
-
if (ge(
|
|
326
|
-
const N =
|
|
324
|
+
const $ = r.inputValidator;
|
|
325
|
+
if (ge($)) {
|
|
326
|
+
const N = $(r.inputValue);
|
|
327
327
|
if (N === !1)
|
|
328
328
|
return r.editorErrorMessage = r.inputErrorMessage || h("el.messagebox.error"), r.validateError = !0, !1;
|
|
329
329
|
if (te(N))
|
|
@@ -332,9 +332,9 @@ const Ht = We(qt), be = "_trap-focus-children", J = [], Le = (e) => {
|
|
|
332
332
|
}
|
|
333
333
|
return r.editorErrorMessage = "", r.validateError = !1, !0;
|
|
334
334
|
}, ae = () => {
|
|
335
|
-
var c,
|
|
335
|
+
var c, $;
|
|
336
336
|
const N = (c = j.value) == null ? void 0 : c.$refs;
|
|
337
|
-
return (
|
|
337
|
+
return ($ = N == null ? void 0 : N.input) != null ? $ : N == null ? void 0 : N.textarea;
|
|
338
338
|
}, x = () => {
|
|
339
339
|
I("close");
|
|
340
340
|
}, ne = () => {
|
|
@@ -350,9 +350,9 @@ const Ht = We(qt), be = "_trap-focus-children", J = [], Le = (e) => {
|
|
|
350
350
|
contentId: v,
|
|
351
351
|
inputId: f,
|
|
352
352
|
btnSize: p,
|
|
353
|
-
iconComponent:
|
|
353
|
+
iconComponent: X,
|
|
354
354
|
confirmButtonClasses: l,
|
|
355
|
-
rootRef:
|
|
355
|
+
rootRef: D,
|
|
356
356
|
focusStartRef: U,
|
|
357
357
|
headerRef: K,
|
|
358
358
|
inputRef: j,
|
|
@@ -360,15 +360,15 @@ const Ht = We(qt), be = "_trap-focus-children", J = [], Le = (e) => {
|
|
|
360
360
|
doClose: k,
|
|
361
361
|
handleClose: x,
|
|
362
362
|
onCloseRequested: ne,
|
|
363
|
-
handleWrapperClick:
|
|
363
|
+
handleWrapperClick: O,
|
|
364
364
|
handleInputEnter: L,
|
|
365
365
|
handleAction: I,
|
|
366
366
|
t: h
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
|
-
function
|
|
371
|
-
const h =
|
|
370
|
+
function Gt(e, m, a, u, g, p) {
|
|
371
|
+
const h = Q("el-icon"), B = Q("close"), d = Q("el-input"), r = Q("el-button"), P = Q("el-focus-trap"), v = Q("el-overlay");
|
|
372
372
|
return n(), y(Ct, {
|
|
373
373
|
name: "fade-in-linear",
|
|
374
374
|
onAfterLeave: (f) => e.$emit("vanish"),
|
|
@@ -562,19 +562,19 @@ function Xt(e, m, a, u, g, p) {
|
|
|
562
562
|
_: 3
|
|
563
563
|
}, 8, ["onAfterLeave"]);
|
|
564
564
|
}
|
|
565
|
-
var
|
|
565
|
+
var Xt = /* @__PURE__ */ Fe(jt, [["render", Gt], ["__file", "index.vue"]]);
|
|
566
566
|
const oe = /* @__PURE__ */ new Map(), Wt = (e) => {
|
|
567
567
|
let m = document.body;
|
|
568
568
|
return e.appendTo && (te(e.appendTo) && (m = document.querySelector(e.appendTo)), Se(e.appendTo) && (m = e.appendTo), Se(m) || (Me("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body."), m = document.body)), m;
|
|
569
569
|
}, Yt = (e, m, a = null) => {
|
|
570
|
-
const u = s(
|
|
570
|
+
const u = s(Xt, e, ge(e.message) || Pe(e.message) ? {
|
|
571
571
|
default: ge(e.message) ? e.message : () => e.message
|
|
572
572
|
} : null);
|
|
573
|
-
return u.appContext = a,
|
|
574
|
-
}, Jt = () => document.createElement("div"),
|
|
573
|
+
return u.appContext = a, De(u, m), Wt(e).appendChild(m.firstElementChild), u.component;
|
|
574
|
+
}, Jt = () => document.createElement("div"), Qt = (e, m) => {
|
|
575
575
|
const a = Jt();
|
|
576
576
|
e.onVanish = () => {
|
|
577
|
-
|
|
577
|
+
De(null, a), oe.delete(g);
|
|
578
578
|
}, e.onAction = (p) => {
|
|
579
579
|
const h = oe.get(g);
|
|
580
580
|
let B;
|
|
@@ -585,14 +585,14 @@ const oe = /* @__PURE__ */ new Map(), Wt = (e) => {
|
|
|
585
585
|
Ee(e, p) && !Ee(g.$props, p) && (g[p] = e[p]);
|
|
586
586
|
return g.visible = !0, g;
|
|
587
587
|
};
|
|
588
|
-
function
|
|
588
|
+
function Z(e, m = null) {
|
|
589
589
|
if (!Ye)
|
|
590
590
|
return Promise.reject();
|
|
591
591
|
let a;
|
|
592
592
|
return te(e) || Pe(e) ? e = {
|
|
593
593
|
message: e
|
|
594
594
|
} : a = e.callback, new Promise((u, g) => {
|
|
595
|
-
const p =
|
|
595
|
+
const p = Qt(e, m ?? Z._context);
|
|
596
596
|
oe.set(p, {
|
|
597
597
|
options: e,
|
|
598
598
|
callback: a,
|
|
@@ -601,18 +601,18 @@ function Q(e, m = null) {
|
|
|
601
601
|
});
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
|
-
const
|
|
604
|
+
const Zt = ["alert", "confirm", "prompt"], xt = {
|
|
605
605
|
alert: { closeOnPressEscape: !1, closeOnClickModal: !1 },
|
|
606
606
|
confirm: { showCancelButton: !0 },
|
|
607
607
|
prompt: { showCancelButton: !0, showInput: !0 }
|
|
608
608
|
};
|
|
609
|
-
|
|
610
|
-
|
|
609
|
+
Zt.forEach((e) => {
|
|
610
|
+
Z[e] = el(e);
|
|
611
611
|
});
|
|
612
612
|
function el(e) {
|
|
613
613
|
return (m, a, u, g) => {
|
|
614
614
|
let p = "";
|
|
615
|
-
return de(a) ? (u = a, p = "") : Je(a) ? p = "" : p = a,
|
|
615
|
+
return de(a) ? (u = a, p = "") : Je(a) ? p = "" : p = a, Z(Object.assign({
|
|
616
616
|
title: p,
|
|
617
617
|
message: m,
|
|
618
618
|
type: "",
|
|
@@ -622,17 +622,17 @@ function el(e) {
|
|
|
622
622
|
}), g);
|
|
623
623
|
};
|
|
624
624
|
}
|
|
625
|
-
|
|
625
|
+
Z.close = () => {
|
|
626
626
|
oe.forEach((e, m) => {
|
|
627
627
|
m.doClose();
|
|
628
628
|
}), oe.clear();
|
|
629
629
|
};
|
|
630
|
-
|
|
631
|
-
const
|
|
632
|
-
|
|
633
|
-
|
|
630
|
+
Z._context = null;
|
|
631
|
+
const G = Z;
|
|
632
|
+
G.install = (e) => {
|
|
633
|
+
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;
|
|
634
634
|
};
|
|
635
|
-
const tl =
|
|
635
|
+
const tl = G;
|
|
636
636
|
const ll = {
|
|
637
637
|
// 表单字段
|
|
638
638
|
ruleFormPrice: !0,
|
|
@@ -649,7 +649,7 @@ const ll = {
|
|
|
649
649
|
tableEnable: !0
|
|
650
650
|
// 启用按钮
|
|
651
651
|
};
|
|
652
|
-
const ce = (e) => (wt("data-v-
|
|
652
|
+
const ce = (e) => (wt("data-v-5dbfde93"), e = e(), Et(), e), ol = { class: "st-factorWarning" }, al = { class: "custom-header" }, nl = /* @__PURE__ */ ce(() => /* @__PURE__ */ b("span", { style: { "margin-right": "4px" } }, "因子预警", -1)), sl = /* @__PURE__ */ ce(() => /* @__PURE__ */ b("span", { style: { margin: "0 5px" } }, "~", -1)), rl = {
|
|
653
653
|
key: 0,
|
|
654
654
|
style: { color: "#f56c6c" }
|
|
655
655
|
}, il = {
|
|
@@ -680,28 +680,28 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
680
680
|
}),
|
|
681
681
|
emits: /* @__PURE__ */ _e(["add", "delete", "enabled", "closed", "shortcutAdd", "shortcutDelete"], ["update:visible"]),
|
|
682
682
|
setup(e, { emit: m }) {
|
|
683
|
-
const a =
|
|
683
|
+
const a = F("ruleForm"), u = kt(e, "visible"), g = m, p = e, h = Object.assign(ll, p.showConfig), B = F(null), d = F({
|
|
684
684
|
factorType: 1,
|
|
685
685
|
factorSelectedList: [],
|
|
686
686
|
totalCount: 1,
|
|
687
687
|
minPrice: null,
|
|
688
688
|
maxPrice: null,
|
|
689
689
|
mark: null
|
|
690
|
-
}), r =
|
|
690
|
+
}), r = F({
|
|
691
691
|
factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
|
|
692
692
|
factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
|
|
693
693
|
totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }]
|
|
694
|
-
}), P =
|
|
694
|
+
}), P = F(null), v = F({
|
|
695
695
|
shortcutName: null,
|
|
696
696
|
factorType: 1,
|
|
697
697
|
factorSelectedList: [],
|
|
698
698
|
totalCount: 1
|
|
699
|
-
}), f =
|
|
699
|
+
}), f = F({
|
|
700
700
|
factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
|
|
701
701
|
factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
|
|
702
702
|
totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }],
|
|
703
703
|
shortcutName: [{ required: !0, message: "请填写配置名称", trigger: "blur" }]
|
|
704
|
-
}),
|
|
704
|
+
}), X = () => {
|
|
705
705
|
d.value = {
|
|
706
706
|
factorType: 1,
|
|
707
707
|
factorSelectedList: [],
|
|
@@ -722,12 +722,12 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
722
722
|
factorSelectedList: l.factorSelectedList,
|
|
723
723
|
totalCount: l.totalCount
|
|
724
724
|
});
|
|
725
|
-
const
|
|
725
|
+
const R = {
|
|
726
726
|
factorSelectedList: d.value.factorSelectedList.map((V) => {
|
|
727
727
|
let k = l.totalCount;
|
|
728
|
-
const
|
|
729
|
-
if (
|
|
730
|
-
const i =
|
|
728
|
+
const O = p.tableData.find(({ factorExtendName: i }) => i === V);
|
|
729
|
+
if (O) {
|
|
730
|
+
const i = O.totalCount - O.currentCount;
|
|
731
731
|
i === 0 ? k = l.totalCount : k = Math.min(l.totalCount, 10 - i >= 0 ? 10 - i : 0);
|
|
732
732
|
}
|
|
733
733
|
return {
|
|
@@ -737,10 +737,10 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
737
737
|
};
|
|
738
738
|
})
|
|
739
739
|
};
|
|
740
|
-
|
|
741
|
-
},
|
|
742
|
-
_ && await _.validate((
|
|
743
|
-
if (!
|
|
740
|
+
D(B.value, R);
|
|
741
|
+
}, D = Mt(async (_, l) => {
|
|
742
|
+
_ && await _.validate((R) => {
|
|
743
|
+
if (!R)
|
|
744
744
|
return !1;
|
|
745
745
|
const V = l ?? {
|
|
746
746
|
factorSelectedList: d.value.factorSelectedList.map((k) => ({
|
|
@@ -748,17 +748,17 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
748
748
|
...d.value
|
|
749
749
|
}))
|
|
750
750
|
};
|
|
751
|
-
g("add", V), l ?
|
|
751
|
+
g("add", V), l ? X() : u.value = !1;
|
|
752
752
|
});
|
|
753
753
|
}, 200), K = async (_) => {
|
|
754
754
|
_ && await _.validate((l) => {
|
|
755
755
|
if (!l)
|
|
756
756
|
return !1;
|
|
757
|
-
const
|
|
757
|
+
const R = {
|
|
758
758
|
shortcutName: v.value.shortcutName,
|
|
759
759
|
data: JSON.stringify(v.value)
|
|
760
760
|
};
|
|
761
|
-
g("shortcutAdd",
|
|
761
|
+
g("shortcutAdd", R), X();
|
|
762
762
|
});
|
|
763
763
|
}, U = (_) => {
|
|
764
764
|
v.value = JSON.parse(_.data);
|
|
@@ -772,12 +772,15 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
772
772
|
return le(
|
|
773
773
|
() => u.value,
|
|
774
774
|
(_) => {
|
|
775
|
-
_ && (a.value = p.allowOperation ? "ruleForm" : "table",
|
|
775
|
+
_ && (a.value = p.allowOperation ? "ruleForm" : "table", X());
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
immediate: !0
|
|
776
779
|
}
|
|
777
780
|
), (_, l) => {
|
|
778
|
-
const
|
|
781
|
+
const R = Ht, V = Oe, k = mt, O = at, i = nt, L = pt, I = Re, q = ut, ae = vt, x = $e, ne = gt, c = st, $ = ft, N = rt, se = At, qe = ot, He = Ze;
|
|
779
782
|
return n(), T("div", ol, [
|
|
780
|
-
s(He, { locale: E(
|
|
783
|
+
s(He, { locale: E(Qe) }, {
|
|
781
784
|
default: o(() => [
|
|
782
785
|
s(qe, {
|
|
783
786
|
modelValue: u.value,
|
|
@@ -795,7 +798,7 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
795
798
|
nl,
|
|
796
799
|
b("span", null, M(e.title), 1)
|
|
797
800
|
], 2),
|
|
798
|
-
s(
|
|
801
|
+
s(R, {
|
|
799
802
|
modelValue: a.value,
|
|
800
803
|
"onUpdate:modelValue": l[0] || (l[0] = (je) => a.value = je),
|
|
801
804
|
options: [
|
|
@@ -819,7 +822,7 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
819
822
|
a.value === "ruleForm" ? (n(), y(V, {
|
|
820
823
|
key: 0,
|
|
821
824
|
type: "primary",
|
|
822
|
-
onClick: l[15] || (l[15] = (t) => E(
|
|
825
|
+
onClick: l[15] || (l[15] = (t) => E(D)(B.value))
|
|
823
826
|
}, {
|
|
824
827
|
default: o(() => [
|
|
825
828
|
S(" 确认 ")
|
|
@@ -890,13 +893,13 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
890
893
|
"onUpdate:modelValue": l[3] || (l[3] = (t) => d.value.factorSelectedList = t)
|
|
891
894
|
}, {
|
|
892
895
|
default: o(() => [
|
|
893
|
-
d.value.factorType === 1 ? (n(!0), T(H, { key: 0 }, Y(e.moreFactorOptions, (t, A) => (n(), y(
|
|
896
|
+
d.value.factorType === 1 ? (n(!0), T(H, { key: 0 }, Y(e.moreFactorOptions, (t, A) => (n(), y(O, {
|
|
894
897
|
key: A,
|
|
895
898
|
label: t.factorTypeName,
|
|
896
899
|
value: t.factorTypeName,
|
|
897
900
|
style: { width: "200px" }
|
|
898
901
|
}, null, 8, ["label", "value"]))), 128)) : w("", !0),
|
|
899
|
-
d.value.factorType === -1 ? (n(!0), T(H, { key: 1 }, Y(e.emptyFactorOptions, (t, A) => (n(), y(
|
|
902
|
+
d.value.factorType === -1 ? (n(!0), T(H, { key: 1 }, Y(e.emptyFactorOptions, (t, A) => (n(), y(O, {
|
|
900
903
|
key: A,
|
|
901
904
|
label: t.factorTypeName,
|
|
902
905
|
value: t.factorTypeName,
|
|
@@ -1091,7 +1094,7 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
1091
1094
|
]),
|
|
1092
1095
|
_: 2
|
|
1093
1096
|
}, 1032, ["disabled", "onClick"])) : w("", !0),
|
|
1094
|
-
s(
|
|
1097
|
+
s($, {
|
|
1095
1098
|
title: "确定删除?",
|
|
1096
1099
|
onConfirm: (A) => g("delete", t.row)
|
|
1097
1100
|
}, {
|
|
@@ -1227,13 +1230,13 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
1227
1230
|
"onUpdate:modelValue": l[12] || (l[12] = (t) => v.value.factorSelectedList = t)
|
|
1228
1231
|
}, {
|
|
1229
1232
|
default: o(() => [
|
|
1230
|
-
v.value.factorType === 1 ? (n(!0), T(H, { key: 0 }, Y(e.moreFactorOptions, (t, A) => (n(), y(
|
|
1233
|
+
v.value.factorType === 1 ? (n(!0), T(H, { key: 0 }, Y(e.moreFactorOptions, (t, A) => (n(), y(O, {
|
|
1231
1234
|
key: A,
|
|
1232
1235
|
label: t.factorTypeName,
|
|
1233
1236
|
value: t.factorTypeName,
|
|
1234
1237
|
style: { width: "200px" }
|
|
1235
1238
|
}, null, 8, ["label", "value"]))), 128)) : w("", !0),
|
|
1236
|
-
v.value.factorType === -1 ? (n(!0), T(H, { key: 1 }, Y(e.emptyFactorOptions, (t, A) => (n(), y(
|
|
1239
|
+
v.value.factorType === -1 ? (n(!0), T(H, { key: 1 }, Y(e.emptyFactorOptions, (t, A) => (n(), y(O, {
|
|
1237
1240
|
key: A,
|
|
1238
1241
|
label: t.factorTypeName,
|
|
1239
1242
|
value: t.factorTypeName,
|
|
@@ -1274,7 +1277,7 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
1274
1277
|
]);
|
|
1275
1278
|
};
|
|
1276
1279
|
}
|
|
1277
|
-
}, Cl = /* @__PURE__ */
|
|
1280
|
+
}, Cl = /* @__PURE__ */ Ft(hl, [["__scopeId", "data-v-5dbfde93"]]), Jl = {
|
|
1278
1281
|
install(e) {
|
|
1279
1282
|
e.component("st-factorWarning", Cl);
|
|
1280
1283
|
}
|