fj-form 0.0.23 → 0.0.24

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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance as ge, inject as J, ref as P, computed as y, unref as _, watch as ie, shallowRef as Oe, watchEffect as _o, readonly as ar, getCurrentScope as wo, onScopeDispose as xo, onMounted as Ke, isRef as pe, warn as To, provide as _t, defineComponent as k, openBlock as $, createElementBlock as E, mergeProps as je, renderSlot as re, createElementVNode as B, normalizeClass as H, createVNode as L, Transition as ir, withCtx as M, withDirectives as sr, normalizeStyle as ze, createTextVNode as fe, toDisplayString as se, vShow as lr, createBlock as X, resolveDynamicComponent as lt, reactive as Pt, toRefs as ur, onBeforeUnmount as cr, onUpdated as $o, Fragment as wt, nextTick as Jt, useSlots as dr, createCommentVNode as Se, TransitionGroup as Oo, shallowReactive as fr, withModifiers as So, isVNode as pr, render as hn, useModel as ye, resolveComponent as Q, createSlots as Io, renderList as mr, h as U } from "vue";
1
+ import { getCurrentInstance as ge, inject as J, ref as P, computed as y, unref as _, watch as ie, shallowRef as Oe, watchEffect as _o, readonly as ar, getCurrentScope as wo, onScopeDispose as xo, onMounted as Ke, isRef as pe, warn as To, provide as _t, defineComponent as k, openBlock as O, createElementBlock as E, mergeProps as je, renderSlot as re, createElementVNode as B, normalizeClass as H, createVNode as L, Transition as ir, withCtx as M, withDirectives as sr, normalizeStyle as ze, createTextVNode as fe, toDisplayString as se, vShow as lr, createBlock as X, resolveDynamicComponent as lt, reactive as Pt, toRefs as ur, onBeforeUnmount as cr, onUpdated as $o, Fragment as wt, nextTick as Jt, useSlots as dr, createCommentVNode as Se, TransitionGroup as Oo, shallowReactive as fr, withModifiers as So, isVNode as pr, render as hn, useModel as ye, resolveComponent as Q, createSlots as Io, renderList as mr, h as U } from "vue";
2
2
  const vr = /* @__PURE__ */ Symbol(), mt = "el", Co = "is-", $e = (e, t, n, r, o) => {
3
3
  let i = `${e}-${t}`;
4
4
  return n && (i += `-${n}`), r && (i += `__${r}`), o && (i += `--${o}`), i;
@@ -15,22 +15,22 @@ const vr = /* @__PURE__ */ Symbol(), mt = "el", Co = "is-", $e = (e, t, n, r, o)
15
15
  be: (f, v) => f && v ? $e(n.value, e, f, v, "") : "",
16
16
  em: (f, v) => f && v ? $e(n.value, e, "", f, v) : "",
17
17
  bm: (f, v) => f && v ? $e(n.value, e, f, "", v) : "",
18
- bem: (f, v, d) => f && v && d ? $e(n.value, e, f, v, d) : "",
18
+ bem: (f, v, u) => f && v && u ? $e(n.value, e, f, v, u) : "",
19
19
  is: (f, ...v) => {
20
- const d = v.length >= 1 ? v[0] : !0;
21
- return f && d ? `${Co}${f}` : "";
20
+ const u = v.length >= 1 ? v[0] : !0;
21
+ return f && u ? `${Co}${f}` : "";
22
22
  },
23
23
  cssVar: (f) => {
24
24
  const v = {};
25
- for (const d in f)
26
- f[d] && (v[`--${n.value}-${d}`] = f[d]);
25
+ for (const u in f)
26
+ f[u] && (v[`--${n.value}-${u}`] = f[u]);
27
27
  return v;
28
28
  },
29
29
  cssVarName: (f) => `--${n.value}-${f}`,
30
30
  cssVarBlock: (f) => {
31
31
  const v = {};
32
- for (const d in f)
33
- f[d] && (v[`--${n.value}-${e}-${d}`] = f[d]);
32
+ for (const u in f)
33
+ f[u] && (v[`--${n.value}-${e}-${u}`] = f[u]);
34
34
  return v;
35
35
  },
36
36
  cssVarBlockName: (f) => `--${n.value}-${e}-${f}`
@@ -654,8 +654,8 @@ function Qe(e, t, n, r, o, i) {
654
654
  return a;
655
655
  if (!Ce(e))
656
656
  return e;
657
- var u = we(e);
658
- if (u) {
657
+ var d = we(e);
658
+ if (d) {
659
659
  if (a = cs(e), !s)
660
660
  return aa(e, a);
661
661
  } else {
@@ -672,17 +672,17 @@ function Qe(e, t, n, r, o, i) {
672
672
  }
673
673
  }
674
674
  i || (i = new He());
675
- var w = i.get(e);
676
- if (w)
677
- return w;
675
+ var T = i.get(e);
676
+ if (T)
677
+ return T;
678
678
  i.set(e, a), Rs(e) ? e.forEach(function(v) {
679
679
  a.add(Qe(v, t, n, v, e, i));
680
- }) : qs(e) && e.forEach(function(v, d) {
681
- a.set(d, Qe(v, t, n, d, e, i));
680
+ }) : qs(e) && e.forEach(function(v, u) {
681
+ a.set(u, Qe(v, t, n, u, e, i));
682
682
  });
683
- var O = c ? l ? ts : es : l ? an : on, f = u ? void 0 : O(e);
684
- return ia(f || e, function(v, d) {
685
- f && (d = v, v = e[d]), en(a, d, Qe(v, t, n, d, e, i));
683
+ var $ = c ? l ? ts : es : l ? an : on, f = d ? void 0 : $(e);
684
+ return ia(f || e, function(v, u) {
685
+ f && (u = v, v = e[u]), en(a, u, Qe(v, t, n, u, e, i));
686
686
  }), a;
687
687
  }
688
688
  var vl = 4;
@@ -726,8 +726,8 @@ function $l(e, t, n, r) {
726
726
  if (l === "__proto__" || l === "constructor" || l === "prototype")
727
727
  return e;
728
728
  if (o != a) {
729
- var u = s[l];
730
- c = void 0, c === void 0 && (c = Ce(u) ? u : Qt(t[o + 1]) ? [] : {});
729
+ var d = s[l];
730
+ c = void 0, c === void 0 && (c = Ce(d) ? d : Qt(t[o + 1]) ? [] : {});
731
731
  }
732
732
  en(s, l, c), s = s[l];
733
733
  }
@@ -772,11 +772,11 @@ function Al(e, t = {}) {
772
772
  };
773
773
  return (s) => {
774
774
  const l = at(e), c = at(t.maxWait);
775
- return n && i(n), l <= 0 || c !== void 0 && c <= 0 ? (r && (i(r), r = null), Promise.resolve(s())) : new Promise((u, m) => {
776
- o = t.rejectOnCancel ? m : u, c && !r && (r = setTimeout(() => {
777
- n && i(n), r = null, u(s());
775
+ return n && i(n), l <= 0 || c !== void 0 && c <= 0 ? (r && (i(r), r = null), Promise.resolve(s())) : new Promise((d, m) => {
776
+ o = t.rejectOnCancel ? m : d, c && !r && (r = setTimeout(() => {
777
+ n && i(n), r = null, d(s());
778
778
  }, c)), n = setTimeout(() => {
779
- r && i(r), r = null, u(s());
779
+ r && i(r), r = null, d(s());
780
780
  }, l);
781
781
  });
782
782
  };
@@ -827,15 +827,15 @@ function Ll(...e) {
827
827
  return Dt;
828
828
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
829
829
  const i = [], a = () => {
830
- i.forEach((u) => u()), i.length = 0;
831
- }, s = (u, m, h, w) => (u.addEventListener(m, h, w), () => u.removeEventListener(m, h, w)), l = ie(
830
+ i.forEach((d) => d()), i.length = 0;
831
+ }, s = (d, m, h, T) => (d.addEventListener(m, h, T), () => d.removeEventListener(m, h, T)), l = ie(
832
832
  () => [Bt(t), at(o)],
833
- ([u, m]) => {
834
- if (a(), !u)
833
+ ([d, m]) => {
834
+ if (a(), !d)
835
835
  return;
836
836
  const h = Fl(m) ? { ...m } : m;
837
837
  i.push(
838
- ...n.flatMap((w) => r.map((O) => s(u, w, O, h)))
838
+ ...n.flatMap((T) => r.map(($) => s(d, T, $, h)))
839
839
  );
840
840
  },
841
841
  { immediate: !0, flush: "post" }
@@ -869,12 +869,12 @@ function zr(e, t, n = {}) {
869
869
  }
870
870
  },
871
871
  { immediate: !0, flush: "post" }
872
- ), u = () => {
872
+ ), d = () => {
873
873
  s(), c();
874
874
  };
875
- return fn(u), {
875
+ return fn(d), {
876
876
  isSupported: a,
877
- stop: u
877
+ stop: d
878
878
  };
879
879
  }
880
880
  class Wr extends Error {
@@ -1125,16 +1125,16 @@ const Rl = (e) => (t, n) => zl(t, n, _(e)), zl = (e, t, n) => Ar(n, e, e).replac
1125
1125
  type: i,
1126
1126
  required: !!r,
1127
1127
  validator: n || a ? (c) => {
1128
- let u = !1, m = [];
1129
- if (n && (m = Array.from(n), Vt(e, "default") && m.push(o), u || (u = m.includes(c))), a && (u || (u = a(c))), !u && m.length > 0) {
1130
- const h = [...new Set(m)].map((w) => JSON.stringify(w)).join(", ");
1128
+ let d = !1, m = [];
1129
+ if (n && (m = Array.from(n), Vt(e, "default") && m.push(o), d || (d = m.includes(c))), a && (d || (d = a(c))), !d && m.length > 0) {
1130
+ const h = [...new Set(m)].map((T) => JSON.stringify(T)).join(", ");
1131
1131
  To(
1132
1132
  `Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${h}], got value ${JSON.stringify(
1133
1133
  c
1134
1134
  )}.`
1135
1135
  );
1136
1136
  }
1137
- return u;
1137
+ return d;
1138
1138
  } : void 0,
1139
1139
  [Yr]: !0
1140
1140
  };
@@ -1284,7 +1284,7 @@ const nu = ue({
1284
1284
  "--color": i
1285
1285
  };
1286
1286
  });
1287
- return (o, i) => ($(), E(
1287
+ return (o, i) => (O(), E(
1288
1288
  "i",
1289
1289
  je({
1290
1290
  class: _(n).b(),
@@ -1303,7 +1303,7 @@ var au = /* @__PURE__ */ k({
1303
1303
  name: "CircleCloseFilled",
1304
1304
  __name: "circle-close-filled",
1305
1305
  setup(e) {
1306
- return (t, n) => ($(), E("svg", {
1306
+ return (t, n) => (O(), E("svg", {
1307
1307
  xmlns: "http://www.w3.org/2000/svg",
1308
1308
  viewBox: "0 0 1024 1024"
1309
1309
  }, [
@@ -1317,7 +1317,7 @@ var au = /* @__PURE__ */ k({
1317
1317
  name: "Close",
1318
1318
  __name: "close",
1319
1319
  setup(e) {
1320
- return (t, n) => ($(), E("svg", {
1320
+ return (t, n) => (O(), E("svg", {
1321
1321
  xmlns: "http://www.w3.org/2000/svg",
1322
1322
  viewBox: "0 0 1024 1024"
1323
1323
  }, [
@@ -1331,7 +1331,7 @@ var au = /* @__PURE__ */ k({
1331
1331
  name: "Hide",
1332
1332
  __name: "hide",
1333
1333
  setup(e) {
1334
- return (t, n) => ($(), E("svg", {
1334
+ return (t, n) => (O(), E("svg", {
1335
1335
  xmlns: "http://www.w3.org/2000/svg",
1336
1336
  viewBox: "0 0 1024 1024"
1337
1337
  }, [
@@ -1349,7 +1349,7 @@ var au = /* @__PURE__ */ k({
1349
1349
  name: "InfoFilled",
1350
1350
  __name: "info-filled",
1351
1351
  setup(e) {
1352
- return (t, n) => ($(), E("svg", {
1352
+ return (t, n) => (O(), E("svg", {
1353
1353
  xmlns: "http://www.w3.org/2000/svg",
1354
1354
  viewBox: "0 0 1024 1024"
1355
1355
  }, [
@@ -1363,7 +1363,7 @@ var au = /* @__PURE__ */ k({
1363
1363
  name: "SuccessFilled",
1364
1364
  __name: "success-filled",
1365
1365
  setup(e) {
1366
- return (t, n) => ($(), E("svg", {
1366
+ return (t, n) => (O(), E("svg", {
1367
1367
  xmlns: "http://www.w3.org/2000/svg",
1368
1368
  viewBox: "0 0 1024 1024"
1369
1369
  }, [
@@ -1377,7 +1377,7 @@ var au = /* @__PURE__ */ k({
1377
1377
  name: "View",
1378
1378
  __name: "view",
1379
1379
  setup(e) {
1380
- return (t, n) => ($(), E("svg", {
1380
+ return (t, n) => (O(), E("svg", {
1381
1381
  xmlns: "http://www.w3.org/2000/svg",
1382
1382
  viewBox: "0 0 1024 1024"
1383
1383
  }, [
@@ -1391,7 +1391,7 @@ var au = /* @__PURE__ */ k({
1391
1391
  name: "WarningFilled",
1392
1392
  __name: "warning-filled",
1393
1393
  setup(e) {
1394
- return (t, n) => ($(), E("svg", {
1394
+ return (t, n) => (O(), E("svg", {
1395
1395
  xmlns: "http://www.w3.org/2000/svg",
1396
1396
  viewBox: "0 0 1024 1024"
1397
1397
  }, [
@@ -1519,7 +1519,7 @@ usage: app.provide(ID_INJECTION_KEY, {
1519
1519
  });
1520
1520
  return t({
1521
1521
  content: o
1522
- }), (a, s) => ($(), E(
1522
+ }), (a, s) => (O(), E(
1523
1523
  "div",
1524
1524
  {
1525
1525
  class: H(_(r).b())
@@ -1617,17 +1617,17 @@ const Fu = ut(Eu), ju = ue({
1617
1617
  }), i = y(() => {
1618
1618
  const a = [];
1619
1619
  return ["span", "offset", "pull", "push"].forEach((c) => {
1620
- const u = t[c];
1621
- me(u) && (c === "span" ? a.push(r.b(`${t[c]}`)) : u > 0 && a.push(r.b(`${c}-${t[c]}`)));
1620
+ const d = t[c];
1621
+ me(d) && (c === "span" ? a.push(r.b(`${t[c]}`)) : d > 0 && a.push(r.b(`${c}-${t[c]}`)));
1622
1622
  }), ["xs", "sm", "md", "lg", "xl"].forEach((c) => {
1623
- me(t[c]) ? a.push(r.b(`${c}-${t[c]}`)) : Zt(t[c]) && Object.entries(t[c]).forEach(([u, m]) => {
1623
+ me(t[c]) ? a.push(r.b(`${c}-${t[c]}`)) : Zt(t[c]) && Object.entries(t[c]).forEach(([d, m]) => {
1624
1624
  a.push(
1625
- u !== "span" ? r.b(`${c}-${u}-${m}`) : r.b(`${c}-${m}`)
1625
+ d !== "span" ? r.b(`${c}-${d}-${m}`) : r.b(`${c}-${m}`)
1626
1626
  );
1627
1627
  });
1628
1628
  }), n.value && a.push(r.is("guttered")), [r.b(), a];
1629
1629
  });
1630
- return (a, s) => ($(), X(lt(a.tag), {
1630
+ return (a, s) => (O(), X(lt(a.tag), {
1631
1631
  class: H(i.value),
1632
1632
  style: ze(o.value)
1633
1633
  }, {
@@ -1785,25 +1785,25 @@ const dt = (e, t) => {
1785
1785
  emits: ku,
1786
1786
  setup(e, { expose: t, emit: n }) {
1787
1787
  const r = e, o = n, i = P(), a = Pt([]), s = Qr(), l = _e("form"), c = y(() => {
1788
- const { labelPosition: x, inline: S } = r;
1788
+ const { labelPosition: w, inline: S } = r;
1789
1789
  return [
1790
1790
  l.b(),
1791
1791
  l.m(s.value || "default"),
1792
1792
  {
1793
- [l.m(`label-${x}`)]: x,
1793
+ [l.m(`label-${w}`)]: w,
1794
1794
  [l.m("inline")]: S
1795
1795
  }
1796
1796
  ];
1797
- }), u = (x) => dt(a, [x])[0], m = (x) => {
1798
- a.push(x);
1799
- }, h = (x) => {
1800
- x.prop && a.splice(a.indexOf(x), 1);
1801
- }, w = (x) => {
1797
+ }), d = (w) => dt(a, [w])[0], m = (w) => {
1798
+ a.push(w);
1799
+ }, h = (w) => {
1800
+ w.prop && a.splice(a.indexOf(w), 1);
1801
+ }, T = (w) => {
1802
1802
  if (!r.model) {
1803
1803
  te(qe, "model is required for setInitialValues to work.");
1804
1804
  return;
1805
1805
  }
1806
- if (!x) {
1806
+ if (!w) {
1807
1807
  te(
1808
1808
  qe,
1809
1809
  "initModel is required for setInitialValues to work."
@@ -1811,31 +1811,31 @@ const dt = (e, t) => {
1811
1811
  return;
1812
1812
  }
1813
1813
  a.forEach((S) => {
1814
- if (S.prop && Tl(x, S.prop)) {
1815
- const j = vt(x, S.prop).value;
1814
+ if (S.prop && Tl(w, S.prop)) {
1815
+ const j = vt(w, S.prop).value;
1816
1816
  S.setInitialValue(j);
1817
1817
  }
1818
1818
  });
1819
- }, O = (x = []) => {
1819
+ }, $ = (w = []) => {
1820
1820
  if (!r.model) {
1821
1821
  te(qe, "model is required for resetFields to work.");
1822
1822
  return;
1823
1823
  }
1824
- dt(a, x).forEach((S) => S.resetField());
1825
- }, f = (x = []) => {
1826
- dt(a, x).forEach((S) => S.clearValidate());
1824
+ dt(a, w).forEach((S) => S.resetField());
1825
+ }, f = (w = []) => {
1826
+ dt(a, w).forEach((S) => S.clearValidate());
1827
1827
  }, v = y(() => {
1828
- const x = !!r.model;
1829
- return x || te(qe, "model is required for validate to work."), x;
1830
- }), d = (x) => {
1828
+ const w = !!r.model;
1829
+ return w || te(qe, "model is required for validate to work."), w;
1830
+ }), u = (w) => {
1831
1831
  if (a.length === 0)
1832
1832
  return [];
1833
- const S = dt(a, x);
1833
+ const S = dt(a, w);
1834
1834
  return S.length ? S : (te(qe, "please pass correct props!"), []);
1835
- }, p = async (x) => b(void 0, x), g = async (x = []) => {
1835
+ }, p = async (w) => b(void 0, w), g = async (w = []) => {
1836
1836
  if (!v.value)
1837
1837
  return !1;
1838
- const S = d(x);
1838
+ const S = u(w);
1839
1839
  if (S.length === 0)
1840
1840
  return !0;
1841
1841
  let j = {};
@@ -1849,11 +1849,11 @@ const dt = (e, t) => {
1849
1849
  };
1850
1850
  }
1851
1851
  return Object.keys(j).length === 0 ? !0 : Promise.reject(j);
1852
- }, b = async (x = [], S) => {
1852
+ }, b = async (w = [], S) => {
1853
1853
  let j = !1;
1854
1854
  const D = !We(S);
1855
1855
  try {
1856
- return j = await g(x), j === !0 && await S?.(j), j;
1856
+ return j = await g(w), j === !0 && await S?.(j), j;
1857
1857
  } catch (ee) {
1858
1858
  if (ee instanceof Error)
1859
1859
  throw ee;
@@ -1864,15 +1864,15 @@ const dt = (e, t) => {
1864
1864
  }
1865
1865
  return !j && await S?.(!1, Z), D && Promise.reject(Z);
1866
1866
  }
1867
- }, F = (x) => {
1867
+ }, F = (w) => {
1868
1868
  var S;
1869
- const j = u(x);
1869
+ const j = d(w);
1870
1870
  j && ((S = j.$el) == null || S.scrollIntoView(r.scrollIntoViewOptions));
1871
1871
  };
1872
1872
  return ie(
1873
1873
  () => r.rules,
1874
1874
  () => {
1875
- r.validateOnRuleChange && p().catch((x) => te(x));
1875
+ r.validateOnRuleChange && p().catch((w) => te(w));
1876
1876
  },
1877
1877
  { deep: !0, flush: "post" }
1878
1878
  ), _t(
@@ -1880,25 +1880,25 @@ const dt = (e, t) => {
1880
1880
  Pt({
1881
1881
  ...ur(r),
1882
1882
  emit: o,
1883
- resetFields: O,
1883
+ resetFields: $,
1884
1884
  clearValidate: f,
1885
1885
  validateField: b,
1886
- getField: u,
1886
+ getField: d,
1887
1887
  addField: m,
1888
1888
  removeField: h,
1889
- setInitialValues: w,
1889
+ setInitialValues: T,
1890
1890
  ...qu()
1891
1891
  })
1892
1892
  ), t({
1893
1893
  validate: p,
1894
1894
  validateField: b,
1895
- resetFields: O,
1895
+ resetFields: $,
1896
1896
  clearValidate: f,
1897
1897
  scrollToField: F,
1898
- getField: u,
1898
+ getField: d,
1899
1899
  fields: a,
1900
- setInitialValues: w
1901
- }), (x, S) => ($(), E(
1900
+ setInitialValues: T
1901
+ }), (w, S) => (O(), E(
1902
1902
  "form",
1903
1903
  {
1904
1904
  ref_key: "formRef",
@@ -1906,7 +1906,7 @@ const dt = (e, t) => {
1906
1906
  class: H(c.value)
1907
1907
  },
1908
1908
  [
1909
- re(x.$slots, "default")
1909
+ re(w.$slots, "default")
1910
1910
  ],
1911
1911
  2
1912
1912
  ));
@@ -2070,24 +2070,24 @@ var Xn = /* @__PURE__ */ (function(e) {
2070
2070
  })(/* @__PURE__ */ Ut(Error));
2071
2071
  function Hu(e, t, n, r, o) {
2072
2072
  if (t.first) {
2073
- var i = new Promise(function(h, w) {
2074
- var O = function(d) {
2075
- return r(d), d.length ? w(new Xn(d, Kt(d))) : h(o);
2073
+ var i = new Promise(function(h, T) {
2074
+ var $ = function(u) {
2075
+ return r(u), u.length ? T(new Xn(u, Kt(u))) : h(o);
2076
2076
  }, f = Yu(e);
2077
- Zn(f, n, O);
2077
+ Zn(f, n, $);
2078
2078
  });
2079
2079
  return i.catch(function(h) {
2080
2080
  return h;
2081
2081
  }), i;
2082
2082
  }
2083
- var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), l = s.length, c = 0, u = [], m = new Promise(function(h, w) {
2084
- var O = function(v) {
2085
- if (u.push.apply(u, v), c++, c === l)
2086
- return r(u), u.length ? w(new Xn(u, Kt(u))) : h(o);
2083
+ var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), l = s.length, c = 0, d = [], m = new Promise(function(h, T) {
2084
+ var $ = function(v) {
2085
+ if (d.push.apply(d, v), c++, c === l)
2086
+ return r(d), d.length ? T(new Xn(d, Kt(d))) : h(o);
2087
2087
  };
2088
- s.length || (r(u), h(o)), s.forEach(function(f) {
2088
+ s.length || (r(d), h(o)), s.forEach(function(f) {
2089
2089
  var v = e[f];
2090
- a.indexOf(f) !== -1 ? Zn(v, n, O) : Gu(v, n, O);
2090
+ a.indexOf(f) !== -1 ? Zn(v, n, $) : Gu(v, n, $);
2091
2091
  });
2092
2092
  });
2093
2093
  return m.catch(function(h) {
@@ -2153,7 +2153,7 @@ var no = function(t, n, r, o, i, a) {
2153
2153
  }, l.v6 = function(g) {
2154
2154
  return g && g.exact ? s : new RegExp("" + t(g) + o + t(g), "g");
2155
2155
  };
2156
- var c = "(?:(?:[a-z]+:)?//)", u = "(?:\\S+(?::\\S*)?@)?", m = l.v4().source, h = l.v6().source, w = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", O = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", f = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", v = "(?::\\d{2,5})?", d = '(?:[/?#][^\\s"]*)?', p = "(?:" + c + "|www\\.)" + u + "(?:localhost|" + m + "|" + h + "|" + w + O + f + ")" + v + d;
2156
+ var c = "(?:(?:[a-z]+:)?//)", d = "(?:\\S+(?::\\S*)?@)?", m = l.v4().source, h = l.v6().source, T = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", $ = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", f = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", v = "(?::\\d{2,5})?", u = '(?:[/?#][^\\s"]*)?', p = "(?:" + c + "|www\\.)" + d + "(?:localhost|" + m + "|" + h + "|" + T + $ + f + ")" + v + u;
2157
2157
  return ft = new RegExp("(?:^" + p + "$)", "i"), ft;
2158
2158
  }), tr = {
2159
2159
  // http://emailregex.com/
@@ -2211,10 +2211,10 @@ var no = function(t, n, r, o, i, a) {
2211
2211
  var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], s = t.type;
2212
2212
  a.indexOf(s) > -1 ? Ze[s](n) || o.push(ne(i.messages.types[s], t.fullField, t.type)) : s && typeof n !== t.type && o.push(ne(i.messages.types[s], t.fullField, t.type));
2213
2213
  }, tc = function(t, n, r, o, i) {
2214
- var a = typeof t.len == "number", s = typeof t.min == "number", l = typeof t.max == "number", c = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, u = n, m = null, h = typeof n == "number", w = typeof n == "string", O = Array.isArray(n);
2215
- if (h ? m = "number" : w ? m = "string" : O && (m = "array"), !m)
2214
+ var a = typeof t.len == "number", s = typeof t.min == "number", l = typeof t.max == "number", c = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, d = n, m = null, h = typeof n == "number", T = typeof n == "string", $ = Array.isArray(n);
2215
+ if (h ? m = "number" : T ? m = "string" : $ && (m = "array"), !m)
2216
2216
  return !1;
2217
- O && (u = n.length), w && (u = n.replace(c, "_").length), a ? u !== t.len && o.push(ne(i.messages[m].len, t.fullField, t.len)) : s && !l && u < t.min ? o.push(ne(i.messages[m].min, t.fullField, t.min)) : l && !s && u > t.max ? o.push(ne(i.messages[m].max, t.fullField, t.max)) : s && l && (u < t.min || u > t.max) && o.push(ne(i.messages[m].range, t.fullField, t.min, t.max));
2217
+ $ && (d = n.length), T && (d = n.replace(c, "_").length), a ? d !== t.len && o.push(ne(i.messages[m].len, t.fullField, t.len)) : s && !l && d < t.min ? o.push(ne(i.messages[m].min, t.fullField, t.min)) : l && !s && d > t.max ? o.push(ne(i.messages[m].max, t.fullField, t.max)) : s && l && (d < t.min || d > t.max) && o.push(ne(i.messages[m].range, t.fullField, t.min, t.max));
2218
2218
  }, De = "enum", nc = function(t, n, r, o, i) {
2219
2219
  t[De] = Array.isArray(t[De]) ? t[De] : [], t[De].indexOf(n) === -1 && o.push(ne(i.messages[De], t.fullField, t[De].join(", ")));
2220
2220
  }, rc = function(t, n, r, o, i) {
@@ -2447,8 +2447,8 @@ var Yt = Gt(), ct = /* @__PURE__ */ (function() {
2447
2447
  var s = r, l = o, c = i;
2448
2448
  if (typeof l == "function" && (c = l, l = {}), !this.rules || Object.keys(this.rules).length === 0)
2449
2449
  return c && c(null, s), Promise.resolve(s);
2450
- function u(f) {
2451
- var v = [], d = {};
2450
+ function d(f) {
2451
+ var v = [], u = {};
2452
2452
  function p(b) {
2453
2453
  if (Array.isArray(b)) {
2454
2454
  var F;
@@ -2458,53 +2458,53 @@ var Yt = Gt(), ct = /* @__PURE__ */ (function() {
2458
2458
  }
2459
2459
  for (var g = 0; g < f.length; g++)
2460
2460
  p(f[g]);
2461
- v.length ? (d = Kt(v), c(v, d)) : c(null, s);
2461
+ v.length ? (u = Kt(v), c(v, u)) : c(null, s);
2462
2462
  }
2463
2463
  if (l.messages) {
2464
2464
  var m = this.messages();
2465
2465
  m === Yt && (m = Gt()), er(m, l.messages), l.messages = m;
2466
2466
  } else
2467
2467
  l.messages = this.messages();
2468
- var h = {}, w = l.keys || Object.keys(this.rules);
2469
- w.forEach(function(f) {
2470
- var v = a.rules[f], d = s[f];
2468
+ var h = {}, T = l.keys || Object.keys(this.rules);
2469
+ T.forEach(function(f) {
2470
+ var v = a.rules[f], u = s[f];
2471
2471
  v.forEach(function(p) {
2472
2472
  var g = p;
2473
- typeof g.transform == "function" && (s === r && (s = Ie({}, s)), d = s[f] = g.transform(d)), typeof g == "function" ? g = {
2473
+ typeof g.transform == "function" && (s === r && (s = Ie({}, s)), u = s[f] = g.transform(u)), typeof g == "function" ? g = {
2474
2474
  validator: g
2475
2475
  } : g = Ie({}, g), g.validator = a.getValidationMethod(g), g.validator && (g.field = f, g.fullField = g.fullField || f, g.type = a.getType(g), h[f] = h[f] || [], h[f].push({
2476
2476
  rule: g,
2477
- value: d,
2477
+ value: u,
2478
2478
  source: s,
2479
2479
  field: f
2480
2480
  }));
2481
2481
  });
2482
2482
  });
2483
- var O = {};
2483
+ var $ = {};
2484
2484
  return Hu(h, l, function(f, v) {
2485
- var d = f.rule, p = (d.type === "object" || d.type === "array") && (typeof d.fields == "object" || typeof d.defaultField == "object");
2486
- p = p && (d.required || !d.required && f.value), d.field = f.field;
2487
- function g(x, S) {
2485
+ var u = f.rule, p = (u.type === "object" || u.type === "array") && (typeof u.fields == "object" || typeof u.defaultField == "object");
2486
+ p = p && (u.required || !u.required && f.value), u.field = f.field;
2487
+ function g(w, S) {
2488
2488
  return Ie({}, S, {
2489
- fullField: d.fullField + "." + x,
2490
- fullFields: d.fullFields ? [].concat(d.fullFields, [x]) : [x]
2489
+ fullField: u.fullField + "." + w,
2490
+ fullFields: u.fullFields ? [].concat(u.fullFields, [w]) : [w]
2491
2491
  });
2492
2492
  }
2493
- function b(x) {
2494
- x === void 0 && (x = []);
2495
- var S = Array.isArray(x) ? x : [x];
2496
- !l.suppressWarning && S.length && e.warning("async-validator:", S), S.length && d.message !== void 0 && (S = [].concat(d.message));
2497
- var j = S.map(Qn(d, s));
2493
+ function b(w) {
2494
+ w === void 0 && (w = []);
2495
+ var S = Array.isArray(w) ? w : [w];
2496
+ !l.suppressWarning && S.length && e.warning("async-validator:", S), S.length && u.message !== void 0 && (S = [].concat(u.message));
2497
+ var j = S.map(Qn(u, s));
2498
2498
  if (l.first && j.length)
2499
- return O[d.field] = 1, v(j);
2499
+ return $[u.field] = 1, v(j);
2500
2500
  if (!p)
2501
2501
  v(j);
2502
2502
  else {
2503
- if (d.required && !f.value)
2504
- return d.message !== void 0 ? j = [].concat(d.message).map(Qn(d, s)) : l.error && (j = [l.error(d, ne(l.messages.required, d.field))]), v(j);
2503
+ if (u.required && !f.value)
2504
+ return u.message !== void 0 ? j = [].concat(u.message).map(Qn(u, s)) : l.error && (j = [l.error(u, ne(l.messages.required, u.field))]), v(j);
2505
2505
  var D = {};
2506
- d.defaultField && Object.keys(f.value).map(function(z) {
2507
- D[z] = d.defaultField;
2506
+ u.defaultField && Object.keys(f.value).map(function(z) {
2507
+ D[z] = u.defaultField;
2508
2508
  }), D = Ie({}, D, f.rule.fields);
2509
2509
  var ee = {};
2510
2510
  Object.keys(D).forEach(function(z) {
@@ -2519,25 +2519,25 @@ var Yt = Gt(), ct = /* @__PURE__ */ (function() {
2519
2519
  }
2520
2520
  }
2521
2521
  var F;
2522
- if (d.asyncValidator)
2523
- F = d.asyncValidator(d, f.value, b, f.source, l);
2524
- else if (d.validator) {
2522
+ if (u.asyncValidator)
2523
+ F = u.asyncValidator(u, f.value, b, f.source, l);
2524
+ else if (u.validator) {
2525
2525
  try {
2526
- F = d.validator(d, f.value, b, f.source, l);
2527
- } catch (x) {
2528
- console.error?.(x), l.suppressValidatorError || setTimeout(function() {
2529
- throw x;
2530
- }, 0), b(x.message);
2526
+ F = u.validator(u, f.value, b, f.source, l);
2527
+ } catch (w) {
2528
+ console.error?.(w), l.suppressValidatorError || setTimeout(function() {
2529
+ throw w;
2530
+ }, 0), b(w.message);
2531
2531
  }
2532
- F === !0 ? b() : F === !1 ? b(typeof d.message == "function" ? d.message(d.fullField || d.field) : d.message || (d.fullField || d.field) + " fails") : F instanceof Array ? b(F) : F instanceof Error && b(F.message);
2532
+ F === !0 ? b() : F === !1 ? b(typeof u.message == "function" ? u.message(u.fullField || u.field) : u.message || (u.fullField || u.field) + " fails") : F instanceof Array ? b(F) : F instanceof Error && b(F.message);
2533
2533
  }
2534
2534
  F && F.then && F.then(function() {
2535
2535
  return b();
2536
- }, function(x) {
2537
- return b(x);
2536
+ }, function(w) {
2537
+ return b(w);
2538
2538
  });
2539
2539
  }, function(f) {
2540
- u(f);
2540
+ d(f);
2541
2541
  }, s);
2542
2542
  }, t.getType = function(r) {
2543
2543
  if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !tt.hasOwnProperty(r.type))
@@ -2614,44 +2614,44 @@ var wc = k({
2614
2614
  const n = J(Ot, void 0), r = J(bt);
2615
2615
  r || ql(nr, "usage: <el-form-item><label-wrap /></el-form-item>");
2616
2616
  const o = _e("form"), i = P(), a = P(0), s = () => {
2617
- var u;
2618
- if ((u = i.value) != null && u.firstElementChild) {
2617
+ var d;
2618
+ if ((d = i.value) != null && d.firstElementChild) {
2619
2619
  const m = window.getComputedStyle(i.value.firstElementChild).width;
2620
2620
  return Math.ceil(Number.parseFloat(m));
2621
2621
  } else
2622
2622
  return 0;
2623
- }, l = (u = "update") => {
2623
+ }, l = (d = "update") => {
2624
2624
  Jt(() => {
2625
- t.default && e.isAutoWidth && (u === "update" ? a.value = s() : u === "remove" && n?.deregisterLabelWidth(a.value));
2625
+ t.default && e.isAutoWidth && (d === "update" ? a.value = s() : d === "remove" && n?.deregisterLabelWidth(a.value));
2626
2626
  });
2627
2627
  }, c = () => l("update");
2628
2628
  return Ke(() => {
2629
2629
  c();
2630
2630
  }), cr(() => {
2631
2631
  l("remove");
2632
- }), $o(() => c()), ie(a, (u, m) => {
2633
- e.updateAll && n?.registerLabelWidth(u, m);
2632
+ }), $o(() => c()), ie(a, (d, m) => {
2633
+ e.updateAll && n?.registerLabelWidth(d, m);
2634
2634
  }), zr(y(() => {
2635
- var u, m;
2636
- return (m = (u = i.value) == null ? void 0 : u.firstElementChild) != null ? m : null;
2635
+ var d, m;
2636
+ return (m = (d = i.value) == null ? void 0 : d.firstElementChild) != null ? m : null;
2637
2637
  }), c), () => {
2638
- var u, m;
2638
+ var d, m;
2639
2639
  if (!t)
2640
2640
  return null;
2641
2641
  const {
2642
2642
  isAutoWidth: h
2643
2643
  } = e;
2644
2644
  if (h) {
2645
- const w = n?.autoLabelWidth, O = r?.hasLabel, f = {};
2646
- if (O && w && w !== "auto") {
2647
- const v = Math.max(0, Number.parseInt(w, 10) - a.value), p = (r.labelPosition || n.labelPosition) === "left" ? "marginRight" : "marginLeft";
2645
+ const T = n?.autoLabelWidth, $ = r?.hasLabel, f = {};
2646
+ if ($ && T && T !== "auto") {
2647
+ const v = Math.max(0, Number.parseInt(T, 10) - a.value), p = (r.labelPosition || n.labelPosition) === "left" ? "marginRight" : "marginLeft";
2648
2648
  v && (f[p] = `${v}px`);
2649
2649
  }
2650
2650
  return L("div", {
2651
2651
  ref: i,
2652
2652
  class: [o.be("item", "label-wrap")],
2653
2653
  style: f
2654
- }, [(u = t.default) == null ? void 0 : u.call(t)]);
2654
+ }, [(d = t.default) == null ? void 0 : d.call(t)]);
2655
2655
  } else
2656
2656
  return L(wt, {
2657
2657
  ref: i
@@ -2664,27 +2664,27 @@ const xc = ["role", "aria-labelledby"], Tc = k({
2664
2664
  __name: "form-item",
2665
2665
  props: _c,
2666
2666
  setup(e, { expose: t }) {
2667
- const n = e, r = dr(), o = J(Ot, void 0), i = J(bt, void 0), a = Qr(void 0, { formItem: !1 }), s = _e("form-item"), l = Tu().value, c = P([]), u = P(""), m = Vl(u, 100), h = P(""), w = P();
2668
- let O, f = !1;
2667
+ const n = e, r = dr(), o = J(Ot, void 0), i = J(bt, void 0), a = Qr(void 0, { formItem: !1 }), s = _e("form-item"), l = Tu().value, c = P([]), d = P(""), m = Vl(d, 100), h = P(""), T = P();
2668
+ let $, f = !1;
2669
2669
  const v = y(
2670
2670
  () => n.labelPosition || o?.labelPosition
2671
- ), d = y(() => {
2672
- var T;
2673
- return v.value === "top" ? {} : { width: it((T = n.labelWidth) != null ? T : o?.labelWidth) };
2671
+ ), u = y(() => {
2672
+ var x;
2673
+ return v.value === "top" ? {} : { width: it((x = n.labelWidth) != null ? x : o?.labelWidth) };
2674
2674
  }), p = y(() => {
2675
- var T;
2675
+ var x;
2676
2676
  if (v.value === "top" || o?.inline)
2677
2677
  return {};
2678
2678
  if (!n.label && !n.labelWidth && ee)
2679
2679
  return {};
2680
- const A = it((T = n.labelWidth) != null ? T : o?.labelWidth);
2680
+ const A = it((x = n.labelWidth) != null ? x : o?.labelWidth);
2681
2681
  return !n.label && !r.label ? { marginLeft: A } : {};
2682
2682
  }), g = y(() => [
2683
2683
  s.b(),
2684
2684
  s.m(a.value),
2685
- s.is("error", u.value === "error"),
2686
- s.is("validating", u.value === "validating"),
2687
- s.is("success", u.value === "success"),
2685
+ s.is("error", d.value === "error"),
2686
+ s.is("validating", d.value === "validating"),
2687
+ s.is("success", d.value === "success"),
2688
2688
  s.is("required", St.value || n.required),
2689
2689
  s.is("no-asterisk", o?.hideRequiredAsterisk),
2690
2690
  o?.requireAsteriskPosition === "right" ? "asterisk-right" : "asterisk-left",
@@ -2697,15 +2697,15 @@ const xc = ["role", "aria-labelledby"], Tc = k({
2697
2697
  ), F = y(() => [
2698
2698
  s.e("error"),
2699
2699
  { [s.em("error", "inline")]: b.value }
2700
- ]), x = y(() => n.prop ? nt(n.prop) ? n.prop.join(".") : n.prop : ""), S = y(() => !!(n.label || r.label)), j = y(() => {
2701
- var T;
2702
- return (T = n.for) != null ? T : c.value.length === 1 ? c.value[0] : void 0;
2700
+ ]), w = y(() => n.prop ? nt(n.prop) ? n.prop.join(".") : n.prop : ""), S = y(() => !!(n.label || r.label)), j = y(() => {
2701
+ var x;
2702
+ return (x = n.for) != null ? x : c.value.length === 1 ? c.value[0] : void 0;
2703
2703
  }), D = y(() => !j.value && S.value), ee = !!i, Z = y(() => {
2704
- const T = o?.model;
2705
- if (!(!T || !n.prop))
2706
- return vt(T, n.prop).value;
2704
+ const x = o?.model;
2705
+ if (!(!x || !n.prop))
2706
+ return vt(x, n.prop).value;
2707
2707
  }), z = y(() => {
2708
- const { required: T } = n, A = [];
2708
+ const { required: x } = n, A = [];
2709
2709
  n.rules && A.push(...Lt(n.rules));
2710
2710
  const K = o?.rules;
2711
2711
  if (K && n.prop) {
@@ -2715,44 +2715,44 @@ const xc = ["role", "aria-labelledby"], Tc = k({
2715
2715
  ).value;
2716
2716
  W && A.push(...Lt(W));
2717
2717
  }
2718
- if (T !== void 0) {
2718
+ if (x !== void 0) {
2719
2719
  const W = A.map((ae, Me) => [ae, Me]).filter(([ae]) => "required" in ae);
2720
2720
  if (W.length > 0)
2721
2721
  for (const [ae, Me] of W)
2722
- ae.required !== T && (A[Me] = { ...ae, required: T });
2722
+ ae.required !== x && (A[Me] = { ...ae, required: x });
2723
2723
  else
2724
- A.push({ required: T });
2724
+ A.push({ required: x });
2725
2725
  }
2726
2726
  return A;
2727
- }), I = y(() => z.value.length > 0), ce = (T) => z.value.filter((K) => !K.trigger || !T ? !0 : nt(K.trigger) ? K.trigger.includes(T) : K.trigger === T).map(({ trigger: K, ...W }) => W), St = y(
2728
- () => z.value.some((T) => T.required)
2727
+ }), I = y(() => z.value.length > 0), ce = (x) => z.value.filter((K) => !K.trigger || !x ? !0 : nt(K.trigger) ? K.trigger.includes(x) : K.trigger === x).map(({ trigger: K, ...W }) => W), St = y(
2728
+ () => z.value.some((x) => x.required)
2729
2729
  ), mo = y(
2730
2730
  () => {
2731
- var T;
2732
- return m.value === "error" && n.showMessage && ((T = o?.showMessage) != null ? T : !0);
2731
+ var x;
2732
+ return m.value === "error" && n.showMessage && ((x = o?.showMessage) != null ? x : !0);
2733
2733
  }
2734
2734
  ), mn = y(
2735
2735
  () => `${n.label || ""}${o?.labelSuffix || ""}`
2736
- ), ke = (T) => {
2737
- u.value = T;
2738
- }, vo = (T) => {
2736
+ ), ke = (x) => {
2737
+ d.value = x;
2738
+ }, vo = (x) => {
2739
2739
  var A, K;
2740
- const { errors: W, fields: ae } = T;
2741
- (!W || !ae) && console.error(T), ke("error"), h.value = W ? (K = (A = W?.[0]) == null ? void 0 : A.message) != null ? K : `${n.prop} is required` : "", o?.emit("validate", n.prop, !1, h.value);
2740
+ const { errors: W, fields: ae } = x;
2741
+ (!W || !ae) && console.error(x), ke("error"), h.value = W ? (K = (A = W?.[0]) == null ? void 0 : A.message) != null ? K : `${n.prop} is required` : "", o?.emit("validate", n.prop, !1, h.value);
2742
2742
  }, go = () => {
2743
2743
  ke("success"), o?.emit("validate", n.prop, !0, "");
2744
- }, yo = async (T) => {
2745
- const A = x.value;
2744
+ }, yo = async (x) => {
2745
+ const A = w.value;
2746
2746
  return new ct({
2747
- [A]: T
2747
+ [A]: x
2748
2748
  }).validate({ [A]: Z.value }, { firstFields: !0 }).then(() => (go(), !0)).catch((W) => (vo(W), Promise.reject(W)));
2749
- }, vn = async (T, A) => {
2749
+ }, vn = async (x, A) => {
2750
2750
  if (f || !n.prop)
2751
2751
  return !1;
2752
2752
  const K = We(A);
2753
2753
  if (!I.value)
2754
2754
  return A?.(!1), !1;
2755
- const W = ce(T);
2755
+ const W = ce(x);
2756
2756
  return W.length === 0 ? (A?.(!0), !0) : (ke("validating"), yo(W).then(() => (A?.(!0), !0)).catch((ae) => {
2757
2757
  const { fields: Me } = ae;
2758
2758
  return A?.(!1, Me), K ? !1 : Promise.reject(Me);
@@ -2760,34 +2760,34 @@ const xc = ["role", "aria-labelledby"], Tc = k({
2760
2760
  }, It = () => {
2761
2761
  ke(""), h.value = "", f = !1;
2762
2762
  }, gn = async () => {
2763
- const T = o?.model;
2764
- if (!T || !n.prop)
2763
+ const x = o?.model;
2764
+ if (!x || !n.prop)
2765
2765
  return;
2766
- const A = vt(T, n.prop);
2767
- f = !0, A.value = jt(O), await Jt(), It(), f = !1;
2768
- }, ho = (T) => {
2769
- c.value.includes(T) || c.value.push(T);
2770
- }, bo = (T) => {
2771
- c.value = c.value.filter((A) => A !== T);
2772
- }, yn = (T) => {
2773
- O = jt(T);
2766
+ const A = vt(x, n.prop);
2767
+ f = !0, A.value = jt($), await Jt(), It(), f = !1;
2768
+ }, ho = (x) => {
2769
+ c.value.includes(x) || c.value.push(x);
2770
+ }, bo = (x) => {
2771
+ c.value = c.value.filter((A) => A !== x);
2772
+ }, yn = (x) => {
2773
+ $ = jt(x);
2774
2774
  };
2775
2775
  ie(
2776
2776
  () => n.error,
2777
- (T) => {
2778
- h.value = T || "", ke(T ? "error" : "");
2777
+ (x) => {
2778
+ h.value = x || "", ke(x ? "error" : "");
2779
2779
  },
2780
2780
  { immediate: !0 }
2781
2781
  ), ie(
2782
2782
  () => n.validateStatus,
2783
- (T) => ke(T || "")
2783
+ (x) => ke(x || "")
2784
2784
  );
2785
2785
  const Ct = Pt({
2786
2786
  ...ur(n),
2787
- $el: w,
2787
+ $el: T,
2788
2788
  size: a,
2789
2789
  validateMessage: h,
2790
- validateState: u,
2790
+ validateState: d,
2791
2791
  labelId: l,
2792
2792
  inputIds: c,
2793
2793
  isGroup: D,
@@ -2798,44 +2798,44 @@ const xc = ["role", "aria-labelledby"], Tc = k({
2798
2798
  resetField: gn,
2799
2799
  clearValidate: It,
2800
2800
  validate: vn,
2801
- propString: x,
2801
+ propString: w,
2802
2802
  setInitialValue: yn
2803
2803
  });
2804
2804
  return _t(bt, Ct), Ke(() => {
2805
- n.prop && (o?.addField(Ct), O = jt(Z.value));
2805
+ n.prop && (o?.addField(Ct), $ = jt(Z.value));
2806
2806
  }), cr(() => {
2807
2807
  o?.removeField(Ct);
2808
2808
  }), t({
2809
2809
  size: a,
2810
2810
  validateMessage: h,
2811
- validateState: u,
2811
+ validateState: d,
2812
2812
  validate: vn,
2813
2813
  clearValidate: It,
2814
2814
  resetField: gn,
2815
2815
  setInitialValue: yn
2816
- }), (T, A) => {
2816
+ }), (x, A) => {
2817
2817
  var K;
2818
- return $(), E("div", {
2818
+ return O(), E("div", {
2819
2819
  ref_key: "formItemRef",
2820
- ref: w,
2820
+ ref: T,
2821
2821
  class: H(g.value),
2822
2822
  role: D.value ? "group" : void 0,
2823
2823
  "aria-labelledby": D.value ? _(l) : void 0
2824
2824
  }, [
2825
2825
  L(_(wc), {
2826
- "is-auto-width": d.value.width === "auto",
2826
+ "is-auto-width": u.value.width === "auto",
2827
2827
  "update-all": ((K = _(o)) == null ? void 0 : K.labelWidth) === "auto"
2828
2828
  }, {
2829
2829
  default: M(() => [
2830
- T.label || T.$slots.label ? ($(), X(lt(j.value ? "label" : "div"), {
2830
+ x.label || x.$slots.label ? (O(), X(lt(j.value ? "label" : "div"), {
2831
2831
  key: 0,
2832
2832
  id: _(l),
2833
2833
  for: j.value,
2834
2834
  class: H(_(s).e("label")),
2835
- style: ze(d.value)
2835
+ style: ze(u.value)
2836
2836
  }, {
2837
2837
  default: M(() => [
2838
- re(T.$slots, "label", { label: mn.value }, () => [
2838
+ re(x.$slots, "label", { label: mn.value }, () => [
2839
2839
  fe(
2840
2840
  se(mn.value),
2841
2841
  1
@@ -2854,12 +2854,12 @@ const xc = ["role", "aria-labelledby"], Tc = k({
2854
2854
  style: ze(p.value)
2855
2855
  },
2856
2856
  [
2857
- re(T.$slots, "default"),
2857
+ re(x.$slots, "default"),
2858
2858
  L(Oo, {
2859
2859
  name: `${_(s).namespace.value}-zoom-in-top`
2860
2860
  }, {
2861
2861
  default: M(() => [
2862
- mo.value ? re(T.$slots, "error", {
2862
+ mo.value ? re(x.$slots, "error", {
2863
2863
  key: 0,
2864
2864
  error: h.value
2865
2865
  }, () => [
@@ -2927,7 +2927,7 @@ const $c = ut(Bu, {
2927
2927
  n.is(`justify-${t.justify}`, t.justify !== "start"),
2928
2928
  n.is(`align-${t.align}`, !!t.align)
2929
2929
  ]);
2930
- return (a, s) => ($(), X(lt(a.tag), {
2930
+ return (a, s) => (O(), X(lt(a.tag), {
2931
2931
  class: H(i.value),
2932
2932
  style: ze(o.value)
2933
2933
  }, {
@@ -3053,28 +3053,28 @@ const rr = ut(Fc), oo = [
3053
3053
  props: jc,
3054
3054
  emits: Ac,
3055
3055
  setup(e, { expose: t, emit: n }) {
3056
- const { Close: r } = bu, o = e, i = n, a = P(!1), { ns: s, zIndex: l } = Zl("message"), { currentZIndex: c, nextZIndex: u } = l, m = P(), h = P(!1), w = P(0);
3057
- let O;
3056
+ const { Close: r } = bu, o = e, i = n, a = P(!1), { ns: s, zIndex: l } = Zl("message"), { currentZIndex: c, nextZIndex: d } = l, m = P(), h = P(!1), T = P(0);
3057
+ let $;
3058
3058
  const f = y(
3059
3059
  () => o.type ? o.type === "error" ? "danger" : o.type : "info"
3060
3060
  ), v = y(() => {
3061
3061
  const I = o.type;
3062
3062
  return { [s.bm("icon", I)]: I && Hn[I] };
3063
- }), d = y(
3063
+ }), u = y(
3064
3064
  () => o.icon || Hn[o.type] || ""
3065
- ), p = y(() => o.placement || Re), g = y(() => Nc(o.id, p.value)), b = y(() => Lc(o.id, o.offset, p.value) + g.value), F = y(() => w.value + b.value), x = y(() => p.value.includes("left") ? s.is("left") : p.value.includes("right") ? s.is("right") : s.is("center")), S = y(
3065
+ ), p = y(() => o.placement || Re), g = y(() => Nc(o.id, p.value)), b = y(() => Lc(o.id, o.offset, p.value) + g.value), F = y(() => T.value + b.value), w = y(() => p.value.includes("left") ? s.is("left") : p.value.includes("right") ? s.is("right") : s.is("center")), S = y(
3066
3066
  () => p.value.startsWith("top") ? "top" : "bottom"
3067
3067
  ), j = y(() => ({
3068
3068
  [S.value]: `${b.value}px`,
3069
3069
  zIndex: c.value
3070
3070
  }));
3071
3071
  function D() {
3072
- o.duration !== 0 && ({ stop: O } = Nl(() => {
3072
+ o.duration !== 0 && ({ stop: $ } = Nl(() => {
3073
3073
  Z();
3074
3074
  }, o.duration));
3075
3075
  }
3076
3076
  function ee() {
3077
- O?.();
3077
+ $?.();
3078
3078
  }
3079
3079
  function Z() {
3080
3080
  h.value = !1, Jt(() => {
@@ -3086,19 +3086,19 @@ const rr = ut(Fc), oo = [
3086
3086
  Ou(I) === zt.esc && Z();
3087
3087
  }
3088
3088
  return Ke(() => {
3089
- D(), u(), h.value = !0;
3089
+ D(), d(), h.value = !0;
3090
3090
  }), ie(
3091
3091
  () => o.repeatNum,
3092
3092
  () => {
3093
3093
  ee(), D();
3094
3094
  }
3095
3095
  ), Ll(document, "keydown", z), zr(m, () => {
3096
- w.value = m.value.getBoundingClientRect().height;
3096
+ T.value = m.value.getBoundingClientRect().height;
3097
3097
  }), t({
3098
3098
  visible: h,
3099
3099
  bottom: F,
3100
3100
  close: Z
3101
- }), (I, ce) => ($(), X(ir, {
3101
+ }), (I, ce) => (O(), X(ir, {
3102
3102
  name: _(s).b("fade"),
3103
3103
  onBeforeEnter: ce[0] || (ce[0] = (St) => a.value = !0),
3104
3104
  onBeforeLeave: I.onClose,
@@ -3116,7 +3116,7 @@ const rr = ut(Fc), oo = [
3116
3116
  _(s).is("closable", I.showClose),
3117
3117
  _(s).is("plain", I.plain),
3118
3118
  _(s).is("bottom", S.value === "bottom"),
3119
- x.value,
3119
+ w.value,
3120
3120
  I.customClass
3121
3121
  ]),
3122
3122
  style: ze(j.value),
@@ -3124,23 +3124,23 @@ const rr = ut(Fc), oo = [
3124
3124
  onMouseenter: ee,
3125
3125
  onMouseleave: D
3126
3126
  }, [
3127
- I.repeatNum > 1 ? ($(), X(_(Fu), {
3127
+ I.repeatNum > 1 ? (O(), X(_(Fu), {
3128
3128
  key: 0,
3129
3129
  value: I.repeatNum,
3130
3130
  type: f.value,
3131
3131
  class: H(_(s).e("badge"))
3132
3132
  }, null, 8, ["value", "type", "class"])) : Se("v-if", !0),
3133
- d.value ? ($(), X(_(Gn), {
3133
+ u.value ? (O(), X(_(Gn), {
3134
3134
  key: 1,
3135
3135
  class: H([_(s).e("icon"), v.value])
3136
3136
  }, {
3137
3137
  default: M(() => [
3138
- ($(), X(lt(d.value)))
3138
+ (O(), X(lt(u.value)))
3139
3139
  ]),
3140
3140
  _: 1
3141
3141
  }, 8, ["class"])) : Se("v-if", !0),
3142
3142
  re(I.$slots, "default", {}, () => [
3143
- I.dangerouslyUseHTMLString ? ($(), E(
3143
+ I.dangerouslyUseHTMLString ? (O(), E(
3144
3144
  wt,
3145
3145
  { key: 1 },
3146
3146
  [
@@ -3151,7 +3151,7 @@ const rr = ut(Fc), oo = [
3151
3151
  }, null, 10, Mc)
3152
3152
  ],
3153
3153
  2112
3154
- )) : ($(), E(
3154
+ )) : (O(), E(
3155
3155
  "p",
3156
3156
  {
3157
3157
  key: 0,
@@ -3161,7 +3161,7 @@ const rr = ut(Fc), oo = [
3161
3161
  3
3162
3162
  ))
3163
3163
  ]),
3164
- I.showClose ? ($(), X(_(Gn), {
3164
+ I.showClose ? (O(), X(_(Gn), {
3165
3165
  key: 2,
3166
3166
  class: H(_(s).e("closeBtn")),
3167
3167
  onClick: So(Z, ["stop"])
@@ -3214,7 +3214,7 @@ const Rc = (e) => {
3214
3214
  ...t,
3215
3215
  id: r,
3216
3216
  onClose: () => {
3217
- o?.(), Wc(u);
3217
+ o?.(), Wc(d);
3218
3218
  },
3219
3219
  onDestroy: () => {
3220
3220
  hn(null, i);
@@ -3227,7 +3227,7 @@ const Rc = (e) => {
3227
3227
  } : null
3228
3228
  );
3229
3229
  s.appContext = n || Fe._context, hn(s, i), e.appendChild(i.firstElementChild);
3230
- const l = s.component, u = {
3230
+ const l = s.component, d = {
3231
3231
  id: r,
3232
3232
  vnode: s,
3233
3233
  vm: l,
@@ -3238,7 +3238,7 @@ const Rc = (e) => {
3238
3238
  },
3239
3239
  props: s.component.props
3240
3240
  };
3241
- return u;
3241
+ return d;
3242
3242
  }, Fe = (e = {}, t) => {
3243
3243
  if (!Ve)
3244
3244
  return { close: () => {
@@ -3302,74 +3302,74 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3302
3302
  },
3303
3303
  setup(e) {
3304
3304
  const t = e, n = ye(t, "modelValue"), r = P("input"), o = y(() => {
3305
- const { clearable: c, disabled: u, required: m, readonly: h, placeholder: w, maxlength: O, minlength: f, showWordLimit: v, initValue: d } = t.data;
3306
- return { clearable: c, disabled: u, required: m, readonly: h, placeholder: w, maxlength: O, minlength: f, showWordLimit: v, initValue: d };
3307
- }), i = P(t.data.type || "text"), a = P(!0);
3308
- function s() {
3309
- a.value = !a.value, a.value ? i.value = "password" : i.value = "text";
3305
+ const { clearable: d, disabled: m, required: h, readonly: T, placeholder: $, maxlength: f, minlength: v, showWordLimit: u, initValue: p } = t.data;
3306
+ return { clearable: d, disabled: m, required: h, readonly: T, placeholder: $, maxlength: f, minlength: v, showWordLimit: u, initValue: p };
3307
+ }), i = y(() => t.data.changeType && !t.data.readonly && !t.data.disabled), a = P(t.data.type || "text"), s = P(!0);
3308
+ function l() {
3309
+ s.value = !s.value, s.value ? a.value = "password" : a.value = "text";
3310
3310
  }
3311
- function l(c) {
3312
- if (c === "string")
3311
+ function c(d) {
3312
+ if (d === "string")
3313
3313
  n.value = String(n.value), r.value = "input";
3314
- else if (c === "number") {
3315
- const u = Number(n.value);
3316
- n.value = isNaN(u) ? "" : u, r.value = "number";
3317
- } else c === "boolean" && (r.value = "switch", n.value === "true" || n.value === !0 ? n.value = !0 : n.value === "false" || n.value === !1 ? n.value = !1 : n.value = !!n.value);
3314
+ else if (d === "number") {
3315
+ const m = Number(n.value);
3316
+ n.value = isNaN(m) ? "" : m, r.value = "number";
3317
+ } else d === "boolean" && (r.value = "switch", n.value === "true" || n.value === !0 ? n.value = !0 : n.value === "false" || n.value === !1 ? n.value = !1 : n.value = !!n.value);
3318
3318
  }
3319
- return (c, u) => {
3320
- const m = Q("el-switch"), h = Q("el-input-number"), w = Q("el-button"), O = Q("el-input"), f = Q("el-button-group");
3321
- return $(), E("div", Yc, [
3322
- t.data.readonly ? ($(), E("div", Hc, se(_(n)), 1)) : ($(), E("div", Jc, [
3319
+ return (d, m) => {
3320
+ const h = Q("el-switch"), T = Q("el-input-number"), $ = Q("el-button"), f = Q("el-input"), v = Q("el-button-group");
3321
+ return O(), E("div", Yc, [
3322
+ t.data.readonly ? (O(), E("div", Hc, se(_(n)), 1)) : (O(), E("div", Jc, [
3323
3323
  B("div", Zc, [
3324
- r.value === "switch" ? ($(), X(m, {
3324
+ r.value === "switch" ? (O(), X(h, {
3325
3325
  key: 0,
3326
3326
  modelValue: _(n),
3327
- "onUpdate:modelValue": u[0] || (u[0] = (v) => pe(n) ? n.value = v : null)
3328
- }, null, 8, ["modelValue"])) : r.value === "number" ? ($(), X(h, {
3327
+ "onUpdate:modelValue": m[0] || (m[0] = (u) => pe(n) ? n.value = u : null)
3328
+ }, null, 8, ["modelValue"])) : r.value === "number" ? (O(), X(T, {
3329
3329
  key: 1,
3330
3330
  modelValue: _(n),
3331
- "onUpdate:modelValue": u[1] || (u[1] = (v) => pe(n) ? n.value = v : null)
3332
- }, null, 8, ["modelValue"])) : ($(), X(O, je({
3331
+ "onUpdate:modelValue": m[1] || (m[1] = (u) => pe(n) ? n.value = u : null)
3332
+ }, null, 8, ["modelValue"])) : (O(), X(f, je({
3333
3333
  key: 2,
3334
3334
  modelValue: _(n),
3335
- "onUpdate:modelValue": u[2] || (u[2] = (v) => pe(n) ? n.value = v : null)
3336
- }, o.value, { type: i.value }), Io({ _: 2 }, [
3335
+ "onUpdate:modelValue": m[2] || (m[2] = (u) => pe(n) ? n.value = u : null)
3336
+ }, o.value, { type: a.value }), Io({ _: 2 }, [
3337
3337
  t.data.type === "password" ? {
3338
3338
  name: "append",
3339
3339
  fn: M(() => [
3340
- L(w, {
3341
- icon: a.value ? _(cu) : _(vu),
3342
- onClick: s
3340
+ L($, {
3341
+ icon: s.value ? _(cu) : _(vu),
3342
+ onClick: l
3343
3343
  }, null, 8, ["icon"])
3344
3344
  ]),
3345
3345
  key: "0"
3346
3346
  } : void 0
3347
3347
  ]), 1040, ["modelValue", "type"]))
3348
3348
  ]),
3349
- t.data.changeType ? ($(), E("div", Xc, [
3350
- L(f, null, {
3349
+ i.value ? (O(), E("div", Xc, [
3350
+ L(v, null, {
3351
3351
  default: M(() => [
3352
- L(w, {
3353
- onClick: u[3] || (u[3] = (v) => l("string"))
3352
+ L($, {
3353
+ onClick: m[3] || (m[3] = (u) => c("string"))
3354
3354
  }, {
3355
- default: M(() => [...u[6] || (u[6] = [
3356
- fe("string", -1)
3355
+ default: M(() => [...m[6] || (m[6] = [
3356
+ fe("字符串", -1)
3357
3357
  ])]),
3358
3358
  _: 1
3359
3359
  }),
3360
- L(w, {
3361
- onClick: u[4] || (u[4] = (v) => l("number"))
3360
+ L($, {
3361
+ onClick: m[4] || (m[4] = (u) => c("number"))
3362
3362
  }, {
3363
- default: M(() => [...u[7] || (u[7] = [
3364
- fe("number", -1)
3363
+ default: M(() => [...m[7] || (m[7] = [
3364
+ fe("数字", -1)
3365
3365
  ])]),
3366
3366
  _: 1
3367
3367
  }),
3368
- L(w, {
3369
- onClick: u[5] || (u[5] = (v) => l("boolean"))
3368
+ L($, {
3369
+ onClick: m[5] || (m[5] = (u) => c("boolean"))
3370
3370
  }, {
3371
- default: M(() => [...u[8] || (u[8] = [
3372
- fe("boolean", -1)
3371
+ default: M(() => [...m[8] || (m[8] = [
3372
+ fe("布尔值", -1)
3373
3373
  ])]),
3374
3374
  _: 1
3375
3375
  })
@@ -3386,7 +3386,7 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3386
3386
  for (const [r, o] of t)
3387
3387
  n[r] = o;
3388
3388
  return n;
3389
- }, so = /* @__PURE__ */ Te(Qc, [["__scopeId", "data-v-22ed46d4"]]), ed = { class: "item-content" }, td = {
3389
+ }, so = /* @__PURE__ */ Te(Qc, [["__scopeId", "data-v-d1b12e4b"]]), ed = { class: "item-content" }, td = {
3390
3390
  key: 0,
3391
3391
  class: "text-content"
3392
3392
  }, nd = {
@@ -3402,22 +3402,22 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3402
3402
  },
3403
3403
  setup(e) {
3404
3404
  const t = e, n = ye(t, "modelValue"), r = y(() => {
3405
- const { clearable: i, filterable: a, disabled: s, required: l, readonly: c, placeholder: u, options: m = [], mergeOptions: h = [], multiple: w, multipleLimit: O, initValue: f } = t.data;
3406
- return { clearable: i, filterable: a, disabled: s, required: l, readonly: c, placeholder: u, options: m, mergeOptions: h, multiple: w, multipleLimit: O, initValue: f };
3405
+ const { clearable: i, filterable: a, disabled: s, required: l, readonly: c, placeholder: d, options: m = [], mergeOptions: h = [], multiple: T, multipleLimit: $, initValue: f } = t.data;
3406
+ return { clearable: i, filterable: a, disabled: s, required: l, readonly: c, placeholder: d, options: m, mergeOptions: h, multiple: T, multipleLimit: $, initValue: f };
3407
3407
  }), o = y(() => {
3408
3408
  const i = t.dictList;
3409
3409
  return i && t.data.dictId ? t.data.dictId === "all" ? i.map((a) => (a.value = a.id, a)) || [] : [...i.find((s) => s.id === t.data.dictId)?.children || [], ...r.value.mergeOptions] : r.value.options && r.value.options.length > 0 ? r.value.options : [];
3410
3410
  });
3411
3411
  return (i, a) => {
3412
3412
  const s = Q("el-option"), l = Q("el-select");
3413
- return $(), E("div", ed, [
3414
- t.data.readonly ? ($(), E("div", td, se(_(n)), 1)) : ($(), E("div", nd, [
3413
+ return O(), E("div", ed, [
3414
+ t.data.readonly ? (O(), E("div", td, se(_(n)), 1)) : (O(), E("div", nd, [
3415
3415
  L(l, je({
3416
3416
  modelValue: _(n),
3417
3417
  "onUpdate:modelValue": a[0] || (a[0] = (c) => pe(n) ? n.value = c : null)
3418
3418
  }, r.value), {
3419
3419
  default: M(() => [
3420
- ($(!0), E(wt, null, mr(o.value, (c) => ($(), X(s, {
3420
+ (O(!0), E(wt, null, mr(o.value, (c) => (O(), X(s, {
3421
3421
  key: c.value,
3422
3422
  label: c.label,
3423
3423
  value: c.value,
@@ -3445,13 +3445,13 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3445
3445
  },
3446
3446
  setup(e) {
3447
3447
  const t = e, n = ye(t, "modelValue"), r = y(() => {
3448
- const { clearable: o, disabled: i, required: a, readonly: s, placeholder: l, min: c, max: u, step: m, precision: h, controls: w, initValue: O } = t.data;
3449
- return { clearable: o, disabled: i, required: a, readonly: s, placeholder: l, min: c, max: u, step: m, precision: h, controls: w, initValue: O };
3448
+ const { clearable: o, disabled: i, required: a, readonly: s, placeholder: l, min: c, max: d, step: m, precision: h, controls: T, initValue: $ } = t.data;
3449
+ return { clearable: o, disabled: i, required: a, readonly: s, placeholder: l, min: c, max: d, step: m, precision: h, controls: T, initValue: $ };
3450
3450
  });
3451
3451
  return (o, i) => {
3452
3452
  const a = Q("el-input-number");
3453
- return $(), E("div", od, [
3454
- t.data.readonly ? ($(), E("div", ad, se(_(n)), 1)) : ($(), E("div", id, [
3453
+ return O(), E("div", od, [
3454
+ t.data.readonly ? (O(), E("div", ad, se(_(n)), 1)) : (O(), E("div", id, [
3455
3455
  L(a, je({
3456
3456
  modelValue: _(n),
3457
3457
  "onUpdate:modelValue": i[0] || (i[0] = (s) => pe(n) ? n.value = s : null)
@@ -3475,13 +3475,13 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3475
3475
  },
3476
3476
  setup(e) {
3477
3477
  const t = e, n = ye(t, "modelValue"), r = y(() => {
3478
- const { clearable: o, disabled: i, required: a, readonly: s, placeholder: l, loading: c, width: u, activeText: m, inactiveText: h, activeValue: w, inactiveValue: O, initValue: f } = t.data;
3479
- return { clearable: o, disabled: i, required: a, readonly: s, placeholder: l, loading: c, width: u, activeText: m, inactiveText: h, activeValue: w, inactiveValue: O, initValue: f };
3478
+ const { clearable: o, disabled: i, required: a, readonly: s, placeholder: l, loading: c, width: d, activeText: m, inactiveText: h, activeValue: T, inactiveValue: $, initValue: f } = t.data;
3479
+ return { clearable: o, disabled: i, required: a, readonly: s, placeholder: l, loading: c, width: d, activeText: m, inactiveText: h, activeValue: T, inactiveValue: $, initValue: f };
3480
3480
  });
3481
3481
  return (o, i) => {
3482
3482
  const a = Q("el-switch");
3483
- return $(), E("div", ld, [
3484
- t.data.readonly ? ($(), E("div", ud, se(_(n)), 1)) : ($(), E("div", cd, [
3483
+ return O(), E("div", ld, [
3484
+ t.data.readonly ? (O(), E("div", ud, se(_(n)), 1)) : (O(), E("div", cd, [
3485
3485
  L(a, je({
3486
3486
  modelValue: _(n),
3487
3487
  "onUpdate:modelValue": i[0] || (i[0] = (s) => pe(n) ? n.value = s : null)
@@ -3505,13 +3505,13 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3505
3505
  },
3506
3506
  setup(e) {
3507
3507
  const t = e, n = ye(t, "modelValue"), r = y(() => {
3508
- const { clearable: o, disabled: i, required: a, readonly: s, placeholder: l, type: c, defaultValue: u, defaultTime: m, dateFormat: h, timeFormat: w, valueFormat: O = "YYYY-MM-DDTHH:mm:ss[Z]", initValue: f } = t.data;
3509
- return { clearable: o, disabled: i, required: a, readonly: s, placeholder: l, type: c, defaultValue: u, defaultTime: m, dateFormat: h, timeFormat: w, valueFormat: O, initValue: f };
3508
+ const { clearable: o, disabled: i, required: a, readonly: s, placeholder: l, type: c, defaultValue: d, defaultTime: m, dateFormat: h, timeFormat: T, valueFormat: $ = "YYYY-MM-DDTHH:mm:ss[Z]", initValue: f } = t.data;
3509
+ return { clearable: o, disabled: i, required: a, readonly: s, placeholder: l, type: c, defaultValue: d, defaultTime: m, dateFormat: h, timeFormat: T, valueFormat: $, initValue: f };
3510
3510
  });
3511
3511
  return (o, i) => {
3512
3512
  const a = Q("el-date-picker");
3513
- return $(), E("div", fd, [
3514
- t.data.readonly ? ($(), E("div", pd, se(_(n)), 1)) : ($(), E("div", md, [
3513
+ return O(), E("div", fd, [
3514
+ t.data.readonly ? (O(), E("div", pd, se(_(n)), 1)) : (O(), E("div", md, [
3515
3515
  L(a, je({
3516
3516
  modelValue: _(n),
3517
3517
  "onUpdate:modelValue": i[0] || (i[0] = (s) => pe(n) ? n.value = s : null)
@@ -3536,22 +3536,22 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3536
3536
  },
3537
3537
  setup(e) {
3538
3538
  const t = e, n = ye(t, "modelValue"), r = y(() => {
3539
- const { clearable: i, disabled: a, required: s, readonly: l, placeholder: c, options: u, mergeOptions: m = [], border: h, textColor: w, fill: O, type: f, initValue: v } = t.data;
3540
- return { clearable: i, disabled: a, required: s, readonly: l, placeholder: c, options: u, mergeOptions: m, border: h, textColor: w, fill: O, type: f, initValue: v };
3539
+ const { clearable: i, disabled: a, required: s, readonly: l, placeholder: c, options: d, mergeOptions: m = [], border: h, textColor: T, fill: $, type: f, initValue: v } = t.data;
3540
+ return { clearable: i, disabled: a, required: s, readonly: l, placeholder: c, options: d, mergeOptions: m, border: h, textColor: T, fill: $, type: f, initValue: v };
3541
3541
  }), o = y(() => {
3542
3542
  const i = t.dictList;
3543
3543
  return i && t.data.dictId ? t.data.dictId === "all" ? i.map((a) => (a.value = a.id, a)) || [] : [...i.find((s) => s.id === t.data.dictId)?.children || [], ...r.value.mergeOptions] : r.value.options && r.value.options.length > 0 ? r.value.options : [];
3544
3544
  });
3545
3545
  return (i, a) => {
3546
3546
  const s = Q("el-radio"), l = Q("el-radio-group");
3547
- return $(), E("div", gd, [
3548
- t.data.readonly ? ($(), E("div", yd, se(_(n)), 1)) : ($(), E("div", hd, [
3547
+ return O(), E("div", gd, [
3548
+ t.data.readonly ? (O(), E("div", yd, se(_(n)), 1)) : (O(), E("div", hd, [
3549
3549
  L(l, je({
3550
3550
  modelValue: _(n),
3551
3551
  "onUpdate:modelValue": a[0] || (a[0] = (c) => pe(n) ? n.value = c : null)
3552
3552
  }, r.value), {
3553
3553
  default: M(() => [
3554
- ($(!0), E(wt, null, mr(o.value, (c) => ($(), X(s, {
3554
+ (O(!0), E(wt, null, mr(o.value, (c) => (O(), X(s, {
3555
3555
  key: c.value,
3556
3556
  value: c.value,
3557
3557
  label: c.label,
@@ -3585,7 +3585,7 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3585
3585
  }), Ke(() => {
3586
3586
  c.value = yt(s.value);
3587
3587
  });
3588
- function u() {
3588
+ function d() {
3589
3589
  return U("div", { class: "form-content" }, {
3590
3590
  default: () => [U($c, { model: s.value, ref: a, style: "width: 100%", labelWidth: l.value?.[0]?.labelWidth }, {
3591
3591
  default: () => U(rr, { id: "dragzone" }, {
@@ -3599,7 +3599,7 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3599
3599
  });
3600
3600
  }
3601
3601
  function m(p, g) {
3602
- return p.formType === "block" ? h(p, g) : g ? w({ ...p, readonly: g.readonly || p.readonly, disabled: g.disabled || p.disabled, labelWidth: g.labelWidth || p.labelWidth }) : null;
3602
+ return p.formType === "block" ? h(p, g) : g ? T({ ...p, readonly: g.readonly || p.readonly, disabled: g.disabled || p.disabled, labelWidth: p.labelWidth || g.labelWidth }) : null;
3603
3603
  }
3604
3604
  function h(p, g) {
3605
3605
  return U(Jn, { span: 24 }, {
@@ -3610,16 +3610,16 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3610
3610
  })
3611
3611
  });
3612
3612
  }
3613
- function w(p) {
3613
+ function T(p) {
3614
3614
  return U(Jn, { xs: 24, sm: 24, md: p.span, lg: p.span, xl: p.span }, {
3615
3615
  default: () => U("div", { class: "fj-form-item" }, {
3616
3616
  default: () => [U(Oc, { prop: p.key, rules: p.rules, label: p.label, style: "width: 100%", labelWidth: p.labelWidth }, {
3617
- default: () => O(p)
3617
+ default: () => $(p)
3618
3618
  }), i.edit ? U("div", { class: "remove", onClick: () => f(p) }, { default: () => null }) : null]
3619
3619
  })
3620
3620
  });
3621
3621
  }
3622
- function O(p) {
3622
+ function $(p) {
3623
3623
  const g = l.value?.[0]?.readonly || p.readonly;
3624
3624
  switch (p = { ...p, readonly: g }, p.formType) {
3625
3625
  case "input":
@@ -3686,7 +3686,7 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3686
3686
  function v() {
3687
3687
  s.value = yt(c.value);
3688
3688
  }
3689
- function d() {
3689
+ function u() {
3690
3690
  return new Promise((p, g) => {
3691
3691
  a.value ? a.value.validate((b, F) => {
3692
3692
  b ? p(s.value) : g(F);
@@ -3694,13 +3694,13 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3694
3694
  });
3695
3695
  }
3696
3696
  return t({
3697
- submit: d,
3697
+ submit: u,
3698
3698
  reset: v
3699
- }), (p, g) => ($(), E("div", _d, [
3700
- ($(), X(lt(u())))
3699
+ }), (p, g) => (O(), E("div", _d, [
3700
+ (O(), X(lt(d())))
3701
3701
  ]));
3702
3702
  }
3703
- }), Ht = /* @__PURE__ */ Te(wd, [["__scopeId", "data-v-a0a4aa56"]]), xd = [{
3703
+ }), Ht = /* @__PURE__ */ Te(wd, [["__scopeId", "data-v-71082e14"]]), xd = [{
3704
3704
  label: "text",
3705
3705
  value: "text"
3706
3706
  }, {
@@ -3769,19 +3769,21 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3769
3769
  clearable: !0,
3770
3770
  disabled: !1,
3771
3771
  required: !1,
3772
+ readonly: !1,
3772
3773
  min: 0,
3773
3774
  step: 1,
3774
3775
  precision: 0,
3775
3776
  maxlength: 64,
3776
3777
  minlength: 0,
3777
- inputType: "text"
3778
+ inputType: "text",
3779
+ changeType: !1
3778
3780
  }, Sd = [
3779
3781
  {
3780
3782
  formType: "block",
3781
3783
  span: 24,
3782
3784
  key: "root",
3783
3785
  label: "输入配置信息,点击添加生成表单",
3784
- labelWidth: "100px",
3786
+ labelWidth: "120px",
3785
3787
  clearable: !0,
3786
3788
  disabled: !1,
3787
3789
  readonly: !1,
@@ -3882,7 +3884,7 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3882
3884
  },
3883
3885
  {
3884
3886
  formType: "switch",
3885
- span: 8,
3887
+ span: 5,
3886
3888
  key: "clearable",
3887
3889
  label: "是否可清除",
3888
3890
  clearable: !0,
@@ -3897,9 +3899,10 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3897
3899
  },
3898
3900
  {
3899
3901
  formType: "switch",
3900
- span: 8,
3902
+ span: 4,
3901
3903
  key: "disabled",
3902
3904
  label: "是否禁用",
3905
+ labelWidth: "80px",
3903
3906
  clearable: !0,
3904
3907
  disabled: !1,
3905
3908
  readonly: !1,
@@ -3912,9 +3915,10 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3912
3915
  },
3913
3916
  {
3914
3917
  formType: "switch",
3915
- span: 8,
3918
+ span: 5,
3916
3919
  key: "required",
3917
3920
  label: "是否必填",
3921
+ labelWidth: "80px",
3918
3922
  clearable: !0,
3919
3923
  disabled: !1,
3920
3924
  readonly: !1,
@@ -3925,6 +3929,37 @@ const pt = Ql(Fe, "$message"), Yc = { class: "item-content" }, Hc = {
3925
3929
  inactiveValue: !1,
3926
3930
  placeholder: "请选择required"
3927
3931
  },
3932
+ {
3933
+ formType: "switch",
3934
+ span: 5,
3935
+ key: "readonly",
3936
+ label: "是否只读",
3937
+ labelWidth: "80px",
3938
+ clearable: !0,
3939
+ disabled: !1,
3940
+ readonly: !1,
3941
+ children: [],
3942
+ initValue: !1,
3943
+ loading: !1,
3944
+ activeValue: !0,
3945
+ inactiveValue: !1,
3946
+ placeholder: "请选择readonly"
3947
+ },
3948
+ {
3949
+ formType: "switch",
3950
+ span: 5,
3951
+ key: "changeType",
3952
+ label: "是否可切换类型",
3953
+ clearable: !0,
3954
+ disabled: !1,
3955
+ readonly: !1,
3956
+ children: [],
3957
+ initValue: !1,
3958
+ loading: !1,
3959
+ activeValue: !0,
3960
+ inactiveValue: !1,
3961
+ placeholder: "请选择changeType"
3962
+ },
3928
3963
  {
3929
3964
  formType: "number",
3930
3965
  span: 8,
@@ -4146,56 +4181,56 @@ const Pd = { class: "edit-container" }, Vd = { class: "aside" }, Nd = { class: "
4146
4181
  function c() {
4147
4182
  r.value = [new or({ key: "root", label: "生成结果,输入内容设置默认值" })], o.value = {}, localStorage.setItem("edit_form_config", JSON.stringify(r.value)), localStorage.setItem("edit_form_data", JSON.stringify(o.value));
4148
4183
  }
4149
- function u() {
4150
- n.value?.submit().then((d) => {
4151
- if (Object.keys(o.value).includes(d.key)) {
4152
- pt.error(`重复key: ${d.key}`);
4184
+ function d() {
4185
+ n.value?.submit().then((u) => {
4186
+ if (Object.keys(o.value).includes(u.key)) {
4187
+ pt.error(`重复key: ${u.key}`);
4153
4188
  return;
4154
4189
  } else {
4155
- const p = l[d.formItemType].ins;
4190
+ const p = l[u.formItemType].ins;
4156
4191
  if (p) {
4157
- const g = new p(d);
4158
- o.value = { ...o.value, [d.key]: g.initValue }, r.value.forEach((b) => {
4159
- b.children && d.key && b.children.push(g);
4192
+ const g = new p(u);
4193
+ o.value = { ...o.value, [u.key]: g.initValue }, r.value.forEach((b) => {
4194
+ b.children && u.key && b.children.push(g);
4160
4195
  });
4161
4196
  }
4162
4197
  localStorage.setItem("edit_form_config", JSON.stringify(r.value)), localStorage.setItem("edit_form_data", JSON.stringify(o.value));
4163
4198
  }
4164
4199
  });
4165
4200
  }
4166
- function m(d) {
4167
- localStorage.setItem("edit_form_data", JSON.stringify(d));
4201
+ function m(u) {
4202
+ localStorage.setItem("edit_form_data", JSON.stringify(u));
4168
4203
  }
4169
- function h(d) {
4204
+ function h(u) {
4170
4205
  const p = yt(r.value), g = yt(o.value);
4171
- if (d?.key && p?.[0]?.children) {
4172
- const b = p[0].children.filter((F) => F.key != d.key) || [];
4173
- p[0].children = b, r.value = p, delete g[d.key], o.value = g;
4206
+ if (u?.key && p?.[0]?.children) {
4207
+ const b = p[0].children.filter((F) => F.key != u.key) || [];
4208
+ p[0].children = b, r.value = p, delete g[u.key], o.value = g;
4174
4209
  }
4175
4210
  localStorage.setItem("edit_form_config", JSON.stringify(r.value)), localStorage.setItem("edit_form_data", JSON.stringify(o.value));
4176
4211
  }
4177
- function w() {
4212
+ function T() {
4178
4213
  console.log("%c 配置信息:", "color: lime"), f();
4179
- const d = `
4214
+ const u = `
4180
4215
  import type { FormItem, FormModel } from "fj-form"
4181
4216
  export const config: Array<FormItem> = ${JSON.stringify(r.value, null, " ")}
4182
4217
  export const data: FormModel = ${JSON.stringify(o.value, null, " ")}
4183
4218
  export const tableConfig: Array<TableRow> = ${JSON.stringify(i.value, null, " ")}
4184
4219
  `;
4185
- console.log(d), O(d);
4220
+ console.log(u), $(u);
4186
4221
  }
4187
- async function O(d) {
4222
+ async function $(u) {
4188
4223
  try {
4189
- await navigator.clipboard.writeText(d), pt.success({ message: "复制成功" });
4224
+ await navigator.clipboard.writeText(u), pt.success({ message: "复制成功" });
4190
4225
  } catch {
4191
4226
  pt.error({ message: "复制失败,可在控制台手动复制" });
4192
4227
  }
4193
4228
  }
4194
4229
  function f() {
4195
- i.value = r.value[0]?.children.map((d) => ({
4196
- label: d.label,
4197
- prop: d.key,
4198
- dictId: d.dictId
4230
+ i.value = r.value[0]?.children.map((u) => ({
4231
+ label: u.label,
4232
+ prop: u.key,
4233
+ dictId: u.dictId
4199
4234
  })) || [];
4200
4235
  }
4201
4236
  function v() {
@@ -4203,17 +4238,17 @@ const Pd = { class: "edit-container" }, Vd = { class: "aside" }, Nd = { class: "
4203
4238
  }
4204
4239
  return Ke(() => {
4205
4240
  console.log(123);
4206
- const d = localStorage.getItem("edit_form_config"), p = localStorage.getItem("edit_form_data");
4207
- if (d && p)
4241
+ const u = localStorage.getItem("edit_form_config"), p = localStorage.getItem("edit_form_data");
4242
+ if (u && p)
4208
4243
  try {
4209
- const g = JSON.parse(d), b = JSON.parse(p);
4244
+ const g = JSON.parse(u), b = JSON.parse(p);
4210
4245
  g && b && (r.value = g, o.value = b);
4211
4246
  } catch {
4212
4247
  pt.error({ message: "本地数据异常,请重新创建" }), localStorage.removeItem("edit_form_config"), localStorage.removeItem("edit_form_data");
4213
4248
  }
4214
- }), (d, p) => {
4249
+ }), (u, p) => {
4215
4250
  const g = Q("el-button"), b = Q("el-button-group");
4216
- return $(), E("div", Pd, [
4251
+ return O(), E("div", Pd, [
4217
4252
  B("div", Vd, [
4218
4253
  B("div", Nd, [
4219
4254
  L(_(Ht), {
@@ -4261,7 +4296,7 @@ const Pd = { class: "edit-container" }, Vd = { class: "aside" }, Nd = { class: "
4261
4296
  default: M(() => [
4262
4297
  L(g, {
4263
4298
  type: "warning",
4264
- onClick: u
4299
+ onClick: d
4265
4300
  }, {
4266
4301
  default: M(() => [...p[5] || (p[5] = [
4267
4302
  fe("添加", -1)
@@ -4270,7 +4305,7 @@ const Pd = { class: "edit-container" }, Vd = { class: "aside" }, Nd = { class: "
4270
4305
  }),
4271
4306
  L(g, {
4272
4307
  type: "warning",
4273
- onClick: w
4308
+ onClick: T
4274
4309
  }, {
4275
4310
  default: M(() => [...p[6] || (p[6] = [
4276
4311
  fe("打印", -1)