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