fj-form 0.0.7 → 0.0.9
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/README.md +11 -26
- package/dist/fj-form.css +1 -1
- package/dist/fj-form.js +420 -414
- package/dist/fj-form.umd.cjs +4 -4
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
package/dist/fj-form.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { getCurrentInstance as pe, inject as
|
|
2
|
-
const pr = /* @__PURE__ */ Symbol(),
|
|
1
|
+
import { getCurrentInstance as pe, inject as K, ref as P, computed as v, unref as w, watch as ae, shallowRef as qe, watchEffect as ho, readonly as or, getCurrentScope as bo, onScopeDispose as _o, onMounted as it, isRef as Se, warn as wo, provide as st, defineComponent as N, openBlock as C, createElementBlock as L, mergeProps as Ee, renderSlot as ne, createElementVNode as H, normalizeClass as Z, createVNode as M, Transition as ar, withCtx as U, withDirectives as ir, normalizeStyle as Be, createTextVNode as ke, toDisplayString as gt, vShow as sr, createBlock as te, resolveDynamicComponent as lt, reactive as At, toRefs as lr, onBeforeUnmount as ur, onUpdated as xo, Fragment as _t, nextTick as Ht, useSlots as To, createCommentVNode as De, TransitionGroup as $o, shallowReactive as cr, withModifiers as Oo, isVNode as fr, render as yn, useModel as me, resolveComponent as ie, renderList as dr, h as W } from "vue";
|
|
2
|
+
const pr = /* @__PURE__ */ Symbol(), pt = "el", So = "is-", we = (e, t, n, r, o) => {
|
|
3
3
|
let i = `${e}-${t}`;
|
|
4
4
|
return n && (i += `-${n}`), r && (i += `__${r}`), o && (i += `--${o}`), i;
|
|
5
5
|
}, mr = /* @__PURE__ */ Symbol("namespaceContextKey"), vr = (e) => {
|
|
6
|
-
const t = e || (pe() ?
|
|
7
|
-
return v(() => w(t) ||
|
|
6
|
+
const t = e || (pe() ? K(mr, P(pt)) : P(pt));
|
|
7
|
+
return v(() => w(t) || pt);
|
|
8
8
|
}, ye = (e, t) => {
|
|
9
9
|
const n = vr(t);
|
|
10
10
|
return {
|
|
11
11
|
namespace: n,
|
|
12
|
-
b: (
|
|
13
|
-
e: (
|
|
14
|
-
m: (
|
|
15
|
-
be: (
|
|
16
|
-
em: (
|
|
17
|
-
bm: (
|
|
18
|
-
bem: (
|
|
19
|
-
is: (
|
|
12
|
+
b: (f = "") => we(n.value, e, f, "", ""),
|
|
13
|
+
e: (f) => f ? we(n.value, e, "", f, "") : "",
|
|
14
|
+
m: (f) => f ? we(n.value, e, "", "", f) : "",
|
|
15
|
+
be: (f, m) => f && m ? we(n.value, e, f, m, "") : "",
|
|
16
|
+
em: (f, m) => f && m ? we(n.value, e, "", f, m) : "",
|
|
17
|
+
bm: (f, m) => f && m ? we(n.value, e, f, "", m) : "",
|
|
18
|
+
bem: (f, m, l) => f && m && l ? we(n.value, e, f, m, l) : "",
|
|
19
|
+
is: (f, ...m) => {
|
|
20
20
|
const l = m.length >= 1 ? m[0] : !0;
|
|
21
|
-
return
|
|
21
|
+
return f && l ? `${So}${f}` : "";
|
|
22
22
|
},
|
|
23
|
-
cssVar: (
|
|
23
|
+
cssVar: (f) => {
|
|
24
24
|
const m = {};
|
|
25
|
-
for (const l in
|
|
26
|
-
|
|
25
|
+
for (const l in f)
|
|
26
|
+
f[l] && (m[`--${n.value}-${l}`] = f[l]);
|
|
27
27
|
return m;
|
|
28
28
|
},
|
|
29
|
-
cssVarName: (
|
|
30
|
-
cssVarBlock: (
|
|
29
|
+
cssVarName: (f) => `--${n.value}-${f}`,
|
|
30
|
+
cssVarBlock: (f) => {
|
|
31
31
|
const m = {};
|
|
32
|
-
for (const l in
|
|
33
|
-
|
|
32
|
+
for (const l in f)
|
|
33
|
+
f[l] && (m[`--${n.value}-${e}-${l}`] = f[l]);
|
|
34
34
|
return m;
|
|
35
35
|
},
|
|
36
|
-
cssVarBlockName: (
|
|
36
|
+
cssVarBlockName: (f) => `--${n.value}-${e}-${f}`
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
@@ -56,7 +56,7 @@ function No(e) {
|
|
|
56
56
|
return Vo.call(e);
|
|
57
57
|
}
|
|
58
58
|
var Mo = "[object Null]", Lo = "[object Undefined]", hn = ge ? ge.toStringTag : void 0;
|
|
59
|
-
function
|
|
59
|
+
function Ue(e) {
|
|
60
60
|
return e == null ? e === void 0 ? Lo : Mo : hn && hn in Object(e) ? Ao(e) : No(e);
|
|
61
61
|
}
|
|
62
62
|
function Ke(e) {
|
|
@@ -64,7 +64,7 @@ function Ke(e) {
|
|
|
64
64
|
}
|
|
65
65
|
var qo = "[object Symbol]";
|
|
66
66
|
function Jt(e) {
|
|
67
|
-
return typeof e == "symbol" || Ke(e) &&
|
|
67
|
+
return typeof e == "symbol" || Ke(e) && Ue(e) == qo;
|
|
68
68
|
}
|
|
69
69
|
function ko(e, t) {
|
|
70
70
|
for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
|
|
@@ -90,17 +90,17 @@ var Do = "[object AsyncFunction]", Ro = "[object Function]", Bo = "[object Gener
|
|
|
90
90
|
function br(e) {
|
|
91
91
|
if (!Te(e))
|
|
92
92
|
return !1;
|
|
93
|
-
var t =
|
|
93
|
+
var t = Ue(e);
|
|
94
94
|
return t == Ro || t == Bo || t == Do || t == zo;
|
|
95
95
|
}
|
|
96
96
|
var Ct = se["__core-js_shared__"], wn = (function() {
|
|
97
97
|
var e = /[^.]+$/.exec(Ct && Ct.keys && Ct.keys.IE_PROTO || "");
|
|
98
98
|
return e ? "Symbol(src)_1." + e : "";
|
|
99
99
|
})();
|
|
100
|
-
function
|
|
100
|
+
function Wo(e) {
|
|
101
101
|
return !!wn && wn in e;
|
|
102
102
|
}
|
|
103
|
-
var
|
|
103
|
+
var Uo = Function.prototype, Ko = Uo.toString;
|
|
104
104
|
function Ce(e) {
|
|
105
105
|
if (e != null) {
|
|
106
106
|
try {
|
|
@@ -118,7 +118,7 @@ var Go = /[\\^$.*+?()[\]{}|]/g, Yo = /^\[object .+?Constructor\]$/, Ho = Functio
|
|
|
118
118
|
"^" + Jo.call(Xo).replace(Go, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
119
119
|
);
|
|
120
120
|
function ea(e) {
|
|
121
|
-
if (!Te(e) ||
|
|
121
|
+
if (!Te(e) || Wo(e))
|
|
122
122
|
return !1;
|
|
123
123
|
var t = br(e) ? Qo : Yo;
|
|
124
124
|
return t.test(Ce(e));
|
|
@@ -210,7 +210,7 @@ function fa(e, t) {
|
|
|
210
210
|
}
|
|
211
211
|
var da = "[object Arguments]";
|
|
212
212
|
function $n(e) {
|
|
213
|
-
return Ke(e) &&
|
|
213
|
+
return Ke(e) && Ue(e) == da;
|
|
214
214
|
}
|
|
215
215
|
var Tr = Object.prototype, pa = Tr.hasOwnProperty, ma = Tr.propertyIsEnumerable, $r = $n(/* @__PURE__ */ (function() {
|
|
216
216
|
return arguments;
|
|
@@ -224,22 +224,22 @@ var Or = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
224
224
|
A[Pa] = A[Va] = A[Na] = A[Ma] = A[La] = A[qa] = A[ka] = A[Da] = A[Ra] = !0;
|
|
225
225
|
A[ha] = A[ba] = A[ja] = A[_a] = A[Aa] = A[wa] = A[xa] = A[Ta] = A[$a] = A[Oa] = A[Sa] = A[Ea] = A[Ca] = A[Fa] = A[Ia] = !1;
|
|
226
226
|
function Ba(e) {
|
|
227
|
-
return Ke(e) && en(e.length) && !!A[
|
|
227
|
+
return Ke(e) && en(e.length) && !!A[Ue(e)];
|
|
228
228
|
}
|
|
229
229
|
function nn(e) {
|
|
230
230
|
return function(t) {
|
|
231
231
|
return e(t);
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
|
-
var Er = typeof exports == "object" && exports && !exports.nodeType && exports, Ze = Er && typeof module == "object" && module && !module.nodeType && module, za = Ze && Ze.exports === Er, Ft = za && gr.process,
|
|
234
|
+
var Er = typeof exports == "object" && exports && !exports.nodeType && exports, Ze = Er && typeof module == "object" && module && !module.nodeType && module, za = Ze && Ze.exports === Er, Ft = za && gr.process, We = (function() {
|
|
235
235
|
try {
|
|
236
236
|
var e = Ze && Ze.require && Ze.require("util").types;
|
|
237
237
|
return e || Ft && Ft.binding && Ft.binding("util");
|
|
238
238
|
} catch {
|
|
239
239
|
}
|
|
240
|
-
})(), En =
|
|
240
|
+
})(), En = We && We.isTypedArray, Wa = En ? nn(En) : Ba, Ua = Object.prototype, Ka = Ua.hasOwnProperty;
|
|
241
241
|
function Cr(e, t) {
|
|
242
|
-
var n = he(e), r = !n && $r(e), o = !n && !r && Sr(e), i = !n && !r && !o &&
|
|
242
|
+
var n = he(e), r = !n && $r(e), o = !n && !r && Sr(e), i = !n && !r && !o && Wa(e), a = n || r || o || i, s = a ? fa(e.length, String) : [], u = s.length;
|
|
243
243
|
for (var d in e)
|
|
244
244
|
(t || Ka.call(e, d)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
245
245
|
(d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -512,8 +512,8 @@ function Bi(e, t) {
|
|
|
512
512
|
function zi(e, t) {
|
|
513
513
|
return e && wt(t, on(t), e);
|
|
514
514
|
}
|
|
515
|
-
var Pr = typeof exports == "object" && exports && !exports.nodeType && exports, Cn = Pr && typeof module == "object" && module && !module.nodeType && module,
|
|
516
|
-
function
|
|
515
|
+
var Pr = typeof exports == "object" && exports && !exports.nodeType && exports, Cn = Pr && typeof module == "object" && module && !module.nodeType && module, Wi = Cn && Cn.exports === Pr, Fn = Wi ? se.Buffer : void 0, In = Fn ? Fn.allocUnsafe : void 0;
|
|
516
|
+
function Ui(e, t) {
|
|
517
517
|
if (t)
|
|
518
518
|
return e.slice();
|
|
519
519
|
var n = e.length, r = In ? In(n) : new e.constructor(n);
|
|
@@ -555,9 +555,9 @@ function Xi(e) {
|
|
|
555
555
|
function Qi(e) {
|
|
556
556
|
return Mr(e, on, Nr);
|
|
557
557
|
}
|
|
558
|
-
var Mt = Fe(se, "DataView"), Lt = Fe(se, "Promise"), qt = Fe(se, "Set"), An = "[object Map]", es = "[object Object]", Pn = "[object Promise]", Vn = "[object Set]", Nn = "[object WeakMap]", Mn = "[object DataView]", ts = Ce(Mt), ns = Ce(nt), rs = Ce(Lt), os = Ce(qt), as = Ce(Vt), ce =
|
|
558
|
+
var Mt = Fe(se, "DataView"), Lt = Fe(se, "Promise"), qt = Fe(se, "Set"), An = "[object Map]", es = "[object Object]", Pn = "[object Promise]", Vn = "[object Set]", Nn = "[object WeakMap]", Mn = "[object DataView]", ts = Ce(Mt), ns = Ce(nt), rs = Ce(Lt), os = Ce(qt), as = Ce(Vt), ce = Ue;
|
|
559
559
|
(Mt && ce(new Mt(new ArrayBuffer(1))) != Mn || nt && ce(new nt()) != An || Lt && ce(Lt.resolve()) != Pn || qt && ce(new qt()) != Vn || Vt && ce(new Vt()) != Nn) && (ce = function(e) {
|
|
560
|
-
var t =
|
|
560
|
+
var t = Ue(e), n = t == es ? e.constructor : void 0, r = n ? Ce(n) : "";
|
|
561
561
|
if (r)
|
|
562
562
|
switch (r) {
|
|
563
563
|
case ts:
|
|
@@ -641,12 +641,12 @@ var Ns = "[object Map]";
|
|
|
641
641
|
function Ms(e) {
|
|
642
642
|
return Ke(e) && ce(e) == Ns;
|
|
643
643
|
}
|
|
644
|
-
var Dn =
|
|
644
|
+
var Dn = We && We.isMap, Ls = Dn ? nn(Dn) : Ms, qs = "[object Set]";
|
|
645
645
|
function ks(e) {
|
|
646
646
|
return Ke(e) && ce(e) == qs;
|
|
647
647
|
}
|
|
648
|
-
var Rn =
|
|
649
|
-
j[Lr] = j[
|
|
648
|
+
var Rn = We && We.isSet, Ds = Rn ? nn(Rn) : ks, Rs = 1, Bs = 2, zs = 4, Lr = "[object Arguments]", Ws = "[object Array]", Us = "[object Boolean]", Ks = "[object Date]", Gs = "[object Error]", qr = "[object Function]", Ys = "[object GeneratorFunction]", Hs = "[object Map]", Zs = "[object Number]", kr = "[object Object]", Js = "[object RegExp]", Xs = "[object Set]", Qs = "[object String]", el = "[object Symbol]", tl = "[object WeakMap]", nl = "[object ArrayBuffer]", rl = "[object DataView]", ol = "[object Float32Array]", al = "[object Float64Array]", il = "[object Int8Array]", sl = "[object Int16Array]", ll = "[object Int32Array]", ul = "[object Uint8Array]", cl = "[object Uint8ClampedArray]", fl = "[object Uint16Array]", dl = "[object Uint32Array]", j = {};
|
|
649
|
+
j[Lr] = j[Ws] = j[nl] = j[rl] = j[Us] = j[Ks] = j[ol] = j[al] = j[il] = j[sl] = j[ll] = j[Hs] = j[Zs] = j[kr] = j[Js] = j[Xs] = j[Qs] = j[el] = j[ul] = j[cl] = j[fl] = j[dl] = !0;
|
|
650
650
|
j[Gs] = j[qr] = j[tl] = !1;
|
|
651
651
|
function Je(e, t, n, r, o, i) {
|
|
652
652
|
var a, s = t & Rs, u = t & Bs, d = t & zs;
|
|
@@ -654,16 +654,16 @@ function Je(e, t, n, r, o, i) {
|
|
|
654
654
|
return a;
|
|
655
655
|
if (!Te(e))
|
|
656
656
|
return e;
|
|
657
|
-
var
|
|
658
|
-
if (
|
|
657
|
+
var c = he(e);
|
|
658
|
+
if (c) {
|
|
659
659
|
if (a = ls(e), !s)
|
|
660
660
|
return ra(e, a);
|
|
661
661
|
} else {
|
|
662
|
-
var p = ce(e),
|
|
662
|
+
var p = ce(e), y = p == qr || p == Ys;
|
|
663
663
|
if (Sr(e))
|
|
664
|
-
return
|
|
665
|
-
if (p == kr || p == Lr ||
|
|
666
|
-
if (a = u ||
|
|
664
|
+
return Ui(e, s);
|
|
665
|
+
if (p == kr || p == Lr || y && !o) {
|
|
666
|
+
if (a = u || y ? {} : Vs(e), !s)
|
|
667
667
|
return u ? Ji(e, zi(a, e)) : Hi(e, Bi(a, e));
|
|
668
668
|
} else {
|
|
669
669
|
if (!j[p])
|
|
@@ -680,9 +680,9 @@ function Je(e, t, n, r, o, i) {
|
|
|
680
680
|
}) : Ls(e) && e.forEach(function(m, l) {
|
|
681
681
|
a.set(l, Je(m, t, n, l, e, i));
|
|
682
682
|
});
|
|
683
|
-
var
|
|
684
|
-
return oa(
|
|
685
|
-
|
|
683
|
+
var g = d ? u ? Qi : Xi : u ? on : rn, f = c ? void 0 : g(e);
|
|
684
|
+
return oa(f || e, function(m, l) {
|
|
685
|
+
f && (l = m, m = e[l]), Qt(a, l, Je(m, t, n, l, e, i));
|
|
686
686
|
}), a;
|
|
687
687
|
}
|
|
688
688
|
var pl = 4;
|
|
@@ -690,7 +690,7 @@ function It(e) {
|
|
|
690
690
|
return Je(e, pl);
|
|
691
691
|
}
|
|
692
692
|
var ml = 1, vl = 4;
|
|
693
|
-
function
|
|
693
|
+
function yt(e) {
|
|
694
694
|
return Je(e, ml | vl);
|
|
695
695
|
}
|
|
696
696
|
function gl(e, t, n) {
|
|
@@ -726,8 +726,8 @@ function xl(e, t, n, r) {
|
|
|
726
726
|
if (u === "__proto__" || u === "constructor" || u === "prototype")
|
|
727
727
|
return e;
|
|
728
728
|
if (o != a) {
|
|
729
|
-
var
|
|
730
|
-
d = void 0, d === void 0 && (d = Te(
|
|
729
|
+
var c = s[u];
|
|
730
|
+
d = void 0, d === void 0 && (d = Te(c) ? c : Xt(t[o + 1]) ? [] : {});
|
|
731
731
|
}
|
|
732
732
|
Qt(s, u, d), s = s[u];
|
|
733
733
|
}
|
|
@@ -772,11 +772,11 @@ function Il(e, t = {}) {
|
|
|
772
772
|
};
|
|
773
773
|
return (s) => {
|
|
774
774
|
const u = rt(e), d = rt(t.maxWait);
|
|
775
|
-
return n && i(n), u <= 0 || d !== void 0 && d <= 0 ? (r && (i(r), r = null), Promise.resolve(s())) : new Promise((
|
|
776
|
-
o = t.rejectOnCancel ? p :
|
|
777
|
-
n && i(n), r = null,
|
|
775
|
+
return n && i(n), u <= 0 || d !== void 0 && d <= 0 ? (r && (i(r), r = null), Promise.resolve(s())) : new Promise((c, p) => {
|
|
776
|
+
o = t.rejectOnCancel ? p : c, d && !r && (r = setTimeout(() => {
|
|
777
|
+
n && i(n), r = null, c(s());
|
|
778
778
|
}, d)), n = setTimeout(() => {
|
|
779
|
-
r && i(r), r = null,
|
|
779
|
+
r && i(r), r = null, c(s());
|
|
780
780
|
}, u);
|
|
781
781
|
});
|
|
782
782
|
};
|
|
@@ -827,15 +827,15 @@ function Vl(...e) {
|
|
|
827
827
|
return kt;
|
|
828
828
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
829
829
|
const i = [], a = () => {
|
|
830
|
-
i.forEach((
|
|
831
|
-
}, s = (
|
|
830
|
+
i.forEach((c) => c()), i.length = 0;
|
|
831
|
+
}, s = (c, p, y, h) => (c.addEventListener(p, y, h), () => c.removeEventListener(p, y, h)), u = ae(
|
|
832
832
|
() => [Dt(t), rt(o)],
|
|
833
|
-
([
|
|
834
|
-
if (a(), !
|
|
833
|
+
([c, p]) => {
|
|
834
|
+
if (a(), !c)
|
|
835
835
|
return;
|
|
836
|
-
const
|
|
836
|
+
const y = Cl(p) ? { ...p } : p;
|
|
837
837
|
i.push(
|
|
838
|
-
...n.flatMap((h) => r.map((
|
|
838
|
+
...n.flatMap((h) => r.map((g) => s(c, h, g, y)))
|
|
839
839
|
);
|
|
840
840
|
},
|
|
841
841
|
{ immediate: !0, flush: "post" }
|
|
@@ -864,17 +864,17 @@ function Rr(e, t, n = {}) {
|
|
|
864
864
|
(p) => {
|
|
865
865
|
if (s(), a.value && r) {
|
|
866
866
|
i = new ResizeObserver(t);
|
|
867
|
-
for (const
|
|
868
|
-
|
|
867
|
+
for (const y of p)
|
|
868
|
+
y && i.observe(y, o);
|
|
869
869
|
}
|
|
870
870
|
},
|
|
871
871
|
{ immediate: !0, flush: "post" }
|
|
872
|
-
),
|
|
872
|
+
), c = () => {
|
|
873
873
|
s(), d();
|
|
874
874
|
};
|
|
875
|
-
return fn(
|
|
875
|
+
return fn(c), {
|
|
876
876
|
isSupported: a,
|
|
877
|
-
stop:
|
|
877
|
+
stop: c
|
|
878
878
|
};
|
|
879
879
|
}
|
|
880
880
|
class Br extends Error {
|
|
@@ -893,12 +893,12 @@ function Q(e, t) {
|
|
|
893
893
|
}
|
|
894
894
|
const Bn = {
|
|
895
895
|
current: 0
|
|
896
|
-
}, zn = P(0), zr = 2e3,
|
|
897
|
-
const t = pe() ?
|
|
896
|
+
}, zn = P(0), zr = 2e3, Wn = /* @__PURE__ */ Symbol("elZIndexContextKey"), Wr = /* @__PURE__ */ Symbol("zIndexContextKey"), ql = (e) => {
|
|
897
|
+
const t = pe() ? K(Wn, Bn) : Bn, n = e || (pe() ? K(Wr, void 0) : void 0), r = v(() => {
|
|
898
898
|
const a = w(n);
|
|
899
899
|
return fe(a) ? a : zr;
|
|
900
900
|
}), o = v(() => r.value + zn.value), i = () => (t.current++, zn.value = t.current, o.value);
|
|
901
|
-
return !Ie && !
|
|
901
|
+
return !Ie && !K(Wn) && Q(
|
|
902
902
|
"ZIndexInjection",
|
|
903
903
|
`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
904
904
|
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`
|
|
@@ -1115,26 +1115,26 @@ const Dl = (e) => (t, n) => Rl(t, n, w(e)), Rl = (e, t, n) => Ir(n, e, e).replac
|
|
|
1115
1115
|
locale: n,
|
|
1116
1116
|
t: Dl(e)
|
|
1117
1117
|
};
|
|
1118
|
-
},
|
|
1119
|
-
const t = e ||
|
|
1118
|
+
}, Ur = /* @__PURE__ */ Symbol("localeContextKey"), zl = (e) => {
|
|
1119
|
+
const t = e || K(Ur, P());
|
|
1120
1120
|
return Bl(v(() => t.value || kl));
|
|
1121
|
-
}, Kr = "__epPropKey", V = (e) => e,
|
|
1122
|
-
if (!Zt(e) ||
|
|
1121
|
+
}, Kr = "__epPropKey", V = (e) => e, Wl = (e) => Zt(e) && !!e[Kr], Gr = (e, t) => {
|
|
1122
|
+
if (!Zt(e) || Wl(e))
|
|
1123
1123
|
return e;
|
|
1124
1124
|
const { values: n, required: r, default: o, type: i, validator: a } = e, u = {
|
|
1125
1125
|
type: i,
|
|
1126
1126
|
required: !!r,
|
|
1127
1127
|
validator: n || a ? (d) => {
|
|
1128
|
-
let
|
|
1129
|
-
if (n && (p = Array.from(n), Pt(e, "default") && p.push(o),
|
|
1130
|
-
const
|
|
1128
|
+
let c = !1, p = [];
|
|
1129
|
+
if (n && (p = Array.from(n), Pt(e, "default") && p.push(o), c || (c = p.includes(d))), a && (c || (c = a(d))), !c && p.length > 0) {
|
|
1130
|
+
const y = [...new Set(p)].map((h) => JSON.stringify(h)).join(", ");
|
|
1131
1131
|
wo(
|
|
1132
|
-
`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${
|
|
1132
|
+
`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${y}], got value ${JSON.stringify(
|
|
1133
1133
|
d
|
|
1134
1134
|
)}.`
|
|
1135
1135
|
);
|
|
1136
1136
|
}
|
|
1137
|
-
return
|
|
1137
|
+
return c;
|
|
1138
1138
|
} : void 0,
|
|
1139
1139
|
[Kr]: !0
|
|
1140
1140
|
};
|
|
@@ -1144,12 +1144,12 @@ const Dl = (e) => (t, n) => Rl(t, n, w(e)), Rl = (e, t, n) => Ir(n, e, e).replac
|
|
|
1144
1144
|
t,
|
|
1145
1145
|
Gr(n, t)
|
|
1146
1146
|
])
|
|
1147
|
-
), dn = ["", "default", "small", "large"],
|
|
1147
|
+
), dn = ["", "default", "small", "large"], Ul = Gr({
|
|
1148
1148
|
type: String,
|
|
1149
1149
|
values: dn,
|
|
1150
1150
|
required: !1
|
|
1151
1151
|
}), Yr = /* @__PURE__ */ Symbol("size"), Kl = () => {
|
|
1152
|
-
const e =
|
|
1152
|
+
const e = K(Yr, {});
|
|
1153
1153
|
return v(() => w(e.size) || "");
|
|
1154
1154
|
}, Gl = /* @__PURE__ */ Symbol("emptyValuesContextKey"), Yl = le({
|
|
1155
1155
|
emptyValues: Array,
|
|
@@ -1163,23 +1163,23 @@ const Dl = (e) => (t, n) => Rl(t, n, w(e)), Rl = (e, t, n) => Ir(n, e, e).replac
|
|
|
1163
1163
|
default: void 0,
|
|
1164
1164
|
validator: (e) => (e = ze(e) ? e() : e, et(e) ? e.every((t) => !t) : !e)
|
|
1165
1165
|
}
|
|
1166
|
-
}),
|
|
1166
|
+
}), Un = (e) => Object.keys(e), mt = (e, t, n) => ({
|
|
1167
1167
|
get value() {
|
|
1168
1168
|
return Ir(e, t, n);
|
|
1169
1169
|
},
|
|
1170
1170
|
set value(r) {
|
|
1171
1171
|
Tl(e, t, r);
|
|
1172
1172
|
}
|
|
1173
|
-
}),
|
|
1173
|
+
}), ht = P();
|
|
1174
1174
|
function Hr(e, t = void 0) {
|
|
1175
|
-
return pe() ?
|
|
1175
|
+
return pe() ? K(pr, ht) : ht;
|
|
1176
1176
|
}
|
|
1177
1177
|
function Hl(e, t) {
|
|
1178
1178
|
const n = Hr(), r = ye(
|
|
1179
1179
|
e,
|
|
1180
1180
|
v(() => {
|
|
1181
1181
|
var s;
|
|
1182
|
-
return ((s = n.value) == null ? void 0 : s.namespace) ||
|
|
1182
|
+
return ((s = n.value) == null ? void 0 : s.namespace) || pt;
|
|
1183
1183
|
})
|
|
1184
1184
|
), o = zl(v(() => {
|
|
1185
1185
|
var s;
|
|
@@ -1202,7 +1202,7 @@ function Hl(e, t) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
const Zr = (e, t, n = !1) => {
|
|
1204
1204
|
var r;
|
|
1205
|
-
const o = !!pe(), i = o ? Hr() : void 0, a = (r = void 0) != null ? r : o ?
|
|
1205
|
+
const o = !!pe(), i = o ? Hr() : void 0, a = (r = void 0) != null ? r : o ? st : void 0;
|
|
1206
1206
|
if (!a) {
|
|
1207
1207
|
Q(
|
|
1208
1208
|
"provideGlobalConfig",
|
|
@@ -1215,13 +1215,13 @@ const Zr = (e, t, n = !1) => {
|
|
|
1215
1215
|
return i?.value ? Zl(i.value, u) : u;
|
|
1216
1216
|
});
|
|
1217
1217
|
return a(pr, s), a(
|
|
1218
|
-
|
|
1218
|
+
Ur,
|
|
1219
1219
|
v(() => s.value.locale)
|
|
1220
1220
|
), a(
|
|
1221
1221
|
mr,
|
|
1222
1222
|
v(() => s.value.namespace)
|
|
1223
1223
|
), a(
|
|
1224
|
-
|
|
1224
|
+
Wr,
|
|
1225
1225
|
v(() => s.value.zIndex)
|
|
1226
1226
|
), a(Yr, {
|
|
1227
1227
|
size: v(() => s.value.size || "")
|
|
@@ -1231,9 +1231,9 @@ const Zr = (e, t, n = !1) => {
|
|
|
1231
1231
|
emptyValues: s.value.emptyValues,
|
|
1232
1232
|
valueOnClear: s.value.valueOnClear
|
|
1233
1233
|
}))
|
|
1234
|
-
), (n || !
|
|
1234
|
+
), (n || !ht.value) && (ht.value = s.value), s;
|
|
1235
1235
|
}, Zl = (e, t) => {
|
|
1236
|
-
const n = [.../* @__PURE__ */ new Set([...
|
|
1236
|
+
const n = [.../* @__PURE__ */ new Set([...Un(e), ...Un(t)])], r = {};
|
|
1237
1237
|
for (const o of n)
|
|
1238
1238
|
r[o] = t[o] !== void 0 ? t[o] : e[o];
|
|
1239
1239
|
return r;
|
|
@@ -1244,7 +1244,7 @@ var je = (e, t) => {
|
|
|
1244
1244
|
n[r] = o;
|
|
1245
1245
|
return n;
|
|
1246
1246
|
};
|
|
1247
|
-
const
|
|
1247
|
+
const ut = (e, t) => {
|
|
1248
1248
|
if (e.install = (n) => {
|
|
1249
1249
|
for (const r of [e, ...Object.values(t ?? {})])
|
|
1250
1250
|
n.component(r.name, r);
|
|
@@ -1298,7 +1298,7 @@ const eu = le({
|
|
|
1298
1298
|
}
|
|
1299
1299
|
});
|
|
1300
1300
|
var nu = /* @__PURE__ */ je(tu, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);
|
|
1301
|
-
const Kn =
|
|
1301
|
+
const Kn = ut(nu);
|
|
1302
1302
|
var ru = /* @__PURE__ */ N({
|
|
1303
1303
|
name: "CircleCloseFilled",
|
|
1304
1304
|
__name: "circle-close-filled",
|
|
@@ -1307,7 +1307,7 @@ var ru = /* @__PURE__ */ N({
|
|
|
1307
1307
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1308
1308
|
viewBox: "0 0 1024 1024"
|
|
1309
1309
|
}, [
|
|
1310
|
-
|
|
1310
|
+
H("path", {
|
|
1311
1311
|
fill: "currentColor",
|
|
1312
1312
|
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
|
1313
1313
|
})
|
|
@@ -1321,7 +1321,7 @@ var ru = /* @__PURE__ */ N({
|
|
|
1321
1321
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1322
1322
|
viewBox: "0 0 1024 1024"
|
|
1323
1323
|
}, [
|
|
1324
|
-
|
|
1324
|
+
H("path", {
|
|
1325
1325
|
fill: "currentColor",
|
|
1326
1326
|
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
1327
1327
|
})
|
|
@@ -1335,7 +1335,7 @@ var ru = /* @__PURE__ */ N({
|
|
|
1335
1335
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1336
1336
|
viewBox: "0 0 1024 1024"
|
|
1337
1337
|
}, [
|
|
1338
|
-
|
|
1338
|
+
H("path", {
|
|
1339
1339
|
fill: "currentColor",
|
|
1340
1340
|
d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
|
|
1341
1341
|
})
|
|
@@ -1349,7 +1349,7 @@ var ru = /* @__PURE__ */ N({
|
|
|
1349
1349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1350
1350
|
viewBox: "0 0 1024 1024"
|
|
1351
1351
|
}, [
|
|
1352
|
-
|
|
1352
|
+
H("path", {
|
|
1353
1353
|
fill: "currentColor",
|
|
1354
1354
|
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
|
|
1355
1355
|
})
|
|
@@ -1363,7 +1363,7 @@ var ru = /* @__PURE__ */ N({
|
|
|
1363
1363
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1364
1364
|
viewBox: "0 0 1024 1024"
|
|
1365
1365
|
}, [
|
|
1366
|
-
|
|
1366
|
+
H("path", {
|
|
1367
1367
|
fill: "currentColor",
|
|
1368
1368
|
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
|
|
1369
1369
|
})
|
|
@@ -1385,7 +1385,7 @@ const du = V([
|
|
|
1385
1385
|
}, mu = () => Ie && /android/i.test(window.navigator.userAgent), Le = (e) => e, Rt = {
|
|
1386
1386
|
prefix: Math.floor(Math.random() * 1e4),
|
|
1387
1387
|
current: 0
|
|
1388
|
-
}, vu = /* @__PURE__ */ Symbol("elIdInjection"), gu = () => pe() ?
|
|
1388
|
+
}, vu = /* @__PURE__ */ Symbol("elIdInjection"), gu = () => pe() ? K(vu, Rt) : Rt, yu = (e) => {
|
|
1389
1389
|
const t = gu();
|
|
1390
1390
|
!Ie && t === Rt && Q(
|
|
1391
1391
|
"IdInjection",
|
|
@@ -1399,14 +1399,14 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
1399
1399
|
return Sl(
|
|
1400
1400
|
() => w(e) || `${n.value}-id-${t.prefix}-${t.current++}`
|
|
1401
1401
|
);
|
|
1402
|
-
}, $t = /* @__PURE__ */ Symbol("formContextKey"),
|
|
1402
|
+
}, $t = /* @__PURE__ */ Symbol("formContextKey"), bt = /* @__PURE__ */ Symbol("formItemContextKey"), hu = (e) => {
|
|
1403
1403
|
const t = pe();
|
|
1404
1404
|
return v(() => {
|
|
1405
1405
|
var n, r;
|
|
1406
1406
|
return (r = (n = t?.proxy) == null ? void 0 : n.$props) == null ? void 0 : r[e];
|
|
1407
1407
|
});
|
|
1408
1408
|
}, Jr = (e, t = {}) => {
|
|
1409
|
-
const n = P(void 0), r = t.prop ? n : hu("size"), o = t.global ? n : Kl(), i = t.form ? { size: void 0 } :
|
|
1409
|
+
const n = P(void 0), r = t.prop ? n : hu("size"), o = t.global ? n : Kl(), i = t.form ? { size: void 0 } : K($t, void 0), a = t.formItem ? { size: void 0 } : K(bt, void 0);
|
|
1410
1410
|
return v(
|
|
1411
1411
|
() => r.value || w(e) || a?.size || i?.size || o.value || ""
|
|
1412
1412
|
);
|
|
@@ -1490,7 +1490,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
1490
1490
|
}), (a, s) => (C(), L(
|
|
1491
1491
|
"div",
|
|
1492
1492
|
{
|
|
1493
|
-
class:
|
|
1493
|
+
class: Z(w(r).b())
|
|
1494
1494
|
},
|
|
1495
1495
|
[
|
|
1496
1496
|
ne(a.$slots, "default"),
|
|
@@ -1498,11 +1498,11 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
1498
1498
|
name: `${w(r).namespace.value}-zoom-in-center`,
|
|
1499
1499
|
persisted: ""
|
|
1500
1500
|
}, {
|
|
1501
|
-
default:
|
|
1502
|
-
ir(
|
|
1501
|
+
default: U(() => [
|
|
1502
|
+
ir(H(
|
|
1503
1503
|
"sup",
|
|
1504
1504
|
{
|
|
1505
|
-
class:
|
|
1505
|
+
class: Z([
|
|
1506
1506
|
w(r).e("content"),
|
|
1507
1507
|
w(r).em("content", a.type),
|
|
1508
1508
|
w(r).is("fixed", !!a.$slots.default),
|
|
@@ -1515,7 +1515,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
1515
1515
|
[
|
|
1516
1516
|
ne(a.$slots, "content", { value: o.value }, () => [
|
|
1517
1517
|
ke(
|
|
1518
|
-
|
|
1518
|
+
gt(o.value),
|
|
1519
1519
|
1
|
|
1520
1520
|
)
|
|
1521
1521
|
])
|
|
@@ -1533,7 +1533,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
1533
1533
|
}
|
|
1534
1534
|
});
|
|
1535
1535
|
var Tu = /* @__PURE__ */ je(xu, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);
|
|
1536
|
-
const $u =
|
|
1536
|
+
const $u = ut(Tu), Ou = le({
|
|
1537
1537
|
tag: {
|
|
1538
1538
|
type: String,
|
|
1539
1539
|
default: "div"
|
|
@@ -1579,27 +1579,27 @@ const $u = lt(Tu), Ou = le({
|
|
|
1579
1579
|
__name: "col",
|
|
1580
1580
|
props: Ou,
|
|
1581
1581
|
setup(e) {
|
|
1582
|
-
const t = e, { gutter: n } =
|
|
1582
|
+
const t = e, { gutter: n } = K(Xr, { gutter: v(() => 0) }), r = ye("col"), o = v(() => {
|
|
1583
1583
|
const a = {};
|
|
1584
1584
|
return n.value && (a.paddingLeft = a.paddingRight = `${n.value / 2}px`), a;
|
|
1585
1585
|
}), i = v(() => {
|
|
1586
1586
|
const a = [];
|
|
1587
1587
|
return ["span", "offset", "pull", "push"].forEach((d) => {
|
|
1588
|
-
const
|
|
1589
|
-
fe(
|
|
1588
|
+
const c = t[d];
|
|
1589
|
+
fe(c) && (d === "span" ? a.push(r.b(`${t[d]}`)) : c > 0 && a.push(r.b(`${d}-${t[d]}`)));
|
|
1590
1590
|
}), ["xs", "sm", "md", "lg", "xl"].forEach((d) => {
|
|
1591
|
-
fe(t[d]) ? a.push(r.b(`${d}-${t[d]}`)) : Zt(t[d]) && Object.entries(t[d]).forEach(([
|
|
1591
|
+
fe(t[d]) ? a.push(r.b(`${d}-${t[d]}`)) : Zt(t[d]) && Object.entries(t[d]).forEach(([c, p]) => {
|
|
1592
1592
|
a.push(
|
|
1593
|
-
|
|
1593
|
+
c !== "span" ? r.b(`${d}-${c}-${p}`) : r.b(`${d}-${p}`)
|
|
1594
1594
|
);
|
|
1595
1595
|
});
|
|
1596
1596
|
}), n.value && a.push(r.is("guttered")), [r.b(), a];
|
|
1597
1597
|
});
|
|
1598
|
-
return (a, s) => (C(), te(
|
|
1599
|
-
class:
|
|
1598
|
+
return (a, s) => (C(), te(lt(a.tag), {
|
|
1599
|
+
class: Z(i.value),
|
|
1600
1600
|
style: Be(o.value)
|
|
1601
1601
|
}, {
|
|
1602
|
-
default:
|
|
1602
|
+
default: U(() => [
|
|
1603
1603
|
ne(a.$slots, "default")
|
|
1604
1604
|
]),
|
|
1605
1605
|
_: 3
|
|
@@ -1607,7 +1607,7 @@ const $u = lt(Tu), Ou = le({
|
|
|
1607
1607
|
}
|
|
1608
1608
|
});
|
|
1609
1609
|
var Eu = /* @__PURE__ */ je(Su, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);
|
|
1610
|
-
const Hn =
|
|
1610
|
+
const Hn = ut(Eu), Cu = le({
|
|
1611
1611
|
a11y: {
|
|
1612
1612
|
type: Boolean,
|
|
1613
1613
|
default: !0
|
|
@@ -1615,7 +1615,7 @@ const Hn = lt(Eu), Cu = le({
|
|
|
1615
1615
|
locale: {
|
|
1616
1616
|
type: V(Object)
|
|
1617
1617
|
},
|
|
1618
|
-
size:
|
|
1618
|
+
size: Ul,
|
|
1619
1619
|
button: {
|
|
1620
1620
|
type: V(Object)
|
|
1621
1621
|
},
|
|
@@ -1644,7 +1644,7 @@ const Hn = lt(Eu), Cu = le({
|
|
|
1644
1644
|
default: "el"
|
|
1645
1645
|
},
|
|
1646
1646
|
...Yl
|
|
1647
|
-
}),
|
|
1647
|
+
}), Y = {
|
|
1648
1648
|
placement: "top"
|
|
1649
1649
|
};
|
|
1650
1650
|
N({
|
|
@@ -1656,7 +1656,7 @@ N({
|
|
|
1656
1656
|
() => e.message,
|
|
1657
1657
|
(r) => {
|
|
1658
1658
|
var o, i;
|
|
1659
|
-
Object.assign(
|
|
1659
|
+
Object.assign(Y, (i = (o = n?.value) == null ? void 0 : o.message) != null ? i : {}, r ?? {});
|
|
1660
1660
|
},
|
|
1661
1661
|
{ immediate: !0, deep: !0 }
|
|
1662
1662
|
), () => ne(t, "default", { config: n?.value });
|
|
@@ -1739,7 +1739,7 @@ function Pu() {
|
|
|
1739
1739
|
deregisterLabelWidth: o
|
|
1740
1740
|
};
|
|
1741
1741
|
}
|
|
1742
|
-
const
|
|
1742
|
+
const ft = (e, t) => {
|
|
1743
1743
|
const n = Nt(t).map(
|
|
1744
1744
|
(r) => et(r) ? r.join(".") : r
|
|
1745
1745
|
);
|
|
@@ -1762,9 +1762,9 @@ const ct = (e, t) => {
|
|
|
1762
1762
|
[u.m("inline")]: $
|
|
1763
1763
|
}
|
|
1764
1764
|
];
|
|
1765
|
-
}),
|
|
1765
|
+
}), c = (b) => ft(a, [b])[0], p = (b) => {
|
|
1766
1766
|
a.push(b);
|
|
1767
|
-
},
|
|
1767
|
+
}, y = (b) => {
|
|
1768
1768
|
b.prop && a.splice(a.indexOf(b), 1);
|
|
1769
1769
|
}, h = (b) => {
|
|
1770
1770
|
if (!r.model) {
|
|
@@ -1780,25 +1780,25 @@ const ct = (e, t) => {
|
|
|
1780
1780
|
}
|
|
1781
1781
|
a.forEach(($) => {
|
|
1782
1782
|
if ($.prop && wl(b, $.prop)) {
|
|
1783
|
-
const F =
|
|
1783
|
+
const F = mt(b, $.prop).value;
|
|
1784
1784
|
$.setInitialValue(F);
|
|
1785
1785
|
}
|
|
1786
1786
|
});
|
|
1787
|
-
},
|
|
1787
|
+
}, g = (b = []) => {
|
|
1788
1788
|
if (!r.model) {
|
|
1789
1789
|
Q(Ne, "model is required for resetFields to work.");
|
|
1790
1790
|
return;
|
|
1791
1791
|
}
|
|
1792
|
-
|
|
1793
|
-
},
|
|
1794
|
-
|
|
1792
|
+
ft(a, b).forEach(($) => $.resetField());
|
|
1793
|
+
}, f = (b = []) => {
|
|
1794
|
+
ft(a, b).forEach(($) => $.clearValidate());
|
|
1795
1795
|
}, m = v(() => {
|
|
1796
1796
|
const b = !!r.model;
|
|
1797
1797
|
return b || Q(Ne, "model is required for validate to work."), b;
|
|
1798
1798
|
}), l = (b) => {
|
|
1799
1799
|
if (a.length === 0)
|
|
1800
1800
|
return [];
|
|
1801
|
-
const $ =
|
|
1801
|
+
const $ = ft(a, b);
|
|
1802
1802
|
return $.length ? $ : (Q(Ne, "please pass correct props!"), []);
|
|
1803
1803
|
}, T = async (b) => E(void 0, b), x = async (b = []) => {
|
|
1804
1804
|
if (!m.value)
|
|
@@ -1834,7 +1834,7 @@ const ct = (e, t) => {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
}, q = (b) => {
|
|
1836
1836
|
var $;
|
|
1837
|
-
const F =
|
|
1837
|
+
const F = c(b);
|
|
1838
1838
|
F && (($ = F.$el) == null || $.scrollIntoView(r.scrollIntoViewOptions));
|
|
1839
1839
|
};
|
|
1840
1840
|
return ae(
|
|
@@ -1843,27 +1843,27 @@ const ct = (e, t) => {
|
|
|
1843
1843
|
r.validateOnRuleChange && T().catch((b) => Q(b));
|
|
1844
1844
|
},
|
|
1845
1845
|
{ deep: !0, flush: "post" }
|
|
1846
|
-
),
|
|
1846
|
+
), st(
|
|
1847
1847
|
$t,
|
|
1848
1848
|
At({
|
|
1849
1849
|
...lr(r),
|
|
1850
1850
|
emit: o,
|
|
1851
|
-
resetFields:
|
|
1852
|
-
clearValidate:
|
|
1851
|
+
resetFields: g,
|
|
1852
|
+
clearValidate: f,
|
|
1853
1853
|
validateField: E,
|
|
1854
|
-
getField:
|
|
1854
|
+
getField: c,
|
|
1855
1855
|
addField: p,
|
|
1856
|
-
removeField:
|
|
1856
|
+
removeField: y,
|
|
1857
1857
|
setInitialValues: h,
|
|
1858
1858
|
...Pu()
|
|
1859
1859
|
})
|
|
1860
1860
|
), t({
|
|
1861
1861
|
validate: T,
|
|
1862
1862
|
validateField: E,
|
|
1863
|
-
resetFields:
|
|
1864
|
-
clearValidate:
|
|
1863
|
+
resetFields: g,
|
|
1864
|
+
clearValidate: f,
|
|
1865
1865
|
scrollToField: q,
|
|
1866
|
-
getField:
|
|
1866
|
+
getField: c,
|
|
1867
1867
|
fields: a,
|
|
1868
1868
|
setInitialValues: h
|
|
1869
1869
|
}), (b, $) => (C(), L(
|
|
@@ -1871,7 +1871,7 @@ const ct = (e, t) => {
|
|
|
1871
1871
|
{
|
|
1872
1872
|
ref_key: "formRef",
|
|
1873
1873
|
ref: i,
|
|
1874
|
-
class:
|
|
1874
|
+
class: Z(d.value)
|
|
1875
1875
|
},
|
|
1876
1876
|
[
|
|
1877
1877
|
ne(b.$slots, "default")
|
|
@@ -1914,20 +1914,20 @@ function Lu() {
|
|
|
1914
1914
|
return !1;
|
|
1915
1915
|
}
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1918
|
-
return Lu() ?
|
|
1917
|
+
function vt(e, t, n) {
|
|
1918
|
+
return Lu() ? vt = Reflect.construct.bind() : vt = function(o, i, a) {
|
|
1919
1919
|
var s = [null];
|
|
1920
1920
|
s.push.apply(s, i);
|
|
1921
1921
|
var u = Function.bind.apply(o, s), d = new u();
|
|
1922
1922
|
return a && at(d, a.prototype), d;
|
|
1923
|
-
},
|
|
1923
|
+
}, vt.apply(null, arguments);
|
|
1924
1924
|
}
|
|
1925
1925
|
function qu(e) {
|
|
1926
1926
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1928
|
+
function Wt(e) {
|
|
1929
1929
|
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
1930
|
-
return
|
|
1930
|
+
return Wt = function(r) {
|
|
1931
1931
|
if (r === null || !qu(r)) return r;
|
|
1932
1932
|
if (typeof r != "function")
|
|
1933
1933
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -1936,7 +1936,7 @@ function Ut(e) {
|
|
|
1936
1936
|
t.set(r, o);
|
|
1937
1937
|
}
|
|
1938
1938
|
function o() {
|
|
1939
|
-
return
|
|
1939
|
+
return vt(r, arguments, zt(this).constructor);
|
|
1940
1940
|
}
|
|
1941
1941
|
return o.prototype = Object.create(r.prototype, {
|
|
1942
1942
|
constructor: {
|
|
@@ -1946,7 +1946,7 @@ function Ut(e) {
|
|
|
1946
1946
|
configurable: !0
|
|
1947
1947
|
}
|
|
1948
1948
|
}), at(o, r);
|
|
1949
|
-
},
|
|
1949
|
+
}, Wt(e);
|
|
1950
1950
|
}
|
|
1951
1951
|
var ku = /%[sdj%]/g, Qr = function() {
|
|
1952
1952
|
};
|
|
@@ -1955,7 +1955,7 @@ typeof process < "u" && process.env && process.env.NODE_ENV !== "production" &&
|
|
|
1955
1955
|
return typeof r == "string";
|
|
1956
1956
|
}) && console.warn(t, n);
|
|
1957
1957
|
});
|
|
1958
|
-
function
|
|
1958
|
+
function Ut(e) {
|
|
1959
1959
|
if (!e || !e.length) return null;
|
|
1960
1960
|
var t = {};
|
|
1961
1961
|
return e.forEach(function(n) {
|
|
@@ -2035,37 +2035,37 @@ var Jn = /* @__PURE__ */ (function(e) {
|
|
|
2035
2035
|
return o = e.call(this, "Async Validation Error") || this, o.errors = n, o.fields = r, o;
|
|
2036
2036
|
}
|
|
2037
2037
|
return t;
|
|
2038
|
-
})(/* @__PURE__ */
|
|
2038
|
+
})(/* @__PURE__ */ Wt(Error));
|
|
2039
2039
|
function zu(e, t, n, r, o) {
|
|
2040
2040
|
if (t.first) {
|
|
2041
|
-
var i = new Promise(function(
|
|
2042
|
-
var
|
|
2043
|
-
return r(l), l.length ? h(new Jn(l,
|
|
2044
|
-
},
|
|
2045
|
-
Zn(
|
|
2041
|
+
var i = new Promise(function(y, h) {
|
|
2042
|
+
var g = function(l) {
|
|
2043
|
+
return r(l), l.length ? h(new Jn(l, Ut(l))) : y(o);
|
|
2044
|
+
}, f = Bu(e);
|
|
2045
|
+
Zn(f, n, g);
|
|
2046
2046
|
});
|
|
2047
|
-
return i.catch(function(
|
|
2048
|
-
return
|
|
2047
|
+
return i.catch(function(y) {
|
|
2048
|
+
return y;
|
|
2049
2049
|
}), i;
|
|
2050
2050
|
}
|
|
2051
|
-
var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), u = s.length, d = 0,
|
|
2052
|
-
var
|
|
2053
|
-
if (
|
|
2054
|
-
return r(
|
|
2051
|
+
var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), u = s.length, d = 0, c = [], p = new Promise(function(y, h) {
|
|
2052
|
+
var g = function(m) {
|
|
2053
|
+
if (c.push.apply(c, m), d++, d === u)
|
|
2054
|
+
return r(c), c.length ? h(new Jn(c, Ut(c))) : y(o);
|
|
2055
2055
|
};
|
|
2056
|
-
s.length || (r(
|
|
2057
|
-
var m = e[
|
|
2058
|
-
a.indexOf(
|
|
2056
|
+
s.length || (r(c), y(o)), s.forEach(function(f) {
|
|
2057
|
+
var m = e[f];
|
|
2058
|
+
a.indexOf(f) !== -1 ? Zn(m, n, g) : Ru(m, n, g);
|
|
2059
2059
|
});
|
|
2060
2060
|
});
|
|
2061
|
-
return p.catch(function(
|
|
2062
|
-
return
|
|
2061
|
+
return p.catch(function(y) {
|
|
2062
|
+
return y;
|
|
2063
2063
|
}), p;
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function Wu(e) {
|
|
2066
2066
|
return !!(e && e.message !== void 0);
|
|
2067
2067
|
}
|
|
2068
|
-
function
|
|
2068
|
+
function Uu(e, t) {
|
|
2069
2069
|
for (var n = e, r = 0; r < t.length; r++) {
|
|
2070
2070
|
if (n == null)
|
|
2071
2071
|
return n;
|
|
@@ -2076,7 +2076,7 @@ function Wu(e, t) {
|
|
|
2076
2076
|
function Xn(e, t) {
|
|
2077
2077
|
return function(n) {
|
|
2078
2078
|
var r;
|
|
2079
|
-
return e.fullFields ? r =
|
|
2079
|
+
return e.fullFields ? r = Uu(t, e.fullFields) : r = t[n.field || e.fullField], Wu(n) ? (n.field = n.field || e.fullField, n.fieldValue = r, n) : {
|
|
2080
2080
|
message: typeof n == "function" ? n() : n,
|
|
2081
2081
|
fieldValue: r,
|
|
2082
2082
|
field: n.field || e.fullField
|
|
@@ -2097,9 +2097,9 @@ var eo = function(t, n, r, o, i, a) {
|
|
|
2097
2097
|
t.required && (!r.hasOwnProperty(t.field) || D(n, a || t.type)) && o.push(ee(i.messages.required, t.fullField));
|
|
2098
2098
|
}, Ku = function(t, n, r, o, i) {
|
|
2099
2099
|
(/^\s+$/.test(n) || n === "") && o.push(ee(i.messages.whitespace, t.fullField));
|
|
2100
|
-
},
|
|
2101
|
-
if (
|
|
2102
|
-
return
|
|
2100
|
+
}, dt, Gu = (function() {
|
|
2101
|
+
if (dt)
|
|
2102
|
+
return dt;
|
|
2103
2103
|
var e = "[a-fA-F\\d:]", t = function(E) {
|
|
2104
2104
|
return E && E.includeBoundaries ? "(?:(?<=\\s|^)(?=" + e + ")|(?<=" + e + ")(?=\\s|$))" : "";
|
|
2105
2105
|
}, n = "(?: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}", o = (`
|
|
@@ -2121,8 +2121,8 @@ var eo = function(t, n, r, o, i, a) {
|
|
|
2121
2121
|
}, u.v6 = function(x) {
|
|
2122
2122
|
return x && x.exact ? s : new RegExp("" + t(x) + o + t(x), "g");
|
|
2123
2123
|
};
|
|
2124
|
-
var d = "(?:(?:[a-z]+:)?//)",
|
|
2125
|
-
return
|
|
2124
|
+
var d = "(?:(?:[a-z]+:)?//)", c = "(?:\\S+(?::\\S*)?@)?", p = u.v4().source, y = u.v6().source, h = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", g = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", f = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", m = "(?::\\d{2,5})?", l = '(?:[/?#][^\\s"]*)?', T = "(?:" + d + "|www\\.)" + c + "(?:localhost|" + p + "|" + y + "|" + h + g + f + ")" + m + l;
|
|
2125
|
+
return dt = new RegExp("(?:^" + T + "$)", "i"), dt;
|
|
2126
2126
|
}), er = {
|
|
2127
2127
|
// http://emailregex.com/
|
|
2128
2128
|
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,}))$/,
|
|
@@ -2179,10 +2179,10 @@ var eo = function(t, n, r, o, i, a) {
|
|
|
2179
2179
|
var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], s = t.type;
|
|
2180
2180
|
a.indexOf(s) > -1 ? He[s](n) || o.push(ee(i.messages.types[s], t.fullField, t.type)) : s && typeof n !== t.type && o.push(ee(i.messages.types[s], t.fullField, t.type));
|
|
2181
2181
|
}, Hu = function(t, n, r, o, i) {
|
|
2182
|
-
var a = typeof t.len == "number", s = typeof t.min == "number", u = typeof t.max == "number", d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
|
|
2183
|
-
if (
|
|
2182
|
+
var a = typeof t.len == "number", s = typeof t.min == "number", u = typeof t.max == "number", d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, c = n, p = null, y = typeof n == "number", h = typeof n == "string", g = Array.isArray(n);
|
|
2183
|
+
if (y ? p = "number" : h ? p = "string" : g && (p = "array"), !p)
|
|
2184
2184
|
return !1;
|
|
2185
|
-
|
|
2185
|
+
g && (c = n.length), h && (c = n.replace(d, "_").length), a ? c !== t.len && o.push(ee(i.messages[p].len, t.fullField, t.len)) : s && !u && c < t.min ? o.push(ee(i.messages[p].min, t.fullField, t.min)) : u && !s && c > t.max ? o.push(ee(i.messages[p].max, t.fullField, t.max)) : s && u && (c < t.min || c > t.max) && o.push(ee(i.messages[p].range, t.fullField, t.min, t.max));
|
|
2186
2186
|
}, Me = "enum", Zu = function(t, n, r, o, i) {
|
|
2187
2187
|
t[Me] = Array.isArray(t[Me]) ? t[Me] : [], t[Me].indexOf(n) === -1 && o.push(ee(i.messages[Me], t.fullField, t[Me].join(", ")));
|
|
2188
2188
|
}, Ju = function(t, n, r, o, i) {
|
|
@@ -2391,7 +2391,7 @@ function Kt() {
|
|
|
2391
2391
|
}
|
|
2392
2392
|
};
|
|
2393
2393
|
}
|
|
2394
|
-
var Gt = Kt(),
|
|
2394
|
+
var Gt = Kt(), ct = /* @__PURE__ */ (function() {
|
|
2395
2395
|
function e(n) {
|
|
2396
2396
|
this.rules = null, this._messages = Gt, this.define(n);
|
|
2397
2397
|
}
|
|
@@ -2415,7 +2415,7 @@ var Gt = Kt(), ut = /* @__PURE__ */ (function() {
|
|
|
2415
2415
|
var s = r, u = o, d = i;
|
|
2416
2416
|
if (typeof u == "function" && (d = u, u = {}), !this.rules || Object.keys(this.rules).length === 0)
|
|
2417
2417
|
return d && d(null, s), Promise.resolve(s);
|
|
2418
|
-
function f
|
|
2418
|
+
function c(f) {
|
|
2419
2419
|
var m = [], l = {};
|
|
2420
2420
|
function T(E) {
|
|
2421
2421
|
if (Array.isArray(E)) {
|
|
@@ -2424,34 +2424,34 @@ var Gt = Kt(), ut = /* @__PURE__ */ (function() {
|
|
|
2424
2424
|
} else
|
|
2425
2425
|
m.push(E);
|
|
2426
2426
|
}
|
|
2427
|
-
for (var x = 0; x <
|
|
2428
|
-
T(
|
|
2429
|
-
m.length ? (l =
|
|
2427
|
+
for (var x = 0; x < f.length; x++)
|
|
2428
|
+
T(f[x]);
|
|
2429
|
+
m.length ? (l = Ut(m), d(m, l)) : d(null, s);
|
|
2430
2430
|
}
|
|
2431
2431
|
if (u.messages) {
|
|
2432
2432
|
var p = this.messages();
|
|
2433
2433
|
p === Gt && (p = Kt()), Qn(p, u.messages), u.messages = p;
|
|
2434
2434
|
} else
|
|
2435
2435
|
u.messages = this.messages();
|
|
2436
|
-
var
|
|
2437
|
-
h.forEach(function(
|
|
2438
|
-
var m = a.rules[
|
|
2436
|
+
var y = {}, h = u.keys || Object.keys(this.rules);
|
|
2437
|
+
h.forEach(function(f) {
|
|
2438
|
+
var m = a.rules[f], l = s[f];
|
|
2439
2439
|
m.forEach(function(T) {
|
|
2440
2440
|
var x = T;
|
|
2441
|
-
typeof x.transform == "function" && (s === r && (s = xe({}, s)), l = s[
|
|
2441
|
+
typeof x.transform == "function" && (s === r && (s = xe({}, s)), l = s[f] = x.transform(l)), typeof x == "function" ? x = {
|
|
2442
2442
|
validator: x
|
|
2443
|
-
} : x = xe({}, x), x.validator = a.getValidationMethod(x), x.validator && (x.field =
|
|
2443
|
+
} : x = xe({}, x), x.validator = a.getValidationMethod(x), x.validator && (x.field = f, x.fullField = x.fullField || f, x.type = a.getType(x), y[f] = y[f] || [], y[f].push({
|
|
2444
2444
|
rule: x,
|
|
2445
2445
|
value: l,
|
|
2446
2446
|
source: s,
|
|
2447
|
-
field:
|
|
2447
|
+
field: f
|
|
2448
2448
|
}));
|
|
2449
2449
|
});
|
|
2450
2450
|
});
|
|
2451
|
-
var
|
|
2452
|
-
return zu(
|
|
2453
|
-
var l =
|
|
2454
|
-
T = T && (l.required || !l.required &&
|
|
2451
|
+
var g = {};
|
|
2452
|
+
return zu(y, u, function(f, m) {
|
|
2453
|
+
var l = f.rule, T = (l.type === "object" || l.type === "array") && (typeof l.fields == "object" || typeof l.defaultField == "object");
|
|
2454
|
+
T = T && (l.required || !l.required && f.value), l.field = f.field;
|
|
2455
2455
|
function x(b, $) {
|
|
2456
2456
|
return xe({}, $, {
|
|
2457
2457
|
fullField: l.fullField + "." + b,
|
|
@@ -2464,23 +2464,23 @@ var Gt = Kt(), ut = /* @__PURE__ */ (function() {
|
|
|
2464
2464
|
!u.suppressWarning && $.length && e.warning("async-validator:", $), $.length && l.message !== void 0 && ($ = [].concat(l.message));
|
|
2465
2465
|
var F = $.map(Xn(l, s));
|
|
2466
2466
|
if (u.first && F.length)
|
|
2467
|
-
return
|
|
2467
|
+
return g[l.field] = 1, m(F);
|
|
2468
2468
|
if (!T)
|
|
2469
2469
|
m(F);
|
|
2470
2470
|
else {
|
|
2471
|
-
if (l.required && !
|
|
2471
|
+
if (l.required && !f.value)
|
|
2472
2472
|
return l.message !== void 0 ? F = [].concat(l.message).map(Xn(l, s)) : u.error && (F = [u.error(l, ee(u.messages.required, l.field))]), m(F);
|
|
2473
2473
|
var k = {};
|
|
2474
|
-
l.defaultField && Object.keys(
|
|
2474
|
+
l.defaultField && Object.keys(f.value).map(function(R) {
|
|
2475
2475
|
k[R] = l.defaultField;
|
|
2476
|
-
}), k = xe({}, k,
|
|
2476
|
+
}), k = xe({}, k, f.rule.fields);
|
|
2477
2477
|
var X = {};
|
|
2478
2478
|
Object.keys(k).forEach(function(R) {
|
|
2479
2479
|
var O = k[R], ue = Array.isArray(O) ? O : [O];
|
|
2480
2480
|
X[R] = ue.map(x.bind(null, R));
|
|
2481
2481
|
});
|
|
2482
2482
|
var J = new e(X);
|
|
2483
|
-
J.messages(u.messages),
|
|
2483
|
+
J.messages(u.messages), f.rule.options && (f.rule.options.messages = u.messages, f.rule.options.error = u.error), J.validate(f.value, f.rule.options || u, function(R) {
|
|
2484
2484
|
var O = [];
|
|
2485
2485
|
F && F.length && O.push.apply(O, F), R && R.length && O.push.apply(O, R), m(O.length ? O : null);
|
|
2486
2486
|
});
|
|
@@ -2488,10 +2488,10 @@ var Gt = Kt(), ut = /* @__PURE__ */ (function() {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
var q;
|
|
2490
2490
|
if (l.asyncValidator)
|
|
2491
|
-
q = l.asyncValidator(l,
|
|
2491
|
+
q = l.asyncValidator(l, f.value, E, f.source, u);
|
|
2492
2492
|
else if (l.validator) {
|
|
2493
2493
|
try {
|
|
2494
|
-
q = l.validator(l,
|
|
2494
|
+
q = l.validator(l, f.value, E, f.source, u);
|
|
2495
2495
|
} catch (b) {
|
|
2496
2496
|
console.error?.(b), u.suppressValidatorError || setTimeout(function() {
|
|
2497
2497
|
throw b;
|
|
@@ -2504,8 +2504,8 @@ var Gt = Kt(), ut = /* @__PURE__ */ (function() {
|
|
|
2504
2504
|
}, function(b) {
|
|
2505
2505
|
return E(b);
|
|
2506
2506
|
});
|
|
2507
|
-
}, function(
|
|
2508
|
-
f
|
|
2507
|
+
}, function(f) {
|
|
2508
|
+
c(f);
|
|
2509
2509
|
}, s);
|
|
2510
2510
|
}, t.getType = function(r) {
|
|
2511
2511
|
if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !Qe.hasOwnProperty(r.type))
|
|
@@ -2518,14 +2518,14 @@ var Gt = Kt(), ut = /* @__PURE__ */ (function() {
|
|
|
2518
2518
|
return i !== -1 && o.splice(i, 1), o.length === 1 && o[0] === "required" ? Qe.required : Qe[this.getType(r)] || void 0;
|
|
2519
2519
|
}, e;
|
|
2520
2520
|
})();
|
|
2521
|
-
|
|
2521
|
+
ct.register = function(t, n) {
|
|
2522
2522
|
if (typeof n != "function")
|
|
2523
2523
|
throw new Error("Cannot register a validator by type, validator is not a function");
|
|
2524
2524
|
Qe[t] = n;
|
|
2525
2525
|
};
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2526
|
+
ct.warning = Qr;
|
|
2527
|
+
ct.messages = Gt;
|
|
2528
|
+
ct.validators = Qe;
|
|
2529
2529
|
const pc = [
|
|
2530
2530
|
"",
|
|
2531
2531
|
"error",
|
|
@@ -2579,47 +2579,47 @@ var vc = N({
|
|
|
2579
2579
|
setup(e, {
|
|
2580
2580
|
slots: t
|
|
2581
2581
|
}) {
|
|
2582
|
-
const n =
|
|
2582
|
+
const n = K($t, void 0), r = K(bt);
|
|
2583
2583
|
r || Ll(tr, "usage: <el-form-item><label-wrap /></el-form-item>");
|
|
2584
2584
|
const o = ye("form"), i = P(), a = P(0), s = () => {
|
|
2585
|
-
var
|
|
2586
|
-
if ((
|
|
2585
|
+
var c;
|
|
2586
|
+
if ((c = i.value) != null && c.firstElementChild) {
|
|
2587
2587
|
const p = window.getComputedStyle(i.value.firstElementChild).width;
|
|
2588
2588
|
return Math.ceil(Number.parseFloat(p));
|
|
2589
2589
|
} else
|
|
2590
2590
|
return 0;
|
|
2591
|
-
}, u = (
|
|
2591
|
+
}, u = (c = "update") => {
|
|
2592
2592
|
Ht(() => {
|
|
2593
|
-
t.default && e.isAutoWidth && (
|
|
2593
|
+
t.default && e.isAutoWidth && (c === "update" ? a.value = s() : c === "remove" && n?.deregisterLabelWidth(a.value));
|
|
2594
2594
|
});
|
|
2595
2595
|
}, d = () => u("update");
|
|
2596
2596
|
return it(() => {
|
|
2597
2597
|
d();
|
|
2598
2598
|
}), ur(() => {
|
|
2599
2599
|
u("remove");
|
|
2600
|
-
}), xo(() => d()), ae(a, (
|
|
2601
|
-
e.updateAll && n?.registerLabelWidth(
|
|
2600
|
+
}), xo(() => d()), ae(a, (c, p) => {
|
|
2601
|
+
e.updateAll && n?.registerLabelWidth(c, p);
|
|
2602
2602
|
}), Rr(v(() => {
|
|
2603
|
-
var
|
|
2604
|
-
return (p = (
|
|
2603
|
+
var c, p;
|
|
2604
|
+
return (p = (c = i.value) == null ? void 0 : c.firstElementChild) != null ? p : null;
|
|
2605
2605
|
}), d), () => {
|
|
2606
|
-
var
|
|
2606
|
+
var c, p;
|
|
2607
2607
|
if (!t)
|
|
2608
2608
|
return null;
|
|
2609
2609
|
const {
|
|
2610
|
-
isAutoWidth:
|
|
2610
|
+
isAutoWidth: y
|
|
2611
2611
|
} = e;
|
|
2612
|
-
if (
|
|
2613
|
-
const h = n?.autoLabelWidth,
|
|
2614
|
-
if (
|
|
2612
|
+
if (y) {
|
|
2613
|
+
const h = n?.autoLabelWidth, g = r?.hasLabel, f = {};
|
|
2614
|
+
if (g && h && h !== "auto") {
|
|
2615
2615
|
const m = Math.max(0, Number.parseInt(h, 10) - a.value), T = (r.labelPosition || n.labelPosition) === "left" ? "marginRight" : "marginLeft";
|
|
2616
|
-
m && (
|
|
2616
|
+
m && (f[T] = `${m}px`);
|
|
2617
2617
|
}
|
|
2618
2618
|
return M("div", {
|
|
2619
2619
|
ref: i,
|
|
2620
2620
|
class: [o.be("item", "label-wrap")],
|
|
2621
|
-
style:
|
|
2622
|
-
}, [(
|
|
2621
|
+
style: f
|
|
2622
|
+
}, [(c = t.default) == null ? void 0 : c.call(t)]);
|
|
2623
2623
|
} else
|
|
2624
2624
|
return M(_t, {
|
|
2625
2625
|
ref: i
|
|
@@ -2632,8 +2632,8 @@ const gc = ["role", "aria-labelledby"], yc = N({
|
|
|
2632
2632
|
__name: "form-item",
|
|
2633
2633
|
props: mc,
|
|
2634
2634
|
setup(e, { expose: t }) {
|
|
2635
|
-
const n = e, r = To(), o =
|
|
2636
|
-
let
|
|
2635
|
+
const n = e, r = To(), o = K($t, void 0), i = K(bt, void 0), a = Jr(void 0, { formItem: !1 }), s = ye("form-item"), u = yu().value, d = P([]), c = P(""), p = Al(c, 100), y = P(""), h = P();
|
|
2636
|
+
let g, f = !1;
|
|
2637
2637
|
const m = v(
|
|
2638
2638
|
() => n.labelPosition || o?.labelPosition
|
|
2639
2639
|
), l = v(() => {
|
|
@@ -2650,9 +2650,9 @@ const gc = ["role", "aria-labelledby"], yc = N({
|
|
|
2650
2650
|
}), x = v(() => [
|
|
2651
2651
|
s.b(),
|
|
2652
2652
|
s.m(a.value),
|
|
2653
|
-
s.is("error",
|
|
2654
|
-
s.is("validating",
|
|
2655
|
-
s.is("success",
|
|
2653
|
+
s.is("error", c.value === "error"),
|
|
2654
|
+
s.is("validating", c.value === "validating"),
|
|
2655
|
+
s.is("success", c.value === "success"),
|
|
2656
2656
|
s.is("required", Ot.value || n.required),
|
|
2657
2657
|
s.is("no-asterisk", o?.hideRequiredAsterisk),
|
|
2658
2658
|
o?.requireAsteriskPosition === "right" ? "asterisk-right" : "asterisk-left",
|
|
@@ -2671,13 +2671,13 @@ const gc = ["role", "aria-labelledby"], yc = N({
|
|
|
2671
2671
|
}), k = v(() => !F.value && $.value), X = !!i, J = v(() => {
|
|
2672
2672
|
const _ = o?.model;
|
|
2673
2673
|
if (!(!_ || !n.prop))
|
|
2674
|
-
return
|
|
2674
|
+
return mt(_, n.prop).value;
|
|
2675
2675
|
}), R = v(() => {
|
|
2676
2676
|
const { required: _ } = n, I = [];
|
|
2677
2677
|
n.rules && I.push(...Nt(n.rules));
|
|
2678
2678
|
const z = o?.rules;
|
|
2679
2679
|
if (z && n.prop) {
|
|
2680
|
-
const B =
|
|
2680
|
+
const B = mt(
|
|
2681
2681
|
z,
|
|
2682
2682
|
n.prop
|
|
2683
2683
|
).value;
|
|
@@ -2702,20 +2702,20 @@ const gc = ["role", "aria-labelledby"], yc = N({
|
|
|
2702
2702
|
), pn = v(
|
|
2703
2703
|
() => `${n.label || ""}${o?.labelSuffix || ""}`
|
|
2704
2704
|
), Pe = (_) => {
|
|
2705
|
-
|
|
2705
|
+
c.value = _;
|
|
2706
2706
|
}, po = (_) => {
|
|
2707
2707
|
var I, z;
|
|
2708
2708
|
const { errors: B, fields: oe } = _;
|
|
2709
|
-
(!B || !oe) && console.error(_), Pe("error"),
|
|
2709
|
+
(!B || !oe) && console.error(_), Pe("error"), y.value = B ? (z = (I = B?.[0]) == null ? void 0 : I.message) != null ? z : `${n.prop} is required` : "", o?.emit("validate", n.prop, !1, y.value);
|
|
2710
2710
|
}, mo = () => {
|
|
2711
2711
|
Pe("success"), o?.emit("validate", n.prop, !0, "");
|
|
2712
2712
|
}, vo = async (_) => {
|
|
2713
2713
|
const I = b.value;
|
|
2714
|
-
return new
|
|
2714
|
+
return new ct({
|
|
2715
2715
|
[I]: _
|
|
2716
2716
|
}).validate({ [I]: J.value }, { firstFields: !0 }).then(() => (mo(), !0)).catch((B) => (po(B), Promise.reject(B)));
|
|
2717
2717
|
}, mn = async (_, I) => {
|
|
2718
|
-
if (
|
|
2718
|
+
if (f || !n.prop)
|
|
2719
2719
|
return !1;
|
|
2720
2720
|
const z = ze(I);
|
|
2721
2721
|
if (!O.value)
|
|
@@ -2726,24 +2726,24 @@ const gc = ["role", "aria-labelledby"], yc = N({
|
|
|
2726
2726
|
return I?.(!1, Ve), z ? !1 : Promise.reject(Ve);
|
|
2727
2727
|
}));
|
|
2728
2728
|
}, St = () => {
|
|
2729
|
-
Pe(""),
|
|
2729
|
+
Pe(""), y.value = "", f = !1;
|
|
2730
2730
|
}, vn = async () => {
|
|
2731
2731
|
const _ = o?.model;
|
|
2732
2732
|
if (!_ || !n.prop)
|
|
2733
2733
|
return;
|
|
2734
|
-
const I =
|
|
2735
|
-
|
|
2734
|
+
const I = mt(_, n.prop);
|
|
2735
|
+
f = !0, I.value = It(g), await Ht(), St(), f = !1;
|
|
2736
2736
|
}, go = (_) => {
|
|
2737
2737
|
d.value.includes(_) || d.value.push(_);
|
|
2738
2738
|
}, yo = (_) => {
|
|
2739
2739
|
d.value = d.value.filter((I) => I !== _);
|
|
2740
2740
|
}, gn = (_) => {
|
|
2741
|
-
|
|
2741
|
+
g = It(_);
|
|
2742
2742
|
};
|
|
2743
2743
|
ae(
|
|
2744
2744
|
() => n.error,
|
|
2745
2745
|
(_) => {
|
|
2746
|
-
|
|
2746
|
+
y.value = _ || "", Pe(_ ? "error" : "");
|
|
2747
2747
|
},
|
|
2748
2748
|
{ immediate: !0 }
|
|
2749
2749
|
), ae(
|
|
@@ -2754,8 +2754,8 @@ const gc = ["role", "aria-labelledby"], yc = N({
|
|
|
2754
2754
|
...lr(n),
|
|
2755
2755
|
$el: h,
|
|
2756
2756
|
size: a,
|
|
2757
|
-
validateMessage:
|
|
2758
|
-
validateState:
|
|
2757
|
+
validateMessage: y,
|
|
2758
|
+
validateState: c,
|
|
2759
2759
|
labelId: u,
|
|
2760
2760
|
inputIds: d,
|
|
2761
2761
|
isGroup: k,
|
|
@@ -2769,14 +2769,14 @@ const gc = ["role", "aria-labelledby"], yc = N({
|
|
|
2769
2769
|
propString: b,
|
|
2770
2770
|
setInitialValue: gn
|
|
2771
2771
|
});
|
|
2772
|
-
return bt
|
|
2773
|
-
n.prop && (o?.addField(Et),
|
|
2772
|
+
return st(bt, Et), it(() => {
|
|
2773
|
+
n.prop && (o?.addField(Et), g = It(J.value));
|
|
2774
2774
|
}), ur(() => {
|
|
2775
2775
|
o?.removeField(Et);
|
|
2776
2776
|
}), t({
|
|
2777
2777
|
size: a,
|
|
2778
|
-
validateMessage:
|
|
2779
|
-
validateState:
|
|
2778
|
+
validateMessage: y,
|
|
2779
|
+
validateState: c,
|
|
2780
2780
|
validate: mn,
|
|
2781
2781
|
clearValidate: St,
|
|
2782
2782
|
resetField: vn,
|
|
@@ -2786,7 +2786,7 @@ const gc = ["role", "aria-labelledby"], yc = N({
|
|
|
2786
2786
|
return C(), L("div", {
|
|
2787
2787
|
ref_key: "formItemRef",
|
|
2788
2788
|
ref: h,
|
|
2789
|
-
class:
|
|
2789
|
+
class: Z(x.value),
|
|
2790
2790
|
role: k.value ? "group" : void 0,
|
|
2791
2791
|
"aria-labelledby": k.value ? w(u) : void 0
|
|
2792
2792
|
}, [
|
|
@@ -2794,18 +2794,18 @@ const gc = ["role", "aria-labelledby"], yc = N({
|
|
|
2794
2794
|
"is-auto-width": l.value.width === "auto",
|
|
2795
2795
|
"update-all": ((z = w(o)) == null ? void 0 : z.labelWidth) === "auto"
|
|
2796
2796
|
}, {
|
|
2797
|
-
default:
|
|
2798
|
-
_.label || _.$slots.label ? (C(), te(
|
|
2797
|
+
default: U(() => [
|
|
2798
|
+
_.label || _.$slots.label ? (C(), te(lt(F.value ? "label" : "div"), {
|
|
2799
2799
|
key: 0,
|
|
2800
2800
|
id: w(u),
|
|
2801
2801
|
for: F.value,
|
|
2802
|
-
class:
|
|
2802
|
+
class: Z(w(s).e("label")),
|
|
2803
2803
|
style: Be(l.value)
|
|
2804
2804
|
}, {
|
|
2805
|
-
default:
|
|
2805
|
+
default: U(() => [
|
|
2806
2806
|
ne(_.$slots, "label", { label: pn.value }, () => [
|
|
2807
2807
|
ke(
|
|
2808
|
-
|
|
2808
|
+
gt(pn.value),
|
|
2809
2809
|
1
|
|
2810
2810
|
)
|
|
2811
2811
|
])
|
|
@@ -2815,10 +2815,10 @@ const gc = ["role", "aria-labelledby"], yc = N({
|
|
|
2815
2815
|
]),
|
|
2816
2816
|
_: 3
|
|
2817
2817
|
}, 8, ["is-auto-width", "update-all"]),
|
|
2818
|
-
|
|
2818
|
+
H(
|
|
2819
2819
|
"div",
|
|
2820
2820
|
{
|
|
2821
|
-
class:
|
|
2821
|
+
class: Z(w(s).e("content")),
|
|
2822
2822
|
style: Be(T.value)
|
|
2823
2823
|
},
|
|
2824
2824
|
[
|
|
@@ -2826,17 +2826,17 @@ const gc = ["role", "aria-labelledby"], yc = N({
|
|
|
2826
2826
|
M($o, {
|
|
2827
2827
|
name: `${w(s).namespace.value}-zoom-in-top`
|
|
2828
2828
|
}, {
|
|
2829
|
-
default:
|
|
2829
|
+
default: U(() => [
|
|
2830
2830
|
fo.value ? ne(_.$slots, "error", {
|
|
2831
2831
|
key: 0,
|
|
2832
|
-
error:
|
|
2832
|
+
error: y.value
|
|
2833
2833
|
}, () => [
|
|
2834
|
-
|
|
2834
|
+
H(
|
|
2835
2835
|
"div",
|
|
2836
2836
|
{
|
|
2837
|
-
class:
|
|
2837
|
+
class: Z(q.value)
|
|
2838
2838
|
},
|
|
2839
|
-
|
|
2839
|
+
gt(y.value),
|
|
2840
2840
|
3
|
|
2841
2841
|
)
|
|
2842
2842
|
]) : De("v-if", !0)
|
|
@@ -2851,7 +2851,7 @@ const gc = ["role", "aria-labelledby"], yc = N({
|
|
|
2851
2851
|
}
|
|
2852
2852
|
});
|
|
2853
2853
|
var to = /* @__PURE__ */ je(yc, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);
|
|
2854
|
-
const hc =
|
|
2854
|
+
const hc = ut(Nu, {
|
|
2855
2855
|
FormItem: to
|
|
2856
2856
|
}), bc = Xl(to), _c = [
|
|
2857
2857
|
"start",
|
|
@@ -2884,7 +2884,7 @@ const hc = lt(Nu, {
|
|
|
2884
2884
|
props: xc,
|
|
2885
2885
|
setup(e) {
|
|
2886
2886
|
const t = e, n = ye("row"), r = v(() => t.gutter);
|
|
2887
|
-
|
|
2887
|
+
st(Xr, {
|
|
2888
2888
|
gutter: r
|
|
2889
2889
|
});
|
|
2890
2890
|
const o = v(() => {
|
|
@@ -2895,11 +2895,11 @@ const hc = lt(Nu, {
|
|
|
2895
2895
|
n.is(`justify-${t.justify}`, t.justify !== "start"),
|
|
2896
2896
|
n.is(`align-${t.align}`, !!t.align)
|
|
2897
2897
|
]);
|
|
2898
|
-
return (a, s) => (C(), te(
|
|
2899
|
-
class:
|
|
2898
|
+
return (a, s) => (C(), te(lt(a.tag), {
|
|
2899
|
+
class: Z(i.value),
|
|
2900
2900
|
style: Be(o.value)
|
|
2901
2901
|
}, {
|
|
2902
|
-
default:
|
|
2902
|
+
default: U(() => [
|
|
2903
2903
|
ne(a.$slots, "default")
|
|
2904
2904
|
]),
|
|
2905
2905
|
_: 3
|
|
@@ -2907,7 +2907,7 @@ const hc = lt(Nu, {
|
|
|
2907
2907
|
}
|
|
2908
2908
|
});
|
|
2909
2909
|
var $c = /* @__PURE__ */ je(Tc, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);
|
|
2910
|
-
const nr =
|
|
2910
|
+
const nr = ut($c), no = [
|
|
2911
2911
|
"primary",
|
|
2912
2912
|
"success",
|
|
2913
2913
|
"info",
|
|
@@ -2920,7 +2920,7 @@ const nr = lt($c), no = [
|
|
|
2920
2920
|
"bottom",
|
|
2921
2921
|
"bottom-left",
|
|
2922
2922
|
"bottom-right"
|
|
2923
|
-
], Re = "top",
|
|
2923
|
+
], Re = "top", G = Le({
|
|
2924
2924
|
customClass: "",
|
|
2925
2925
|
dangerouslyUseHTMLString: !1,
|
|
2926
2926
|
duration: 3e3,
|
|
@@ -2940,23 +2940,23 @@ const nr = lt($c), no = [
|
|
|
2940
2940
|
}), Oc = le({
|
|
2941
2941
|
customClass: {
|
|
2942
2942
|
type: String,
|
|
2943
|
-
default:
|
|
2943
|
+
default: G.customClass
|
|
2944
2944
|
},
|
|
2945
2945
|
dangerouslyUseHTMLString: {
|
|
2946
2946
|
type: Boolean,
|
|
2947
|
-
default:
|
|
2947
|
+
default: G.dangerouslyUseHTMLString
|
|
2948
2948
|
},
|
|
2949
2949
|
duration: {
|
|
2950
2950
|
type: Number,
|
|
2951
|
-
default:
|
|
2951
|
+
default: G.duration
|
|
2952
2952
|
},
|
|
2953
2953
|
icon: {
|
|
2954
2954
|
type: du,
|
|
2955
|
-
default:
|
|
2955
|
+
default: G.icon
|
|
2956
2956
|
},
|
|
2957
2957
|
id: {
|
|
2958
2958
|
type: String,
|
|
2959
|
-
default:
|
|
2959
|
+
default: G.id
|
|
2960
2960
|
},
|
|
2961
2961
|
message: {
|
|
2962
2962
|
type: V([
|
|
@@ -2964,45 +2964,45 @@ const nr = lt($c), no = [
|
|
|
2964
2964
|
Object,
|
|
2965
2965
|
Function
|
|
2966
2966
|
]),
|
|
2967
|
-
default:
|
|
2967
|
+
default: G.message
|
|
2968
2968
|
},
|
|
2969
2969
|
onClose: {
|
|
2970
2970
|
type: V(Function),
|
|
2971
|
-
default:
|
|
2971
|
+
default: G.onClose
|
|
2972
2972
|
},
|
|
2973
2973
|
showClose: {
|
|
2974
2974
|
type: Boolean,
|
|
2975
|
-
default:
|
|
2975
|
+
default: G.showClose
|
|
2976
2976
|
},
|
|
2977
2977
|
type: {
|
|
2978
2978
|
type: String,
|
|
2979
2979
|
values: no,
|
|
2980
|
-
default:
|
|
2980
|
+
default: G.type
|
|
2981
2981
|
},
|
|
2982
2982
|
plain: {
|
|
2983
2983
|
type: Boolean,
|
|
2984
|
-
default:
|
|
2984
|
+
default: G.plain
|
|
2985
2985
|
},
|
|
2986
2986
|
offset: {
|
|
2987
2987
|
type: Number,
|
|
2988
|
-
default:
|
|
2988
|
+
default: G.offset
|
|
2989
2989
|
},
|
|
2990
2990
|
placement: {
|
|
2991
2991
|
type: String,
|
|
2992
2992
|
values: ro,
|
|
2993
|
-
default:
|
|
2993
|
+
default: G.placement
|
|
2994
2994
|
},
|
|
2995
2995
|
zIndex: {
|
|
2996
2996
|
type: Number,
|
|
2997
|
-
default:
|
|
2997
|
+
default: G.zIndex
|
|
2998
2998
|
},
|
|
2999
2999
|
grouping: {
|
|
3000
3000
|
type: Boolean,
|
|
3001
|
-
default:
|
|
3001
|
+
default: G.grouping
|
|
3002
3002
|
},
|
|
3003
3003
|
repeatNum: {
|
|
3004
3004
|
type: Number,
|
|
3005
|
-
default:
|
|
3005
|
+
default: G.repeatNum
|
|
3006
3006
|
}
|
|
3007
3007
|
}), Sc = {
|
|
3008
3008
|
destroy: () => !0
|
|
@@ -3021,9 +3021,9 @@ const nr = lt($c), no = [
|
|
|
3021
3021
|
props: Oc,
|
|
3022
3022
|
emits: Sc,
|
|
3023
3023
|
setup(e, { expose: t, emit: n }) {
|
|
3024
|
-
const { Close: r } = pu, o = e, i = n, a = P(!1), { ns: s, zIndex: u } = Hl("message"), { currentZIndex: d, nextZIndex:
|
|
3025
|
-
let
|
|
3026
|
-
const
|
|
3024
|
+
const { Close: r } = pu, o = e, i = n, a = P(!1), { ns: s, zIndex: u } = Hl("message"), { currentZIndex: d, nextZIndex: c } = u, p = P(), y = P(!1), h = P(0);
|
|
3025
|
+
let g;
|
|
3026
|
+
const f = v(
|
|
3027
3027
|
() => o.type ? o.type === "error" ? "danger" : o.type : "info"
|
|
3028
3028
|
), m = v(() => {
|
|
3029
3029
|
const O = o.type;
|
|
@@ -3037,15 +3037,15 @@ const nr = lt($c), no = [
|
|
|
3037
3037
|
zIndex: d.value
|
|
3038
3038
|
}));
|
|
3039
3039
|
function k() {
|
|
3040
|
-
o.duration !== 0 && ({ stop:
|
|
3040
|
+
o.duration !== 0 && ({ stop: g } = Pl(() => {
|
|
3041
3041
|
J();
|
|
3042
3042
|
}, o.duration));
|
|
3043
3043
|
}
|
|
3044
3044
|
function X() {
|
|
3045
|
-
|
|
3045
|
+
g?.();
|
|
3046
3046
|
}
|
|
3047
3047
|
function J() {
|
|
3048
|
-
|
|
3048
|
+
y.value = !1, Ht(() => {
|
|
3049
3049
|
var O;
|
|
3050
3050
|
a.value || ((O = o.onClose) == null || O.call(o), i("destroy"));
|
|
3051
3051
|
});
|
|
@@ -3054,7 +3054,7 @@ const nr = lt($c), no = [
|
|
|
3054
3054
|
bu(O) === Bt.esc && J();
|
|
3055
3055
|
}
|
|
3056
3056
|
return it(() => {
|
|
3057
|
-
k(),
|
|
3057
|
+
k(), c(), y.value = !0;
|
|
3058
3058
|
}), ae(
|
|
3059
3059
|
() => o.repeatNum,
|
|
3060
3060
|
() => {
|
|
@@ -3063,7 +3063,7 @@ const nr = lt($c), no = [
|
|
|
3063
3063
|
), Vl(document, "keydown", R), Rr(p, () => {
|
|
3064
3064
|
h.value = p.value.getBoundingClientRect().height;
|
|
3065
3065
|
}), t({
|
|
3066
|
-
visible:
|
|
3066
|
+
visible: y,
|
|
3067
3067
|
bottom: q,
|
|
3068
3068
|
close: J
|
|
3069
3069
|
}), (O, ue) => (C(), te(ar, {
|
|
@@ -3073,12 +3073,12 @@ const nr = lt($c), no = [
|
|
|
3073
3073
|
onAfterLeave: ue[1] || (ue[1] = (Ot) => O.$emit("destroy")),
|
|
3074
3074
|
persisted: ""
|
|
3075
3075
|
}, {
|
|
3076
|
-
default:
|
|
3077
|
-
ir(
|
|
3076
|
+
default: U(() => [
|
|
3077
|
+
ir(H("div", {
|
|
3078
3078
|
id: O.id,
|
|
3079
3079
|
ref_key: "messageRef",
|
|
3080
3080
|
ref: p,
|
|
3081
|
-
class:
|
|
3081
|
+
class: Z([
|
|
3082
3082
|
w(s).b(),
|
|
3083
3083
|
{ [w(s).m(O.type)]: O.type },
|
|
3084
3084
|
w(s).is("closable", O.showClose),
|
|
@@ -3095,15 +3095,15 @@ const nr = lt($c), no = [
|
|
|
3095
3095
|
O.repeatNum > 1 ? (C(), te(w($u), {
|
|
3096
3096
|
key: 0,
|
|
3097
3097
|
value: O.repeatNum,
|
|
3098
|
-
type:
|
|
3099
|
-
class:
|
|
3098
|
+
type: f.value,
|
|
3099
|
+
class: Z(w(s).e("badge"))
|
|
3100
3100
|
}, null, 8, ["value", "type", "class"])) : De("v-if", !0),
|
|
3101
3101
|
l.value ? (C(), te(w(Kn), {
|
|
3102
3102
|
key: 1,
|
|
3103
|
-
class:
|
|
3103
|
+
class: Z([w(s).e("icon"), m.value])
|
|
3104
3104
|
}, {
|
|
3105
|
-
default:
|
|
3106
|
-
(C(), te(
|
|
3105
|
+
default: U(() => [
|
|
3106
|
+
(C(), te(lt(l.value)))
|
|
3107
3107
|
]),
|
|
3108
3108
|
_: 1
|
|
3109
3109
|
}, 8, ["class"])) : De("v-if", !0),
|
|
@@ -3113,8 +3113,8 @@ const nr = lt($c), no = [
|
|
|
3113
3113
|
{ key: 1 },
|
|
3114
3114
|
[
|
|
3115
3115
|
De(" Caution here, message could've been compromised, never use user's input as message "),
|
|
3116
|
-
|
|
3117
|
-
class:
|
|
3116
|
+
H("p", {
|
|
3117
|
+
class: Z(w(s).e("content")),
|
|
3118
3118
|
innerHTML: O.message
|
|
3119
3119
|
}, null, 10, Ac)
|
|
3120
3120
|
],
|
|
@@ -3123,24 +3123,24 @@ const nr = lt($c), no = [
|
|
|
3123
3123
|
"p",
|
|
3124
3124
|
{
|
|
3125
3125
|
key: 0,
|
|
3126
|
-
class:
|
|
3126
|
+
class: Z(w(s).e("content"))
|
|
3127
3127
|
},
|
|
3128
|
-
|
|
3128
|
+
gt(O.message),
|
|
3129
3129
|
3
|
|
3130
3130
|
))
|
|
3131
3131
|
]),
|
|
3132
3132
|
O.showClose ? (C(), te(w(Kn), {
|
|
3133
3133
|
key: 2,
|
|
3134
|
-
class:
|
|
3134
|
+
class: Z(w(s).e("closeBtn")),
|
|
3135
3135
|
onClick: Oo(J, ["stop"])
|
|
3136
3136
|
}, {
|
|
3137
|
-
default:
|
|
3137
|
+
default: U(() => [
|
|
3138
3138
|
M(w(r))
|
|
3139
3139
|
]),
|
|
3140
3140
|
_: 1
|
|
3141
3141
|
}, 8, ["class"])) : De("v-if", !0)
|
|
3142
3142
|
], 46, jc), [
|
|
3143
|
-
[sr,
|
|
3143
|
+
[sr, y.value]
|
|
3144
3144
|
])
|
|
3145
3145
|
]),
|
|
3146
3146
|
_: 3
|
|
@@ -3160,16 +3160,16 @@ const Mc = (e) => {
|
|
|
3160
3160
|
), n = document.body), e.appendTo = n;
|
|
3161
3161
|
}
|
|
3162
3162
|
}, Lc = (e) => {
|
|
3163
|
-
!e.placement && ve(
|
|
3163
|
+
!e.placement && ve(Y.placement) && Y.placement && (e.placement = Y.placement), e.placement || (e.placement = Re), ro.includes(e.placement) || (Q(
|
|
3164
3164
|
"ElMessage",
|
|
3165
3165
|
`Invalid placement: ${e.placement}. Falling back to '${Re}'.`
|
|
3166
3166
|
), e.placement = Re);
|
|
3167
3167
|
}, oo = (e) => {
|
|
3168
3168
|
const t = !e || ve(e) || fr(e) || ze(e) ? { message: e } : e, n = {
|
|
3169
|
-
...
|
|
3169
|
+
...G,
|
|
3170
3170
|
...t
|
|
3171
3171
|
};
|
|
3172
|
-
return Mc(n), Lc(n), Xe(
|
|
3172
|
+
return Mc(n), Lc(n), Xe(Y.grouping) && !n.grouping && (n.grouping = Y.grouping), fe(Y.duration) && n.duration === 3e3 && (n.duration = Y.duration), fe(Y.offset) && n.offset === 16 && (n.offset = Y.offset), Xe(Y.showClose) && !n.showClose && (n.showClose = Y.showClose), Xe(Y.plain) && !n.plain && (n.plain = Y.plain), n;
|
|
3173
3173
|
}, qc = (e) => {
|
|
3174
3174
|
const t = e.props.placement || Re, n = re[t], r = n.indexOf(e);
|
|
3175
3175
|
if (r === -1)
|
|
@@ -3182,7 +3182,7 @@ const Mc = (e) => {
|
|
|
3182
3182
|
...t,
|
|
3183
3183
|
id: r,
|
|
3184
3184
|
onClose: () => {
|
|
3185
|
-
o?.(), qc(
|
|
3185
|
+
o?.(), qc(c);
|
|
3186
3186
|
},
|
|
3187
3187
|
onDestroy: () => {
|
|
3188
3188
|
yn(null, i);
|
|
@@ -3195,7 +3195,7 @@ const Mc = (e) => {
|
|
|
3195
3195
|
} : null
|
|
3196
3196
|
);
|
|
3197
3197
|
s.appContext = n || Oe._context, yn(s, i), e.appendChild(i.firstElementChild);
|
|
3198
|
-
const u = s.component,
|
|
3198
|
+
const u = s.component, c = {
|
|
3199
3199
|
id: r,
|
|
3200
3200
|
vnode: s,
|
|
3201
3201
|
vm: u,
|
|
@@ -3206,7 +3206,7 @@ const Mc = (e) => {
|
|
|
3206
3206
|
},
|
|
3207
3207
|
props: s.component.props
|
|
3208
3208
|
};
|
|
3209
|
-
return
|
|
3209
|
+
return c;
|
|
3210
3210
|
}, Oe = (e = {}, t) => {
|
|
3211
3211
|
if (!Ie)
|
|
3212
3212
|
return { close: () => {
|
|
@@ -3224,7 +3224,7 @@ const Mc = (e) => {
|
|
|
3224
3224
|
if (i)
|
|
3225
3225
|
return i.props.repeatNum += 1, i.props.type = n.type, i.handler;
|
|
3226
3226
|
}
|
|
3227
|
-
if (fe(
|
|
3227
|
+
if (fe(Y.max) && r.length >= Y.max)
|
|
3228
3228
|
return { close: () => {
|
|
3229
3229
|
} };
|
|
3230
3230
|
const o = kc(n, t);
|
|
@@ -3252,7 +3252,7 @@ function Rc(e) {
|
|
|
3252
3252
|
Oe.closeAll = Dc;
|
|
3253
3253
|
Oe.closeAllByPlacement = Rc;
|
|
3254
3254
|
Oe._context = null;
|
|
3255
|
-
const Bc = Jl(Oe, "$message"), zc = { class: "item-content" },
|
|
3255
|
+
const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__ */ N({
|
|
3256
3256
|
name: "InputItem",
|
|
3257
3257
|
__name: "input",
|
|
3258
3258
|
props: {
|
|
@@ -3261,8 +3261,8 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3261
3261
|
},
|
|
3262
3262
|
setup(e) {
|
|
3263
3263
|
const t = e, n = me(t, "modelValue"), r = v(() => {
|
|
3264
|
-
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, maxlength: d, minlength:
|
|
3265
|
-
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, maxlength: d, minlength:
|
|
3264
|
+
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, maxlength: d, minlength: c, showWordLimit: p, type: y, initValue: h } = t.data;
|
|
3265
|
+
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, maxlength: d, minlength: c, showWordLimit: p, type: y, initValue: h };
|
|
3266
3266
|
});
|
|
3267
3267
|
return (o, i) => {
|
|
3268
3268
|
const a = ie("el-input");
|
|
@@ -3279,7 +3279,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3279
3279
|
for (const [r, o] of t)
|
|
3280
3280
|
n[r] = o;
|
|
3281
3281
|
return n;
|
|
3282
|
-
}, ao = /* @__PURE__ */ _e(
|
|
3282
|
+
}, ao = /* @__PURE__ */ _e(Wc, [["__scopeId", "data-v-a68b4020"]]), Uc = { class: "item-content" }, Kc = /* @__PURE__ */ N({
|
|
3283
3283
|
name: "SelectItem",
|
|
3284
3284
|
__name: "select",
|
|
3285
3285
|
props: {
|
|
@@ -3287,23 +3287,23 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3287
3287
|
data: {}
|
|
3288
3288
|
},
|
|
3289
3289
|
setup(e) {
|
|
3290
|
-
const t = e, n = me(t, "modelValue"),
|
|
3291
|
-
const { clearable:
|
|
3292
|
-
return { clearable:
|
|
3293
|
-
});
|
|
3294
|
-
return (
|
|
3295
|
-
const
|
|
3296
|
-
return C(), L("div",
|
|
3297
|
-
M(
|
|
3298
|
-
modelValue: w(
|
|
3299
|
-
"onUpdate:modelValue":
|
|
3300
|
-
},
|
|
3301
|
-
default:
|
|
3302
|
-
(C(!0), L(_t, null, dr(
|
|
3303
|
-
key:
|
|
3304
|
-
label:
|
|
3305
|
-
value:
|
|
3306
|
-
disabled:
|
|
3290
|
+
const t = e, n = K("dictList"), r = me(t, "modelValue"), o = v(() => {
|
|
3291
|
+
const { clearable: a, disabled: s, required: u, readonly: d, placeholder: c, options: p = [], multiple: y, multipleLimit: h, initValue: g } = t.data;
|
|
3292
|
+
return { clearable: a, disabled: s, required: u, readonly: d, placeholder: c, options: p, multiple: y, multipleLimit: h, initValue: g };
|
|
3293
|
+
}), i = v(() => t.data.dictId ? n.map((a) => (a.value = a.id, a)) || [] : o.value.options && o.value.options.length > 0 ? o.value.options : []);
|
|
3294
|
+
return (a, s) => {
|
|
3295
|
+
const u = ie("el-option"), d = ie("el-select");
|
|
3296
|
+
return C(), L("div", Uc, [
|
|
3297
|
+
M(d, Ee({
|
|
3298
|
+
modelValue: w(r),
|
|
3299
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => Se(r) ? r.value = c : null)
|
|
3300
|
+
}, o.value), {
|
|
3301
|
+
default: U(() => [
|
|
3302
|
+
(C(!0), L(_t, null, dr(i.value, (c) => (C(), te(u, {
|
|
3303
|
+
key: c.value,
|
|
3304
|
+
label: c.label,
|
|
3305
|
+
value: c.value,
|
|
3306
|
+
disabled: c.disabled
|
|
3307
3307
|
}, null, 8, ["label", "value", "disabled"]))), 128))
|
|
3308
3308
|
]),
|
|
3309
3309
|
_: 1
|
|
@@ -3311,7 +3311,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3311
3311
|
]);
|
|
3312
3312
|
};
|
|
3313
3313
|
}
|
|
3314
|
-
}), io = /* @__PURE__ */ _e(Kc, [["__scopeId", "data-v-
|
|
3314
|
+
}), io = /* @__PURE__ */ _e(Kc, [["__scopeId", "data-v-5dd61519"]]), Gc = { class: "item-content" }, Yc = /* @__PURE__ */ N({
|
|
3315
3315
|
name: "NumberItem",
|
|
3316
3316
|
__name: "number",
|
|
3317
3317
|
props: {
|
|
@@ -3320,8 +3320,8 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3320
3320
|
},
|
|
3321
3321
|
setup(e) {
|
|
3322
3322
|
const t = e, n = me(t, "modelValue"), r = v(() => {
|
|
3323
|
-
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, min: d, max:
|
|
3324
|
-
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, min: d, max:
|
|
3323
|
+
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, min: d, max: c, step: p, precision: y, controls: h, initValue: g } = t.data;
|
|
3324
|
+
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, min: d, max: c, step: p, precision: y, controls: h, initValue: g };
|
|
3325
3325
|
});
|
|
3326
3326
|
return (o, i) => {
|
|
3327
3327
|
const a = ie("el-input-number");
|
|
@@ -3342,8 +3342,8 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3342
3342
|
},
|
|
3343
3343
|
setup(e) {
|
|
3344
3344
|
const t = e, n = me(t, "modelValue"), r = v(() => {
|
|
3345
|
-
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, loading: d, width:
|
|
3346
|
-
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, loading: d, width:
|
|
3345
|
+
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, loading: d, width: c, activeText: p, inactiveText: y, activeValue: h, inactiveValue: g, initValue: f } = t.data;
|
|
3346
|
+
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, loading: d, width: c, activeText: p, inactiveText: y, activeValue: h, inactiveValue: g, initValue: f };
|
|
3347
3347
|
});
|
|
3348
3348
|
return (o, i) => {
|
|
3349
3349
|
const a = ie("el-switch");
|
|
@@ -3364,8 +3364,8 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3364
3364
|
},
|
|
3365
3365
|
setup(e) {
|
|
3366
3366
|
const t = e, n = me(t, "modelValue"), r = v(() => {
|
|
3367
|
-
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, type: d, defaultValue:
|
|
3368
|
-
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, type: d, defaultValue:
|
|
3367
|
+
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, type: d, defaultValue: c, defaultTime: p, dateFormat: y, timeFormat: h, valueFormat: g = "YYYY-MM-DDTHH:mm:ss[Z]", initValue: f } = t.data;
|
|
3368
|
+
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, type: d, defaultValue: c, defaultTime: p, dateFormat: y, timeFormat: h, valueFormat: g, initValue: f };
|
|
3369
3369
|
});
|
|
3370
3370
|
return (o, i) => {
|
|
3371
3371
|
const a = ie("el-date-picker");
|
|
@@ -3385,24 +3385,24 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3385
3385
|
data: {}
|
|
3386
3386
|
},
|
|
3387
3387
|
setup(e) {
|
|
3388
|
-
const t = e, n = me(t, "modelValue"),
|
|
3389
|
-
const { clearable:
|
|
3390
|
-
return { clearable:
|
|
3391
|
-
});
|
|
3392
|
-
return (
|
|
3393
|
-
const
|
|
3388
|
+
const t = e, n = K("dictList"), r = me(t, "modelValue"), o = v(() => {
|
|
3389
|
+
const { clearable: a, disabled: s, required: u, readonly: d, placeholder: c, options: p, border: y, textColor: h, fill: g, type: f, initValue: m } = t.data;
|
|
3390
|
+
return { clearable: a, disabled: s, required: u, readonly: d, placeholder: c, options: p, border: y, textColor: h, fill: g, type: f, initValue: m };
|
|
3391
|
+
}), i = v(() => t.data.dictId ? t.data.dictId === "all" ? n.map((a) => (a.value = a.id, a)) || [] : n.find((a) => a.id === t.data.dictId)?.children || [] : o.value.options && o.value.options.length > 0 ? o.value.options : []);
|
|
3392
|
+
return (a, s) => {
|
|
3393
|
+
const u = ie("el-radio"), d = ie("el-radio-group");
|
|
3394
3394
|
return C(), L("div", Qc, [
|
|
3395
|
-
M(
|
|
3396
|
-
modelValue: w(
|
|
3397
|
-
"onUpdate:modelValue":
|
|
3398
|
-
},
|
|
3399
|
-
default:
|
|
3400
|
-
(C(!0), L(_t, null, dr(
|
|
3401
|
-
key:
|
|
3402
|
-
value:
|
|
3403
|
-
label:
|
|
3404
|
-
disabled:
|
|
3405
|
-
border:
|
|
3395
|
+
M(d, Ee({
|
|
3396
|
+
modelValue: w(r),
|
|
3397
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => Se(r) ? r.value = c : null)
|
|
3398
|
+
}, o.value), {
|
|
3399
|
+
default: U(() => [
|
|
3400
|
+
(C(!0), L(_t, null, dr(i.value, (c) => (C(), te(u, {
|
|
3401
|
+
key: c.value,
|
|
3402
|
+
value: c.value,
|
|
3403
|
+
label: c.label,
|
|
3404
|
+
disabled: c.disabled,
|
|
3405
|
+
border: o.value.border
|
|
3406
3406
|
}, null, 8, ["value", "label", "disabled", "border"]))), 128))
|
|
3407
3407
|
]),
|
|
3408
3408
|
_: 1
|
|
@@ -3410,57 +3410,62 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3410
3410
|
]);
|
|
3411
3411
|
};
|
|
3412
3412
|
}
|
|
3413
|
-
}), co = /* @__PURE__ */ _e(ef, [["__scopeId", "data-v-
|
|
3413
|
+
}), co = /* @__PURE__ */ _e(ef, [["__scopeId", "data-v-43a4ec42"]]), tf = { class: "fj-form-container" }, nf = /* @__PURE__ */ N({
|
|
3414
3414
|
name: "FjForm",
|
|
3415
3415
|
__name: "index",
|
|
3416
3416
|
props: {
|
|
3417
3417
|
data: {},
|
|
3418
3418
|
config: {},
|
|
3419
3419
|
draggable: { type: Boolean },
|
|
3420
|
+
dictList: {},
|
|
3421
|
+
labelWidth: {},
|
|
3422
|
+
span: {},
|
|
3420
3423
|
edit: { type: Boolean }
|
|
3421
3424
|
},
|
|
3422
3425
|
emits: ["change", "remove"],
|
|
3423
3426
|
setup(e, { expose: t, emit: n }) {
|
|
3424
|
-
const r = n, o = e
|
|
3427
|
+
const r = n, o = e;
|
|
3428
|
+
st("dictList", o.dictList);
|
|
3429
|
+
const i = P(), a = me(o, "data"), s = me(o, "config"), u = qe();
|
|
3425
3430
|
ae(a, (l) => {
|
|
3426
3431
|
r("change", l);
|
|
3427
3432
|
}, {
|
|
3428
3433
|
deep: !0
|
|
3429
3434
|
}), it(() => {
|
|
3430
|
-
u.value =
|
|
3435
|
+
u.value = yt(a.value);
|
|
3431
3436
|
});
|
|
3432
3437
|
function d() {
|
|
3433
|
-
return
|
|
3434
|
-
default: () =>
|
|
3435
|
-
default: () => s.value.map((l) =>
|
|
3438
|
+
return W(hc, { model: a.value, ref: i, style: "width: 100%" }, {
|
|
3439
|
+
default: () => W(nr, { id: "dragzone" }, {
|
|
3440
|
+
default: () => s.value.map((l) => c(l))
|
|
3436
3441
|
})
|
|
3437
3442
|
});
|
|
3438
3443
|
}
|
|
3439
|
-
function
|
|
3440
|
-
return l.formType === "block" ? p(l) :
|
|
3444
|
+
function c(l) {
|
|
3445
|
+
return l.formType === "block" ? p(l) : y(l);
|
|
3441
3446
|
}
|
|
3442
3447
|
function p(l) {
|
|
3443
|
-
return
|
|
3444
|
-
default: () =>
|
|
3445
|
-
default: () => [
|
|
3446
|
-
default: () => l?.children?.length ? l.children.map((T) =>
|
|
3448
|
+
return W(Hn, { span: 24 }, {
|
|
3449
|
+
default: () => W("div", { class: "fj-block" }, {
|
|
3450
|
+
default: () => [W("div", { class: "block-title" }, l.label), W(nr, {}, {
|
|
3451
|
+
default: () => l?.children?.length ? l.children.map((T) => c(T)) : null
|
|
3447
3452
|
})]
|
|
3448
3453
|
})
|
|
3449
3454
|
});
|
|
3450
3455
|
}
|
|
3451
|
-
function
|
|
3452
|
-
return
|
|
3453
|
-
default: () =>
|
|
3454
|
-
default: () => [
|
|
3456
|
+
function y(l) {
|
|
3457
|
+
return W(Hn, { xs: 24, sm: 24, md: l.span, lg: l.span, xl: 12 }, {
|
|
3458
|
+
default: () => W("div", { class: "fj-form-item" }, {
|
|
3459
|
+
default: () => [W(bc, { prop: l.key, rules: l.rules, label: l.label, style: "width: 100%" }, {
|
|
3455
3460
|
default: () => h(l)
|
|
3456
|
-
}), o.edit ?
|
|
3461
|
+
}), o.edit ? W("div", { class: "remove", onClick: () => g(l) }, { default: () => null }) : null]
|
|
3457
3462
|
})
|
|
3458
3463
|
});
|
|
3459
3464
|
}
|
|
3460
3465
|
function h(l) {
|
|
3461
3466
|
switch (l.formType) {
|
|
3462
3467
|
case "input":
|
|
3463
|
-
return
|
|
3468
|
+
return W(ao, {
|
|
3464
3469
|
modelValue: a.value[l.key],
|
|
3465
3470
|
"onUpdate:modelValue": (T) => {
|
|
3466
3471
|
a.value = { ...a.value, [l.key]: T };
|
|
@@ -3468,7 +3473,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3468
3473
|
data: l
|
|
3469
3474
|
}, {});
|
|
3470
3475
|
case "select":
|
|
3471
|
-
return
|
|
3476
|
+
return W(io, {
|
|
3472
3477
|
modelValue: a.value[l.key],
|
|
3473
3478
|
"onUpdate:modelValue": (T) => {
|
|
3474
3479
|
a.value = { ...a.value, [l.key]: T };
|
|
@@ -3476,7 +3481,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3476
3481
|
data: l
|
|
3477
3482
|
}, {});
|
|
3478
3483
|
case "number":
|
|
3479
|
-
return
|
|
3484
|
+
return W(so, {
|
|
3480
3485
|
modelValue: a.value[l.key],
|
|
3481
3486
|
"onUpdate:modelValue": (T) => {
|
|
3482
3487
|
a.value = { ...a.value, [l.key]: T };
|
|
@@ -3484,7 +3489,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3484
3489
|
data: l
|
|
3485
3490
|
}, {});
|
|
3486
3491
|
case "switch":
|
|
3487
|
-
return
|
|
3492
|
+
return W(lo, {
|
|
3488
3493
|
modelValue: a.value[l.key],
|
|
3489
3494
|
"onUpdate:modelValue": (T) => {
|
|
3490
3495
|
a.value = { ...a.value, [l.key]: T };
|
|
@@ -3492,7 +3497,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3492
3497
|
data: l
|
|
3493
3498
|
}, {});
|
|
3494
3499
|
case "date":
|
|
3495
|
-
return
|
|
3500
|
+
return W(uo, {
|
|
3496
3501
|
modelValue: a.value[l.key],
|
|
3497
3502
|
"onUpdate:modelValue": (T) => {
|
|
3498
3503
|
a.value = { ...a.value, [l.key]: T };
|
|
@@ -3500,7 +3505,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3500
3505
|
data: l
|
|
3501
3506
|
}, {});
|
|
3502
3507
|
case "radio":
|
|
3503
|
-
return
|
|
3508
|
+
return W(co, {
|
|
3504
3509
|
modelValue: a.value[l.key],
|
|
3505
3510
|
"onUpdate:modelValue": (T) => {
|
|
3506
3511
|
a.value = { ...a.value, [l.key]: T };
|
|
@@ -3508,14 +3513,14 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3508
3513
|
data: l
|
|
3509
3514
|
}, {});
|
|
3510
3515
|
default:
|
|
3511
|
-
return
|
|
3516
|
+
return W("div", {}, { default: () => "invalid node" });
|
|
3512
3517
|
}
|
|
3513
3518
|
}
|
|
3514
|
-
function
|
|
3519
|
+
function g(l) {
|
|
3515
3520
|
r("remove", l);
|
|
3516
3521
|
}
|
|
3517
|
-
function
|
|
3518
|
-
a.value =
|
|
3522
|
+
function f() {
|
|
3523
|
+
a.value = yt(u.value);
|
|
3519
3524
|
}
|
|
3520
3525
|
function m() {
|
|
3521
3526
|
return new Promise((l, T) => {
|
|
@@ -3526,12 +3531,12 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Uc = /* @__PURE__
|
|
|
3526
3531
|
}
|
|
3527
3532
|
return t({
|
|
3528
3533
|
submit: m,
|
|
3529
|
-
reset:
|
|
3534
|
+
reset: f
|
|
3530
3535
|
}), (l, T) => (C(), L("div", tf, [
|
|
3531
|
-
(C(), te(
|
|
3536
|
+
(C(), te(lt(d())))
|
|
3532
3537
|
]));
|
|
3533
3538
|
}
|
|
3534
|
-
}), Yt = /* @__PURE__ */ _e(nf, [["__scopeId", "data-v-
|
|
3539
|
+
}), Yt = /* @__PURE__ */ _e(nf, [["__scopeId", "data-v-103aecbc"]]), rf = [{
|
|
3535
3540
|
label: "text",
|
|
3536
3541
|
value: "text"
|
|
3537
3542
|
}, {
|
|
@@ -3860,6 +3865,7 @@ class Ae {
|
|
|
3860
3865
|
disabled;
|
|
3861
3866
|
required;
|
|
3862
3867
|
readonly;
|
|
3868
|
+
dictId;
|
|
3863
3869
|
rules;
|
|
3864
3870
|
children;
|
|
3865
3871
|
initValue;
|
|
@@ -3969,11 +3975,11 @@ const vf = { class: "edit-container" }, gf = { class: "aside" }, yf = { class: "
|
|
|
3969
3975
|
Bc.error(`重复key: ${h.key}`);
|
|
3970
3976
|
return;
|
|
3971
3977
|
} else {
|
|
3972
|
-
const
|
|
3973
|
-
if (
|
|
3974
|
-
const
|
|
3975
|
-
r.value = { ...r.value, [h.key]:
|
|
3976
|
-
m.children && h.key && m.children.push(
|
|
3978
|
+
const g = a[h.formItemType].ins;
|
|
3979
|
+
if (g) {
|
|
3980
|
+
const f = new g(h);
|
|
3981
|
+
r.value = { ...r.value, [h.key]: f.initValue }, n.value.forEach((m) => {
|
|
3982
|
+
m.children && h.key && m.children.push(f);
|
|
3977
3983
|
});
|
|
3978
3984
|
}
|
|
3979
3985
|
}
|
|
@@ -3982,43 +3988,43 @@ const vf = { class: "edit-container" }, gf = { class: "aside" }, yf = { class: "
|
|
|
3982
3988
|
function d(h) {
|
|
3983
3989
|
console.log(h);
|
|
3984
3990
|
}
|
|
3985
|
-
function
|
|
3991
|
+
function c(h) {
|
|
3986
3992
|
console.log(h);
|
|
3987
|
-
const
|
|
3988
|
-
if (h?.key &&
|
|
3989
|
-
const m =
|
|
3990
|
-
console.log(m),
|
|
3993
|
+
const g = yt(n.value), f = yt(r.value);
|
|
3994
|
+
if (h?.key && g?.[0]?.children) {
|
|
3995
|
+
const m = g[0].children.filter((l) => l.key != h.key) || [];
|
|
3996
|
+
console.log(m), g[0].children = m, n.value = g, delete f[h.key], r.value = f;
|
|
3991
3997
|
}
|
|
3992
3998
|
}
|
|
3993
3999
|
function p() {
|
|
3994
4000
|
console.log("%c 配置信息 CONFIG ", "color: lime"), console.log(JSON.stringify(n.value, null, " ")), console.log("%c 配置信息 DATA :", "color: orange"), console.log(JSON.stringify(r.value, null, " "));
|
|
3995
4001
|
}
|
|
3996
|
-
function
|
|
4002
|
+
function y() {
|
|
3997
4003
|
t.value?.reset();
|
|
3998
4004
|
}
|
|
3999
|
-
return (h,
|
|
4000
|
-
const
|
|
4005
|
+
return (h, g) => {
|
|
4006
|
+
const f = ie("el-button"), m = ie("el-button-group");
|
|
4001
4007
|
return C(), L("div", vf, [
|
|
4002
|
-
|
|
4003
|
-
|
|
4008
|
+
H("div", gf, [
|
|
4009
|
+
H("div", yf, [
|
|
4004
4010
|
M(w(Yt), {
|
|
4005
4011
|
config: n.value,
|
|
4006
|
-
"onUpdate:config":
|
|
4012
|
+
"onUpdate:config": g[0] || (g[0] = (l) => n.value = l),
|
|
4007
4013
|
data: r.value,
|
|
4008
|
-
"onUpdate:data":
|
|
4014
|
+
"onUpdate:data": g[1] || (g[1] = (l) => r.value = l),
|
|
4009
4015
|
edit: !0,
|
|
4010
4016
|
onChange: d,
|
|
4011
|
-
onRemove:
|
|
4017
|
+
onRemove: c
|
|
4012
4018
|
}, null, 8, ["config", "data"])
|
|
4013
4019
|
]),
|
|
4014
|
-
|
|
4020
|
+
H("div", hf, [
|
|
4015
4021
|
M(m, null, {
|
|
4016
|
-
default:
|
|
4017
|
-
M(
|
|
4022
|
+
default: U(() => [
|
|
4023
|
+
M(f, {
|
|
4018
4024
|
type: "danger",
|
|
4019
4025
|
onClick: s
|
|
4020
4026
|
}, {
|
|
4021
|
-
default:
|
|
4027
|
+
default: U(() => [...g[4] || (g[4] = [
|
|
4022
4028
|
ke("清空", -1)
|
|
4023
4029
|
])]),
|
|
4024
4030
|
_: 1
|
|
@@ -4028,43 +4034,43 @@ const vf = { class: "edit-container" }, gf = { class: "aside" }, yf = { class: "
|
|
|
4028
4034
|
})
|
|
4029
4035
|
])
|
|
4030
4036
|
]),
|
|
4031
|
-
|
|
4032
|
-
|
|
4037
|
+
H("div", bf, [
|
|
4038
|
+
H("div", _f, [
|
|
4033
4039
|
M(w(Yt), {
|
|
4034
4040
|
ref_key: "formRef",
|
|
4035
4041
|
ref: t,
|
|
4036
4042
|
config: i.value,
|
|
4037
|
-
"onUpdate:config":
|
|
4043
|
+
"onUpdate:config": g[2] || (g[2] = (l) => i.value = l),
|
|
4038
4044
|
data: o.value,
|
|
4039
|
-
"onUpdate:data":
|
|
4045
|
+
"onUpdate:data": g[3] || (g[3] = (l) => o.value = l)
|
|
4040
4046
|
}, null, 8, ["config", "data"])
|
|
4041
4047
|
]),
|
|
4042
|
-
|
|
4048
|
+
H("div", wf, [
|
|
4043
4049
|
M(m, null, {
|
|
4044
|
-
default:
|
|
4045
|
-
M(
|
|
4050
|
+
default: U(() => [
|
|
4051
|
+
M(f, {
|
|
4046
4052
|
type: "warning",
|
|
4047
4053
|
onClick: u
|
|
4048
4054
|
}, {
|
|
4049
|
-
default:
|
|
4055
|
+
default: U(() => [...g[5] || (g[5] = [
|
|
4050
4056
|
ke("添加", -1)
|
|
4051
4057
|
])]),
|
|
4052
4058
|
_: 1
|
|
4053
4059
|
}),
|
|
4054
|
-
M(
|
|
4060
|
+
M(f, {
|
|
4055
4061
|
type: "warning",
|
|
4056
4062
|
onClick: p
|
|
4057
4063
|
}, {
|
|
4058
|
-
default:
|
|
4064
|
+
default: U(() => [...g[6] || (g[6] = [
|
|
4059
4065
|
ke("打印", -1)
|
|
4060
4066
|
])]),
|
|
4061
4067
|
_: 1
|
|
4062
4068
|
}),
|
|
4063
|
-
M(
|
|
4069
|
+
M(f, {
|
|
4064
4070
|
type: "warning",
|
|
4065
|
-
onClick:
|
|
4071
|
+
onClick: y
|
|
4066
4072
|
}, {
|
|
4067
|
-
default:
|
|
4073
|
+
default: U(() => [...g[7] || (g[7] = [
|
|
4068
4074
|
ke("重置", -1)
|
|
4069
4075
|
])]),
|
|
4070
4076
|
_: 1
|