@form-create/iview 2.7.9 → 2.7.10

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/iview v2.7.9
3
+ * @form-create/iview v2.7.10
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -54,8 +54,8 @@ const A = /* @__PURE__ */ $r(Or);
54
54
  function Ve(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => ((!e || e.indexOf(i) === -1) && r.push(t[i]), r), []);
56
56
  }
57
- const Fr = "fcCheckbox", kr = {
58
- name: Fr,
57
+ const kr = "fcCheckbox", Fr = {
58
+ name: kr,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -127,7 +127,7 @@ function H(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
129
  const Sr = "fcFrame";
130
- function Ft(t) {
130
+ function kt(t) {
131
131
  return {
132
132
  name: Sr,
133
133
  props: {
@@ -503,11 +503,11 @@ function Ft(t) {
503
503
  }
504
504
  };
505
505
  }
506
- const kt = Ft({
506
+ const Ft = kt({
507
507
  fileIcon: "md-document",
508
508
  fileUpIcon: "ios-folder-open"
509
509
  });
510
- kt.v2 = Ft({
510
+ Ft.v2 = kt({
511
511
  fileIcon: "document-text",
512
512
  fileUpIcon: "folder"
513
513
  });
@@ -915,7 +915,7 @@ Rt.v2 = St({
915
915
  fileIcon: "document-text",
916
916
  imgUpIcon: "image"
917
917
  });
918
- function F(t, e, r) {
918
+ function k(t, e, r) {
919
919
  $e.set(t, e, r);
920
920
  }
921
921
  function re(t, e) {
@@ -929,19 +929,19 @@ function Ce(t, e = {}, r) {
929
929
  if ((i = Array.isArray(n)) || h.Object(n)) {
930
930
  let o = t[s] === void 0;
931
931
  if (i)
932
- i = !1, o && F(t, s, []);
932
+ i = !1, o && k(t, s, []);
933
933
  else if (n._clone && r !== void 0)
934
934
  if (r)
935
- n = n.getRule(), o && F(t, s, {});
935
+ n = n.getRule(), o && k(t, s, {});
936
936
  else {
937
- F(t, s, n._clone());
937
+ k(t, s, n._clone());
938
938
  continue;
939
939
  }
940
940
  else
941
- o && F(t, s, {});
941
+ o && k(t, s, {});
942
942
  t[s] = Ce(t[s], n, r);
943
943
  } else
944
- F(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
944
+ k(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
945
945
  }
946
946
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
947
947
  }
@@ -951,7 +951,7 @@ function G(t) {
951
951
  const Lr = Object.assign || function(t) {
952
952
  for (let e, r = 1; r < arguments.length; r++)
953
953
  for (let i in e = arguments[r], e)
954
- Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
954
+ Object.prototype.hasOwnProperty.call(e, i) && k(t, i, e[i]);
955
955
  return t;
956
956
  };
957
957
  function C() {
@@ -1239,9 +1239,9 @@ const Br = "fcGroup", Tr = {
1239
1239
  key: o
1240
1240
  }, {
1241
1241
  on: {
1242
- "update:value": (d) => this.formData(o, d),
1243
- "emit-event": (d, ...p) => this.emitEvent(d, p, a, o),
1244
- input: (d) => this.add$f(a, o, d)
1242
+ "update:value": (p) => this.formData(o, p),
1243
+ "emit-event": (p, ...d) => this.emitEvent(p, d, a, o),
1244
+ input: (p) => this.add$f(a, o, p)
1245
1245
  }
1246
1246
  }, {}, {
1247
1247
  props: {
@@ -1350,12 +1350,12 @@ const Br = "fcGroup", Tr = {
1350
1350
  }]));
1351
1351
  }
1352
1352
  }, Ur = [
1353
- kr,
1353
+ Fr,
1354
1354
  Er,
1355
1355
  jr,
1356
1356
  Ir,
1357
1357
  Mr,
1358
- kt,
1358
+ Ft,
1359
1359
  Rt,
1360
1360
  Tr
1361
1361
  ];
@@ -1369,6 +1369,9 @@ function be(t) {
1369
1369
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1370
1370
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1371
1371
  }
1372
+ function qr(t) {
1373
+ return t.replace(t[0], t[0].toLocaleUpperCase());
1374
+ }
1372
1375
  const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style", "directives"], jt = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
1373
1376
  const i = [...Et, ...r.normal || []], s = [...Dt, ...r.array || []], n = [...jt, ...r.functional || []], o = r.props || [];
1374
1377
  return t.reduce((a, l) => {
@@ -1379,25 +1382,25 @@ const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style"
1379
1382
  else if (i.indexOf(u) > -1)
1380
1383
  a[u] = v(v({}, a[u]), l[u]);
1381
1384
  else if (s.indexOf(u) > -1) {
1382
- const f = a[u] instanceof Array ? a[u] : [a[u]], d = l[u] instanceof Array ? l[u] : [l[u]];
1383
- a[u] = [...f, ...d];
1385
+ const f = a[u] instanceof Array ? a[u] : [a[u]], p = l[u] instanceof Array ? l[u] : [l[u]];
1386
+ a[u] = [...f, ...p];
1384
1387
  } else if (n.indexOf(u) > -1)
1385
1388
  for (const f in l[u])
1386
1389
  if (a[u][f]) {
1387
- const d = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], p = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1388
- a[u][f] = [...d, ...p];
1390
+ const p = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], d = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1391
+ a[u][f] = [...p, ...d];
1389
1392
  } else
1390
1393
  a[u][f] = l[u][f];
1391
1394
  else if (u === "hook")
1392
1395
  for (let f in l[u])
1393
- a[u][f] ? a[u][f] = qr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1396
+ a[u][f] ? a[u][f] = Gr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1394
1397
  else
1395
1398
  a[u] = l[u];
1396
1399
  else
1397
1400
  i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = v({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? v({}, l[u]) : l[u] : a[u] = l[u];
1398
1401
  return a;
1399
1402
  }, e);
1400
- }, qr = (t, e) => function() {
1403
+ }, Gr = (t, e) => function() {
1401
1404
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1402
1405
  }, At = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], xe = ["validate", "children", "control"], et = ["effect", "deep", "renderSlots"];
1403
1406
  function It() {
@@ -1409,10 +1412,10 @@ function Vt(t, e, r) {
1409
1412
  function tt(t, e) {
1410
1413
  console.error(Vt("err", t));
1411
1414
  }
1412
- function Gr(t) {
1415
+ function Hr(t) {
1413
1416
  tt(t.toString()), console.error(t);
1414
1417
  }
1415
- function Hr(t) {
1418
+ function zr(t) {
1416
1419
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1417
1420
  }
1418
1421
  const Ke = "[[FORM-CREATE-PREFIX-", Xe = "-FORM-CREATE-SUFFIX]]";
@@ -1477,16 +1480,16 @@ function Pt(t, e) {
1477
1480
  return h.Undef(i) || !i.indexOf ? i : W(i, e);
1478
1481
  });
1479
1482
  }
1480
- let zr = 0;
1483
+ let Jr = 0;
1481
1484
  function Pe() {
1482
- const t = 370 + ++zr;
1485
+ const t = 370 + ++Jr;
1483
1486
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1484
1487
  }
1485
1488
  function se(t, e, r) {
1486
1489
  let i = t, s;
1487
1490
  return (e || "").split(".").forEach((n) => {
1488
- s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
1489
- }), F(i, s, r), i;
1491
+ s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1492
+ }), k(i, s, r), i;
1490
1493
  }
1491
1494
  function Ze(t, e) {
1492
1495
  return {
@@ -1509,7 +1512,7 @@ function ht(t) {
1509
1512
  const e = h.Function(t.getRule) ? t.getRule() : t;
1510
1513
  return e.type || (e.type = "input"), e;
1511
1514
  }
1512
- function Jr(t, e) {
1515
+ function Wr(t, e) {
1513
1516
  return t ? (Object.keys(e || {}).forEach((r) => {
1514
1517
  e[r] && (t[r] = x(t[r] || {}, e[r]));
1515
1518
  }), t) : e;
@@ -1528,7 +1531,7 @@ function O(t, e) {
1528
1531
  try {
1529
1532
  e = t();
1530
1533
  } catch (r) {
1531
- Gr(r);
1534
+ Hr(r);
1532
1535
  }
1533
1536
  return e;
1534
1537
  }
@@ -1540,7 +1543,7 @@ function Qe(t, e) {
1540
1543
  });
1541
1544
  }), r;
1542
1545
  }
1543
- function Wr(t, e) {
1546
+ function Kr(t, e) {
1544
1547
  if (h.Object(t)) {
1545
1548
  const r = {};
1546
1549
  return Object.keys(t).forEach((i) => {
@@ -1549,7 +1552,7 @@ function Wr(t, e) {
1549
1552
  } else
1550
1553
  return Qe(t, e);
1551
1554
  }
1552
- function ke() {
1555
+ function Fe() {
1553
1556
  const t = {}, e = (r) => r || "default";
1554
1557
  return {
1555
1558
  setSlot(r, i) {
@@ -1565,7 +1568,7 @@ function ke() {
1565
1568
  const n = s();
1566
1569
  Array.isArray(n) ? i.push(...n) : i.push(n);
1567
1570
  } else h.Undef(s) || i.push(s);
1568
- }), Wr(i, r);
1571
+ }), Kr(i, r);
1569
1572
  },
1570
1573
  getSlots() {
1571
1574
  let r = [];
@@ -1628,7 +1631,7 @@ function L(t, e) {
1628
1631
  t != null && (t = t[r]);
1629
1632
  }), t;
1630
1633
  }
1631
- function Kr(t) {
1634
+ function Xr(t) {
1632
1635
  const e = /{{\s*(.*?)\s*}}/g;
1633
1636
  let r;
1634
1637
  const i = {};
@@ -1662,7 +1665,7 @@ const De = (t, e) => {
1662
1665
  return De(t.$parent, e);
1663
1666
  }
1664
1667
  };
1665
- function Xr(t, e, r) {
1668
+ function Zr(t, e, r) {
1666
1669
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1667
1670
  return {
1668
1671
  name: i,
@@ -1722,92 +1725,92 @@ function Xr(t, e, r) {
1722
1725
  a = a.parent;
1723
1726
  else
1724
1727
  a = n;
1725
- const { rule: l, value: u, subForm: f, inFor: d } = ut(s), p = ie({
1728
+ const { rule: l, value: u, subForm: f, inFor: p } = ut(s), d = ie({
1726
1729
  ctxInject: {},
1727
1730
  destroyed: !1,
1728
1731
  isShow: !0,
1729
1732
  unique: 1,
1730
1733
  renderRule: [...l.value || []],
1731
1734
  updateValue: JSON.stringify(u.value || {})
1732
- }), y = new t(n), g = y.api(), _ = d.value, D = () => {
1735
+ }), g = new t(n), y = g.api(), _ = p.value, D = () => {
1733
1736
  if (o) {
1734
- const k = De(n, o);
1735
- if (k) {
1737
+ const F = De(n, o);
1738
+ if (F) {
1736
1739
  let R;
1737
- _ ? (R = H(k.getSubForm()), R.push(g)) : R = g, k.subForm(R);
1740
+ _ ? (R = H(F.getSubForm()), R.push(y)) : R = y, F.subForm(R);
1738
1741
  }
1739
1742
  }
1740
1743
  }, ee = () => {
1741
- const k = De(n, o);
1742
- if (k)
1744
+ const F = De(n, o);
1745
+ if (F)
1743
1746
  if (_) {
1744
- const R = H(k.getSubForm()), N = R.indexOf(g);
1747
+ const R = H(F.getSubForm()), N = R.indexOf(y);
1745
1748
  N > -1 && R.splice(N, 1);
1746
1749
  } else
1747
- k.subForm();
1750
+ F.subForm();
1748
1751
  };
1749
1752
  let I = null;
1750
1753
  dr(() => {
1751
1754
  B(() => {
1752
- let k = "";
1755
+ let F = "";
1753
1756
  const R = s.option && s.option.globalClass || {};
1754
1757
  Object.keys(R).forEach((N) => {
1755
1758
  let pe = "";
1756
1759
  R[N].style && Object.keys(R[N].style).forEach((z) => {
1757
1760
  pe += be(z) + ":" + R[N].style[z] + ";";
1758
- }), R[N].content && (pe += R[N].content + ";"), pe && (k += `.${N}{${pe}}`);
1759
- }), s.option && s.option.style && (k += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = k || "";
1761
+ }), R[N].content && (pe += R[N].content + ";"), pe && (F += `.${N}{${pe}}`);
1762
+ }), s.option && s.option.style && (F += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = F || "";
1760
1763
  }, () => {
1761
1764
  });
1762
1765
  });
1763
1766
  const T = ne(() => {
1764
- y.bus.$emit("$loadData.$topForm");
1767
+ g.bus.$emit("$loadData.$topForm");
1765
1768
  }, 100), he = ne(function() {
1766
- y.bus.$emit("$loadData.$scopeForm");
1769
+ g.bus.$emit("$loadData.$scopeForm");
1767
1770
  }, 100), Le = ne(() => {
1768
- y.bus.$emit("$loadData.$form");
1769
- }, 100), de = (k) => {
1770
- y.bus.$emit("change-$form." + k);
1771
+ g.bus.$emit("$loadData.$form");
1772
+ }, 100), de = (F) => {
1773
+ g.bus.$emit("change-$form." + F);
1771
1774
  };
1772
1775
  return pr(() => {
1773
- o && (g.top.bus.$on("$loadData.$form", T), g.top.bus.$on("change", de)), g !== g.scope && g.scope.bus.$on("$loadData.$scopeForm", he), y.mounted();
1776
+ o && (y.top.bus.$on("$loadData.$form", T), y.top.bus.$on("change", de)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", he), g.mounted();
1774
1777
  }), mr(() => {
1775
- o && (g.top.bus.$off("$loadData.$form", T), g.top.bus.$off("change", de)), g !== g.scope && g.scope.bus.$off("$loadData.$scopeForm", he), ee(), p.destroyed = !0, y.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1778
+ o && (y.top.bus.$off("$loadData.$form", T), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), ee(), d.destroyed = !0, g.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1776
1779
  }), gr(() => {
1777
- y.updated();
1778
- }), B(f, (k) => {
1779
- k ? D() : ee();
1780
+ g.updated();
1781
+ }), B(f, (F) => {
1782
+ F ? D() : ee();
1780
1783
  }, { immediate: !0 }), B(() => s.option, () => {
1781
- y.initOptions(), g.refresh();
1782
- }, { deep: !0 }), B(() => [...l.value], (k) => {
1783
- y.$handle.isBreakWatch() || k.length === p.renderRule.length && k.every((R) => p.renderRule.indexOf(R) > -1) || (y.$handle.updateAppendData(), y.$handle.reloadRule(l.value), n.renderRule());
1784
+ g.initOptions(), y.refresh();
1785
+ }, { deep: !0 }), B(() => [...l.value], (F) => {
1786
+ g.$handle.isBreakWatch() || F.length === d.renderRule.length && F.every((R) => d.renderRule.indexOf(R) > -1) || (g.$handle.updateAppendData(), g.$handle.reloadRule(l.value), n.renderRule());
1784
1787
  }), B(() => [s.disabled, s.preview], () => {
1785
- g.refresh();
1786
- }), B(u, (k) => {
1787
- _e(k || {}) !== p.updateValue && (g.config.forceCoverValue ? g.coverValue(k || {}) : g.setValue(k || {}));
1788
+ y.refresh();
1789
+ }), B(u, (F) => {
1790
+ _e(F || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(F || {}) : y.setValue(F || {}));
1788
1791
  }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1789
- g.coverValue({}), y.$handle.updateAppendData(), V(() => {
1792
+ y.coverValue({}), g.$handle.updateAppendData(), V(() => {
1790
1793
  V(() => {
1791
- g.clearValidateState();
1794
+ y.clearValidateState();
1792
1795
  });
1793
1796
  });
1794
1797
  }, { flush: "sync" }), U(v({
1795
- fc: ge(y),
1798
+ fc: ge(g),
1796
1799
  parent: o && ge(o),
1797
1800
  top: ge(a),
1798
- fapi: ge(g)
1799
- }, ut(p)), {
1801
+ fapi: ge(y)
1802
+ }, ut(d)), {
1800
1803
  getGroupInject: () => De(n, o),
1801
1804
  refresh() {
1802
- ++p.unique;
1805
+ ++d.unique;
1803
1806
  },
1804
1807
  renderRule() {
1805
- p.renderRule = [...l.value || []];
1808
+ d.renderRule = [...l.value || []];
1806
1809
  },
1807
- updateValue(k) {
1808
- if (p.destroyed) return;
1809
- const R = _e(k);
1810
- p.updateValue !== R && (p.updateValue = R, n.$emit("update:value", k), V(() => {
1810
+ updateValue(F) {
1811
+ if (d.destroyed) return;
1812
+ const R = _e(F);
1813
+ d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", F), V(() => {
1811
1814
  Le(), o ? f.value || he() : (T(), he());
1812
1815
  }));
1813
1816
  }
@@ -1844,7 +1847,7 @@ C(rt.prototype, {
1844
1847
  return this._data;
1845
1848
  },
1846
1849
  setProp(t, e) {
1847
- return F(this._data, t, e), this;
1850
+ return k(this._data, t, e), this;
1848
1851
  },
1849
1852
  _clone() {
1850
1853
  const t = new this.constructor();
@@ -1860,7 +1863,7 @@ function Ut(t) {
1860
1863
  }
1861
1864
  Ut(It());
1862
1865
  const qt = P("");
1863
- function Zr(t, e, r) {
1866
+ function Qr(t, e, r) {
1864
1867
  let i = qt("", e);
1865
1868
  return i._data.type = t, i._data.title = r, i;
1866
1869
  }
@@ -1868,15 +1871,15 @@ function mt(t, e, r, i) {
1868
1871
  let s = qt("", r);
1869
1872
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1870
1873
  }
1871
- function Qr() {
1874
+ function Yr() {
1872
1875
  return {
1873
- create: Zr,
1876
+ create: Qr,
1874
1877
  createTmp: mt,
1875
1878
  template: mt,
1876
1879
  factory: P
1877
1880
  };
1878
1881
  }
1879
- function Yr(t, e, r) {
1882
+ function xr(t, e, r) {
1880
1883
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1881
1884
  return s.status = r.status, s.url = t, s;
1882
1885
  }
@@ -1905,7 +1908,7 @@ function Gt(t) {
1905
1908
  t.onError(o);
1906
1909
  }, e.onload = function() {
1907
1910
  if (e.status < 200 || e.status >= 300)
1908
- return t.onError(Yr(r, t, e), gt(e));
1911
+ return t.onError(xr(r, t, e), gt(e));
1909
1912
  t.onSuccess(gt(e));
1910
1913
  }, e.open(t.method || "get", r, !0);
1911
1914
  let i;
@@ -1934,7 +1937,7 @@ function yt(t, e, r) {
1934
1937
  function ve(t) {
1935
1938
  return G(t);
1936
1939
  }
1937
- function xr(t) {
1940
+ function ei(t) {
1938
1941
  function e(n) {
1939
1942
  return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1940
1943
  }
@@ -1942,7 +1945,7 @@ function xr(t) {
1942
1945
  h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1943
1946
  const u = t.fieldCtx[l] || t.nameCtx[l];
1944
1947
  u && u.forEach((f) => {
1945
- F(f.rule, o, a), t.$render.clearCache(f);
1948
+ k(f.rule, o, a), t.$render.clearCache(f);
1946
1949
  });
1947
1950
  });
1948
1951
  }
@@ -2035,7 +2038,7 @@ function xr(t) {
2035
2038
  if (l) {
2036
2039
  const u = E(n, a);
2037
2040
  l.forEach((f) => {
2038
- F(f.rule, "value", u ? n[a] : void 0);
2041
+ k(f.rule, "value", u ? n[a] : void 0);
2039
2042
  }), delete o[a];
2040
2043
  }
2041
2044
  }), C(t.appendData, o);
@@ -2048,7 +2051,7 @@ function xr(t) {
2048
2051
  const l = t.fieldCtx[a];
2049
2052
  if (!l) return t.appendData[a] = o[a];
2050
2053
  l.forEach((u) => {
2051
- F(u.rule, "value", o[a]);
2054
+ k(u.rule, "value", o[a]);
2052
2055
  });
2053
2056
  });
2054
2057
  }, !0);
@@ -2112,7 +2115,7 @@ function xr(t) {
2112
2115
  disabled(n, o) {
2113
2116
  e(o).forEach((a) => {
2114
2117
  t.getCtxs(a).forEach((l) => {
2115
- F(l.rule.props, "disabled", !!n);
2118
+ k(l.rule.props, "disabled", !!n);
2116
2119
  });
2117
2120
  }), t.refresh();
2118
2121
  },
@@ -2170,7 +2173,7 @@ function xr(t) {
2170
2173
  t.$manager.updateOptions(t.options), s.refresh();
2171
2174
  },
2172
2175
  hideForm: (n) => {
2173
- F(t.vm, "isShow", !n);
2176
+ k(t.vm, "isShow", !n);
2174
2177
  },
2175
2178
  changeStatus: () => t.changeStatus,
2176
2179
  clearChangeStatus: () => {
@@ -2215,7 +2218,7 @@ function xr(t) {
2215
2218
  },
2216
2219
  setEffect(n, o, a) {
2217
2220
  const l = t.getCtx(n);
2218
- l && o && (o[0] === "$" && (o = o.substr(1)), E(l.rule, "$" + o) && F(l.rule, "$" + o, a), E(l.rule, "effect") || F(l.rule, "effect", {}), F(l.rule.effect, o, a));
2221
+ l && o && (o[0] === "$" && (o = o.substr(1)), E(l.rule, "$" + o) && k(l.rule, "$" + o, a), E(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2219
2222
  },
2220
2223
  clearEffectData(n, o) {
2221
2224
  const a = t.getCtx(n);
@@ -2278,9 +2281,9 @@ function xr(t) {
2278
2281
  if (!l)
2279
2282
  return [];
2280
2283
  const u = [];
2281
- return ((d) => {
2282
- d && d.forEach((p) => {
2283
- typeof p == "object" && (p.field && u.push(p), u.push(...s.getChildrenRuleList(p)));
2284
+ return ((p) => {
2285
+ p && p.forEach((d) => {
2286
+ typeof d == "object" && (d.field && u.push(d), u.push(...s.getChildrenRuleList(d)));
2284
2287
  });
2285
2288
  })(a ? a.loadChildrenPending() : l.children), u;
2286
2289
  },
@@ -2302,7 +2305,7 @@ function xr(t) {
2302
2305
  const l = s.getChildrenRuleList(n);
2303
2306
  t.deferSyncValue(() => {
2304
2307
  l.forEach((u) => {
2305
- E(o, u.field) ? F(u, "value", o[u.field]) : a && F(u, "value", void 0);
2308
+ E(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2306
2309
  });
2307
2310
  });
2308
2311
  },
@@ -2352,12 +2355,12 @@ function xr(t) {
2352
2355
  },
2353
2356
  watchFetch(n, o, a, l) {
2354
2357
  return t.fc.watchLoadData((u, f) => {
2355
- let d = G(n);
2356
- d = t.loadFetchVar(d, u), !(l && l(d, f) === !1) && t.beforeFetch(d).then(() => yt(d, t.fc.create.fetch, s).then((p) => {
2357
- O(() => d.onSuccess && d.onSuccess(p)), o && o(p, f);
2358
- }).catch((p) => {
2359
- O(() => d.onError && d.onError(p)), a && a(p);
2360
- })).catch((p) => {
2358
+ let p = G(n);
2359
+ p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((d) => {
2360
+ O(() => p.onSuccess && p.onSuccess(d)), o && o(d, f);
2361
+ }).catch((d) => {
2362
+ O(() => p.onError && p.onError(d)), a && a(d);
2363
+ })).catch((d) => {
2361
2364
  });
2362
2365
  }, n.wait == null ? 1e3 : n.wait);
2363
2366
  },
@@ -2387,7 +2390,7 @@ function xr(t) {
2387
2390
  };
2388
2391
  }), s.changeValue = s.changeField = s.setValue, s;
2389
2392
  }
2390
- function ei(t) {
2393
+ function ti(t) {
2391
2394
  C(t.prototype, {
2392
2395
  initCache() {
2393
2396
  this.clearCacheAll();
@@ -2428,7 +2431,7 @@ function q(t) {
2428
2431
  function Ht(t) {
2429
2432
  return t.replace(t[0], t[0].toLowerCase());
2430
2433
  }
2431
- function ti(t) {
2434
+ function ri(t) {
2432
2435
  C(t.prototype, {
2433
2436
  initRender() {
2434
2437
  this.cacheConfig = {};
@@ -2446,7 +2449,7 @@ function ti(t) {
2446
2449
  if (!this.vm.isShow)
2447
2450
  return;
2448
2451
  this.$manager.beforeRender();
2449
- const e = ke();
2452
+ const e = Fe();
2450
2453
  return this.sort.forEach((r) => {
2451
2454
  this.renderSlot(e, this.$handle.ctxs[r]);
2452
2455
  }), this.$manager.render(e);
@@ -2509,21 +2512,21 @@ function ti(t) {
2509
2512
  };
2510
2513
  l.length && i.slotUpdate && O(() => i.slotUpdate(u));
2511
2514
  let f = [];
2512
- const d = e.loadChildrenPending();
2513
- e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach((g) => {
2515
+ const p = e.loadChildrenPending();
2516
+ e.parser.renderChildren ? f = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(p, e)), Object.keys(n.renderSlots || {}).forEach((y) => {
2514
2517
  f.push(this.renderRule({
2515
2518
  type: "template",
2516
- slot: g
2519
+ slot: y
2517
2520
  }, (() => {
2518
- if (h.Function(n.renderSlots[g]))
2519
- return O(() => n.renderSlots[g]());
2520
- const _ = this.parseSide(n.renderSlots[g], e);
2521
+ if (h.Function(n.renderSlots[y]))
2522
+ return O(() => n.renderSlots[y]());
2523
+ const _ = this.parseSide(n.renderSlots[y], e);
2521
2524
  return this.renderRule(_);
2522
2525
  })()));
2523
2526
  });
2524
- const p = this.getTypeSlot(e);
2525
- let y;
2526
- return p ? (u.children = f, y = p(u)) : y = a ? e.parser.preview(We(f), e) : e.parser.render(We(f), e), y = this.renderSides(y, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), y = this.$manager.makeWrap(e, y)), e.none && (Array.isArray(y) ? y = y.map((g) => !g || !g.tag ? g : this.none(g)) : y = this.none(y)), o && this.setCache(e, () => this.stable(y), r), y;
2527
+ const d = this.getTypeSlot(e);
2528
+ let g;
2529
+ return d ? (u.children = f, g = d(u)) : g = a ? e.parser.preview(We(f), e) : e.parser.render(We(f), e), g = this.renderSides(g, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), g = this.$manager.makeWrap(e, g)), e.none && (Array.isArray(g) ? g = g.map((y) => !y || !y.tag ? y : this.none(y)) : g = this.none(g)), o && this.setCache(e, () => this.stable(g), r), g;
2527
2530
  }, this.setCache(e, s, r);
2528
2531
  }
2529
2532
  return (...s) => {
@@ -2660,7 +2663,7 @@ function ti(t) {
2660
2663
  },
2661
2664
  renderChildren(e, r, i) {
2662
2665
  if (!h.trueArray(e)) return [];
2663
- const s = ke();
2666
+ const s = Fe();
2664
2667
  return e.map((n) => {
2665
2668
  if (n) {
2666
2669
  if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
@@ -2686,7 +2689,7 @@ function ti(t) {
2686
2689
  },
2687
2690
  createRuleVnode(e, r, i) {
2688
2691
  this.force = i !== !1, this.tmpInput = r;
2689
- const s = ke();
2692
+ const s = Fe();
2690
2693
  return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
2691
2694
  },
2692
2695
  renderRule(e, r, i) {
@@ -2701,7 +2704,7 @@ function ti(t) {
2701
2704
  a && (s = q(a));
2702
2705
  }
2703
2706
  if (!s) return;
2704
- const n = ke();
2707
+ const n = Fe();
2705
2708
  h.trueArray(e.children) && e.children.forEach((a) => {
2706
2709
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2707
2710
  });
@@ -2710,7 +2713,7 @@ function ti(t) {
2710
2713
  }
2711
2714
  });
2712
2715
  }
2713
- let ri = 1;
2716
+ let ii = 1;
2714
2717
  function it(t) {
2715
2718
  C(this, {
2716
2719
  $handle: t,
@@ -2720,7 +2723,7 @@ function it(t) {
2720
2723
  vNode: new t.fc.CreateNode(t.vm),
2721
2724
  force: !1,
2722
2725
  tmpInput: null,
2723
- id: ri++
2726
+ id: ii++
2724
2727
  }), Tt(this, {
2725
2728
  options() {
2726
2729
  return t.options;
@@ -2730,9 +2733,9 @@ function it(t) {
2730
2733
  }
2731
2734
  }), this.initCache(), this.initRender();
2732
2735
  }
2733
- ei(it);
2734
2736
  ti(it);
2735
- function ii(t) {
2737
+ ri(it);
2738
+ function ni(t) {
2736
2739
  C(t.prototype, {
2737
2740
  parseInjectEvent(e, r) {
2738
2741
  const i = e.inject || this.options.injectEvent;
@@ -2759,17 +2762,17 @@ function ii(t) {
2759
2762
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: l } = s, u = s[r ? "emit" : "nativeEmit"] || [];
2760
2763
  return h.trueArray(u) && u.forEach((f) => {
2761
2764
  if (!f) return;
2762
- let d, p = n || o || a;
2763
- if (h.Object(f) && (d = f.inject, f = f.name, p = f.prefix || p), p) {
2764
- r || (p = `native-${p}`);
2765
- const y = be(`${p}-${f}`), g = (..._) => {
2766
- this.vm.$emit(y, ..._), this.vm.$emit("emit-event", y, ..._), this.bus.$emit(y, ..._);
2765
+ let p, d = n || o || a;
2766
+ if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2767
+ r || (d = `native-${d}`);
2768
+ const g = be(`${d}-${f}`), y = (..._) => {
2769
+ this.vm.$emit(g, ..._), this.vm.$emit("emit-event", g, ..._), this.bus.$emit(g, ..._);
2767
2770
  };
2768
- if (g.__emit = !0, !d && l === !1)
2769
- i[f] = g;
2771
+ if (y.__emit = !0, !p && l === !1)
2772
+ i[f] = y;
2770
2773
  else {
2771
- let _ = d || l || this.options.injectEvent;
2772
- i[f] = h.Undef(_) ? g : this.inject(s, g, _);
2774
+ let _ = p || l || this.options.injectEvent;
2775
+ i[f] = h.Undef(_) ? y : this.inject(s, y, _);
2773
2776
  }
2774
2777
  }
2775
2778
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2799,33 +2802,33 @@ function ii(t) {
2799
2802
  },
2800
2803
  loadStrVar(e, r, i) {
2801
2804
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2802
- const s = e, n = Kr(e), o = (u) => {
2803
- let f = !1, d;
2805
+ const s = e, n = Xr(e), o = (u) => {
2806
+ let f = !1, p;
2804
2807
  if (i && u.indexOf("$form.") === 0) {
2805
- const p = u.split(".");
2806
- p.shift(), E(i.value, p[0]) && (f = !0, d = r ? r({
2807
- id: "$form." + p[0] + "_" + i.rule.__fc__.id,
2808
- getValue: () => L(i.value, p)
2809
- }) : L(i.value, p));
2808
+ const d = u.split(".");
2809
+ d.shift(), E(i.value, d[0]) && (f = !0, p = r ? r({
2810
+ id: "$form." + d[0] + "_" + i.rule.__fc__.id,
2811
+ getValue: () => L(i.value, d)
2812
+ }) : L(i.value, d));
2810
2813
  }
2811
- return f || (d = r ? r(u) : this.fc.getLoadData(u)), d;
2814
+ return f || (p = r ? r(u) : this.fc.getLoadData(u)), p;
2812
2815
  }, a = (u) => {
2813
2816
  const f = [];
2814
- u.forEach((p) => {
2815
- p.key ? f.push(p.key) : p.children && f.push(a(p.children));
2817
+ u.forEach((d) => {
2818
+ d.key ? f.push(d.key) : d.children && f.push(a(d.children));
2816
2819
  });
2817
- let d = !1;
2818
- return f.forEach((p, y) => {
2819
- p != null && (p.indexOf("'") === 0 || p.indexOf('"') === 0) && (f[y] = p.slice(1, -1), d = !0);
2820
- }), f.length === 1 && (d || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2820
+ let p = !1;
2821
+ return f.forEach((d, g) => {
2822
+ d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[g] = d.slice(1, -1), p = !0);
2823
+ }), f.length === 1 && (p || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2821
2824
  };
2822
2825
  let l;
2823
2826
  if (n.forEach((u) => {
2824
- const f = u.split("||"), d = f[0].trim();
2825
- if (d) {
2826
- const p = (f[1] || "").trim(), y = Nt(d);
2827
- let g = O(() => a(y));
2828
- (g == null || g === "") && f.length > 1 && (g = p), l = g, e = e.replaceAll(`{{${u}}}`, g == null ? "" : g);
2827
+ const f = u.split("||"), p = f[0].trim();
2828
+ if (p) {
2829
+ const d = (f[1] || "").trim(), g = Nt(p);
2830
+ let y = O(() => a(g));
2831
+ (y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2829
2832
  }
2830
2833
  }), n.length === 1 && s === `{{${n[0]}}}`)
2831
2834
  return l;
@@ -2848,12 +2851,12 @@ function ii(t) {
2848
2851
  });
2849
2852
  }
2850
2853
  const $t = ["hook:updated", "hook:mounted"];
2851
- function ni(t) {
2854
+ function si(t) {
2852
2855
  C(t.prototype, {
2853
2856
  usePage() {
2854
2857
  const e = this.options.page;
2855
2858
  if (!e) return;
2856
- let r = 25, i = si(this.rules);
2859
+ let r = 25, i = oi(this.rules);
2857
2860
  h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), C(this, {
2858
2861
  first: r,
2859
2862
  limit: i,
@@ -2868,10 +2871,10 @@ function ni(t) {
2868
2871
  }
2869
2872
  });
2870
2873
  }
2871
- function si(t) {
2874
+ function oi(t) {
2872
2875
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2873
2876
  }
2874
- function oi(t) {
2877
+ function ai(t) {
2875
2878
  C(t.prototype, {
2876
2879
  clearNextTick() {
2877
2880
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
@@ -2886,7 +2889,7 @@ function oi(t) {
2886
2889
  }
2887
2890
  });
2888
2891
  }
2889
- function ai(t) {
2892
+ function li(t) {
2890
2893
  Object.defineProperties(t.origin, {
2891
2894
  __fc__: Ze(ge(t), !0)
2892
2895
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
@@ -2921,7 +2924,7 @@ function zt(t, e, r) {
2921
2924
  exportEl: void 0,
2922
2925
  defaultValue: s ? G(r) : void 0,
2923
2926
  field: e.field || void 0
2924
- }), this.updateKey(), ai(this), this.update(t, !0);
2927
+ }), this.updateKey(), li(this), this.update(t, !0);
2925
2928
  }
2926
2929
  C(zt.prototype, {
2927
2930
  getParentGroup() {
@@ -2960,8 +2963,8 @@ C(zt.prototype, {
2960
2963
  rule: this.rule,
2961
2964
  api: this.$api,
2962
2965
  update: (u) => {
2963
- const f = u || i, d = this.getPending(e, i);
2964
- this.setPending(e, r, f), o && o(f, d);
2966
+ const f = u || i, p = this.getPending(e, i);
2967
+ this.setPending(e, r, f), o && o(f, p);
2965
2968
  },
2966
2969
  reload: () => {
2967
2970
  const u = this.getPending(e, i);
@@ -3073,7 +3076,7 @@ C(zt.prototype, {
3073
3076
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
3074
3077
  }
3075
3078
  });
3076
- function li(t) {
3079
+ function ui(t) {
3077
3080
  C(t.prototype, {
3078
3081
  nextRefresh(e) {
3079
3082
  const r = this.loadedId;
@@ -3085,7 +3088,7 @@ function li(t) {
3085
3088
  const r = ht(e);
3086
3089
  return Object.defineProperties(r, {
3087
3090
  __origin__: Ze(e, !0)
3088
- }), ui(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3091
+ }), fi(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3089
3092
  i && this.loadFn(i, r);
3090
3093
  }), this.loadCtrl(r), r.update && (r.update = W(r.update)), r;
3091
3094
  },
@@ -3135,27 +3138,27 @@ function li(t) {
3135
3138
  let l = ht(o);
3136
3139
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3137
3140
  this.fc.targetFormDriver("loadRule", { rule: l, api: this.api }, this.fc), this.ruleEffect(l, "init", { repeat: u() }), u() && this.vm.$emit("repeat-field", o, this.api);
3138
- let f, d = !1, p = !!o.__fc__, y = l.value;
3139
- if (p) {
3140
- if (f = o.__fc__, y = f.defaultValue, f.deleted) {
3141
+ let f, p = !1, d = !!o.__fc__, g = l.value;
3142
+ if (d) {
3143
+ if (f = o.__fc__, g = f.defaultValue, f.deleted) {
3141
3144
  if (bt(f))
3142
3145
  return;
3143
3146
  f.update(this);
3144
3147
  } else if (!f.check(this)) {
3145
3148
  if (bt(f))
3146
3149
  return;
3147
- e[a] = o = o._clone ? o._clone() : Pt(_e(o)), f = null, d = !0;
3150
+ e[a] = o = o._clone ? o._clone() : Pt(_e(o)), f = null, p = !0;
3148
3151
  }
3149
3152
  }
3150
3153
  if (f)
3151
3154
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3152
3155
  else {
3153
3156
  const D = this.parseRule(o);
3154
- f = new zt(this, D, y), this.bindParser(f);
3157
+ f = new zt(this, D, g), this.bindParser(f);
3155
3158
  }
3156
- [!1, !0].forEach((D) => this.parseEmit(f, D)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !d && !p && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3157
- const g = f.loadChildrenPending();
3158
- if (f.parser.loadChildren === !1 || s(g, f), !r) {
3159
+ [!1, !0].forEach((D) => this.parseEmit(f, D)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !p && !d && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3160
+ const y = f.loadChildrenPending();
3161
+ if (f.parser.loadChildren === !1 || s(y, f), !r) {
3159
3162
  const D = i(a);
3160
3163
  D > -1 || !a ? this.sort.splice(D + 1, 0, f.id) : this.sort.push(f.id);
3161
3164
  }
@@ -3170,16 +3173,16 @@ function li(t) {
3170
3173
  return e.input && e.rule.control && this.useCtrl(e);
3171
3174
  },
3172
3175
  useCtrl(e) {
3173
- const r = fi(e), i = [], s = this.api;
3176
+ const r = ci(e), i = [], s = this.api;
3174
3177
  if (!r.length) return !1;
3175
3178
  for (let a = 0; a < r.length; a++) {
3176
- const l = r[a], u = l.handle || function(d) {
3177
- return (ce[l.condition || "=="] || ce["=="])(d, l.value);
3179
+ const l = r[a], u = l.handle || function(p) {
3180
+ return (ce[l.condition || "=="] || ce["=="])(p, l.value);
3178
3181
  };
3179
3182
  if (!h.trueArray(l.rule)) continue;
3180
3183
  const f = U(v({}, l), {
3181
3184
  valid: O(() => u(e.rule.value, s)),
3182
- ctrl: ci(e, l.rule),
3185
+ ctrl: hi(e, l.rule),
3183
3186
  isHidden: h.String(l.rule[0])
3184
3187
  });
3185
3188
  f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || i.push(f);
@@ -3188,16 +3191,16 @@ function li(t) {
3188
3191
  const n = [];
3189
3192
  let o = !1;
3190
3193
  return this.deferSyncValue(() => {
3191
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: p, ctrl: y, method: g }) => {
3194
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: g, method: y }) => {
3192
3195
  if (a) {
3193
3196
  l ? e.ctrlRule.push({
3194
3197
  __ctrl: !0,
3195
3198
  children: u,
3196
3199
  valid: l
3197
- }) : y && e.ctrlRule.splice(e.ctrlRule.indexOf(y) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3198
- g === "disabled" || g === "enabled" ? this.api.disabled(!l, u) : g === "display" || g === "show" ? this.api.display(l, u) : g === "required" ? (u.forEach((_) => {
3200
+ }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3201
+ y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((_) => {
3199
3202
  this.api.setEffect(_, "required", l);
3200
- }), l || this.api.clearValidateState(u)) : g === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3203
+ }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3201
3204
  });
3202
3205
  return;
3203
3206
  }
@@ -3210,11 +3213,11 @@ function li(t) {
3210
3213
  children: u
3211
3214
  };
3212
3215
  e.ctrlRule.push(_), this.bus.$once("load-start", () => {
3213
- f ? s.prepend(_, f, p) : d || p ? s.append(_, d || e.id, p) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3216
+ f ? s.prepend(_, f, d) : p || d ? s.append(_, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3214
3217
  });
3215
3218
  } else {
3216
- e.ctrlRule.splice(e.ctrlRule.indexOf(y), 1);
3217
- const _ = Q(y);
3219
+ e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3220
+ const _ = Q(g);
3218
3221
  _ && _.rm();
3219
3222
  }
3220
3223
  });
@@ -3242,17 +3245,17 @@ function li(t) {
3242
3245
  }
3243
3246
  });
3244
3247
  }
3245
- function ui(t) {
3248
+ function fi(t) {
3246
3249
  const e = Mt();
3247
3250
  return Object.keys(e).forEach((r) => {
3248
- E(t, r) || F(t, r, e[r]);
3251
+ E(t, r) || k(t, r, e[r]);
3249
3252
  }), t;
3250
3253
  }
3251
- function fi(t) {
3254
+ function ci(t) {
3252
3255
  const e = t.rule.control || [];
3253
3256
  return h.Object(e) ? [e] : e;
3254
3257
  }
3255
- function ci(t, e) {
3258
+ function hi(t, e) {
3256
3259
  for (let r = 0; r < t.ctrlRule.length; r++) {
3257
3260
  const i = t.ctrlRule[r];
3258
3261
  if (i.children === e)
@@ -3262,7 +3265,7 @@ function ci(t, e) {
3262
3265
  function bt(t) {
3263
3266
  return !!t.rule.__ctrl;
3264
3267
  }
3265
- function hi(t) {
3268
+ function di(t) {
3266
3269
  C(t.prototype, {
3267
3270
  setValue(e, r, i, s) {
3268
3271
  e.deleted || (e.rule.value = r, this.changeStatus = !0, this.nextRefresh(), this.$render.clearCache(e), this.setFormData(e, i), this.syncValue(), this.valueChange(e, r), this.vm.$emit("change", e.field, r, e.origin, this.api, s || !1), this.effect(e, "value"), this.targetHook(e, "value", { value: r }), this.emitEvent("change", e.field, r, {
@@ -3295,7 +3298,7 @@ function hi(t) {
3295
3298
  setFormData(e, r) {
3296
3299
  e.modelValue = r;
3297
3300
  const i = e.getParentGroup();
3298
- i && (this.subRuleData[i.id] || F(this.subRuleData, i.id, {}), F(this.subRuleData[i.id], e.field, e.rule.value)), F(this.formData, e.id, r);
3301
+ i && (this.subRuleData[i.id] || k(this.subRuleData, i.id, {}), k(this.subRuleData[i.id], e.field, e.rule.value)), k(this.formData, e.id, r);
3299
3302
  },
3300
3303
  rmSubRuleData(e) {
3301
3304
  const r = e.getParentGroup();
@@ -3387,8 +3390,8 @@ const je = {
3387
3390
  },
3388
3391
  mergeProp(t) {
3389
3392
  }
3390
- }, di = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Re = Symbol("oldValue");
3391
- function pi(t) {
3393
+ }, pi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Re = Symbol("oldValue");
3394
+ function mi(t) {
3392
3395
  C(t.prototype, {
3393
3396
  getCtx(e) {
3394
3397
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
@@ -3436,7 +3439,7 @@ function pi(t) {
3436
3439
  this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
3437
3440
  },
3438
3441
  watchCtx(e) {
3439
- if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && di.indexOf(i) === -1).forEach((i) => {
3442
+ if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && pi.indexOf(i) === -1).forEach((i) => {
3440
3443
  const s = Ae(e.rule, i), n = i === "children";
3441
3444
  e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3442
3445
  let l = s.value;
@@ -3572,7 +3575,7 @@ function pi(t) {
3572
3575
  case "len":
3573
3576
  case "maxLen":
3574
3577
  case "minLen":
3575
- const a = (g) => n === "len" ? g === o : n === "maxLen" ? g <= o : g >= o;
3578
+ const a = (y) => n === "len" ? y === o : n === "maxLen" ? y <= o : y >= o;
3576
3579
  if (Array.isArray(r)) {
3577
3580
  if (!a(r.length))
3578
3581
  return n;
@@ -3614,7 +3617,7 @@ function pi(t) {
3614
3617
  return n;
3615
3618
  break;
3616
3619
  case "hasKeys":
3617
- if (typeof r != "object" || Array.isArray(o) && o.some((g) => !(g in r)))
3620
+ if (typeof r != "object" || Array.isArray(o) && o.some((y) => !(y in r)))
3618
3621
  return n;
3619
3622
  break;
3620
3623
  case "email":
@@ -3651,18 +3654,18 @@ function pi(t) {
3651
3654
  const l = a.mode === "OR";
3652
3655
  let u = !0;
3653
3656
  for (let f = 0; f < a.group.length; f++) {
3654
- const d = a.group[f];
3655
- let p, y = null;
3656
- if (d.variable)
3657
- y = JSON.stringify(this.fc.getLoadData(d.variable) || "");
3658
- else if (d.field)
3659
- y = pt(d.field || "");
3660
- else if (!d.mode)
3657
+ const p = a.group[f];
3658
+ let d, g = null;
3659
+ if (p.variable)
3660
+ g = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3661
+ else if (p.field)
3662
+ g = pt(p.field || "");
3663
+ else if (!p.mode)
3661
3664
  return !0;
3662
- let g = d.compare;
3663
- if (g && (g = pt(g || "")), d.mode ? p = n(d) : ce[d.condition] ? h.Function(d.handler) ? p = O(() => d.handler(this.api, e.rule)) : p = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${y}, ${g || "$val"}); }}}}`).call(this.api.form, ce, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : p = !1, l && p)
3665
+ let y = p.compare;
3666
+ if (y && (y = pt(y || "")), p.mode ? d = n(p) : ce[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${g}, ${y || "$val"}); }}}}`).call(this.api.form, ce, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
3664
3667
  return !0;
3665
- l || (u = u && p);
3668
+ l || (u = u && d);
3666
3669
  }
3667
3670
  return l ? !1 : u;
3668
3671
  };
@@ -3718,7 +3721,7 @@ function pi(t) {
3718
3721
  }
3719
3722
  });
3720
3723
  }
3721
- function mi(t) {
3724
+ function gi(t) {
3722
3725
  C(t.prototype, {
3723
3726
  mounted() {
3724
3727
  const e = () => {
@@ -3738,21 +3741,35 @@ function mi(t) {
3738
3741
  this.bus.$emit(e, ...r);
3739
3742
  },
3740
3743
  targetHook(e, r, i) {
3741
- var n, o;
3742
- let s = (o = (n = e.prop) == null ? void 0 : n.hook) == null ? void 0 : o[r];
3743
- s && (s = Array.isArray(s) ? s : [s], s.forEach((a) => {
3744
- O(() => a(U(v({}, i || {}), { self: e.rule, rule: e.rule, $f: this.api, api: this.api, option: this.vm.$props.option })));
3745
- }));
3744
+ var l, u, f, p;
3745
+ let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, g) => {
3746
+ d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
3747
+ O(() => y(U(v({}, i || {}), {
3748
+ self: e.rule,
3749
+ rule: e.rule,
3750
+ parent: g == null ? void 0 : g.rule,
3751
+ $f: this.api,
3752
+ api: this.api,
3753
+ option: this.vm.$props.option
3754
+ })));
3755
+ }));
3756
+ };
3757
+ n(s);
3758
+ let o = "deep" + qr(r), a = e.parent;
3759
+ for (; a; ) {
3760
+ let d = (p = (f = a.prop) == null ? void 0 : f.hook) == null ? void 0 : p[o];
3761
+ n(d, a), a = a.parent;
3762
+ }
3746
3763
  }
3747
3764
  });
3748
3765
  }
3749
- function gi(t) {
3766
+ function yi(t) {
3750
3767
  C(t.prototype, {
3751
3768
  useProvider() {
3752
3769
  const e = this.fc.providers;
3753
3770
  Object.keys(e).forEach((r) => {
3754
3771
  let i = e[r];
3755
- h.Function(i) && (i = i(this.fc)), i._c = $i(i), this.onEffect(i), this.providers[r] = i;
3772
+ h.Function(i) && (i = i(this.fc)), i._c = bi(i), this.onEffect(i), this.providers[r] = i;
3756
3773
  });
3757
3774
  },
3758
3775
  onEffect(e) {
@@ -3809,28 +3826,28 @@ function gi(t) {
3809
3826
  Object.keys(l).forEach((u) => {
3810
3827
  const f = this.providers[u];
3811
3828
  if (!f || f.input && !i) return;
3812
- let d;
3829
+ let p;
3813
3830
  if (!f._c)
3814
- d = "*";
3831
+ p = "*";
3815
3832
  else if (f._used.indexOf(s) > -1)
3816
- d = s;
3833
+ p = s;
3817
3834
  else
3818
3835
  return;
3819
- const p = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3820
- e && (p.getProp = () => e.effectData(u), p.clearProp = () => e.clearEffectData(u), p.mergeProp = (y) => x(p.getProp(), [y]), p.id = e.id), this.bus.$emit(`p:${u}:${d}:${f.input ? 1 : 0}`, o, [p, r, this.api]);
3836
+ const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3837
+ e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (g) => x(d.getProp(), [g]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3821
3838
  });
3822
3839
  }
3823
3840
  });
3824
3841
  }
3825
- function yi(t) {
3842
+ function $i(t) {
3826
3843
  return t.filter(function(e, r, i) {
3827
3844
  return i.indexOf(e, 0) === r;
3828
3845
  });
3829
3846
  }
3830
- function $i(t) {
3847
+ function bi(t) {
3831
3848
  const e = t.components;
3832
3849
  if (Array.isArray(e)) {
3833
- const r = yi(e.filter((i) => i !== "*"));
3850
+ const r = $i(e.filter((i) => i !== "*"));
3834
3851
  return r.length ? r : !1;
3835
3852
  } else return h.String(e) ? [e] : !1;
3836
3853
  }
@@ -3872,7 +3889,7 @@ function K(t) {
3872
3889
  }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
3873
3890
  const i = O(() => r(e, this));
3874
3891
  return i && i !== e && C(e, i), e;
3875
- }, xr(this));
3892
+ }, ei(this));
3876
3893
  }
3877
3894
  C(K.prototype, {
3878
3895
  initData(t) {
@@ -3912,26 +3929,26 @@ C(K.prototype, {
3912
3929
  });
3913
3930
  }
3914
3931
  });
3915
- ii(K);
3916
3932
  ni(K);
3917
- oi(K);
3918
- li(K);
3919
- hi(K);
3920
- pi(K);
3933
+ si(K);
3934
+ ai(K);
3935
+ ui(K);
3936
+ di(K);
3921
3937
  mi(K);
3922
3938
  gi(K);
3923
- const bi = "fcFragment", Me = {
3924
- name: bi,
3939
+ yi(K);
3940
+ const vi = "fcFragment", Me = {
3941
+ name: vi,
3925
3942
  functional: !0,
3926
3943
  props: ["vnode"],
3927
3944
  render(t, e) {
3928
3945
  return e.props.vnode ? e.props.vnode : e.children;
3929
3946
  }
3930
3947
  };
3931
- function vi(t) {
3948
+ function _i(t) {
3932
3949
  return h.String(t) ? { domProps: { innerHTML: t } } : t;
3933
3950
  }
3934
- function _i() {
3951
+ function Ci() {
3935
3952
  const t = {};
3936
3953
  function e(r) {
3937
3954
  r && this.setVm(r);
@@ -3946,7 +3963,7 @@ function _i() {
3946
3963
  },
3947
3964
  makeComponent(r, i, s) {
3948
3965
  var o;
3949
- let n = this.$h(r, vi(i), s || []);
3966
+ let n = this.$h(r, _i(i), s || []);
3950
3967
  if ((o = n == null ? void 0 : n.componentOptions) != null && o.propsData && (i != null && i.props)) {
3951
3968
  const a = Object.keys(n.componentOptions.propsData);
3952
3969
  n.data.attrs || (n.data.attrs = {}), Object.keys(i.props).forEach((l) => {
@@ -3963,7 +3980,7 @@ function _i() {
3963
3980
  },
3964
3981
  use(r) {
3965
3982
  Object.keys(r).forEach((i) => {
3966
- const s = be(i), n = Hr(i).toLocaleLowerCase(), o = r[i];
3983
+ const s = be(i), n = zr(i).toLocaleLowerCase(), o = r[i];
3967
3984
  [i, s, n].forEach((a) => {
3968
3985
  e.alias(i, o), e.prototype[a] = function(l, u) {
3969
3986
  return this.make(o, l, u);
@@ -3973,7 +3990,7 @@ function _i() {
3973
3990
  }
3974
3991
  }), e;
3975
3992
  }
3976
- function Ci(t) {
3993
+ function wi(t) {
3977
3994
  class e extends Jt {
3978
3995
  }
3979
3996
  return Object.assign(e.prototype, t), e;
@@ -4037,7 +4054,7 @@ C(Jt.prototype, {
4037
4054
  render(t) {
4038
4055
  }
4039
4056
  });
4040
- const wi = function(t) {
4057
+ const Oi = function(t) {
4041
4058
  const e = {
4042
4059
  name: "loadData",
4043
4060
  _fn: [],
@@ -4047,14 +4064,14 @@ const wi = function(t) {
4047
4064
  const o = [];
4048
4065
  n.forEach((a) => {
4049
4066
  if (a && (a.attr || a.template)) {
4050
- let l = (d) => {
4051
- let p;
4052
- i && i.__fc__ && (p = i.__fc__.getParentGroup());
4053
- let y;
4054
- a.template ? y = t.$handle.loadStrVar(a.template, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null) : a.handler && h.Function(a.handler) ? y = a.handler(d, i, s) : y = t.$handle.loadStrVar(`{{${a.attr}}}`, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null), (y == null || y === "") && a.default != null && (y = a.default), a.copy !== !1 && (y = G(y));
4055
- const g = a.modify ? i : r.getProp();
4056
- a.to === "child" ? g.children ? F(g.children, 0, y) : F(g, "children", [y]) : se(g, a.to || "options", y), s.sync(i);
4057
- }, u = (d) => l(d);
4067
+ let l = (p) => {
4068
+ let d;
4069
+ i && i.__fc__ && (d = i.__fc__.getParentGroup());
4070
+ let g;
4071
+ a.template ? g = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? g = a.handler(p, i, s) : g = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (g == null || g === "") && a.default != null && (g = a.default), a.copy !== !1 && (g = G(g));
4072
+ const y = a.modify ? i : r.getProp();
4073
+ a.to === "child" ? y.children ? k(y.children, 0, g) : k(y, "children", [g]) : se(y, a.to || "options", g), s.sync(i);
4074
+ }, u = (p) => l(p);
4058
4075
  const f = t.watchLoadData(u);
4059
4076
  l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
4060
4077
  }
@@ -4068,7 +4085,7 @@ const wi = function(t) {
4068
4085
  }
4069
4086
  };
4070
4087
  return e.watch = e.loaded, e;
4071
- }, Oi = function(t) {
4088
+ }, ki = function(t) {
4072
4089
  const e = {
4073
4090
  name: "t",
4074
4091
  _fn: [],
@@ -4080,13 +4097,13 @@ const wi = function(t) {
4080
4097
  const l = n[a];
4081
4098
  if (l) {
4082
4099
  const u = typeof l == "object";
4083
- let f = (y) => {
4084
- let g = t.t(u ? l.attr : l, u ? l.params : null, y);
4100
+ let f = (g) => {
4101
+ let y = t.t(u ? l.attr : l, u ? l.params : null, g);
4085
4102
  const _ = u && l.modify ? i : r.getProp();
4086
- a === "child" ? _.children ? F(_.children, 0, g) : F(_, "children", [g]) : se(_, a, g), s.sync(i);
4087
- }, d = (y) => f(y);
4088
- const p = t.watchLoadData(d);
4089
- f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(p) : p();
4103
+ a === "child" ? _.children ? k(_.children, 0, y) : k(_, "children", [y]) : se(_, a, y), s.sync(i);
4104
+ }, p = (g) => f(g);
4105
+ const d = t.watchLoadData(p);
4106
+ f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4090
4107
  }
4091
4108
  }), this._fn[r.id] = o;
4092
4109
  },
@@ -4132,55 +4149,55 @@ const wi = function(t) {
4132
4149
  function r(s, n, o) {
4133
4150
  let a = s.value;
4134
4151
  i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
4135
- const l = (d) => {
4136
- d === void 0 ? s.clearProp() : se(s.getProp(), a.to || "options", d), o.sync(n);
4152
+ const l = (p) => {
4153
+ p === void 0 ? s.clearProp() : se(s.getProp(), a.to || "options", p), o.sync(n);
4137
4154
  };
4138
4155
  if (!a || !a.action && !a.key) {
4139
4156
  l(void 0);
4140
4157
  return;
4141
4158
  }
4142
4159
  if (a = G(a), a.to || (a.to = "options"), a.key) {
4143
- const d = t.$handle.options.globalData[a.key];
4144
- if (!d) {
4160
+ const p = t.$handle.options.globalData[a.key];
4161
+ if (!p) {
4145
4162
  l(void 0);
4146
4163
  return;
4147
4164
  }
4148
- if (d.type === "static") {
4149
- l(d.data);
4165
+ if (p.type === "static") {
4166
+ l(p.data);
4150
4167
  return;
4151
4168
  } else
4152
- a = v(v({}, a), d);
4169
+ a = v(v({}, a), p);
4153
4170
  }
4154
4171
  const u = a.onError, f = () => {
4155
4172
  if (!s.getValue())
4156
4173
  return s.clearProp(), o.sync(n), !0;
4157
4174
  };
4158
- i._fn[s.id] = t.watchLoadData(ne((d, p) => {
4159
- if (p && a.watch === !1)
4175
+ i._fn[s.id] = t.watchLoadData(ne((p, d) => {
4176
+ if (d && a.watch === !1)
4160
4177
  return i._fn[s.id]();
4161
- const y = t.$handle.loadFetchVar(G(a), d, n), g = U(v({
4178
+ const g = t.$handle.loadFetchVar(G(a), p, n), y = U(v({
4162
4179
  headers: {}
4163
- }, y), {
4180
+ }, g), {
4164
4181
  onSuccess(_, D) {
4165
4182
  if (f()) return;
4166
4183
  let ee = (T) => D ? T : E(T, "data") ? T.data : T;
4167
- const I = W(y.parse);
4184
+ const I = W(g.parse);
4168
4185
  h.Function(I) ? ee = I : I && h.String(I) && (ee = (T) => L(T, I)), l(ee(_, n, o));
4169
4186
  },
4170
4187
  onError(_) {
4171
- l(void 0), !f() && (u || ((D) => tt(D.message || "fetch fail " + y.action)))(_, n, o);
4188
+ l(void 0), !f() && (u || ((D) => tt(D.message || "fetch fail " + g.action)))(_, n, o);
4172
4189
  }
4173
4190
  });
4174
- t.$handle.beforeFetch(g, { rule: n, api: o }).then(() => {
4175
- if (h.Function(y.action)) {
4176
- y.action(n, o).then((_) => {
4177
- g.onSuccess(_, !0);
4191
+ t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4192
+ if (h.Function(g.action)) {
4193
+ g.action(n, o).then((_) => {
4194
+ y.onSuccess(_, !0);
4178
4195
  }).catch((_) => {
4179
- g.onError(_);
4196
+ y.onError(_);
4180
4197
  });
4181
4198
  return;
4182
4199
  }
4183
- O(() => t.create.fetch(g, { inject: s, rule: n, api: o }));
4200
+ O(() => t.create.fetch(y, { inject: s, rule: n, api: o }));
4184
4201
  }).catch((_) => {
4185
4202
  });
4186
4203
  }, a.wait || 600));
@@ -4199,13 +4216,13 @@ const wi = function(t) {
4199
4216
  }
4200
4217
  };
4201
4218
  return i;
4202
- }, ki = {
4219
+ }, Si = {
4203
4220
  fetch: Fi,
4204
- loadData: wi,
4205
- t: Oi,
4221
+ loadData: Oi,
4222
+ t: ki,
4206
4223
  componentValidate: Wt
4207
4224
  };
4208
- function Si(t) {
4225
+ function Ri(t) {
4209
4226
  t = t || /* @__PURE__ */ new Map();
4210
4227
  const e = {
4211
4228
  $on(r, i) {
@@ -4229,8 +4246,8 @@ function Si(t) {
4229
4246
  };
4230
4247
  return e;
4231
4248
  }
4232
- const Ri = "html", Ei = {
4233
- name: Ri,
4249
+ const Ei = "html", Di = {
4250
+ name: Ei,
4234
4251
  loadChildren: !1,
4235
4252
  render(t, e) {
4236
4253
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
@@ -4239,7 +4256,7 @@ const Ri = "html", Ei = {
4239
4256
  return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
4240
4257
  }
4241
4258
  };
4242
- function Di(t) {
4259
+ function ji(t) {
4243
4260
  t = t + "=";
4244
4261
  const r = decodeURIComponent(document.cookie).split(";");
4245
4262
  for (let i = 0; i < r.length; i++) {
@@ -4257,7 +4274,7 @@ function Di(t) {
4257
4274
  }
4258
4275
  return null;
4259
4276
  }
4260
- function ji(t) {
4277
+ function Ai(t) {
4261
4278
  const e = localStorage.getItem(t);
4262
4279
  if (e)
4263
4280
  try {
@@ -4267,7 +4284,7 @@ function ji(t) {
4267
4284
  }
4268
4285
  return null;
4269
4286
  }
4270
- function Ai(t) {
4287
+ function Ii(t) {
4271
4288
  const e = sessionStorage.getItem(t);
4272
4289
  if (e)
4273
4290
  try {
@@ -4284,16 +4301,16 @@ function nt(t, e) {
4284
4301
  let i = t(r.shift());
4285
4302
  return r.length ? i == null ? null : L(i, r) : i;
4286
4303
  }
4287
- function Ii(t) {
4288
- return nt(Di, t);
4289
- }
4290
4304
  function Vi(t) {
4291
4305
  return nt(ji, t);
4292
4306
  }
4293
4307
  function Pi(t) {
4294
4308
  return nt(Ai, t);
4295
4309
  }
4296
- const Li = {
4310
+ function Li(t) {
4311
+ return nt(Ii, t);
4312
+ }
4313
+ const Bi = {
4297
4314
  en: {
4298
4315
  required: "{title} is required",
4299
4316
  validate: {
@@ -4343,17 +4360,17 @@ const Li = {
4343
4360
  }
4344
4361
  }
4345
4362
  };
4346
- function Bi(t, e) {
4363
+ function Ti(t, e) {
4347
4364
  let r;
4348
4365
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4349
4366
  }
4350
4367
  function Ue() {
4351
- return Bi("name", ...arguments);
4368
+ return Ti("name", ...arguments);
4352
4369
  }
4353
- function Ti(t) {
4370
+ function Ni(t) {
4354
4371
  return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
4355
4372
  }
4356
- function Ni(t, e) {
4373
+ function Mi(t, e) {
4357
4374
  const r = new Vue({
4358
4375
  data() {
4359
4376
  return { rule: t, option: e || {} };
@@ -4364,23 +4381,23 @@ function Ni(t, e) {
4364
4381
  });
4365
4382
  return r.$mount(), r;
4366
4383
  }
4367
- function Mi(t) {
4384
+ function Ui(t) {
4368
4385
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4369
4386
  At.push(...e), xe.push(...r), et.push(...i), Ut([...e, ...r, ...i]);
4370
4387
  }
4371
- let Ui = 1;
4388
+ let qi = 1;
4372
4389
  const M = {}, Ee = Symbol("defValue");
4373
4390
  function Kt(t) {
4374
4391
  const e = {
4375
4392
  [Me.name]: Me
4376
4393
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4377
4394
  t.extendApi
4378
- ], u = v({}, ki), f = Qr();
4379
- let d = { global: {} };
4380
- const p = t.isMobile === !0, y = ie({
4381
- $mobile: p
4382
- }), g = _i(), _ = {}, D = {};
4383
- Mi(t.attrs || {});
4395
+ ], u = v({}, Si), f = Yr();
4396
+ let p = { global: {} };
4397
+ const d = t.isMobile === !0, g = ie({
4398
+ $mobile: d
4399
+ }), y = Ci(), _ = {}, D = {};
4400
+ Ui(t.attrs || {});
4384
4401
  function ee(c) {
4385
4402
  const m = M[c];
4386
4403
  if (Array.isArray(m))
@@ -4402,7 +4419,7 @@ function Kt(t) {
4402
4419
  }));
4403
4420
  }
4404
4421
  function Le(c) {
4405
- g.use(c);
4422
+ y.use(c);
4406
4423
  }
4407
4424
  function de() {
4408
4425
  const c = Ue(...arguments);
@@ -4410,7 +4427,7 @@ function Kt(t) {
4410
4427
  const m = q(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4411
4428
  r[m] = Se($, b || je), f[m] = P(m), $.maker && C(f, $.maker);
4412
4429
  }
4413
- function k(c, m) {
4430
+ function F(c, m) {
4414
4431
  let $;
4415
4432
  if (h.String(c)) {
4416
4433
  if ($ = c, m === void 0)
@@ -4419,10 +4436,10 @@ function Kt(t) {
4419
4436
  $ = q(c.name), m = c;
4420
4437
  if (!$ || !m) return;
4421
4438
  const b = q($);
4422
- e[$] = m, e[b] = m, delete g.aliasMap[$], delete g.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && de($, m.formCreateParser);
4439
+ e[$] = m, e[b] = m, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && de($, m.formCreateParser);
4423
4440
  }
4424
4441
  function R() {
4425
- return Xr(Te, e, i);
4442
+ return Zr(Te, e, i);
4426
4443
  }
4427
4444
  function N() {
4428
4445
  return Me;
@@ -4431,9 +4448,9 @@ function Kt(t) {
4431
4448
  return h.Function(c.install) ? c.install(z, m) : h.Function(c) && c(z, m), this;
4432
4449
  }
4433
4450
  function z(c, m, $) {
4434
- let b = Ni(c, m || {});
4451
+ let b = Mi(c, m || {});
4435
4452
  const w = b.$refs.fc.formCreate;
4436
- return w.$parent = $, Ti(w.options).appendChild(b.$el), w.api();
4453
+ return w.$parent = $, Ni(w.options).appendChild(b.$el), w.api();
4437
4454
  }
4438
4455
  Se(z, D);
4439
4456
  function Zt(c) {
@@ -4447,7 +4464,7 @@ function Kt(t) {
4447
4464
  useApps: o,
4448
4465
  maker: f,
4449
4466
  formulas: _,
4450
- loadData: y
4467
+ loadData: g
4451
4468
  } : delete m.inherit, Kt(m);
4452
4469
  }
4453
4470
  function Qt(c, m) {
@@ -4470,7 +4487,7 @@ function Kt(t) {
4470
4487
  });
4471
4488
  }
4472
4489
  function Be(c, m) {
4473
- se(y, c, m), we(c);
4490
+ se(g, c, m), we(c);
4474
4491
  }
4475
4492
  function Oe(c, m) {
4476
4493
  const $ = (...b) => O(() => m(...b));
@@ -4480,8 +4497,8 @@ function Kt(t) {
4480
4497
  const $ = (c || "").split(".");
4481
4498
  c = $.shift();
4482
4499
  const b = $.join(".");
4483
- if (E(y, c) || F(y, c, Ee), y[c] !== Ee) {
4484
- let w = y[c];
4500
+ if (E(g, c) || k(g, c, Ee), g[c] !== Ee) {
4501
+ let w = g[c];
4485
4502
  return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? m : w;
4486
4503
  } else
4487
4504
  return m;
@@ -4490,22 +4507,22 @@ function Kt(t) {
4490
4507
  l.push(c);
4491
4508
  }
4492
4509
  function tr(c) {
4493
- delete y[c], we(c);
4510
+ delete g[c], we(c);
4494
4511
  }
4495
4512
  function rr(c, m) {
4496
4513
  a.push({ name: c, callback: m });
4497
4514
  }
4498
4515
  function Te(c) {
4499
4516
  C(this, {
4500
- id: Ui++,
4517
+ id: qi++,
4501
4518
  create: z,
4502
4519
  vm: c,
4503
- manager: Ci(t.manager),
4520
+ manager: wi(t.manager),
4504
4521
  parsers: r,
4505
4522
  providers: u,
4506
4523
  modelFields: s,
4507
4524
  formulas: _,
4508
- isMobile: p,
4525
+ isMobile: d,
4509
4526
  rules: c.$options.propsData.rule,
4510
4527
  name: c.$options.propsData.name || Pe(),
4511
4528
  inFor: c.$options.propsData.inFor,
@@ -4517,9 +4534,9 @@ function Kt(t) {
4517
4534
  drivers: n,
4518
4535
  renderDriver: null,
4519
4536
  refreshData: we,
4520
- loadData: y,
4521
- CreateNode: g,
4522
- bus: new Si(),
4537
+ loadData: g,
4538
+ CreateNode: y,
4539
+ bus: new Ri(),
4523
4540
  unwatch: [],
4524
4541
  options: yr({}),
4525
4542
  extendApiFn: l,
@@ -4533,7 +4550,7 @@ function Kt(t) {
4533
4550
  }, { deep: !0 });
4534
4551
  }), C(c.$options.components, e), C(c.$options.directives, i), this.$handle = new K(this), this.name && (this.inFor ? (M[this.name] || (M[this.name] = []), M[this.name].push(this)) : M[this.name] = this);
4535
4552
  }
4536
- Te.isMobile = p, C(Te.prototype, {
4553
+ Te.isMobile = d, C(Te.prototype, {
4537
4554
  init() {
4538
4555
  this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4539
4556
  this.initOptions(), this.$handle.api.refresh();
@@ -4597,7 +4614,7 @@ function Kt(t) {
4597
4614
  let m = this.vm.top.$props.locale, $;
4598
4615
  if (m && typeof m == "object" && ($ = L(m, c)), $ == null) {
4599
4616
  const b = this.options.value.language || {}, w = this.getLocale();
4600
- $ = L(b[w] || {}, c), $ == null && ($ = L(Li[w] || {}, c));
4617
+ $ = L(b[w] || {}, c), $ == null && ($ = L(Bi[w] || {}, c));
4601
4618
  }
4602
4619
  return $;
4603
4620
  },
@@ -4644,7 +4661,7 @@ function Kt(t) {
4644
4661
  return this.$handle.preview;
4645
4662
  {
4646
4663
  const j = this.vm.top.fc.tmpData;
4647
- E(j, w) || F(j, w, Ee), $ = j[w] !== Ee ? L(j, c) : st(c), b = [];
4664
+ E(j, w) || k(j, w, Ee), $ = j[w] !== Ee ? L(j, c) : st(c), b = [];
4648
4665
  }
4649
4666
  }
4650
4667
  $ && b.length && ($ = L($, b));
@@ -4693,13 +4710,13 @@ function Kt(t) {
4693
4710
  resetBtn: {},
4694
4711
  globalEvent: {},
4695
4712
  globalData: {}
4696
- }, G(d));
4713
+ }, G(p));
4697
4714
  this.isSub() && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$options.propsData.option || {}), this.updateOptions(c);
4698
4715
  },
4699
4716
  mergeOptions(c, m, $) {
4700
4717
  return m = v({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4701
4718
  delete m[b];
4702
- }), m.global && (c.global = Jr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4719
+ }), m.global && (c.global = Wr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4703
4720
  },
4704
4721
  updateOptions(c) {
4705
4722
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4732,7 +4749,7 @@ function Kt(t) {
4732
4749
  C(c, {
4733
4750
  version: t.version,
4734
4751
  ui: t.ui,
4735
- isMobile: p,
4752
+ isMobile: d,
4736
4753
  extendApi: er,
4737
4754
  getData: st,
4738
4755
  setDataDriver: Oe,
@@ -4740,7 +4757,7 @@ function Kt(t) {
4740
4757
  removeData: tr,
4741
4758
  refreshData: we,
4742
4759
  maker: f,
4743
- component: k,
4760
+ component: F,
4744
4761
  directive: T,
4745
4762
  setModelField: Qt,
4746
4763
  setFormula: Yt,
@@ -4768,7 +4785,7 @@ function Kt(t) {
4768
4785
  C(c, {
4769
4786
  create: z,
4770
4787
  install(m, $) {
4771
- if (d = v(v({}, d), $ || {}), m._installedFormCreate === !0) return;
4788
+ if (p = v(v({}, p), $ || {}), m._installedFormCreate === !0) return;
4772
4789
  m._installedFormCreate = !0;
4773
4790
  const b = function(j, S = {}) {
4774
4791
  return z(j, S, this);
@@ -4781,12 +4798,12 @@ function Kt(t) {
4781
4798
  }
4782
4799
  });
4783
4800
  }
4784
- if (ot(D), ir(D), Oe("$cookie", Ii), Oe("$localStorage", Vi), Oe("$sessionStorage", Pi), g.use({ fragment: "fcFragment" }), t.install && z.use(t), de(Ei), t.inherit) {
4801
+ if (ot(D), ir(D), Oe("$cookie", Vi), Oe("$localStorage", Pi), Oe("$sessionStorage", Li), y.use({ fragment: "fcFragment" }), t.install && z.use(t), de(Di), t.inherit) {
4785
4802
  const c = t.inherit;
4786
- c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(y, c.loadData), c.formulas && C(_, c.formulas);
4803
+ c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(g, c.loadData), c.formulas && C(_, c.formulas);
4787
4804
  }
4788
- const Fe = R();
4789
- return Se(Fe, D), Object.defineProperties(Fe, {
4805
+ const ke = R();
4806
+ return Se(ke, D), Object.defineProperties(ke, {
4790
4807
  fetch: {
4791
4808
  get() {
4792
4809
  return D.fetch;
@@ -4795,7 +4812,7 @@ function Kt(t) {
4795
4812
  D.fetch = c;
4796
4813
  }
4797
4814
  }
4798
- }), Fe.util = D, Fe;
4815
+ }), ke.util = D, ke;
4799
4816
  }
4800
4817
  function qe(t) {
4801
4818
  if (h.Date(t))
@@ -4805,7 +4822,7 @@ function qe(t) {
4805
4822
  return e.toString() === "Invalid Date" ? t : e;
4806
4823
  }
4807
4824
  }
4808
- const _t = "datePicker", qi = {
4825
+ const _t = "datePicker", Gi = {
4809
4826
  name: _t,
4810
4827
  maker: function() {
4811
4828
  return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = P(_t, { type: e.toLowerCase() }), t), {});
@@ -4837,7 +4854,7 @@ const _t = "datePicker", qi = {
4837
4854
  mounted(t) {
4838
4855
  t.rule.value = this.toValue(t.$handle.getFormData(t), t);
4839
4856
  }
4840
- }, Ge = "hidden", Gi = {
4857
+ }, Ge = "hidden", Hi = {
4841
4858
  name: Ge,
4842
4859
  maker: {
4843
4860
  [Ge]: (t, e) => P(Ge)("", t, e)
@@ -4845,7 +4862,7 @@ const _t = "datePicker", qi = {
4845
4862
  render() {
4846
4863
  return [];
4847
4864
  }
4848
- }, He = "input", Hi = {
4865
+ }, He = "input", zi = {
4849
4866
  name: He,
4850
4867
  maker: function() {
4851
4868
  const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = P(He, { type: r }), e), {});
@@ -4855,7 +4872,7 @@ const _t = "datePicker", qi = {
4855
4872
  let { props: e } = t.prop;
4856
4873
  e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4857
4874
  }
4858
- }, Ct = "slider", zi = {
4875
+ }, Ct = "slider", Ji = {
4859
4876
  name: Ct,
4860
4877
  maker: {
4861
4878
  sliderRange: P(Ct, { range: !0 })
@@ -4864,27 +4881,27 @@ const _t = "datePicker", qi = {
4864
4881
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4865
4882
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4866
4883
  }
4867
- }, Ji = {
4884
+ }, Wi = {
4868
4885
  name: "switch",
4869
4886
  mergeProp(t) {
4870
4887
  const e = t.prop.props.slot || {}, r = t.prop.scopedSlots || {};
4871
4888
  e.open && (r.open = () => e.open), e.close && (r.close = () => e.close), t.prop.scopedSlots = r;
4872
4889
  }
4873
- }, Wi = {
4890
+ }, Ki = {
4874
4891
  name: "FcRow",
4875
4892
  render(t, e) {
4876
4893
  return e.vNode.col({ props: { span: 24 } }, [
4877
4894
  e.vNode.row(e.prop, t)
4878
4895
  ]);
4879
4896
  }
4880
- }, Ki = [
4881
- qi,
4897
+ }, Xi = [
4882
4898
  Gi,
4883
4899
  Hi,
4884
4900
  zi,
4885
4901
  Ji,
4886
- Wi
4887
- ], Xi = {
4902
+ Wi,
4903
+ Ki
4904
+ ], Zi = {
4888
4905
  button: "iButton",
4889
4906
  icon: "Icon",
4890
4907
  slider: "Slider",
@@ -4916,7 +4933,7 @@ const _t = "datePicker", qi = {
4916
4933
  resetBtnIcon: "md-refresh",
4917
4934
  infoIcon: "ios-information-circle-outline"
4918
4935
  };
4919
- function Zi() {
4936
+ function Qi() {
4920
4937
  return {
4921
4938
  type: "poptip",
4922
4939
  trigger: "hover",
@@ -4925,7 +4942,7 @@ function Zi() {
4925
4942
  icon: Ie.infoIcon
4926
4943
  };
4927
4944
  }
4928
- function Qi() {
4945
+ function Yi() {
4929
4946
  return {
4930
4947
  form: {
4931
4948
  inline: !1,
@@ -4963,14 +4980,14 @@ function wt(t, e) {
4963
4980
  function Z(t) {
4964
4981
  return t === !1;
4965
4982
  }
4966
- function Yi(t, e) {
4983
+ function xi(t, e) {
4967
4984
  E(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4968
4985
  }
4969
4986
  function ze(t) {
4970
4987
  const e = v({}, t);
4971
4988
  return delete e.children, e;
4972
4989
  }
4973
- const xi = {
4990
+ const en = {
4974
4991
  validate() {
4975
4992
  const t = this.form();
4976
4993
  return t ? t.validate() : new Promise((e) => e());
@@ -4989,7 +5006,7 @@ const xi = {
4989
5006
  },
4990
5007
  tidyOptions(t) {
4991
5008
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4992
- Yi(t, e);
5009
+ xi(t, e);
4993
5010
  }), t;
4994
5011
  },
4995
5012
  tidyRule({ prop: t }) {
@@ -4997,7 +5014,7 @@ const xi = {
4997
5014
  },
4998
5015
  mergeProp(t) {
4999
5016
  const e = {
5000
- info: Zi(),
5017
+ info: Qi(),
5001
5018
  title: {},
5002
5019
  col: { span: 24 },
5003
5020
  wrap: {}
@@ -5010,7 +5027,7 @@ const xi = {
5010
5027
  !t.size && this.options.form.size && (t.size = this.options.form.size);
5011
5028
  },
5012
5029
  getDefaultOptions() {
5013
- return Qi();
5030
+ return Yi();
5014
5031
  },
5015
5032
  update() {
5016
5033
  const t = this.options.form;
@@ -5057,12 +5074,12 @@ const xi = {
5057
5074
  return !(!e.title && !e.native || Z(e.show));
5058
5075
  },
5059
5076
  makeInfo(t, e, r) {
5060
- var u, f, d, p, y, g;
5077
+ var u, f, p, d, g, y;
5061
5078
  const i = v({}, t.title), s = v({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5062
5079
  title: (f = (u = r.refRule) == null ? void 0 : u.__$title) == null ? void 0 : f.value,
5063
5080
  rule: r.rule,
5064
5081
  options: this.options
5065
- }) : ((p = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : p.value) + (n.labelSuffix || n["label-suffix"] || "")];
5082
+ }) : ((d = (p = r.refRule) == null ? void 0 : p.__$title) == null ? void 0 : d.value) + (n.labelSuffix || n["label-suffix"] || "")];
5066
5083
  if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
5067
5084
  const _ = {
5068
5085
  type: s.type || "poptip",
@@ -5072,7 +5089,7 @@ const xi = {
5072
5089
  };
5073
5090
  delete _.props.icon, delete _.props.show, delete _.props.info, delete _.props.align, delete _.props.native;
5074
5091
  const D = "content";
5075
- s.info && !E(_.props, D) && (_.props[D] = (g = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : g.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, _]), [
5092
+ s.info && !E(_.props, D) && (_.props[D] = (y = (g = r.refRule) == null ? void 0 : g.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, _]), [
5076
5093
  this.$r({
5077
5094
  type: "icon",
5078
5095
  props: { type: s.icon === !0 ? Ie.infoIcon : s.icon, size: 16 },
@@ -5157,13 +5174,13 @@ const xi = {
5157
5174
  key: `${this.key}b1`
5158
5175
  }, [e]);
5159
5176
  }
5160
- }, oe = {}, en = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5161
- function tn(t) {
5162
- en.forEach((e) => {
5177
+ }, oe = {}, tn = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5178
+ function rn(t) {
5179
+ tn.forEach((e) => {
5163
5180
  t[e] = P(e);
5164
5181
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
5165
5182
  }
5166
- function rn(t) {
5183
+ function nn(t) {
5167
5184
  const e = "upload", r = {
5168
5185
  image: ["image", 0],
5169
5186
  file: ["file", 0],
@@ -5172,19 +5189,19 @@ function rn(t) {
5172
5189
  };
5173
5190
  Object.keys(r).reduce((i, s) => (i[s] = P(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
5174
5191
  }
5175
- function nn(t) {
5192
+ function sn(t) {
5176
5193
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
5177
5194
  Object.keys(r).reduce((i, s) => (i[s] = P(e, { type: r[s] }), i), t);
5178
5195
  }
5179
- function sn(t) {
5196
+ function on(t) {
5180
5197
  const e = "timePicker";
5181
5198
  t.time = P(e, { type: "time" }), t.timeRange = P(e, { type: "timerange" });
5182
5199
  }
5183
- function on(t) {
5200
+ function an(t) {
5184
5201
  const e = "select";
5185
5202
  t.selectMultiple = P(e, { multiple: !0 }), t.selectOne = P(e, { multiple: !1 });
5186
5203
  }
5187
- function an(t) {
5204
+ function ln(t) {
5188
5205
  const e = "frame", r = {
5189
5206
  frameInputs: ["input", 0],
5190
5207
  frameFiles: ["file", 0],
@@ -5195,16 +5212,16 @@ function an(t) {
5195
5212
  };
5196
5213
  Object.keys(r).reduce((i, s) => (i[s] = P(e, (n) => n.props({ type: r[s][0], maxLength: r[s][1] })), i), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages;
5197
5214
  }
5198
- tn(oe);
5199
5215
  rn(oe);
5200
5216
  nn(oe);
5201
- on(oe);
5202
- an(oe);
5203
5217
  sn(oe);
5218
+ an(oe);
5219
+ ln(oe);
5220
+ on(oe);
5204
5221
  function Ot(t, e) {
5205
5222
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5206
5223
  }
5207
- function ln(t, e) {
5224
+ function un(t, e) {
5208
5225
  return {
5209
5226
  formEl() {
5210
5227
  return e.$manager.form();
@@ -5306,7 +5323,7 @@ const Xt = {
5306
5323
  name: "required",
5307
5324
  load(t, e, r) {
5308
5325
  var s, n;
5309
- const i = un(t.getValue());
5326
+ const i = fn(t.getValue());
5310
5327
  if (i.required === !1)
5311
5328
  t.clearProp(), r.clearValidateState([e.field]);
5312
5329
  else {
@@ -5330,25 +5347,25 @@ const Xt = {
5330
5347
  Xt.load(...t);
5331
5348
  }
5332
5349
  };
5333
- function un(t) {
5350
+ function fn(t) {
5334
5351
  return h.Boolean(t) ? { required: t } : h.String(t) ? { message: t } : h.Undef(t) ? { required: !1 } : h.Function(t) ? { validator: t } : h.Object(t) ? t : {};
5335
5352
  }
5336
- function fn(t) {
5337
- t.componentAlias(Xi), Ur.forEach((e) => {
5353
+ function cn(t) {
5354
+ t.componentAlias(Zi), Ur.forEach((e) => {
5338
5355
  t.component(e.name, e);
5339
- }), t.register(Xt), Ki.forEach((e) => {
5356
+ }), t.register(Xt), Xi.forEach((e) => {
5340
5357
  t.parser(e);
5341
5358
  }), Object.keys(oe).forEach((e) => {
5342
5359
  t.maker[e] = oe[e];
5343
5360
  });
5344
5361
  }
5345
- function cn() {
5362
+ function hn() {
5346
5363
  return Kt({
5347
5364
  ui: "iview",
5348
- version: "2.7.9",
5349
- manager: xi,
5350
- install: fn,
5351
- extendApi: ln,
5365
+ version: "2.7.10",
5366
+ manager: en,
5367
+ install: cn,
5368
+ extendApi: un,
5352
5369
  attrs: {
5353
5370
  normal: ["col", "wrap"],
5354
5371
  array: ["className"],
@@ -5356,10 +5373,10 @@ function cn() {
5356
5373
  }
5357
5374
  });
5358
5375
  }
5359
- const Ye = cn();
5376
+ const Ye = hn();
5360
5377
  typeof window != "undefined" && (window.formCreate = Ye, window.Vue && Ye.install(window.Vue));
5361
- const pn = Ye.maker;
5378
+ const mn = Ye.maker;
5362
5379
  export {
5363
5380
  Ye as default,
5364
- pn as maker
5381
+ mn as maker
5365
5382
  };