fj-form 0.0.11 → 0.0.12
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/dist/fj-form.css +1 -1
- package/dist/fj-form.js +176 -174
- package/dist/fj-form.umd.cjs +4 -4
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/fj-form.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { getCurrentInstance as pe, inject as K, ref as P, computed as
|
|
1
|
+
import { getCurrentInstance as pe, inject as K, ref as P, computed as g, unref as x, watch as ae, shallowRef as qe, watchEffect as yo, 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 I, createElementBlock as M, mergeProps as Ee, renderSlot as ne, createElementVNode as H, normalizeClass as Z, createVNode as L, Transition as ar, withCtx as U, withDirectives as ir, normalizeStyle as Be, createTextVNode as ke, toDisplayString as vt, 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 dr, render as hn, useModel as me, resolveComponent as ie, renderList as fr, h as W } from "vue";
|
|
2
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
|
-
}, mr = /* @__PURE__ */ Symbol("namespaceContextKey"),
|
|
5
|
+
}, mr = /* @__PURE__ */ Symbol("namespaceContextKey"), gr = (e) => {
|
|
6
6
|
const t = e || (pe() ? K(mr, P(pt)) : P(pt));
|
|
7
|
-
return
|
|
7
|
+
return g(() => x(t) || pt);
|
|
8
8
|
}, he = (e, t) => {
|
|
9
|
-
const n =
|
|
9
|
+
const n = gr(t);
|
|
10
10
|
return {
|
|
11
11
|
namespace: n,
|
|
12
12
|
b: (u = "") => we(n.value, e, u, "", ""),
|
|
@@ -39,8 +39,8 @@ const pr = /* @__PURE__ */ Symbol(), pt = "el", So = "is-", we = (e, t, n, r, o)
|
|
|
39
39
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
40
40
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
41
41
|
const Eo = () => {
|
|
42
|
-
}, Io = Object.prototype.hasOwnProperty, Pt = (e, t) => Io.call(e, t), et = Array.isArray, ze = (e) => typeof e == "function",
|
|
43
|
-
var
|
|
42
|
+
}, Io = Object.prototype.hasOwnProperty, Pt = (e, t) => Io.call(e, t), et = Array.isArray, ze = (e) => typeof e == "function", ge = (e) => typeof e == "string", Zt = (e) => e !== null && typeof e == "object";
|
|
43
|
+
var vr = typeof global == "object" && global && global.Object === Object && global, Co = typeof self == "object" && self && self.Object === Object && self, se = vr || Co || Function("return this")(), ve = se.Symbol, hr = Object.prototype, Fo = hr.hasOwnProperty, jo = hr.toString, Ye = ve ? ve.toStringTag : void 0;
|
|
44
44
|
function Ao(e) {
|
|
45
45
|
var t = Fo.call(e, Ye), n = e[Ye];
|
|
46
46
|
try {
|
|
@@ -55,7 +55,7 @@ var Po = Object.prototype, Vo = Po.toString;
|
|
|
55
55
|
function No(e) {
|
|
56
56
|
return Vo.call(e);
|
|
57
57
|
}
|
|
58
|
-
var Lo = "[object Null]", Mo = "[object Undefined]", yn =
|
|
58
|
+
var Lo = "[object Null]", Mo = "[object Undefined]", yn = ve ? ve.toStringTag : void 0;
|
|
59
59
|
function Ue(e) {
|
|
60
60
|
return e == null ? e === void 0 ? Mo : Lo : yn && yn in Object(e) ? Ao(e) : No(e);
|
|
61
61
|
}
|
|
@@ -71,7 +71,7 @@ function ko(e, t) {
|
|
|
71
71
|
o[n] = t(e[n], n, e);
|
|
72
72
|
return o;
|
|
73
73
|
}
|
|
74
|
-
var ye = Array.isArray, bn =
|
|
74
|
+
var ye = Array.isArray, bn = ve ? ve.prototype : void 0, _n = bn ? bn.toString : void 0;
|
|
75
75
|
function yr(e) {
|
|
76
76
|
if (typeof e == "string")
|
|
77
77
|
return e;
|
|
@@ -217,10 +217,10 @@ var Tr = Object.prototype, pa = Tr.hasOwnProperty, ma = Tr.propertyIsEnumerable,
|
|
|
217
217
|
})()) ? $n : function(e) {
|
|
218
218
|
return Ke(e) && pa.call(e, "callee") && !ma.call(e, "callee");
|
|
219
219
|
};
|
|
220
|
-
function
|
|
220
|
+
function ga() {
|
|
221
221
|
return !1;
|
|
222
222
|
}
|
|
223
|
-
var Or = typeof exports == "object" && exports && !exports.nodeType && exports, On = Or && typeof module == "object" && module && !module.nodeType && module,
|
|
223
|
+
var Or = typeof exports == "object" && exports && !exports.nodeType && exports, On = Or && typeof module == "object" && module && !module.nodeType && module, va = On && On.exports === Or, Sn = va ? se.Buffer : void 0, ha = Sn ? Sn.isBuffer : void 0, Sr = ha || ga, ya = "[object Arguments]", ba = "[object Array]", _a = "[object Boolean]", wa = "[object Date]", xa = "[object Error]", Ta = "[object Function]", $a = "[object Map]", Oa = "[object Number]", Sa = "[object Object]", Ea = "[object RegExp]", Ia = "[object Set]", Ca = "[object String]", Fa = "[object WeakMap]", ja = "[object ArrayBuffer]", Aa = "[object DataView]", Pa = "[object Float32Array]", Va = "[object Float64Array]", Na = "[object Int8Array]", La = "[object Int16Array]", Ma = "[object Int32Array]", qa = "[object Uint8Array]", ka = "[object Uint8ClampedArray]", Da = "[object Uint16Array]", Ra = "[object Uint32Array]", A = {};
|
|
224
224
|
A[Pa] = A[Va] = A[Na] = A[La] = A[Ma] = A[qa] = A[ka] = A[Da] = A[Ra] = !0;
|
|
225
225
|
A[ya] = A[ba] = A[ja] = A[_a] = A[Aa] = A[wa] = A[xa] = A[Ta] = A[$a] = A[Oa] = A[Sa] = A[Ea] = A[Ia] = A[Ca] = A[Fa] = !1;
|
|
226
226
|
function Ba(e) {
|
|
@@ -231,7 +231,7 @@ function nn(e) {
|
|
|
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, Ct = za &&
|
|
234
|
+
var Er = typeof exports == "object" && exports && !exports.nodeType && exports, Ze = Er && typeof module == "object" && module && !module.nodeType && module, za = Ze && Ze.exports === Er, Ct = za && vr.process, We = (function() {
|
|
235
235
|
try {
|
|
236
236
|
var e = Ze && Ze.require && Ze.require("util").types;
|
|
237
237
|
return e || Ct && Ct.binding && Ct.binding("util");
|
|
@@ -330,7 +330,7 @@ $e.prototype.delete = ai;
|
|
|
330
330
|
$e.prototype.get = ui;
|
|
331
331
|
$e.prototype.has = fi;
|
|
332
332
|
$e.prototype.set = mi;
|
|
333
|
-
function
|
|
333
|
+
function gi() {
|
|
334
334
|
this.__data__ = [], this.size = 0;
|
|
335
335
|
}
|
|
336
336
|
function xt(e, t) {
|
|
@@ -339,7 +339,7 @@ function xt(e, t) {
|
|
|
339
339
|
return n;
|
|
340
340
|
return -1;
|
|
341
341
|
}
|
|
342
|
-
var
|
|
342
|
+
var vi = Array.prototype, hi = vi.splice;
|
|
343
343
|
function yi(e) {
|
|
344
344
|
var t = this.__data__, n = xt(t, e);
|
|
345
345
|
if (n < 0)
|
|
@@ -365,7 +365,7 @@ function fe(e) {
|
|
|
365
365
|
this.set(r[0], r[1]);
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
fe.prototype.clear =
|
|
368
|
+
fe.prototype.clear = gi;
|
|
369
369
|
fe.prototype.delete = yi;
|
|
370
370
|
fe.prototype.get = bi;
|
|
371
371
|
fe.prototype.has = _i;
|
|
@@ -592,7 +592,7 @@ function ds(e) {
|
|
|
592
592
|
var t = new e.constructor(e.source, cs.exec(e));
|
|
593
593
|
return t.lastIndex = e.lastIndex, t;
|
|
594
594
|
}
|
|
595
|
-
var qn =
|
|
595
|
+
var qn = ve ? ve.prototype : void 0, kn = qn ? qn.valueOf : void 0;
|
|
596
596
|
function fs(e) {
|
|
597
597
|
return kn ? Object(kn.call(e)) : {};
|
|
598
598
|
}
|
|
@@ -600,14 +600,14 @@ function ps(e, t) {
|
|
|
600
600
|
var n = t ? cn(e.buffer) : e.buffer;
|
|
601
601
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
602
602
|
}
|
|
603
|
-
var ms = "[object Boolean]",
|
|
603
|
+
var ms = "[object Boolean]", gs = "[object Date]", vs = "[object Map]", hs = "[object Number]", ys = "[object RegExp]", bs = "[object Set]", _s = "[object String]", ws = "[object Symbol]", xs = "[object ArrayBuffer]", Ts = "[object DataView]", $s = "[object Float32Array]", Os = "[object Float64Array]", Ss = "[object Int8Array]", Es = "[object Int16Array]", Is = "[object Int32Array]", Cs = "[object Uint8Array]", Fs = "[object Uint8ClampedArray]", js = "[object Uint16Array]", As = "[object Uint32Array]";
|
|
604
604
|
function Ps(e, t, n) {
|
|
605
605
|
var r = e.constructor;
|
|
606
606
|
switch (t) {
|
|
607
607
|
case xs:
|
|
608
608
|
return cn(e);
|
|
609
609
|
case ms:
|
|
610
|
-
case
|
|
610
|
+
case gs:
|
|
611
611
|
return new r(+e);
|
|
612
612
|
case Ts:
|
|
613
613
|
return us(e, n);
|
|
@@ -621,7 +621,7 @@ function Ps(e, t, n) {
|
|
|
621
621
|
case js:
|
|
622
622
|
case As:
|
|
623
623
|
return ps(e, n);
|
|
624
|
-
case
|
|
624
|
+
case vs:
|
|
625
625
|
return new r();
|
|
626
626
|
case hs:
|
|
627
627
|
case _s:
|
|
@@ -659,11 +659,11 @@ function Je(e, t, n, r, o, i) {
|
|
|
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), v = p == qr || p == Ys;
|
|
663
663
|
if (Sr(e))
|
|
664
664
|
return Ui(e, s);
|
|
665
|
-
if (p == kr || p == Mr ||
|
|
666
|
-
if (a = c ||
|
|
665
|
+
if (p == kr || p == Mr || v && !o) {
|
|
666
|
+
if (a = c || v ? {} : Vs(e), !s)
|
|
667
667
|
return c ? Ji(e, zi(a, e)) : Hi(e, Bi(a, e));
|
|
668
668
|
} else {
|
|
669
669
|
if (!j[p])
|
|
@@ -689,11 +689,11 @@ var pl = 4;
|
|
|
689
689
|
function Ft(e) {
|
|
690
690
|
return Je(e, pl);
|
|
691
691
|
}
|
|
692
|
-
var ml = 1,
|
|
692
|
+
var ml = 1, gl = 4;
|
|
693
693
|
function ht(e) {
|
|
694
|
-
return Je(e, ml |
|
|
694
|
+
return Je(e, ml | gl);
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function vl(e, t, n) {
|
|
697
697
|
t = sn(t, e);
|
|
698
698
|
for (var r = -1, o = t.length, i = !1; ++r < o; ) {
|
|
699
699
|
var a = ln(t[r]);
|
|
@@ -715,7 +715,7 @@ function _l(e, t) {
|
|
|
715
715
|
return e != null && bl.call(e, t);
|
|
716
716
|
}
|
|
717
717
|
function wl(e, t) {
|
|
718
|
-
return e != null &&
|
|
718
|
+
return e != null && vl(e, t, _l);
|
|
719
719
|
}
|
|
720
720
|
function xl(e, t, n, r) {
|
|
721
721
|
if (!Te(e))
|
|
@@ -736,7 +736,7 @@ function xl(e, t, n, r) {
|
|
|
736
736
|
function Tl(e, t, n) {
|
|
737
737
|
return e == null ? e : xl(e, t, n);
|
|
738
738
|
}
|
|
739
|
-
const Xe = (e) => typeof e == "boolean", de = (e) => typeof e == "number", $l = (e) => typeof Element > "u" ? !1 : e instanceof Element, Ol = (e) =>
|
|
739
|
+
const Xe = (e) => typeof e == "boolean", de = (e) => typeof e == "number", $l = (e) => typeof Element > "u" ? !1 : e instanceof Element, Ol = (e) => ge(e) ? !Number.isNaN(Number(e)) : !1;
|
|
740
740
|
function Sl(e, t) {
|
|
741
741
|
var n;
|
|
742
742
|
const r = qe();
|
|
@@ -828,14 +828,14 @@ function Vl(...e) {
|
|
|
828
828
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
829
829
|
const i = [], a = () => {
|
|
830
830
|
i.forEach((d) => d()), i.length = 0;
|
|
831
|
-
}, s = (d, p,
|
|
831
|
+
}, s = (d, p, v, _) => (d.addEventListener(p, v, _), () => d.removeEventListener(p, v, _)), c = ae(
|
|
832
832
|
() => [Dt(t), rt(o)],
|
|
833
833
|
([d, p]) => {
|
|
834
834
|
if (a(), !d)
|
|
835
835
|
return;
|
|
836
|
-
const
|
|
836
|
+
const v = Il(p) ? { ...p } : p;
|
|
837
837
|
i.push(
|
|
838
|
-
...n.flatMap((_) => r.map((h) => s(d, _, h,
|
|
838
|
+
...n.flatMap((_) => r.map((h) => s(d, _, h, v)))
|
|
839
839
|
);
|
|
840
840
|
},
|
|
841
841
|
{ immediate: !0, flush: "post" }
|
|
@@ -852,20 +852,20 @@ function Nl() {
|
|
|
852
852
|
}
|
|
853
853
|
function Ll(e) {
|
|
854
854
|
const t = Nl();
|
|
855
|
-
return
|
|
855
|
+
return g(() => (t.value, !!e()));
|
|
856
856
|
}
|
|
857
857
|
function Rr(e, t, n = {}) {
|
|
858
858
|
const { window: r = Dr, ...o } = n;
|
|
859
859
|
let i;
|
|
860
860
|
const a = Ll(() => r && "ResizeObserver" in r), s = () => {
|
|
861
861
|
i && (i.disconnect(), i = void 0);
|
|
862
|
-
}, c =
|
|
862
|
+
}, c = g(() => Array.isArray(e) ? e.map((p) => Dt(p)) : [Dt(e)]), f = ae(
|
|
863
863
|
c,
|
|
864
864
|
(p) => {
|
|
865
865
|
if (s(), a.value && r) {
|
|
866
866
|
i = new ResizeObserver(t);
|
|
867
|
-
for (const
|
|
868
|
-
|
|
867
|
+
for (const v of p)
|
|
868
|
+
v && i.observe(v, o);
|
|
869
869
|
}
|
|
870
870
|
},
|
|
871
871
|
{ immediate: !0, flush: "post" }
|
|
@@ -887,17 +887,17 @@ function Ml(e, t) {
|
|
|
887
887
|
}
|
|
888
888
|
function Q(e, t) {
|
|
889
889
|
if (process.env.NODE_ENV !== "production") {
|
|
890
|
-
const n =
|
|
890
|
+
const n = ge(e) ? new Br(`[${e}] ${t}`) : e;
|
|
891
891
|
console.warn(n);
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
894
|
const Bn = {
|
|
895
895
|
current: 0
|
|
896
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 =
|
|
897
|
+
const t = pe() ? K(Wn, Bn) : Bn, n = e || (pe() ? K(Wr, void 0) : void 0), r = g(() => {
|
|
898
898
|
const a = x(n);
|
|
899
899
|
return de(a) ? a : zr;
|
|
900
|
-
}), o =
|
|
900
|
+
}), o = g(() => r.value + zn.value), i = () => (t.current++, zn.value = t.current, o.value);
|
|
901
901
|
return !Fe && !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
|
|
@@ -1109,7 +1109,7 @@ const Dl = (e) => (t, n) => Rl(t, n, x(e)), Rl = (e, t, n) => Fr(n, e, e).replac
|
|
|
1109
1109
|
return `${(i = t?.[o]) != null ? i : `{${o}}`}`;
|
|
1110
1110
|
}
|
|
1111
1111
|
), Bl = (e) => {
|
|
1112
|
-
const t =
|
|
1112
|
+
const t = g(() => x(e).name), n = Se(e) ? e : P(e);
|
|
1113
1113
|
return {
|
|
1114
1114
|
lang: t,
|
|
1115
1115
|
locale: n,
|
|
@@ -1117,7 +1117,7 @@ const Dl = (e) => (t, n) => Rl(t, n, x(e)), Rl = (e, t, n) => Fr(n, e, e).replac
|
|
|
1117
1117
|
};
|
|
1118
1118
|
}, Ur = /* @__PURE__ */ Symbol("localeContextKey"), zl = (e) => {
|
|
1119
1119
|
const t = e || K(Ur, P());
|
|
1120
|
-
return Bl(
|
|
1120
|
+
return Bl(g(() => t.value || kl));
|
|
1121
1121
|
}, Kr = "__epPropKey", V = (e) => e, Wl = (e) => Zt(e) && !!e[Kr], Gr = (e, t) => {
|
|
1122
1122
|
if (!Zt(e) || Wl(e))
|
|
1123
1123
|
return e;
|
|
@@ -1127,9 +1127,9 @@ const Dl = (e) => (t, n) => Rl(t, n, x(e)), Rl = (e, t, n) => Fr(n, e, e).replac
|
|
|
1127
1127
|
validator: n || a ? (f) => {
|
|
1128
1128
|
let d = !1, p = [];
|
|
1129
1129
|
if (n && (p = Array.from(n), Pt(e, "default") && p.push(o), d || (d = p.includes(f))), a && (d || (d = a(f))), !d && p.length > 0) {
|
|
1130
|
-
const
|
|
1130
|
+
const v = [...new Set(p)].map((_) => JSON.stringify(_)).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 [${v}], got value ${JSON.stringify(
|
|
1133
1133
|
f
|
|
1134
1134
|
)}.`
|
|
1135
1135
|
);
|
|
@@ -1150,7 +1150,7 @@ const Dl = (e) => (t, n) => Rl(t, n, x(e)), Rl = (e, t, n) => Fr(n, e, e).replac
|
|
|
1150
1150
|
required: !1
|
|
1151
1151
|
}), Yr = /* @__PURE__ */ Symbol("size"), Kl = () => {
|
|
1152
1152
|
const e = K(Yr, {});
|
|
1153
|
-
return
|
|
1153
|
+
return g(() => x(e.size) || "");
|
|
1154
1154
|
}, Gl = /* @__PURE__ */ Symbol("emptyValuesContextKey"), Yl = le({
|
|
1155
1155
|
emptyValues: Array,
|
|
1156
1156
|
valueOnClear: {
|
|
@@ -1177,23 +1177,23 @@ function Hr(e, t = void 0) {
|
|
|
1177
1177
|
function Hl(e, t) {
|
|
1178
1178
|
const n = Hr(), r = he(
|
|
1179
1179
|
e,
|
|
1180
|
-
|
|
1180
|
+
g(() => {
|
|
1181
1181
|
var s;
|
|
1182
1182
|
return ((s = n.value) == null ? void 0 : s.namespace) || pt;
|
|
1183
1183
|
})
|
|
1184
|
-
), o = zl(
|
|
1184
|
+
), o = zl(g(() => {
|
|
1185
1185
|
var s;
|
|
1186
1186
|
return (s = n.value) == null ? void 0 : s.locale;
|
|
1187
1187
|
})), i = ql(
|
|
1188
|
-
|
|
1188
|
+
g(() => {
|
|
1189
1189
|
var s;
|
|
1190
1190
|
return ((s = n.value) == null ? void 0 : s.zIndex) || zr;
|
|
1191
1191
|
})
|
|
1192
|
-
), a =
|
|
1192
|
+
), a = g(() => {
|
|
1193
1193
|
var s;
|
|
1194
1194
|
return x(t) || ((s = n.value) == null ? void 0 : s.size) || "";
|
|
1195
1195
|
});
|
|
1196
|
-
return Zr(
|
|
1196
|
+
return Zr(g(() => x(n) || {})), {
|
|
1197
1197
|
ns: r,
|
|
1198
1198
|
locale: o,
|
|
1199
1199
|
zIndex: i,
|
|
@@ -1210,24 +1210,24 @@ const Zr = (e, t, n = !1) => {
|
|
|
1210
1210
|
);
|
|
1211
1211
|
return;
|
|
1212
1212
|
}
|
|
1213
|
-
const s =
|
|
1213
|
+
const s = g(() => {
|
|
1214
1214
|
const c = x(e);
|
|
1215
1215
|
return i?.value ? Zl(i.value, c) : c;
|
|
1216
1216
|
});
|
|
1217
1217
|
return a(pr, s), a(
|
|
1218
1218
|
Ur,
|
|
1219
|
-
|
|
1219
|
+
g(() => s.value.locale)
|
|
1220
1220
|
), a(
|
|
1221
1221
|
mr,
|
|
1222
|
-
|
|
1222
|
+
g(() => s.value.namespace)
|
|
1223
1223
|
), a(
|
|
1224
1224
|
Wr,
|
|
1225
|
-
|
|
1225
|
+
g(() => s.value.zIndex)
|
|
1226
1226
|
), a(Yr, {
|
|
1227
|
-
size:
|
|
1227
|
+
size: g(() => s.value.size || "")
|
|
1228
1228
|
}), a(
|
|
1229
1229
|
Gl,
|
|
1230
|
-
|
|
1230
|
+
g(() => ({
|
|
1231
1231
|
emptyValues: s.value.emptyValues,
|
|
1232
1232
|
valueOnClear: s.value.valueOnClear
|
|
1233
1233
|
}))
|
|
@@ -1260,7 +1260,7 @@ function ot(e, t = "px") {
|
|
|
1260
1260
|
return "";
|
|
1261
1261
|
if (de(e) || Ol(e))
|
|
1262
1262
|
return `${e}${t}`;
|
|
1263
|
-
if (
|
|
1263
|
+
if (ge(e))
|
|
1264
1264
|
return e;
|
|
1265
1265
|
Q(Ql, "binding value must be a string or number");
|
|
1266
1266
|
}
|
|
@@ -1277,7 +1277,7 @@ const eu = le({
|
|
|
1277
1277
|
__name: "icon",
|
|
1278
1278
|
props: eu,
|
|
1279
1279
|
setup(e) {
|
|
1280
|
-
const t = e, n = he("icon"), r =
|
|
1280
|
+
const t = e, n = he("icon"), r = g(() => {
|
|
1281
1281
|
const { size: o, color: i } = t, a = ot(o);
|
|
1282
1282
|
return !a && !i ? {} : {
|
|
1283
1283
|
fontSize: a,
|
|
@@ -1385,8 +1385,8 @@ const fu = V([
|
|
|
1385
1385
|
}, mu = () => Fe && /android/i.test(window.navigator.userAgent), Me = (e) => e, Rt = {
|
|
1386
1386
|
prefix: Math.floor(Math.random() * 1e4),
|
|
1387
1387
|
current: 0
|
|
1388
|
-
},
|
|
1389
|
-
const t =
|
|
1388
|
+
}, gu = /* @__PURE__ */ Symbol("elIdInjection"), vu = () => pe() ? K(gu, Rt) : Rt, hu = (e) => {
|
|
1389
|
+
const t = vu();
|
|
1390
1390
|
!Fe && t === Rt && Q(
|
|
1391
1391
|
"IdInjection",
|
|
1392
1392
|
`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
@@ -1395,19 +1395,19 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
1395
1395
|
current: number,
|
|
1396
1396
|
})`
|
|
1397
1397
|
);
|
|
1398
|
-
const n =
|
|
1398
|
+
const n = gr();
|
|
1399
1399
|
return Sl(
|
|
1400
1400
|
() => x(e) || `${n.value}-id-${t.prefix}-${t.current++}`
|
|
1401
1401
|
);
|
|
1402
1402
|
}, $t = /* @__PURE__ */ Symbol("formContextKey"), bt = /* @__PURE__ */ Symbol("formItemContextKey"), yu = (e) => {
|
|
1403
1403
|
const t = pe();
|
|
1404
|
-
return
|
|
1404
|
+
return g(() => {
|
|
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
1409
|
const n = P(void 0), r = t.prop ? n : yu("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
|
-
return
|
|
1410
|
+
return g(
|
|
1411
1411
|
() => r.value || x(e) || a?.size || i?.size || o.value || ""
|
|
1412
1412
|
);
|
|
1413
1413
|
}, Bt = {
|
|
@@ -1474,7 +1474,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
1474
1474
|
__name: "badge",
|
|
1475
1475
|
props: wu,
|
|
1476
1476
|
setup(e, { expose: t }) {
|
|
1477
|
-
const n = e, r = he("badge"), o =
|
|
1477
|
+
const n = e, r = he("badge"), o = g(() => n.isDot ? "" : de(n.value) && de(n.max) ? n.max < n.value ? `${n.max}+` : `${n.value}` : `${n.value}`), i = g(() => {
|
|
1478
1478
|
var a;
|
|
1479
1479
|
return [
|
|
1480
1480
|
{
|
|
@@ -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
|
+
vt(o.value),
|
|
1519
1519
|
1
|
|
1520
1520
|
)
|
|
1521
1521
|
])
|
|
@@ -1579,10 +1579,10 @@ const $u = ut(Tu), Ou = le({
|
|
|
1579
1579
|
__name: "col",
|
|
1580
1580
|
props: Ou,
|
|
1581
1581
|
setup(e) {
|
|
1582
|
-
const t = e, { gutter: n } = K(Xr, { gutter:
|
|
1582
|
+
const t = e, { gutter: n } = K(Xr, { gutter: g(() => 0) }), r = he("col"), o = g(() => {
|
|
1583
1583
|
const a = {};
|
|
1584
1584
|
return n.value && (a.paddingLeft = a.paddingRight = `${n.value / 2}px`), a;
|
|
1585
|
-
}), i =
|
|
1585
|
+
}), i = g(() => {
|
|
1586
1586
|
const a = [];
|
|
1587
1587
|
return ["span", "offset", "pull", "push"].forEach((f) => {
|
|
1588
1588
|
const d = t[f];
|
|
@@ -1710,10 +1710,10 @@ const Cu = le({
|
|
|
1710
1710
|
default: !0
|
|
1711
1711
|
}
|
|
1712
1712
|
}), ju = {
|
|
1713
|
-
validate: (e, t, n) => (et(e) ||
|
|
1713
|
+
validate: (e, t, n) => (et(e) || ge(e)) && Xe(t) && ge(n)
|
|
1714
1714
|
}, Au = "ElForm";
|
|
1715
1715
|
function Pu() {
|
|
1716
|
-
const e = P([]), t =
|
|
1716
|
+
const e = P([]), t = g(() => {
|
|
1717
1717
|
if (!e.value.length)
|
|
1718
1718
|
return "0";
|
|
1719
1719
|
const i = Math.max(...e.value);
|
|
@@ -1752,7 +1752,7 @@ const dt = (e, t) => {
|
|
|
1752
1752
|
props: Fu,
|
|
1753
1753
|
emits: ju,
|
|
1754
1754
|
setup(e, { expose: t, emit: n }) {
|
|
1755
|
-
const r = e, o = n, i = P(), a = At([]), s = Jr(), c = he("form"), f =
|
|
1755
|
+
const r = e, o = n, i = P(), a = At([]), s = Jr(), c = he("form"), f = g(() => {
|
|
1756
1756
|
const { labelPosition: y, inline: $ } = r;
|
|
1757
1757
|
return [
|
|
1758
1758
|
c.b(),
|
|
@@ -1764,7 +1764,7 @@ const dt = (e, t) => {
|
|
|
1764
1764
|
];
|
|
1765
1765
|
}), d = (y) => dt(a, [y])[0], p = (y) => {
|
|
1766
1766
|
a.push(y);
|
|
1767
|
-
},
|
|
1767
|
+
}, v = (y) => {
|
|
1768
1768
|
y.prop && a.splice(a.indexOf(y), 1);
|
|
1769
1769
|
}, _ = (y) => {
|
|
1770
1770
|
if (!r.model) {
|
|
@@ -1792,7 +1792,7 @@ const dt = (e, t) => {
|
|
|
1792
1792
|
dt(a, y).forEach(($) => $.resetField());
|
|
1793
1793
|
}, u = (y = []) => {
|
|
1794
1794
|
dt(a, y).forEach(($) => $.clearValidate());
|
|
1795
|
-
}, m =
|
|
1795
|
+
}, m = g(() => {
|
|
1796
1796
|
const y = !!r.model;
|
|
1797
1797
|
return y || Q(Ne, "model is required for validate to work."), y;
|
|
1798
1798
|
}), l = (y) => {
|
|
@@ -1853,7 +1853,7 @@ const dt = (e, t) => {
|
|
|
1853
1853
|
validateField: E,
|
|
1854
1854
|
getField: d,
|
|
1855
1855
|
addField: p,
|
|
1856
|
-
removeField:
|
|
1856
|
+
removeField: v,
|
|
1857
1857
|
setInitialValues: _,
|
|
1858
1858
|
...Pu()
|
|
1859
1859
|
})
|
|
@@ -1914,13 +1914,13 @@ function Mu() {
|
|
|
1914
1914
|
return !1;
|
|
1915
1915
|
}
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1918
|
-
return Mu() ?
|
|
1917
|
+
function gt(e, t, n) {
|
|
1918
|
+
return Mu() ? gt = Reflect.construct.bind() : gt = function(o, i, a) {
|
|
1919
1919
|
var s = [null];
|
|
1920
1920
|
s.push.apply(s, i);
|
|
1921
1921
|
var c = Function.bind.apply(o, s), f = new c();
|
|
1922
1922
|
return a && at(f, a.prototype), f;
|
|
1923
|
-
},
|
|
1923
|
+
}, gt.apply(null, arguments);
|
|
1924
1924
|
}
|
|
1925
1925
|
function qu(e) {
|
|
1926
1926
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
@@ -1936,7 +1936,7 @@ function Wt(e) {
|
|
|
1936
1936
|
t.set(r, o);
|
|
1937
1937
|
}
|
|
1938
1938
|
function o() {
|
|
1939
|
-
return
|
|
1939
|
+
return gt(r, arguments, zt(this).constructor);
|
|
1940
1940
|
}
|
|
1941
1941
|
return o.prototype = Object.create(r.prototype, {
|
|
1942
1942
|
constructor: {
|
|
@@ -2038,28 +2038,28 @@ var Jn = /* @__PURE__ */ (function(e) {
|
|
|
2038
2038
|
})(/* @__PURE__ */ Wt(Error));
|
|
2039
2039
|
function zu(e, t, n, r, o) {
|
|
2040
2040
|
if (t.first) {
|
|
2041
|
-
var i = new Promise(function(
|
|
2041
|
+
var i = new Promise(function(v, _) {
|
|
2042
2042
|
var h = function(l) {
|
|
2043
|
-
return r(l), l.length ? _(new Jn(l, Ut(l))) :
|
|
2043
|
+
return r(l), l.length ? _(new Jn(l, Ut(l))) : v(o);
|
|
2044
2044
|
}, u = Bu(e);
|
|
2045
2045
|
Zn(u, n, h);
|
|
2046
2046
|
});
|
|
2047
|
-
return i.catch(function(
|
|
2048
|
-
return
|
|
2047
|
+
return i.catch(function(v) {
|
|
2048
|
+
return v;
|
|
2049
2049
|
}), i;
|
|
2050
2050
|
}
|
|
2051
|
-
var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), c = s.length, f = 0, d = [], p = new Promise(function(
|
|
2051
|
+
var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), c = s.length, f = 0, d = [], p = new Promise(function(v, _) {
|
|
2052
2052
|
var h = function(m) {
|
|
2053
2053
|
if (d.push.apply(d, m), f++, f === c)
|
|
2054
|
-
return r(d), d.length ? _(new Jn(d, Ut(d))) :
|
|
2054
|
+
return r(d), d.length ? _(new Jn(d, Ut(d))) : v(o);
|
|
2055
2055
|
};
|
|
2056
|
-
s.length || (r(d),
|
|
2056
|
+
s.length || (r(d), v(o)), s.forEach(function(u) {
|
|
2057
2057
|
var m = e[u];
|
|
2058
2058
|
a.indexOf(u) !== -1 ? Zn(m, n, h) : Ru(m, n, h);
|
|
2059
2059
|
});
|
|
2060
2060
|
});
|
|
2061
|
-
return p.catch(function(
|
|
2062
|
-
return
|
|
2061
|
+
return p.catch(function(v) {
|
|
2062
|
+
return v;
|
|
2063
2063
|
}), p;
|
|
2064
2064
|
}
|
|
2065
2065
|
function Wu(e) {
|
|
@@ -2121,7 +2121,7 @@ var eo = function(t, n, r, o, i, a) {
|
|
|
2121
2121
|
}, c.v6 = function(T) {
|
|
2122
2122
|
return T && T.exact ? s : new RegExp("" + t(T) + o + t(T), "g");
|
|
2123
2123
|
};
|
|
2124
|
-
var f = "(?:(?:[a-z]+:)?//)", d = "(?:\\S+(?::\\S*)?@)?", p = c.v4().source,
|
|
2124
|
+
var f = "(?:(?:[a-z]+:)?//)", d = "(?:\\S+(?::\\S*)?@)?", p = c.v4().source, v = c.v6().source, _ = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", h = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", u = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", m = "(?::\\d{2,5})?", l = '(?:[/?#][^\\s"]*)?', w = "(?:" + f + "|www\\.)" + d + "(?:localhost|" + p + "|" + v + "|" + _ + h + u + ")" + m + l;
|
|
2125
2125
|
return ft = new RegExp("(?:^" + w + "$)", "i"), ft;
|
|
2126
2126
|
}), er = {
|
|
2127
2127
|
// http://emailregex.com/
|
|
@@ -2179,8 +2179,8 @@ 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", c = typeof t.max == "number", f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, d = n, p = null,
|
|
2183
|
-
if (
|
|
2182
|
+
var a = typeof t.len == "number", s = typeof t.min == "number", c = typeof t.max == "number", f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, d = n, p = null, v = typeof n == "number", _ = typeof n == "string", h = Array.isArray(n);
|
|
2183
|
+
if (v ? p = "number" : _ ? p = "string" : h && (p = "array"), !p)
|
|
2184
2184
|
return !1;
|
|
2185
2185
|
h && (d = n.length), _ && (d = n.replace(f, "_").length), a ? d !== t.len && o.push(ee(i.messages[p].len, t.fullField, t.len)) : s && !c && d < t.min ? o.push(ee(i.messages[p].min, t.fullField, t.min)) : c && !s && d > t.max ? o.push(ee(i.messages[p].max, t.fullField, t.max)) : s && c && (d < t.min || d > t.max) && o.push(ee(i.messages[p].range, t.fullField, t.min, t.max));
|
|
2186
2186
|
}, Le = "enum", Zu = function(t, n, r, o, i) {
|
|
@@ -2433,14 +2433,14 @@ var Gt = Kt(), ct = /* @__PURE__ */ (function() {
|
|
|
2433
2433
|
p === Gt && (p = Kt()), Qn(p, c.messages), c.messages = p;
|
|
2434
2434
|
} else
|
|
2435
2435
|
c.messages = this.messages();
|
|
2436
|
-
var
|
|
2436
|
+
var v = {}, _ = c.keys || Object.keys(this.rules);
|
|
2437
2437
|
_.forEach(function(u) {
|
|
2438
2438
|
var m = a.rules[u], l = s[u];
|
|
2439
2439
|
m.forEach(function(w) {
|
|
2440
2440
|
var T = w;
|
|
2441
2441
|
typeof T.transform == "function" && (s === r && (s = xe({}, s)), l = s[u] = T.transform(l)), typeof T == "function" ? T = {
|
|
2442
2442
|
validator: T
|
|
2443
|
-
} : T = xe({}, T), T.validator = a.getValidationMethod(T), T.validator && (T.field = u, T.fullField = T.fullField || u, T.type = a.getType(T),
|
|
2443
|
+
} : T = xe({}, T), T.validator = a.getValidationMethod(T), T.validator && (T.field = u, T.fullField = T.fullField || u, T.type = a.getType(T), v[u] = v[u] || [], v[u].push({
|
|
2444
2444
|
rule: T,
|
|
2445
2445
|
value: l,
|
|
2446
2446
|
source: s,
|
|
@@ -2449,7 +2449,7 @@ var Gt = Kt(), ct = /* @__PURE__ */ (function() {
|
|
|
2449
2449
|
});
|
|
2450
2450
|
});
|
|
2451
2451
|
var h = {};
|
|
2452
|
-
return zu(
|
|
2452
|
+
return zu(v, c, function(u, m) {
|
|
2453
2453
|
var l = u.rule, w = (l.type === "object" || l.type === "array") && (typeof l.fields == "object" || typeof l.defaultField == "object");
|
|
2454
2454
|
w = w && (l.required || !l.required && u.value), l.field = u.field;
|
|
2455
2455
|
function T(y, $) {
|
|
@@ -2570,7 +2570,7 @@ const pc = [
|
|
|
2570
2570
|
values: fn
|
|
2571
2571
|
}
|
|
2572
2572
|
}), tr = "ElLabelWrap";
|
|
2573
|
-
var
|
|
2573
|
+
var gc = N({
|
|
2574
2574
|
name: tr,
|
|
2575
2575
|
props: {
|
|
2576
2576
|
isAutoWidth: Boolean,
|
|
@@ -2599,7 +2599,7 @@ var vc = N({
|
|
|
2599
2599
|
c("remove");
|
|
2600
2600
|
}), xo(() => f()), ae(a, (d, p) => {
|
|
2601
2601
|
e.updateAll && n?.registerLabelWidth(d, p);
|
|
2602
|
-
}), Rr(
|
|
2602
|
+
}), Rr(g(() => {
|
|
2603
2603
|
var d, p;
|
|
2604
2604
|
return (p = (d = i.value) == null ? void 0 : d.firstElementChild) != null ? p : null;
|
|
2605
2605
|
}), f), () => {
|
|
@@ -2607,9 +2607,9 @@ var vc = N({
|
|
|
2607
2607
|
if (!t)
|
|
2608
2608
|
return null;
|
|
2609
2609
|
const {
|
|
2610
|
-
isAutoWidth:
|
|
2610
|
+
isAutoWidth: v
|
|
2611
2611
|
} = e;
|
|
2612
|
-
if (
|
|
2612
|
+
if (v) {
|
|
2613
2613
|
const _ = n?.autoLabelWidth, h = r?.hasLabel, u = {};
|
|
2614
2614
|
if (h && _ && _ !== "auto") {
|
|
2615
2615
|
const m = Math.max(0, Number.parseInt(_, 10) - a.value), w = (r.labelPosition || n.labelPosition) === "left" ? "marginRight" : "marginLeft";
|
|
@@ -2627,19 +2627,19 @@ var vc = N({
|
|
|
2627
2627
|
};
|
|
2628
2628
|
}
|
|
2629
2629
|
});
|
|
2630
|
-
const
|
|
2630
|
+
const vc = ["role", "aria-labelledby"], hc = N({
|
|
2631
2631
|
name: "ElFormItem",
|
|
2632
2632
|
__name: "form-item",
|
|
2633
2633
|
props: mc,
|
|
2634
2634
|
setup(e, { expose: t }) {
|
|
2635
|
-
const n = e, r = To(), o = K($t, void 0), i = K(bt, void 0), a = Jr(void 0, { formItem: !1 }), s = he("form-item"), c = hu().value, f = P([]), d = P(""), p = Al(d, 100),
|
|
2635
|
+
const n = e, r = To(), o = K($t, void 0), i = K(bt, void 0), a = Jr(void 0, { formItem: !1 }), s = he("form-item"), c = hu().value, f = P([]), d = P(""), p = Al(d, 100), v = P(""), _ = P();
|
|
2636
2636
|
let h, u = !1;
|
|
2637
|
-
const m =
|
|
2637
|
+
const m = g(
|
|
2638
2638
|
() => n.labelPosition || o?.labelPosition
|
|
2639
|
-
), l =
|
|
2639
|
+
), l = g(() => {
|
|
2640
2640
|
var b;
|
|
2641
2641
|
return m.value === "top" ? {} : { width: ot((b = n.labelWidth) != null ? b : o?.labelWidth) };
|
|
2642
|
-
}), w =
|
|
2642
|
+
}), w = g(() => {
|
|
2643
2643
|
var b;
|
|
2644
2644
|
if (m.value === "top" || o?.inline)
|
|
2645
2645
|
return {};
|
|
@@ -2647,7 +2647,7 @@ const gc = ["role", "aria-labelledby"], hc = N({
|
|
|
2647
2647
|
return {};
|
|
2648
2648
|
const F = ot((b = n.labelWidth) != null ? b : o?.labelWidth);
|
|
2649
2649
|
return !n.label && !r.label ? { marginLeft: F } : {};
|
|
2650
|
-
}), T =
|
|
2650
|
+
}), T = g(() => [
|
|
2651
2651
|
s.b(),
|
|
2652
2652
|
s.m(a.value),
|
|
2653
2653
|
s.is("error", d.value === "error"),
|
|
@@ -2660,19 +2660,19 @@ const gc = ["role", "aria-labelledby"], hc = N({
|
|
|
2660
2660
|
[s.m("feedback")]: o?.statusIcon,
|
|
2661
2661
|
[s.m(`label-${m.value}`)]: m.value
|
|
2662
2662
|
}
|
|
2663
|
-
]), E =
|
|
2663
|
+
]), E = g(
|
|
2664
2664
|
() => Xe(n.inlineMessage) ? n.inlineMessage : o?.inlineMessage || !1
|
|
2665
|
-
), q =
|
|
2665
|
+
), q = g(() => [
|
|
2666
2666
|
s.e("error"),
|
|
2667
2667
|
{ [s.em("error", "inline")]: E.value }
|
|
2668
|
-
]), y =
|
|
2668
|
+
]), y = g(() => n.prop ? et(n.prop) ? n.prop.join(".") : n.prop : ""), $ = g(() => !!(n.label || r.label)), C = g(() => {
|
|
2669
2669
|
var b;
|
|
2670
2670
|
return (b = n.for) != null ? b : f.value.length === 1 ? f.value[0] : void 0;
|
|
2671
|
-
}), k =
|
|
2671
|
+
}), k = g(() => !C.value && $.value), X = !!i, J = g(() => {
|
|
2672
2672
|
const b = o?.model;
|
|
2673
2673
|
if (!(!b || !n.prop))
|
|
2674
2674
|
return mt(b, n.prop).value;
|
|
2675
|
-
}), R =
|
|
2675
|
+
}), R = g(() => {
|
|
2676
2676
|
const { required: b } = n, F = [];
|
|
2677
2677
|
n.rules && F.push(...Nt(n.rules));
|
|
2678
2678
|
const z = o?.rules;
|
|
@@ -2692,24 +2692,24 @@ const gc = ["role", "aria-labelledby"], hc = N({
|
|
|
2692
2692
|
F.push({ required: b });
|
|
2693
2693
|
}
|
|
2694
2694
|
return F;
|
|
2695
|
-
}), O =
|
|
2695
|
+
}), O = g(() => R.value.length > 0), ue = (b) => R.value.filter((z) => !z.trigger || !b ? !0 : et(z.trigger) ? z.trigger.includes(b) : z.trigger === b).map(({ trigger: z, ...B }) => B), Ot = g(
|
|
2696
2696
|
() => R.value.some((b) => b.required)
|
|
2697
|
-
), fo =
|
|
2697
|
+
), fo = g(
|
|
2698
2698
|
() => {
|
|
2699
2699
|
var b;
|
|
2700
2700
|
return p.value === "error" && n.showMessage && ((b = o?.showMessage) != null ? b : !0);
|
|
2701
2701
|
}
|
|
2702
|
-
), pn =
|
|
2702
|
+
), pn = g(
|
|
2703
2703
|
() => `${n.label || ""}${o?.labelSuffix || ""}`
|
|
2704
2704
|
), Pe = (b) => {
|
|
2705
2705
|
d.value = b;
|
|
2706
2706
|
}, po = (b) => {
|
|
2707
2707
|
var F, z;
|
|
2708
2708
|
const { errors: B, fields: oe } = b;
|
|
2709
|
-
(!B || !oe) && console.error(b), Pe("error"),
|
|
2709
|
+
(!B || !oe) && console.error(b), Pe("error"), v.value = B ? (z = (F = B?.[0]) == null ? void 0 : F.message) != null ? z : `${n.prop} is required` : "", o?.emit("validate", n.prop, !1, v.value);
|
|
2710
2710
|
}, mo = () => {
|
|
2711
2711
|
Pe("success"), o?.emit("validate", n.prop, !0, "");
|
|
2712
|
-
},
|
|
2712
|
+
}, go = async (b) => {
|
|
2713
2713
|
const F = y.value;
|
|
2714
2714
|
return new ct({
|
|
2715
2715
|
[F]: b
|
|
@@ -2721,29 +2721,29 @@ const gc = ["role", "aria-labelledby"], hc = N({
|
|
|
2721
2721
|
if (!O.value)
|
|
2722
2722
|
return F?.(!1), !1;
|
|
2723
2723
|
const B = ue(b);
|
|
2724
|
-
return B.length === 0 ? (F?.(!0), !0) : (Pe("validating"),
|
|
2724
|
+
return B.length === 0 ? (F?.(!0), !0) : (Pe("validating"), go(B).then(() => (F?.(!0), !0)).catch((oe) => {
|
|
2725
2725
|
const { fields: Ve } = oe;
|
|
2726
2726
|
return F?.(!1, Ve), z ? !1 : Promise.reject(Ve);
|
|
2727
2727
|
}));
|
|
2728
2728
|
}, St = () => {
|
|
2729
|
-
Pe(""),
|
|
2730
|
-
},
|
|
2729
|
+
Pe(""), v.value = "", u = !1;
|
|
2730
|
+
}, gn = async () => {
|
|
2731
2731
|
const b = o?.model;
|
|
2732
2732
|
if (!b || !n.prop)
|
|
2733
2733
|
return;
|
|
2734
2734
|
const F = mt(b, n.prop);
|
|
2735
2735
|
u = !0, F.value = Ft(h), await Ht(), St(), u = !1;
|
|
2736
|
-
},
|
|
2736
|
+
}, vo = (b) => {
|
|
2737
2737
|
f.value.includes(b) || f.value.push(b);
|
|
2738
2738
|
}, ho = (b) => {
|
|
2739
2739
|
f.value = f.value.filter((F) => F !== b);
|
|
2740
|
-
},
|
|
2740
|
+
}, vn = (b) => {
|
|
2741
2741
|
h = Ft(b);
|
|
2742
2742
|
};
|
|
2743
2743
|
ae(
|
|
2744
2744
|
() => n.error,
|
|
2745
2745
|
(b) => {
|
|
2746
|
-
|
|
2746
|
+
v.value = b || "", Pe(b ? "error" : "");
|
|
2747
2747
|
},
|
|
2748
2748
|
{ immediate: !0 }
|
|
2749
2749
|
), ae(
|
|
@@ -2754,20 +2754,20 @@ const gc = ["role", "aria-labelledby"], hc = N({
|
|
|
2754
2754
|
...lr(n),
|
|
2755
2755
|
$el: _,
|
|
2756
2756
|
size: a,
|
|
2757
|
-
validateMessage:
|
|
2757
|
+
validateMessage: v,
|
|
2758
2758
|
validateState: d,
|
|
2759
2759
|
labelId: c,
|
|
2760
2760
|
inputIds: f,
|
|
2761
2761
|
isGroup: k,
|
|
2762
2762
|
hasLabel: $,
|
|
2763
2763
|
fieldValue: J,
|
|
2764
|
-
addInputId:
|
|
2764
|
+
addInputId: vo,
|
|
2765
2765
|
removeInputId: ho,
|
|
2766
|
-
resetField:
|
|
2766
|
+
resetField: gn,
|
|
2767
2767
|
clearValidate: St,
|
|
2768
2768
|
validate: mn,
|
|
2769
2769
|
propString: y,
|
|
2770
|
-
setInitialValue:
|
|
2770
|
+
setInitialValue: vn
|
|
2771
2771
|
});
|
|
2772
2772
|
return st(bt, Et), it(() => {
|
|
2773
2773
|
n.prop && (o?.addField(Et), h = Ft(J.value));
|
|
@@ -2775,12 +2775,12 @@ const gc = ["role", "aria-labelledby"], hc = N({
|
|
|
2775
2775
|
o?.removeField(Et);
|
|
2776
2776
|
}), t({
|
|
2777
2777
|
size: a,
|
|
2778
|
-
validateMessage:
|
|
2778
|
+
validateMessage: v,
|
|
2779
2779
|
validateState: d,
|
|
2780
2780
|
validate: mn,
|
|
2781
2781
|
clearValidate: St,
|
|
2782
|
-
resetField:
|
|
2783
|
-
setInitialValue:
|
|
2782
|
+
resetField: gn,
|
|
2783
|
+
setInitialValue: vn
|
|
2784
2784
|
}), (b, F) => {
|
|
2785
2785
|
var z;
|
|
2786
2786
|
return I(), M("div", {
|
|
@@ -2790,7 +2790,7 @@ const gc = ["role", "aria-labelledby"], hc = N({
|
|
|
2790
2790
|
role: k.value ? "group" : void 0,
|
|
2791
2791
|
"aria-labelledby": k.value ? x(c) : void 0
|
|
2792
2792
|
}, [
|
|
2793
|
-
L(x(
|
|
2793
|
+
L(x(gc), {
|
|
2794
2794
|
"is-auto-width": l.value.width === "auto",
|
|
2795
2795
|
"update-all": ((z = x(o)) == null ? void 0 : z.labelWidth) === "auto"
|
|
2796
2796
|
}, {
|
|
@@ -2805,7 +2805,7 @@ const gc = ["role", "aria-labelledby"], hc = N({
|
|
|
2805
2805
|
default: U(() => [
|
|
2806
2806
|
ne(b.$slots, "label", { label: pn.value }, () => [
|
|
2807
2807
|
ke(
|
|
2808
|
-
|
|
2808
|
+
vt(pn.value),
|
|
2809
2809
|
1
|
|
2810
2810
|
)
|
|
2811
2811
|
])
|
|
@@ -2829,14 +2829,14 @@ const gc = ["role", "aria-labelledby"], hc = N({
|
|
|
2829
2829
|
default: U(() => [
|
|
2830
2830
|
fo.value ? ne(b.$slots, "error", {
|
|
2831
2831
|
key: 0,
|
|
2832
|
-
error:
|
|
2832
|
+
error: v.value
|
|
2833
2833
|
}, () => [
|
|
2834
2834
|
H(
|
|
2835
2835
|
"div",
|
|
2836
2836
|
{
|
|
2837
2837
|
class: Z(q.value)
|
|
2838
2838
|
},
|
|
2839
|
-
|
|
2839
|
+
vt(v.value),
|
|
2840
2840
|
3
|
|
2841
2841
|
)
|
|
2842
2842
|
]) : De("v-if", !0)
|
|
@@ -2846,7 +2846,7 @@ const gc = ["role", "aria-labelledby"], hc = N({
|
|
|
2846
2846
|
],
|
|
2847
2847
|
6
|
|
2848
2848
|
)
|
|
2849
|
-
], 10,
|
|
2849
|
+
], 10, vc);
|
|
2850
2850
|
};
|
|
2851
2851
|
}
|
|
2852
2852
|
});
|
|
@@ -2883,14 +2883,14 @@ const yc = ut(Nu, {
|
|
|
2883
2883
|
__name: "row",
|
|
2884
2884
|
props: xc,
|
|
2885
2885
|
setup(e) {
|
|
2886
|
-
const t = e, n = he("row"), r =
|
|
2886
|
+
const t = e, n = he("row"), r = g(() => t.gutter);
|
|
2887
2887
|
st(Xr, {
|
|
2888
2888
|
gutter: r
|
|
2889
2889
|
});
|
|
2890
|
-
const o =
|
|
2890
|
+
const o = g(() => {
|
|
2891
2891
|
const a = {};
|
|
2892
2892
|
return t.gutter && (a.marginRight = a.marginLeft = `-${t.gutter / 2}px`), a;
|
|
2893
|
-
}), i =
|
|
2893
|
+
}), i = g(() => [
|
|
2894
2894
|
n.b(),
|
|
2895
2895
|
n.is(`justify-${t.justify}`, t.justify !== "start"),
|
|
2896
2896
|
n.is(`align-${t.align}`, !!t.align)
|
|
@@ -3021,18 +3021,18 @@ const nr = ut($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: c } = Hl("message"), { currentZIndex: f, nextZIndex: d } = c, p = P(),
|
|
3024
|
+
const { Close: r } = pu, o = e, i = n, a = P(!1), { ns: s, zIndex: c } = Hl("message"), { currentZIndex: f, nextZIndex: d } = c, p = P(), v = P(!1), _ = P(0);
|
|
3025
3025
|
let h;
|
|
3026
|
-
const u =
|
|
3026
|
+
const u = g(
|
|
3027
3027
|
() => o.type ? o.type === "error" ? "danger" : o.type : "info"
|
|
3028
|
-
), m =
|
|
3028
|
+
), m = g(() => {
|
|
3029
3029
|
const O = o.type;
|
|
3030
3030
|
return { [s.bm("icon", O)]: O && Yn[O] };
|
|
3031
|
-
}), l =
|
|
3031
|
+
}), l = g(
|
|
3032
3032
|
() => o.icon || Yn[o.type] || ""
|
|
3033
|
-
), w =
|
|
3033
|
+
), w = g(() => o.placement || Re), T = g(() => Cc(o.id, w.value)), E = g(() => Fc(o.id, o.offset, w.value) + T.value), q = g(() => _.value + E.value), y = g(() => w.value.includes("left") ? s.is("left") : w.value.includes("right") ? s.is("right") : s.is("center")), $ = g(
|
|
3034
3034
|
() => w.value.startsWith("top") ? "top" : "bottom"
|
|
3035
|
-
), C =
|
|
3035
|
+
), C = g(() => ({
|
|
3036
3036
|
[$.value]: `${E.value}px`,
|
|
3037
3037
|
zIndex: f.value
|
|
3038
3038
|
}));
|
|
@@ -3045,7 +3045,7 @@ const nr = ut($c), no = [
|
|
|
3045
3045
|
h?.();
|
|
3046
3046
|
}
|
|
3047
3047
|
function J() {
|
|
3048
|
-
|
|
3048
|
+
v.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 = ut($c), no = [
|
|
|
3054
3054
|
bu(O) === Bt.esc && J();
|
|
3055
3055
|
}
|
|
3056
3056
|
return it(() => {
|
|
3057
|
-
k(), d(),
|
|
3057
|
+
k(), d(), v.value = !0;
|
|
3058
3058
|
}), ae(
|
|
3059
3059
|
() => o.repeatNum,
|
|
3060
3060
|
() => {
|
|
@@ -3063,7 +3063,7 @@ const nr = ut($c), no = [
|
|
|
3063
3063
|
), Vl(document, "keydown", R), Rr(p, () => {
|
|
3064
3064
|
_.value = p.value.getBoundingClientRect().height;
|
|
3065
3065
|
}), t({
|
|
3066
|
-
visible:
|
|
3066
|
+
visible: v,
|
|
3067
3067
|
bottom: q,
|
|
3068
3068
|
close: J
|
|
3069
3069
|
}), (O, ue) => (I(), te(ar, {
|
|
@@ -3125,7 +3125,7 @@ const nr = ut($c), no = [
|
|
|
3125
3125
|
key: 0,
|
|
3126
3126
|
class: Z(x(s).e("content"))
|
|
3127
3127
|
},
|
|
3128
|
-
|
|
3128
|
+
vt(O.message),
|
|
3129
3129
|
3
|
|
3130
3130
|
))
|
|
3131
3131
|
]),
|
|
@@ -3140,7 +3140,7 @@ const nr = ut($c), no = [
|
|
|
3140
3140
|
_: 1
|
|
3141
3141
|
}, 8, ["class"])) : De("v-if", !0)
|
|
3142
3142
|
], 46, jc), [
|
|
3143
|
-
[sr,
|
|
3143
|
+
[sr, v.value]
|
|
3144
3144
|
])
|
|
3145
3145
|
]),
|
|
3146
3146
|
_: 3
|
|
@@ -3152,7 +3152,7 @@ let Nc = 1;
|
|
|
3152
3152
|
const Lc = (e) => {
|
|
3153
3153
|
if (!e.appendTo)
|
|
3154
3154
|
e.appendTo = document.body;
|
|
3155
|
-
else if (
|
|
3155
|
+
else if (ge(e.appendTo)) {
|
|
3156
3156
|
let n = document.querySelector(e.appendTo);
|
|
3157
3157
|
$l(n) || (Q(
|
|
3158
3158
|
"ElMessage",
|
|
@@ -3160,12 +3160,12 @@ const Lc = (e) => {
|
|
|
3160
3160
|
), n = document.body), e.appendTo = n;
|
|
3161
3161
|
}
|
|
3162
3162
|
}, Mc = (e) => {
|
|
3163
|
-
!e.placement &&
|
|
3163
|
+
!e.placement && ge(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
|
-
const t = !e ||
|
|
3168
|
+
const t = !e || ge(e) || dr(e) || ze(e) ? { message: e } : e, n = {
|
|
3169
3169
|
...G,
|
|
3170
3170
|
...t
|
|
3171
3171
|
};
|
|
@@ -3260,9 +3260,9 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
|
|
|
3260
3260
|
data: {}
|
|
3261
3261
|
},
|
|
3262
3262
|
setup(e) {
|
|
3263
|
-
const t = e, n = me(t, "modelValue"), r =
|
|
3264
|
-
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, maxlength: f, minlength: d, showWordLimit: p, type:
|
|
3265
|
-
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, maxlength: f, minlength: d, showWordLimit: p, type:
|
|
3263
|
+
const t = e, n = me(t, "modelValue"), r = g(() => {
|
|
3264
|
+
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, maxlength: f, minlength: d, showWordLimit: p, type: v, initValue: _ } = t.data;
|
|
3265
|
+
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, maxlength: f, minlength: d, showWordLimit: p, type: v, initValue: _ };
|
|
3266
3266
|
});
|
|
3267
3267
|
return (o, i) => {
|
|
3268
3268
|
const a = ie("el-input");
|
|
@@ -3287,10 +3287,10 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
|
|
|
3287
3287
|
data: {}
|
|
3288
3288
|
},
|
|
3289
3289
|
setup(e) {
|
|
3290
|
-
const t = e, n = K("dictList"), r = me(t, "modelValue"), o =
|
|
3291
|
-
const { clearable: a, disabled: s, required: c, readonly: f, placeholder: d, options: p = [], multiple:
|
|
3292
|
-
return { clearable: a, disabled: s, required: c, readonly: f, placeholder: d, options: p, multiple:
|
|
3293
|
-
}), i =
|
|
3290
|
+
const t = e, n = K("dictList"), r = me(t, "modelValue"), o = g(() => {
|
|
3291
|
+
const { clearable: a, disabled: s, required: c, readonly: f, placeholder: d, options: p = [], mergeOptions: v = [], multiple: _, multipleLimit: h, initValue: u } = t.data;
|
|
3292
|
+
return { clearable: a, disabled: s, required: c, readonly: f, placeholder: d, options: p, mergeOptions: v, multiple: _, multipleLimit: h, initValue: u };
|
|
3293
|
+
}), i = g(() => n && t.data.dictId ? t.data.dictId === "all" ? n.map((a) => (a.value = a.id, a)) || [] : [...n.find((s) => s.id === t.data.dictId)?.children || [], ...o.value.mergeOptions] : o.value.options && o.value.options.length > 0 ? o.value.options : []);
|
|
3294
3294
|
return (a, s) => {
|
|
3295
3295
|
const c = ie("el-option"), f = ie("el-select");
|
|
3296
3296
|
return I(), M("div", Uc, [
|
|
@@ -3311,7 +3311,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
|
|
|
3311
3311
|
]);
|
|
3312
3312
|
};
|
|
3313
3313
|
}
|
|
3314
|
-
}), io = /* @__PURE__ */ _e(Kc, [["__scopeId", "data-v-
|
|
3314
|
+
}), io = /* @__PURE__ */ _e(Kc, [["__scopeId", "data-v-60bd2dd9"]]), Gc = { class: "item-content" }, Yc = /* @__PURE__ */ N({
|
|
3315
3315
|
name: "NumberItem",
|
|
3316
3316
|
__name: "number",
|
|
3317
3317
|
props: {
|
|
@@ -3319,9 +3319,9 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
|
|
|
3319
3319
|
data: {}
|
|
3320
3320
|
},
|
|
3321
3321
|
setup(e) {
|
|
3322
|
-
const t = e, n = me(t, "modelValue"), r =
|
|
3323
|
-
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, min: f, max: d, step: p, precision:
|
|
3324
|
-
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, min: f, max: d, step: p, precision:
|
|
3322
|
+
const t = e, n = me(t, "modelValue"), r = g(() => {
|
|
3323
|
+
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, min: f, max: d, step: p, precision: v, controls: _, initValue: h } = t.data;
|
|
3324
|
+
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, min: f, max: d, step: p, precision: v, controls: _, initValue: h };
|
|
3325
3325
|
});
|
|
3326
3326
|
return (o, i) => {
|
|
3327
3327
|
const a = ie("el-input-number");
|
|
@@ -3341,9 +3341,9 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
|
|
|
3341
3341
|
data: {}
|
|
3342
3342
|
},
|
|
3343
3343
|
setup(e) {
|
|
3344
|
-
const t = e, n = me(t, "modelValue"), r =
|
|
3345
|
-
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, loading: f, width: d, activeText: p, inactiveText:
|
|
3346
|
-
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, loading: f, width: d, activeText: p, inactiveText:
|
|
3344
|
+
const t = e, n = me(t, "modelValue"), r = g(() => {
|
|
3345
|
+
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, loading: f, width: d, activeText: p, inactiveText: v, activeValue: _, inactiveValue: h, initValue: u } = t.data;
|
|
3346
|
+
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, loading: f, width: d, activeText: p, inactiveText: v, activeValue: _, inactiveValue: h, initValue: u };
|
|
3347
3347
|
});
|
|
3348
3348
|
return (o, i) => {
|
|
3349
3349
|
const a = ie("el-switch");
|
|
@@ -3363,9 +3363,9 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
|
|
|
3363
3363
|
data: {}
|
|
3364
3364
|
},
|
|
3365
3365
|
setup(e) {
|
|
3366
|
-
const t = e, n = me(t, "modelValue"), r =
|
|
3367
|
-
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, type: f, defaultValue: d, defaultTime: p, dateFormat:
|
|
3368
|
-
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, type: f, defaultValue: d, defaultTime: p, dateFormat:
|
|
3366
|
+
const t = e, n = me(t, "modelValue"), r = g(() => {
|
|
3367
|
+
const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, type: f, defaultValue: d, defaultTime: p, dateFormat: v, timeFormat: _, valueFormat: h = "YYYY-MM-DDTHH:mm:ss[Z]", initValue: u } = t.data;
|
|
3368
|
+
return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, type: f, defaultValue: d, defaultTime: p, dateFormat: v, timeFormat: _, valueFormat: h, initValue: u };
|
|
3369
3369
|
});
|
|
3370
3370
|
return (o, i) => {
|
|
3371
3371
|
const a = ie("el-date-picker");
|
|
@@ -3385,10 +3385,10 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
|
|
|
3385
3385
|
data: {}
|
|
3386
3386
|
},
|
|
3387
3387
|
setup(e) {
|
|
3388
|
-
const t = e, n = K("dictList"), r = me(t, "modelValue"), o =
|
|
3389
|
-
const { clearable: a, disabled: s, required: c, readonly: f, placeholder: d, options: p, border:
|
|
3390
|
-
return { clearable: a, disabled: s, required: c, readonly: f, placeholder: d, options: p, border:
|
|
3391
|
-
}), i =
|
|
3388
|
+
const t = e, n = K("dictList"), r = me(t, "modelValue"), o = g(() => {
|
|
3389
|
+
const { clearable: a, disabled: s, required: c, readonly: f, placeholder: d, options: p, mergeOptions: v = [], border: _, textColor: h, fill: u, type: m, initValue: l } = t.data;
|
|
3390
|
+
return { clearable: a, disabled: s, required: c, readonly: f, placeholder: d, options: p, mergeOptions: v, border: _, textColor: h, fill: u, type: m, initValue: l };
|
|
3391
|
+
}), i = g(() => n && t.data.dictId ? t.data.dictId === "all" ? n.map((a) => (a.value = a.id, a)) || [] : [...n.find((s) => s.id === t.data.dictId)?.children || [], ...o.value.mergeOptions] : o.value.options && o.value.options.length > 0 ? o.value.options : []);
|
|
3392
3392
|
return (a, s) => {
|
|
3393
3393
|
const c = ie("el-radio"), f = ie("el-radio-group");
|
|
3394
3394
|
return I(), M("div", Qc, [
|
|
@@ -3410,7 +3410,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
|
|
|
3410
3410
|
]);
|
|
3411
3411
|
};
|
|
3412
3412
|
}
|
|
3413
|
-
}), co = /* @__PURE__ */ _e(ed, [["__scopeId", "data-v-
|
|
3413
|
+
}), co = /* @__PURE__ */ _e(ed, [["__scopeId", "data-v-cd2576b5"]]), td = { class: "fj-form-container" }, nd = /* @__PURE__ */ N({
|
|
3414
3414
|
name: "FjForm",
|
|
3415
3415
|
__name: "index",
|
|
3416
3416
|
props: {
|
|
@@ -3442,7 +3442,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
|
|
|
3442
3442
|
});
|
|
3443
3443
|
}
|
|
3444
3444
|
function d(l) {
|
|
3445
|
-
return l.formType === "block" ? p(l) :
|
|
3445
|
+
return l.formType === "block" ? p(l) : v(l);
|
|
3446
3446
|
}
|
|
3447
3447
|
function p(l) {
|
|
3448
3448
|
return W(Hn, { span: 24 }, {
|
|
@@ -3453,7 +3453,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
|
|
|
3453
3453
|
})
|
|
3454
3454
|
});
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3456
|
+
function v(l) {
|
|
3457
3457
|
return W(Hn, { xs: 24, sm: 24, md: l.span, lg: l.span, xl: 12 }, {
|
|
3458
3458
|
default: () => W("div", { class: "fj-form-item" }, {
|
|
3459
3459
|
default: () => [W(bc, { prop: l.key, rules: l.rules, label: l.label, style: "width: 100%" }, {
|
|
@@ -3909,12 +3909,13 @@ class ud extends Ae {
|
|
|
3909
3909
|
class cd extends Ae {
|
|
3910
3910
|
formType = "select";
|
|
3911
3911
|
options;
|
|
3912
|
+
mergeOptions;
|
|
3912
3913
|
multiple;
|
|
3913
3914
|
multipleLimit;
|
|
3914
3915
|
placeholder = "请选择";
|
|
3915
3916
|
initValue = "";
|
|
3916
3917
|
constructor(t) {
|
|
3917
|
-
super(t), this.options = t.options || [], this.multiple = t.multiple || !1, this.multipleLimit = t.multipleLimit || 1024, this.placeholder = `请选择${t.key}`;
|
|
3918
|
+
super(t), this.options = t.options || [], this.mergeOptions = t.mergeOptions || [], this.multiple = t.multiple || !1, this.multipleLimit = t.multipleLimit || 1024, this.placeholder = `请选择${t.key}`;
|
|
3918
3919
|
}
|
|
3919
3920
|
}
|
|
3920
3921
|
class dd extends Ae {
|
|
@@ -3946,16 +3947,17 @@ class fd extends Ae {
|
|
|
3946
3947
|
class pd extends Ae {
|
|
3947
3948
|
formType = "radio";
|
|
3948
3949
|
options = [];
|
|
3950
|
+
mergeOptions = [];
|
|
3949
3951
|
border = !0;
|
|
3950
3952
|
textColor;
|
|
3951
3953
|
fill;
|
|
3952
3954
|
type;
|
|
3953
3955
|
initValue = "";
|
|
3954
3956
|
constructor(t) {
|
|
3955
|
-
super(t), this.options = t.options || [], this.border = t.border || !0, this.textColor = t.textColor, this.fill = t.fill, this.type = t.type || "button", this.placeholder = `请选择${t.key}`;
|
|
3957
|
+
super(t), this.options = t.options || [], this.mergeOptions = t.mergeOptions || [], this.border = t.border || !0, this.textColor = t.textColor, this.fill = t.fill, this.type = t.type || "button", this.placeholder = `请选择${t.key}`;
|
|
3956
3958
|
}
|
|
3957
3959
|
}
|
|
3958
|
-
const md = { class: "edit-container" },
|
|
3960
|
+
const md = { class: "edit-container" }, gd = { class: "aside" }, vd = { class: "form" }, hd = { class: "btn-content" }, yd = { class: "section" }, bd = { class: "main" }, _d = { class: "footer" }, wd = /* @__PURE__ */ N({
|
|
3959
3961
|
name: "EditComp",
|
|
3960
3962
|
__name: "index",
|
|
3961
3963
|
props: {
|
|
@@ -4000,7 +4002,7 @@ const md = { class: "edit-container" }, vd = { class: "aside" }, gd = { class: "
|
|
|
4000
4002
|
console.log(l), u[0].children = l, r.value = u, delete m[h.key], o.value = m;
|
|
4001
4003
|
}
|
|
4002
4004
|
}
|
|
4003
|
-
function
|
|
4005
|
+
function v() {
|
|
4004
4006
|
console.log("%c 配置信息 CONFIG ", "color: lime"), console.log(JSON.stringify(r.value, null, " ")), console.log("%c 配置信息 DATA :", "color: orange"), console.log(JSON.stringify(o.value, null, " "));
|
|
4005
4007
|
}
|
|
4006
4008
|
function _() {
|
|
@@ -4009,8 +4011,8 @@ const md = { class: "edit-container" }, vd = { class: "aside" }, gd = { class: "
|
|
|
4009
4011
|
return (h, u) => {
|
|
4010
4012
|
const m = ie("el-button"), l = ie("el-button-group");
|
|
4011
4013
|
return I(), M("div", md, [
|
|
4012
|
-
H("div",
|
|
4013
|
-
H("div",
|
|
4014
|
+
H("div", gd, [
|
|
4015
|
+
H("div", vd, [
|
|
4014
4016
|
L(x(Yt), {
|
|
4015
4017
|
config: r.value,
|
|
4016
4018
|
"onUpdate:config": u[0] || (u[0] = (w) => r.value = w),
|
|
@@ -4065,7 +4067,7 @@ const md = { class: "edit-container" }, vd = { class: "aside" }, gd = { class: "
|
|
|
4065
4067
|
}),
|
|
4066
4068
|
L(m, {
|
|
4067
4069
|
type: "warning",
|
|
4068
|
-
onClick:
|
|
4070
|
+
onClick: v
|
|
4069
4071
|
}, {
|
|
4070
4072
|
default: U(() => [...u[6] || (u[6] = [
|
|
4071
4073
|
ke("打印", -1)
|