st-comp 0.0.147 → 0.0.149
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 +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +26 -22
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +112 -103
- package/es/Kline.cjs +1 -0
- package/es/Kline.js +1901 -0
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +675 -1422
- package/es/KlineNew.cjs +1 -3
- package/es/KlineNew.js +314 -2736
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +102 -96
- package/es/Table.cjs +1 -1
- package/es/Table.js +66 -60
- package/es/User.cjs +1 -1
- package/es/User.js +102 -95
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +41 -32
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +2801 -1
- package/es/{_initCloneObject-a8dcd058.js → _initCloneObject-14b53c6f.js} +26 -26
- package/es/_initCloneObject-441db749.cjs +1 -0
- package/es/{base-674a354a.js → base-437d17f3.js} +64 -63
- package/es/{base-00ce90ec.cjs → base-ec05f348.cjs} +3 -3
- package/es/castArray-4251bbe4.js +10 -0
- package/es/castArray-a45823fe.cjs +1 -0
- package/es/config-provider-55482a43.js +47 -0
- package/es/config-provider-7cdfca4d.cjs +1 -0
- package/es/debounce-ac30be50.js +83 -0
- package/es/debounce-b2ff12bd.cjs +1 -0
- package/es/{dropdown-ce30ada6.js → dropdown-634b5e27.js} +31 -30
- package/es/dropdown-d7c59a21.cjs +1 -0
- package/es/el-button-196807af.cjs +1 -0
- package/es/el-button-e1665717.js +235 -0
- package/es/el-checkbox-group-492b95cc.cjs +1 -0
- package/es/{el-checkbox-group-0554b352.js → el-checkbox-group-e8fece80.js} +10 -10
- package/es/{el-empty-87154b6d.cjs → el-empty-19ea04f4.cjs} +1 -1
- package/es/{el-empty-39b3aed7.js → el-empty-bacc6613.js} +5 -5
- package/es/el-form-item-5bdffd07.cjs +12 -0
- package/es/{el-form-item-fc6f80ab.js → el-form-item-af1855f0.js} +79 -78
- package/es/el-input-23e2bac3.cjs +1 -0
- package/es/{el-input-d249ac86.js → el-input-4961b99f.js} +84 -82
- package/es/el-input-number-40a81eb5.cjs +1 -0
- package/es/{el-input-number-2066fbb7.js → el-input-number-610fc8ba.js} +36 -35
- package/es/el-menu-item-78b858f2.cjs +1 -0
- package/es/el-menu-item-7d04c11a.js +771 -0
- package/es/{el-message-9859835d.js → el-message-c3b3ac96.js} +81 -79
- package/es/el-message-d4df8136.cjs +1 -0
- package/es/el-overlay-12dd9b35.js +519 -0
- package/es/el-overlay-bc0790a2.cjs +1 -0
- package/es/{el-popover-b7b43c1f.js → el-popover-0aa071f2.js} +18 -18
- package/es/el-popover-8a77e015.cjs +1 -0
- package/es/el-popper-50100766.js +2262 -0
- package/es/el-popper-746070ba.cjs +1 -0
- package/es/el-scrollbar-562d0595.js +201 -0
- package/es/el-scrollbar-d1c3e7f7.cjs +1 -0
- package/es/{el-select-bcbb7e55.js → el-select-9381b156.js} +333 -329
- package/es/el-select-b162dffc.cjs +1 -0
- package/es/{el-table-column-c1e1a206.js → el-table-column-55bffba5.js} +350 -346
- package/es/el-table-column-6d761fce.cjs +14 -0
- package/es/el-tag-985d9aff.js +279 -0
- package/es/el-tag-c51a6490.cjs +1 -0
- package/es/index-09e01b1d.js +81 -0
- package/es/index-0cb48e01.js +306 -0
- package/es/{index-45de4a12.js → index-39ec9741.js} +7 -7
- package/es/index-3bf8d597.cjs +1 -0
- package/es/index-657047bb.js +513 -0
- package/es/index-8a0b1c53.cjs +3 -0
- package/es/index-a387515d.cjs +1 -0
- package/es/index-a902a0d9.js +59 -0
- package/es/index-deb8de52.cjs +1 -0
- 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-8fc301fd.cjs +1 -0
- package/es/raf-b128c7b7.js +6 -0
- package/es/{scroll-cb696ed2.js → scroll-387fcfdb.js} +1 -1
- package/es/{scroll-cca17da0.cjs → scroll-41224831.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/typescript-7ae59c4c.js +4 -0
- package/es/typescript-b63f8e83.cjs +1 -0
- package/es/use-form-common-props-1b84d8f4.cjs +2 -0
- package/es/use-form-common-props-f377e500.js +587 -0
- package/es/vnode-7dfd4ed5.js +14 -0
- package/es/vnode-7fbc61e1.cjs +1 -0
- package/es/{zh-cn-37af467d.cjs → zh-cn-ab9a583d.cjs} +1 -1
- package/es/{zh-cn-ef7d7220.js → zh-cn-eb9c2820.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +206 -206
- package/lib/{index-24f8572c.js → index-d2de454d.js} +33249 -31372
- package/lib/{python-2143eee4.js → python-22975586.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/KlineBasic/utils.js +1 -1
- package/packages/index.ts +2 -0
- package/src/pages/Kline/index.vue +12 -0
- package/src/router/routes.ts +5 -0
- package/es/_initCloneObject-7493ecd5.cjs +0 -1
- package/es/config-provider-419ffbf2.js +0 -120
- package/es/config-provider-68414290.cjs +0 -3
- package/es/dropdown-127a8c0d.cjs +0 -1
- package/es/el-button-7b9f5933.js +0 -745
- package/es/el-button-c00975e1.cjs +0 -1
- package/es/el-checkbox-group-7a313d34.cjs +0 -1
- package/es/el-form-item-7867f64d.cjs +0 -12
- package/es/el-input-2ff1628c.cjs +0 -1
- package/es/el-input-number-d6801a5c.cjs +0 -1
- package/es/el-message-ffcf690c.cjs +0 -1
- package/es/el-overlay-91784be2.cjs +0 -1
- package/es/el-overlay-f0757cc4.js +0 -525
- package/es/el-popover-4db657e2.cjs +0 -1
- package/es/el-scrollbar-35bac6b3.js +0 -2452
- package/es/el-scrollbar-ec09bbd3.cjs +0 -1
- package/es/el-select-0785c35a.cjs +0 -1
- package/es/el-table-column-2478adf8.cjs +0 -14
- package/es/el-tag-13ee17b3.cjs +0 -1
- package/es/el-tag-73372c6c.js +0 -359
- package/es/index-07b61d12.cjs +0 -1
- package/es/index-65b719a4.cjs +0 -1
- package/es/index-8b5fbc11.js +0 -66
- package/es/index-8c85d7c5.js +0 -858
- package/es/index-a49f4743.cjs +0 -2
package/es/FactorWarning.js
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { z as Qe, E as xe } from "./zh-cn-
|
|
3
|
-
import { a as et, u as tt, b as lt, c as ot, E as at } from "./el-overlay-
|
|
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 ve, f as $e, _ as Ne, g as ce, w as Ye, h as ge, j as Je, k as we, l as Ze, m as Te } from "./base-437d17f3.js";
|
|
2
|
+
import { z as Qe, E as xe } from "./zh-cn-eb9c2820.js";
|
|
3
|
+
import { a as et, u as tt, b as lt, c as ot, E as at } from "./el-overlay-12dd9b35.js";
|
|
4
|
+
import "./el-tag-985d9aff.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 { E as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { E as
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
|
|
6
|
+
import { u as nt, E as st } from "./el-popper-50100766.js";
|
|
7
|
+
import { E as rt, a as it, b as ut, c as ct } from "./el-table-column-55bffba5.js";
|
|
8
|
+
import { u as dt, a as ft } from "./el-scrollbar-562d0595.js";
|
|
9
|
+
import { E as mt } from "./el-popover-0aa071f2.js";
|
|
10
|
+
import { E as Oe } from "./el-button-e1665717.js";
|
|
11
|
+
import { E as pt, a as vt } from "./el-form-item-af1855f0.js";
|
|
12
|
+
import { E as Fe } from "./el-input-4961b99f.js";
|
|
13
|
+
import { E as gt } from "./el-checkbox-group-e8fece80.js";
|
|
14
|
+
import { E as yt } from "./el-input-number-610fc8ba.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 ye, 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 { c as St, u as _t, a as Bt, b as Vt, d as It, e as Lt, E as De, T as Mt, l as Be, f as Ve, i as Ie } from "./use-form-common-props-f377e500.js";
|
|
17
|
+
import { G as $t } from "./index-8542fe24.js";
|
|
18
|
+
import { _ as Nt } from "./_plugin-vue_export-helper-dad06003.js";
|
|
19
|
+
import { U as Ue, C as qe, o as Le, E as Ot, a as Ft } from "./index-0cb48e01.js";
|
|
20
|
+
import { u as zt } from "./index-09e01b1d.js";
|
|
21
|
+
import { E as At } from "./index-39ec9741.js";
|
|
22
|
+
import "./config-provider-55482a43.js";
|
|
23
|
+
import "./vnode-7dfd4ed5.js";
|
|
24
|
+
import "./scroll-387fcfdb.js";
|
|
25
|
+
import "./_initCloneObject-14b53c6f.js";
|
|
26
|
+
import "./debounce-ac30be50.js";
|
|
27
|
+
import "./raf-b128c7b7.js";
|
|
28
|
+
import "./index-657047bb.js";
|
|
29
|
+
import "./castArray-4251bbe4.js";
|
|
30
|
+
import "./typescript-7ae59c4c.js";
|
|
31
|
+
import "./index-a902a0d9.js";
|
|
32
|
+
const Pt = (e) => ["", ...St].includes(e), Rt = Ge({
|
|
24
33
|
direction: {
|
|
25
34
|
type: Ce(String),
|
|
26
35
|
default: "horizontal"
|
|
@@ -43,19 +52,19 @@ const Pt = (e) => ["", ...St].includes(e), Dt = Xe({
|
|
|
43
52
|
id: String,
|
|
44
53
|
name: String,
|
|
45
54
|
...nt(["ariaLabel"])
|
|
46
|
-
}),
|
|
47
|
-
[
|
|
48
|
-
[
|
|
55
|
+
}), Dt = {
|
|
56
|
+
[Ue]: (e) => ae(e) || ke(e) || Ee(e),
|
|
57
|
+
[qe]: (e) => ae(e) || ke(e) || Ee(e)
|
|
49
58
|
}, Ut = he({
|
|
50
59
|
name: "ElSegmented"
|
|
51
60
|
}), qt = /* @__PURE__ */ he({
|
|
52
61
|
...Ut,
|
|
53
|
-
props:
|
|
54
|
-
emits:
|
|
62
|
+
props: Rt,
|
|
63
|
+
emits: Dt,
|
|
55
64
|
setup(e, { emit: m }) {
|
|
56
65
|
const a = e, c = We("segmented"), g = ve(), p = Bt(), C = Vt(), { formItem: V } = It(), { inputId: u, isLabeledByFormItem: i } = Lt(a, {
|
|
57
66
|
formItemContext: V
|
|
58
|
-
}), A =
|
|
67
|
+
}), A = O(null), v = dt(), d = ze({
|
|
59
68
|
isInit: !1,
|
|
60
69
|
width: 0,
|
|
61
70
|
height: 0,
|
|
@@ -64,11 +73,11 @@ const Pt = (e) => ["", ...St].includes(e), Dt = Xe({
|
|
|
64
73
|
focusVisible: !1
|
|
65
74
|
}), H = (s) => {
|
|
66
75
|
const L = K(s);
|
|
67
|
-
m(
|
|
68
|
-
}, K = (s) => ce(s) ? s.value : s,
|
|
76
|
+
m(Ue, L), m(qe, L);
|
|
77
|
+
}, 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) => [
|
|
69
78
|
c.e("item"),
|
|
70
79
|
c.is("selected", U(s)),
|
|
71
|
-
c.is("disabled",
|
|
80
|
+
c.is("disabled", D(s))
|
|
72
81
|
], w = () => {
|
|
73
82
|
if (!A.value)
|
|
74
83
|
return;
|
|
@@ -94,10 +103,10 @@ const Pt = (e) => ["", ...St].includes(e), Dt = Xe({
|
|
|
94
103
|
display: d.isInit ? "block" : "none"
|
|
95
104
|
})), y = P(() => [
|
|
96
105
|
c.e("item-selected"),
|
|
97
|
-
c.is("disabled",
|
|
106
|
+
c.is("disabled", D(j(a.modelValue))),
|
|
98
107
|
c.is("focus-visible", d.focusVisible)
|
|
99
108
|
]), I = P(() => a.name || g.value);
|
|
100
|
-
return
|
|
109
|
+
return ft(A, w), ne(v, w), ne(() => a.modelValue, () => {
|
|
101
110
|
var s;
|
|
102
111
|
w(), a.validateEvent && ((s = V == null ? void 0 : V.validate) == null || s.call(V, "change").catch((L) => $e(L)));
|
|
103
112
|
}, {
|
|
@@ -119,7 +128,7 @@ const Pt = (e) => ["", ...St].includes(e), Dt = Xe({
|
|
|
119
128
|
style: ye(_($)),
|
|
120
129
|
class: k(_(y))
|
|
121
130
|
}, null, 6),
|
|
122
|
-
(n(!0), T(
|
|
131
|
+
(n(!0), T(X, null, Y(s.options, (b, W) => (n(), T("label", {
|
|
123
132
|
key: W,
|
|
124
133
|
class: k(Z(b))
|
|
125
134
|
}, [
|
|
@@ -127,7 +136,7 @@ const Pt = (e) => ["", ...St].includes(e), Dt = Xe({
|
|
|
127
136
|
class: k(_(c).e("item-input")),
|
|
128
137
|
type: "radio",
|
|
129
138
|
name: _(I),
|
|
130
|
-
disabled:
|
|
139
|
+
disabled: D(b),
|
|
131
140
|
checked: U(b),
|
|
132
141
|
onChange: (ee) => H(b)
|
|
133
142
|
}, null, 42, ["name", "disabled", "checked", "onChange"]),
|
|
@@ -135,7 +144,7 @@ const Pt = (e) => ["", ...St].includes(e), Dt = Xe({
|
|
|
135
144
|
class: k(_(c).e("item-label"))
|
|
136
145
|
}, [
|
|
137
146
|
Ae(s.$slots, "default", { item: b }, () => [
|
|
138
|
-
B(M(
|
|
147
|
+
B(M(R(b)), 1)
|
|
139
148
|
])
|
|
140
149
|
], 2)
|
|
141
150
|
], 2))), 128))
|
|
@@ -143,13 +152,13 @@ const Pt = (e) => ["", ...St].includes(e), Dt = Xe({
|
|
|
143
152
|
], 10, ["id", "aria-label", "aria-labelledby"])) : S("v-if", !0);
|
|
144
153
|
}
|
|
145
154
|
});
|
|
146
|
-
var Ht = /* @__PURE__ */
|
|
155
|
+
var Ht = /* @__PURE__ */ Ne(qt, [["__file", "segmented.vue"]]);
|
|
147
156
|
const Kt = Ye(Ht), be = "_trap-focus-children", J = [], Me = (e) => {
|
|
148
157
|
var m;
|
|
149
158
|
if (J.length === 0)
|
|
150
159
|
return;
|
|
151
160
|
const a = J[J.length - 1][be];
|
|
152
|
-
if (a.length > 0 && e.code ===
|
|
161
|
+
if (a.length > 0 && e.code === Ot.tab) {
|
|
153
162
|
if (a.length === 1) {
|
|
154
163
|
e.preventDefault(), document.activeElement !== a[0] && a[0].focus();
|
|
155
164
|
return;
|
|
@@ -162,28 +171,28 @@ const Kt = Ye(Ht), be = "_trap-focus-children", J = [], Me = (e) => {
|
|
|
162
171
|
}
|
|
163
172
|
}, jt = {
|
|
164
173
|
beforeMount(e) {
|
|
165
|
-
e[be] =
|
|
174
|
+
e[be] = Le(e), J.push(e), J.length <= 1 && document.addEventListener("keydown", Me);
|
|
166
175
|
},
|
|
167
176
|
updated(e) {
|
|
168
177
|
oe(() => {
|
|
169
|
-
e[be] =
|
|
178
|
+
e[be] = Le(e);
|
|
170
179
|
});
|
|
171
180
|
},
|
|
172
181
|
unmounted() {
|
|
173
182
|
J.shift(), J.length === 0 && document.removeEventListener("keydown", Me);
|
|
174
183
|
}
|
|
175
|
-
},
|
|
184
|
+
}, Xt = he({
|
|
176
185
|
name: "ElMessageBox",
|
|
177
186
|
directives: {
|
|
178
187
|
TrapFocus: jt
|
|
179
188
|
},
|
|
180
189
|
components: {
|
|
181
|
-
ElButton:
|
|
182
|
-
ElFocusTrap:
|
|
183
|
-
ElInput:
|
|
190
|
+
ElButton: Oe,
|
|
191
|
+
ElFocusTrap: Ft,
|
|
192
|
+
ElInput: Fe,
|
|
184
193
|
ElOverlay: et,
|
|
185
|
-
ElIcon:
|
|
186
|
-
...
|
|
194
|
+
ElIcon: De,
|
|
195
|
+
...Mt
|
|
187
196
|
},
|
|
188
197
|
inheritAttrs: !1,
|
|
189
198
|
props: {
|
|
@@ -238,7 +247,7 @@ const Kt = Ye(Ht), be = "_trap-focus-children", J = [], Me = (e) => {
|
|
|
238
247
|
zIndex: c,
|
|
239
248
|
ns: g,
|
|
240
249
|
size: p
|
|
241
|
-
} = zt("message-box", P(() => e.buttonSize)), { t: C } = a, { nextZIndex: V } = c, u =
|
|
250
|
+
} = zt("message-box", P(() => e.buttonSize)), { t: C } = a, { nextZIndex: V } = c, u = O(!1), i = ze({
|
|
242
251
|
autofocus: !0,
|
|
243
252
|
beforeClose: null,
|
|
244
253
|
callback: null,
|
|
@@ -268,30 +277,30 @@ const Kt = Ye(Ht), be = "_trap-focus-children", J = [], Me = (e) => {
|
|
|
268
277
|
action: "",
|
|
269
278
|
confirmButtonLoading: !1,
|
|
270
279
|
cancelButtonLoading: !1,
|
|
271
|
-
confirmButtonLoadingIcon: Se(
|
|
272
|
-
cancelButtonLoadingIcon: Se(
|
|
280
|
+
confirmButtonLoadingIcon: Se(Be),
|
|
281
|
+
cancelButtonLoadingIcon: Se(Be),
|
|
273
282
|
confirmButtonDisabled: !1,
|
|
274
283
|
editorErrorMessage: "",
|
|
275
284
|
validateError: !1,
|
|
276
285
|
zIndex: V()
|
|
277
286
|
}), A = P(() => {
|
|
278
287
|
const h = i.type;
|
|
279
|
-
return { [g.bm("icon", h)]: h &&
|
|
288
|
+
return { [g.bm("icon", h)]: h && Ve[h] };
|
|
280
289
|
}), v = ve(), d = ve(), H = P(() => {
|
|
281
290
|
const h = i.type;
|
|
282
|
-
return i.icon || h &&
|
|
283
|
-
}), K = P(() => !!i.message),
|
|
291
|
+
return i.icon || h && Ve[h] || "";
|
|
292
|
+
}), K = P(() => !!i.message), R = O(), D = O(), U = O(), j = O(), Z = O(), w = P(() => i.confirmButtonClass);
|
|
284
293
|
ne(() => i.inputValue, async (h) => {
|
|
285
294
|
await oe(), e.boxType === "prompt" && h !== null && W();
|
|
286
295
|
}, { immediate: !0 }), ne(() => u.value, (h) => {
|
|
287
|
-
var
|
|
288
|
-
h && (e.boxType !== "prompt" && (i.autofocus ? U.value = (
|
|
296
|
+
var F, N;
|
|
297
|
+
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(() => {
|
|
289
298
|
var le;
|
|
290
|
-
j.value && j.value.$el && (i.autofocus ? U.value = (le = ee()) != null ? le :
|
|
299
|
+
j.value && j.value.$el && (i.autofocus ? U.value = (le = ee()) != null ? le : R.value : U.value = R.value);
|
|
291
300
|
}) : (i.editorErrorMessage = "", i.validateError = !1));
|
|
292
301
|
});
|
|
293
302
|
const l = P(() => e.draggable), $ = P(() => e.overflow);
|
|
294
|
-
tt(
|
|
303
|
+
tt(R, D, l, $), bt(async () => {
|
|
295
304
|
await oe(), e.closeOnHashChange && window.addEventListener("hashchange", y);
|
|
296
305
|
}), ht(() => {
|
|
297
306
|
e.closeOnHashChange && window.removeEventListener("hashchange", y);
|
|
@@ -307,27 +316,27 @@ const Kt = Ye(Ht), be = "_trap-focus-children", J = [], Me = (e) => {
|
|
|
307
316
|
if (i.inputType !== "textarea")
|
|
308
317
|
return h.preventDefault(), b("confirm");
|
|
309
318
|
}, b = (h) => {
|
|
310
|
-
var
|
|
311
|
-
e.boxType === "prompt" && h === "confirm" && !W() || (i.action = h, i.beforeClose ? (
|
|
319
|
+
var F;
|
|
320
|
+
e.boxType === "prompt" && h === "confirm" && !W() || (i.action = h, i.beforeClose ? (F = i.beforeClose) == null || F.call(i, h, i, y) : y());
|
|
312
321
|
}, W = () => {
|
|
313
322
|
if (e.boxType === "prompt") {
|
|
314
323
|
const h = i.inputPattern;
|
|
315
324
|
if (h && !h.test(i.inputValue || ""))
|
|
316
325
|
return i.editorErrorMessage = i.inputErrorMessage || C("el.messagebox.error"), i.validateError = !0, !1;
|
|
317
|
-
const
|
|
318
|
-
if (ge(
|
|
319
|
-
const
|
|
320
|
-
if (
|
|
326
|
+
const F = i.inputValidator;
|
|
327
|
+
if (ge(F)) {
|
|
328
|
+
const N = F(i.inputValue);
|
|
329
|
+
if (N === !1)
|
|
321
330
|
return i.editorErrorMessage = i.inputErrorMessage || C("el.messagebox.error"), i.validateError = !0, !1;
|
|
322
|
-
if (ae(
|
|
323
|
-
return i.editorErrorMessage =
|
|
331
|
+
if (ae(N))
|
|
332
|
+
return i.editorErrorMessage = N, i.validateError = !0, !1;
|
|
324
333
|
}
|
|
325
334
|
}
|
|
326
335
|
return i.editorErrorMessage = "", i.validateError = !1, !0;
|
|
327
336
|
}, ee = () => {
|
|
328
|
-
var h,
|
|
329
|
-
const
|
|
330
|
-
return (
|
|
337
|
+
var h, F;
|
|
338
|
+
const N = (h = j.value) == null ? void 0 : h.$refs;
|
|
339
|
+
return (F = N == null ? void 0 : N.input) != null ? F : N == null ? void 0 : N.textarea;
|
|
331
340
|
}, te = () => {
|
|
332
341
|
b("close");
|
|
333
342
|
}, q = () => {
|
|
@@ -345,9 +354,9 @@ const Kt = Ye(Ht), be = "_trap-focus-children", J = [], Me = (e) => {
|
|
|
345
354
|
btnSize: p,
|
|
346
355
|
iconComponent: H,
|
|
347
356
|
confirmButtonClasses: w,
|
|
348
|
-
rootRef:
|
|
357
|
+
rootRef: R,
|
|
349
358
|
focusStartRef: U,
|
|
350
|
-
headerRef:
|
|
359
|
+
headerRef: D,
|
|
351
360
|
inputRef: j,
|
|
352
361
|
confirmRef: Z,
|
|
353
362
|
doClose: y,
|
|
@@ -360,7 +369,7 @@ const Kt = Ye(Ht), be = "_trap-focus-children", J = [], Me = (e) => {
|
|
|
360
369
|
};
|
|
361
370
|
}
|
|
362
371
|
});
|
|
363
|
-
function
|
|
372
|
+
function Gt(e, m, a, c, g, p) {
|
|
364
373
|
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");
|
|
365
374
|
return n(), E(kt, {
|
|
366
375
|
name: "fade-in-linear",
|
|
@@ -555,7 +564,7 @@ function Xt(e, m, a, c, g, p) {
|
|
|
555
564
|
_: 3
|
|
556
565
|
}, 8, ["onAfterLeave"]);
|
|
557
566
|
}
|
|
558
|
-
var Wt = /* @__PURE__ */
|
|
567
|
+
var Wt = /* @__PURE__ */ Ne(Xt, [["render", Gt], ["__file", "index.vue"]]);
|
|
559
568
|
const se = /* @__PURE__ */ new Map(), Yt = (e) => {
|
|
560
569
|
let m = document.body;
|
|
561
570
|
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;
|
|
@@ -563,11 +572,11 @@ const se = /* @__PURE__ */ new Map(), Yt = (e) => {
|
|
|
563
572
|
const c = r(Wt, e, ge(e.message) || Pe(e.message) ? {
|
|
564
573
|
default: ge(e.message) ? e.message : () => e.message
|
|
565
574
|
} : null);
|
|
566
|
-
return c.appContext = a,
|
|
575
|
+
return c.appContext = a, Re(c, m), Yt(e).appendChild(m.firstElementChild), c.component;
|
|
567
576
|
}, Zt = () => document.createElement("div"), Qt = (e, m) => {
|
|
568
577
|
const a = Zt();
|
|
569
578
|
e.onVanish = () => {
|
|
570
|
-
|
|
579
|
+
Re(null, a), se.delete(g);
|
|
571
580
|
}, e.onAction = (p) => {
|
|
572
581
|
const C = se.get(g);
|
|
573
582
|
let V;
|
|
@@ -621,11 +630,11 @@ x.close = () => {
|
|
|
621
630
|
}), se.clear();
|
|
622
631
|
};
|
|
623
632
|
x._context = null;
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
|
|
633
|
+
const G = x;
|
|
634
|
+
G.install = (e) => {
|
|
635
|
+
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;
|
|
627
636
|
};
|
|
628
|
-
const ll =
|
|
637
|
+
const ll = G;
|
|
629
638
|
const ol = {
|
|
630
639
|
// 表单字段
|
|
631
640
|
ruleFormPrice: !0,
|
|
@@ -676,23 +685,23 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
676
685
|
}),
|
|
677
686
|
emits: /* @__PURE__ */ _e(["add", "delete", "enabled", "closed", "shortcutAdd", "shortcutDelete"], ["update:visible"]),
|
|
678
687
|
setup(e, { emit: m }) {
|
|
679
|
-
const a =
|
|
688
|
+
const a = O("ruleForm"), c = Et(e, "visible"), g = m, p = e, C = Object.assign(ol, p.showConfig), V = O(null), u = O({
|
|
680
689
|
factorType: 1,
|
|
681
690
|
factorSelectedList: [],
|
|
682
691
|
totalCount: 1,
|
|
683
692
|
minPrice: null,
|
|
684
693
|
maxPrice: null,
|
|
685
694
|
mark: null
|
|
686
|
-
}), i =
|
|
695
|
+
}), i = O({
|
|
687
696
|
factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
|
|
688
697
|
factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
|
|
689
698
|
totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }]
|
|
690
|
-
}), A =
|
|
699
|
+
}), A = O(null), v = O({
|
|
691
700
|
shortcutName: null,
|
|
692
701
|
factorType: 1,
|
|
693
702
|
factorSelectedList: [],
|
|
694
703
|
totalCount: 1
|
|
695
|
-
}), d =
|
|
704
|
+
}), d = O({
|
|
696
705
|
factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
|
|
697
706
|
factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
|
|
698
707
|
totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }],
|
|
@@ -725,8 +734,8 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
725
734
|
const y = u.value.factorType;
|
|
726
735
|
H(), u.value.factorType = y;
|
|
727
736
|
};
|
|
728
|
-
|
|
729
|
-
},
|
|
737
|
+
D(V.value, l, $);
|
|
738
|
+
}, R = async (w) => {
|
|
730
739
|
const l = JSON.parse(w.data);
|
|
731
740
|
Object.assign(u.value, {
|
|
732
741
|
factorType: l.factorType,
|
|
@@ -749,8 +758,8 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
749
758
|
};
|
|
750
759
|
})
|
|
751
760
|
}, y = () => H();
|
|
752
|
-
|
|
753
|
-
},
|
|
761
|
+
D(V.value, $, y);
|
|
762
|
+
}, D = $t(async (w, l, $) => {
|
|
754
763
|
w && await w.validate((y) => {
|
|
755
764
|
if (!y)
|
|
756
765
|
return !1;
|
|
@@ -790,7 +799,7 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
790
799
|
immediate: !0
|
|
791
800
|
}
|
|
792
801
|
), (w, l) => {
|
|
793
|
-
const $ = Kt, y =
|
|
802
|
+
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;
|
|
794
803
|
return n(), T("div", al, [
|
|
795
804
|
r(je, { locale: _(Qe) }, {
|
|
796
805
|
default: o(() => [
|
|
@@ -812,7 +821,7 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
812
821
|
], 2),
|
|
813
822
|
r($, {
|
|
814
823
|
modelValue: a.value,
|
|
815
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
824
|
+
"onUpdate:modelValue": l[0] || (l[0] = (Xe) => a.value = Xe),
|
|
816
825
|
size: "default",
|
|
817
826
|
options: [
|
|
818
827
|
{ label: "添加", value: "ruleForm", disabled: !e.allowOperation },
|
|
@@ -837,7 +846,7 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
837
846
|
key: 0,
|
|
838
847
|
size: "default",
|
|
839
848
|
type: "primary",
|
|
840
|
-
onClick: l[15] || (l[15] = (t) => _(
|
|
849
|
+
onClick: l[15] || (l[15] = (t) => _(D)(V.value))
|
|
841
850
|
}, {
|
|
842
851
|
default: o(() => [
|
|
843
852
|
B(" 确认 ")
|
|
@@ -910,7 +919,7 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
910
919
|
"onUpdate:modelValue": l[3] || (l[3] = (t) => u.value.factorSelectedList = t)
|
|
911
920
|
}, {
|
|
912
921
|
default: o(() => [
|
|
913
|
-
u.value.factorType === 1 ? (n(!0), T(
|
|
922
|
+
u.value.factorType === 1 ? (n(!0), T(X, { key: 0 }, Y(e.moreFactorOptions, (t, z) => (n(), T("div", {
|
|
914
923
|
class: "factor-checkbox",
|
|
915
924
|
key: z
|
|
916
925
|
}, [
|
|
@@ -928,7 +937,7 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
928
937
|
onClick: (fe) => K(t.factorTypeName)
|
|
929
938
|
}, "+3", 8, il)
|
|
930
939
|
]))), 128)) : S("", !0),
|
|
931
|
-
u.value.factorType === -1 ? (n(!0), T(
|
|
940
|
+
u.value.factorType === -1 ? (n(!0), T(X, { key: 1 }, Y(e.emptyFactorOptions, (t, z) => (n(), T("div", {
|
|
932
941
|
class: "factor-checkbox",
|
|
933
942
|
key: z
|
|
934
943
|
}, [
|
|
@@ -966,9 +975,9 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
966
975
|
style: { "margin-right": "20px" }
|
|
967
976
|
}, null, 8, ["modelValue"]),
|
|
968
977
|
e.shortcutData.length ? (n(), T("div", fl, [
|
|
969
|
-
(n(!0), T(
|
|
978
|
+
(n(!0), T(X, null, Y(e.shortcutData, (t) => (n(), E(y, {
|
|
970
979
|
key: t.id,
|
|
971
|
-
onClick: (z) =>
|
|
980
|
+
onClick: (z) => R(t),
|
|
972
981
|
style: { margin: "0 12px 4px 0" }
|
|
973
982
|
}, {
|
|
974
983
|
default: o(() => [
|
|
@@ -1035,7 +1044,7 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
1035
1044
|
]),
|
|
1036
1045
|
_: 1
|
|
1037
1046
|
}, 8, ["model", "rules"])) : S("", !0),
|
|
1038
|
-
a.value === "table" ? (n(), E(
|
|
1047
|
+
a.value === "table" ? (n(), E(F, {
|
|
1039
1048
|
key: 1,
|
|
1040
1049
|
data: e.tableData,
|
|
1041
1050
|
size: "small"
|
|
@@ -1143,7 +1152,7 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
1143
1152
|
]),
|
|
1144
1153
|
_: 1
|
|
1145
1154
|
}, 8, ["data"])) : S("", !0),
|
|
1146
|
-
a.value === "shortcut" ? (n(), T(
|
|
1155
|
+
a.value === "shortcut" ? (n(), T(X, { key: 2 }, [
|
|
1147
1156
|
f("div", hl, [
|
|
1148
1157
|
Cl,
|
|
1149
1158
|
r(le, {
|
|
@@ -1152,9 +1161,9 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
1152
1161
|
placement: "right-start"
|
|
1153
1162
|
}, {
|
|
1154
1163
|
default: o(() => [
|
|
1155
|
-
r(
|
|
1164
|
+
r(N, null, {
|
|
1156
1165
|
default: o(() => [
|
|
1157
|
-
r(_(
|
|
1166
|
+
r(_(Ie))
|
|
1158
1167
|
]),
|
|
1159
1168
|
_: 1
|
|
1160
1169
|
})
|
|
@@ -1163,7 +1172,7 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
1163
1172
|
})
|
|
1164
1173
|
]),
|
|
1165
1174
|
f("div", kl, [
|
|
1166
|
-
e.shortcutData.length ? (n(!0), T(
|
|
1175
|
+
e.shortcutData.length ? (n(!0), T(X, { key: 0 }, Y(e.shortcutData, (t) => (n(), E(He, {
|
|
1167
1176
|
key: t.id,
|
|
1168
1177
|
type: "primary",
|
|
1169
1178
|
size: "default",
|
|
@@ -1185,9 +1194,9 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
1185
1194
|
placement: "right-start"
|
|
1186
1195
|
}, {
|
|
1187
1196
|
default: o(() => [
|
|
1188
|
-
r(
|
|
1197
|
+
r(N, null, {
|
|
1189
1198
|
default: o(() => [
|
|
1190
|
-
r(_(
|
|
1199
|
+
r(_(Ie))
|
|
1191
1200
|
]),
|
|
1192
1201
|
_: 1
|
|
1193
1202
|
})
|
|
@@ -1261,13 +1270,13 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
1261
1270
|
"onUpdate:modelValue": l[12] || (l[12] = (t) => v.value.factorSelectedList = t)
|
|
1262
1271
|
}, {
|
|
1263
1272
|
default: o(() => [
|
|
1264
|
-
v.value.factorType === 1 ? (n(!0), T(
|
|
1273
|
+
v.value.factorType === 1 ? (n(!0), T(X, { key: 0 }, Y(e.moreFactorOptions, (t, z) => (n(), E(s, {
|
|
1265
1274
|
key: z,
|
|
1266
1275
|
label: t.factorTypeName,
|
|
1267
1276
|
value: t.factorTypeName,
|
|
1268
1277
|
style: { width: "200px" }
|
|
1269
1278
|
}, null, 8, ["label", "value"]))), 128)) : S("", !0),
|
|
1270
|
-
v.value.factorType === -1 ? (n(!0), T(
|
|
1279
|
+
v.value.factorType === -1 ? (n(!0), T(X, { key: 1 }, Y(e.emptyFactorOptions, (t, z) => (n(), E(s, {
|
|
1271
1280
|
key: z,
|
|
1272
1281
|
label: t.factorTypeName,
|
|
1273
1282
|
value: t.factorTypeName,
|
|
@@ -1308,11 +1317,11 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
|
|
|
1308
1317
|
]);
|
|
1309
1318
|
};
|
|
1310
1319
|
}
|
|
1311
|
-
}, Bl = /* @__PURE__ */
|
|
1320
|
+
}, Bl = /* @__PURE__ */ Nt(_l, [["__scopeId", "data-v-b57c57a6"]]), no = {
|
|
1312
1321
|
install(e) {
|
|
1313
1322
|
e.component("st-factorWarning", Bl);
|
|
1314
1323
|
}
|
|
1315
1324
|
};
|
|
1316
1325
|
export {
|
|
1317
|
-
|
|
1326
|
+
no as default
|
|
1318
1327
|
};
|