@form-create/element-ui 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/element-ui v2.7.9
3
+ * @form-create/element-ui 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/
@@ -1235,9 +1235,9 @@ const Br = "fcGroup", Lr = {
1235
1235
  key: o
1236
1236
  }, {
1237
1237
  on: {
1238
- "update:value": (d) => this.formData(o, d),
1239
- "emit-event": (d, ...p) => this.emitEvent(d, p, a, o),
1240
- input: (d) => this.add$f(a, o, d)
1238
+ "update:value": (p) => this.formData(o, p),
1239
+ "emit-event": (p, ...d) => this.emitEvent(p, d, a, o),
1240
+ input: (p) => this.add$f(a, o, p)
1241
1241
  }
1242
1242
  }, {}, {
1243
1243
  props: {
@@ -1365,6 +1365,9 @@ function ve(t) {
1365
1365
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1366
1366
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1367
1367
  }
1368
+ function Ur(t) {
1369
+ return t.replace(t[0], t[0].toLocaleUpperCase());
1370
+ }
1368
1371
  const kt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style", "directives"], St = ["on", "nativeOn", "hook"], ee = (t, e = {}, r = {}) => {
1369
1372
  const i = [...kt, ...r.normal || []], s = [...Et, ...r.array || []], n = [...St, ...r.functional || []], o = r.props || [];
1370
1373
  return t.reduce((a, l) => {
@@ -1375,25 +1378,25 @@ const kt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style"
1375
1378
  else if (i.indexOf(u) > -1)
1376
1379
  a[u] = v(v({}, a[u]), l[u]);
1377
1380
  else if (s.indexOf(u) > -1) {
1378
- const f = a[u] instanceof Array ? a[u] : [a[u]], d = l[u] instanceof Array ? l[u] : [l[u]];
1379
- a[u] = [...f, ...d];
1381
+ const f = a[u] instanceof Array ? a[u] : [a[u]], p = l[u] instanceof Array ? l[u] : [l[u]];
1382
+ a[u] = [...f, ...p];
1380
1383
  } else if (n.indexOf(u) > -1)
1381
1384
  for (const f in l[u])
1382
1385
  if (a[u][f]) {
1383
- 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]];
1384
- a[u][f] = [...d, ...p];
1386
+ 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]];
1387
+ a[u][f] = [...p, ...d];
1385
1388
  } else
1386
1389
  a[u][f] = l[u][f];
1387
1390
  else if (u === "hook")
1388
1391
  for (let f in l[u])
1389
- a[u][f] ? a[u][f] = Ur(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1392
+ a[u][f] ? a[u][f] = Hr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1390
1393
  else
1391
1394
  a[u] = l[u];
1392
1395
  else
1393
1396
  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];
1394
1397
  return a;
1395
1398
  }, e);
1396
- }, Ur = (t, e) => function() {
1399
+ }, Hr = (t, e) => function() {
1397
1400
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1398
1401
  }, Rt = ["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"], Ye = ["validate", "children", "control"], et = ["effect", "deep", "renderSlots"];
