st-comp 0.0.87 → 0.0.89
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/VarietySearch.cjs +2 -2
- package/es/VarietySearch.js +1243 -1148
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +119 -119
- package/lib/{index-b5647f94.js → index-ddb17176.js} +11446 -11351
- package/lib/{python-e2bb6788.js → python-4a81b776.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/components/CommonIndicator/index.vue +190 -59
- package/packages/VarietySearch/config.js +32 -7
- package/packages/VarietySearch/index.vue +83 -28
- package/src/pages/VarietySearch/index.vue +31 -7
package/es/VarietySearch.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { S as Ct, s as Jt, v as
|
|
2
|
-
import { c as
|
|
3
|
-
import { ref as
|
|
1
|
+
import { S as Ct, s as Jt, v as Ln, x as Un, b as ce, d as Te, y as Dn, i as _e, m as Ke, j as pe, u as ye, _ as be, z as xe, t as Zt, A as Xt, B as Bn, l as qt, w as Me, f as ft, k as ae, g as zn, C as Le, o as en, c as Wn, D as Gn, E as Yn } from "./base-e85dae08.js";
|
|
2
|
+
import { c as Je, k as pt, g as Kn, b as tn, d as Qn, e as Hn, f as Jn, i as Zn, E as Xn, a as er, h as tr, j as nr } from "./el-icon-2d22f211.js";
|
|
3
|
+
import { ref as Q, computed as N, defineComponent as Z, watch as ve, provide as mt, reactive as Ze, toRefs as vt, openBlock as I, createElementBlock as q, normalizeClass as L, unref as u, renderSlot as me, inject as Ce, onMounted as Ae, onBeforeUnmount as nn, onUpdated as rn, createVNode as F, Fragment as H, nextTick as Xe, useSlots as rr, withCtx as S, createBlock as U, resolveDynamicComponent as gt, normalizeStyle as Qe, createTextVNode as P, toDisplayString as te, createCommentVNode as z, createElementVNode as C, TransitionGroup as ar, Transition as an, withDirectives as $e, vShow as on, isRef as ln, withModifiers as ge, vModelRadio as sn, withKeys as Ue, shallowReactive as or, isVNode as un, render as Nt, mergeModels as yt, useModel as bt, renderList as se, pushScopeId as ht, popScopeId as _t, createSlots as Mt } from "vue";
|
|
4
4
|
import "./el-tooltip-4ed993c7.js";
|
|
5
|
-
import { k as dn, g as cn, s as lr, b as ir, c as sr, d as
|
|
5
|
+
import { k as dn, g as cn, s as lr, b as ir, c as sr, d as wt, n as He, e as fn, f as ur, S as dr, h as cr, E as fr } from "./el-tag-87576c55.js";
|
|
6
6
|
import { u as pn, a as pr } from "./el-scrollbar-7b9d83d5.js";
|
|
7
7
|
import { E as mn } from "./el-overlay-98d7f866.js";
|
|
8
|
-
import { b as
|
|
8
|
+
import { b as xt, c as vn, E as gn, a as yn } from "./el-select-fd76b16b.js";
|
|
9
9
|
import { E as bn } from "./el-button-aab1dbd4.js";
|
|
10
|
-
import { c as Ot, h as je, j as kt, k as at, l as It, n as hn, o as _n, p as mr, E as qe, a as vr, r as gr, s as yr, t as ot, i as br, T as At, v as hr, w as _r, x as
|
|
10
|
+
import { c as Ot, h as je, j as kt, k as at, l as It, n as hn, o as _n, p as mr, E as qe, a as vr, r as gr, s as yr, t as ot, i as br, T as At, v as hr, w as _r, x as wr } from "./use-form-item-439ac27c.js";
|
|
11
11
|
import { _ as $t } from "./_plugin-vue_export-helper-dad06003.js";
|
|
12
|
-
import { m as
|
|
12
|
+
import { m as xr } from "./typescript-7ae59c4c.js";
|
|
13
13
|
import { a as Or, g as nt, u as kr } from "./use-global-config-857b51f5.js";
|
|
14
|
-
import { U as he, C as Vt, I as
|
|
14
|
+
import { U as he, C as Vt, I as ze, i as Se, E as Ir } from "./focus-trap-067be6d2.js";
|
|
15
15
|
import { m as jt } from "./config-provider-cb918d0f.js";
|
|
16
16
|
import { c as lt } from "./castArray-b93d1330.js";
|
|
17
17
|
import "./_commonjsHelpers-10dfc225.js";
|
|
@@ -25,25 +25,25 @@ function $r(n, e) {
|
|
|
25
25
|
return n;
|
|
26
26
|
}
|
|
27
27
|
function Vr(n, e) {
|
|
28
|
-
return n &&
|
|
28
|
+
return n && Je(e, dn(e), n);
|
|
29
29
|
}
|
|
30
30
|
function Er(n, e) {
|
|
31
|
-
return n &&
|
|
31
|
+
return n && Je(e, pt(e), n);
|
|
32
32
|
}
|
|
33
33
|
function Sr(n, e) {
|
|
34
|
-
return
|
|
34
|
+
return Je(n, cn(n), e);
|
|
35
35
|
}
|
|
36
36
|
var Fr = Object.getOwnPropertySymbols, Tr = Fr ? function(n) {
|
|
37
37
|
for (var e = []; n; )
|
|
38
38
|
ir(e, cn(n)), n = Kn(n);
|
|
39
39
|
return e;
|
|
40
40
|
} : lr;
|
|
41
|
-
const
|
|
41
|
+
const wn = Tr;
|
|
42
42
|
function Cr(n, e) {
|
|
43
|
-
return
|
|
43
|
+
return Je(n, wn(n), e);
|
|
44
44
|
}
|
|
45
45
|
function qr(n) {
|
|
46
|
-
return sr(n, pt,
|
|
46
|
+
return sr(n, pt, wn);
|
|
47
47
|
}
|
|
48
48
|
var Nr = Object.prototype, Mr = Nr.hasOwnProperty;
|
|
49
49
|
function Ar(n) {
|
|
@@ -60,17 +60,17 @@ function Rr(n) {
|
|
|
60
60
|
return e.lastIndex = n.lastIndex, e;
|
|
61
61
|
}
|
|
62
62
|
var Pt = Ct ? Ct.prototype : void 0, Rt = Pt ? Pt.valueOf : void 0;
|
|
63
|
-
function
|
|
63
|
+
function Lr(n) {
|
|
64
64
|
return Rt ? Object(Rt.call(n)) : {};
|
|
65
65
|
}
|
|
66
|
-
var Ur = "[object Boolean]",
|
|
66
|
+
var Ur = "[object Boolean]", Dr = "[object Date]", Br = "[object Map]", zr = "[object Number]", Wr = "[object RegExp]", Gr = "[object Set]", Yr = "[object String]", Kr = "[object Symbol]", Qr = "[object ArrayBuffer]", Hr = "[object DataView]", Jr = "[object Float32Array]", Zr = "[object Float64Array]", Xr = "[object Int8Array]", ea = "[object Int16Array]", ta = "[object Int32Array]", na = "[object Uint8Array]", ra = "[object Uint8ClampedArray]", aa = "[object Uint16Array]", oa = "[object Uint32Array]";
|
|
67
67
|
function la(n, e, t) {
|
|
68
68
|
var r = n.constructor;
|
|
69
69
|
switch (e) {
|
|
70
70
|
case Qr:
|
|
71
71
|
return tn(n);
|
|
72
72
|
case Ur:
|
|
73
|
-
case
|
|
73
|
+
case Dr:
|
|
74
74
|
return new r(+n);
|
|
75
75
|
case Hr:
|
|
76
76
|
return jr(n, t);
|
|
@@ -84,7 +84,7 @@ function la(n, e, t) {
|
|
|
84
84
|
case aa:
|
|
85
85
|
case oa:
|
|
86
86
|
return Qn(n, t);
|
|
87
|
-
case
|
|
87
|
+
case Br:
|
|
88
88
|
return new r();
|
|
89
89
|
case zr:
|
|
90
90
|
case Yr:
|
|
@@ -94,73 +94,73 @@ function la(n, e, t) {
|
|
|
94
94
|
case Gr:
|
|
95
95
|
return new r();
|
|
96
96
|
case Kr:
|
|
97
|
-
return
|
|
97
|
+
return Lr(n);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
var ia = "[object Map]";
|
|
101
101
|
function sa(n) {
|
|
102
|
-
return Jt(n) &&
|
|
102
|
+
return Jt(n) && wt(n) == ia;
|
|
103
103
|
}
|
|
104
|
-
var
|
|
104
|
+
var Lt = He && He.isMap, ua = Lt ? fn(Lt) : sa;
|
|
105
105
|
const da = ua;
|
|
106
106
|
var ca = "[object Set]";
|
|
107
107
|
function fa(n) {
|
|
108
|
-
return Jt(n) &&
|
|
108
|
+
return Jt(n) && wt(n) == ca;
|
|
109
109
|
}
|
|
110
|
-
var Ut =
|
|
110
|
+
var Ut = He && He.isSet, pa = Ut ? fn(Ut) : fa;
|
|
111
111
|
const ma = pa;
|
|
112
|
-
var va = 1, ga = 2, ya = 4,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
function
|
|
116
|
-
var o, i = e & va, p = e & ga,
|
|
112
|
+
var va = 1, ga = 2, ya = 4, xn = "[object Arguments]", ba = "[object Array]", ha = "[object Boolean]", _a = "[object Date]", wa = "[object Error]", On = "[object Function]", xa = "[object GeneratorFunction]", Oa = "[object Map]", ka = "[object Number]", kn = "[object Object]", Ia = "[object RegExp]", $a = "[object Set]", Va = "[object String]", Ea = "[object Symbol]", Sa = "[object WeakMap]", Fa = "[object ArrayBuffer]", Ta = "[object DataView]", Ca = "[object Float32Array]", qa = "[object Float64Array]", Na = "[object Int8Array]", Ma = "[object Int16Array]", Aa = "[object Int32Array]", ja = "[object Uint8Array]", Pa = "[object Uint8ClampedArray]", Ra = "[object Uint16Array]", La = "[object Uint32Array]", B = {};
|
|
113
|
+
B[xn] = B[ba] = B[Fa] = B[Ta] = B[ha] = B[_a] = B[Ca] = B[qa] = B[Na] = B[Ma] = B[Aa] = B[Oa] = B[ka] = B[kn] = B[Ia] = B[$a] = B[Va] = B[Ea] = B[ja] = B[Pa] = B[Ra] = B[La] = !0;
|
|
114
|
+
B[wa] = B[On] = B[Sa] = !1;
|
|
115
|
+
function We(n, e, t, r, a, l) {
|
|
116
|
+
var o, i = e & va, p = e & ga, V = e & ya;
|
|
117
117
|
if (t && (o = a ? t(n, r, a, l) : t(n)), o !== void 0)
|
|
118
118
|
return o;
|
|
119
|
-
if (!
|
|
119
|
+
if (!Ln(n))
|
|
120
120
|
return n;
|
|
121
121
|
var c = Un(n);
|
|
122
122
|
if (c) {
|
|
123
123
|
if (o = Ar(n), !i)
|
|
124
124
|
return Hn(n, o);
|
|
125
125
|
} else {
|
|
126
|
-
var
|
|
126
|
+
var s = wt(n), x = s == On || s == xa;
|
|
127
127
|
if (ur(n))
|
|
128
128
|
return Jn(n, i);
|
|
129
|
-
if (
|
|
130
|
-
if (o = p ||
|
|
129
|
+
if (s == kn || s == xn || x && !a) {
|
|
130
|
+
if (o = p || x ? {} : Zn(n), !i)
|
|
131
131
|
return p ? Cr(n, Er(o, n)) : Sr(n, Vr(o, n));
|
|
132
132
|
} else {
|
|
133
|
-
if (!
|
|
133
|
+
if (!B[s])
|
|
134
134
|
return a ? n : {};
|
|
135
|
-
o = la(n,
|
|
135
|
+
o = la(n, s, i);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
l || (l = new dr());
|
|
139
|
-
var
|
|
140
|
-
if (
|
|
141
|
-
return
|
|
142
|
-
l.set(n, o), ma(n) ? n.forEach(function(
|
|
143
|
-
o.add(
|
|
144
|
-
}) : da(n) && n.forEach(function(
|
|
145
|
-
o.set(
|
|
139
|
+
var _ = l.get(n);
|
|
140
|
+
if (_)
|
|
141
|
+
return _;
|
|
142
|
+
l.set(n, o), ma(n) ? n.forEach(function(h) {
|
|
143
|
+
o.add(We(h, e, t, h, n, l));
|
|
144
|
+
}) : da(n) && n.forEach(function(h, d) {
|
|
145
|
+
o.set(d, We(h, e, t, d, n, l));
|
|
146
146
|
});
|
|
147
|
-
var
|
|
148
|
-
return $r(v || n, function(
|
|
149
|
-
v && (
|
|
147
|
+
var f = V ? p ? qr : cr : p ? pt : dn, v = c ? void 0 : f(n);
|
|
148
|
+
return $r(v || n, function(h, d) {
|
|
149
|
+
v && (d = h, h = n[d]), Or(o, d, We(h, e, t, d, n, l));
|
|
150
150
|
}), o;
|
|
151
151
|
}
|
|
152
152
|
var Ua = 4;
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function Dt(n) {
|
|
154
|
+
return We(n, Ua);
|
|
155
155
|
}
|
|
156
|
-
const
|
|
156
|
+
const Da = ce({
|
|
157
157
|
size: {
|
|
158
158
|
type: String,
|
|
159
159
|
values: Ot
|
|
160
160
|
},
|
|
161
161
|
disabled: Boolean
|
|
162
|
-
}),
|
|
163
|
-
...
|
|
162
|
+
}), Ba = ce({
|
|
163
|
+
...Da,
|
|
164
164
|
model: Object,
|
|
165
165
|
rules: {
|
|
166
166
|
type: Te(Object)
|
|
@@ -200,10 +200,10 @@ const Ba = ce({
|
|
|
200
200
|
type: [Object, Boolean]
|
|
201
201
|
}
|
|
202
202
|
}), za = {
|
|
203
|
-
validate: (n, e, t) => (
|
|
203
|
+
validate: (n, e, t) => (Dn(n) || _e(n)) && Ke(e) && _e(t)
|
|
204
204
|
}, Wa = "ElForm";
|
|
205
205
|
function Ga() {
|
|
206
|
-
const n =
|
|
206
|
+
const n = Q([]), e = N(() => {
|
|
207
207
|
if (!n.value.length)
|
|
208
208
|
return "0";
|
|
209
209
|
const l = Math.max(...n.value);
|
|
@@ -230,113 +230,113 @@ function Ga() {
|
|
|
230
230
|
deregisterLabelWidth: a
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
const
|
|
233
|
+
const De = (n, e) => {
|
|
234
234
|
const t = lt(e);
|
|
235
235
|
return t.length > 0 ? n.filter((r) => r.prop && t.includes(r.prop)) : n;
|
|
236
|
-
},
|
|
237
|
-
name:
|
|
238
|
-
}), Ka = /* @__PURE__ */
|
|
236
|
+
}, Ge = "ElForm", Ya = Z({
|
|
237
|
+
name: Ge
|
|
238
|
+
}), Ka = /* @__PURE__ */ Z({
|
|
239
239
|
...Ya,
|
|
240
|
-
props:
|
|
240
|
+
props: Ba,
|
|
241
241
|
emits: za,
|
|
242
242
|
setup(n, { expose: e, emit: t }) {
|
|
243
|
-
const r = n, a = [], l = je(), o = ye("form"), i =
|
|
244
|
-
const { labelPosition:
|
|
243
|
+
const r = n, a = [], l = je(), o = ye("form"), i = N(() => {
|
|
244
|
+
const { labelPosition: g, inline: y } = r;
|
|
245
245
|
return [
|
|
246
246
|
o.b(),
|
|
247
247
|
o.m(l.value || "default"),
|
|
248
248
|
{
|
|
249
|
-
[o.m(`label-${
|
|
250
|
-
[o.m("inline")]:
|
|
249
|
+
[o.m(`label-${g}`)]: g,
|
|
250
|
+
[o.m("inline")]: y
|
|
251
251
|
}
|
|
252
252
|
];
|
|
253
|
-
}), p = (
|
|
254
|
-
a.push(
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
}, c = (
|
|
253
|
+
}), p = (g) => {
|
|
254
|
+
a.push(g);
|
|
255
|
+
}, V = (g) => {
|
|
256
|
+
g.prop && a.splice(a.indexOf(g), 1);
|
|
257
|
+
}, c = (g = []) => {
|
|
258
258
|
if (!r.model) {
|
|
259
|
-
pe(
|
|
259
|
+
pe(Ge, "model is required for resetFields to work.");
|
|
260
260
|
return;
|
|
261
261
|
}
|
|
262
|
-
|
|
263
|
-
},
|
|
264
|
-
|
|
265
|
-
},
|
|
266
|
-
const
|
|
267
|
-
return
|
|
268
|
-
}),
|
|
262
|
+
De(a, g).forEach((y) => y.resetField());
|
|
263
|
+
}, s = (g = []) => {
|
|
264
|
+
De(a, g).forEach((y) => y.clearValidate());
|
|
265
|
+
}, x = N(() => {
|
|
266
|
+
const g = !!r.model;
|
|
267
|
+
return g || pe(Ge, "model is required for validate to work."), g;
|
|
268
|
+
}), _ = (g) => {
|
|
269
269
|
if (a.length === 0)
|
|
270
270
|
return [];
|
|
271
|
-
const
|
|
272
|
-
return
|
|
273
|
-
},
|
|
274
|
-
if (!
|
|
271
|
+
const y = De(a, g);
|
|
272
|
+
return y.length ? y : (pe(Ge, "please pass correct props!"), []);
|
|
273
|
+
}, f = async (g) => h(void 0, g), v = async (g = []) => {
|
|
274
|
+
if (!x.value)
|
|
275
275
|
return !1;
|
|
276
|
-
const
|
|
277
|
-
if (
|
|
276
|
+
const y = _(g);
|
|
277
|
+
if (y.length === 0)
|
|
278
278
|
return !0;
|
|
279
|
-
let
|
|
280
|
-
for (const
|
|
279
|
+
let w = {};
|
|
280
|
+
for (const k of y)
|
|
281
281
|
try {
|
|
282
|
-
await
|
|
283
|
-
} catch (
|
|
284
|
-
|
|
285
|
-
...
|
|
286
|
-
|
|
282
|
+
await k.validate("");
|
|
283
|
+
} catch ($) {
|
|
284
|
+
w = {
|
|
285
|
+
...w,
|
|
286
|
+
...$
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
|
-
return Object.keys(
|
|
290
|
-
},
|
|
291
|
-
const
|
|
289
|
+
return Object.keys(w).length === 0 ? !0 : Promise.reject(w);
|
|
290
|
+
}, h = async (g = [], y) => {
|
|
291
|
+
const w = !xe(y);
|
|
292
292
|
try {
|
|
293
|
-
const
|
|
294
|
-
return
|
|
295
|
-
} catch (
|
|
296
|
-
if (
|
|
297
|
-
throw
|
|
298
|
-
const
|
|
299
|
-
return r.scrollToError &&
|
|
293
|
+
const k = await v(g);
|
|
294
|
+
return k === !0 && (y == null || y(k)), k;
|
|
295
|
+
} catch (k) {
|
|
296
|
+
if (k instanceof Error)
|
|
297
|
+
throw k;
|
|
298
|
+
const $ = k;
|
|
299
|
+
return r.scrollToError && d(Object.keys($)[0]), y == null || y(!1, $), w && Promise.reject($);
|
|
300
300
|
}
|
|
301
|
-
},
|
|
302
|
-
var
|
|
303
|
-
const
|
|
304
|
-
|
|
301
|
+
}, d = (g) => {
|
|
302
|
+
var y;
|
|
303
|
+
const w = De(a, g)[0];
|
|
304
|
+
w && ((y = w.$el) == null || y.scrollIntoView(r.scrollIntoViewOptions));
|
|
305
305
|
};
|
|
306
|
-
return
|
|
307
|
-
r.validateOnRuleChange &&
|
|
308
|
-
}, { deep: !0 }), mt(kt,
|
|
306
|
+
return ve(() => r.rules, () => {
|
|
307
|
+
r.validateOnRuleChange && f().catch((g) => pe(g));
|
|
308
|
+
}, { deep: !0 }), mt(kt, Ze({
|
|
309
309
|
...vt(r),
|
|
310
310
|
emit: t,
|
|
311
311
|
resetFields: c,
|
|
312
|
-
clearValidate:
|
|
313
|
-
validateField:
|
|
312
|
+
clearValidate: s,
|
|
313
|
+
validateField: h,
|
|
314
314
|
addField: p,
|
|
315
|
-
removeField:
|
|
315
|
+
removeField: V,
|
|
316
316
|
...Ga()
|
|
317
317
|
})), e({
|
|
318
|
-
validate:
|
|
319
|
-
validateField:
|
|
318
|
+
validate: f,
|
|
319
|
+
validateField: h,
|
|
320
320
|
resetFields: c,
|
|
321
|
-
clearValidate:
|
|
322
|
-
scrollToField:
|
|
323
|
-
}), (
|
|
324
|
-
class:
|
|
321
|
+
clearValidate: s,
|
|
322
|
+
scrollToField: d
|
|
323
|
+
}), (g, y) => (I(), q("form", {
|
|
324
|
+
class: L(u(i))
|
|
325
325
|
}, [
|
|
326
|
-
me(
|
|
326
|
+
me(g.$slots, "default")
|
|
327
327
|
], 2));
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
330
|
var Qa = /* @__PURE__ */ be(Ka, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);
|
|
331
|
-
function
|
|
332
|
-
return
|
|
331
|
+
function we() {
|
|
332
|
+
return we = Object.assign ? Object.assign.bind() : function(n) {
|
|
333
333
|
for (var e = 1; e < arguments.length; e++) {
|
|
334
334
|
var t = arguments[e];
|
|
335
335
|
for (var r in t)
|
|
336
336
|
Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
337
337
|
}
|
|
338
338
|
return n;
|
|
339
|
-
},
|
|
339
|
+
}, we.apply(this, arguments);
|
|
340
340
|
}
|
|
341
341
|
function Ha(n, e) {
|
|
342
342
|
n.prototype = Object.create(e.prototype), n.prototype.constructor = n, Ne(n, e);
|
|
@@ -363,13 +363,13 @@ function Ja() {
|
|
|
363
363
|
return !1;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
function
|
|
367
|
-
return Ja() ?
|
|
366
|
+
function Ye(n, e, t) {
|
|
367
|
+
return Ja() ? Ye = Reflect.construct.bind() : Ye = function(a, l, o) {
|
|
368
368
|
var i = [null];
|
|
369
369
|
i.push.apply(i, l);
|
|
370
|
-
var p = Function.bind.apply(a, i),
|
|
371
|
-
return o && Ne(
|
|
372
|
-
},
|
|
370
|
+
var p = Function.bind.apply(a, i), V = new p();
|
|
371
|
+
return o && Ne(V, o.prototype), V;
|
|
372
|
+
}, Ye.apply(null, arguments);
|
|
373
373
|
}
|
|
374
374
|
function Za(n) {
|
|
375
375
|
return Function.toString.call(n).indexOf("[native code]") !== -1;
|
|
@@ -387,7 +387,7 @@ function st(n) {
|
|
|
387
387
|
e.set(r, a);
|
|
388
388
|
}
|
|
389
389
|
function a() {
|
|
390
|
-
return
|
|
390
|
+
return Ye(r, arguments, it(this).constructor);
|
|
391
391
|
}
|
|
392
392
|
return a.prototype = Object.create(r.prototype, {
|
|
393
393
|
constructor: {
|
|
@@ -415,7 +415,7 @@ function ut(n) {
|
|
|
415
415
|
e[r] = e[r] || [], e[r].push(t);
|
|
416
416
|
}), e;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function ue(n) {
|
|
419
419
|
for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
|
|
420
420
|
t[r - 1] = arguments[r];
|
|
421
421
|
var a = 0, l = t.length;
|
|
@@ -450,7 +450,7 @@ function se(n) {
|
|
|
450
450
|
function eo(n) {
|
|
451
451
|
return n === "string" || n === "url" || n === "hex" || n === "email" || n === "date" || n === "pattern";
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function J(n, e) {
|
|
454
454
|
return !!(n == null || e === "array" && Array.isArray(n) && !n.length || eo(e) && typeof n == "string" && !n);
|
|
455
455
|
}
|
|
456
456
|
function to(n, e, t) {
|
|
@@ -462,7 +462,7 @@ function to(n, e, t) {
|
|
|
462
462
|
e(i, o);
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function Bt(n, e, t) {
|
|
466
466
|
var r = 0, a = n.length;
|
|
467
467
|
function l(o) {
|
|
468
468
|
if (o && o.length) {
|
|
@@ -490,29 +490,29 @@ var zt = /* @__PURE__ */ function(n) {
|
|
|
490
490
|
}(/* @__PURE__ */ st(Error));
|
|
491
491
|
function ro(n, e, t, r, a) {
|
|
492
492
|
if (e.first) {
|
|
493
|
-
var l = new Promise(function(
|
|
494
|
-
var
|
|
495
|
-
return r(
|
|
493
|
+
var l = new Promise(function(x, _) {
|
|
494
|
+
var f = function(d) {
|
|
495
|
+
return r(d), d.length ? _(new zt(d, ut(d))) : x(a);
|
|
496
496
|
}, v = no(n);
|
|
497
|
-
|
|
497
|
+
Bt(v, t, f);
|
|
498
498
|
});
|
|
499
|
-
return l.catch(function(
|
|
500
|
-
return
|
|
499
|
+
return l.catch(function(x) {
|
|
500
|
+
return x;
|
|
501
501
|
}), l;
|
|
502
502
|
}
|
|
503
|
-
var o = e.firstFields === !0 ? Object.keys(n) : e.firstFields || [], i = Object.keys(n), p = i.length,
|
|
504
|
-
var
|
|
505
|
-
if (c.push.apply(c,
|
|
506
|
-
return r(c), c.length ?
|
|
503
|
+
var o = e.firstFields === !0 ? Object.keys(n) : e.firstFields || [], i = Object.keys(n), p = i.length, V = 0, c = [], s = new Promise(function(x, _) {
|
|
504
|
+
var f = function(h) {
|
|
505
|
+
if (c.push.apply(c, h), V++, V === p)
|
|
506
|
+
return r(c), c.length ? _(new zt(c, ut(c))) : x(a);
|
|
507
507
|
};
|
|
508
|
-
i.length || (r(c),
|
|
509
|
-
var
|
|
510
|
-
o.indexOf(v) !== -1 ?
|
|
508
|
+
i.length || (r(c), x(a)), i.forEach(function(v) {
|
|
509
|
+
var h = n[v];
|
|
510
|
+
o.indexOf(v) !== -1 ? Bt(h, t, f) : to(h, t, f);
|
|
511
511
|
});
|
|
512
512
|
});
|
|
513
|
-
return
|
|
514
|
-
return
|
|
515
|
-
}),
|
|
513
|
+
return s.catch(function(x) {
|
|
514
|
+
return x;
|
|
515
|
+
}), s;
|
|
516
516
|
}
|
|
517
517
|
function ao(n) {
|
|
518
518
|
return !!(n && n.message !== void 0);
|
|
@@ -540,20 +540,20 @@ function Gt(n, e) {
|
|
|
540
540
|
for (var t in e)
|
|
541
541
|
if (e.hasOwnProperty(t)) {
|
|
542
542
|
var r = e[t];
|
|
543
|
-
typeof r == "object" && typeof n[t] == "object" ? n[t] =
|
|
543
|
+
typeof r == "object" && typeof n[t] == "object" ? n[t] = we({}, n[t], r) : n[t] = r;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
return n;
|
|
547
547
|
}
|
|
548
548
|
var $n = function(e, t, r, a, l, o) {
|
|
549
|
-
e.required && (!r.hasOwnProperty(e.field) ||
|
|
549
|
+
e.required && (!r.hasOwnProperty(e.field) || J(t, o || e.type)) && a.push(ue(l.messages.required, e.fullField));
|
|
550
550
|
}, lo = function(e, t, r, a, l) {
|
|
551
|
-
(/^\s+$/.test(t) || t === "") && a.push(
|
|
551
|
+
(/^\s+$/.test(t) || t === "") && a.push(ue(l.messages.whitespace, e.fullField));
|
|
552
552
|
}, Be, io = function() {
|
|
553
553
|
if (Be)
|
|
554
554
|
return Be;
|
|
555
|
-
var n = "[a-fA-F\\d:]", e = function(
|
|
556
|
-
return
|
|
555
|
+
var n = "[a-fA-F\\d:]", e = function(w) {
|
|
556
|
+
return w && w.includeBoundaries ? "(?:(?<=\\s|^)(?=" + n + ")|(?<=" + n + ")(?=\\s|$))" : "";
|
|
557
557
|
}, t = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", r = "[a-fA-F\\d]{1,4}", a = (`
|
|
558
558
|
(?:
|
|
559
559
|
(?:` + r + ":){7}(?:" + r + `|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
@@ -565,16 +565,16 @@ var $n = function(e, t, r, a, l, o) {
|
|
|
565
565
|
(?:` + r + ":){1}(?:(?::" + r + "){0,4}:" + t + "|(?::" + r + `){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
566
566
|
(?::(?:(?::` + r + "){0,5}:" + t + "|(?::" + r + `){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
567
567
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
568
|
-
`).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), l = new RegExp("(?:^" + t + "$)|(?:^" + a + "$)"), o = new RegExp("^" + t + "$"), i = new RegExp("^" + a + "$"), p = function(
|
|
569
|
-
return
|
|
568
|
+
`).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), l = new RegExp("(?:^" + t + "$)|(?:^" + a + "$)"), o = new RegExp("^" + t + "$"), i = new RegExp("^" + a + "$"), p = function(w) {
|
|
569
|
+
return w && w.exact ? l : new RegExp("(?:" + e(w) + t + e(w) + ")|(?:" + e(w) + a + e(w) + ")", "g");
|
|
570
570
|
};
|
|
571
|
-
p.v4 = function(
|
|
572
|
-
return
|
|
573
|
-
}, p.v6 = function(
|
|
574
|
-
return
|
|
571
|
+
p.v4 = function(y) {
|
|
572
|
+
return y && y.exact ? o : new RegExp("" + e(y) + t + e(y), "g");
|
|
573
|
+
}, p.v6 = function(y) {
|
|
574
|
+
return y && y.exact ? i : new RegExp("" + e(y) + a + e(y), "g");
|
|
575
575
|
};
|
|
576
|
-
var
|
|
577
|
-
return Be = new RegExp("(?:^" +
|
|
576
|
+
var V = "(?:(?:[a-z]+:)?//)", c = "(?:\\S+(?::\\S*)?@)?", s = p.v4().source, x = p.v6().source, _ = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", f = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", v = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", h = "(?::\\d{2,5})?", d = '(?:[/?#][^\\s"]*)?', g = "(?:" + V + "|www\\.)" + c + "(?:localhost|" + s + "|" + x + "|" + _ + f + v + ")" + h + d;
|
|
577
|
+
return Be = new RegExp("(?:^" + g + "$)", "i"), Be;
|
|
578
578
|
}, Yt = {
|
|
579
579
|
// http://emailregex.com/
|
|
580
580
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
@@ -583,12 +583,12 @@ var $n = function(e, t, r, a, l, o) {
|
|
|
583
583
|
// 'i',
|
|
584
584
|
// ),
|
|
585
585
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
586
|
-
},
|
|
586
|
+
}, Ee = {
|
|
587
587
|
integer: function(e) {
|
|
588
|
-
return
|
|
588
|
+
return Ee.number(e) && parseInt(e, 10) === e;
|
|
589
589
|
},
|
|
590
590
|
float: function(e) {
|
|
591
|
-
return
|
|
591
|
+
return Ee.number(e) && !Ee.integer(e);
|
|
592
592
|
},
|
|
593
593
|
array: function(e) {
|
|
594
594
|
return Array.isArray(e);
|
|
@@ -609,7 +609,7 @@ var $n = function(e, t, r, a, l, o) {
|
|
|
609
609
|
return isNaN(e) ? !1 : typeof e == "number";
|
|
610
610
|
},
|
|
611
611
|
object: function(e) {
|
|
612
|
-
return typeof e == "object" && !
|
|
612
|
+
return typeof e == "object" && !Ee.array(e);
|
|
613
613
|
},
|
|
614
614
|
method: function(e) {
|
|
615
615
|
return typeof e == "function";
|
|
@@ -629,21 +629,21 @@ var $n = function(e, t, r, a, l, o) {
|
|
|
629
629
|
return;
|
|
630
630
|
}
|
|
631
631
|
var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], i = e.type;
|
|
632
|
-
o.indexOf(i) > -1 ?
|
|
632
|
+
o.indexOf(i) > -1 ? Ee[i](t) || a.push(ue(l.messages.types[i], e.fullField, e.type)) : i && typeof t !== e.type && a.push(ue(l.messages.types[i], e.fullField, e.type));
|
|
633
633
|
}, uo = function(e, t, r, a, l) {
|
|
634
|
-
var o = typeof e.len == "number", i = typeof e.min == "number", p = typeof e.max == "number",
|
|
635
|
-
if (
|
|
634
|
+
var o = typeof e.len == "number", i = typeof e.min == "number", p = typeof e.max == "number", V = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, c = t, s = null, x = typeof t == "number", _ = typeof t == "string", f = Array.isArray(t);
|
|
635
|
+
if (x ? s = "number" : _ ? s = "string" : f && (s = "array"), !s)
|
|
636
636
|
return !1;
|
|
637
|
-
|
|
637
|
+
f && (c = t.length), _ && (c = t.replace(V, "_").length), o ? c !== e.len && a.push(ue(l.messages[s].len, e.fullField, e.len)) : i && !p && c < e.min ? a.push(ue(l.messages[s].min, e.fullField, e.min)) : p && !i && c > e.max ? a.push(ue(l.messages[s].max, e.fullField, e.max)) : i && p && (c < e.min || c > e.max) && a.push(ue(l.messages[s].range, e.fullField, e.min, e.max));
|
|
638
638
|
}, ke = "enum", co = function(e, t, r, a, l) {
|
|
639
|
-
e[ke] = Array.isArray(e[ke]) ? e[ke] : [], e[ke].indexOf(t) === -1 && a.push(
|
|
639
|
+
e[ke] = Array.isArray(e[ke]) ? e[ke] : [], e[ke].indexOf(t) === -1 && a.push(ue(l.messages[ke], e.fullField, e[ke].join(", ")));
|
|
640
640
|
}, fo = function(e, t, r, a, l) {
|
|
641
641
|
if (e.pattern) {
|
|
642
642
|
if (e.pattern instanceof RegExp)
|
|
643
|
-
e.pattern.lastIndex = 0, e.pattern.test(t) || a.push(
|
|
643
|
+
e.pattern.lastIndex = 0, e.pattern.test(t) || a.push(ue(l.messages.pattern.mismatch, e.fullField, t, e.pattern));
|
|
644
644
|
else if (typeof e.pattern == "string") {
|
|
645
645
|
var o = new RegExp(e.pattern);
|
|
646
|
-
o.test(t) || a.push(
|
|
646
|
+
o.test(t) || a.push(ue(l.messages.pattern.mismatch, e.fullField, t, e.pattern));
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
}, M = {
|
|
@@ -656,15 +656,15 @@ var $n = function(e, t, r, a, l, o) {
|
|
|
656
656
|
}, po = function(e, t, r, a, l) {
|
|
657
657
|
var o = [], i = e.required || !e.required && a.hasOwnProperty(e.field);
|
|
658
658
|
if (i) {
|
|
659
|
-
if (
|
|
659
|
+
if (J(t, "string") && !e.required)
|
|
660
660
|
return r();
|
|
661
|
-
M.required(e, t, a, o, l, "string"),
|
|
661
|
+
M.required(e, t, a, o, l, "string"), J(t, "string") || (M.type(e, t, a, o, l), M.range(e, t, a, o, l), M.pattern(e, t, a, o, l), e.whitespace === !0 && M.whitespace(e, t, a, o, l));
|
|
662
662
|
}
|
|
663
663
|
r(o);
|
|
664
664
|
}, mo = function(e, t, r, a, l) {
|
|
665
665
|
var o = [], i = e.required || !e.required && a.hasOwnProperty(e.field);
|
|
666
666
|
if (i) {
|
|
667
|
-
if (
|
|
667
|
+
if (J(t) && !e.required)
|
|
668
668
|
return r();
|
|
669
669
|
M.required(e, t, a, o, l), t !== void 0 && M.type(e, t, a, o, l);
|
|
670
670
|
}
|
|
@@ -672,7 +672,7 @@ var $n = function(e, t, r, a, l, o) {
|
|
|
672
672
|
}, vo = function(e, t, r, a, l) {
|
|
673
673
|
var o = [], i = e.required || !e.required && a.hasOwnProperty(e.field);
|
|
674
674
|
if (i) {
|
|
675
|
-
if (t === "" && (t = void 0),
|
|
675
|
+
if (t === "" && (t = void 0), J(t) && !e.required)
|
|
676
676
|
return r();
|
|
677
677
|
M.required(e, t, a, o, l), t !== void 0 && (M.type(e, t, a, o, l), M.range(e, t, a, o, l));
|
|
678
678
|
}
|
|
@@ -680,7 +680,7 @@ var $n = function(e, t, r, a, l, o) {
|
|
|
680
680
|
}, go = function(e, t, r, a, l) {
|
|
681
681
|
var o = [], i = e.required || !e.required && a.hasOwnProperty(e.field);
|
|
682
682
|
if (i) {
|
|
683
|
-
if (
|
|
683
|
+
if (J(t) && !e.required)
|
|
684
684
|
return r();
|
|
685
685
|
M.required(e, t, a, o, l), t !== void 0 && M.type(e, t, a, o, l);
|
|
686
686
|
}
|
|
@@ -688,15 +688,15 @@ var $n = function(e, t, r, a, l, o) {
|
|
|
688
688
|
}, yo = function(e, t, r, a, l) {
|
|
689
689
|
var o = [], i = e.required || !e.required && a.hasOwnProperty(e.field);
|
|
690
690
|
if (i) {
|
|
691
|
-
if (
|
|
691
|
+
if (J(t) && !e.required)
|
|
692
692
|
return r();
|
|
693
|
-
M.required(e, t, a, o, l),
|
|
693
|
+
M.required(e, t, a, o, l), J(t) || M.type(e, t, a, o, l);
|
|
694
694
|
}
|
|
695
695
|
r(o);
|
|
696
696
|
}, bo = function(e, t, r, a, l) {
|
|
697
697
|
var o = [], i = e.required || !e.required && a.hasOwnProperty(e.field);
|
|
698
698
|
if (i) {
|
|
699
|
-
if (
|
|
699
|
+
if (J(t) && !e.required)
|
|
700
700
|
return r();
|
|
701
701
|
M.required(e, t, a, o, l), t !== void 0 && (M.type(e, t, a, o, l), M.range(e, t, a, o, l));
|
|
702
702
|
}
|
|
@@ -704,7 +704,7 @@ var $n = function(e, t, r, a, l, o) {
|
|
|
704
704
|
}, ho = function(e, t, r, a, l) {
|
|
705
705
|
var o = [], i = e.required || !e.required && a.hasOwnProperty(e.field);
|
|
706
706
|
if (i) {
|
|
707
|
-
if (
|
|
707
|
+
if (J(t) && !e.required)
|
|
708
708
|
return r();
|
|
709
709
|
M.required(e, t, a, o, l), t !== void 0 && (M.type(e, t, a, o, l), M.range(e, t, a, o, l));
|
|
710
710
|
}
|
|
@@ -717,36 +717,36 @@ var $n = function(e, t, r, a, l, o) {
|
|
|
717
717
|
M.required(e, t, a, o, l, "array"), t != null && (M.type(e, t, a, o, l), M.range(e, t, a, o, l));
|
|
718
718
|
}
|
|
719
719
|
r(o);
|
|
720
|
-
},
|
|
720
|
+
}, wo = function(e, t, r, a, l) {
|
|
721
721
|
var o = [], i = e.required || !e.required && a.hasOwnProperty(e.field);
|
|
722
722
|
if (i) {
|
|
723
|
-
if (
|
|
723
|
+
if (J(t) && !e.required)
|
|
724
724
|
return r();
|
|
725
725
|
M.required(e, t, a, o, l), t !== void 0 && M.type(e, t, a, o, l);
|
|
726
726
|
}
|
|
727
727
|
r(o);
|
|
728
|
-
},
|
|
728
|
+
}, xo = "enum", Oo = function(e, t, r, a, l) {
|
|
729
729
|
var o = [], i = e.required || !e.required && a.hasOwnProperty(e.field);
|
|
730
730
|
if (i) {
|
|
731
|
-
if (
|
|
731
|
+
if (J(t) && !e.required)
|
|
732
732
|
return r();
|
|
733
|
-
M.required(e, t, a, o, l), t !== void 0 && M[
|
|
733
|
+
M.required(e, t, a, o, l), t !== void 0 && M[xo](e, t, a, o, l);
|
|
734
734
|
}
|
|
735
735
|
r(o);
|
|
736
736
|
}, ko = function(e, t, r, a, l) {
|
|
737
737
|
var o = [], i = e.required || !e.required && a.hasOwnProperty(e.field);
|
|
738
738
|
if (i) {
|
|
739
|
-
if (
|
|
739
|
+
if (J(t, "string") && !e.required)
|
|
740
740
|
return r();
|
|
741
|
-
M.required(e, t, a, o, l),
|
|
741
|
+
M.required(e, t, a, o, l), J(t, "string") || M.pattern(e, t, a, o, l);
|
|
742
742
|
}
|
|
743
743
|
r(o);
|
|
744
744
|
}, Io = function(e, t, r, a, l) {
|
|
745
745
|
var o = [], i = e.required || !e.required && a.hasOwnProperty(e.field);
|
|
746
746
|
if (i) {
|
|
747
|
-
if (
|
|
747
|
+
if (J(t, "date") && !e.required)
|
|
748
748
|
return r();
|
|
749
|
-
if (M.required(e, t, a, o, l), !
|
|
749
|
+
if (M.required(e, t, a, o, l), !J(t, "date")) {
|
|
750
750
|
var p;
|
|
751
751
|
t instanceof Date ? p = t : p = new Date(t), M.type(e, p, a, o, l), p && M.range(e, p.getTime(), a, o, l);
|
|
752
752
|
}
|
|
@@ -758,15 +758,15 @@ var $n = function(e, t, r, a, l, o) {
|
|
|
758
758
|
}, rt = function(e, t, r, a, l) {
|
|
759
759
|
var o = e.type, i = [], p = e.required || !e.required && a.hasOwnProperty(e.field);
|
|
760
760
|
if (p) {
|
|
761
|
-
if (
|
|
761
|
+
if (J(t, o) && !e.required)
|
|
762
762
|
return r();
|
|
763
|
-
M.required(e, t, a, i, l, o),
|
|
763
|
+
M.required(e, t, a, i, l, o), J(t, o) || M.type(e, t, a, i, l);
|
|
764
764
|
}
|
|
765
765
|
r(i);
|
|
766
766
|
}, Vo = function(e, t, r, a, l) {
|
|
767
767
|
var o = [], i = e.required || !e.required && a.hasOwnProperty(e.field);
|
|
768
768
|
if (i) {
|
|
769
|
-
if (
|
|
769
|
+
if (J(t) && !e.required)
|
|
770
770
|
return r();
|
|
771
771
|
M.required(e, t, a, o, l);
|
|
772
772
|
}
|
|
@@ -780,7 +780,7 @@ var $n = function(e, t, r, a, l, o) {
|
|
|
780
780
|
integer: bo,
|
|
781
781
|
float: ho,
|
|
782
782
|
array: _o,
|
|
783
|
-
object:
|
|
783
|
+
object: wo,
|
|
784
784
|
enum: Oo,
|
|
785
785
|
pattern: ko,
|
|
786
786
|
date: Io,
|
|
@@ -864,104 +864,104 @@ var ct = dt(), Pe = /* @__PURE__ */ function() {
|
|
|
864
864
|
var o = this;
|
|
865
865
|
a === void 0 && (a = {}), l === void 0 && (l = function() {
|
|
866
866
|
});
|
|
867
|
-
var i = r, p = a,
|
|
868
|
-
if (typeof p == "function" && (
|
|
869
|
-
return
|
|
867
|
+
var i = r, p = a, V = l;
|
|
868
|
+
if (typeof p == "function" && (V = p, p = {}), !this.rules || Object.keys(this.rules).length === 0)
|
|
869
|
+
return V && V(null, i), Promise.resolve(i);
|
|
870
870
|
function c(v) {
|
|
871
|
-
var
|
|
872
|
-
function
|
|
873
|
-
if (Array.isArray(
|
|
874
|
-
var
|
|
875
|
-
|
|
871
|
+
var h = [], d = {};
|
|
872
|
+
function g(w) {
|
|
873
|
+
if (Array.isArray(w)) {
|
|
874
|
+
var k;
|
|
875
|
+
h = (k = h).concat.apply(k, w);
|
|
876
876
|
} else
|
|
877
|
-
|
|
877
|
+
h.push(w);
|
|
878
878
|
}
|
|
879
|
-
for (var
|
|
880
|
-
|
|
881
|
-
|
|
879
|
+
for (var y = 0; y < v.length; y++)
|
|
880
|
+
g(v[y]);
|
|
881
|
+
h.length ? (d = ut(h), V(h, d)) : V(null, i);
|
|
882
882
|
}
|
|
883
883
|
if (p.messages) {
|
|
884
|
-
var
|
|
885
|
-
|
|
884
|
+
var s = this.messages();
|
|
885
|
+
s === ct && (s = dt()), Gt(s, p.messages), p.messages = s;
|
|
886
886
|
} else
|
|
887
887
|
p.messages = this.messages();
|
|
888
|
-
var
|
|
889
|
-
|
|
890
|
-
var
|
|
891
|
-
|
|
892
|
-
var
|
|
893
|
-
typeof
|
|
894
|
-
validator:
|
|
895
|
-
} :
|
|
896
|
-
rule:
|
|
897
|
-
value:
|
|
888
|
+
var x = {}, _ = p.keys || Object.keys(this.rules);
|
|
889
|
+
_.forEach(function(v) {
|
|
890
|
+
var h = o.rules[v], d = i[v];
|
|
891
|
+
h.forEach(function(g) {
|
|
892
|
+
var y = g;
|
|
893
|
+
typeof y.transform == "function" && (i === r && (i = we({}, i)), d = i[v] = y.transform(d)), typeof y == "function" ? y = {
|
|
894
|
+
validator: y
|
|
895
|
+
} : y = we({}, y), y.validator = o.getValidationMethod(y), y.validator && (y.field = v, y.fullField = y.fullField || v, y.type = o.getType(y), x[v] = x[v] || [], x[v].push({
|
|
896
|
+
rule: y,
|
|
897
|
+
value: d,
|
|
898
898
|
source: i,
|
|
899
899
|
field: v
|
|
900
900
|
}));
|
|
901
901
|
});
|
|
902
902
|
});
|
|
903
|
-
var
|
|
904
|
-
return ro(
|
|
905
|
-
var
|
|
906
|
-
|
|
907
|
-
function
|
|
908
|
-
return
|
|
909
|
-
fullField:
|
|
910
|
-
fullFields:
|
|
903
|
+
var f = {};
|
|
904
|
+
return ro(x, p, function(v, h) {
|
|
905
|
+
var d = v.rule, g = (d.type === "object" || d.type === "array") && (typeof d.fields == "object" || typeof d.defaultField == "object");
|
|
906
|
+
g = g && (d.required || !d.required && v.value), d.field = v.field;
|
|
907
|
+
function y($, b) {
|
|
908
|
+
return we({}, b, {
|
|
909
|
+
fullField: d.fullField + "." + $,
|
|
910
|
+
fullFields: d.fullFields ? [].concat(d.fullFields, [$]) : [$]
|
|
911
911
|
});
|
|
912
912
|
}
|
|
913
|
-
function
|
|
914
|
-
|
|
915
|
-
var
|
|
916
|
-
!p.suppressWarning &&
|
|
917
|
-
var
|
|
918
|
-
if (p.first &&
|
|
919
|
-
return
|
|
920
|
-
if (!
|
|
921
|
-
|
|
913
|
+
function w($) {
|
|
914
|
+
$ === void 0 && ($ = []);
|
|
915
|
+
var b = Array.isArray($) ? $ : [$];
|
|
916
|
+
!p.suppressWarning && b.length && n.warning("async-validator:", b), b.length && d.message !== void 0 && (b = [].concat(d.message));
|
|
917
|
+
var O = b.map(Wt(d, i));
|
|
918
|
+
if (p.first && O.length)
|
|
919
|
+
return f[d.field] = 1, h(O);
|
|
920
|
+
if (!g)
|
|
921
|
+
h(O);
|
|
922
922
|
else {
|
|
923
|
-
if (
|
|
924
|
-
return
|
|
925
|
-
var
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
}),
|
|
929
|
-
var
|
|
930
|
-
Object.keys(
|
|
931
|
-
var
|
|
932
|
-
|
|
923
|
+
if (d.required && !v.value)
|
|
924
|
+
return d.message !== void 0 ? O = [].concat(d.message).map(Wt(d, i)) : p.error && (O = [p.error(d, ue(p.messages.required, d.field))]), h(O);
|
|
925
|
+
var G = {};
|
|
926
|
+
d.defaultField && Object.keys(v.value).map(function(X) {
|
|
927
|
+
G[X] = d.defaultField;
|
|
928
|
+
}), G = we({}, G, v.rule.fields);
|
|
929
|
+
var oe = {};
|
|
930
|
+
Object.keys(G).forEach(function(X) {
|
|
931
|
+
var m = G[X], E = Array.isArray(m) ? m : [m];
|
|
932
|
+
oe[X] = E.map(y.bind(null, X));
|
|
933
933
|
});
|
|
934
|
-
var
|
|
935
|
-
|
|
936
|
-
var
|
|
937
|
-
|
|
934
|
+
var le = new n(oe);
|
|
935
|
+
le.messages(p.messages), v.rule.options && (v.rule.options.messages = p.messages, v.rule.options.error = p.error), le.validate(v.value, v.rule.options || p, function(X) {
|
|
936
|
+
var m = [];
|
|
937
|
+
O && O.length && m.push.apply(m, O), X && X.length && m.push.apply(m, X), h(m.length ? m : null);
|
|
938
938
|
});
|
|
939
939
|
}
|
|
940
940
|
}
|
|
941
|
-
var
|
|
942
|
-
if (
|
|
943
|
-
|
|
944
|
-
else if (
|
|
941
|
+
var k;
|
|
942
|
+
if (d.asyncValidator)
|
|
943
|
+
k = d.asyncValidator(d, v.value, w, v.source, p);
|
|
944
|
+
else if (d.validator) {
|
|
945
945
|
try {
|
|
946
|
-
|
|
947
|
-
} catch (
|
|
948
|
-
console.error == null || console.error(
|
|
949
|
-
throw
|
|
950
|
-
}, 0),
|
|
946
|
+
k = d.validator(d, v.value, w, v.source, p);
|
|
947
|
+
} catch ($) {
|
|
948
|
+
console.error == null || console.error($), p.suppressValidatorError || setTimeout(function() {
|
|
949
|
+
throw $;
|
|
950
|
+
}, 0), w($.message);
|
|
951
951
|
}
|
|
952
|
-
|
|
952
|
+
k === !0 ? w() : k === !1 ? w(typeof d.message == "function" ? d.message(d.fullField || d.field) : d.message || (d.fullField || d.field) + " fails") : k instanceof Array ? w(k) : k instanceof Error && w(k.message);
|
|
953
953
|
}
|
|
954
|
-
|
|
955
|
-
return
|
|
956
|
-
}, function(
|
|
957
|
-
return
|
|
954
|
+
k && k.then && k.then(function() {
|
|
955
|
+
return w();
|
|
956
|
+
}, function($) {
|
|
957
|
+
return w($);
|
|
958
958
|
});
|
|
959
959
|
}, function(v) {
|
|
960
960
|
c(v);
|
|
961
961
|
}, i);
|
|
962
962
|
}, e.getType = function(r) {
|
|
963
963
|
if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !Fe.hasOwnProperty(r.type))
|
|
964
|
-
throw new Error(
|
|
964
|
+
throw new Error(ue("Unknown rule type %s", r.type));
|
|
965
965
|
return r.type || "string";
|
|
966
966
|
}, e.getValidationMethod = function(r) {
|
|
967
967
|
if (typeof r.validator == "function")
|
|
@@ -1018,7 +1018,7 @@ const Eo = [
|
|
|
1018
1018
|
values: Ot
|
|
1019
1019
|
}
|
|
1020
1020
|
}), Kt = "ElLabelWrap";
|
|
1021
|
-
var Fo =
|
|
1021
|
+
var Fo = Z({
|
|
1022
1022
|
name: Kt,
|
|
1023
1023
|
props: {
|
|
1024
1024
|
isAutoWidth: Boolean,
|
|
@@ -1029,223 +1029,223 @@ var Fo = X({
|
|
|
1029
1029
|
}) {
|
|
1030
1030
|
const t = Ce(kt, void 0), r = Ce(at);
|
|
1031
1031
|
r || Zt(Kt, "usage: <el-form-item><label-wrap /></el-form-item>");
|
|
1032
|
-
const a = ye("form"), l =
|
|
1032
|
+
const a = ye("form"), l = Q(), o = Q(0), i = () => {
|
|
1033
1033
|
var c;
|
|
1034
1034
|
if ((c = l.value) != null && c.firstElementChild) {
|
|
1035
|
-
const
|
|
1036
|
-
return Math.ceil(Number.parseFloat(
|
|
1035
|
+
const s = window.getComputedStyle(l.value.firstElementChild).width;
|
|
1036
|
+
return Math.ceil(Number.parseFloat(s));
|
|
1037
1037
|
} else
|
|
1038
1038
|
return 0;
|
|
1039
1039
|
}, p = (c = "update") => {
|
|
1040
|
-
|
|
1040
|
+
Xe(() => {
|
|
1041
1041
|
e.default && n.isAutoWidth && (c === "update" ? o.value = i() : c === "remove" && (t == null || t.deregisterLabelWidth(o.value)));
|
|
1042
1042
|
});
|
|
1043
|
-
},
|
|
1043
|
+
}, V = () => p("update");
|
|
1044
1044
|
return Ae(() => {
|
|
1045
|
-
|
|
1045
|
+
V();
|
|
1046
1046
|
}), nn(() => {
|
|
1047
1047
|
p("remove");
|
|
1048
|
-
}), rn(() =>
|
|
1049
|
-
n.updateAll && (t == null || t.registerLabelWidth(c,
|
|
1050
|
-
}), pn(
|
|
1051
|
-
var c,
|
|
1052
|
-
return (
|
|
1053
|
-
}),
|
|
1054
|
-
var c,
|
|
1048
|
+
}), rn(() => V()), ve(o, (c, s) => {
|
|
1049
|
+
n.updateAll && (t == null || t.registerLabelWidth(c, s));
|
|
1050
|
+
}), pn(N(() => {
|
|
1051
|
+
var c, s;
|
|
1052
|
+
return (s = (c = l.value) == null ? void 0 : c.firstElementChild) != null ? s : null;
|
|
1053
|
+
}), V), () => {
|
|
1054
|
+
var c, s;
|
|
1055
1055
|
if (!e)
|
|
1056
1056
|
return null;
|
|
1057
1057
|
const {
|
|
1058
|
-
isAutoWidth:
|
|
1058
|
+
isAutoWidth: x
|
|
1059
1059
|
} = n;
|
|
1060
|
-
if (
|
|
1061
|
-
const
|
|
1062
|
-
if (
|
|
1063
|
-
const
|
|
1064
|
-
|
|
1060
|
+
if (x) {
|
|
1061
|
+
const _ = t == null ? void 0 : t.autoLabelWidth, f = r == null ? void 0 : r.hasLabel, v = {};
|
|
1062
|
+
if (f && _ && _ !== "auto") {
|
|
1063
|
+
const h = Math.max(0, Number.parseInt(_, 10) - o.value), d = t.labelPosition === "left" ? "marginRight" : "marginLeft";
|
|
1064
|
+
h && (v[d] = `${h}px`);
|
|
1065
1065
|
}
|
|
1066
|
-
return
|
|
1066
|
+
return F("div", {
|
|
1067
1067
|
ref: l,
|
|
1068
1068
|
class: [a.be("item", "label-wrap")],
|
|
1069
1069
|
style: v
|
|
1070
1070
|
}, [(c = e.default) == null ? void 0 : c.call(e)]);
|
|
1071
1071
|
} else
|
|
1072
|
-
return
|
|
1072
|
+
return F(H, {
|
|
1073
1073
|
ref: l
|
|
1074
|
-
}, [(
|
|
1074
|
+
}, [(s = e.default) == null ? void 0 : s.call(e)]);
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
1077
|
});
|
|
1078
|
-
const To = ["role", "aria-labelledby"], Co =
|
|
1078
|
+
const To = ["role", "aria-labelledby"], Co = Z({
|
|
1079
1079
|
name: "ElFormItem"
|
|
1080
|
-
}), qo = /* @__PURE__ */
|
|
1080
|
+
}), qo = /* @__PURE__ */ Z({
|
|
1081
1081
|
...Co,
|
|
1082
1082
|
props: So,
|
|
1083
1083
|
setup(n, { expose: e }) {
|
|
1084
|
-
const t = n, r = rr(), a = Ce(kt, void 0), l = Ce(at, void 0), o = je(void 0, { formItem: !1 }), i = ye("form-item"), p = Xt().value,
|
|
1085
|
-
let
|
|
1086
|
-
const
|
|
1084
|
+
const t = n, r = rr(), a = Ce(kt, void 0), l = Ce(at, void 0), o = je(void 0, { formItem: !1 }), i = ye("form-item"), p = Xt().value, V = Q([]), c = Q(""), s = Bn(c, 100), x = Q(""), _ = Q();
|
|
1085
|
+
let f, v = !1;
|
|
1086
|
+
const h = N(() => {
|
|
1087
1087
|
if ((a == null ? void 0 : a.labelPosition) === "top")
|
|
1088
1088
|
return {};
|
|
1089
|
-
const
|
|
1090
|
-
return
|
|
1091
|
-
}),
|
|
1089
|
+
const T = qt(t.labelWidth || (a == null ? void 0 : a.labelWidth) || "");
|
|
1090
|
+
return T ? { width: T } : {};
|
|
1091
|
+
}), d = N(() => {
|
|
1092
1092
|
if ((a == null ? void 0 : a.labelPosition) === "top" || a != null && a.inline)
|
|
1093
1093
|
return {};
|
|
1094
|
-
if (!t.label && !t.labelWidth &&
|
|
1094
|
+
if (!t.label && !t.labelWidth && G)
|
|
1095
1095
|
return {};
|
|
1096
|
-
const
|
|
1097
|
-
return !t.label && !r.label ? { marginLeft:
|
|
1098
|
-
}),
|
|
1096
|
+
const T = qt(t.labelWidth || (a == null ? void 0 : a.labelWidth) || "");
|
|
1097
|
+
return !t.label && !r.label ? { marginLeft: T } : {};
|
|
1098
|
+
}), g = N(() => [
|
|
1099
1099
|
i.b(),
|
|
1100
1100
|
i.m(o.value),
|
|
1101
1101
|
i.is("error", c.value === "error"),
|
|
1102
1102
|
i.is("validating", c.value === "validating"),
|
|
1103
1103
|
i.is("success", c.value === "success"),
|
|
1104
|
-
i.is("required",
|
|
1104
|
+
i.is("required", E.value || t.required),
|
|
1105
1105
|
i.is("no-asterisk", a == null ? void 0 : a.hideRequiredAsterisk),
|
|
1106
1106
|
(a == null ? void 0 : a.requireAsteriskPosition) === "right" ? "asterisk-right" : "asterisk-left",
|
|
1107
1107
|
{ [i.m("feedback")]: a == null ? void 0 : a.statusIcon }
|
|
1108
|
-
]),
|
|
1108
|
+
]), y = N(() => Ke(t.inlineMessage) ? t.inlineMessage : (a == null ? void 0 : a.inlineMessage) || !1), w = N(() => [
|
|
1109
1109
|
i.e("error"),
|
|
1110
|
-
{ [i.em("error", "inline")]:
|
|
1111
|
-
]),
|
|
1112
|
-
const
|
|
1113
|
-
if (!(!
|
|
1114
|
-
return nt(
|
|
1115
|
-
}),
|
|
1116
|
-
const { required:
|
|
1110
|
+
{ [i.em("error", "inline")]: y.value }
|
|
1111
|
+
]), k = N(() => t.prop ? _e(t.prop) ? t.prop : t.prop.join(".") : ""), $ = N(() => !!(t.label || r.label)), b = N(() => t.for || V.value.length === 1 ? V.value[0] : void 0), O = N(() => !b.value && $.value), G = !!l, oe = N(() => {
|
|
1112
|
+
const T = a == null ? void 0 : a.model;
|
|
1113
|
+
if (!(!T || !t.prop))
|
|
1114
|
+
return nt(T, t.prop).value;
|
|
1115
|
+
}), le = N(() => {
|
|
1116
|
+
const { required: T } = t, R = [];
|
|
1117
1117
|
t.rules && R.push(...lt(t.rules));
|
|
1118
1118
|
const ne = a == null ? void 0 : a.rules;
|
|
1119
1119
|
if (ne && t.prop) {
|
|
1120
1120
|
const ee = nt(ne, t.prop).value;
|
|
1121
1121
|
ee && R.push(...lt(ee));
|
|
1122
1122
|
}
|
|
1123
|
-
if (
|
|
1123
|
+
if (T !== void 0) {
|
|
1124
1124
|
const ee = R.map((fe, Oe) => [fe, Oe]).filter(([fe]) => Object.keys(fe).includes("required"));
|
|
1125
1125
|
if (ee.length > 0)
|
|
1126
1126
|
for (const [fe, Oe] of ee)
|
|
1127
|
-
fe.required !==
|
|
1127
|
+
fe.required !== T && (R[Oe] = { ...fe, required: T });
|
|
1128
1128
|
else
|
|
1129
|
-
R.push({ required:
|
|
1129
|
+
R.push({ required: T });
|
|
1130
1130
|
}
|
|
1131
1131
|
return R;
|
|
1132
|
-
}),
|
|
1133
|
-
var
|
|
1134
|
-
return
|
|
1135
|
-
}),
|
|
1136
|
-
c.value =
|
|
1137
|
-
}, j = (
|
|
1132
|
+
}), X = N(() => le.value.length > 0), m = (T) => le.value.filter((ne) => !ne.trigger || !T ? !0 : Array.isArray(ne.trigger) ? ne.trigger.includes(T) : ne.trigger === T).map(({ trigger: ne, ...ee }) => ee), E = N(() => le.value.some((T) => T.required)), A = N(() => {
|
|
1133
|
+
var T;
|
|
1134
|
+
return s.value === "error" && t.showMessage && ((T = a == null ? void 0 : a.showMessage) != null ? T : !0);
|
|
1135
|
+
}), W = N(() => `${t.label || ""}${(a == null ? void 0 : a.labelSuffix) || ""}`), D = (T) => {
|
|
1136
|
+
c.value = T;
|
|
1137
|
+
}, j = (T) => {
|
|
1138
1138
|
var R, ne;
|
|
1139
|
-
const { errors: ee, fields: fe } =
|
|
1140
|
-
(!ee || !fe) && console.error(
|
|
1141
|
-
},
|
|
1142
|
-
|
|
1143
|
-
},
|
|
1144
|
-
const R =
|
|
1139
|
+
const { errors: ee, fields: fe } = T;
|
|
1140
|
+
(!ee || !fe) && console.error(T), D("error"), x.value = ee ? (ne = (R = ee == null ? void 0 : ee[0]) == null ? void 0 : R.message) != null ? ne : `${t.prop} is required` : "", a == null || a.emit("validate", t.prop, !1, x.value);
|
|
1141
|
+
}, re = () => {
|
|
1142
|
+
D("success"), a == null || a.emit("validate", t.prop, !0, "");
|
|
1143
|
+
}, Y = async (T) => {
|
|
1144
|
+
const R = k.value;
|
|
1145
1145
|
return new Pe({
|
|
1146
|
-
[R]:
|
|
1147
|
-
}).validate({ [R]:
|
|
1148
|
-
},
|
|
1146
|
+
[R]: T
|
|
1147
|
+
}).validate({ [R]: oe.value }, { firstFields: !0 }).then(() => (re(), !0)).catch((ee) => (j(ee), Promise.reject(ee)));
|
|
1148
|
+
}, K = async (T, R) => {
|
|
1149
1149
|
if (v || !t.prop)
|
|
1150
1150
|
return !1;
|
|
1151
|
-
const ne =
|
|
1152
|
-
if (!
|
|
1151
|
+
const ne = xe(R);
|
|
1152
|
+
if (!X.value)
|
|
1153
1153
|
return R == null || R(!1), !1;
|
|
1154
|
-
const ee =
|
|
1155
|
-
return ee.length === 0 ? (R == null || R(!0), !0) : (
|
|
1154
|
+
const ee = m(T);
|
|
1155
|
+
return ee.length === 0 ? (R == null || R(!0), !0) : (D("validating"), Y(ee).then(() => (R == null || R(!0), !0)).catch((fe) => {
|
|
1156
1156
|
const { fields: Oe } = fe;
|
|
1157
1157
|
return R == null || R(!1, Oe), ne ? !1 : Promise.reject(Oe);
|
|
1158
1158
|
}));
|
|
1159
1159
|
}, et = () => {
|
|
1160
|
-
|
|
1160
|
+
D(""), x.value = "", v = !1;
|
|
1161
1161
|
}, Tt = async () => {
|
|
1162
|
-
const
|
|
1163
|
-
if (!
|
|
1162
|
+
const T = a == null ? void 0 : a.model;
|
|
1163
|
+
if (!T || !t.prop)
|
|
1164
1164
|
return;
|
|
1165
|
-
const R = nt(
|
|
1166
|
-
v = !0, R.value =
|
|
1167
|
-
}, Pn = (
|
|
1168
|
-
|
|
1169
|
-
}, Rn = (
|
|
1170
|
-
|
|
1165
|
+
const R = nt(T, t.prop);
|
|
1166
|
+
v = !0, R.value = Dt(f), await Xe(), et(), v = !1;
|
|
1167
|
+
}, Pn = (T) => {
|
|
1168
|
+
V.value.includes(T) || V.value.push(T);
|
|
1169
|
+
}, Rn = (T) => {
|
|
1170
|
+
V.value = V.value.filter((R) => R !== T);
|
|
1171
1171
|
};
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
}, { immediate: !0 }),
|
|
1175
|
-
const tt =
|
|
1172
|
+
ve(() => t.error, (T) => {
|
|
1173
|
+
x.value = T || "", D(T ? "error" : "");
|
|
1174
|
+
}, { immediate: !0 }), ve(() => t.validateStatus, (T) => D(T || ""));
|
|
1175
|
+
const tt = Ze({
|
|
1176
1176
|
...vt(t),
|
|
1177
|
-
$el:
|
|
1177
|
+
$el: _,
|
|
1178
1178
|
size: o,
|
|
1179
1179
|
validateState: c,
|
|
1180
1180
|
labelId: p,
|
|
1181
|
-
inputIds:
|
|
1182
|
-
isGroup:
|
|
1183
|
-
hasLabel:
|
|
1181
|
+
inputIds: V,
|
|
1182
|
+
isGroup: O,
|
|
1183
|
+
hasLabel: $,
|
|
1184
1184
|
addInputId: Pn,
|
|
1185
1185
|
removeInputId: Rn,
|
|
1186
1186
|
resetField: Tt,
|
|
1187
1187
|
clearValidate: et,
|
|
1188
|
-
validate:
|
|
1188
|
+
validate: K
|
|
1189
1189
|
});
|
|
1190
1190
|
return mt(at, tt), Ae(() => {
|
|
1191
|
-
t.prop && (a == null || a.addField(tt),
|
|
1191
|
+
t.prop && (a == null || a.addField(tt), f = Dt(oe.value));
|
|
1192
1192
|
}), nn(() => {
|
|
1193
1193
|
a == null || a.removeField(tt);
|
|
1194
1194
|
}), e({
|
|
1195
1195
|
size: o,
|
|
1196
|
-
validateMessage:
|
|
1196
|
+
validateMessage: x,
|
|
1197
1197
|
validateState: c,
|
|
1198
|
-
validate:
|
|
1198
|
+
validate: K,
|
|
1199
1199
|
clearValidate: et,
|
|
1200
1200
|
resetField: Tt
|
|
1201
|
-
}), (
|
|
1201
|
+
}), (T, R) => {
|
|
1202
1202
|
var ne;
|
|
1203
|
-
return
|
|
1203
|
+
return I(), q("div", {
|
|
1204
1204
|
ref_key: "formItemRef",
|
|
1205
|
-
ref:
|
|
1206
|
-
class:
|
|
1207
|
-
role:
|
|
1208
|
-
"aria-labelledby":
|
|
1205
|
+
ref: _,
|
|
1206
|
+
class: L(u(g)),
|
|
1207
|
+
role: u(O) ? "group" : void 0,
|
|
1208
|
+
"aria-labelledby": u(O) ? u(p) : void 0
|
|
1209
1209
|
}, [
|
|
1210
|
-
|
|
1211
|
-
"is-auto-width":
|
|
1212
|
-
"update-all": ((ne =
|
|
1210
|
+
F(u(Fo), {
|
|
1211
|
+
"is-auto-width": u(h).width === "auto",
|
|
1212
|
+
"update-all": ((ne = u(a)) == null ? void 0 : ne.labelWidth) === "auto"
|
|
1213
1213
|
}, {
|
|
1214
|
-
default:
|
|
1215
|
-
|
|
1214
|
+
default: S(() => [
|
|
1215
|
+
u($) ? (I(), U(gt(u(b) ? "label" : "div"), {
|
|
1216
1216
|
key: 0,
|
|
1217
|
-
id:
|
|
1218
|
-
for:
|
|
1219
|
-
class:
|
|
1220
|
-
style:
|
|
1217
|
+
id: u(p),
|
|
1218
|
+
for: u(b),
|
|
1219
|
+
class: L(u(i).e("label")),
|
|
1220
|
+
style: Qe(u(h))
|
|
1221
1221
|
}, {
|
|
1222
|
-
default:
|
|
1223
|
-
me(
|
|
1224
|
-
P(
|
|
1222
|
+
default: S(() => [
|
|
1223
|
+
me(T.$slots, "label", { label: u(W) }, () => [
|
|
1224
|
+
P(te(u(W)), 1)
|
|
1225
1225
|
])
|
|
1226
1226
|
]),
|
|
1227
1227
|
_: 3
|
|
1228
|
-
}, 8, ["id", "for", "class", "style"])) :
|
|
1228
|
+
}, 8, ["id", "for", "class", "style"])) : z("v-if", !0)
|
|
1229
1229
|
]),
|
|
1230
1230
|
_: 3
|
|
1231
1231
|
}, 8, ["is-auto-width", "update-all"]),
|
|
1232
|
-
|
|
1233
|
-
class:
|
|
1234
|
-
style:
|
|
1232
|
+
C("div", {
|
|
1233
|
+
class: L(u(i).e("content")),
|
|
1234
|
+
style: Qe(u(d))
|
|
1235
1235
|
}, [
|
|
1236
|
-
me(
|
|
1237
|
-
|
|
1238
|
-
name: `${
|
|
1236
|
+
me(T.$slots, "default"),
|
|
1237
|
+
F(ar, {
|
|
1238
|
+
name: `${u(i).namespace.value}-zoom-in-top`
|
|
1239
1239
|
}, {
|
|
1240
|
-
default:
|
|
1241
|
-
|
|
1240
|
+
default: S(() => [
|
|
1241
|
+
u(A) ? me(T.$slots, "error", {
|
|
1242
1242
|
key: 0,
|
|
1243
|
-
error:
|
|
1243
|
+
error: x.value
|
|
1244
1244
|
}, () => [
|
|
1245
|
-
|
|
1246
|
-
class:
|
|
1247
|
-
},
|
|
1248
|
-
]) :
|
|
1245
|
+
C("div", {
|
|
1246
|
+
class: L(u(w))
|
|
1247
|
+
}, te(x.value), 3)
|
|
1248
|
+
]) : z("v-if", !0)
|
|
1249
1249
|
]),
|
|
1250
1250
|
_: 3
|
|
1251
1251
|
}, 8, ["name"])
|
|
@@ -1273,34 +1273,34 @@ const No = Me(Qa, {
|
|
|
1273
1273
|
values: ["primary", "success", "warning", "info", "danger"],
|
|
1274
1274
|
default: "danger"
|
|
1275
1275
|
}
|
|
1276
|
-
}), jo = ["textContent"], Po =
|
|
1276
|
+
}), jo = ["textContent"], Po = Z({
|
|
1277
1277
|
name: "ElBadge"
|
|
1278
|
-
}), Ro = /* @__PURE__ */
|
|
1278
|
+
}), Ro = /* @__PURE__ */ Z({
|
|
1279
1279
|
...Po,
|
|
1280
1280
|
props: Ao,
|
|
1281
1281
|
setup(n, { expose: e }) {
|
|
1282
|
-
const t = n, r = ye("badge"), a =
|
|
1282
|
+
const t = n, r = ye("badge"), a = N(() => t.isDot ? "" : ae(t.value) && ae(t.max) ? t.max < t.value ? `${t.max}+` : `${t.value}` : `${t.value}`);
|
|
1283
1283
|
return e({
|
|
1284
1284
|
content: a
|
|
1285
|
-
}), (l, o) => (
|
|
1286
|
-
class:
|
|
1285
|
+
}), (l, o) => (I(), q("div", {
|
|
1286
|
+
class: L(u(r).b())
|
|
1287
1287
|
}, [
|
|
1288
1288
|
me(l.$slots, "default"),
|
|
1289
|
-
|
|
1290
|
-
name: `${
|
|
1289
|
+
F(an, {
|
|
1290
|
+
name: `${u(r).namespace.value}-zoom-in-center`,
|
|
1291
1291
|
persisted: ""
|
|
1292
1292
|
}, {
|
|
1293
|
-
default:
|
|
1294
|
-
|
|
1295
|
-
class:
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1293
|
+
default: S(() => [
|
|
1294
|
+
$e(C("sup", {
|
|
1295
|
+
class: L([
|
|
1296
|
+
u(r).e("content"),
|
|
1297
|
+
u(r).em("content", l.type),
|
|
1298
|
+
u(r).is("fixed", !!l.$slots.default),
|
|
1299
|
+
u(r).is("dot", l.isDot)
|
|
1300
1300
|
]),
|
|
1301
|
-
textContent:
|
|
1301
|
+
textContent: te(u(a))
|
|
1302
1302
|
}, null, 10, jo), [
|
|
1303
|
-
[on, !l.hidden && (
|
|
1303
|
+
[on, !l.hidden && (u(a) || l.isDot)]
|
|
1304
1304
|
])
|
|
1305
1305
|
]),
|
|
1306
1306
|
_: 1
|
|
@@ -1308,16 +1308,16 @@ const No = Me(Qa, {
|
|
|
1308
1308
|
], 2));
|
|
1309
1309
|
}
|
|
1310
1310
|
});
|
|
1311
|
-
var
|
|
1312
|
-
const Uo = Me(
|
|
1311
|
+
var Lo = /* @__PURE__ */ be(Ro, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);
|
|
1312
|
+
const Uo = Me(Lo), Do = 100, Bo = 600, Qt = {
|
|
1313
1313
|
beforeMount(n, e) {
|
|
1314
|
-
const t = e.value, { interval: r =
|
|
1314
|
+
const t = e.value, { interval: r = Do, delay: a = Bo } = xe(t) ? {} : t;
|
|
1315
1315
|
let l, o;
|
|
1316
|
-
const i = () =>
|
|
1316
|
+
const i = () => xe(t) ? t() : t.handler(), p = () => {
|
|
1317
1317
|
o && (clearTimeout(o), o = void 0), l && (clearInterval(l), l = void 0);
|
|
1318
1318
|
};
|
|
1319
|
-
n.addEventListener("mousedown", (
|
|
1320
|
-
|
|
1319
|
+
n.addEventListener("mousedown", (V) => {
|
|
1320
|
+
V.button === 0 && (p(), i(), document.addEventListener("mouseup", () => p(), {
|
|
1321
1321
|
once: !0
|
|
1322
1322
|
}), o = setTimeout(() => {
|
|
1323
1323
|
l = setInterval(() => {
|
|
@@ -1345,17 +1345,17 @@ const Uo = Me(Do), Bo = 100, Lo = 600, Qt = {
|
|
|
1345
1345
|
},
|
|
1346
1346
|
border: Boolean
|
|
1347
1347
|
}), Sn = {
|
|
1348
|
-
[he]: (n) => _e(n) ||
|
|
1349
|
-
[Vt]: (n) => _e(n) ||
|
|
1348
|
+
[he]: (n) => _e(n) || ae(n) || Ke(n),
|
|
1349
|
+
[Vt]: (n) => _e(n) || ae(n) || Ke(n)
|
|
1350
1350
|
}, Fn = Symbol("radioGroupKey"), Tn = (n, e) => {
|
|
1351
|
-
const t =
|
|
1351
|
+
const t = Q(), r = Ce(Fn, void 0), a = N(() => !!r), l = N({
|
|
1352
1352
|
get() {
|
|
1353
1353
|
return a.value ? r.modelValue : n.modelValue;
|
|
1354
1354
|
},
|
|
1355
1355
|
set(c) {
|
|
1356
1356
|
a.value ? r.changeEvent(c) : e && e(he, c), t.value.checked = n.modelValue === n.label;
|
|
1357
1357
|
}
|
|
1358
|
-
}), o = je(
|
|
1358
|
+
}), o = je(N(() => r == null ? void 0 : r.size)), i = hn(N(() => r == null ? void 0 : r.disabled)), p = Q(!1), V = N(() => i.value || a.value && l.value !== n.label ? -1 : 0);
|
|
1359
1359
|
return {
|
|
1360
1360
|
radioRef: t,
|
|
1361
1361
|
isGroup: a,
|
|
@@ -1363,67 +1363,67 @@ const Uo = Me(Do), Bo = 100, Lo = 600, Qt = {
|
|
|
1363
1363
|
focus: p,
|
|
1364
1364
|
size: o,
|
|
1365
1365
|
disabled: i,
|
|
1366
|
-
tabIndex:
|
|
1366
|
+
tabIndex: V,
|
|
1367
1367
|
modelValue: l
|
|
1368
1368
|
};
|
|
1369
|
-
}, Wo = ["value", "name", "disabled"], Go =
|
|
1369
|
+
}, Wo = ["value", "name", "disabled"], Go = Z({
|
|
1370
1370
|
name: "ElRadio"
|
|
1371
|
-
}), Yo = /* @__PURE__ */
|
|
1371
|
+
}), Yo = /* @__PURE__ */ Z({
|
|
1372
1372
|
...Go,
|
|
1373
1373
|
props: zo,
|
|
1374
1374
|
emits: Sn,
|
|
1375
1375
|
setup(n, { emit: e }) {
|
|
1376
|
-
const t = n, r = ye("radio"), { radioRef: a, radioGroup: l, focus: o, size: i, disabled: p, modelValue:
|
|
1376
|
+
const t = n, r = ye("radio"), { radioRef: a, radioGroup: l, focus: o, size: i, disabled: p, modelValue: V } = Tn(t, e);
|
|
1377
1377
|
function c() {
|
|
1378
|
-
|
|
1378
|
+
Xe(() => e("change", V.value));
|
|
1379
1379
|
}
|
|
1380
|
-
return (
|
|
1381
|
-
var
|
|
1382
|
-
return
|
|
1383
|
-
class:
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1380
|
+
return (s, x) => {
|
|
1381
|
+
var _;
|
|
1382
|
+
return I(), q("label", {
|
|
1383
|
+
class: L([
|
|
1384
|
+
u(r).b(),
|
|
1385
|
+
u(r).is("disabled", u(p)),
|
|
1386
|
+
u(r).is("focus", u(o)),
|
|
1387
|
+
u(r).is("bordered", s.border),
|
|
1388
|
+
u(r).is("checked", u(V) === s.label),
|
|
1389
|
+
u(r).m(u(i))
|
|
1390
1390
|
])
|
|
1391
1391
|
}, [
|
|
1392
|
-
|
|
1393
|
-
class:
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1392
|
+
C("span", {
|
|
1393
|
+
class: L([
|
|
1394
|
+
u(r).e("input"),
|
|
1395
|
+
u(r).is("disabled", u(p)),
|
|
1396
|
+
u(r).is("checked", u(V) === s.label)
|
|
1397
1397
|
])
|
|
1398
1398
|
}, [
|
|
1399
|
-
|
|
1399
|
+
$e(C("input", {
|
|
1400
1400
|
ref_key: "radioRef",
|
|
1401
1401
|
ref: a,
|
|
1402
|
-
"onUpdate:modelValue":
|
|
1403
|
-
class:
|
|
1404
|
-
value:
|
|
1405
|
-
name:
|
|
1406
|
-
disabled:
|
|
1402
|
+
"onUpdate:modelValue": x[0] || (x[0] = (f) => ln(V) ? V.value = f : null),
|
|
1403
|
+
class: L(u(r).e("original")),
|
|
1404
|
+
value: s.label,
|
|
1405
|
+
name: s.name || ((_ = u(l)) == null ? void 0 : _.name),
|
|
1406
|
+
disabled: u(p),
|
|
1407
1407
|
type: "radio",
|
|
1408
|
-
onFocus:
|
|
1409
|
-
onBlur:
|
|
1408
|
+
onFocus: x[1] || (x[1] = (f) => o.value = !0),
|
|
1409
|
+
onBlur: x[2] || (x[2] = (f) => o.value = !1),
|
|
1410
1410
|
onChange: c,
|
|
1411
|
-
onClick:
|
|
1411
|
+
onClick: x[3] || (x[3] = ge(() => {
|
|
1412
1412
|
}, ["stop"]))
|
|
1413
1413
|
}, null, 42, Wo), [
|
|
1414
|
-
[sn,
|
|
1414
|
+
[sn, u(V)]
|
|
1415
1415
|
]),
|
|
1416
|
-
|
|
1417
|
-
class:
|
|
1416
|
+
C("span", {
|
|
1417
|
+
class: L(u(r).e("inner"))
|
|
1418
1418
|
}, null, 2)
|
|
1419
1419
|
], 2),
|
|
1420
|
-
|
|
1421
|
-
class:
|
|
1422
|
-
onKeydown:
|
|
1420
|
+
C("span", {
|
|
1421
|
+
class: L(u(r).e("label")),
|
|
1422
|
+
onKeydown: x[4] || (x[4] = ge(() => {
|
|
1423
1423
|
}, ["stop"]))
|
|
1424
1424
|
}, [
|
|
1425
|
-
me(
|
|
1426
|
-
P(
|
|
1425
|
+
me(s.$slots, "default", {}, () => [
|
|
1426
|
+
P(te(s.label), 1)
|
|
1427
1427
|
])
|
|
1428
1428
|
], 34)
|
|
1429
1429
|
], 2);
|
|
@@ -1437,53 +1437,53 @@ const Qo = ce({
|
|
|
1437
1437
|
type: String,
|
|
1438
1438
|
default: ""
|
|
1439
1439
|
}
|
|
1440
|
-
}), Ho = ["value", "name", "disabled"], Jo =
|
|
1440
|
+
}), Ho = ["value", "name", "disabled"], Jo = Z({
|
|
1441
1441
|
name: "ElRadioButton"
|
|
1442
|
-
}), Zo = /* @__PURE__ */
|
|
1442
|
+
}), Zo = /* @__PURE__ */ Z({
|
|
1443
1443
|
...Jo,
|
|
1444
1444
|
props: Qo,
|
|
1445
1445
|
setup(n) {
|
|
1446
|
-
const e = n, t = ye("radio"), { radioRef: r, focus: a, size: l, disabled: o, modelValue: i, radioGroup: p } = Tn(e),
|
|
1446
|
+
const e = n, t = ye("radio"), { radioRef: r, focus: a, size: l, disabled: o, modelValue: i, radioGroup: p } = Tn(e), V = N(() => ({
|
|
1447
1447
|
backgroundColor: (p == null ? void 0 : p.fill) || "",
|
|
1448
1448
|
borderColor: (p == null ? void 0 : p.fill) || "",
|
|
1449
1449
|
boxShadow: p != null && p.fill ? `-1px 0 0 0 ${p.fill}` : "",
|
|
1450
1450
|
color: (p == null ? void 0 : p.textColor) || ""
|
|
1451
1451
|
}));
|
|
1452
|
-
return (c,
|
|
1453
|
-
var
|
|
1454
|
-
return
|
|
1455
|
-
class:
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1452
|
+
return (c, s) => {
|
|
1453
|
+
var x;
|
|
1454
|
+
return I(), q("label", {
|
|
1455
|
+
class: L([
|
|
1456
|
+
u(t).b("button"),
|
|
1457
|
+
u(t).is("active", u(i) === c.label),
|
|
1458
|
+
u(t).is("disabled", u(o)),
|
|
1459
|
+
u(t).is("focus", u(a)),
|
|
1460
|
+
u(t).bm("button", u(l))
|
|
1461
1461
|
])
|
|
1462
1462
|
}, [
|
|
1463
|
-
|
|
1463
|
+
$e(C("input", {
|
|
1464
1464
|
ref_key: "radioRef",
|
|
1465
1465
|
ref: r,
|
|
1466
|
-
"onUpdate:modelValue":
|
|
1467
|
-
class:
|
|
1466
|
+
"onUpdate:modelValue": s[0] || (s[0] = (_) => ln(i) ? i.value = _ : null),
|
|
1467
|
+
class: L(u(t).be("button", "original-radio")),
|
|
1468
1468
|
value: c.label,
|
|
1469
1469
|
type: "radio",
|
|
1470
|
-
name: c.name || ((
|
|
1471
|
-
disabled:
|
|
1472
|
-
onFocus:
|
|
1473
|
-
onBlur:
|
|
1474
|
-
onClick:
|
|
1470
|
+
name: c.name || ((x = u(p)) == null ? void 0 : x.name),
|
|
1471
|
+
disabled: u(o),
|
|
1472
|
+
onFocus: s[1] || (s[1] = (_) => a.value = !0),
|
|
1473
|
+
onBlur: s[2] || (s[2] = (_) => a.value = !1),
|
|
1474
|
+
onClick: s[3] || (s[3] = ge(() => {
|
|
1475
1475
|
}, ["stop"]))
|
|
1476
1476
|
}, null, 42, Ho), [
|
|
1477
|
-
[sn,
|
|
1477
|
+
[sn, u(i)]
|
|
1478
1478
|
]),
|
|
1479
|
-
|
|
1480
|
-
class:
|
|
1481
|
-
style:
|
|
1482
|
-
onKeydown:
|
|
1479
|
+
C("span", {
|
|
1480
|
+
class: L(u(t).be("button", "inner")),
|
|
1481
|
+
style: Qe(u(i) === c.label ? u(V) : {}),
|
|
1482
|
+
onKeydown: s[4] || (s[4] = ge(() => {
|
|
1483
1483
|
}, ["stop"]))
|
|
1484
1484
|
}, [
|
|
1485
1485
|
me(c.$slots, "default", {}, () => [
|
|
1486
|
-
P(
|
|
1486
|
+
P(te(c.label), 1)
|
|
1487
1487
|
])
|
|
1488
1488
|
], 38)
|
|
1489
1489
|
], 2);
|
|
@@ -1522,39 +1522,39 @@ const Xo = ce({
|
|
|
1522
1522
|
type: Boolean,
|
|
1523
1523
|
default: !0
|
|
1524
1524
|
}
|
|
1525
|
-
}), el = Sn, tl = ["id", "aria-label", "aria-labelledby"], nl =
|
|
1525
|
+
}), el = Sn, tl = ["id", "aria-label", "aria-labelledby"], nl = Z({
|
|
1526
1526
|
name: "ElRadioGroup"
|
|
1527
|
-
}), rl = /* @__PURE__ */
|
|
1527
|
+
}), rl = /* @__PURE__ */ Z({
|
|
1528
1528
|
...nl,
|
|
1529
1529
|
props: Xo,
|
|
1530
1530
|
emits: el,
|
|
1531
1531
|
setup(n, { emit: e }) {
|
|
1532
|
-
const t = n, r = ye("radio"), a = Xt(), l =
|
|
1532
|
+
const t = n, r = ye("radio"), a = Xt(), l = Q(), { formItem: o } = _n(), { inputId: i, isLabeledByFormItem: p } = mr(t, {
|
|
1533
1533
|
formItemContext: o
|
|
1534
|
-
}),
|
|
1535
|
-
e(he,
|
|
1534
|
+
}), V = (s) => {
|
|
1535
|
+
e(he, s), Xe(() => e("change", s));
|
|
1536
1536
|
};
|
|
1537
1537
|
Ae(() => {
|
|
1538
|
-
const
|
|
1539
|
-
!Array.from(
|
|
1538
|
+
const s = l.value.querySelectorAll("[type=radio]"), x = s[0];
|
|
1539
|
+
!Array.from(s).some((_) => _.checked) && x && (x.tabIndex = 0);
|
|
1540
1540
|
});
|
|
1541
|
-
const c =
|
|
1542
|
-
return mt(Fn,
|
|
1541
|
+
const c = N(() => t.name || a.value);
|
|
1542
|
+
return mt(Fn, Ze({
|
|
1543
1543
|
...vt(t),
|
|
1544
|
-
changeEvent:
|
|
1544
|
+
changeEvent: V,
|
|
1545
1545
|
name: c
|
|
1546
|
-
})),
|
|
1547
|
-
t.validateEvent && (o == null || o.validate("change").catch((
|
|
1548
|
-
}), (
|
|
1549
|
-
id:
|
|
1546
|
+
})), ve(() => t.modelValue, () => {
|
|
1547
|
+
t.validateEvent && (o == null || o.validate("change").catch((s) => pe(s)));
|
|
1548
|
+
}), (s, x) => (I(), q("div", {
|
|
1549
|
+
id: u(i),
|
|
1550
1550
|
ref_key: "radioGroupRef",
|
|
1551
1551
|
ref: l,
|
|
1552
|
-
class:
|
|
1552
|
+
class: L(u(r).b("group")),
|
|
1553
1553
|
role: "radiogroup",
|
|
1554
|
-
"aria-label":
|
|
1555
|
-
"aria-labelledby":
|
|
1554
|
+
"aria-label": u(p) ? void 0 : s.label || "radio-group",
|
|
1555
|
+
"aria-labelledby": u(p) ? u(o).labelId : void 0
|
|
1556
1556
|
}, [
|
|
1557
|
-
me(
|
|
1557
|
+
me(s.$slots, "default")
|
|
1558
1558
|
], 10, tl));
|
|
1559
1559
|
}
|
|
1560
1560
|
});
|
|
@@ -1597,7 +1597,7 @@ const al = ce({
|
|
|
1597
1597
|
},
|
|
1598
1598
|
valueOnClear: {
|
|
1599
1599
|
type: [String, Number, null],
|
|
1600
|
-
validator: (n) => n === null ||
|
|
1600
|
+
validator: (n) => n === null || ae(n) || ["min", "max"].includes(n),
|
|
1601
1601
|
default: null
|
|
1602
1602
|
},
|
|
1603
1603
|
name: String,
|
|
@@ -1615,183 +1615,183 @@ const al = ce({
|
|
|
1615
1615
|
[Vt]: (n, e) => e !== n,
|
|
1616
1616
|
blur: (n) => n instanceof FocusEvent,
|
|
1617
1617
|
focus: (n) => n instanceof FocusEvent,
|
|
1618
|
-
[
|
|
1619
|
-
[he]: (n) =>
|
|
1620
|
-
}, ll = ["aria-label", "onKeydown"], il = ["aria-label", "onKeydown"], sl =
|
|
1618
|
+
[ze]: (n) => ae(n) || Se(n),
|
|
1619
|
+
[he]: (n) => ae(n) || Se(n)
|
|
1620
|
+
}, ll = ["aria-label", "onKeydown"], il = ["aria-label", "onKeydown"], sl = Z({
|
|
1621
1621
|
name: "ElInputNumber"
|
|
1622
|
-
}), ul = /* @__PURE__ */
|
|
1622
|
+
}), ul = /* @__PURE__ */ Z({
|
|
1623
1623
|
...sl,
|
|
1624
1624
|
props: al,
|
|
1625
1625
|
emits: ol,
|
|
1626
1626
|
setup(n, { expose: e, emit: t }) {
|
|
1627
|
-
const r = n, { t: a } = zn(), l = ye("input-number"), o =
|
|
1627
|
+
const r = n, { t: a } = zn(), l = ye("input-number"), o = Q(), i = Ze({
|
|
1628
1628
|
currentValue: r.modelValue,
|
|
1629
1629
|
userInput: null
|
|
1630
|
-
}), { formItem: p } = _n(),
|
|
1631
|
-
const
|
|
1632
|
-
return
|
|
1633
|
-
}),
|
|
1630
|
+
}), { formItem: p } = _n(), V = N(() => ae(r.modelValue) && r.modelValue <= r.min), c = N(() => ae(r.modelValue) && r.modelValue >= r.max), s = N(() => {
|
|
1631
|
+
const m = d(r.step);
|
|
1632
|
+
return Le(r.precision) ? Math.max(d(r.modelValue), m) : (m > r.precision && pe("InputNumber", "precision should not be less than the decimal places of step"), r.precision);
|
|
1633
|
+
}), x = N(() => r.controls && r.controlsPosition === "right"), _ = je(), f = hn(), v = N(() => {
|
|
1634
1634
|
if (i.userInput !== null)
|
|
1635
1635
|
return i.userInput;
|
|
1636
|
-
let
|
|
1637
|
-
if (Se(
|
|
1636
|
+
let m = i.currentValue;
|
|
1637
|
+
if (Se(m))
|
|
1638
1638
|
return "";
|
|
1639
|
-
if (
|
|
1640
|
-
if (Number.isNaN(
|
|
1639
|
+
if (ae(m)) {
|
|
1640
|
+
if (Number.isNaN(m))
|
|
1641
1641
|
return "";
|
|
1642
|
-
|
|
1642
|
+
Le(r.precision) || (m = m.toFixed(r.precision));
|
|
1643
1643
|
}
|
|
1644
|
-
return
|
|
1645
|
-
}),
|
|
1646
|
-
if (
|
|
1647
|
-
return Math.round(
|
|
1648
|
-
let A = String(
|
|
1649
|
-
const
|
|
1650
|
-
if (
|
|
1651
|
-
return
|
|
1652
|
-
const
|
|
1653
|
-
return A.charAt(
|
|
1654
|
-
},
|
|
1655
|
-
if (Se(
|
|
1644
|
+
return m;
|
|
1645
|
+
}), h = (m, E) => {
|
|
1646
|
+
if (Le(E) && (E = s.value), E === 0)
|
|
1647
|
+
return Math.round(m);
|
|
1648
|
+
let A = String(m);
|
|
1649
|
+
const W = A.indexOf(".");
|
|
1650
|
+
if (W === -1 || !A.replace(".", "").split("")[W + E])
|
|
1651
|
+
return m;
|
|
1652
|
+
const re = A.length;
|
|
1653
|
+
return A.charAt(re - 1) === "5" && (A = `${A.slice(0, Math.max(0, re - 1))}6`), Number.parseFloat(Number(A).toFixed(E));
|
|
1654
|
+
}, d = (m) => {
|
|
1655
|
+
if (Se(m))
|
|
1656
1656
|
return 0;
|
|
1657
|
-
const
|
|
1658
|
-
let
|
|
1659
|
-
return A !== -1 && (
|
|
1660
|
-
},
|
|
1661
|
-
if (r.readonly ||
|
|
1657
|
+
const E = m.toString(), A = E.indexOf(".");
|
|
1658
|
+
let W = 0;
|
|
1659
|
+
return A !== -1 && (W = E.length - A - 1), W;
|
|
1660
|
+
}, g = (m, E = 1) => ae(m) ? h(m + r.step * E) : i.currentValue, y = () => {
|
|
1661
|
+
if (r.readonly || f.value || c.value)
|
|
1662
1662
|
return;
|
|
1663
|
-
const
|
|
1664
|
-
|
|
1665
|
-
},
|
|
1666
|
-
if (r.readonly ||
|
|
1663
|
+
const m = Number(v.value) || 0, E = g(m);
|
|
1664
|
+
$(E), t(ze, i.currentValue);
|
|
1665
|
+
}, w = () => {
|
|
1666
|
+
if (r.readonly || f.value || V.value)
|
|
1667
1667
|
return;
|
|
1668
|
-
const
|
|
1669
|
-
|
|
1670
|
-
},
|
|
1671
|
-
const { max: A, min:
|
|
1672
|
-
A <
|
|
1673
|
-
let
|
|
1674
|
-
if (Se(
|
|
1668
|
+
const m = Number(v.value) || 0, E = g(m, -1);
|
|
1669
|
+
$(E), t(ze, i.currentValue);
|
|
1670
|
+
}, k = (m, E) => {
|
|
1671
|
+
const { max: A, min: W, step: D, precision: j, stepStrictly: re, valueOnClear: Y } = r;
|
|
1672
|
+
A < W && Zt("InputNumber", "min should not be greater than max.");
|
|
1673
|
+
let K = Number(m);
|
|
1674
|
+
if (Se(m) || Number.isNaN(K))
|
|
1675
1675
|
return null;
|
|
1676
|
-
if (
|
|
1677
|
-
if (
|
|
1676
|
+
if (m === "") {
|
|
1677
|
+
if (Y === null)
|
|
1678
1678
|
return null;
|
|
1679
|
-
|
|
1679
|
+
K = _e(Y) ? { min: W, max: A }[Y] : Y;
|
|
1680
1680
|
}
|
|
1681
|
-
return
|
|
1682
|
-
},
|
|
1681
|
+
return re && (K = h(Math.round(K / D) * D, j)), Le(j) || (K = h(K, j)), (K > A || K < W) && (K = K > A ? A : W, E && t(he, K)), K;
|
|
1682
|
+
}, $ = (m, E = !0) => {
|
|
1683
1683
|
var A;
|
|
1684
|
-
const
|
|
1685
|
-
if (!
|
|
1686
|
-
t(he,
|
|
1684
|
+
const W = i.currentValue, D = k(m);
|
|
1685
|
+
if (!E) {
|
|
1686
|
+
t(he, D);
|
|
1687
1687
|
return;
|
|
1688
1688
|
}
|
|
1689
|
-
|
|
1690
|
-
},
|
|
1691
|
-
i.userInput =
|
|
1692
|
-
const
|
|
1693
|
-
t(
|
|
1694
|
-
},
|
|
1695
|
-
const
|
|
1696
|
-
(
|
|
1697
|
-
},
|
|
1698
|
-
var
|
|
1699
|
-
(
|
|
1700
|
-
},
|
|
1701
|
-
var
|
|
1702
|
-
(
|
|
1703
|
-
},
|
|
1704
|
-
t("focus",
|
|
1705
|
-
},
|
|
1706
|
-
var
|
|
1707
|
-
t("blur",
|
|
1689
|
+
W !== D && (i.userInput = null, t(he, D), t(Vt, D, W), r.validateEvent && ((A = p == null ? void 0 : p.validate) == null || A.call(p, "change").catch((j) => pe(j))), i.currentValue = D);
|
|
1690
|
+
}, b = (m) => {
|
|
1691
|
+
i.userInput = m;
|
|
1692
|
+
const E = m === "" ? null : Number(m);
|
|
1693
|
+
t(ze, E), $(E, !1);
|
|
1694
|
+
}, O = (m) => {
|
|
1695
|
+
const E = m !== "" ? Number(m) : "";
|
|
1696
|
+
(ae(E) && !Number.isNaN(E) || m === "") && $(E), i.userInput = null;
|
|
1697
|
+
}, G = () => {
|
|
1698
|
+
var m, E;
|
|
1699
|
+
(E = (m = o.value) == null ? void 0 : m.focus) == null || E.call(m);
|
|
1700
|
+
}, oe = () => {
|
|
1701
|
+
var m, E;
|
|
1702
|
+
(E = (m = o.value) == null ? void 0 : m.blur) == null || E.call(m);
|
|
1703
|
+
}, le = (m) => {
|
|
1704
|
+
t("focus", m);
|
|
1705
|
+
}, X = (m) => {
|
|
1706
|
+
var E;
|
|
1707
|
+
t("blur", m), r.validateEvent && ((E = p == null ? void 0 : p.validate) == null || E.call(p, "blur").catch((A) => pe(A)));
|
|
1708
1708
|
};
|
|
1709
|
-
return
|
|
1710
|
-
const
|
|
1711
|
-
!
|
|
1709
|
+
return ve(() => r.modelValue, (m) => {
|
|
1710
|
+
const E = k(i.userInput), A = k(m, !0);
|
|
1711
|
+
!ae(E) && (!E || E !== A) && (i.currentValue = A, i.userInput = null);
|
|
1712
1712
|
}, { immediate: !0 }), Ae(() => {
|
|
1713
|
-
var
|
|
1714
|
-
const { min:
|
|
1715
|
-
if (
|
|
1716
|
-
let j = Number(
|
|
1713
|
+
var m;
|
|
1714
|
+
const { min: E, max: A, modelValue: W } = r, D = (m = o.value) == null ? void 0 : m.input;
|
|
1715
|
+
if (D.setAttribute("role", "spinbutton"), Number.isFinite(A) ? D.setAttribute("aria-valuemax", String(A)) : D.removeAttribute("aria-valuemax"), Number.isFinite(E) ? D.setAttribute("aria-valuemin", String(E)) : D.removeAttribute("aria-valuemin"), D.setAttribute("aria-valuenow", i.currentValue || i.currentValue === 0 ? String(i.currentValue) : ""), D.setAttribute("aria-disabled", String(f.value)), !ae(W) && W != null) {
|
|
1716
|
+
let j = Number(W);
|
|
1717
1717
|
Number.isNaN(j) && (j = null), t(he, j);
|
|
1718
1718
|
}
|
|
1719
1719
|
}), rn(() => {
|
|
1720
|
-
var
|
|
1721
|
-
const A = (
|
|
1722
|
-
A == null || A.setAttribute("aria-valuenow", `${(
|
|
1720
|
+
var m, E;
|
|
1721
|
+
const A = (m = o.value) == null ? void 0 : m.input;
|
|
1722
|
+
A == null || A.setAttribute("aria-valuenow", `${(E = i.currentValue) != null ? E : ""}`);
|
|
1723
1723
|
}), e({
|
|
1724
|
-
focus:
|
|
1725
|
-
blur:
|
|
1726
|
-
}), (
|
|
1727
|
-
class:
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1724
|
+
focus: G,
|
|
1725
|
+
blur: oe
|
|
1726
|
+
}), (m, E) => (I(), q("div", {
|
|
1727
|
+
class: L([
|
|
1728
|
+
u(l).b(),
|
|
1729
|
+
u(l).m(u(_)),
|
|
1730
|
+
u(l).is("disabled", u(f)),
|
|
1731
|
+
u(l).is("without-controls", !m.controls),
|
|
1732
|
+
u(l).is("controls-right", u(x))
|
|
1733
1733
|
]),
|
|
1734
|
-
onDragstart:
|
|
1734
|
+
onDragstart: E[1] || (E[1] = ge(() => {
|
|
1735
1735
|
}, ["prevent"]))
|
|
1736
1736
|
}, [
|
|
1737
|
-
|
|
1737
|
+
m.controls ? $e((I(), q("span", {
|
|
1738
1738
|
key: 0,
|
|
1739
1739
|
role: "button",
|
|
1740
|
-
"aria-label":
|
|
1741
|
-
class:
|
|
1742
|
-
onKeydown:
|
|
1740
|
+
"aria-label": u(a)("el.inputNumber.decrease"),
|
|
1741
|
+
class: L([u(l).e("decrease"), u(l).is("disabled", u(V))]),
|
|
1742
|
+
onKeydown: Ue(w, ["enter"])
|
|
1743
1743
|
}, [
|
|
1744
|
-
|
|
1745
|
-
default:
|
|
1746
|
-
|
|
1744
|
+
F(u(qe), null, {
|
|
1745
|
+
default: S(() => [
|
|
1746
|
+
u(x) ? (I(), U(u(vr), { key: 0 })) : (I(), U(u(gr), { key: 1 }))
|
|
1747
1747
|
]),
|
|
1748
1748
|
_: 1
|
|
1749
1749
|
})
|
|
1750
1750
|
], 42, ll)), [
|
|
1751
|
-
[
|
|
1752
|
-
]) :
|
|
1753
|
-
|
|
1751
|
+
[u(Qt), w]
|
|
1752
|
+
]) : z("v-if", !0),
|
|
1753
|
+
m.controls ? $e((I(), q("span", {
|
|
1754
1754
|
key: 1,
|
|
1755
1755
|
role: "button",
|
|
1756
|
-
"aria-label":
|
|
1757
|
-
class:
|
|
1758
|
-
onKeydown:
|
|
1756
|
+
"aria-label": u(a)("el.inputNumber.increase"),
|
|
1757
|
+
class: L([u(l).e("increase"), u(l).is("disabled", u(c))]),
|
|
1758
|
+
onKeydown: Ue(y, ["enter"])
|
|
1759
1759
|
}, [
|
|
1760
|
-
|
|
1761
|
-
default:
|
|
1762
|
-
|
|
1760
|
+
F(u(qe), null, {
|
|
1761
|
+
default: S(() => [
|
|
1762
|
+
u(x) ? (I(), U(u(yr), { key: 0 })) : (I(), U(u(ot), { key: 1 }))
|
|
1763
1763
|
]),
|
|
1764
1764
|
_: 1
|
|
1765
1765
|
})
|
|
1766
1766
|
], 42, il)), [
|
|
1767
|
-
[
|
|
1768
|
-
]) :
|
|
1769
|
-
|
|
1770
|
-
id:
|
|
1767
|
+
[u(Qt), y]
|
|
1768
|
+
]) : z("v-if", !0),
|
|
1769
|
+
F(u(xt), {
|
|
1770
|
+
id: m.id,
|
|
1771
1771
|
ref_key: "input",
|
|
1772
1772
|
ref: o,
|
|
1773
1773
|
type: "number",
|
|
1774
|
-
step:
|
|
1775
|
-
"model-value":
|
|
1776
|
-
placeholder:
|
|
1777
|
-
readonly:
|
|
1778
|
-
disabled:
|
|
1779
|
-
size:
|
|
1780
|
-
max:
|
|
1781
|
-
min:
|
|
1782
|
-
name:
|
|
1783
|
-
label:
|
|
1774
|
+
step: m.step,
|
|
1775
|
+
"model-value": u(v),
|
|
1776
|
+
placeholder: m.placeholder,
|
|
1777
|
+
readonly: m.readonly,
|
|
1778
|
+
disabled: u(f),
|
|
1779
|
+
size: u(_),
|
|
1780
|
+
max: m.max,
|
|
1781
|
+
min: m.min,
|
|
1782
|
+
name: m.name,
|
|
1783
|
+
label: m.label,
|
|
1784
1784
|
"validate-event": !1,
|
|
1785
|
-
onWheel:
|
|
1785
|
+
onWheel: E[0] || (E[0] = ge(() => {
|
|
1786
1786
|
}, ["prevent"])),
|
|
1787
1787
|
onKeydown: [
|
|
1788
|
-
|
|
1789
|
-
|
|
1788
|
+
Ue(ge(y, ["prevent"]), ["up"]),
|
|
1789
|
+
Ue(ge(w, ["prevent"]), ["down"])
|
|
1790
1790
|
],
|
|
1791
|
-
onBlur:
|
|
1792
|
-
onFocus:
|
|
1793
|
-
onInput:
|
|
1794
|
-
onChange:
|
|
1791
|
+
onBlur: X,
|
|
1792
|
+
onFocus: le,
|
|
1793
|
+
onInput: b,
|
|
1794
|
+
onChange: O
|
|
1795
1795
|
}, null, 8, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "label", "onKeydown"])
|
|
1796
1796
|
], 34));
|
|
1797
1797
|
}
|
|
@@ -1815,22 +1815,22 @@ const Nn = Me(dl), cl = ce({
|
|
|
1815
1815
|
type: String,
|
|
1816
1816
|
default: "span"
|
|
1817
1817
|
}
|
|
1818
|
-
}), fl =
|
|
1818
|
+
}), fl = Z({
|
|
1819
1819
|
name: "ElText"
|
|
1820
|
-
}), pl = /* @__PURE__ */
|
|
1820
|
+
}), pl = /* @__PURE__ */ Z({
|
|
1821
1821
|
...fl,
|
|
1822
1822
|
props: cl,
|
|
1823
1823
|
setup(n) {
|
|
1824
|
-
const e = n, t = je(), r = ye("text"), a =
|
|
1824
|
+
const e = n, t = je(), r = ye("text"), a = N(() => [
|
|
1825
1825
|
r.b(),
|
|
1826
1826
|
r.m(e.type),
|
|
1827
1827
|
r.m(t.value),
|
|
1828
1828
|
r.is("truncated", e.truncated)
|
|
1829
1829
|
]);
|
|
1830
|
-
return (l, o) => (
|
|
1831
|
-
class:
|
|
1830
|
+
return (l, o) => (I(), U(gt(l.tag), {
|
|
1831
|
+
class: L(u(a))
|
|
1832
1832
|
}, {
|
|
1833
|
-
default:
|
|
1833
|
+
default: S(() => [
|
|
1834
1834
|
me(l.$slots, "default")
|
|
1835
1835
|
]),
|
|
1836
1836
|
_: 3
|
|
@@ -1838,7 +1838,7 @@ const Nn = Me(dl), cl = ce({
|
|
|
1838
1838
|
}
|
|
1839
1839
|
});
|
|
1840
1840
|
var ml = /* @__PURE__ */ be(pl, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);
|
|
1841
|
-
const vl = Me(ml), Mn = ["success", "info", "warning", "error"], ie =
|
|
1841
|
+
const vl = Me(ml), Mn = ["success", "info", "warning", "error"], ie = xr({
|
|
1842
1842
|
customClass: "",
|
|
1843
1843
|
center: !1,
|
|
1844
1844
|
dangerouslyUseHTMLString: !1,
|
|
@@ -1925,108 +1925,108 @@ const vl = Me(ml), Mn = ["success", "info", "warning", "error"], ie = wr({
|
|
|
1925
1925
|
}, hl = (n) => {
|
|
1926
1926
|
const { prev: e } = bl(n);
|
|
1927
1927
|
return e ? e.vm.exposed.bottom.value : 0;
|
|
1928
|
-
}, _l = (n, e) => de.findIndex((r) => r.id === n) > 0 ? 20 : e,
|
|
1928
|
+
}, _l = (n, e) => de.findIndex((r) => r.id === n) > 0 ? 20 : e, wl = ["id"], xl = ["innerHTML"], Ol = Z({
|
|
1929
1929
|
name: "ElMessage"
|
|
1930
|
-
}), kl = /* @__PURE__ */
|
|
1930
|
+
}), kl = /* @__PURE__ */ Z({
|
|
1931
1931
|
...Ol,
|
|
1932
1932
|
props: gl,
|
|
1933
1933
|
emits: yl,
|
|
1934
1934
|
setup(n, { expose: e }) {
|
|
1935
|
-
const t = n, { Close: r } = hr, { ns: a, zIndex: l } = kr("message"), { currentZIndex: o, nextZIndex: i } = l, p =
|
|
1936
|
-
let
|
|
1937
|
-
const
|
|
1938
|
-
const
|
|
1939
|
-
return { [a.bm("icon",
|
|
1940
|
-
}),
|
|
1941
|
-
top: `${
|
|
1935
|
+
const t = n, { Close: r } = hr, { ns: a, zIndex: l } = kr("message"), { currentZIndex: o, nextZIndex: i } = l, p = Q(), V = Q(!1), c = Q(0);
|
|
1936
|
+
let s;
|
|
1937
|
+
const x = N(() => t.type ? t.type === "error" ? "danger" : t.type : "info"), _ = N(() => {
|
|
1938
|
+
const b = t.type;
|
|
1939
|
+
return { [a.bm("icon", b)]: b && At[b] };
|
|
1940
|
+
}), f = N(() => t.icon || At[t.type] || ""), v = N(() => hl(t.id)), h = N(() => _l(t.id, t.offset) + v.value), d = N(() => c.value + h.value), g = N(() => ({
|
|
1941
|
+
top: `${h.value}px`,
|
|
1942
1942
|
zIndex: o.value
|
|
1943
1943
|
}));
|
|
1944
|
-
function
|
|
1945
|
-
t.duration !== 0 && ({ stop:
|
|
1946
|
-
|
|
1944
|
+
function y() {
|
|
1945
|
+
t.duration !== 0 && ({ stop: s } = Wn(() => {
|
|
1946
|
+
k();
|
|
1947
1947
|
}, t.duration));
|
|
1948
1948
|
}
|
|
1949
|
-
function
|
|
1950
|
-
|
|
1949
|
+
function w() {
|
|
1950
|
+
s == null || s();
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1953
|
-
|
|
1952
|
+
function k() {
|
|
1953
|
+
V.value = !1;
|
|
1954
1954
|
}
|
|
1955
|
-
function
|
|
1956
|
-
|
|
1955
|
+
function $({ code: b }) {
|
|
1956
|
+
b === Ir.esc && k();
|
|
1957
1957
|
}
|
|
1958
1958
|
return Ae(() => {
|
|
1959
|
-
|
|
1960
|
-
}),
|
|
1961
|
-
|
|
1962
|
-
}), pr(document, "keydown",
|
|
1959
|
+
y(), i(), V.value = !0;
|
|
1960
|
+
}), ve(() => t.repeatNum, () => {
|
|
1961
|
+
w(), y();
|
|
1962
|
+
}), pr(document, "keydown", $), pn(p, () => {
|
|
1963
1963
|
c.value = p.value.getBoundingClientRect().height;
|
|
1964
1964
|
}), e({
|
|
1965
|
-
visible:
|
|
1966
|
-
bottom:
|
|
1967
|
-
close:
|
|
1968
|
-
}), (
|
|
1969
|
-
name:
|
|
1970
|
-
onBeforeLeave:
|
|
1971
|
-
onAfterLeave:
|
|
1965
|
+
visible: V,
|
|
1966
|
+
bottom: d,
|
|
1967
|
+
close: k
|
|
1968
|
+
}), (b, O) => (I(), U(an, {
|
|
1969
|
+
name: u(a).b("fade"),
|
|
1970
|
+
onBeforeLeave: b.onClose,
|
|
1971
|
+
onAfterLeave: O[0] || (O[0] = (G) => b.$emit("destroy")),
|
|
1972
1972
|
persisted: ""
|
|
1973
1973
|
}, {
|
|
1974
|
-
default:
|
|
1975
|
-
|
|
1976
|
-
id:
|
|
1974
|
+
default: S(() => [
|
|
1975
|
+
$e(C("div", {
|
|
1976
|
+
id: b.id,
|
|
1977
1977
|
ref_key: "messageRef",
|
|
1978
1978
|
ref: p,
|
|
1979
|
-
class:
|
|
1980
|
-
|
|
1981
|
-
{ [
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1979
|
+
class: L([
|
|
1980
|
+
u(a).b(),
|
|
1981
|
+
{ [u(a).m(b.type)]: b.type && !b.icon },
|
|
1982
|
+
u(a).is("center", b.center),
|
|
1983
|
+
u(a).is("closable", b.showClose),
|
|
1984
|
+
b.customClass
|
|
1985
1985
|
]),
|
|
1986
|
-
style:
|
|
1986
|
+
style: Qe(u(g)),
|
|
1987
1987
|
role: "alert",
|
|
1988
|
-
onMouseenter:
|
|
1989
|
-
onMouseleave:
|
|
1988
|
+
onMouseenter: w,
|
|
1989
|
+
onMouseleave: y
|
|
1990
1990
|
}, [
|
|
1991
|
-
|
|
1991
|
+
b.repeatNum > 1 ? (I(), U(u(Uo), {
|
|
1992
1992
|
key: 0,
|
|
1993
|
-
value:
|
|
1994
|
-
type:
|
|
1995
|
-
class:
|
|
1996
|
-
}, null, 8, ["value", "type", "class"])) :
|
|
1997
|
-
|
|
1993
|
+
value: b.repeatNum,
|
|
1994
|
+
type: u(x),
|
|
1995
|
+
class: L(u(a).e("badge"))
|
|
1996
|
+
}, null, 8, ["value", "type", "class"])) : z("v-if", !0),
|
|
1997
|
+
u(f) ? (I(), U(u(qe), {
|
|
1998
1998
|
key: 1,
|
|
1999
|
-
class:
|
|
1999
|
+
class: L([u(a).e("icon"), u(_)])
|
|
2000
2000
|
}, {
|
|
2001
|
-
default:
|
|
2002
|
-
(
|
|
2001
|
+
default: S(() => [
|
|
2002
|
+
(I(), U(gt(u(f))))
|
|
2003
2003
|
]),
|
|
2004
2004
|
_: 1
|
|
2005
|
-
}, 8, ["class"])) :
|
|
2006
|
-
me(
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
class:
|
|
2011
|
-
innerHTML:
|
|
2012
|
-
}, null, 10,
|
|
2013
|
-
], 2112)) : (
|
|
2005
|
+
}, 8, ["class"])) : z("v-if", !0),
|
|
2006
|
+
me(b.$slots, "default", {}, () => [
|
|
2007
|
+
b.dangerouslyUseHTMLString ? (I(), q(H, { key: 1 }, [
|
|
2008
|
+
z(" Caution here, message could've been compromised, never use user's input as message "),
|
|
2009
|
+
C("p", {
|
|
2010
|
+
class: L(u(a).e("content")),
|
|
2011
|
+
innerHTML: b.message
|
|
2012
|
+
}, null, 10, xl)
|
|
2013
|
+
], 2112)) : (I(), q("p", {
|
|
2014
2014
|
key: 0,
|
|
2015
|
-
class:
|
|
2016
|
-
},
|
|
2015
|
+
class: L(u(a).e("content"))
|
|
2016
|
+
}, te(b.message), 3))
|
|
2017
2017
|
]),
|
|
2018
|
-
|
|
2018
|
+
b.showClose ? (I(), U(u(qe), {
|
|
2019
2019
|
key: 2,
|
|
2020
|
-
class:
|
|
2021
|
-
onClick:
|
|
2020
|
+
class: L(u(a).e("closeBtn")),
|
|
2021
|
+
onClick: ge(k, ["stop"])
|
|
2022
2022
|
}, {
|
|
2023
|
-
default:
|
|
2024
|
-
|
|
2023
|
+
default: S(() => [
|
|
2024
|
+
F(u(r))
|
|
2025
2025
|
]),
|
|
2026
2026
|
_: 1
|
|
2027
|
-
}, 8, ["class", "onClick"])) :
|
|
2028
|
-
], 46,
|
|
2029
|
-
[on,
|
|
2027
|
+
}, 8, ["class", "onClick"])) : z("v-if", !0)
|
|
2028
|
+
], 46, wl), [
|
|
2029
|
+
[on, V.value]
|
|
2030
2030
|
])
|
|
2031
2031
|
]),
|
|
2032
2032
|
_: 3
|
|
@@ -2036,7 +2036,7 @@ const vl = Me(ml), Mn = ["success", "info", "warning", "error"], ie = wr({
|
|
|
2036
2036
|
var Il = /* @__PURE__ */ be(kl, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);
|
|
2037
2037
|
let $l = 1;
|
|
2038
2038
|
const An = (n) => {
|
|
2039
|
-
const e = !n || _e(n) || un(n) ||
|
|
2039
|
+
const e = !n || _e(n) || un(n) || xe(n) ? { message: n } : n, t = {
|
|
2040
2040
|
...ie,
|
|
2041
2041
|
...e
|
|
2042
2042
|
};
|
|
@@ -2064,10 +2064,10 @@ const An = (n) => {
|
|
|
2064
2064
|
onDestroy: () => {
|
|
2065
2065
|
Nt(null, l);
|
|
2066
2066
|
}
|
|
2067
|
-
}, i =
|
|
2068
|
-
default:
|
|
2067
|
+
}, i = F(Il, o, xe(o.message) || un(o.message) ? {
|
|
2068
|
+
default: xe(o.message) ? o.message : () => o.message
|
|
2069
2069
|
} : null);
|
|
2070
|
-
i.appContext = t ||
|
|
2070
|
+
i.appContext = t || Ve._context, Nt(i, l), n.appendChild(l.firstElementChild);
|
|
2071
2071
|
const p = i.component, c = {
|
|
2072
2072
|
id: r,
|
|
2073
2073
|
vnode: i,
|
|
@@ -2080,11 +2080,11 @@ const An = (n) => {
|
|
|
2080
2080
|
props: i.component.props
|
|
2081
2081
|
};
|
|
2082
2082
|
return c;
|
|
2083
|
-
},
|
|
2083
|
+
}, Ve = (n = {}, e) => {
|
|
2084
2084
|
if (!en)
|
|
2085
2085
|
return { close: () => {
|
|
2086
2086
|
} };
|
|
2087
|
-
if (
|
|
2087
|
+
if (ae(jt.max) && de.length >= jt.max)
|
|
2088
2088
|
return { close: () => {
|
|
2089
2089
|
} };
|
|
2090
2090
|
const t = An(n);
|
|
@@ -2100,20 +2100,20 @@ const An = (n) => {
|
|
|
2100
2100
|
return de.push(r), r.handler;
|
|
2101
2101
|
};
|
|
2102
2102
|
Mn.forEach((n) => {
|
|
2103
|
-
|
|
2103
|
+
Ve[n] = (e = {}, t) => {
|
|
2104
2104
|
const r = An(e);
|
|
2105
|
-
return
|
|
2105
|
+
return Ve({ ...r, type: n }, t);
|
|
2106
2106
|
};
|
|
2107
2107
|
});
|
|
2108
2108
|
function Sl(n) {
|
|
2109
2109
|
for (const e of de)
|
|
2110
2110
|
(!n || n === e.props.type) && e.handler.close();
|
|
2111
2111
|
}
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
const
|
|
2112
|
+
Ve.closeAll = Sl;
|
|
2113
|
+
Ve._context = null;
|
|
2114
|
+
const Ie = Yn(Ve, "$message");
|
|
2115
2115
|
const Ht = {
|
|
2116
|
-
// 品种市场
|
|
2116
|
+
// 品种市场 [选项: 前端默认]
|
|
2117
2117
|
varietyMarket: {
|
|
2118
2118
|
show: !0,
|
|
2119
2119
|
options: [
|
|
@@ -2126,7 +2126,7 @@ const Ht = {
|
|
|
2126
2126
|
{ label: "期权", value: 8, memo: [11] }
|
|
2127
2127
|
]
|
|
2128
2128
|
},
|
|
2129
|
-
// 常用选项
|
|
2129
|
+
// 常用选项 [选项: 前端默认]
|
|
2130
2130
|
commonOption: {
|
|
2131
2131
|
show: !0,
|
|
2132
2132
|
options: [
|
|
@@ -2146,12 +2146,26 @@ const Ht = {
|
|
|
2146
2146
|
{ label: "概念板块指数", value: 15 }
|
|
2147
2147
|
]
|
|
2148
2148
|
},
|
|
2149
|
-
//
|
|
2149
|
+
// 上市板块 [选项: 接口获取**!]
|
|
2150
|
+
marketIds: {
|
|
2151
|
+
show: !0,
|
|
2152
|
+
options: [
|
|
2153
|
+
// { label: "沪深主板", value: 1, varietyMarketIds: "3" },
|
|
2154
|
+
// { label: "创业板", value: 2, varietyMarketIds: "3" },
|
|
2155
|
+
// { label: "科创板", value: 4, varietyMarketIds: "3" },
|
|
2156
|
+
// { label: "新三板", value: 8, varietyMarketIds: "3" },
|
|
2157
|
+
// { label: "沪股通", value: 1024, varietyMarketIds: "3" },
|
|
2158
|
+
// { label: "深股通", value: 2048, varietyMarketIds: "3" },
|
|
2159
|
+
// { label: "沪港通", value: 4096, varietyMarketIds: "5" },
|
|
2160
|
+
// { label: "深港通", value: 8192, varietyMarketIds: "5" },
|
|
2161
|
+
]
|
|
2162
|
+
},
|
|
2163
|
+
// 自定标签 [选项: 接口获取**!]
|
|
2150
2164
|
customTag: {
|
|
2151
2165
|
show: !0,
|
|
2152
2166
|
options: []
|
|
2153
2167
|
},
|
|
2154
|
-
// 因子筛选
|
|
2168
|
+
// 因子筛选 [选项: 接口获取**!]
|
|
2155
2169
|
factorScreen: {
|
|
2156
2170
|
show: !0,
|
|
2157
2171
|
// SQL功能是否展示
|
|
@@ -2167,7 +2181,7 @@ const Ht = {
|
|
|
2167
2181
|
factorDescriptions: []
|
|
2168
2182
|
// 因子使用说明数据源
|
|
2169
2183
|
},
|
|
2170
|
-
// 常用指标
|
|
2184
|
+
// 常用指标 [选项: 前端默认]
|
|
2171
2185
|
commonIndicator: {
|
|
2172
2186
|
show: !0,
|
|
2173
2187
|
options: [
|
|
@@ -2431,6 +2445,16 @@ const Ht = {
|
|
|
2431
2445
|
// 单位下拉框选项
|
|
2432
2446
|
unitOptions: ["%"]
|
|
2433
2447
|
},
|
|
2448
|
+
// 股价分位
|
|
2449
|
+
{
|
|
2450
|
+
key: "priceLevels",
|
|
2451
|
+
label: "股价分位",
|
|
2452
|
+
parent: {
|
|
2453
|
+
varietyMarketIds: [3, 5, 7],
|
|
2454
|
+
commonOptionIds: [4, 6, 12, 14, 15]
|
|
2455
|
+
},
|
|
2456
|
+
type: "custom"
|
|
2457
|
+
},
|
|
2434
2458
|
// ----------期权-----------
|
|
2435
2459
|
// 过期天数
|
|
2436
2460
|
{
|
|
@@ -2562,7 +2586,7 @@ const Ht = {
|
|
|
2562
2586
|
},
|
|
2563
2587
|
type: "custom"
|
|
2564
2588
|
},
|
|
2565
|
-
//
|
|
2589
|
+
// 期权档位
|
|
2566
2590
|
{
|
|
2567
2591
|
key: "optionGear",
|
|
2568
2592
|
label: "期权档位",
|
|
@@ -2580,7 +2604,7 @@ const Ht = {
|
|
|
2580
2604
|
]
|
|
2581
2605
|
}
|
|
2582
2606
|
};
|
|
2583
|
-
const jn = (n) => (ht("data-v-d76a610e"), n = n(), _t(), n), Fl = { class: "factor-screen" }, Tl = { class: "custom-header" }, Cl = ["id"], ql = { class: "form-row" }, Nl = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, Ml = /* @__PURE__ */ jn(() => /* @__PURE__ */
|
|
2607
|
+
const jn = (n) => (ht("data-v-d76a610e"), n = n(), _t(), n), Fl = { class: "factor-screen" }, Tl = { class: "custom-header" }, Cl = ["id"], ql = { class: "form-row" }, Nl = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, Ml = /* @__PURE__ */ jn(() => /* @__PURE__ */ C("span", null, "~", -1)), Al = /* @__PURE__ */ jn(() => /* @__PURE__ */ C("span", null, "&&代表and,||代表or", -1)), jl = { class: "dialog-footer" }, Pl = {
|
|
2584
2608
|
__name: "index",
|
|
2585
2609
|
props: /* @__PURE__ */ yt({
|
|
2586
2610
|
config: {
|
|
@@ -2612,7 +2636,7 @@ const jn = (n) => (ht("data-v-d76a610e"), n = n(), _t(), n), Fl = { class: "fact
|
|
|
2612
2636
|
}),
|
|
2613
2637
|
emits: ["update:data"],
|
|
2614
2638
|
setup(n) {
|
|
2615
|
-
const e = bt(n, "data"), t = n, r =
|
|
2639
|
+
const e = bt(n, "data"), t = n, r = Q(!1), a = Q(!1), l = Q(null), o = Q({
|
|
2616
2640
|
// 筛选因子列表
|
|
2617
2641
|
list: [
|
|
2618
2642
|
{
|
|
@@ -2629,11 +2653,11 @@ const jn = (n) => (ht("data-v-d76a610e"), n = n(), _t(), n), Fl = { class: "fact
|
|
|
2629
2653
|
// SQL语句
|
|
2630
2654
|
sqlValue: null
|
|
2631
2655
|
}), i = () => {
|
|
2632
|
-
const { list:
|
|
2656
|
+
const { list: h, sqlEnable: d, sqlValue: g } = e.value;
|
|
2633
2657
|
o.value = {
|
|
2634
|
-
list: JSON.parse(JSON.stringify(
|
|
2635
|
-
sqlEnable:
|
|
2636
|
-
sqlValue:
|
|
2658
|
+
list: JSON.parse(JSON.stringify(h)),
|
|
2659
|
+
sqlEnable: d,
|
|
2660
|
+
sqlValue: g
|
|
2637
2661
|
}, o.value.list.length || p(), r.value = !0;
|
|
2638
2662
|
}, p = () => {
|
|
2639
2663
|
o.value.list.push({
|
|
@@ -2641,11 +2665,11 @@ const jn = (n) => (ht("data-v-d76a610e"), n = n(), _t(), n), Fl = { class: "fact
|
|
|
2641
2665
|
factor: null,
|
|
2642
2666
|
score: [null, null]
|
|
2643
2667
|
});
|
|
2644
|
-
},
|
|
2645
|
-
l.value.validate((
|
|
2646
|
-
|
|
2647
|
-
let
|
|
2648
|
-
return t.config.cycleShow && (
|
|
2668
|
+
}, V = () => {
|
|
2669
|
+
l.value.validate((h) => {
|
|
2670
|
+
h && (o.value.sqlValue = o.value.list.reduce((d, g, y) => {
|
|
2671
|
+
let w = `factor_id = ${g.factor} and `;
|
|
2672
|
+
return t.config.cycleShow && (w += `freq_id = ${g.cycle} and `), (g.score[0] || g.score[0] === 0) && (g.score[1] || g.score[1] === 0) ? w += `score >= ${g.score[0]} and score <= ${g.score[1]}` : g.score[0] || g.score[0] === 0 ? w += `score >= ${g.score[0]}` : (g.score[1] || g.score[1] === 0) && (w += `score <= ${g.score[1]}`), w = `(${w})`, y !== 0 && (w = ` && ${w}`), d += w, d;
|
|
2649
2673
|
}, ""));
|
|
2650
2674
|
});
|
|
2651
2675
|
}, c = () => {
|
|
@@ -2654,101 +2678,101 @@ const jn = (n) => (ht("data-v-d76a610e"), n = n(), _t(), n), Fl = { class: "fact
|
|
|
2654
2678
|
sqlEnable: 0,
|
|
2655
2679
|
sqlValue: null
|
|
2656
2680
|
};
|
|
2657
|
-
},
|
|
2658
|
-
e.value.list.splice(
|
|
2659
|
-
},
|
|
2660
|
-
o.value.list.splice(
|
|
2661
|
-
},
|
|
2662
|
-
l.value.validate((
|
|
2663
|
-
const { list:
|
|
2664
|
-
if (
|
|
2665
|
-
if (
|
|
2666
|
-
return
|
|
2681
|
+
}, s = (h) => {
|
|
2682
|
+
e.value.list.splice(h, 1);
|
|
2683
|
+
}, x = (h) => {
|
|
2684
|
+
o.value.list.splice(h, 1);
|
|
2685
|
+
}, _ = () => {
|
|
2686
|
+
l.value.validate((h) => {
|
|
2687
|
+
const { list: d, sqlEnable: g, sqlValue: y } = o.value;
|
|
2688
|
+
if (h) {
|
|
2689
|
+
if (g && !y)
|
|
2690
|
+
return Ie.error("SQL语句不能为空");
|
|
2667
2691
|
e.value = {
|
|
2668
|
-
list: JSON.parse(JSON.stringify(
|
|
2669
|
-
sqlEnable:
|
|
2670
|
-
sqlValue:
|
|
2692
|
+
list: JSON.parse(JSON.stringify(d)),
|
|
2693
|
+
sqlEnable: g,
|
|
2694
|
+
sqlValue: y
|
|
2671
2695
|
}, r.value = !1;
|
|
2672
2696
|
}
|
|
2673
2697
|
});
|
|
2674
|
-
},
|
|
2675
|
-
const { cycle:
|
|
2676
|
-
let
|
|
2677
|
-
return
|
|
2678
|
-
}, v = (
|
|
2679
|
-
!
|
|
2698
|
+
}, f = (h) => {
|
|
2699
|
+
const { cycle: d, factor: g, score: y } = h;
|
|
2700
|
+
let w = "";
|
|
2701
|
+
return w += ` ${t.config.cycleOptions.find(({ value: k }) => k === d).label}`, w += ` ${t.config.factorOptions.find(({ value: k }) => k === g).label}`, w += ` ${y[0] || y[0] === 0 ? `${y[0]}分` : "∞"}`, w += " ~", w += ` ${y[1] || y[1] === 0 ? `${y[1]}分` : "∞"}`, w;
|
|
2702
|
+
}, v = (h, d, g) => {
|
|
2703
|
+
!d[0] && d[0] !== 0 && !d[1] && d[1] !== 0 ? g(new Error("至少填写一个分数")) : g();
|
|
2680
2704
|
};
|
|
2681
|
-
return (
|
|
2682
|
-
const
|
|
2683
|
-
return
|
|
2684
|
-
e.value.sqlEnable && e.value.sqlValue ? (
|
|
2705
|
+
return (h, d) => {
|
|
2706
|
+
const g = vl, y = vn, w = bn, k = qe, $ = fr, b = gn, O = yn, G = Mo, oe = Nn, le = Et, X = St, m = xt, E = No, A = mn, W = Xn, D = er;
|
|
2707
|
+
return I(), q("div", Fl, [
|
|
2708
|
+
e.value.sqlEnable && e.value.sqlValue ? (I(), U(y, {
|
|
2685
2709
|
key: 0,
|
|
2686
2710
|
closable: "",
|
|
2687
2711
|
type: "info",
|
|
2688
2712
|
title: e.value.sqlValue,
|
|
2689
2713
|
onClose: c
|
|
2690
2714
|
}, {
|
|
2691
|
-
default:
|
|
2692
|
-
|
|
2715
|
+
default: S(() => [
|
|
2716
|
+
F(g, {
|
|
2693
2717
|
type: "info",
|
|
2694
2718
|
truncated: "",
|
|
2695
2719
|
style: { "max-width": "500px" }
|
|
2696
2720
|
}, {
|
|
2697
|
-
default:
|
|
2698
|
-
P(
|
|
2721
|
+
default: S(() => [
|
|
2722
|
+
P(te(e.value.sqlValue), 1)
|
|
2699
2723
|
]),
|
|
2700
2724
|
_: 1
|
|
2701
2725
|
})
|
|
2702
2726
|
]),
|
|
2703
2727
|
_: 1
|
|
2704
|
-
}, 8, ["title"])) :
|
|
2705
|
-
!e.value.sqlEnable && e.value.list.length ? (
|
|
2728
|
+
}, 8, ["title"])) : z("", !0),
|
|
2729
|
+
!e.value.sqlEnable && e.value.list.length ? (I(!0), q(H, { key: 1 }, se(e.value.list, (j, re) => (I(), U(y, {
|
|
2706
2730
|
closable: "",
|
|
2707
2731
|
type: "info",
|
|
2708
|
-
onClose: (
|
|
2732
|
+
onClose: (Y) => s(re)
|
|
2709
2733
|
}, {
|
|
2710
|
-
default:
|
|
2711
|
-
P(
|
|
2734
|
+
default: S(() => [
|
|
2735
|
+
P(te(f(j)), 1)
|
|
2712
2736
|
]),
|
|
2713
2737
|
_: 2
|
|
2714
|
-
}, 1032, ["onClose"]))), 256)) :
|
|
2715
|
-
|
|
2738
|
+
}, 1032, ["onClose"]))), 256)) : z("", !0),
|
|
2739
|
+
F(w, {
|
|
2716
2740
|
class: "screen-btn",
|
|
2717
2741
|
type: "primary",
|
|
2718
2742
|
plain: "",
|
|
2719
2743
|
size: "small",
|
|
2720
|
-
icon:
|
|
2744
|
+
icon: u(ot),
|
|
2721
2745
|
onClick: i
|
|
2722
2746
|
}, {
|
|
2723
|
-
default:
|
|
2747
|
+
default: S(() => [
|
|
2724
2748
|
P("添加因子")
|
|
2725
2749
|
]),
|
|
2726
2750
|
_: 1
|
|
2727
2751
|
}, 8, ["icon"]),
|
|
2728
|
-
|
|
2752
|
+
F(A, {
|
|
2729
2753
|
modelValue: r.value,
|
|
2730
|
-
"onUpdate:modelValue":
|
|
2754
|
+
"onUpdate:modelValue": d[3] || (d[3] = (j) => r.value = j),
|
|
2731
2755
|
width: "500",
|
|
2732
2756
|
"align-center": "",
|
|
2733
2757
|
"destroy-on-close": ""
|
|
2734
2758
|
}, {
|
|
2735
|
-
header:
|
|
2736
|
-
|
|
2737
|
-
|
|
2759
|
+
header: S(({ titleId: j, titleClass: re }) => [
|
|
2760
|
+
C("div", Tl, [
|
|
2761
|
+
C("span", {
|
|
2738
2762
|
id: j,
|
|
2739
|
-
class:
|
|
2763
|
+
class: L(re)
|
|
2740
2764
|
}, " 因子筛选 ", 10, Cl),
|
|
2741
|
-
|
|
2765
|
+
F($, {
|
|
2742
2766
|
effect: "dark",
|
|
2743
2767
|
content: "点击查看: 因子使用说明",
|
|
2744
2768
|
placement: "right"
|
|
2745
2769
|
}, {
|
|
2746
|
-
default:
|
|
2747
|
-
|
|
2748
|
-
onClick:
|
|
2770
|
+
default: S(() => [
|
|
2771
|
+
F(k, {
|
|
2772
|
+
onClick: d[0] || (d[0] = (Y) => a.value = !0)
|
|
2749
2773
|
}, {
|
|
2750
|
-
default:
|
|
2751
|
-
|
|
2774
|
+
default: S(() => [
|
|
2775
|
+
F(u(_r))
|
|
2752
2776
|
]),
|
|
2753
2777
|
_: 1
|
|
2754
2778
|
})
|
|
@@ -2757,71 +2781,71 @@ const jn = (n) => (ht("data-v-d76a610e"), n = n(), _t(), n), Fl = { class: "fact
|
|
|
2757
2781
|
})
|
|
2758
2782
|
])
|
|
2759
2783
|
]),
|
|
2760
|
-
footer:
|
|
2761
|
-
|
|
2762
|
-
|
|
2784
|
+
footer: S(() => [
|
|
2785
|
+
C("div", jl, [
|
|
2786
|
+
F(w, {
|
|
2763
2787
|
type: "primary",
|
|
2764
|
-
onClick:
|
|
2788
|
+
onClick: _
|
|
2765
2789
|
}, {
|
|
2766
|
-
default:
|
|
2790
|
+
default: S(() => [
|
|
2767
2791
|
P("确定")
|
|
2768
2792
|
]),
|
|
2769
2793
|
_: 1
|
|
2770
2794
|
})
|
|
2771
2795
|
])
|
|
2772
2796
|
]),
|
|
2773
|
-
default:
|
|
2774
|
-
|
|
2797
|
+
default: S(() => [
|
|
2798
|
+
F(E, {
|
|
2775
2799
|
ref_key: "dialogFormRef",
|
|
2776
2800
|
ref: l,
|
|
2777
2801
|
model: o.value
|
|
2778
2802
|
}, {
|
|
2779
|
-
default:
|
|
2780
|
-
(
|
|
2781
|
-
n.config.cycleShow ? (
|
|
2803
|
+
default: S(() => [
|
|
2804
|
+
(I(!0), q(H, null, se(o.value.list, (j, re) => (I(), q("div", ql, [
|
|
2805
|
+
n.config.cycleShow ? (I(), U(G, {
|
|
2782
2806
|
key: 0,
|
|
2783
|
-
prop: "list." +
|
|
2807
|
+
prop: "list." + re + ".cycle",
|
|
2784
2808
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
2785
2809
|
style: { width: "100px", "margin-right": "10px" }
|
|
2786
2810
|
}, {
|
|
2787
|
-
default:
|
|
2788
|
-
|
|
2811
|
+
default: S(() => [
|
|
2812
|
+
F(O, {
|
|
2789
2813
|
modelValue: j.cycle,
|
|
2790
|
-
"onUpdate:modelValue": (
|
|
2814
|
+
"onUpdate:modelValue": (Y) => j.cycle = Y,
|
|
2791
2815
|
placeholder: "选择周期",
|
|
2792
2816
|
size: "small"
|
|
2793
2817
|
}, {
|
|
2794
|
-
default:
|
|
2795
|
-
(
|
|
2796
|
-
label:
|
|
2797
|
-
value:
|
|
2798
|
-
key:
|
|
2818
|
+
default: S(() => [
|
|
2819
|
+
(I(!0), q(H, null, se(n.config.cycleOptions, ({ label: Y, value: K }) => (I(), U(b, {
|
|
2820
|
+
label: Y,
|
|
2821
|
+
value: K,
|
|
2822
|
+
key: K
|
|
2799
2823
|
}, null, 8, ["label", "value"]))), 128))
|
|
2800
2824
|
]),
|
|
2801
2825
|
_: 2
|
|
2802
2826
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
2803
2827
|
]),
|
|
2804
2828
|
_: 2
|
|
2805
|
-
}, 1032, ["prop"])) :
|
|
2806
|
-
|
|
2807
|
-
prop: "list." +
|
|
2829
|
+
}, 1032, ["prop"])) : z("", !0),
|
|
2830
|
+
F(G, {
|
|
2831
|
+
prop: "list." + re + ".factor",
|
|
2808
2832
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
2809
2833
|
style: { width: "100px", "margin-right": "10px" }
|
|
2810
2834
|
}, {
|
|
2811
|
-
default:
|
|
2812
|
-
|
|
2835
|
+
default: S(() => [
|
|
2836
|
+
F(O, {
|
|
2813
2837
|
modelValue: j.factor,
|
|
2814
|
-
"onUpdate:modelValue": (
|
|
2838
|
+
"onUpdate:modelValue": (Y) => j.factor = Y,
|
|
2815
2839
|
placeholder: "选择因子",
|
|
2816
2840
|
filterable: "",
|
|
2817
2841
|
size: "small",
|
|
2818
2842
|
"no-match-text": "无匹配数据"
|
|
2819
2843
|
}, {
|
|
2820
|
-
default:
|
|
2821
|
-
(
|
|
2822
|
-
label:
|
|
2823
|
-
value:
|
|
2824
|
-
key:
|
|
2844
|
+
default: S(() => [
|
|
2845
|
+
(I(!0), q(H, null, se(n.config.factorOptions, ({ label: Y, value: K }) => (I(), U(b, {
|
|
2846
|
+
label: Y,
|
|
2847
|
+
value: K,
|
|
2848
|
+
key: K
|
|
2825
2849
|
}, null, 8, ["label", "value"]))), 128))
|
|
2826
2850
|
]),
|
|
2827
2851
|
_: 2
|
|
@@ -2829,23 +2853,23 @@ const jn = (n) => (ht("data-v-d76a610e"), n = n(), _t(), n), Fl = { class: "fact
|
|
|
2829
2853
|
]),
|
|
2830
2854
|
_: 2
|
|
2831
2855
|
}, 1032, ["prop"]),
|
|
2832
|
-
|
|
2833
|
-
prop: "list." +
|
|
2856
|
+
F(G, {
|
|
2857
|
+
prop: "list." + re + ".score",
|
|
2834
2858
|
rules: { validator: v, trigger: "blur" },
|
|
2835
2859
|
style: { width: "200px", "margin-right": "10px" }
|
|
2836
2860
|
}, {
|
|
2837
|
-
default:
|
|
2838
|
-
|
|
2839
|
-
|
|
2861
|
+
default: S(() => [
|
|
2862
|
+
C("div", Nl, [
|
|
2863
|
+
F(oe, {
|
|
2840
2864
|
modelValue: j.score[0],
|
|
2841
|
-
"onUpdate:modelValue": (
|
|
2865
|
+
"onUpdate:modelValue": (Y) => j.score[0] = Y,
|
|
2842
2866
|
size: "small",
|
|
2843
2867
|
"controls-position": "right"
|
|
2844
2868
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
2845
2869
|
Ml,
|
|
2846
|
-
|
|
2870
|
+
F(oe, {
|
|
2847
2871
|
modelValue: j.score[1],
|
|
2848
|
-
"onUpdate:modelValue": (
|
|
2872
|
+
"onUpdate:modelValue": (Y) => j.score[1] = Y,
|
|
2849
2873
|
size: "small",
|
|
2850
2874
|
"controls-position": "right"
|
|
2851
2875
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -2853,44 +2877,44 @@ const jn = (n) => (ht("data-v-d76a610e"), n = n(), _t(), n), Fl = { class: "fact
|
|
|
2853
2877
|
]),
|
|
2854
2878
|
_: 2
|
|
2855
2879
|
}, 1032, ["prop", "rules"]),
|
|
2856
|
-
|
|
2857
|
-
onClick: (
|
|
2880
|
+
F(k, {
|
|
2881
|
+
onClick: (Y) => x(re)
|
|
2858
2882
|
}, {
|
|
2859
|
-
default:
|
|
2860
|
-
|
|
2883
|
+
default: S(() => [
|
|
2884
|
+
F(u(wr))
|
|
2861
2885
|
]),
|
|
2862
2886
|
_: 2
|
|
2863
2887
|
}, 1032, ["onClick"])
|
|
2864
2888
|
]))), 256)),
|
|
2865
|
-
|
|
2889
|
+
F(w, {
|
|
2866
2890
|
type: "primary",
|
|
2867
2891
|
plain: "",
|
|
2868
2892
|
size: "small",
|
|
2869
|
-
icon:
|
|
2893
|
+
icon: u(ot),
|
|
2870
2894
|
onClick: p,
|
|
2871
2895
|
style: { "margin-bottom": "10px" }
|
|
2872
2896
|
}, {
|
|
2873
|
-
default:
|
|
2897
|
+
default: S(() => [
|
|
2874
2898
|
P("添加因子")
|
|
2875
2899
|
]),
|
|
2876
2900
|
_: 1
|
|
2877
2901
|
}, 8, ["icon"]),
|
|
2878
|
-
n.config.sqlShow ? (
|
|
2879
|
-
|
|
2880
|
-
default:
|
|
2881
|
-
|
|
2902
|
+
n.config.sqlShow ? (I(), q(H, { key: 0 }, [
|
|
2903
|
+
F(G, { label: "SQL功能: " }, {
|
|
2904
|
+
default: S(() => [
|
|
2905
|
+
F(X, {
|
|
2882
2906
|
modelValue: o.value.sqlEnable,
|
|
2883
|
-
"onUpdate:modelValue":
|
|
2907
|
+
"onUpdate:modelValue": d[1] || (d[1] = (j) => o.value.sqlEnable = j)
|
|
2884
2908
|
}, {
|
|
2885
|
-
default:
|
|
2886
|
-
|
|
2887
|
-
default:
|
|
2909
|
+
default: S(() => [
|
|
2910
|
+
F(le, { label: 0 }, {
|
|
2911
|
+
default: S(() => [
|
|
2888
2912
|
P("关闭")
|
|
2889
2913
|
]),
|
|
2890
2914
|
_: 1
|
|
2891
2915
|
}),
|
|
2892
|
-
|
|
2893
|
-
default:
|
|
2916
|
+
F(le, { label: 1 }, {
|
|
2917
|
+
default: S(() => [
|
|
2894
2918
|
P("启用")
|
|
2895
2919
|
]),
|
|
2896
2920
|
_: 1
|
|
@@ -2898,63 +2922,63 @@ const jn = (n) => (ht("data-v-d76a610e"), n = n(), _t(), n), Fl = { class: "fact
|
|
|
2898
2922
|
]),
|
|
2899
2923
|
_: 1
|
|
2900
2924
|
}, 8, ["modelValue"]),
|
|
2901
|
-
o.value.sqlEnable ? (
|
|
2925
|
+
o.value.sqlEnable ? (I(), U(w, {
|
|
2902
2926
|
key: 0,
|
|
2903
2927
|
type: "primary",
|
|
2904
2928
|
size: "small",
|
|
2905
|
-
onClick:
|
|
2929
|
+
onClick: V,
|
|
2906
2930
|
style: { "margin-left": "auto" }
|
|
2907
2931
|
}, {
|
|
2908
|
-
default:
|
|
2932
|
+
default: S(() => [
|
|
2909
2933
|
P("生成SQL")
|
|
2910
2934
|
]),
|
|
2911
2935
|
_: 1
|
|
2912
|
-
})) :
|
|
2936
|
+
})) : z("", !0)
|
|
2913
2937
|
]),
|
|
2914
2938
|
_: 1
|
|
2915
2939
|
}),
|
|
2916
|
-
o.value.sqlEnable ? (
|
|
2917
|
-
|
|
2940
|
+
o.value.sqlEnable ? (I(), q(H, { key: 0 }, [
|
|
2941
|
+
F(m, {
|
|
2918
2942
|
modelValue: o.value.sqlValue,
|
|
2919
|
-
"onUpdate:modelValue":
|
|
2943
|
+
"onUpdate:modelValue": d[2] || (d[2] = (j) => o.value.sqlValue = j),
|
|
2920
2944
|
autosize: { minRows: 4 },
|
|
2921
2945
|
type: "textarea",
|
|
2922
2946
|
style: { "margin-bottom": "10px" }
|
|
2923
2947
|
}, null, 8, ["modelValue"]),
|
|
2924
2948
|
Al
|
|
2925
|
-
], 64)) :
|
|
2926
|
-
], 64)) :
|
|
2949
|
+
], 64)) : z("", !0)
|
|
2950
|
+
], 64)) : z("", !0)
|
|
2927
2951
|
]),
|
|
2928
2952
|
_: 1
|
|
2929
2953
|
}, 8, ["model"])
|
|
2930
2954
|
]),
|
|
2931
2955
|
_: 1
|
|
2932
2956
|
}, 8, ["modelValue"]),
|
|
2933
|
-
|
|
2957
|
+
F(A, {
|
|
2934
2958
|
modelValue: a.value,
|
|
2935
|
-
"onUpdate:modelValue":
|
|
2959
|
+
"onUpdate:modelValue": d[4] || (d[4] = (j) => a.value = j),
|
|
2936
2960
|
title: "因子使用说明",
|
|
2937
2961
|
width: "1000",
|
|
2938
2962
|
"align-center": "",
|
|
2939
2963
|
"destroy-on-close": ""
|
|
2940
2964
|
}, {
|
|
2941
|
-
default:
|
|
2942
|
-
|
|
2965
|
+
default: S(() => [
|
|
2966
|
+
F(D, {
|
|
2943
2967
|
data: n.config.factorDescriptions,
|
|
2944
2968
|
border: "",
|
|
2945
2969
|
height: "500"
|
|
2946
2970
|
}, {
|
|
2947
|
-
default:
|
|
2948
|
-
|
|
2971
|
+
default: S(() => [
|
|
2972
|
+
F(W, {
|
|
2949
2973
|
prop: "factorName",
|
|
2950
2974
|
label: "因子名称",
|
|
2951
2975
|
width: "200"
|
|
2952
2976
|
}),
|
|
2953
|
-
|
|
2977
|
+
F(W, {
|
|
2954
2978
|
prop: "factorDesc",
|
|
2955
2979
|
label: "因子说明"
|
|
2956
2980
|
}),
|
|
2957
|
-
|
|
2981
|
+
F(W, {
|
|
2958
2982
|
prop: "factorScoreDefine",
|
|
2959
2983
|
label: "分值定义"
|
|
2960
2984
|
})
|
|
@@ -2968,16 +2992,16 @@ const jn = (n) => (ht("data-v-d76a610e"), n = n(), _t(), n), Fl = { class: "fact
|
|
|
2968
2992
|
};
|
|
2969
2993
|
}
|
|
2970
2994
|
}, Rl = /* @__PURE__ */ $t(Pl, [["__scopeId", "data-v-d76a610e"]]);
|
|
2971
|
-
const Ft = (n) => (ht("data-v-
|
|
2995
|
+
const Ft = (n) => (ht("data-v-bfc7b27f"), n = n(), _t(), n), Ll = {
|
|
2972
2996
|
key: 0,
|
|
2973
2997
|
class: "common-indicator"
|
|
2974
|
-
}, Ul = { class: "indicator" },
|
|
2975
|
-
/* @__PURE__ */
|
|
2976
|
-
/* @__PURE__ */
|
|
2977
|
-
], -1)),
|
|
2998
|
+
}, Ul = { class: "indicator" }, Dl = /* @__PURE__ */ Ft(() => /* @__PURE__ */ C("div", { class: "title" }, [
|
|
2999
|
+
/* @__PURE__ */ C("span", null, "常用指标: "),
|
|
3000
|
+
/* @__PURE__ */ C("span", null, "不限")
|
|
3001
|
+
], -1)), Bl = { class: "options" }, zl = ["onClick"], Wl = { class: "tags" }, Gl = ["onClick"], Yl = {
|
|
2978
3002
|
key: 0,
|
|
2979
3003
|
class: "convenient-option-box"
|
|
2980
|
-
}, Kl = { class: "out-box" }, Ql = /* @__PURE__ */ Ft(() => /* @__PURE__ */
|
|
3004
|
+
}, Kl = { class: "out-box" }, Ql = /* @__PURE__ */ Ft(() => /* @__PURE__ */ C("span", null, "自定义: ", -1)), Hl = { key: 0 }, Jl = { key: 0 }, Zl = { key: 0 }, Xl = { key: 1 }, ei = { class: "tFeaturelncomes-option-box" }, ti = { class: "tFeaturelncomes-out-box" }, ni = /* @__PURE__ */ Ft(() => /* @__PURE__ */ C("span", null, "自定义: ", -1)), ri = { key: 2 }, ai = { key: 3 }, oi = { class: "dialog-footer" }, li = {
|
|
2981
3005
|
__name: "index",
|
|
2982
3006
|
props: /* @__PURE__ */ yt({
|
|
2983
3007
|
config: { type: Object, default: () => {
|
|
@@ -2992,46 +3016,46 @@ const Ft = (n) => (ht("data-v-0a691a79"), n = n(), _t(), n), Dl = {
|
|
|
2992
3016
|
}),
|
|
2993
3017
|
emits: ["update:data"],
|
|
2994
3018
|
setup(n) {
|
|
2995
|
-
const e = n, t = bt(n, "data"), r =
|
|
2996
|
-
let
|
|
2997
|
-
return e.varietyMarket === null && !e.commonOption.length ?
|
|
2998
|
-
const { commonOptionIds: v } =
|
|
3019
|
+
const e = n, t = bt(n, "data"), r = N(() => {
|
|
3020
|
+
let _ = [];
|
|
3021
|
+
return e.varietyMarket === null && !e.commonOption.length ? _ = e.config.options : (_ = e.config.options, e.varietyMarket && (_ = _.filter(({ parent: f }) => f.varietyMarketIds.includes(e.varietyMarket))), e.commonOption.length && (_ = _.filter(({ parent: f }) => {
|
|
3022
|
+
const { commonOptionIds: v } = f;
|
|
2999
3023
|
return [.../* @__PURE__ */ new Set([...v, ...e.commonOption])].length !== [...v, ...e.commonOption].length;
|
|
3000
|
-
}))),
|
|
3024
|
+
}))), _;
|
|
3001
3025
|
});
|
|
3002
|
-
|
|
3026
|
+
ve(
|
|
3003
3027
|
() => r.value,
|
|
3004
3028
|
() => {
|
|
3005
|
-
t.value.length && (t.value = t.value.filter(({ key:
|
|
3029
|
+
t.value.length && (t.value = t.value.filter(({ key: _ }) => r.value.find((f) => f.key === _)));
|
|
3006
3030
|
}
|
|
3007
3031
|
);
|
|
3008
|
-
const a =
|
|
3009
|
-
l.value =
|
|
3010
|
-
const
|
|
3011
|
-
label:
|
|
3012
|
-
key:
|
|
3013
|
-
type:
|
|
3032
|
+
const a = Q(!1), l = Q({}), o = Q({}), i = (_) => {
|
|
3033
|
+
l.value = _;
|
|
3034
|
+
const f = {
|
|
3035
|
+
label: _.label,
|
|
3036
|
+
key: _.key,
|
|
3037
|
+
type: _.type
|
|
3014
3038
|
};
|
|
3015
|
-
|
|
3016
|
-
...
|
|
3039
|
+
_.type === void 0 ? o.value = {
|
|
3040
|
+
...f,
|
|
3017
3041
|
range: [null, null],
|
|
3018
|
-
unit:
|
|
3019
|
-
} :
|
|
3020
|
-
...
|
|
3042
|
+
unit: _.defaultUnit.length ? [..._.defaultUnit] : [null, null]
|
|
3043
|
+
} : _.key === "st" ? o.value = { ...f, st: null } : _.key === "tFeaturelncomes" ? o.value = {
|
|
3044
|
+
...f,
|
|
3021
3045
|
rule: 1,
|
|
3022
3046
|
// 1超 2跌
|
|
3023
3047
|
withFewYears: null,
|
|
3024
3048
|
yearsCount: null,
|
|
3025
3049
|
netProfit: null
|
|
3026
|
-
} :
|
|
3027
|
-
...
|
|
3050
|
+
} : _.key === "priceLevels" ? o.value = { ...f, priceLevels: null } : _.key === "optionsCpType" && (o.value = {
|
|
3051
|
+
...f,
|
|
3028
3052
|
optionsCpType: null
|
|
3029
3053
|
// 1看涨 2看跌
|
|
3030
3054
|
}), a.value = !0;
|
|
3031
|
-
}, p = (
|
|
3032
|
-
o.value.range = [...
|
|
3033
|
-
},
|
|
3034
|
-
switch (
|
|
3055
|
+
}, p = (_) => {
|
|
3056
|
+
o.value.range = [..._.range], o.value.unit = [..._.unit];
|
|
3057
|
+
}, V = (_) => {
|
|
3058
|
+
switch (_) {
|
|
3035
3059
|
case "≤0":
|
|
3036
3060
|
Object.assign(o.value, {
|
|
3037
3061
|
rule: 2,
|
|
@@ -3075,116 +3099,131 @@ const Ft = (n) => (ht("data-v-0a691a79"), n = n(), _t(), n), Dl = {
|
|
|
3075
3099
|
break;
|
|
3076
3100
|
}
|
|
3077
3101
|
}, c = () => {
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3102
|
+
switch (o.value.key) {
|
|
3103
|
+
case "st": {
|
|
3104
|
+
const { label: f, st: v } = o.value;
|
|
3105
|
+
if (v === null)
|
|
3106
|
+
return Ie.warning("格式错误: 请至少选择一个值");
|
|
3107
|
+
o.value.tagText = `${f}: ${v ? "是" : "否"}`;
|
|
3108
|
+
break;
|
|
3109
|
+
}
|
|
3110
|
+
case "tFeaturelncomes": {
|
|
3111
|
+
const { label: f, rule: v, withFewYears: h, yearsCount: d, netProfit: g } = o.value;
|
|
3112
|
+
if (["", null].includes(h) || ["", null].includes(d) || ["", null].includes(g))
|
|
3113
|
+
return Ie.warning("格式错误: 请填写完整");
|
|
3114
|
+
o.value.tagText = `${f}: ${h}年内${d}年以上盈利${v === 1 ? "超" : "跌"}过${g}亿`;
|
|
3115
|
+
break;
|
|
3116
|
+
}
|
|
3117
|
+
case "priceLevels": {
|
|
3118
|
+
const { label: f, priceLevels: v } = o.value;
|
|
3119
|
+
if (!v || v.length === 0)
|
|
3120
|
+
return Ie.warning("格式错误: 请至少选择一个值");
|
|
3121
|
+
o.value.tagText = `${f}: 已选${v}分位`;
|
|
3122
|
+
break;
|
|
3123
|
+
}
|
|
3124
|
+
case "optionsCpType": {
|
|
3125
|
+
const { label: f, optionsCpType: v } = o.value;
|
|
3126
|
+
if (v === null)
|
|
3127
|
+
return Ie.warning("格式错误: 请至少选择一个值");
|
|
3128
|
+
o.value.tagText = `${f}: ${v === 1 ? "看涨" : "看跌"}`;
|
|
3129
|
+
break;
|
|
3130
|
+
}
|
|
3131
|
+
default: {
|
|
3132
|
+
const { label: f, range: v, unit: h } = o.value;
|
|
3133
|
+
if (["", null].includes(v[0]) && ["", null].includes(v[1]))
|
|
3134
|
+
return Ie.warning("格式错误: 请至少填写一个值");
|
|
3135
|
+
!["", null].includes(v[0]) && !["", null].includes(v[1]) ? o.value.tagText = `${f}: ${v[0]}${h[0] ?? ""} ~ ${v[1]}${h[1] ?? ""}` : ["", null].includes(v[0]) ? o.value.tagText = `${f}: ≤${v[1]}${h[1] ?? ""}` : o.value.tagText = `${f}: ≥${v[0]}${h[0] ?? ""}`;
|
|
3136
|
+
}
|
|
3098
3137
|
}
|
|
3099
|
-
const
|
|
3100
|
-
|
|
3101
|
-
},
|
|
3102
|
-
t.value.splice(
|
|
3103
|
-
},
|
|
3104
|
-
l.value = r.value.find(({ key:
|
|
3138
|
+
const _ = t.value.findIndex(({ key: f }) => f === o.value.key);
|
|
3139
|
+
_ === -1 ? t.value.push(o.value) : t.value.splice(_, 1, o.value), a.value = !1;
|
|
3140
|
+
}, s = (_) => {
|
|
3141
|
+
t.value.splice(_, 1);
|
|
3142
|
+
}, x = (_) => {
|
|
3143
|
+
l.value = r.value.find(({ key: f }) => f === _.key), o.value = _, a.value = !0;
|
|
3105
3144
|
};
|
|
3106
|
-
return (
|
|
3107
|
-
const v = vn,
|
|
3108
|
-
return n.config.show && r.value.length ? (
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
(
|
|
3113
|
-
key:
|
|
3114
|
-
onClick: (
|
|
3115
|
-
},
|
|
3145
|
+
return (_, f) => {
|
|
3146
|
+
const v = vn, h = bn, d = gn, g = yn, y = xt, w = Et, k = St, $ = Nn, b = mn;
|
|
3147
|
+
return n.config.show && r.value.length ? (I(), q("div", Ll, [
|
|
3148
|
+
C("div", Ul, [
|
|
3149
|
+
Dl,
|
|
3150
|
+
C("div", Bl, [
|
|
3151
|
+
(I(!0), q(H, null, se(r.value, (O) => (I(), q("span", {
|
|
3152
|
+
key: O.key,
|
|
3153
|
+
onClick: (G) => i(O)
|
|
3154
|
+
}, te(O.label), 9, zl))), 128))
|
|
3116
3155
|
])
|
|
3117
3156
|
]),
|
|
3118
|
-
|
|
3119
|
-
(
|
|
3157
|
+
C("div", Wl, [
|
|
3158
|
+
(I(!0), q(H, null, se(t.value, (O, G) => (I(), U(v, {
|
|
3120
3159
|
closable: "",
|
|
3121
3160
|
type: "info",
|
|
3122
|
-
onClose: (
|
|
3161
|
+
onClose: (oe) => s(G)
|
|
3123
3162
|
}, {
|
|
3124
|
-
default:
|
|
3125
|
-
|
|
3126
|
-
|
|
3163
|
+
default: S(() => [
|
|
3164
|
+
C("span", null, te(O.tagText), 1),
|
|
3165
|
+
C("span", {
|
|
3127
3166
|
class: "edit",
|
|
3128
|
-
onClick: (
|
|
3167
|
+
onClick: (oe) => x(O)
|
|
3129
3168
|
}, "编辑", 8, Gl)
|
|
3130
3169
|
]),
|
|
3131
3170
|
_: 2
|
|
3132
3171
|
}, 1032, ["onClose"]))), 256))
|
|
3133
3172
|
]),
|
|
3134
|
-
|
|
3173
|
+
F(b, {
|
|
3135
3174
|
modelValue: a.value,
|
|
3136
|
-
"onUpdate:modelValue":
|
|
3175
|
+
"onUpdate:modelValue": f[15] || (f[15] = (O) => a.value = O),
|
|
3137
3176
|
title: l.value.label,
|
|
3138
3177
|
width: "600",
|
|
3139
3178
|
"align-center": "",
|
|
3140
3179
|
"destroy-on-close": ""
|
|
3141
3180
|
}, {
|
|
3142
|
-
footer:
|
|
3143
|
-
|
|
3144
|
-
|
|
3181
|
+
footer: S(() => [
|
|
3182
|
+
C("div", oi, [
|
|
3183
|
+
F(h, {
|
|
3145
3184
|
type: "primary",
|
|
3146
3185
|
onClick: c
|
|
3147
3186
|
}, {
|
|
3148
|
-
default:
|
|
3187
|
+
default: S(() => [
|
|
3149
3188
|
P("确定")
|
|
3150
3189
|
]),
|
|
3151
3190
|
_: 1
|
|
3152
3191
|
})
|
|
3153
3192
|
])
|
|
3154
3193
|
]),
|
|
3155
|
-
default:
|
|
3156
|
-
l.value.type === void 0 ? (
|
|
3157
|
-
l.value.convenientOptions.length ? (
|
|
3158
|
-
(
|
|
3159
|
-
key:
|
|
3160
|
-
onClick: (
|
|
3194
|
+
default: S(() => [
|
|
3195
|
+
l.value.type === void 0 ? (I(), q(H, { key: 0 }, [
|
|
3196
|
+
l.value.convenientOptions.length ? (I(), q("div", Yl, [
|
|
3197
|
+
(I(!0), q(H, null, se(l.value.convenientOptions, (O) => (I(), U(h, {
|
|
3198
|
+
key: O.text,
|
|
3199
|
+
onClick: (G) => p(O)
|
|
3161
3200
|
}, {
|
|
3162
|
-
default:
|
|
3163
|
-
P(
|
|
3201
|
+
default: S(() => [
|
|
3202
|
+
P(te(O.text), 1)
|
|
3164
3203
|
]),
|
|
3165
3204
|
_: 2
|
|
3166
3205
|
}, 1032, ["onClick"]))), 128))
|
|
3167
|
-
])) :
|
|
3168
|
-
|
|
3206
|
+
])) : z("", !0),
|
|
3207
|
+
C("div", Kl, [
|
|
3169
3208
|
Ql,
|
|
3170
|
-
|
|
3209
|
+
F(y, {
|
|
3171
3210
|
modelValue: o.value.range[0],
|
|
3172
|
-
"onUpdate:modelValue":
|
|
3211
|
+
"onUpdate:modelValue": f[1] || (f[1] = (O) => o.value.range[0] = O),
|
|
3173
3212
|
style: { flex: "1" }
|
|
3174
3213
|
}, Mt({ _: 2 }, [
|
|
3175
3214
|
l.value.unitOptions.length ? {
|
|
3176
3215
|
name: "append",
|
|
3177
|
-
fn:
|
|
3178
|
-
l.value.unitOptions.length === 1 ? (
|
|
3216
|
+
fn: S(() => [
|
|
3217
|
+
l.value.unitOptions.length === 1 ? (I(), q("span", Hl, te(o.value.unit[0]), 1)) : (I(), U(g, {
|
|
3179
3218
|
key: 1,
|
|
3180
3219
|
modelValue: o.value.unit[0],
|
|
3181
|
-
"onUpdate:modelValue":
|
|
3220
|
+
"onUpdate:modelValue": f[0] || (f[0] = (O) => o.value.unit[0] = O),
|
|
3182
3221
|
style: { width: "72px" }
|
|
3183
3222
|
}, {
|
|
3184
|
-
default:
|
|
3185
|
-
(
|
|
3186
|
-
label:
|
|
3187
|
-
value:
|
|
3223
|
+
default: S(() => [
|
|
3224
|
+
(I(!0), q(H, null, se(l.value.unitOptions, (O) => (I(), U(d, {
|
|
3225
|
+
label: O,
|
|
3226
|
+
value: O
|
|
3188
3227
|
}, null, 8, ["label", "value"]))), 256))
|
|
3189
3228
|
]),
|
|
3190
3229
|
_: 1
|
|
@@ -3194,24 +3233,24 @@ const Ft = (n) => (ht("data-v-0a691a79"), n = n(), _t(), n), Dl = {
|
|
|
3194
3233
|
} : void 0
|
|
3195
3234
|
]), 1032, ["modelValue"]),
|
|
3196
3235
|
P(" ~ "),
|
|
3197
|
-
|
|
3236
|
+
F(y, {
|
|
3198
3237
|
modelValue: o.value.range[1],
|
|
3199
|
-
"onUpdate:modelValue":
|
|
3238
|
+
"onUpdate:modelValue": f[3] || (f[3] = (O) => o.value.range[1] = O),
|
|
3200
3239
|
style: { flex: "1" }
|
|
3201
3240
|
}, Mt({ _: 2 }, [
|
|
3202
3241
|
l.value.unitOptions.length ? {
|
|
3203
3242
|
name: "append",
|
|
3204
|
-
fn:
|
|
3205
|
-
l.value.unitOptions.length === 1 ? (
|
|
3243
|
+
fn: S(() => [
|
|
3244
|
+
l.value.unitOptions.length === 1 ? (I(), q("span", Jl, te(o.value.unit[1]), 1)) : (I(), U(g, {
|
|
3206
3245
|
key: 1,
|
|
3207
3246
|
modelValue: o.value.unit[1],
|
|
3208
|
-
"onUpdate:modelValue":
|
|
3247
|
+
"onUpdate:modelValue": f[2] || (f[2] = (O) => o.value.unit[1] = O),
|
|
3209
3248
|
style: { width: "72px" }
|
|
3210
3249
|
}, {
|
|
3211
|
-
default:
|
|
3212
|
-
(
|
|
3213
|
-
label:
|
|
3214
|
-
value:
|
|
3250
|
+
default: S(() => [
|
|
3251
|
+
(I(!0), q(H, null, se(l.value.unitOptions, (O) => (I(), U(d, {
|
|
3252
|
+
label: O,
|
|
3253
|
+
value: O
|
|
3215
3254
|
}, null, 8, ["label", "value"]))), 256))
|
|
3216
3255
|
]),
|
|
3217
3256
|
_: 1
|
|
@@ -3221,21 +3260,21 @@ const Ft = (n) => (ht("data-v-0a691a79"), n = n(), _t(), n), Dl = {
|
|
|
3221
3260
|
} : void 0
|
|
3222
3261
|
]), 1032, ["modelValue"])
|
|
3223
3262
|
])
|
|
3224
|
-
], 64)) : (
|
|
3225
|
-
l.value.key === "st" ? (
|
|
3226
|
-
|
|
3263
|
+
], 64)) : (I(), q(H, { key: 1 }, [
|
|
3264
|
+
l.value.key === "st" ? (I(), q("div", Zl, [
|
|
3265
|
+
F(k, {
|
|
3227
3266
|
modelValue: o.value.st,
|
|
3228
|
-
"onUpdate:modelValue":
|
|
3267
|
+
"onUpdate:modelValue": f[4] || (f[4] = (O) => o.value.st = O)
|
|
3229
3268
|
}, {
|
|
3230
|
-
default:
|
|
3231
|
-
|
|
3232
|
-
default:
|
|
3269
|
+
default: S(() => [
|
|
3270
|
+
F(w, { label: 1 }, {
|
|
3271
|
+
default: S(() => [
|
|
3233
3272
|
P("是")
|
|
3234
3273
|
]),
|
|
3235
3274
|
_: 1
|
|
3236
3275
|
}),
|
|
3237
|
-
|
|
3238
|
-
default:
|
|
3276
|
+
F(w, { label: 0 }, {
|
|
3277
|
+
default: S(() => [
|
|
3239
3278
|
P("否")
|
|
3240
3279
|
]),
|
|
3241
3280
|
_: 1
|
|
@@ -3243,88 +3282,106 @@ const Ft = (n) => (ht("data-v-0a691a79"), n = n(), _t(), n), Dl = {
|
|
|
3243
3282
|
]),
|
|
3244
3283
|
_: 1
|
|
3245
3284
|
}, 8, ["modelValue"])
|
|
3246
|
-
])) :
|
|
3247
|
-
l.value.key === "tFeaturelncomes" ? (
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
onClick:
|
|
3285
|
+
])) : z("", !0),
|
|
3286
|
+
l.value.key === "tFeaturelncomes" ? (I(), q("div", Xl, [
|
|
3287
|
+
C("div", ei, [
|
|
3288
|
+
F(h, {
|
|
3289
|
+
onClick: f[5] || (f[5] = (O) => V("≤0"))
|
|
3251
3290
|
}, {
|
|
3252
|
-
default:
|
|
3291
|
+
default: S(() => [
|
|
3253
3292
|
P("≤0")
|
|
3254
3293
|
]),
|
|
3255
3294
|
_: 1
|
|
3256
3295
|
}),
|
|
3257
|
-
|
|
3258
|
-
onClick:
|
|
3296
|
+
F(h, {
|
|
3297
|
+
onClick: f[6] || (f[6] = (O) => V("≥0"))
|
|
3259
3298
|
}, {
|
|
3260
|
-
default:
|
|
3299
|
+
default: S(() => [
|
|
3261
3300
|
P("≥0")
|
|
3262
3301
|
]),
|
|
3263
3302
|
_: 1
|
|
3264
3303
|
}),
|
|
3265
|
-
|
|
3266
|
-
onClick:
|
|
3304
|
+
F(h, {
|
|
3305
|
+
onClick: f[7] || (f[7] = (O) => V("五年内有四年以上盈利超过5千万"))
|
|
3267
3306
|
}, {
|
|
3268
|
-
default:
|
|
3307
|
+
default: S(() => [
|
|
3269
3308
|
P("五年内有四年以上盈利超过5千万")
|
|
3270
3309
|
]),
|
|
3271
3310
|
_: 1
|
|
3272
3311
|
}),
|
|
3273
|
-
|
|
3274
|
-
onClick:
|
|
3312
|
+
F(h, {
|
|
3313
|
+
onClick: f[8] || (f[8] = (O) => V("≥10亿"))
|
|
3275
3314
|
}, {
|
|
3276
|
-
default:
|
|
3315
|
+
default: S(() => [
|
|
3277
3316
|
P("≥10亿")
|
|
3278
3317
|
]),
|
|
3279
3318
|
_: 1
|
|
3280
3319
|
}),
|
|
3281
|
-
|
|
3282
|
-
onClick:
|
|
3320
|
+
F(h, {
|
|
3321
|
+
onClick: f[9] || (f[9] = (O) => V("≥20亿"))
|
|
3283
3322
|
}, {
|
|
3284
|
-
default:
|
|
3323
|
+
default: S(() => [
|
|
3285
3324
|
P("≥20亿")
|
|
3286
3325
|
]),
|
|
3287
3326
|
_: 1
|
|
3288
3327
|
})
|
|
3289
3328
|
]),
|
|
3290
|
-
|
|
3329
|
+
C("div", ti, [
|
|
3291
3330
|
ni,
|
|
3292
|
-
|
|
3293
|
-
|
|
3331
|
+
C("div", null, [
|
|
3332
|
+
F($, {
|
|
3294
3333
|
modelValue: o.value.withFewYears,
|
|
3295
|
-
"onUpdate:modelValue":
|
|
3334
|
+
"onUpdate:modelValue": f[10] || (f[10] = (O) => o.value.withFewYears = O),
|
|
3296
3335
|
"controls-position": "right"
|
|
3297
3336
|
}, null, 8, ["modelValue"]),
|
|
3298
3337
|
P(" 年内 "),
|
|
3299
|
-
|
|
3338
|
+
F($, {
|
|
3300
3339
|
modelValue: o.value.yearsCount,
|
|
3301
|
-
"onUpdate:modelValue":
|
|
3340
|
+
"onUpdate:modelValue": f[11] || (f[11] = (O) => o.value.yearsCount = O),
|
|
3302
3341
|
"controls-position": "right"
|
|
3303
3342
|
}, null, 8, ["modelValue"]),
|
|
3304
|
-
P(" 年以上盈利" +
|
|
3305
|
-
|
|
3343
|
+
P(" 年以上盈利" + te(o.value.rule === 1 ? "超" : "跌") + "过 ", 1),
|
|
3344
|
+
F($, {
|
|
3306
3345
|
modelValue: o.value.netProfit,
|
|
3307
|
-
"onUpdate:modelValue":
|
|
3346
|
+
"onUpdate:modelValue": f[12] || (f[12] = (O) => o.value.netProfit = O),
|
|
3308
3347
|
"controls-position": "right"
|
|
3309
3348
|
}, null, 8, ["modelValue"]),
|
|
3310
3349
|
P(" 亿 ")
|
|
3311
3350
|
])
|
|
3312
3351
|
])
|
|
3313
|
-
])) :
|
|
3314
|
-
l.value.key === "
|
|
3315
|
-
|
|
3352
|
+
])) : z("", !0),
|
|
3353
|
+
l.value.key === "priceLevels" ? (I(), q("div", ri, [
|
|
3354
|
+
F(g, {
|
|
3355
|
+
modelValue: o.value.priceLevels,
|
|
3356
|
+
"onUpdate:modelValue": f[13] || (f[13] = (O) => o.value.priceLevels = O),
|
|
3357
|
+
multiple: "",
|
|
3358
|
+
placeholder: "请选择",
|
|
3359
|
+
style: { width: "100%" }
|
|
3360
|
+
}, {
|
|
3361
|
+
default: S(() => [
|
|
3362
|
+
(I(), q(H, null, se([1, 2, 3, 4, 5], (O) => F(d, {
|
|
3363
|
+
key: O,
|
|
3364
|
+
label: `${O}分位`,
|
|
3365
|
+
value: O
|
|
3366
|
+
}, null, 8, ["label", "value"])), 64))
|
|
3367
|
+
]),
|
|
3368
|
+
_: 1
|
|
3369
|
+
}, 8, ["modelValue"])
|
|
3370
|
+
])) : z("", !0),
|
|
3371
|
+
l.value.key === "optionsCpType" ? (I(), q("div", ai, [
|
|
3372
|
+
F(k, {
|
|
3316
3373
|
modelValue: o.value.optionsCpType,
|
|
3317
|
-
"onUpdate:modelValue":
|
|
3374
|
+
"onUpdate:modelValue": f[14] || (f[14] = (O) => o.value.optionsCpType = O)
|
|
3318
3375
|
}, {
|
|
3319
|
-
default:
|
|
3320
|
-
|
|
3321
|
-
default:
|
|
3376
|
+
default: S(() => [
|
|
3377
|
+
F(w, { label: 1 }, {
|
|
3378
|
+
default: S(() => [
|
|
3322
3379
|
P("看涨")
|
|
3323
3380
|
]),
|
|
3324
3381
|
_: 1
|
|
3325
3382
|
}),
|
|
3326
|
-
|
|
3327
|
-
default:
|
|
3383
|
+
F(w, { label: 2 }, {
|
|
3384
|
+
default: S(() => [
|
|
3328
3385
|
P("看跌")
|
|
3329
3386
|
]),
|
|
3330
3387
|
_: 1
|
|
@@ -3332,277 +3389,315 @@ const Ft = (n) => (ht("data-v-0a691a79"), n = n(), _t(), n), Dl = {
|
|
|
3332
3389
|
]),
|
|
3333
3390
|
_: 1
|
|
3334
3391
|
}, 8, ["modelValue"])
|
|
3335
|
-
])) :
|
|
3392
|
+
])) : z("", !0)
|
|
3336
3393
|
], 64))
|
|
3337
3394
|
]),
|
|
3338
3395
|
_: 1
|
|
3339
3396
|
}, 8, ["modelValue", "title"])
|
|
3340
|
-
])) :
|
|
3397
|
+
])) : z("", !0);
|
|
3341
3398
|
};
|
|
3342
3399
|
}
|
|
3343
|
-
},
|
|
3344
|
-
const
|
|
3400
|
+
}, ii = /* @__PURE__ */ $t(li, [["__scopeId", "data-v-bfc7b27f"]]);
|
|
3401
|
+
const Re = (n) => (ht("data-v-c7dfa2d4"), n = n(), _t(), n), si = { class: "variety-search" }, ui = {
|
|
3345
3402
|
key: 0,
|
|
3346
3403
|
class: "variety-search-row"
|
|
3347
|
-
},
|
|
3404
|
+
}, di = { class: "title" }, ci = /* @__PURE__ */ Re(() => /* @__PURE__ */ C("span", null, "品种市场: ", -1)), fi = {
|
|
3348
3405
|
key: 1,
|
|
3349
3406
|
class: "variety-search-row"
|
|
3350
|
-
},
|
|
3407
|
+
}, pi = { class: "title" }, mi = /* @__PURE__ */ Re(() => /* @__PURE__ */ C("span", null, "常用选项: ", -1)), vi = {
|
|
3351
3408
|
key: 2,
|
|
3352
3409
|
class: "variety-search-row"
|
|
3353
|
-
},
|
|
3410
|
+
}, gi = { class: "title" }, yi = /* @__PURE__ */ Re(() => /* @__PURE__ */ C("span", null, "上市板块: ", -1)), bi = {
|
|
3354
3411
|
key: 3,
|
|
3355
3412
|
class: "variety-search-row"
|
|
3356
|
-
},
|
|
3413
|
+
}, hi = { class: "title" }, _i = /* @__PURE__ */ Re(() => /* @__PURE__ */ C("span", null, "自定标签: ", -1)), wi = {
|
|
3414
|
+
key: 4,
|
|
3415
|
+
class: "variety-search-row"
|
|
3416
|
+
}, xi = { class: "title" }, Oi = /* @__PURE__ */ Re(() => /* @__PURE__ */ C("span", null, "因子筛选: ", -1)), ki = {
|
|
3357
3417
|
__name: "index",
|
|
3358
|
-
props: /* @__PURE__ */ yt({
|
|
3359
|
-
|
|
3360
|
-
config: { type: Object, default: {} }
|
|
3361
|
-
}, {
|
|
3362
|
-
searchData: {
|
|
3363
|
-
default: {
|
|
3364
|
-
// 品种市场
|
|
3365
|
-
varietyMarket: null,
|
|
3366
|
-
// 常用选项
|
|
3367
|
-
commonOption: [],
|
|
3368
|
-
// 自定标签
|
|
3369
|
-
customTag: [],
|
|
3370
|
-
// 因子筛选
|
|
3371
|
-
factorScreen: {
|
|
3372
|
-
list: [],
|
|
3373
|
-
sqlEnable: 0,
|
|
3374
|
-
sqlValue: null
|
|
3375
|
-
},
|
|
3376
|
-
// 常用指标
|
|
3377
|
-
commonIndicator: []
|
|
3378
|
-
}
|
|
3379
|
-
},
|
|
3418
|
+
props: /* @__PURE__ */ yt({ config: { type: Object, default: {} } }, {
|
|
3419
|
+
searchData: {},
|
|
3380
3420
|
searchDataModifiers: {}
|
|
3381
3421
|
}),
|
|
3382
3422
|
emits: ["update:searchData"],
|
|
3383
3423
|
setup(n, { expose: e }) {
|
|
3384
|
-
const t = n, r = bt(n, "searchData")
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3424
|
+
const t = n, r = bt(n, "searchData");
|
|
3425
|
+
r.value = Object.assign(r.value, {
|
|
3426
|
+
// 品种市场
|
|
3427
|
+
varietyMarket: null,
|
|
3428
|
+
// 常用选项
|
|
3429
|
+
commonOption: [],
|
|
3430
|
+
// 上市板块
|
|
3431
|
+
marketIds: [],
|
|
3432
|
+
// 自定标签
|
|
3433
|
+
customTag: [],
|
|
3434
|
+
// 因子筛选
|
|
3435
|
+
factorScreen: {
|
|
3436
|
+
list: [],
|
|
3437
|
+
sqlEnable: 0,
|
|
3438
|
+
sqlValue: null
|
|
3439
|
+
},
|
|
3440
|
+
// 常用指标
|
|
3441
|
+
commonIndicator: []
|
|
3442
|
+
});
|
|
3443
|
+
const a = N(() => {
|
|
3444
|
+
const c = {};
|
|
3445
|
+
return Object.keys(Ht).forEach((s) => {
|
|
3446
|
+
const x = Ht[s], _ = t.config[s] ?? {}, f = { ...x, ..._ };
|
|
3447
|
+
c[s] = f;
|
|
3448
|
+
}), c;
|
|
3449
|
+
}), l = N(() => a.value.varietyMarket.options), o = N(() => {
|
|
3450
|
+
const { varietyMarket: c } = r.value;
|
|
3451
|
+
if (c) {
|
|
3452
|
+
const s = l.value.find(({ value: x }) => x === c).memo;
|
|
3453
|
+
return a.value.commonOption.options.filter(({ value: x }) => s.includes(x));
|
|
3395
3454
|
} else
|
|
3396
3455
|
return a.value.commonOption.options;
|
|
3397
|
-
}), i =
|
|
3398
|
-
|
|
3456
|
+
}), i = N(() => {
|
|
3457
|
+
const { varietyMarket: c } = r.value;
|
|
3458
|
+
return c ? a.value.marketIds.options.filter((s) => s.varietyMarketIds.includes(c)) : a.value.marketIds.options;
|
|
3459
|
+
}), p = N(() => a.value.customTag.options), V = (c) => {
|
|
3460
|
+
["commonOption", "marketIds", "customTag", "factorScreen", "commonIndicator"].includes(c) ? r.value[c] = [] : r.value[c] = null;
|
|
3399
3461
|
};
|
|
3400
|
-
return
|
|
3462
|
+
return ve(
|
|
3401
3463
|
() => o.value,
|
|
3402
|
-
(
|
|
3403
|
-
r.value.commonOption.length && (r.value.commonOption = r.value.commonOption.filter((
|
|
3464
|
+
(c) => {
|
|
3465
|
+
r.value.commonOption.length && (r.value.commonOption = r.value.commonOption.filter((s) => c.find(({ value: x }) => x === s)));
|
|
3466
|
+
}
|
|
3467
|
+
), ve(
|
|
3468
|
+
() => i.value,
|
|
3469
|
+
(c) => {
|
|
3470
|
+
r.value.marketIds.length && (r.value.marketIds = r.value.marketIds.filter((s) => c.find(({ value: x }) => x === s)));
|
|
3404
3471
|
}
|
|
3405
3472
|
), e({
|
|
3406
3473
|
// 生成接口传参结构的数据
|
|
3407
|
-
formatData: (
|
|
3408
|
-
var
|
|
3474
|
+
formatData: (c) => {
|
|
3475
|
+
var x, _, f, v, h;
|
|
3409
3476
|
console.log("%c[st-varietySearch]: 正在生成接口传参结构的数据...", "color: tomato");
|
|
3410
|
-
const
|
|
3411
|
-
if (
|
|
3412
|
-
const { factorScreen:
|
|
3413
|
-
(
|
|
3414
|
-
freqId:
|
|
3415
|
-
factorId:
|
|
3416
|
-
startScore:
|
|
3417
|
-
endScore:
|
|
3418
|
-
}))),
|
|
3477
|
+
const s = {};
|
|
3478
|
+
if (c.varietyMarket && (s.exchangeId = String(c.varietyMarket)), (x = c.commonOption) != null && x.length && (s.optionId = c.commonOption.join(",")), (_ = c.marketIds) != null && _.length && (s.marketIds = c.marketIds), (f = c.customTag) != null && f.length && (s.tagIds = c.customTag), (v = a.value.factorScreen) != null && v.show) {
|
|
3479
|
+
const { factorScreen: d } = c;
|
|
3480
|
+
(h = d == null ? void 0 : d.list) != null && h.length && (s.tbFeatureFactorScores = d.list.map((g) => ({
|
|
3481
|
+
freqId: g.cycle,
|
|
3482
|
+
factorId: g.factor,
|
|
3483
|
+
startScore: g.score[0],
|
|
3484
|
+
endScore: g.score[1]
|
|
3485
|
+
}))), s.enableSql = d.sqlEnable === 1 ? 2 : 1, d.sqlEnable && (s.sql = d.sqlValue);
|
|
3419
3486
|
}
|
|
3420
3487
|
{
|
|
3421
|
-
const
|
|
3422
|
-
const { key:
|
|
3423
|
-
if (
|
|
3424
|
-
let [
|
|
3425
|
-
["", null].includes(
|
|
3426
|
-
column:
|
|
3427
|
-
start:
|
|
3428
|
-
end:
|
|
3488
|
+
const d = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], g = c.commonIndicator.reduce((b, O) => {
|
|
3489
|
+
const { key: G, type: oe, range: le, unit: X } = O;
|
|
3490
|
+
if (G === "dividendYield") {
|
|
3491
|
+
let [m, E] = le;
|
|
3492
|
+
["", null].includes(m) || (m = m / 100), ["", null].includes(E) || (E = E / 100), b.push({
|
|
3493
|
+
column: O.key,
|
|
3494
|
+
start: m,
|
|
3495
|
+
end: E
|
|
3429
3496
|
});
|
|
3430
|
-
} else if (
|
|
3431
|
-
let [
|
|
3432
|
-
if (!["", null].includes(
|
|
3433
|
-
switch (
|
|
3497
|
+
} else if (oe === void 0 && !d.includes(G)) {
|
|
3498
|
+
let [m, E] = le;
|
|
3499
|
+
if (!["", null].includes(m))
|
|
3500
|
+
switch (X[0]) {
|
|
3434
3501
|
case "亿":
|
|
3435
|
-
|
|
3502
|
+
m = m * 1e8;
|
|
3436
3503
|
break;
|
|
3437
3504
|
case "千万":
|
|
3438
|
-
|
|
3505
|
+
m = m * 1e7;
|
|
3439
3506
|
break;
|
|
3440
3507
|
default:
|
|
3441
|
-
|
|
3508
|
+
m = m;
|
|
3442
3509
|
break;
|
|
3443
3510
|
}
|
|
3444
|
-
if (!["", null].includes(
|
|
3445
|
-
switch (
|
|
3511
|
+
if (!["", null].includes(E))
|
|
3512
|
+
switch (X[1]) {
|
|
3446
3513
|
case "亿":
|
|
3447
|
-
|
|
3514
|
+
E = E * 1e8;
|
|
3448
3515
|
break;
|
|
3449
3516
|
case "千万":
|
|
3450
|
-
|
|
3517
|
+
E = E * 1e7;
|
|
3451
3518
|
break;
|
|
3452
3519
|
default:
|
|
3453
|
-
|
|
3520
|
+
E = E;
|
|
3454
3521
|
break;
|
|
3455
3522
|
}
|
|
3456
|
-
|
|
3457
|
-
column:
|
|
3458
|
-
start:
|
|
3459
|
-
end:
|
|
3523
|
+
b.push({
|
|
3524
|
+
column: O.key,
|
|
3525
|
+
start: m,
|
|
3526
|
+
end: E
|
|
3460
3527
|
});
|
|
3461
3528
|
}
|
|
3462
|
-
return
|
|
3529
|
+
return b;
|
|
3463
3530
|
}, []);
|
|
3464
|
-
|
|
3465
|
-
const
|
|
3466
|
-
|
|
3467
|
-
const
|
|
3468
|
-
|
|
3469
|
-
const
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3531
|
+
g.length && (s.query = g);
|
|
3532
|
+
const y = c.commonIndicator.find(({ key: b }) => b === "st");
|
|
3533
|
+
y && (s.st = y.st);
|
|
3534
|
+
const w = c.commonIndicator.find(({ key: b }) => b === "tFeaturelncomes");
|
|
3535
|
+
w && (s.netProfitQueryDto = { ...w, netProfit: w.netProfit * 1e8 });
|
|
3536
|
+
const k = c.commonIndicator.find(({ key: b }) => b === "priceLevels");
|
|
3537
|
+
k && (s.priceLevels = k.priceLevels);
|
|
3538
|
+
const $ = {};
|
|
3539
|
+
c.commonIndicator.forEach((b) => {
|
|
3540
|
+
const { key: O } = b;
|
|
3541
|
+
switch (O) {
|
|
3473
3542
|
case "expireDays":
|
|
3474
|
-
["", null].includes(
|
|
3543
|
+
["", null].includes(b.range[0]) || ($.minExpireDays = b.range[0]), ["", null].includes(b.range[1]) || ($.maxExpireDays = b.range[1]);
|
|
3475
3544
|
break;
|
|
3476
3545
|
case "virtualRealDegree":
|
|
3477
|
-
["", null].includes(
|
|
3546
|
+
["", null].includes(b.range[0]) || ($.minVirtualRealDegree = b.range[0] / 100), ["", null].includes(b.range[1]) || ($.maxVirtualRealDegree = b.range[1] / 100);
|
|
3478
3547
|
break;
|
|
3479
3548
|
case "yearProfitRate":
|
|
3480
|
-
["", null].includes(
|
|
3549
|
+
["", null].includes(b.range[0]) || ($.minYearProfitRate = b.range[0] / 100), ["", null].includes(b.range[1]) || ($.maxYearProfitRate = b.range[1] / 100);
|
|
3481
3550
|
break;
|
|
3482
3551
|
case "impliedVolatility":
|
|
3483
|
-
["", null].includes(
|
|
3552
|
+
["", null].includes(b.range[0]) || ($.minImpliedVolatility = b.range[0] / 100), ["", null].includes(b.range[1]) || ($.maxImpliedVolatility = b.range[1] / 100);
|
|
3484
3553
|
break;
|
|
3485
3554
|
case "levelMultiplier":
|
|
3486
|
-
["", null].includes(
|
|
3555
|
+
["", null].includes(b.range[0]) || ($.minLevelMultiplier = b.range[0]), ["", null].includes(b.range[1]) || ($.maxLevelMultiplier = b.range[1]);
|
|
3487
3556
|
break;
|
|
3488
3557
|
case "turnover":
|
|
3489
|
-
["", null].includes(
|
|
3558
|
+
["", null].includes(b.range[0]) || ($.minTurnover = b.range[0] * 1e4), ["", null].includes(b.range[1]) || ($.maxTurnover = b.range[1] * 1e4);
|
|
3490
3559
|
break;
|
|
3491
3560
|
case "volume":
|
|
3492
|
-
["", null].includes(
|
|
3561
|
+
["", null].includes(b.range[0]) || ($.minVolume = b.range[0]), ["", null].includes(b.range[1]) || ($.maxVolume = b.range[1]);
|
|
3493
3562
|
break;
|
|
3494
3563
|
case "openInterest":
|
|
3495
|
-
["", null].includes(
|
|
3564
|
+
["", null].includes(b.range[0]) || ($.minOpenInterest = b.range[0]), ["", null].includes(b.range[1]) || ($.maxOpenInterest = b.range[1]);
|
|
3496
3565
|
break;
|
|
3497
3566
|
case "optionsCpType":
|
|
3498
|
-
|
|
3567
|
+
$.optionsCpType = b.optionsCpType;
|
|
3499
3568
|
break;
|
|
3500
3569
|
case "optionGear":
|
|
3501
|
-
["", null].includes(
|
|
3570
|
+
["", null].includes(b.range[0]) || ($.minOptionGear = b.range[0]), ["", null].includes(b.range[1]) || ($.maxOptionGear = b.range[1]);
|
|
3502
3571
|
break;
|
|
3503
3572
|
}
|
|
3504
|
-
}), Object.keys(
|
|
3573
|
+
}), Object.keys($).length && (s.searchOptionDto = $);
|
|
3505
3574
|
}
|
|
3506
|
-
return console.log("%c[st-varietySearch]: 接口传参数据生成完毕", "color: green",
|
|
3575
|
+
return console.log("%c[st-varietySearch]: 接口传参数据生成完毕", "color: green", s), s;
|
|
3507
3576
|
}
|
|
3508
|
-
}), (
|
|
3509
|
-
var
|
|
3510
|
-
const
|
|
3511
|
-
return
|
|
3512
|
-
(
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
onClick:
|
|
3577
|
+
}), (c, s) => {
|
|
3578
|
+
var h, d, g, y, w;
|
|
3579
|
+
const x = Et, _ = St, f = tr, v = nr;
|
|
3580
|
+
return I(), q("div", si, [
|
|
3581
|
+
(h = a.value.varietyMarket) != null && h.show ? (I(), q("div", ui, [
|
|
3582
|
+
C("div", di, [
|
|
3583
|
+
ci,
|
|
3584
|
+
C("span", {
|
|
3585
|
+
onClick: s[0] || (s[0] = (k) => V("varietyMarket"))
|
|
3517
3586
|
}, "不限")
|
|
3518
3587
|
]),
|
|
3519
|
-
|
|
3588
|
+
F(_, {
|
|
3520
3589
|
modelValue: r.value.varietyMarket,
|
|
3521
|
-
"onUpdate:modelValue":
|
|
3590
|
+
"onUpdate:modelValue": s[1] || (s[1] = (k) => r.value.varietyMarket = k),
|
|
3522
3591
|
size: "small"
|
|
3523
3592
|
}, {
|
|
3524
|
-
default:
|
|
3525
|
-
(
|
|
3526
|
-
label:
|
|
3527
|
-
key:
|
|
3593
|
+
default: S(() => [
|
|
3594
|
+
(I(!0), q(H, null, se(l.value, ({ label: k, value: $ }) => (I(), U(x, {
|
|
3595
|
+
label: $,
|
|
3596
|
+
key: $
|
|
3528
3597
|
}, {
|
|
3529
|
-
default:
|
|
3530
|
-
P(
|
|
3598
|
+
default: S(() => [
|
|
3599
|
+
P(te(k), 1)
|
|
3531
3600
|
]),
|
|
3532
3601
|
_: 2
|
|
3533
3602
|
}, 1032, ["label"]))), 128))
|
|
3534
3603
|
]),
|
|
3535
3604
|
_: 1
|
|
3536
3605
|
}, 8, ["modelValue"])
|
|
3537
|
-
])) :
|
|
3538
|
-
(
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
onClick:
|
|
3606
|
+
])) : z("", !0),
|
|
3607
|
+
(d = a.value.commonOption) != null && d.show && o.value.length ? (I(), q("div", fi, [
|
|
3608
|
+
C("div", pi, [
|
|
3609
|
+
mi,
|
|
3610
|
+
C("span", {
|
|
3611
|
+
onClick: s[2] || (s[2] = (k) => V("commonOption"))
|
|
3543
3612
|
}, "不限")
|
|
3544
3613
|
]),
|
|
3545
|
-
|
|
3614
|
+
F(v, {
|
|
3546
3615
|
modelValue: r.value.commonOption,
|
|
3547
|
-
"onUpdate:modelValue":
|
|
3616
|
+
"onUpdate:modelValue": s[3] || (s[3] = (k) => r.value.commonOption = k),
|
|
3617
|
+
size: "small"
|
|
3618
|
+
}, {
|
|
3619
|
+
default: S(() => [
|
|
3620
|
+
(I(!0), q(H, null, se(o.value, ({ label: k, value: $ }) => (I(), U(f, {
|
|
3621
|
+
label: $,
|
|
3622
|
+
key: $
|
|
3623
|
+
}, {
|
|
3624
|
+
default: S(() => [
|
|
3625
|
+
P(te(k), 1)
|
|
3626
|
+
]),
|
|
3627
|
+
_: 2
|
|
3628
|
+
}, 1032, ["label"]))), 128))
|
|
3629
|
+
]),
|
|
3630
|
+
_: 1
|
|
3631
|
+
}, 8, ["modelValue"])
|
|
3632
|
+
])) : z("", !0),
|
|
3633
|
+
(g = a.value.marketIds) != null && g.show && i.value.length ? (I(), q("div", vi, [
|
|
3634
|
+
C("div", gi, [
|
|
3635
|
+
yi,
|
|
3636
|
+
C("span", {
|
|
3637
|
+
onClick: s[4] || (s[4] = (k) => V("marketIds"))
|
|
3638
|
+
}, "不限")
|
|
3639
|
+
]),
|
|
3640
|
+
F(v, {
|
|
3641
|
+
modelValue: r.value.marketIds,
|
|
3642
|
+
"onUpdate:modelValue": s[5] || (s[5] = (k) => r.value.marketIds = k),
|
|
3548
3643
|
size: "small"
|
|
3549
3644
|
}, {
|
|
3550
|
-
default:
|
|
3551
|
-
(
|
|
3552
|
-
label:
|
|
3553
|
-
key:
|
|
3645
|
+
default: S(() => [
|
|
3646
|
+
(I(!0), q(H, null, se(i.value, ({ label: k, value: $ }) => (I(), U(f, {
|
|
3647
|
+
label: $,
|
|
3648
|
+
key: $
|
|
3554
3649
|
}, {
|
|
3555
|
-
default:
|
|
3556
|
-
P(
|
|
3650
|
+
default: S(() => [
|
|
3651
|
+
P(te(k), 1)
|
|
3557
3652
|
]),
|
|
3558
3653
|
_: 2
|
|
3559
3654
|
}, 1032, ["label"]))), 128))
|
|
3560
3655
|
]),
|
|
3561
3656
|
_: 1
|
|
3562
3657
|
}, 8, ["modelValue"])
|
|
3563
|
-
])) :
|
|
3564
|
-
(
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
onClick:
|
|
3658
|
+
])) : z("", !0),
|
|
3659
|
+
(y = a.value.customTag) != null && y.show && p.value.length ? (I(), q("div", bi, [
|
|
3660
|
+
C("div", hi, [
|
|
3661
|
+
_i,
|
|
3662
|
+
C("span", {
|
|
3663
|
+
onClick: s[6] || (s[6] = (k) => V("customTag"))
|
|
3569
3664
|
}, "不限")
|
|
3570
3665
|
]),
|
|
3571
|
-
|
|
3666
|
+
F(v, {
|
|
3572
3667
|
modelValue: r.value.customTag,
|
|
3573
|
-
"onUpdate:modelValue":
|
|
3668
|
+
"onUpdate:modelValue": s[7] || (s[7] = (k) => r.value.customTag = k),
|
|
3574
3669
|
size: "small"
|
|
3575
3670
|
}, {
|
|
3576
|
-
default:
|
|
3577
|
-
(
|
|
3578
|
-
label:
|
|
3579
|
-
key:
|
|
3671
|
+
default: S(() => [
|
|
3672
|
+
(I(!0), q(H, null, se(p.value, ({ label: k, value: $ }) => (I(), U(f, {
|
|
3673
|
+
label: $,
|
|
3674
|
+
key: $
|
|
3580
3675
|
}, {
|
|
3581
|
-
default:
|
|
3582
|
-
P(
|
|
3676
|
+
default: S(() => [
|
|
3677
|
+
P(te(k), 1)
|
|
3583
3678
|
]),
|
|
3584
3679
|
_: 2
|
|
3585
3680
|
}, 1032, ["label"]))), 128))
|
|
3586
3681
|
]),
|
|
3587
3682
|
_: 1
|
|
3588
3683
|
}, 8, ["modelValue"])
|
|
3589
|
-
])) :
|
|
3590
|
-
(
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
onClick:
|
|
3684
|
+
])) : z("", !0),
|
|
3685
|
+
(w = a.value.factorScreen) != null && w.show ? (I(), q("div", wi, [
|
|
3686
|
+
C("div", xi, [
|
|
3687
|
+
Oi,
|
|
3688
|
+
C("span", {
|
|
3689
|
+
onClick: s[8] || (s[8] = (k) => V("factorScreen"))
|
|
3595
3690
|
}, "不限")
|
|
3596
3691
|
]),
|
|
3597
|
-
|
|
3692
|
+
F(Rl, {
|
|
3598
3693
|
data: r.value.factorScreen,
|
|
3599
|
-
"onUpdate:data":
|
|
3694
|
+
"onUpdate:data": s[9] || (s[9] = (k) => r.value.factorScreen = k),
|
|
3600
3695
|
config: a.value.factorScreen
|
|
3601
3696
|
}, null, 8, ["data", "config"])
|
|
3602
|
-
])) :
|
|
3603
|
-
|
|
3697
|
+
])) : z("", !0),
|
|
3698
|
+
F(ii, {
|
|
3604
3699
|
data: r.value.commonIndicator,
|
|
3605
|
-
"onUpdate:data":
|
|
3700
|
+
"onUpdate:data": s[10] || (s[10] = (k) => r.value.commonIndicator = k),
|
|
3606
3701
|
varietyMarket: r.value.varietyMarket,
|
|
3607
3702
|
commonOption: r.value.commonOption,
|
|
3608
3703
|
config: a.value.commonIndicator
|
|
@@ -3610,11 +3705,11 @@ const Xe = (n) => (ht("data-v-6f290912"), n = n(), _t(), n), ii = { class: "vari
|
|
|
3610
3705
|
]);
|
|
3611
3706
|
};
|
|
3612
3707
|
}
|
|
3613
|
-
},
|
|
3708
|
+
}, Ii = /* @__PURE__ */ $t(ki, [["__scopeId", "data-v-c7dfa2d4"]]), Yi = {
|
|
3614
3709
|
install(n) {
|
|
3615
|
-
n.component("st-varietySearch",
|
|
3710
|
+
n.component("st-varietySearch", Ii);
|
|
3616
3711
|
}
|
|
3617
3712
|
};
|
|
3618
3713
|
export {
|
|
3619
|
-
|
|
3714
|
+
Yi as default
|
|
3620
3715
|
};
|