1399
1402
  function Dt() {
@@ -1405,7 +1408,7 @@ function jt(t, e, r) {
1405
1408
  function tt(t, e) {
1406
1409
  console.error(jt("err", t));
1407
1410
  }
1408
- function Hr(t) {
1411
+ function Gr(t) {
1409
1412
  tt(t.toString()), console.error(t);
1410
1413
  }
1411
1414
  function At(t) {
@@ -1427,7 +1430,7 @@ function Ce(t, e) {
1427
1430
  function Le(t) {
1428
1431
  return new Function("return " + t)();
1429
1432
  }
1430
- function x(t, e) {
1433
+ function X(t, e) {
1431
1434
  if (t && h.String(t) && t.length > 4) {
1432
1435
  let r = t.trim(), i = !1;
1433
1436
  try {
@@ -1470,12 +1473,12 @@ err: ${s}`);
1470
1473
  }
1471
1474
  function Vt(t, e) {
1472
1475
  return JSON.parse(t, function(r, i) {
1473
- return h.Undef(i) || !i.indexOf ? i : x(i, e);
1476
+ return h.Undef(i) || !i.indexOf ? i : X(i, e);
1474
1477
  });
1475
1478
  }
1476
- let Gr = 0;
1479
+ let Jr = 0;
1477
1480
  function Ie() {
1478
- const t = 370 + ++Gr;
1481
+ const t = 370 + ++Jr;
1479
1482
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1480
1483
  }
1481
1484
  function oe(t, e, r) {
@@ -1484,7 +1487,7 @@ function oe(t, e, r) {
1484
1487
  s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1485
1488
  }), k(i, s, r), i;
1486
1489
  }
1487
- function xe(t, e) {
1490
+ function Xe(t, e) {
1488
1491
  return {
1489
1492
  value: t,
1490
1493
  enumerable: !1,
@@ -1505,7 +1508,7 @@ function ht(t) {
1505
1508
  const e = h.Function(t.getRule) ? t.getRule() : t;
1506
1509
  return e.type || (e.type = "input"), e;
1507
1510
  }
1508
- function Jr(t, e) {
1511
+ function Kr(t, e) {
1509
1512
  return t ? (Object.keys(e || {}).forEach((r) => {
1510
1513
  e[r] && (t[r] = te(t[r] || {}, e[r]));
1511
1514
  }), t) : e;
@@ -1524,26 +1527,26 @@ function O(t, e) {
1524
1527
  try {
1525
1528
  e = t();
1526
1529
  } catch (r) {
1527
- Hr(r);
1530
+ Gr(r);
1528
1531
  }
1529
1532
  return e;
1530
1533
  }
1531
- function Xe(t, e) {
1534
+ function xe(t, e) {
1532
1535
  let r = null;
1533
- return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Xe(i, e)) : r = t, r && e && H(r).forEach((i) => {
1536
+ return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => xe(i, e)) : r = t, r && e && H(r).forEach((i) => {
1534
1537
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1535
1538
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1536
1539
  });
1537
1540
  }), r;
1538
1541
  }
1539
- function Kr(t, e) {
1542
+ function Wr(t, e) {
1540
1543
  if (h.Object(t)) {
1541
1544
  const r = {};
1542
1545
  return Object.keys(t).forEach((i) => {
1543
- r[i] = Xe(t[i], i);
1546
+ r[i] = xe(t[i], i);
1544
1547
  }), r;
1545
1548
  } else
1546
- return Xe(t, e);
1549
+ return xe(t, e);
1547
1550
  }
1548
1551
  function Ee() {
1549
1552
  const t = {}, e = (r) => r || "default";
@@ -1561,7 +1564,7 @@ function Ee() {
1561
1564
  const n = s();
1562
1565
  Array.isArray(n) ? i.push(...n) : i.push(n);
1563
1566
  } else h.Undef(s) || i.push(s);
1564
- }), Kr(i, r);
1567
+ }), Wr(i, r);
1565
1568
  },
1566
1569
  getSlots() {
1567
1570
  let r = [];
@@ -1624,7 +1627,7 @@ function B(t, e) {
1624
1627
  t != null && (t = t[r]);
1625
1628
  }), t;
1626
1629
  }
1627
- function Wr(t) {
1630
+ function zr(t) {
1628
1631
  const e = /{{\s*(.*?)\s*}}/g;
1629
1632
  let r;
1630
1633
  const i = {};
@@ -1658,7 +1661,7 @@ const je = (t, e) => {
1658
1661
  return je(t.$parent, e);
1659
1662
  }
1660
1663
  };
1661
- function zr(t, e, r) {
1664
+ function Xr(t, e, r) {
1662
1665
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1663
1666
  return {
1664
1667
  name: i,
@@ -1718,26 +1721,26 @@ function zr(t, e, r) {
1718
1721
  a = a.parent;
1719
1722
  else
1720
1723
  a = n;
1721
- const { rule: l, value: u, subForm: f, inFor: d } = ut(s), p = ne({
1724
+ const { rule: l, value: u, subForm: f, inFor: p } = ut(s), d = ne({
1722
1725
  ctxInject: {},
1723
1726
  destroyed: !1,
1724
1727
  isShow: !0,
1725
1728
  unique: 1,
1726
1729
  renderRule: [...l.value || []],
1727
1730
  updateValue: JSON.stringify(u.value || {})
1728
- }), y = new t(n), g = y.api(), w = d.value, F = () => {
1731
+ }), g = new t(n), y = g.api(), w = p.value, F = () => {
1729
1732
  if (o) {
1730
1733
  const E = je(n, o);
1731
1734
  if (E) {
1732
1735
  let R;
1733
- w ? (R = H(E.getSubForm()), R.push(g)) : R = g, E.subForm(R);
1736
+ w ? (R = H(E.getSubForm()), R.push(y)) : R = y, E.subForm(R);
1734
1737
  }
1735
1738
  }
1736
1739
  }, G = () => {
1737
1740
  const E = je(n, o);
1738
1741
  if (E)
1739
1742
  if (w) {
1740
- const R = H(E.getSubForm()), M = R.indexOf(g);
1743
+ const R = H(E.getSubForm()), M = R.indexOf(y);
1741
1744
  M > -1 && R.splice(M, 1);
1742
1745
  } else
1743
1746
  E.subForm();
@@ -1757,53 +1760,53 @@ function zr(t, e, r) {
1757
1760
  });
1758
1761
  });
1759
1762
  const N = se(() => {
1760
- y.bus.$emit("$loadData.$topForm");
1763
+ g.bus.$emit("$loadData.$topForm");
1761
1764
  }, 100), de = se(function() {
1762
- y.bus.$emit("$loadData.$scopeForm");
1765
+ g.bus.$emit("$loadData.$scopeForm");
1763
1766
  }, 100), Pe = se(() => {
1764
- y.bus.$emit("$loadData.$form");
1767
+ g.bus.$emit("$loadData.$form");
1765
1768
  }, 100), pe = (E) => {
1766
- y.bus.$emit("change-$form." + E);
1769
+ g.bus.$emit("change-$form." + E);
1767
1770
  };
1768
1771
  return hr(() => {
1769
- o && (g.top.bus.$on("$loadData.$form", N), g.top.bus.$on("change", pe)), g !== g.scope && g.scope.bus.$on("$loadData.$scopeForm", de), y.mounted();
1772
+ o && (y.top.bus.$on("$loadData.$form", N), y.top.bus.$on("change", pe)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", de), g.mounted();
1770
1773
  }), dr(() => {
1771
- o && (g.top.bus.$off("$loadData.$form", N), g.top.bus.$off("change", pe)), g !== g.scope && g.scope.bus.$off("$loadData.$scopeForm", de), G(), p.destroyed = !0, y.unmount(), V && (V.parentNode || V.parentElement) && document.head.removeChild(V);
1774
+ o && (y.top.bus.$off("$loadData.$form", N), y.top.bus.$off("change", pe)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", de), G(), d.destroyed = !0, g.unmount(), V && (V.parentNode || V.parentElement) && document.head.removeChild(V);
1772
1775
  }), pr(() => {
1773
- y.updated();
1776
+ g.updated();
1774
1777
  }), L(f, (E) => {
1775
1778
  E ? F() : G();
1776
1779
  }, { immediate: !0 }), L(() => s.option, () => {
1777
- y.initOptions(), g.refresh();
1780
+ g.initOptions(), y.refresh();
1778
1781
  }, { deep: !0 }), L(() => [...l.value], (E) => {
1779
- y.$handle.isBreakWatch() || E.length === p.renderRule.length && E.every((R) => p.renderRule.indexOf(R) > -1) || (y.$handle.updateAppendData(), y.$handle.reloadRule(l.value), n.renderRule());
1782
+ g.$handle.isBreakWatch() || E.length === d.renderRule.length && E.every((R) => d.renderRule.indexOf(R) > -1) || (g.$handle.updateAppendData(), g.$handle.reloadRule(l.value), n.renderRule());
1780
1783
  }), L(() => [s.disabled, s.preview], () => {
1781
- g.refresh();
1784
+ y.refresh();
1782
1785
  }), L(u, (E) => {
1783
- Ce(E || {}) !== p.updateValue && (g.config.forceCoverValue ? g.coverValue(E || {}) : g.setValue(E || {}));
1786
+ Ce(E || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(E || {}) : y.setValue(E || {}));
1784
1787
  }, { deep: !0, flush: "post" }), L(() => s.index, () => {
1785
- g.coverValue({}), y.$handle.updateAppendData(), P(() => {
1788
+ y.coverValue({}), g.$handle.updateAppendData(), P(() => {
1786
1789
  P(() => {
1787
- g.clearValidateState();
1790
+ y.clearValidateState();
1788
1791
  });
1789
1792
  });
1790
1793
  }, { flush: "sync" }), q(v({
1791
- fc: ye(y),
1794
+ fc: ye(g),
1792
1795
  parent: o && ye(o),
1793
1796
  top: ye(a),
1794
- fapi: ye(g)
1795
- }, ut(p)), {
1797
+ fapi: ye(y)
1798
+ }, ut(d)), {
1796
1799
  getGroupInject: () => je(n, o),
1797
1800
  refresh() {
1798
- ++p.unique;
1801
+ ++d.unique;
1799
1802
  },
1800
1803
  renderRule() {
1801
- p.renderRule = [...l.value || []];
1804
+ d.renderRule = [...l.value || []];
1802
1805
  },
1803
1806
  updateValue(E) {
1804
- if (p.destroyed) return;
1807
+ if (d.destroyed) return;
1805
1808
  const R = Ce(E);
1806
- p.updateValue !== R && (p.updateValue = R, n.$emit("update:value", E), P(() => {
1809
+ d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", E), P(() => {
1807
1810
  Pe(), o ? f.value || de() : (N(), de());
1808
1811
  }));
1809
1812
  }
@@ -1864,7 +1867,7 @@ function mt(t, e, r, i) {
1864
1867
  let s = Mt("", r);
1865
1868
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1866
1869
  }
1867
- function Xr() {
1870
+ function Zr() {
1868
1871
  return {
1869
1872
  create: xr,
1870
1873
  createTmp: mt,
@@ -1872,7 +1875,7 @@ function Xr() {
1872
1875
  factory: T
1873
1876
  };
1874
1877
  }
1875
- function Zr(t, e, r) {
1878
+ function Qr(t, e, r) {
1876
1879
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1877
1880
  return s.status = r.status, s.url = t, s;
1878
1881
  }
@@ -1901,7 +1904,7 @@ function qt(t) {
1901
1904
  t.onError(o);
1902
1905
  }, e.onload = function() {
1903
1906
  if (e.status < 200 || e.status >= 300)
1904
- return t.onError(Zr(r, t, e), gt(e));
1907
+ return t.onError(Qr(r, t, e), gt(e));
1905
1908
  t.onSuccess(gt(e));
1906
1909
  }, e.open(t.method || "get", r, !0);
1907
1910
  let i;
@@ -1918,7 +1921,7 @@ function yt(t, e, r) {
1918
1921
  (e || qt)(q(v({}, t), {
1919
1922
  onSuccess(n) {
1920
1923
  let o = (l) => l;
1921
- const a = x(t.parse);
1924
+ const a = X(t.parse);
1922
1925
  h.Function(a) ? o = a : a && h.String(a) && (o = (l) => B(l, a)), i(o(n, void 0, r));
1923
1926
  },
1924
1927
  onError(n) {
@@ -1930,7 +1933,7 @@ function yt(t, e, r) {
1930
1933
  function _e(t) {
1931
1934
  return K(t);
1932
1935
  }
1933
- function Qr(t) {
1936
+ function Yr(t) {
1934
1937
  function e(n) {
1935
1938
  return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1936
1939
  }
@@ -2274,9 +2277,9 @@ function Qr(t) {
2274
2277
  if (!l)
2275
2278
  return [];
2276
2279
  const u = [];
2277
- return ((d) => {
2278
- d && d.forEach((p) => {
2279
- typeof p == "object" && (p.field && u.push(p), u.push(...s.getChildrenRuleList(p)));
2280
+ return ((p) => {
2281
+ p && p.forEach((d) => {
2282
+ typeof d == "object" && (d.field && u.push(d), u.push(...s.getChildrenRuleList(d)));
2280
2283
  });
2281
2284
  })(a ? a.loadChildrenPending() : l.children), u;
2282
2285
  },
@@ -2305,7 +2308,7 @@ function Qr(t) {
2305
2308
  getGlobalEvent(n) {
2306
2309
  let o = s.options.globalEvent[n];
2307
2310
  if (o)
2308
- return typeof o == "object" && (o = o.handle), x(o);
2311
+ return typeof o == "object" && (o = o.handle), X(o);
2309
2312
  },
2310
2313
  getGlobalData(n) {
2311
2314
  return new Promise((o, a) => {
@@ -2348,12 +2351,12 @@ function Qr(t) {
2348
2351
  },
2349
2352
  watchFetch(n, o, a, l) {
2350
2353
  return t.fc.watchLoadData((u, f) => {
2351
- let d = K(n);
2352
- d = t.loadFetchVar(d, u), !(l && l(d, f) === !1) && t.beforeFetch(d).then(() => yt(d, t.fc.create.fetch, s).then((p) => {
2353
- O(() => d.onSuccess && d.onSuccess(p)), o && o(p, f);
2354
- }).catch((p) => {
2355
- O(() => d.onError && d.onError(p)), a && a(p);
2356
- })).catch((p) => {
2354
+ let p = K(n);
2355
+ p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((d) => {
2356
+ O(() => p.onSuccess && p.onSuccess(d)), o && o(d, f);
2357
+ }).catch((d) => {
2358
+ O(() => p.onError && p.onError(d)), a && a(d);
2359
+ })).catch((d) => {
2357
2360
  });
2358
2361
  }, n.wait == null ? 1e3 : n.wait);
2359
2362
  },
@@ -2383,7 +2386,7 @@ function Qr(t) {
2383
2386
  };
2384
2387
  }), s.changeValue = s.changeField = s.setValue, s;
2385
2388
  }
2386
- function Yr(t) {
2389
+ function ei(t) {
2387
2390
  _(t.prototype, {
2388
2391
  initCache() {
2389
2392
  this.clearCacheAll();
@@ -2424,7 +2427,7 @@ function J(t) {
2424
2427
  function Ut(t) {
2425
2428
  return t.replace(t[0], t[0].toLowerCase());
2426
2429
  }
2427
- function ei(t) {
2430
+ function ti(t) {
2428
2431
  _(t.prototype, {
2429
2432
  initRender() {
2430
2433
  this.cacheConfig = {};
@@ -2505,21 +2508,21 @@ function ei(t) {
2505
2508
  };
2506
2509
  l.length && i.slotUpdate && O(() => i.slotUpdate(u));
2507
2510
  let f = [];
2508
- const d = e.loadChildrenPending();
2509
- e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach((g) => {
2511
+ const p = e.loadChildrenPending();
2512
+ e.parser.renderChildren ? f = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(p, e)), Object.keys(n.renderSlots || {}).forEach((y) => {
2510
2513
  f.push(this.renderRule({
2511
2514
  type: "template",
2512
- slot: g
2515
+ slot: y
2513
2516
  }, (() => {
2514
- if (h.Function(n.renderSlots[g]))
2515
- return O(() => n.renderSlots[g]());
2516
- const w = this.parseSide(n.renderSlots[g], e);
2517
+ if (h.Function(n.renderSlots[y]))
2518
+ return O(() => n.renderSlots[y]());
2519
+ const w = this.parseSide(n.renderSlots[y], e);
2517
2520
  return this.renderRule(w);
2518
2521
  })()));
2519
2522
  });
2520
- const p = this.getTypeSlot(e);
2521
- let y;
2522
- return p ? (u.children = f, y = p(u)) : y = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(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;
2523
+ const d = this.getTypeSlot(e);
2524
+ let g;
2525
+ return d ? (u.children = f, g = d(u)) : g = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(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;
2523
2526
  }, this.setCache(e, s, r);
2524
2527
  }
2525
2528
  return (...s) => {
@@ -2706,7 +2709,7 @@ function ei(t) {
2706
2709
  }
2707
2710
  });
2708
2711
  }
2709
- let ti = 1;
2712
+ let ri = 1;
2710
2713
  function it(t) {
2711
2714
  _(this, {
2712
2715
  $handle: t,
@@ -2716,7 +2719,7 @@ function it(t) {
2716
2719
  vNode: new t.fc.CreateNode(t.vm),
2717
2720
  force: !1,
2718
2721
  tmpInput: null,
2719
- id: ti++
2722
+ id: ri++
2720
2723
  }), Tt(this, {
2721
2724
  options() {
2722
2725
  return t.options;
@@ -2726,9 +2729,9 @@ function it(t) {
2726
2729
  }
2727
2730
  }), this.initCache(), this.initRender();
2728
2731
  }
2729
- Yr(it);
2730
2732
  ei(it);
2731
- function ri(t) {
2733
+ ti(it);
2734
+ function ii(t) {
2732
2735
  _(t.prototype, {
2733
2736
  parseInjectEvent(e, r) {
2734
2737
  const i = e.inject || this.options.injectEvent;
@@ -2746,7 +2749,7 @@ function ri(t) {
2746
2749
  if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2747
2750
  return this.parseEventLst(e, r, i, !0);
2748
2751
  if (h.String(r)) {
2749
- const n = x(r);
2752
+ const n = X(r);
2750
2753
  if (n && r !== n)
2751
2754
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2752
2755
  }
@@ -2755,17 +2758,17 @@ function ri(t) {
2755
2758
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: l } = s, u = s[r ? "emit" : "nativeEmit"] || [];
2756
2759
  return h.trueArray(u) && u.forEach((f) => {
2757
2760
  if (!f) return;
2758
- let d, p = n || o || a;
2759
- if (h.Object(f) && (d = f.inject, f = f.name, p = f.prefix || p), p) {
2760
- r || (p = `native-${p}`);
2761
- const y = ve(`${p}-${f}`), g = (...w) => {
2762
- this.vm.$emit(y, ...w), this.vm.$emit("emit-event", y, ...w), this.bus.$emit(y, ...w);
2761
+ let p, d = n || o || a;
2762
+ if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2763
+ r || (d = `native-${d}`);
2764
+ const g = ve(`${d}-${f}`), y = (...w) => {
2765
+ this.vm.$emit(g, ...w), this.vm.$emit("emit-event", g, ...w), this.bus.$emit(g, ...w);
2763
2766
  };
2764
- if (g.__emit = !0, !d && l === !1)
2765
- i[f] = g;
2767
+ if (y.__emit = !0, !p && l === !1)
2768
+ i[f] = y;
2766
2769
  else {
2767
- let w = d || l || this.options.injectEvent;
2768
- i[f] = h.Undef(w) ? g : this.inject(s, g, w);
2770
+ let w = p || l || this.options.injectEvent;
2771
+ i[f] = h.Undef(w) ? y : this.inject(s, y, w);
2769
2772
  }
2770
2773
  }
2771
2774
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2795,33 +2798,33 @@ function ri(t) {
2795
2798
  },
2796
2799
  loadStrVar(e, r, i) {
2797
2800
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2798
- const s = e, n = Wr(e), o = (u) => {
2799
- let f = !1, d;
2801
+ const s = e, n = zr(e), o = (u) => {
2802
+ let f = !1, p;
2800
2803
  if (i && u.indexOf("$form.") === 0) {
2801
- const p = u.split(".");
2802
- p.shift(), D(i.value, p[0]) && (f = !0, d = r ? r({
2803
- id: "$form." + p[0] + "_" + i.rule.__fc__.id,
2804
- getValue: () => B(i.value, p)
2805
- }) : B(i.value, p));
2804
+ const d = u.split(".");
2805
+ d.shift(), D(i.value, d[0]) && (f = !0, p = r ? r({
2806
+ id: "$form." + d[0] + "_" + i.rule.__fc__.id,
2807
+ getValue: () => B(i.value, d)
2808
+ }) : B(i.value, d));
2806
2809
  }
2807
- return f || (d = r ? r(u) : this.fc.getLoadData(u)), d;
2810
+ return f || (p = r ? r(u) : this.fc.getLoadData(u)), p;
2808
2811
  }, a = (u) => {
2809
2812
  const f = [];
2810
- u.forEach((p) => {
2811
- p.key ? f.push(p.key) : p.children && f.push(a(p.children));
2813
+ u.forEach((d) => {
2814
+ d.key ? f.push(d.key) : d.children && f.push(a(d.children));
2812
2815
  });
2813
- let d = !1;
2814
- return f.forEach((p, y) => {
2815
- p != null && (p.indexOf("'") === 0 || p.indexOf('"') === 0) && (f[y] = p.slice(1, -1), d = !0);
2816
- }), f.length === 1 && (d || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2816
+ let p = !1;
2817
+ return f.forEach((d, g) => {
2818
+ d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[g] = d.slice(1, -1), p = !0);
2819
+ }), f.length === 1 && (p || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2817
2820
  };
2818
2821
  let l;
2819
2822
  if (n.forEach((u) => {
2820
- const f = u.split("||"), d = f[0].trim();
2821
- if (d) {
2822
- const p = (f[1] || "").trim(), y = Bt(d);
2823
- let g = O(() => a(y));
2824
- (g == null || g === "") && f.length > 1 && (g = p), l = g, e = e.replaceAll(`{{${u}}}`, g == null ? "" : g);
2823
+ const f = u.split("||"), p = f[0].trim();
2824
+ if (p) {
2825
+ const d = (f[1] || "").trim(), g = Bt(p);
2826
+ let y = O(() => a(g));
2827
+ (y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2825
2828
  }
2826
2829
  }), n.length === 1 && s === `{{${n[0]}}}`)
2827
2830
  return l;
@@ -2844,12 +2847,12 @@ function ri(t) {
2844
2847
  });
2845
2848
  }
2846
2849
  const $t = ["hook:updated", "hook:mounted"];
2847
- function ii(t) {
2850
+ function ni(t) {
2848
2851
  _(t.prototype, {
2849
2852
  usePage() {
2850
2853
  const e = this.options.page;
2851
2854
  if (!e) return;
2852
- let r = 25, i = ni(this.rules);
2855
+ let r = 25, i = si(this.rules);
2853
2856
  h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), _(this, {
2854
2857
  first: r,
2855
2858
  limit: i,
@@ -2864,10 +2867,10 @@ function ii(t) {
2864
2867
  }
2865
2868
  });
2866
2869
  }
2867
- function ni(t) {
2870
+ function si(t) {
2868
2871
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2869
2872
  }
2870
- function si(t) {
2873
+ function oi(t) {
2871
2874
  _(t.prototype, {
2872
2875
  clearNextTick() {
2873
2876
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
@@ -2882,11 +2885,11 @@ function si(t) {
2882
2885
  }
2883
2886
  });
2884
2887
  }
2885
- function oi(t) {
2888
+ function ai(t) {
2886
2889
  Object.defineProperties(t.origin, {
2887
- __fc__: xe(ye(t), !0)
2890
+ __fc__: Xe(ye(t), !0)
2888
2891
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2889
- __fc__: xe(ye(t), !0)
2892
+ __fc__: Xe(ye(t), !0)
2890
2893
  });
2891
2894
  }
2892
2895
  function Ht(t, e, r) {
@@ -2917,7 +2920,7 @@ function Ht(t, e, r) {
2917
2920
  exportEl: void 0,
2918
2921
  defaultValue: s ? K(r) : void 0,
2919
2922
  field: e.field || void 0
2920
- }), this.updateKey(), oi(this), this.update(t, !0);
2923
+ }), this.updateKey(), ai(this), this.update(t, !0);
2921
2924
  }
2922
2925
  _(Ht.prototype, {
2923
2926
  getParentGroup() {
@@ -2956,8 +2959,8 @@ _(Ht.prototype, {
2956
2959
  rule: this.rule,
2957
2960
  api: this.$api,
2958
2961
  update: (u) => {
2959
- const f = u || i, d = this.getPending(e, i);
2960
- this.setPending(e, r, f), o && o(f, d);
2962
+ const f = u || i, p = this.getPending(e, i);
2963
+ this.setPending(e, r, f), o && o(f, p);
2961
2964
  },
2962
2965
  reload: () => {
2963
2966
  const u = this.getPending(e, i);
@@ -3069,7 +3072,7 @@ _(Ht.prototype, {
3069
3072
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
3070
3073
  }
3071
3074
  });
3072
- function ai(t) {
3075
+ function li(t) {
3073
3076
  _(t.prototype, {
3074
3077
  nextRefresh(e) {
3075
3078
  const r = this.loadedId;
@@ -3080,10 +3083,10 @@ function ai(t) {
3080
3083
  parseRule(e) {
3081
3084
  const r = ht(e);
3082
3085
  return Object.defineProperties(r, {
3083
- __origin__: xe(e, !0)
3084
- }), li(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3086
+ __origin__: Xe(e, !0)
3087
+ }), ui(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3085
3088
  i && this.loadFn(i, r);
3086
- }), this.loadCtrl(r), r.update && (r.update = x(r.update)), r;
3089
+ }), this.loadCtrl(r), r.update && (r.update = X(r.update)), r;
3087
3090
  },
3088
3091
  loadFn(e, r) {
3089
3092
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -3092,7 +3095,7 @@ function ai(t) {
3092
3095
  },
3093
3096
  loadCtrl(e) {
3094
3097
  e.control && e.control.forEach((r) => {
3095
- r.handle && (r.handle = x(r.handle));
3098
+ r.handle && (r.handle = X(r.handle));
3096
3099
  });
3097
3100
  },
3098
3101
  syncProp(e) {
@@ -3131,27 +3134,27 @@ function ai(t) {
3131
3134
  let l = ht(o);
3132
3135
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3133
3136
  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);
3134
- let f, d = !1, p = !!o.__fc__, y = l.value;
3135
- if (p) {
3136
- if (f = o.__fc__, y = f.defaultValue, f.deleted) {
3137
+ let f, p = !1, d = !!o.__fc__, g = l.value;
3138
+ if (d) {
3139
+ if (f = o.__fc__, g = f.defaultValue, f.deleted) {
3137
3140
  if (bt(f))
3138
3141
  return;
3139
3142
  f.update(this);
3140
3143
  } else if (!f.check(this)) {
3141
3144
  if (bt(f))
3142
3145
  return;
3143
- e[a] = o = o._clone ? o._clone() : Vt(Ce(o)), f = null, d = !0;
3146
+ e[a] = o = o._clone ? o._clone() : Vt(Ce(o)), f = null, p = !0;
3144
3147
  }
3145
3148
  }
3146
3149
  if (f)
3147
3150
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3148
3151
  else {
3149
3152
  const F = this.parseRule(o);
3150
- f = new Ht(this, F, y), this.bindParser(f);
3153
+ f = new Ht(this, F, g), this.bindParser(f);
3151
3154
  }
3152
- [!1, !0].forEach((F) => this.parseEmit(f, F)), 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");
3153
- const g = f.loadChildrenPending();
3154
- if (f.parser.loadChildren === !1 || s(g, f), !r) {
3155
+ [!1, !0].forEach((F) => this.parseEmit(f, F)), 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");
3156
+ const y = f.loadChildrenPending();
3157
+ if (f.parser.loadChildren === !1 || s(y, f), !r) {
3155
3158
  const F = i(a);
3156
3159
  F > -1 || !a ? this.sort.splice(F + 1, 0, f.id) : this.sort.push(f.id);
3157
3160
  }
@@ -3166,16 +3169,16 @@ function ai(t) {
3166
3169
  return e.input && e.rule.control && this.useCtrl(e);
3167
3170
  },
3168
3171
  useCtrl(e) {
3169
- const r = ui(e), i = [], s = this.api;
3172
+ const r = fi(e), i = [], s = this.api;
3170
3173
  if (!r.length) return !1;
3171
3174
  for (let a = 0; a < r.length; a++) {
3172
- const l = r[a], u = l.handle || function(d) {
3173
- return (ce[l.condition || "=="] || ce["=="])(d, l.value);
3175
+ const l = r[a], u = l.handle || function(p) {
3176
+ return (ce[l.condition || "=="] || ce["=="])(p, l.value);
3174
3177
  };
3175
3178
  if (!h.trueArray(l.rule)) continue;
3176
3179
  const f = q(v({}, l), {
3177
3180
  valid: O(() => u(e.rule.value, s)),
3178
- ctrl: fi(e, l.rule),
3181
+ ctrl: ci(e, l.rule),
3179
3182
  isHidden: h.String(l.rule[0])
3180
3183
  });
3181
3184
  f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || i.push(f);
@@ -3184,16 +3187,16 @@ function ai(t) {
3184
3187
  const n = [];
3185
3188
  let o = !1;
3186
3189
  return this.deferSyncValue(() => {
3187
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: p, ctrl: y, method: g }) => {
3190
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: g, method: y }) => {
3188
3191
  if (a) {
3189
3192
  l ? e.ctrlRule.push({
3190
3193
  __ctrl: !0,
3191
3194
  children: u,
3192
3195
  valid: l
3193
- }) : y && e.ctrlRule.splice(e.ctrlRule.indexOf(y) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3194
- g === "disabled" || g === "enabled" ? this.api.disabled(!l, u) : g === "display" || g === "show" ? this.api.display(l, u) : g === "required" ? (u.forEach((w) => {
3196
+ }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3197
+ y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((w) => {
3195
3198
  this.api.setEffect(w, "required", l);
3196
- }), l || this.api.clearValidateState(u)) : g === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3199
+ }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3197
3200
  });
3198
3201
  return;
3199
3202
  }
@@ -3206,11 +3209,11 @@ function ai(t) {
3206
3209
  children: u
3207
3210
  };
3208
3211
  e.ctrlRule.push(w), this.bus.$once("load-start", () => {
3209
- f ? s.prepend(w, f, p) : d || p ? s.append(w, d || e.id, p) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, w);
3212
+ f ? s.prepend(w, f, d) : p || d ? s.append(w, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, w);
3210
3213
  });
3211
3214
  } else {
3212
- e.ctrlRule.splice(e.ctrlRule.indexOf(y), 1);
3213
- const w = Y(y);
3215
+ e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3216
+ const w = Y(g);
3214
3217
  w && w.rm();
3215
3218
  }
3216
3219
  });
@@ -3238,17 +3241,17 @@ function ai(t) {
3238
3241
  }
3239
3242
  });
3240
3243
  }
3241
- function li(t) {
3244
+ function ui(t) {
3242
3245
  const e = Lt();
3243
3246
  return Object.keys(e).forEach((r) => {
3244
3247
  D(t, r) || k(t, r, e[r]);
3245
3248
  }), t;
3246
3249
  }
3247
- function ui(t) {
3250
+ function fi(t) {
3248
3251
  const e = t.rule.control || [];
3249
3252
  return h.Object(e) ? [e] : e;
3250
3253
  }
3251
- function fi(t, e) {
3254
+ function ci(t, e) {
3252
3255
  for (let r = 0; r < t.ctrlRule.length; r++) {
3253
3256
  const i = t.ctrlRule[r];
3254
3257
  if (i.children === e)
@@ -3258,7 +3261,7 @@ function fi(t, e) {
3258
3261
  function bt(t) {
3259
3262
  return !!t.rule.__ctrl;
3260
3263
  }
3261
- function ci(t) {
3264
+ function hi(t) {
3262
3265
  _(t.prototype, {
3263
3266
  setValue(e, r, i, s) {
3264
3267
  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, {
@@ -3383,8 +3386,8 @@ const Ae = {
3383
3386
  },
3384
3387
  mergeProp(t) {
3385
3388
  }
3386
- }, hi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Re = Symbol("oldValue");
3387
- function di(t) {
3389
+ }, di = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Re = Symbol("oldValue");
3390
+ function pi(t) {
3388
3391
  _(t.prototype, {
3389
3392
  getCtx(e) {
3390
3393
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
@@ -3432,7 +3435,7 @@ function di(t) {
3432
3435
  this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
3433
3436
  },
3434
3437
  watchCtx(e) {
3435
- if (Dt().filter((i) => i[0] !== "_" && i[0] !== "$" && hi.indexOf(i) === -1).forEach((i) => {
3438
+ if (Dt().filter((i) => i[0] !== "_" && i[0] !== "$" && di.indexOf(i) === -1).forEach((i) => {
3436
3439
  const s = Ve(e.rule, i), n = i === "children";
3437
3440
  e.refRule[i] = s, e.watch.push(L(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3438
3441
  let l = s.value;
@@ -3568,7 +3571,7 @@ function di(t) {
3568
3571
  case "len":
3569
3572
  case "maxLen":
3570
3573
  case "minLen":
3571
- const a = (g) => n === "len" ? g === o : n === "maxLen" ? g <= o : g >= o;
3574
+ const a = (y) => n === "len" ? y === o : n === "maxLen" ? y <= o : y >= o;
3572
3575
  if (Array.isArray(r)) {
3573
3576
  if (!a(r.length))
3574
3577
  return n;
@@ -3610,7 +3613,7 @@ function di(t) {
3610
3613
  return n;
3611
3614
  break;
3612
3615
  case "hasKeys":
3613
- if (typeof r != "object" || Array.isArray(o) && o.some((g) => !(g in r)))
3616
+ if (typeof r != "object" || Array.isArray(o) && o.some((y) => !(y in r)))
3614
3617
  return n;
3615
3618
  break;
3616
3619
  case "email":
@@ -3647,18 +3650,18 @@ function di(t) {
3647
3650
  const l = a.mode === "OR";
3648
3651
  let u = !0;
3649
3652
  for (let f = 0; f < a.group.length; f++) {
3650
- const d = a.group[f];
3651
- let p, y = null;
3652
- if (d.variable)
3653
- y = JSON.stringify(this.fc.getLoadData(d.variable) || "");
3654
- else if (d.field)
3655
- y = pt(d.field || "");
3656
- else if (!d.mode)
3653
+ const p = a.group[f];
3654
+ let d, g = null;
3655
+ if (p.variable)
3656
+ g = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3657
+ else if (p.field)
3658
+ g = pt(p.field || "");
3659
+ else if (!p.mode)
3657
3660
  return !0;
3658
- let g = d.compare;
3659
- 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)
3661
+ let y = p.compare;
3662
+ 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)
3660
3663
  return !0;
3661
- l || (u = u && p);
3664
+ l || (u = u && d);
3662
3665
  }
3663
3666
  return l ? !1 : u;
3664
3667
  };
@@ -3714,7 +3717,7 @@ function di(t) {
3714
3717
  }
3715
3718
  });
3716
3719
  }
3717
- function pi(t) {
3720
+ function mi(t) {
3718
3721
  _(t.prototype, {
3719
3722
  mounted() {
3720
3723
  const e = () => {
@@ -3728,27 +3731,41 @@ function pi(t) {
3728
3731
  emitEvent(e, ...r) {
3729
3732
  const i = this.options[e] || this.options[J("on-" + e)];
3730
3733
  if (i) {
3731
- const s = x(i);
3734
+ const s = X(i);
3732
3735
  h.Function(s) && O(() => s(...r));
3733
3736
  }
3734
3737
  this.bus.$emit(e, ...r);
3735
3738
  },
3736
3739
  targetHook(e, r, i) {
3737
- var n, o;
3738
- let s = (o = (n = e.prop) == null ? void 0 : n.hook) == null ? void 0 : o[r];
3739
- s && (s = Array.isArray(s) ? s : [s], s.forEach((a) => {
3740
- O(() => a(q(v({}, i || {}), { self: e.rule, rule: e.rule, $f: this.api, api: this.api, option: this.vm.$props.option })));
3741
- }));
3740
+ var l, u, f, p;
3741
+ let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, g) => {
3742
+ d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
3743
+ O(() => y(q(v({}, i || {}), {
3744
+ self: e.rule,
3745
+ rule: e.rule,
3746
+ parent: g == null ? void 0 : g.rule,
3747
+ $f: this.api,
3748
+ api: this.api,
3749
+ option: this.vm.$props.option
3750
+ })));
3751
+ }));
3752
+ };
3753
+ n(s);
3754
+ let o = "deep" + Ur(r), a = e.parent;
3755
+ for (; a; ) {
3756
+ let d = (p = (f = a.prop) == null ? void 0 : f.hook) == null ? void 0 : p[o];
3757
+ n(d, a), a = a.parent;
3758
+ }
3742
3759
  }
3743
3760
  });
3744
3761
  }
3745
- function mi(t) {
3762
+ function gi(t) {
3746
3763
  _(t.prototype, {
3747
3764
  useProvider() {
3748
3765
  const e = this.fc.providers;
3749
3766
  Object.keys(e).forEach((r) => {
3750
3767
  let i = e[r];
3751
- h.Function(i) && (i = i(this.fc)), i._c = yi(i), this.onEffect(i), this.providers[r] = i;
3768
+ h.Function(i) && (i = i(this.fc)), i._c = $i(i), this.onEffect(i), this.providers[r] = i;
3752
3769
  });
3753
3770
  },
3754
3771
  onEffect(e) {
@@ -3805,32 +3822,32 @@ function mi(t) {
3805
3822
  Object.keys(l).forEach((u) => {
3806
3823
  const f = this.providers[u];
3807
3824
  if (!f || f.input && !i) return;
3808
- let d;
3825
+ let p;
3809
3826
  if (!f._c)
3810
- d = "*";
3827
+ p = "*";
3811
3828
  else if (f._used.indexOf(s) > -1)
3812
- d = s;
3829
+ p = s;
3813
3830
  else
3814
3831
  return;
3815
- const p = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3816
- e && (p.getProp = () => e.effectData(u), p.clearProp = () => e.clearEffectData(u), p.mergeProp = (y) => te(p.getProp(), [y]), p.id = e.id), this.bus.$emit(`p:${u}:${d}:${f.input ? 1 : 0}`, o, [p, r, this.api]);
3832
+ const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3833
+ e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (g) => te(d.getProp(), [g]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3817
3834
  });
3818
3835
  }
3819
3836
  });
3820
3837
  }
3821
- function gi(t) {
3838
+ function yi(t) {
3822
3839
  return t.filter(function(e, r, i) {
3823
3840
  return i.indexOf(e, 0) === r;
3824
3841
  });
3825
3842
  }
3826
- function yi(t) {
3843
+ function $i(t) {
3827
3844
  const e = t.components;
3828
3845
  if (Array.isArray(e)) {
3829
- const r = gi(e.filter((i) => i !== "*"));
3846
+ const r = yi(e.filter((i) => i !== "*"));
3830
3847
  return r.length ? r : !1;
3831
3848
  } else return h.String(e) ? [e] : !1;
3832
3849
  }
3833
- function X(t) {
3850
+ function x(t) {
3834
3851
  Tt(this, {
3835
3852
  options() {
3836
3853
  return t.options.value || {};
@@ -3868,9 +3885,9 @@ function X(t) {
3868
3885
  }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
3869
3886
  const i = O(() => r(e, this));
3870
3887
  return i && i !== e && _(e, i), e;
3871
- }, Qr(this));
3888
+ }, Yr(this));
3872
3889
  }
3873
- _(X.prototype, {
3890
+ _(x.prototype, {
3874
3891
  initData(t) {
3875
3892
  _(this, {
3876
3893
  ctxs: {},
@@ -3908,26 +3925,26 @@ _(X.prototype, {
3908
3925
  });
3909
3926
  }
3910
3927
  });
3911
- ri(X);
3912
- ii(X);
3913
- si(X);
3914
- ai(X);
3915
- ci(X);
3916
- di(X);
3917
- pi(X);
3918
- mi(X);
3919
- const $i = "fcFragment", Ne = {
3920
- name: $i,
3928
+ ii(x);
3929
+ ni(x);
3930
+ oi(x);
3931
+ li(x);
3932
+ hi(x);
3933
+ pi(x);
3934
+ mi(x);
3935
+ gi(x);
3936
+ const bi = "fcFragment", Ne = {
3937
+ name: bi,
3921
3938
  functional: !0,
3922
3939
  props: ["vnode"],
3923
3940
  render(t, e) {
3924
3941
  return e.props.vnode ? e.props.vnode : e.children;
3925
3942
  }
3926
3943
  };
3927
- function bi(t) {
3944
+ function vi(t) {
3928
3945
  return h.String(t) ? { domProps: { innerHTML: t } } : t;
3929
3946
  }
3930
- function vi() {
3947
+ function _i() {
3931
3948
  const t = {};
3932
3949
  function e(r) {
3933
3950
  r && this.setVm(r);
@@ -3942,7 +3959,7 @@ function vi() {
3942
3959
  },
3943
3960
  makeComponent(r, i, s) {
3944
3961
  var o;
3945
- let n = this.$h(r, bi(i), s || []);
3962
+ let n = this.$h(r, vi(i), s || []);
3946
3963
  if ((o = n == null ? void 0 : n.componentOptions) != null && o.propsData && (i != null && i.props)) {
3947
3964
  const a = Object.keys(n.componentOptions.propsData);
3948
3965
  n.data.attrs || (n.data.attrs = {}), Object.keys(i.props).forEach((l) => {
@@ -3969,7 +3986,7 @@ function vi() {
3969
3986
  }
3970
3987
  }), e;
3971
3988
  }
3972
- function _i(t) {
3989
+ function Ci(t) {
3973
3990
  class e extends Gt {
3974
3991
  }
3975
3992
  return Object.assign(e.prototype, t), e;
@@ -4033,7 +4050,7 @@ _(Gt.prototype, {
4033
4050
  render(t) {
4034
4051
  }
4035
4052
  });
4036
- const Ci = function(t) {
4053
+ const wi = function(t) {
4037
4054
  const e = {
4038
4055
  name: "loadData",
4039
4056
  _fn: [],
@@ -4043,14 +4060,14 @@ const Ci = function(t) {
4043
4060
  const o = [];
4044
4061
  n.forEach((a) => {
4045
4062
  if (a && (a.attr || a.template)) {
4046
- let l = (d) => {
4047
- let p;
4048
- i && i.__fc__ && (p = i.__fc__.getParentGroup());
4049
- let y;
4050
- 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 = K(y));
4051
- const g = a.modify ? i : r.getProp();
4052
- a.to === "child" ? g.children ? k(g.children, 0, y) : k(g, "children", [y]) : oe(g, a.to || "options", y), s.sync(i);
4053
- }, u = (d) => l(d);
4063
+ let l = (p) => {
4064
+ let d;
4065
+ i && i.__fc__ && (d = i.__fc__.getParentGroup());
4066
+ let g;
4067
+ 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 = K(g));
4068
+ const y = a.modify ? i : r.getProp();
4069
+ a.to === "child" ? y.children ? k(y.children, 0, g) : k(y, "children", [g]) : oe(y, a.to || "options", g), s.sync(i);
4070
+ }, u = (p) => l(p);
4054
4071
  const f = t.watchLoadData(u);
4055
4072
  l = se(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
4056
4073
  }
@@ -4064,7 +4081,7 @@ const Ci = function(t) {
4064
4081
  }
4065
4082
  };
4066
4083
  return e.watch = e.loaded, e;
4067
- }, wi = function(t) {
4084
+ }, Oi = function(t) {
4068
4085
  const e = {
4069
4086
  name: "t",
4070
4087
  _fn: [],
@@ -4076,13 +4093,13 @@ const Ci = function(t) {
4076
4093
  const l = n[a];
4077
4094
  if (l) {
4078
4095
  const u = typeof l == "object";
4079
- let f = (y) => {
4080
- let g = t.t(u ? l.attr : l, u ? l.params : null, y);
4096
+ let f = (g) => {
4097
+ let y = t.t(u ? l.attr : l, u ? l.params : null, g);
4081
4098
  const w = u && l.modify ? i : r.getProp();
4082
- a === "child" ? w.children ? k(w.children, 0, g) : k(w, "children", [g]) : oe(w, a, g), s.sync(i);
4083
- }, d = (y) => f(y);
4084
- const p = t.watchLoadData(d);
4085
- f = se(f, l.wait || 300), l.watch !== !1 ? o.push(p) : p();
4099
+ a === "child" ? w.children ? k(w.children, 0, y) : k(w, "children", [y]) : oe(w, a, y), s.sync(i);
4100
+ }, p = (g) => f(g);
4101
+ const d = t.watchLoadData(p);
4102
+ f = se(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4086
4103
  }
4087
4104
  }), this._fn[r.id] = o;
4088
4105
  },
@@ -4118,7 +4135,7 @@ const Ci = function(t) {
4118
4135
  watch(...t) {
4119
4136
  Jt.load(...t);
4120
4137
  }
4121
- }, Oi = function(t) {
4138
+ }, Fi = function(t) {
4122
4139
  function e(s) {
4123
4140
  return h.String(s) && (s = {
4124
4141
  action: s,
@@ -4128,55 +4145,55 @@ const Ci = function(t) {
4128
4145
  function r(s, n, o) {
4129
4146
  let a = s.value;
4130
4147
  i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
4131
- const l = (d) => {
4132
- d === void 0 ? s.clearProp() : oe(s.getProp(), a.to || "options", d), o.sync(n);
4148
+ const l = (p) => {
4149
+ p === void 0 ? s.clearProp() : oe(s.getProp(), a.to || "options", p), o.sync(n);
4133
4150
  };
4134
4151
  if (!a || !a.action && !a.key) {
4135
4152
  l(void 0);
4136
4153
  return;
4137
4154
  }
4138
4155
  if (a = K(a), a.to || (a.to = "options"), a.key) {
4139
- const d = t.$handle.options.globalData[a.key];
4140
- if (!d) {
4156
+ const p = t.$handle.options.globalData[a.key];
4157
+ if (!p) {
4141
4158
  l(void 0);
4142
4159
  return;
4143
4160
  }
4144
- if (d.type === "static") {
4145
- l(d.data);
4161
+ if (p.type === "static") {
4162
+ l(p.data);
4146
4163
  return;
4147
4164
  } else
4148
- a = v(v({}, a), d);
4165
+ a = v(v({}, a), p);
4149
4166
  }
4150
4167
  const u = a.onError, f = () => {
4151
4168
  if (!s.getValue())
4152
4169
  return s.clearProp(), o.sync(n), !0;
4153
4170
  };
4154
- i._fn[s.id] = t.watchLoadData(se((d, p) => {
4155
- if (p && a.watch === !1)
4171
+ i._fn[s.id] = t.watchLoadData(se((p, d) => {
4172
+ if (d && a.watch === !1)
4156
4173
  return i._fn[s.id]();
4157
- const y = t.$handle.loadFetchVar(K(a), d, n), g = q(v({
4174
+ const g = t.$handle.loadFetchVar(K(a), p, n), y = q(v({
4158
4175
  headers: {}
4159
- }, y), {
4176
+ }, g), {
4160
4177
  onSuccess(w, F) {
4161
4178
  if (f()) return;
4162
4179
  let G = (N) => F ? N : D(N, "data") ? N.data : N;
4163
- const V = x(y.parse);
4180
+ const V = X(g.parse);
4164
4181
  h.Function(V) ? G = V : V && h.String(V) && (G = (N) => B(N, V)), l(G(w, n, o));
4165
4182
  },
4166
4183
  onError(w) {
4167
- l(void 0), !f() && (u || ((F) => tt(F.message || "fetch fail " + y.action)))(w, n, o);
4184
+ l(void 0), !f() && (u || ((F) => tt(F.message || "fetch fail " + g.action)))(w, n, o);
4168
4185
  }
4169
4186
  });
4170
- t.$handle.beforeFetch(g, { rule: n, api: o }).then(() => {
4171
- if (h.Function(y.action)) {
4172
- y.action(n, o).then((w) => {
4173
- g.onSuccess(w, !0);
4187
+ t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4188
+ if (h.Function(g.action)) {
4189
+ g.action(n, o).then((w) => {
4190
+ y.onSuccess(w, !0);
4174
4191
  }).catch((w) => {
4175
- g.onError(w);
4192
+ y.onError(w);
4176
4193
  });
4177
4194
  return;
4178
4195
  }
4179
- O(() => t.create.fetch(g, { inject: s, rule: n, api: o }));
4196
+ O(() => t.create.fetch(y, { inject: s, rule: n, api: o }));
4180
4197
  }).catch((w) => {
4181
4198
  });
4182
4199
  }, a.wait || 600));
@@ -4195,13 +4212,13 @@ const Ci = function(t) {
4195
4212
  }
4196
4213
  };
4197
4214
  return i;
4198
- }, Fi = {
4199
- fetch: Oi,
4200
- loadData: Ci,
4201
- t: wi,
4215
+ }, ki = {
4216
+ fetch: Fi,
4217
+ loadData: wi,
4218
+ t: Oi,
4202
4219
  componentValidate: Jt
4203
4220
  };
4204
- function ki(t) {
4221
+ function Ei(t) {
4205
4222
  t = t || /* @__PURE__ */ new Map();
4206
4223
  const e = {
4207
4224
  $on(r, i) {
@@ -4225,8 +4242,8 @@ function ki(t) {
4225
4242
  };
4226
4243
  return e;
4227
4244
  }
4228
- const Ei = "html", Si = {
4229
- name: Ei,
4245
+ const Si = "html", Ri = {
4246
+ name: Si,
4230
4247
  loadChildren: !1,
4231
4248
  render(t, e) {
4232
4249
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
@@ -4235,7 +4252,7 @@ const Ei = "html", Si = {
4235
4252
  return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
4236
4253
  }
4237
4254
  };
4238
- function Ri(t) {
4255
+ function Di(t) {
4239
4256
  t = t + "=";
4240
4257
  const r = decodeURIComponent(document.cookie).split(";");
4241
4258
  for (let i = 0; i < r.length; i++) {
@@ -4253,7 +4270,7 @@ function Ri(t) {
4253
4270
  }
4254
4271
  return null;
4255
4272
  }
4256
- function Di(t) {
4273
+ function ji(t) {
4257
4274
  const e = localStorage.getItem(t);
4258
4275
  if (e)
4259
4276
  try {
@@ -4263,7 +4280,7 @@ function Di(t) {
4263
4280
  }
4264
4281
  return null;
4265
4282
  }
4266
- function ji(t) {
4283
+ function Ai(t) {
4267
4284
  const e = sessionStorage.getItem(t);
4268
4285
  if (e)
4269
4286
  try {
@@ -4280,16 +4297,16 @@ function nt(t, e) {
4280
4297
  let i = t(r.shift());
4281
4298
  return r.length ? i == null ? null : B(i, r) : i;
4282
4299
  }
4283
- function Ai(t) {
4284
- return nt(Ri, t);
4285
- }
4286
4300
  function Vi(t) {
4287
4301
  return nt(Di, t);
4288
4302
  }
4289
4303
  function Ii(t) {
4290
4304
  return nt(ji, t);
4291
4305
  }
4292
- const Pi = {
4306
+ function Pi(t) {
4307
+ return nt(Ai, t);
4308
+ }
4309
+ const Ti = {
4293
4310
  en: {
4294
4311
  required: "{title} is required",
4295
4312
  validate: {
@@ -4339,17 +4356,17 @@ const Pi = {
4339
4356
  }
4340
4357
  }
4341
4358
  };
4342
- function Ti(t, e) {
4359
+ function Bi(t, e) {
4343
4360
  let r;
4344
4361
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4345
4362
  }
4346
4363
  function Me() {
4347
- return Ti("name", ...arguments);
4364
+ return Bi("name", ...arguments);
4348
4365
  }
4349
- function Bi(t) {
4366
+ function Li(t) {
4350
4367
  return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
4351
4368
  }
4352
- function Li(t, e) {
4369
+ function Ni(t, e) {
4353
4370
  const r = new Vue({
4354
4371
  data() {
4355
4372
  return { rule: t, option: e || {} };
@@ -4360,23 +4377,23 @@ function Li(t, e) {
4360
4377
  });
4361
4378
  return r.$mount(), r;
4362
4379
  }
4363
- function Ni(t) {
4380
+ function Mi(t) {
4364
4381
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4365
4382
  Rt.push(...e), Ye.push(...r), et.push(...i), Nt([...e, ...r, ...i]);
4366
4383
  }
4367
- let Mi = 1;
4384
+ let qi = 1;
4368
4385
  const U = {}, De = Symbol("defValue");
4369
4386
  function Kt(t) {
4370
4387
  const e = {
4371
4388
  [Ne.name]: Ne
4372
4389
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4373
4390
  t.extendApi
4374
- ], u = v({}, Fi), f = Xr();
4375
- let d = { global: {} };
4376
- const p = t.isMobile === !0, y = ne({
4377
- $mobile: p
4378
- }), g = vi(), w = {}, F = {};
4379
- Ni(t.attrs || {});
4391
+ ], u = v({}, ki), f = Zr();
4392
+ let p = { global: {} };
4393
+ const d = t.isMobile === !0, g = ne({
4394
+ $mobile: d
4395
+ }), y = _i(), w = {}, F = {};
4396
+ Mi(t.attrs || {});
4380
4397
  function G(c) {
4381
4398
  const m = U[c];
4382
4399
  if (Array.isArray(m))
@@ -4398,7 +4415,7 @@ function Kt(t) {
4398
4415
  }));
4399
4416
  }
4400
4417
  function Pe(c) {
4401
- g.use(c);
4418
+ y.use(c);
4402
4419
  }
4403
4420
  function pe() {
4404
4421
  const c = Me(...arguments);
@@ -4415,10 +4432,10 @@ function Kt(t) {
4415
4432
  $ = J(c.name), m = c;
4416
4433
  if (!$ || !m) return;
4417
4434
  const b = J($);
4418
- e[$] = m, e[b] = m, delete g.aliasMap[$], delete g.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && pe($, m.formCreateParser);
4435
+ e[$] = m, e[b] = m, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && pe($, m.formCreateParser);
4419
4436
  }
4420
4437
  function R() {
4421
- return zr(Be, e, i);
4438
+ return Xr(Be, e, i);
4422
4439
  }
4423
4440
  function M() {
4424
4441
  return Ne;
@@ -4427,9 +4444,9 @@ function Kt(t) {
4427
4444
  return h.Function(c.install) ? c.install(W, m) : h.Function(c) && c(W, m), this;
4428
4445
  }
4429
4446
  function W(c, m, $) {
4430
- let b = Li(c, m || {});
4447
+ let b = Ni(c, m || {});
4431
4448
  const C = b.$refs.fc.formCreate;
4432
- return C.$parent = $, Bi(C.options).appendChild(b.$el), C.api();
4449
+ return C.$parent = $, Li(C.options).appendChild(b.$el), C.api();
4433
4450
  }
4434
4451
  Se(W, F);
4435
4452
  function zt(c) {
@@ -4443,13 +4460,13 @@ function Kt(t) {
4443
4460
  useApps: o,
4444
4461
  maker: f,
4445
4462
  formulas: w,
4446
- loadData: y
4463
+ loadData: g
4447
4464
  } : delete m.inherit, Kt(m);
4448
4465
  }
4449
- function xt(c, m) {
4466
+ function Xt(c, m) {
4450
4467
  s[c] = m;
4451
4468
  }
4452
- function Xt(c, m) {
4469
+ function xt(c, m) {
4453
4470
  w[c] = m;
4454
4471
  }
4455
4472
  function Zt(c, m) {
@@ -4466,7 +4483,7 @@ function Kt(t) {
4466
4483
  });
4467
4484
  }
4468
4485
  function Te(c, m) {
4469
- oe(y, c, m), Oe(c);
4486
+ oe(g, c, m), Oe(c);
4470
4487
  }
4471
4488
  function Fe(c, m) {
4472
4489
  const $ = (...b) => O(() => m(...b));
@@ -4476,8 +4493,8 @@ function Kt(t) {
4476
4493
  const $ = (c || "").split(".");
4477
4494
  c = $.shift();
4478
4495
  const b = $.join(".");
4479
- if (D(y, c) || k(y, c, De), y[c] !== De) {
4480
- let C = y[c];
4496
+ if (D(g, c) || k(g, c, De), g[c] !== De) {
4497
+ let C = g[c];
4481
4498
  return C && C._driver ? C = C(b) : $.length && (C = B(C, $)), C == null || C === "" ? m : C;
4482
4499
  } else
4483
4500
  return m;
@@ -4486,22 +4503,22 @@ function Kt(t) {
4486
4503
  l.push(c);
4487
4504
  }
4488
4505
  function Yt(c) {
4489
- delete y[c], Oe(c);
4506
+ delete g[c], Oe(c);
4490
4507
  }
4491
4508
  function er(c, m) {
4492
4509
  a.push({ name: c, callback: m });
4493
4510
  }
4494
4511
  function Be(c) {
4495
4512
  _(this, {
4496
- id: Mi++,
4513
+ id: qi++,
4497
4514
  create: W,
4498
4515
  vm: c,
4499
- manager: _i(t.manager),
4516
+ manager: Ci(t.manager),
4500
4517
  parsers: r,
4501
4518
  providers: u,
4502
4519
  modelFields: s,
4503
4520
  formulas: w,
4504
- isMobile: p,
4521
+ isMobile: d,
4505
4522
  rules: c.$options.propsData.rule,
4506
4523
  name: c.$options.propsData.name || Ie(),
4507
4524
  inFor: c.$options.propsData.inFor,
@@ -4513,9 +4530,9 @@ function Kt(t) {
4513
4530
  drivers: n,
4514
4531
  renderDriver: null,
4515
4532
  refreshData: Oe,
4516
- loadData: y,
4517
- CreateNode: g,
4518
- bus: new ki(),
4533
+ loadData: g,
4534
+ CreateNode: y,
4535
+ bus: new Ei(),
4519
4536
  unwatch: [],
4520
4537
  options: mr({}),
4521
4538
  extendApiFn: l,
@@ -4527,9 +4544,9 @@ function Kt(t) {
4527
4544
  L(this.options, () => {
4528
4545
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4529
4546
  }, { deep: !0 });
4530
- }), _(c.$options.components, e), _(c.$options.directives, i), this.$handle = new X(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
4547
+ }), _(c.$options.components, e), _(c.$options.directives, i), this.$handle = new x(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
4531
4548
  }
4532
- Be.isMobile = p, _(Be.prototype, {
4549
+ Be.isMobile = d, _(Be.prototype, {
4533
4550
  init() {
4534
4551
  this.isSub() && this.unwatch.push(L(() => this.vm.parent.fc.options.value, () => {
4535
4552
  this.initOptions(), this.$handle.api.refresh();
@@ -4593,7 +4610,7 @@ function Kt(t) {
4593
4610
  let m = this.vm.top.$props.locale, $;
4594
4611
  if (m && typeof m == "object" && ($ = B(m, c)), $ == null) {
4595
4612
  const b = this.options.value.language || {}, C = this.getLocale();
4596
- $ = B(b[C] || {}, c), $ == null && ($ = B(Pi[C] || {}, c));
4613
+ $ = B(b[C] || {}, c), $ == null && ($ = B(Ti[C] || {}, c));
4597
4614
  }
4598
4615
  return $;
4599
4616
  },
@@ -4601,7 +4618,7 @@ function Kt(t) {
4601
4618
  let m = c.split(".");
4602
4619
  const $ = m.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4603
4620
  if (b) {
4604
- const C = h.Function(b) ? b : x(b.handle);
4621
+ const C = h.Function(b) ? b : X(b.handle);
4605
4622
  if (C) {
4606
4623
  let j;
4607
4624
  const S = this.watchLoadData((ae, Z) => {
@@ -4689,13 +4706,13 @@ function Kt(t) {
4689
4706
  resetBtn: {},
4690
4707
  globalEvent: {},
4691
4708
  globalData: {}
4692
- }, K(d));
4709
+ }, K(p));
4693
4710
  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);
4694
4711
  },
4695
4712
  mergeOptions(c, m, $) {
4696
4713
  return m = v({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4697
4714
  delete m[b];
4698
- }), m.global && (c.global = Jr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4715
+ }), m.global && (c.global = Kr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4699
4716
  },
4700
4717
  updateOptions(c) {
4701
4718
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4728,7 +4745,7 @@ function Kt(t) {
4728
4745
  _(c, {
4729
4746
  version: t.version,
4730
4747
  ui: t.ui,
4731
- isMobile: p,
4748
+ isMobile: d,
4732
4749
  extendApi: Qt,
4733
4750
  getData: st,
4734
4751
  setDataDriver: Fe,
@@ -4738,8 +4755,8 @@ function Kt(t) {
4738
4755
  maker: f,
4739
4756
  component: E,
4740
4757
  directive: N,
4741
- setModelField: xt,
4742
- setFormula: Xt,
4758
+ setModelField: Xt,
4759
+ setFormula: xt,
4743
4760
  setDriver: Zt,
4744
4761
  register: de,
4745
4762
  $vnode: M,
@@ -4752,7 +4769,7 @@ function Kt(t) {
4752
4769
  mergeRule: te,
4753
4770
  fetch: qt,
4754
4771
  $form: R,
4755
- parseFn: x,
4772
+ parseFn: X,
4756
4773
  parseJson: Vt,
4757
4774
  toJson: Ce,
4758
4775
  useApp: V,
@@ -4764,7 +4781,7 @@ function Kt(t) {
4764
4781
  _(c, {
4765
4782
  create: W,
4766
4783
  install(m, $) {
4767
- if (d = v(v({}, d), $ || {}), m._installedFormCreate === !0) return;
4784
+ if (p = v(v({}, p), $ || {}), m._installedFormCreate === !0) return;
4768
4785
  m._installedFormCreate = !0;
4769
4786
  const b = function(j, S = {}) {
4770
4787
  return W(j, S, this);
@@ -4777,9 +4794,9 @@ function Kt(t) {
4777
4794
  }
4778
4795
  });
4779
4796
  }
4780
- if (ot(F), tr(F), Fe("$cookie", Ai), Fe("$localStorage", Vi), Fe("$sessionStorage", Ii), g.use({ fragment: "fcFragment" }), t.install && W.use(t), pe(Si), t.inherit) {
4797
+ if (ot(F), tr(F), Fe("$cookie", Vi), Fe("$localStorage", Ii), Fe("$sessionStorage", Pi), y.use({ fragment: "fcFragment" }), t.install && W.use(t), pe(Ri), t.inherit) {
4781
4798
  const c = t.inherit;
4782
- c.components && _(e, c.components), c.parsers && _(r, c.parsers), c.directives && _(i, c.directives), c.modelFields && _(s, c.modelFields), c.providers && _(u, c.providers), c.useApps && _(o, c.useApps), c.maker && _(f, c.maker), c.loadData && _(y, c.loadData), c.formulas && _(w, c.formulas);
4799
+ c.components && _(e, c.components), c.parsers && _(r, c.parsers), c.directives && _(i, c.directives), c.modelFields && _(s, c.modelFields), c.providers && _(u, c.providers), c.useApps && _(o, c.useApps), c.maker && _(f, c.maker), c.loadData && _(g, c.loadData), c.formulas && _(w, c.formulas);
4783
4800
  }
4784
4801
  const ke = R();
4785
4802
  return Se(ke, F), Object.defineProperties(ke, {
@@ -4802,7 +4819,7 @@ const _t = {
4802
4819
  monthrange: "yyyy-MM",
4803
4820
  datetimerange: "yyyy-MM-dd HH:mm:ss",
4804
4821
  year: "yyyy"
4805
- }, Ct = "datePicker", qi = {
4822
+ }, Ct = "datePicker", Ui = {
4806
4823
  name: Ct,
4807
4824
  maker: function() {
4808
4825
  return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = T(Ct, { type: e.toLowerCase() }), t), {});
@@ -4811,7 +4828,7 @@ const _t = {
4811
4828
  const e = t.prop.props;
4812
4829
  e.valueFormat || (e.valueFormat = _t[e.type] || _t.date);
4813
4830
  }
4814
- }, qe = "hidden", Ui = {
4831
+ }, qe = "hidden", Hi = {
4815
4832
  name: qe,
4816
4833
  maker: {
4817
4834
  [qe]: (t, e) => T(qe)("", t, e)
@@ -4819,7 +4836,7 @@ const _t = {
4819
4836
  render() {
4820
4837
  return [];
4821
4838
  }
4822
- }, Ue = "input", Hi = {
4839
+ }, Ue = "input", Gi = {
4823
4840
  name: Ue,
4824
4841
  maker: function() {
4825
4842
  const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = T(Ue, { type: r }), e), {});
@@ -4829,7 +4846,7 @@ const _t = {
4829
4846
  let { props: e } = t.prop;
4830
4847
  e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4831
4848
  }
4832
- }, wt = "slider", Gi = {
4849
+ }, wt = "slider", Ji = {
4833
4850
  name: wt,
4834
4851
  maker: {
4835
4852
  sliderRange: T(wt, { range: !0 })
@@ -4838,7 +4855,7 @@ const _t = {
4838
4855
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4839
4856
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4840
4857
  }
4841
- }, He = "timePicker", Ji = {
4858
+ }, He = "timePicker", Ki = {
4842
4859
  name: He,
4843
4860
  maker: {
4844
4861
  time: T(He, (t) => t.props.isRange = !1),
@@ -4848,27 +4865,27 @@ const _t = {
4848
4865
  const e = t.prop.props;
4849
4866
  e.valueFormat || (e.valueFormat = "HH:mm:ss");
4850
4867
  }
4851
- }, Ki = {
4868
+ }, Wi = {
4852
4869
  name: "FcRow",
4853
4870
  render(t, e) {
4854
4871
  return e.vNode.col({ props: { span: 24 } }, [
4855
4872
  e.vNode.row(e.prop, t)
4856
4873
  ]);
4857
4874
  }
4858
- }, Wi = "select", zi = {
4859
- name: Wi,
4875
+ }, zi = "select", Xi = {
4876
+ name: zi,
4860
4877
  toFormValue(t, e) {
4861
4878
  return e.prop.props.multiple && !Array.isArray(t) ? H(t) : t;
4862
4879
  }
4863
4880
  }, xi = [
4864
- qi,
4865
4881
  Ui,
4866
4882
  Hi,
4867
4883
  Gi,
4868
4884
  Ji,
4869
4885
  Ki,
4870
- zi
4871
- ], A = "el", Xi = {
4886
+ Wi,
4887
+ Xi
4888
+ ], A = "el", Zi = {
4872
4889
  button: A + "Button",
4873
4890
  icon: "i",
4874
4891
  slider: A + "Slider",
@@ -4901,7 +4918,7 @@ const _t = {
4901
4918
  object: "fcSubForm",
4902
4919
  subForm: "fcSubForm"
4903
4920
  };
4904
- function Zi() {
4921
+ function Qi() {
4905
4922
  return {
4906
4923
  form: {
4907
4924
  inline: !1,
@@ -4935,7 +4952,7 @@ function Zi() {
4935
4952
  }
4936
4953
  };
4937
4954
  }
4938
- function Qi(t) {
4955
+ function Yi(t) {
4939
4956
  return t.type === "tooltip";
4940
4957
  }
4941
4958
  function Ot(t, e) {
@@ -4944,14 +4961,14 @@ function Ot(t, e) {
4944
4961
  function Q(t) {
4945
4962
  return t === !1;
4946
4963
  }
4947
- function Yi(t, e) {
4964
+ function en(t, e) {
4948
4965
  D(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4949
4966
  }
4950
4967
  function Ge(t) {
4951
4968
  const e = v({}, t);
4952
4969
  return delete e.children, e;
4953
4970
  }
4954
- const en = {
4971
+ const tn = {
4955
4972
  validate() {
4956
4973
  const t = this.form();
4957
4974
  return t ? t.validate() : new Promise((e) => e());
@@ -4970,7 +4987,7 @@ const en = {
4970
4987
  },
4971
4988
  tidyOptions(t) {
4972
4989
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4973
- Yi(t, e);
4990
+ en(t, e);
4974
4991
  }), t;
4975
4992
  },
4976
4993
  tidyRule({ prop: t }) {
@@ -4992,7 +5009,7 @@ const en = {
4992
5009
  });
4993
5010
  },
4994
5011
  getDefaultOptions() {
4995
- return Zi();
5012
+ return Qi();
4996
5013
  },
4997
5014
  update() {
4998
5015
  const t = this.options.form;
@@ -5040,12 +5057,12 @@ const en = {
5040
5057
  return !(!e.title && !e.native || Q(e.show));
5041
5058
  },
5042
5059
  makeInfo(t, e, r) {
5043
- var f, d, p, y, g, w;
5044
- const i = v({}, t.title), s = v({}, t.info), n = Qi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5045
- title: (d = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : d.value,
5060
+ var f, p, d, g, y, w;
5061
+ const i = v({}, t.title), s = v({}, t.info), n = Yi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5062
+ title: (p = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : p.value,
5046
5063
  rule: r.rule,
5047
5064
  options: this.options
5048
- }) : ((y = (p = r.refRule) == null ? void 0 : p.__$title) == null ? void 0 : y.value) + (o.labelSuffix || o["label-suffix"] || "")];
5065
+ }) : ((g = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : g.value) + (o.labelSuffix || o["label-suffix"] || "")];
5049
5066
  if (!Q(s.show) && (s.info || s.native) && !Q(s.icon)) {
5050
5067
  const F = {
5051
5068
  type: s.type || "popover",
@@ -5055,7 +5072,7 @@ const en = {
5055
5072
  };
5056
5073
  delete F.props.icon, delete F.props.show, delete F.props.info, delete F.props.align, delete F.props.native;
5057
5074
  const G = "content";
5058
- s.info && !D(F.props, G) && (F.props[G] = (w = (g = r.refRule) == null ? void 0 : g.__$info) == null ? void 0 : w.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(ee([s, F]), [
5075
+ s.info && !D(F.props, G) && (F.props[G] = (w = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : w.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(ee([s, F]), [
5059
5076
  this.$r({
5060
5077
  type: "i",
5061
5078
  slot: n ? "default" : "reference",
@@ -5141,25 +5158,25 @@ const en = {
5141
5158
  }, [e]);
5142
5159
  }
5143
5160
  }, he = {};
5144
- tn(he);
5145
5161
  rn(he);
5146
5162
  nn(he);
5147
5163
  sn(he);
5148
5164
  on(he);
5149
- function tn(t) {
5165
+ an(he);
5166
+ function rn(t) {
5150
5167
  ["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "radio", "rate"].forEach((e) => {
5151
5168
  t[e] = T(e);
5152
5169
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
5153
5170
  }
5154
- function rn(t) {
5171
+ function nn(t) {
5155
5172
  const e = "select", r = "multiple";
5156
5173
  t.selectMultiple = T(e, { [r]: !0 }), t.selectOne = T(e, { [r]: !1 });
5157
5174
  }
5158
- function nn(t) {
5175
+ function sn(t) {
5159
5176
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
5160
5177
  Object.keys(r).reduce((i, s) => (i[s] = T(e, { type: r[s] }), i), t);
5161
5178
  }
5162
- function sn(t) {
5179
+ function on(t) {
5163
5180
  const e = "upload", r = {
5164
5181
  image: ["image", 0],
5165
5182
  file: ["file", 0],
@@ -5168,7 +5185,7 @@ function sn(t) {
5168
5185
  };
5169
5186
  Object.keys(r).reduce((i, s) => (i[s] = T(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
5170
5187
  }
5171
- function on(t) {
5188
+ function an(t) {
5172
5189
  const e = {
5173
5190
  frameInputs: ["input", 0],
5174
5191
  frameFiles: ["file", 0],
@@ -5182,7 +5199,7 @@ function on(t) {
5182
5199
  function Ft(t, e) {
5183
5200
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5184
5201
  }
5185
- function an(t, e) {
5202
+ function ln(t, e) {
5186
5203
  return {
5187
5204
  formEl() {
5188
5205
  return e.$manager.form();
@@ -5284,7 +5301,7 @@ const Wt = {
5284
5301
  name: "required",
5285
5302
  load(t, e, r) {
5286
5303
  var s, n;
5287
- const i = ln(t.getValue());
5304
+ const i = un(t.getValue());
5288
5305
  if (i.required === !1)
5289
5306
  t.clearProp(), r.clearValidateState([e.field]);
5290
5307
  else {
@@ -5308,11 +5325,11 @@ const Wt = {
5308
5325
  Wt.load(...t);
5309
5326
  }
5310
5327
  };
5311
- function ln(t) {
5328
+ function un(t) {
5312
5329
  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 : {};
5313
5330
  }
5314
- function un(t) {
5315
- t.componentAlias(Xi), qr.forEach((e) => {
5331
+ function fn(t) {
5332
+ t.componentAlias(Zi), qr.forEach((e) => {
5316
5333
  t.component(e.name, e);
5317
5334
  }), t.register(Wt), xi.forEach((e) => {
5318
5335
  t.parser(e);
@@ -5320,13 +5337,13 @@ function un(t) {
5320
5337
  t.maker[e] = he[e];
5321
5338
  });
5322
5339
  }
5323
- function fn() {
5340
+ function cn() {
5324
5341
  return Kt({
5325
5342
  ui: "element-ui",
5326
- version: "2.7.9",
5327
- manager: en,
5328
- extendApi: an,
5329
- install: un,
5343
+ version: "2.7.10",
5344
+ manager: tn,
5345
+ extendApi: ln,
5346
+ install: fn,
5330
5347
  attrs: {
5331
5348
  normal: ["col", "wrap"],
5332
5349
  array: ["className"],
@@ -5334,10 +5351,10 @@ function fn() {
5334
5351
  }
5335
5352
  });
5336
5353
  }
5337
- const Ze = fn();
5354
+ const Ze = cn();
5338
5355
  typeof window != "undefined" && (window.formCreate = Ze, window.Vue && Ze.install(window.Vue));
5339
- const dn = Ze.maker;
5356
+ const pn = Ze.maker;
5340
5357
  export {
5341
5358
  Ze as default,
5342
- dn as maker
5359
+ pn as maker
5343
5360
  };