@form-create/element-ui 2.7.12 → 2.7.14

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.12
3
+ * @form-create/element-ui v2.7.14
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -19,7 +19,7 @@ var at = (t, e, r) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writ
19
19
  ar.call(e, r) && at(t, r, e[r]);
20
20
  return t;
21
21
  }, q = (t, e) => nr(t, sr(e));
22
- import be, { getCurrentInstance as lr, provide as ur, inject as fr, toRefs as lt, reactive as ne, onBeforeMount as cr, watch as L, onMounted as hr, onBeforeUnmount as dr, onUpdated as pr, nextTick as P, markRaw as ye, computed as $e, toRef as Ae, ref as mr } from "vue";
22
+ import $e, { getCurrentInstance as lr, provide as ur, inject as fr, toRefs as lt, reactive as ie, onBeforeMount as cr, watch as L, onMounted as hr, onBeforeUnmount as dr, onUpdated as pr, nextTick as P, markRaw as ge, computed as ye, toRef as Ae, ref as mr } from "vue";
23
23
  function gr(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
@@ -913,10 +913,10 @@ const Ir = "fcUpload", Pr = {
913
913
  }
914
914
  };
915
915
  function k(t, e, r) {
916
- be.set(t, e, r);
916
+ $e.set(t, e, r);
917
917
  }
918
- function ie(t, e) {
919
- (be.del || be.delete)(t, e);
918
+ function re(t, e) {
919
+ ($e.del || $e.delete)(t, e);
920
920
  }
921
921
  function we(t, e = {}, r) {
922
922
  let i = !1;
@@ -1356,26 +1356,26 @@ const Br = "fcGroup", Lr = {
1356
1356
  Lr,
1357
1357
  Mr
1358
1358
  ];
1359
- function se(t, e) {
1359
+ function ne(t, e) {
1360
1360
  var r = null;
1361
1361
  return function(...i) {
1362
1362
  r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
1363
1363
  };
1364
1364
  }
1365
- function ve(t) {
1365
+ function be(t) {
1366
1366
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1367
1367
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1368
1368
  }
1369
1369
  function Ur(t) {
1370
1370
  return t.replace(t[0], t[0].toLocaleUpperCase());
1371
1371
  }
1372
- const kt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style", "directives"], St = ["on", "nativeOn", "hook"], ee = (t, e = {}, r = {}) => {
1372
+ const kt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style", "directives"], St = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
1373
1373
  const i = [...kt, ...r.normal || []], s = [...Et, ...r.array || []], n = [...St, ...r.functional || []], o = r.props || [];
1374
1374
  return t.reduce((a, l) => {
1375
1375
  for (const u in l)
1376
1376
  if (a[u])
1377
1377
  if (o.indexOf(u) > -1)
1378
- a[u] = ee([l[u]], a[u]);
1378
+ a[u] = Y([l[u]], a[u]);
1379
1379
  else if (i.indexOf(u) > -1)
1380
1380
  a[u] = v(v({}, a[u]), l[u]);
1381
1381
  else if (s.indexOf(u) > -1) {
@@ -1431,7 +1431,7 @@ function Ce(t, e) {
1431
1431
  function Be(t) {
1432
1432
  return new Function("return " + t)();
1433
1433
  }
1434
- function x(t, e) {
1434
+ function z(t, e) {
1435
1435
  if (t && h.String(t) && t.length > 4) {
1436
1436
  let r = t.trim(), i = !1;
1437
1437
  try {
@@ -1474,7 +1474,7 @@ err: ${s}`);
1474
1474
  }
1475
1475
  function Vt(t, e) {
1476
1476
  return JSON.parse(t, function(r, i) {
1477
- return h.Undef(i) || !i.indexOf ? i : x(i, e);
1477
+ return h.Undef(i) || !i.indexOf ? i : z(i, e);
1478
1478
  });
1479
1479
  }
1480
1480
  let Jr = 0;
@@ -1482,13 +1482,13 @@ function Ve() {
1482
1482
  const t = 370 + ++Jr;
1483
1483
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1484
1484
  }
1485
- function oe(t, e, r) {
1485
+ function se(t, e, r) {
1486
1486
  let i = t, s;
1487
1487
  return (e || "").split(".").forEach((n) => {
1488
1488
  s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1489
1489
  }), k(i, s, r), i;
1490
1490
  }
1491
- function ze(t, e) {
1491
+ function xe(t, e) {
1492
1492
  return {
1493
1493
  value: t,
1494
1494
  enumerable: !1,
@@ -1502,8 +1502,8 @@ function It(t, e) {
1502
1502
  function Pt(t, e) {
1503
1503
  return we([], [...t], e || !1);
1504
1504
  }
1505
- function te(t, e) {
1506
- return ee(Array.isArray(e) ? e : [e], t, { array: Qe, normal: Ye }), t;
1505
+ function ee(t, e) {
1506
+ return Y(Array.isArray(e) ? e : [e], t, { array: Qe, normal: Ye }), t;
1507
1507
  }
1508
1508
  function ct(t) {
1509
1509
  const e = h.Function(t.getRule) ? t.getRule() : t;
@@ -1511,7 +1511,7 @@ function ct(t) {
1511
1511
  }
1512
1512
  function Kr(t, e) {
1513
1513
  return t ? (Object.keys(e || {}).forEach((r) => {
1514
- e[r] && (t[r] = te(t[r] || {}, e[r]));
1514
+ e[r] && (t[r] = ee(t[r] || {}, e[r]));
1515
1515
  }), t) : e;
1516
1516
  }
1517
1517
  function Tt(t, e) {
@@ -1521,7 +1521,7 @@ function Tt(t, e) {
1521
1521
  }
1522
1522
  }, r), {}));
1523
1523
  }
1524
- function Y(t) {
1524
+ function Q(t) {
1525
1525
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1526
1526
  }
1527
1527
  function O(t, e) {
@@ -1532,9 +1532,9 @@ function O(t, e) {
1532
1532
  }
1533
1533
  return e;
1534
1534
  }
1535
- function xe(t, e) {
1535
+ function ze(t, e) {
1536
1536
  let r = null;
1537
- return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => xe(i, e)) : r = t, r && e && H(r).forEach((i) => {
1537
+ return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => ze(i, e)) : r = t, r && e && H(r).forEach((i) => {
1538
1538
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1539
1539
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1540
1540
  });
@@ -1544,10 +1544,10 @@ function Wr(t, e) {
1544
1544
  if (h.Object(t)) {
1545
1545
  const r = {};
1546
1546
  return Object.keys(t).forEach((i) => {
1547
- r[i] = xe(t[i], i);
1547
+ r[i] = ze(t[i], i);
1548
1548
  }), r;
1549
1549
  } else
1550
- return xe(t, e);
1550
+ return ze(t, e);
1551
1551
  }
1552
1552
  function Ee() {
1553
1553
  const t = {}, e = (r) => r || "default";
@@ -1588,9 +1588,9 @@ function Ee() {
1588
1588
  function Se(t, e) {
1589
1589
  return Object.setPrototypeOf(t, e), t;
1590
1590
  }
1591
- const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1591
+ const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, fe = {
1592
1592
  "==": (t, e) => JSON.stringify(t) === JSON.stringify(ht(t, e)),
1593
- "!=": (t, e) => !ce["=="](t, e),
1593
+ "!=": (t, e) => !fe["=="](t, e),
1594
1594
  ">": (t, e) => t > e,
1595
1595
  ">=": (t, e) => t >= e,
1596
1596
  "<": (t, e) => t < e,
@@ -1599,13 +1599,13 @@ const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1599
1599
  return t && t.indexOf && t.indexOf(ht(t[0], e)) > -1;
1600
1600
  },
1601
1601
  notOn(t, e) {
1602
- return !ce.on(t, e);
1602
+ return !fe.on(t, e);
1603
1603
  },
1604
1604
  in(t, e) {
1605
1605
  return e && e.indexOf && e.indexOf(t) > -1;
1606
1606
  },
1607
1607
  notIn(t, e) {
1608
- return !ce.in(t, e);
1608
+ return !fe.in(t, e);
1609
1609
  },
1610
1610
  between(t, e) {
1611
1611
  return t > e[0] && t < e[1];
@@ -1628,7 +1628,7 @@ function B(t, e) {
1628
1628
  t != null && (t = t[r]);
1629
1629
  }), t;
1630
1630
  }
1631
- function zr(t) {
1631
+ function xr(t) {
1632
1632
  const e = /{{\s*(.*?)\s*}}/g;
1633
1633
  let r;
1634
1634
  const i = {};
@@ -1662,7 +1662,7 @@ const De = (t, e) => {
1662
1662
  return De(t.$parent, e);
1663
1663
  }
1664
1664
  };
1665
- function xr(t, e, r) {
1665
+ function zr(t, e, r) {
1666
1666
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1667
1667
  return {
1668
1668
  name: i,
@@ -1723,7 +1723,7 @@ function xr(t, e, r) {
1723
1723
  a = a.parent;
1724
1724
  else
1725
1725
  a = n;
1726
- const { rule: l, value: u, subForm: f, inFor: p } = lt(s), d = ne({
1726
+ const { rule: l, value: u, subForm: f, inFor: p } = lt(s), d = ie({
1727
1727
  ctxInject: {},
1728
1728
  destroyed: !1,
1729
1729
  isShow: !0,
@@ -1734,16 +1734,16 @@ function xr(t, e, r) {
1734
1734
  if (o) {
1735
1735
  const E = De(n, o);
1736
1736
  if (E) {
1737
- let R;
1738
- C ? (R = H(E.getSubForm()), R.push(y)) : R = y, E.subForm(R);
1737
+ let S;
1738
+ C ? (S = H(E.getSubForm()), S.push(y)) : S = y, E.subForm(S);
1739
1739
  }
1740
1740
  }
1741
1741
  }, G = () => {
1742
1742
  const E = De(n, o);
1743
1743
  if (E)
1744
1744
  if (C) {
1745
- const R = H(E.getSubForm()), M = R.indexOf(y);
1746
- M > -1 && R.splice(M, 1);
1745
+ const S = H(E.getSubForm()), M = S.indexOf(y);
1746
+ M > -1 && S.splice(M, 1);
1747
1747
  } else
1748
1748
  E.subForm();
1749
1749
  };
@@ -1751,37 +1751,37 @@ function xr(t, e, r) {
1751
1751
  cr(() => {
1752
1752
  L(() => {
1753
1753
  let E = "";
1754
- const R = s.option && s.option.globalClass || {};
1755
- Object.keys(R).forEach((M) => {
1756
- let me = "";
1757
- R[M].style && Object.keys(R[M].style).forEach((W) => {
1758
- me += ve(W) + ":" + R[M].style[W] + ";";
1759
- }), R[M].content && (me += R[M].content + ";"), me && (E += `.${M}{${me}}`);
1754
+ const S = s.option && s.option.globalClass || {};
1755
+ Object.keys(S).forEach((M) => {
1756
+ let pe = "";
1757
+ S[M].style && Object.keys(S[M].style).forEach((W) => {
1758
+ pe += be(W) + ":" + S[M].style[W] + ";";
1759
+ }), S[M].content && (pe += S[M].content + ";"), pe && (E += `.${M}{${pe}}`);
1760
1760
  }), s.option && s.option.style && (E += s.option.style), V || (V = document.createElement("style"), V.type = "text/css", document.head.appendChild(V)), V.innerHTML = E || "";
1761
1761
  }, () => {
1762
1762
  });
1763
1763
  });
1764
- const N = se(() => {
1764
+ const N = ne(() => {
1765
1765
  m.bus.$emit("$loadData.$topForm");
1766
- }, 100), de = se(function() {
1766
+ }, 100), he = ne(function() {
1767
1767
  m.bus.$emit("$loadData.$scopeForm");
1768
- }, 100), Ie = se(() => {
1768
+ }, 100), Ie = ne(() => {
1769
1769
  m.bus.$emit("$loadData.$form");
1770
- }, 100), pe = (E) => {
1770
+ }, 100), de = (E) => {
1771
1771
  m.bus.$emit("change-$form." + E);
1772
1772
  };
1773
1773
  return hr(() => {
1774
- o && (y.top.bus.$on("$loadData.$form", N), y.top.bus.$on("change", pe)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", de), m.mounted();
1774
+ o && (y.top.bus.$on("$loadData.$form", N), y.top.bus.$on("change", de)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", he), m.mounted();
1775
1775
  }), dr(() => {
1776
- 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, m.unmount(), V && (V.parentNode || V.parentElement) && document.head.removeChild(V);
1776
+ o && (y.top.bus.$off("$loadData.$form", N), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), G(), d.destroyed = !0, m.unmount(), V && (V.parentNode || V.parentElement) && document.head.removeChild(V);
1777
1777
  }), pr(() => {
1778
1778
  m.updated();
1779
1779
  }), L(f, (E) => {
1780
1780
  E ? F() : G();
1781
1781
  }, { immediate: !0 }), L(() => s.option, () => {
1782
1782
  m.initOptions(), y.refresh();
1783
- }, { deep: !0 }), L(() => [...l.value], (E) => {
1784
- m.$handle.isBreakWatch() || E.length === d.renderRule.length && E.every((R) => d.renderRule.indexOf(R) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1783
+ }, { deep: !0, flush: "sync" }), L(() => [...l.value], (E) => {
1784
+ m.$handle.isBreakWatch() || E.length === d.renderRule.length && E.every((S) => d.renderRule.indexOf(S) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1785
1785
  }), L(() => [s.disabled, s.preview], () => {
1786
1786
  y.refresh();
1787
1787
  }), L(u, (E) => {
@@ -1793,10 +1793,10 @@ function xr(t, e, r) {
1793
1793
  });
1794
1794
  });
1795
1795
  }, { flush: "sync" }), q(v({
1796
- fc: ye(m),
1797
- parent: o && ye(o),
1798
- top: ye(a),
1799
- fapi: ye(y)
1796
+ fc: ge(m),
1797
+ parent: o && ge(o),
1798
+ top: ge(a),
1799
+ fapi: ge(y)
1800
1800
  }, lt(d)), {
1801
1801
  getGroupInject: () => De(n, o),
1802
1802
  refresh() {
@@ -1807,9 +1807,9 @@ function xr(t, e, r) {
1807
1807
  },
1808
1808
  updateValue(E) {
1809
1809
  if (d.destroyed) return;
1810
- const R = Ce(E);
1811
- d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", E), P(() => {
1812
- Ie(), o ? f.value || de() : (N(), de());
1810
+ const S = Ce(E);
1811
+ d.updateValue !== S && (d.updateValue = S, n.$emit("update:value", E), P(() => {
1812
+ Ie(), o ? f.value || he() : (N(), he());
1813
1813
  }));
1814
1814
  }
1815
1815
  });
@@ -1855,7 +1855,7 @@ _(tt.prototype, {
1855
1855
  function Nt(t) {
1856
1856
  t.forEach((e) => {
1857
1857
  tt.prototype[e] = function(r) {
1858
- return te(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1858
+ return ee(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1859
1859
  };
1860
1860
  });
1861
1861
  }
@@ -1923,7 +1923,7 @@ function gt(t, e, r) {
1923
1923
  (e || qt)(q(v({}, t), {
1924
1924
  onSuccess(n) {
1925
1925
  let o = (l) => l;
1926
- const a = x(t.parse);
1926
+ const a = z(t.parse);
1927
1927
  h.Function(a) ? o = a : a && h.String(a) && (o = (l) => B(l, a)), i(o(n, void 0, r));
1928
1928
  },
1929
1929
  onError(n) {
@@ -2063,7 +2063,7 @@ function Yr(t) {
2063
2063
  }, !0), o ? o.origin : void 0;
2064
2064
  },
2065
2065
  removeRule(n) {
2066
- const o = n && Y(n);
2066
+ const o = n && Q(n);
2067
2067
  if (o)
2068
2068
  return o.rm(), o.origin;
2069
2069
  },
@@ -2152,7 +2152,7 @@ function Yr(t) {
2152
2152
  n.forEach((a) => s.sync(a));
2153
2153
  return;
2154
2154
  }
2155
- let o = h.Object(n) ? Y(n) : t.getCtxs(n);
2155
+ let o = h.Object(n) ? Q(n) : t.getCtxs(n);
2156
2156
  o && (o = Array.isArray(o) ? o : [o], o.forEach((a) => {
2157
2157
  if (!a.deleted) {
2158
2158
  const l = t.subForm[a.id];
@@ -2189,7 +2189,7 @@ function Yr(t) {
2189
2189
  },
2190
2190
  mergeRule: (n, o) => {
2191
2191
  t.getCtxs(n).forEach((a) => {
2192
- te(a.rule, o);
2192
+ ee(a.rule, o);
2193
2193
  });
2194
2194
  },
2195
2195
  mergeRules(n) {
@@ -2202,6 +2202,20 @@ function Yr(t) {
2202
2202
  if (a)
2203
2203
  return o ? a.origin : a.rule;
2204
2204
  },
2205
+ findType(n, o) {
2206
+ let a;
2207
+ return Object.keys(t.ctxs).forEach((l) => {
2208
+ const u = t.ctxs[l];
2209
+ u.rule.type === n && (a = o ? u.origin : u.rule);
2210
+ }), a;
2211
+ },
2212
+ findTypes(n, o) {
2213
+ let a = [];
2214
+ return Object.keys(t.ctxs).forEach((l) => {
2215
+ const u = t.ctxs[l];
2216
+ u.rule.type === n && a.push(o ? u.origin : u.rule);
2217
+ }), a;
2218
+ },
2205
2219
  getRenderRule: (n) => {
2206
2220
  const o = t.getCtx(n);
2207
2221
  if (o)
@@ -2275,7 +2289,7 @@ function Yr(t) {
2275
2289
  return o ? t.subForm[o.id] : void 0;
2276
2290
  },
2277
2291
  getChildrenRuleList(n) {
2278
- const o = typeof n == "object", a = o ? Y(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2292
+ const o = typeof n == "object", a = o ? Q(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2279
2293
  if (!l)
2280
2294
  return [];
2281
2295
  const u = [];
@@ -2286,10 +2300,10 @@ function Yr(t) {
2286
2300
  })(a ? a.loadChildrenPending() : l.children), u;
2287
2301
  },
2288
2302
  getParentRule(n) {
2289
- return (typeof n == "object" ? Y(n) : t.getCtx(n)).parent.rule;
2303
+ return (typeof n == "object" ? Q(n) : t.getCtx(n)).parent.rule;
2290
2304
  },
2291
2305
  getParentSubRule(n) {
2292
- const a = typeof n == "object" ? Y(n) : t.getCtx(n);
2306
+ const a = typeof n == "object" ? Q(n) : t.getCtx(n);
2293
2307
  if (a) {
2294
2308
  const l = a.getParentGroup();
2295
2309
  if (l)
@@ -2310,7 +2324,7 @@ function Yr(t) {
2310
2324
  getGlobalEvent(n) {
2311
2325
  let o = s.options.globalEvent[n];
2312
2326
  if (o)
2313
- return typeof o == "object" && (o = o.handle), x(o);
2327
+ return typeof o == "object" && (o = o.handle), z(o);
2314
2328
  },
2315
2329
  getGlobalData(n) {
2316
2330
  return new Promise((o, a) => {
@@ -2327,11 +2341,11 @@ function Yr(t) {
2327
2341
  s.setData("$var." + n, o);
2328
2342
  },
2329
2343
  renderRule(n, o, a) {
2330
- const u = typeof n == "object" ? Y(n) : t.getCtx(n);
2344
+ const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2331
2345
  return u ? t.$render.createRuleVnode(u, o, a) : void 0;
2332
2346
  },
2333
2347
  renderChildren(n, o, a) {
2334
- const u = typeof n == "object" ? Y(n) : t.getCtx(n);
2348
+ const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2335
2349
  return u ? t.$render.createChildrenVnodes(u, o, a) : void 0;
2336
2350
  },
2337
2351
  nextTick(n) {
@@ -2444,7 +2458,7 @@ function ti(t) {
2444
2458
  const r = (i) => {
2445
2459
  if (i) {
2446
2460
  let s;
2447
- return e.rule.field && (s = i.$scopedSlots["field-" + ve(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + ve(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2461
+ return e.rule.field && (s = i.$scopedSlots["field-" + be(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + be(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2448
2462
  }
2449
2463
  };
2450
2464
  return r(this.vm);
@@ -2464,23 +2478,23 @@ function ti(t) {
2464
2478
  })) : e.setSlot(r.rule.slot, this.renderCtx(r, i));
2465
2479
  },
2466
2480
  mergeGlobal(e) {
2467
- this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = $e(() => {
2481
+ this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ye(() => {
2468
2482
  const i = this.$handle.options.global;
2469
- return te({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2470
- })), e.prop = te({}, [this.cacheConfig[e.trueType].value, e.prop]));
2483
+ return ee({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2484
+ })), e.prop = ee({}, [this.cacheConfig[e.trueType].value, e.prop]));
2471
2485
  },
2472
2486
  setOptions(e) {
2473
2487
  const r = e.loadPending({ key: "options", origin: e.prop.options, def: [] });
2474
- e.prop.options = r, e.prop.optionsTo && r && oe(e.prop, e.prop.optionsTo, r);
2488
+ e.prop.options = r, e.prop.optionsTo && r && se(e.prop, e.prop.optionsTo, r);
2475
2489
  },
2476
2490
  deepSet(e) {
2477
2491
  const r = e.rule.deep;
2478
2492
  r && Object.keys(r).sort((i, s) => i.length < s.length ? -1 : 1).forEach((i) => {
2479
- oe(e.prop, i, r[i]);
2493
+ se(e.prop, i, r[i]);
2480
2494
  });
2481
2495
  },
2482
2496
  parseSide(e, r) {
2483
- return h.Object(e) ? te({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2497
+ return h.Object(e) ? ee({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2484
2498
  },
2485
2499
  renderSides(e, r, i) {
2486
2500
  const s = r[i ? "rule" : "prop"];
@@ -2612,7 +2626,7 @@ function ti(t) {
2612
2626
  if (l.indexOf("native.") === 0)
2613
2627
  o[l.replace("native.", "")] = n[l], delete n[l];
2614
2628
  else if (this.$handle.options.transformEventName !== !1) {
2615
- const u = ve(l);
2629
+ const u = be(l);
2616
2630
  u !== l.toLowerCase() && !n[u] && (n[u] = n[l]);
2617
2631
  }
2618
2632
  }), e.prop.on = n;
@@ -2651,7 +2665,7 @@ function ti(t) {
2651
2665
  }
2652
2666
  });
2653
2667
  }
2654
- return ee(a, e.prop), e.prop;
2668
+ return Y(a, e.prop), e.prop;
2655
2669
  },
2656
2670
  onMounted(e) {
2657
2671
  e.el = this.vm.$refs[e.ref], e.el && ((e.el.$el || e.el).__rule__ = e.rule), e.parser.mounted(e), this.$handle.effect(e, "mounted"), this.$handle.targetHook(e, "mounted");
@@ -2758,7 +2772,7 @@ function ii(t) {
2758
2772
  if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2759
2773
  return this.parseEventLst(e, r, i, !0);
2760
2774
  if (h.String(r)) {
2761
- const n = x(r);
2775
+ const n = z(r);
2762
2776
  if (n && r !== n)
2763
2777
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2764
2778
  }
@@ -2770,7 +2784,7 @@ function ii(t) {
2770
2784
  let p, d = n || o || a;
2771
2785
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2772
2786
  r || (d = `native-${d}`);
2773
- const m = ve(`${d}-${f}`), y = (...C) => {
2787
+ const m = be(`${d}-${f}`), y = (...C) => {
2774
2788
  this.vm.$emit(m, ...C), this.vm.$emit("emit-event", m, ...C), this.bus.$emit(m, ...C);
2775
2789
  };
2776
2790
  if (y.__emit = !0, !p && l === !1)
@@ -2807,7 +2821,7 @@ function ii(t) {
2807
2821
  },
2808
2822
  loadStrVar(e, r, i) {
2809
2823
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2810
- const s = e, n = zr(e), o = (u) => {
2824
+ const s = e, n = xr(e), o = (u) => {
2811
2825
  let f = !1, p;
2812
2826
  if (i && u.indexOf("$form.") === 0) {
2813
2827
  const d = u.split(".");
@@ -2896,9 +2910,9 @@ function oi(t) {
2896
2910
  }
2897
2911
  function ai(t) {
2898
2912
  Object.defineProperties(t.origin, {
2899
- __fc__: ze(ye(t), !0)
2913
+ __fc__: xe(ge(t), !0)
2900
2914
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2901
- __fc__: ze(ye(t), !0)
2915
+ __fc__: xe(ge(t), !0)
2902
2916
  });
2903
2917
  }
2904
2918
  function Ht(t, e, r) {
@@ -2991,7 +3005,7 @@ _(Ht.prototype, {
2991
3005
  setPending(t, e, r) {
2992
3006
  this.pending[t] = {
2993
3007
  origin: e,
2994
- value: ne(r)
3008
+ value: ie(r)
2995
3009
  };
2996
3010
  },
2997
3011
  effectData(t) {
@@ -3012,7 +3026,7 @@ _(Ht.prototype, {
3012
3026
  initProp() {
3013
3027
  var e, r;
3014
3028
  const t = v({}, this.rule);
3015
- delete t.children, delete t.validate, this.prop = te({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
3029
+ delete t.children, delete t.validate, this.prop = ee({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
3016
3030
  },
3017
3031
  initNone() {
3018
3032
  this.none = !(h.Undef(this.prop.display) || this.prop.display);
@@ -3092,10 +3106,10 @@ function li(t) {
3092
3106
  parseRule(e) {
3093
3107
  const r = ct(e);
3094
3108
  return Object.defineProperties(r, {
3095
- __origin__: ze(e, !0)
3109
+ __origin__: xe(e, !0)
3096
3110
  }), ui(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3097
3111
  i && this.loadFn(i, r);
3098
- }), this.loadCtrl(r), r.update && (r.update = x(r.update)), r;
3112
+ }), this.loadCtrl(r), r.update && (r.update = z(r.update)), r;
3099
3113
  },
3100
3114
  loadFn(e, r) {
3101
3115
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -3104,12 +3118,12 @@ function li(t) {
3104
3118
  },
3105
3119
  loadCtrl(e) {
3106
3120
  e.control && e.control.forEach((r) => {
3107
- r.handle && (r.handle = x(r.handle));
3121
+ r.handle && (r.handle = z(r.handle));
3108
3122
  });
3109
3123
  },
3110
3124
  syncProp(e) {
3111
3125
  const r = e.rule;
3112
- h.trueArray(r.sync) && ee([{
3126
+ h.trueArray(r.sync) && Y([{
3113
3127
  on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
3114
3128
  r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
3115
3129
  }, i), {})
@@ -3182,7 +3196,7 @@ function li(t) {
3182
3196
  if (!r.length) return !1;
3183
3197
  for (let a = 0; a < r.length; a++) {
3184
3198
  const l = r[a], u = l.handle || function(p) {
3185
- return (ce[l.condition || "=="] || ce["=="])(p, l.value);
3199
+ return (fe[l.condition || "=="] || fe["=="])(p, l.value);
3186
3200
  };
3187
3201
  if (!h.trueArray(l.rule)) continue;
3188
3202
  const f = q(v({}, l), {
@@ -3222,7 +3236,7 @@ function li(t) {
3222
3236
  });
3223
3237
  } else {
3224
3238
  e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3225
- const C = Y(m);
3239
+ const C = Q(m);
3226
3240
  C && C.rm();
3227
3241
  }
3228
3242
  });
@@ -3307,7 +3321,7 @@ function hi(t) {
3307
3321
  },
3308
3322
  rmSubRuleData(e) {
3309
3323
  const r = e.getParentGroup();
3310
- r && this.subRuleData[r.id] && ie(this.subRuleData[r.id], e.field);
3324
+ r && this.subRuleData[r.id] && re(this.subRuleData[r.id], e.field);
3311
3325
  },
3312
3326
  getFormData(e) {
3313
3327
  return this.formData[e.id];
@@ -3317,7 +3331,7 @@ function hi(t) {
3317
3331
  this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Ae(this.appendData, n)), s), e), r.reduce((s, n) => {
3318
3332
  let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
3319
3333
  return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = Ae(o.rule, "value"), s;
3320
- }, e), this.form = ne(e), this.ignoreFields = i, this.syncValue();
3334
+ }, e), this.form = ie(e), this.ignoreFields = i, this.syncValue();
3321
3335
  },
3322
3336
  isIgnore(e) {
3323
3337
  return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
@@ -3466,21 +3480,21 @@ function pi(t) {
3466
3480
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3467
3481
  }
3468
3482
  }, { deep: !n, sync: n }));
3469
- }), e.refRule.__$title = $e(() => {
3483
+ }), e.refRule.__$title = ye(() => {
3470
3484
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3471
3485
  if (i) {
3472
3486
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3473
3487
  s && (i = this.api.t(s[1]));
3474
3488
  }
3475
3489
  return i;
3476
- }), e.refRule.__$info = $e(() => {
3490
+ }), e.refRule.__$info = ye(() => {
3477
3491
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3478
3492
  if (i) {
3479
3493
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3480
3494
  s && (i = this.api.t(s[1]));
3481
3495
  }
3482
3496
  return i;
3483
- }), e.refRule.__$validate = $e(() => {
3497
+ }), e.refRule.__$validate = ye(() => {
3484
3498
  const i = (s) => {
3485
3499
  var o, a;
3486
3500
  const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
@@ -3521,13 +3535,13 @@ function pi(t) {
3521
3535
  this.bus.$once("load-end", () => {
3522
3536
  let i = e.rule.computed;
3523
3537
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3524
- const n = $e(() => {
3538
+ const n = ye(() => {
3525
3539
  const a = i[s];
3526
3540
  if (!a) return;
3527
3541
  const l = this.compute(e, a);
3528
3542
  return a.linkage && l === Re ? Re : l;
3529
3543
  }), o = (a) => {
3530
- s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : oe(e.rule, s, a);
3544
+ s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : se(e.rule, s, a);
3531
3545
  };
3532
3546
  (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : n.value !== B(e.rule, s)) && o(n.value), e.watch.push(L(n, (a, l) => {
3533
3547
  a === Re || a === l || setTimeout(() => {
@@ -3668,7 +3682,7 @@ function pi(t) {
3668
3682
  else if (!p.mode)
3669
3683
  return !0;
3670
3684
  let y = p.compare;
3671
- if (y && (y = dt(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}'](${m}, ${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)
3685
+ if (y && (y = dt(y || "")), p.mode ? d = n(p) : fe[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}'](${m}, ${y || "$val"}); }}}}`).call(this.api.form, fe, 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)
3672
3686
  return !0;
3673
3687
  l || (u = u && d);
3674
3688
  }
@@ -3710,9 +3724,9 @@ function pi(t) {
3710
3724
  rmCtx(e) {
3711
3725
  if (e.deleted) return;
3712
3726
  const { id: r, field: i, input: s, name: n } = e;
3713
- ie(this.ctxs, r), ie(this.formData, r), ie(this.subForm, r), ie(this.vm.ctxInject, r);
3727
+ re(this.ctxs, r), re(this.formData, r), re(this.subForm, r), re(this.vm.ctxInject, r);
3714
3728
  const o = e.getParentGroup();
3715
- o && this.subRuleData[o.id] && ie(this.subRuleData[o.id], i), e.group && ie(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !D(this.fieldCtx, i) && ie(this.form, i), this.deferSyncValue(() => {
3729
+ o && this.subRuleData[o.id] && re(this.subRuleData[o.id], i), e.group && re(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !D(this.fieldCtx, i) && re(this.form, i), this.deferSyncValue(() => {
3716
3730
  if (!this.reloading) {
3717
3731
  if (e.parser.loadChildren !== !1) {
3718
3732
  const l = e.getPending("children", e.rule.children);
@@ -3740,7 +3754,7 @@ function mi(t) {
3740
3754
  emitEvent(e, ...r) {
3741
3755
  const i = this.options[e] || this.options[J("on-" + e)];
3742
3756
  if (i) {
3743
- const s = x(i);
3757
+ const s = z(i);
3744
3758
  h.Function(s) && O(() => s(...r));
3745
3759
  }
3746
3760
  this.bus.$emit(e, ...r);
@@ -3839,7 +3853,7 @@ function gi(t) {
3839
3853
  else
3840
3854
  return;
3841
3855
  const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3842
- e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (m) => te(d.getProp(), [m]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3856
+ e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (m) => ee(d.getProp(), [m]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3843
3857
  });
3844
3858
  }
3845
3859
  });
@@ -3876,10 +3890,10 @@ function X(t) {
3876
3890
  noWatchFn: null,
3877
3891
  deferSyncFn: null,
3878
3892
  isMounted: !1,
3879
- formData: ne({}),
3880
- subRuleData: ne({}),
3893
+ formData: ie({}),
3894
+ subRuleData: ie({}),
3881
3895
  subForm: {},
3882
- form: ne({}),
3896
+ form: ie({}),
3883
3897
  appendData: {},
3884
3898
  ignoreFields: [],
3885
3899
  providers: {},
@@ -3964,7 +3978,7 @@ function _i() {
3964
3978
  },
3965
3979
  make(r, i, s) {
3966
3980
  var n, o, a;
3967
- return (be.isReservedTag ? be.isReservedTag(r) : (o = (n = be) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
3981
+ return ($e.isReservedTag ? $e.isReservedTag(r) : (o = (n = $e) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
3968
3982
  },
3969
3983
  makeComponent(r, i, s) {
3970
3984
  var o;
@@ -3985,7 +3999,7 @@ function _i() {
3985
3999
  },
3986
4000
  use(r) {
3987
4001
  Object.keys(r).forEach((i) => {
3988
- const s = ve(i), n = At(i).toLocaleLowerCase(), o = r[i];
4002
+ const s = be(i), n = At(i).toLocaleLowerCase(), o = r[i];
3989
4003
  [i, s, n].forEach((a) => {
3990
4004
  e.alias(i, o), e.prototype[a] = function(l, u) {
3991
4005
  return this.make(o, l, u);
@@ -4041,7 +4055,7 @@ _(Gt.prototype, {
4041
4055
  return e(this.vm);
4042
4056
  },
4043
4057
  mergeOptions(t, e) {
4044
- return ee(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
4058
+ return Y(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
4045
4059
  },
4046
4060
  updateOptions(t) {
4047
4061
  this.$handle.fc.targetFormDriver("updateOptions", t, { handle: this.$handle, api: this.$handle.api }), this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
@@ -4077,10 +4091,10 @@ const wi = function(t) {
4077
4091
  let m;
4078
4092
  a.template ? m = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? m = a.handler(p, i, s) : m = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (m == null || m === "") && a.default != null && (m = a.default), a.copy !== !1 && (m = K(m));
4079
4093
  const y = a.modify ? i : r.getProp();
4080
- a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : oe(y, a.to || "options", m), s.sync(i);
4094
+ a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : se(y, a.to || "options", m), s.sync(i);
4081
4095
  }, u = (p) => l(p);
4082
4096
  const f = t.watchLoadData(u);
4083
- l = se(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
4097
+ l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
4084
4098
  }
4085
4099
  }), this._fn[r.id] = o;
4086
4100
  });
@@ -4107,10 +4121,10 @@ const wi = function(t) {
4107
4121
  let f = (m) => {
4108
4122
  let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4109
4123
  const C = u && l.modify ? i : r.getProp();
4110
- a === "child" ? C.children ? k(C.children, 0, y) : k(C, "children", [y]) : oe(C, a, y), s.sync(i);
4124
+ a === "child" ? C.children ? k(C.children, 0, y) : k(C, "children", [y]) : se(C, a, y), s.sync(i);
4111
4125
  }, p = (m) => f(m);
4112
4126
  const d = t.watchLoadData(p);
4113
- f = se(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4127
+ f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4114
4128
  }
4115
4129
  }), this._fn[r.id] = o;
4116
4130
  },
@@ -4131,7 +4145,7 @@ const wi = function(t) {
4131
4145
  h.Object(i) || (i = { method: i });
4132
4146
  const s = i.method, n = q(v({}, i), {
4133
4147
  validator(...o) {
4134
- const a = Y(e);
4148
+ const a = Q(e);
4135
4149
  if (a)
4136
4150
  return r.exec(a.id, h.String(s) ? s : "formCreateValidate", ...o, {
4137
4151
  attr: t,
@@ -4157,7 +4171,7 @@ const wi = function(t) {
4157
4171
  let a = s.value;
4158
4172
  i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
4159
4173
  const l = (p) => {
4160
- p === void 0 ? s.clearProp() : oe(s.getProp(), a.to || "options", p), o.sync(n);
4174
+ p === void 0 ? s.clearProp() : se(s.getProp(), a.to || "options", p), o.sync(n);
4161
4175
  };
4162
4176
  if (!a || !a.action && !a.key) {
4163
4177
  l(void 0);
@@ -4179,7 +4193,7 @@ const wi = function(t) {
4179
4193
  if (!s.getValue())
4180
4194
  return s.clearProp(), o.sync(n), !0;
4181
4195
  };
4182
- i._fn[s.id] = t.watchLoadData(se((p, d) => {
4196
+ i._fn[s.id] = t.watchLoadData(ne((p, d) => {
4183
4197
  if (d && a.watch === !1)
4184
4198
  return i._fn[s.id]();
4185
4199
  const m = t.$handle.loadFetchVar(K(a), p, n), y = q(v({
@@ -4188,7 +4202,7 @@ const wi = function(t) {
4188
4202
  onSuccess(C, F) {
4189
4203
  if (f()) return;
4190
4204
  let G = (N) => F ? N : D(N, "data") ? N.data : N;
4191
- const V = x(m.parse);
4205
+ const V = z(m.parse);
4192
4206
  h.Function(V) ? G = V : V && h.String(V) && (G = (N) => B(N, V)), l(G(C, n, o));
4193
4207
  },
4194
4208
  onError(C) {
@@ -4401,7 +4415,7 @@ function Kt(t) {
4401
4415
  t.extendApi
4402
4416
  ], u = v({}, ki), f = Zr();
4403
4417
  let p = { global: {} };
4404
- const d = t.isMobile === !0, m = ne({
4418
+ const d = t.isMobile === !0, m = ie({
4405
4419
  $mobile: d
4406
4420
  }), y = _i(), C = {}, F = {};
4407
4421
  Mi(t.attrs || {});
@@ -4419,7 +4433,7 @@ function Kt(t) {
4419
4433
  const c = Ne(...arguments);
4420
4434
  c.id && c.prop && (i[c.id] = c.prop);
4421
4435
  }
4422
- function de() {
4436
+ function he() {
4423
4437
  const c = Ne(...arguments);
4424
4438
  c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(v({}, c.prop), {
4425
4439
  name: c.id
@@ -4428,7 +4442,7 @@ function Kt(t) {
4428
4442
  function Ie(c) {
4429
4443
  y.use(c);
4430
4444
  }
4431
- function pe() {
4445
+ function de() {
4432
4446
  const c = Ne(...arguments);
4433
4447
  if (!c.id || !c.prop) return je;
4434
4448
  const g = J(c.id), $ = c.prop, b = $.merge === !0 ? r[g] : void 0;
@@ -4438,20 +4452,20 @@ function Kt(t) {
4438
4452
  let $;
4439
4453
  if (h.String(c)) {
4440
4454
  if ($ = c, g === void 0)
4441
- return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
4455
+ return ["form-create", "formcreate"].indexOf($) > -1 ? S() : e[$];
4442
4456
  } else
4443
4457
  $ = J(c.name), g = c;
4444
4458
  if (!$ || !g) return;
4445
4459
  const b = J($);
4446
- e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && pe($, g.formCreateParser);
4460
+ e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && de($, g.formCreateParser);
4447
4461
  }
4448
- function R() {
4449
- return xr(Te, e, i);
4462
+ function S() {
4463
+ return zr(Te, e, i);
4450
4464
  }
4451
4465
  function M() {
4452
4466
  return Le;
4453
4467
  }
4454
- function me(c, g) {
4468
+ function pe(c, g) {
4455
4469
  return h.Function(c.install) ? c.install(W, g) : h.Function(c) && c(W, g), this;
4456
4470
  }
4457
4471
  function W(c, g, $) {
@@ -4460,7 +4474,7 @@ function Kt(t) {
4460
4474
  return w.$parent = $, Li(w.options).appendChild(b.$el), w.api();
4461
4475
  }
4462
4476
  Se(W, F);
4463
- function zt(c) {
4477
+ function xt(c) {
4464
4478
  let g = v({}, t);
4465
4479
  return c ? g.inherit = {
4466
4480
  components: e,
@@ -4474,7 +4488,7 @@ function Kt(t) {
4474
4488
  loadData: m
4475
4489
  } : delete g.inherit, Kt(g);
4476
4490
  }
4477
- function xt(c, g) {
4491
+ function zt(c, g) {
4478
4492
  s[c] = g;
4479
4493
  }
4480
4494
  function Xt(c, g) {
@@ -4494,7 +4508,7 @@ function Kt(t) {
4494
4508
  });
4495
4509
  }
4496
4510
  function Pe(c, g) {
4497
- oe(m, c, g), Oe(c);
4511
+ se(m, c, g), Oe(c);
4498
4512
  }
4499
4513
  function Fe(c, g) {
4500
4514
  const $ = (...b) => O(() => g(...b));
@@ -4548,7 +4562,7 @@ function Kt(t) {
4548
4562
  options: mr({}),
4549
4563
  extendApiFn: l,
4550
4564
  fetchCache: /* @__PURE__ */ new WeakMap(),
4551
- tmpData: ne({})
4565
+ tmpData: ie({})
4552
4566
  }), a.forEach((g) => {
4553
4567
  this.bus.$on(g.name, g.callback);
4554
4568
  }), P(() => {
@@ -4561,7 +4575,7 @@ function Kt(t) {
4561
4575
  init() {
4562
4576
  this.isSub() && this.unwatch.push(L(() => this.vm.parent.fc.options.value, () => {
4563
4577
  this.initOptions(), this.$handle.api.refresh();
4564
- }, { deep: !0 })), this.vm.$options.propsData.driver && (this.renderDriver = typeof this.vm.$options.propsData.driver == "object" ? this.vm.$options.propsData.driver : this.drivers[this.vm.$options.propsData.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.fc.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4578
+ }, { deep: !0, flush: "sync" })), this.vm.$options.propsData.driver && (this.renderDriver = typeof this.vm.$options.propsData.driver == "object" ? this.vm.$options.propsData.driver : this.drivers[this.vm.$options.propsData.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.fc.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4565
4579
  },
4566
4580
  targetFormDriver(c, ...g) {
4567
4581
  if (this.renderDriver && this.renderDriver[c])
@@ -4589,27 +4603,27 @@ function Kt(t) {
4589
4603
  j.loading = !1, this.fetchCache.set(b, j);
4590
4604
  } else
4591
4605
  this.fetchCache.set(b, { status: !1 });
4592
- const S = se(() => {
4593
- le();
4594
- const z = this.fetchCache.get(b);
4595
- this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (z && (z.loading = !0, this.fetchCache.set(b, z)), this.bus.$emit("$loadData.$globalData." + $)) : this.fetchCache.delete(b);
4596
- }, b.wait || 600), ae = (z) => {
4597
- this.fetchCache.set(b, { status: !0, data: z }), this.bus.$emit("$loadData.$globalData." + $);
4598
- }, Z = (z, ue) => {
4599
- if (ue && b.watch === !1)
4600
- return le();
4601
- if (ue) {
4602
- S();
4606
+ const R = ne(() => {
4607
+ ae();
4608
+ const x = this.fetchCache.get(b);
4609
+ this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (x && (x.loading = !0, this.fetchCache.set(b, x)), this.bus.$emit("$loadData.$globalData." + $)) : this.fetchCache.delete(b);
4610
+ }, b.wait || 600), ve = (x) => {
4611
+ this.fetchCache.set(b, { status: !0, data: x }), this.bus.$emit("$loadData.$globalData." + $);
4612
+ }, oe = (x, le) => {
4613
+ if (le && b.watch === !1)
4614
+ return ae();
4615
+ if (le) {
4616
+ R();
4603
4617
  return;
4604
4618
  }
4605
- const ge = this.$handle.loadFetchVar(Je(b), z);
4606
- this.$handle.api.fetch(ge).then((re) => {
4607
- ae(re);
4608
- }).catch((re) => {
4609
- ae(null);
4619
+ const me = this.$handle.loadFetchVar(Je(b), x);
4620
+ this.$handle.api.fetch(me).then((te) => {
4621
+ ve(te);
4622
+ }).catch((te) => {
4623
+ ve(null);
4610
4624
  });
4611
- }, le = this.watchLoadData(Z);
4612
- return this.unwatch.push(le), w;
4625
+ }, ae = this.watchLoadData(oe);
4626
+ return this.unwatch.push(ae), w;
4613
4627
  }
4614
4628
  }
4615
4629
  },
@@ -4629,18 +4643,15 @@ function Kt(t) {
4629
4643
  let g = c.split(".");
4630
4644
  const $ = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4631
4645
  if (b) {
4632
- const w = h.Function(b) ? b : x(b.handle);
4646
+ const w = h.Function(b) ? b : z(b.handle);
4633
4647
  if (w) {
4634
- let j;
4635
- const S = this.watchLoadData((ae, Z) => {
4636
- Z ? (this.bus.$emit("$loadData.$var." + $), S()) : j = w(ae, this.$handle.api);
4637
- });
4638
- return this.unwatch.push(S), B(j, g);
4648
+ let j = w((...R) => this.$handle.api.getData(...R), this.$handle.api);
4649
+ return B(j, g);
4639
4650
  }
4640
4651
  }
4641
4652
  },
4642
4653
  setData(c, g, $) {
4643
- $ ? Pe(c, g) : (oe(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4654
+ $ ? Pe(c, g) : (se(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4644
4655
  },
4645
4656
  getLoadData(c, g) {
4646
4657
  let $ = null;
@@ -4676,32 +4687,32 @@ function Kt(t) {
4676
4687
  },
4677
4688
  watchLoadData(c, g) {
4678
4689
  let $ = {};
4679
- const b = (S) => {
4690
+ const b = (R) => {
4680
4691
  this.get || (this.get = w), O(() => {
4681
- c(w, S);
4692
+ c(w, R);
4682
4693
  }), this.get === w && (this.get = void 0);
4683
- }, w = (S, ae) => {
4684
- let Z;
4685
- if (typeof S == "object" && (Z = S.getValue, S = S.id), $[S])
4686
- return $[S].val;
4687
- const le = $e(() => Z ? Z() : this.getLoadData(S, ae)), z = S.split("."), ue = z.shift(), ge = z.shift() || "", re = se(() => {
4688
- const fe = Z ? Z() : this.getLoadData(S, ae);
4689
- if ($[S])
4690
- ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[S].val || JSON.stringify(fe) !== JSON.stringify($[S].val)) && ($[S].val = fe, b(!0));
4694
+ }, w = (R, ve) => {
4695
+ let oe;
4696
+ if (typeof R == "object" && (oe = R.getValue, R = R.id), $[R])
4697
+ return $[R].val;
4698
+ const ae = ye(() => oe ? oe() : this.getLoadData(R, ve)), x = R.split("."), le = x.shift(), me = x.shift() || "", te = ne(() => {
4699
+ const ue = oe ? oe() : this.getLoadData(R, ve);
4700
+ if ($[R])
4701
+ ((ue instanceof Function || h.Object(ue) || Array.isArray(ue)) && ue === $[R].val || JSON.stringify(ue) !== JSON.stringify($[R].val)) && ($[R].val = ue, b(!0));
4691
4702
  else return;
4692
- }, g || 0), rr = L(le, (fe) => {
4693
- re();
4703
+ }, g || 0), rr = L(ae, (ue) => {
4704
+ te();
4694
4705
  });
4695
- return this.bus.$on("$loadData." + ue, re), ge && this.bus.$on("$loadData." + ue + "." + ge, re), $[S] = {
4706
+ return this.bus.$on("$loadData." + le, te), me && this.bus.$on("$loadData." + le + "." + me, te), $[R] = {
4696
4707
  fn: () => {
4697
- this.bus.$off("$loadData." + ue, re), ge && this.bus.$off("$loadData." + ue + "." + ge, re), rr();
4708
+ this.bus.$off("$loadData." + le, te), me && this.bus.$off("$loadData." + le + "." + me, te), rr();
4698
4709
  },
4699
- val: le.value
4700
- }, le.value;
4710
+ val: ae.value
4711
+ }, ae.value;
4701
4712
  };
4702
4713
  b(!1);
4703
4714
  const j = () => {
4704
- Object.keys($).forEach((S) => $[S].fn()), $ = {};
4715
+ Object.keys($).forEach((R) => $[R].fn()), $ = {};
4705
4716
  };
4706
4717
  return this.unwatch.push(j), j;
4707
4718
  },
@@ -4765,21 +4776,21 @@ function Kt(t) {
4765
4776
  maker: f,
4766
4777
  component: E,
4767
4778
  directive: N,
4768
- setModelField: xt,
4779
+ setModelField: zt,
4769
4780
  setFormula: Xt,
4770
4781
  setDriver: Zt,
4771
- register: de,
4782
+ register: he,
4772
4783
  $vnode: M,
4773
- parser: pe,
4774
- use: me,
4775
- factory: zt,
4784
+ parser: de,
4785
+ use: pe,
4786
+ factory: xt,
4776
4787
  componentAlias: Ie,
4777
4788
  copyRule: It,
4778
4789
  copyRules: Pt,
4779
- mergeRule: te,
4790
+ mergeRule: ee,
4780
4791
  fetch: qt,
4781
- $form: R,
4782
- parseFn: x,
4792
+ $form: S,
4793
+ parseFn: z,
4783
4794
  parseJson: Vt,
4784
4795
  toJson: Ce,
4785
4796
  useApp: V,
@@ -4793,22 +4804,22 @@ function Kt(t) {
4793
4804
  install(g, $) {
4794
4805
  if (p = v(v({}, p), $ || {}), g._installedFormCreate === !0) return;
4795
4806
  g._installedFormCreate = !0;
4796
- const b = function(j, S = {}) {
4797
- return W(j, S, this);
4807
+ const b = function(j, R = {}) {
4808
+ return W(j, R, this);
4798
4809
  };
4799
4810
  st(b), g.prototype.$formCreate = b;
4800
- const w = R();
4811
+ const w = S();
4801
4812
  g.component(w.name, w), g.component("FcFragment", M()), o.forEach((j) => {
4802
4813
  O(() => j(c, g));
4803
4814
  });
4804
4815
  }
4805
4816
  });
4806
4817
  }
4807
- if (st(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) {
4818
+ if (st(F), tr(F), Fe("$cookie", Vi), Fe("$localStorage", Ii), Fe("$sessionStorage", Pi), y.use({ fragment: "fcFragment" }), t.install && W.use(t), de(Ri), t.inherit) {
4808
4819
  const c = t.inherit;
4809
4820
  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 && _(m, c.loadData), c.formulas && _(C, c.formulas);
4810
4821
  }
4811
- const ke = R();
4822
+ const ke = S();
4812
4823
  return Se(ke, F), Object.defineProperties(ke, {
4813
4824
  fetch: {
4814
4825
  get() {
@@ -4882,8 +4893,8 @@ const _t = {
4882
4893
  e.vNode.row(e.prop, t)
4883
4894
  ]);
4884
4895
  }
4885
- }, zi = "select", xi = {
4886
- name: zi,
4896
+ }, xi = "select", zi = {
4897
+ name: xi,
4887
4898
  toFormValue(t, e) {
4888
4899
  return e.prop.props.multiple && !Array.isArray(t) ? H(t) : t;
4889
4900
  }
@@ -4894,7 +4905,7 @@ const _t = {
4894
4905
  Ji,
4895
4906
  Ki,
4896
4907
  Wi,
4897
- xi
4908
+ zi
4898
4909
  ], A = "el", Zi = {
4899
4910
  button: A + "Button",
4900
4911
  icon: "i",
@@ -4968,7 +4979,7 @@ function Yi(t) {
4968
4979
  function Ot(t, e) {
4969
4980
  D(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4970
4981
  }
4971
- function Q(t) {
4982
+ function Z(t) {
4972
4983
  return t === !1;
4973
4984
  }
4974
4985
  function en(t, e) {
@@ -4996,9 +5007,8 @@ const tn = {
4996
5007
  e && e.clearValidate();
4997
5008
  },
4998
5009
  fieldChange(t, e, r, i) {
4999
- var s, n;
5000
- i || (n = (s = this.vm.$refs[t.wrapRef]) == null ? void 0 : s.validate("change")) == null || n.catch(() => {
5001
- });
5010
+ var s;
5011
+ i || (s = this.vm.$refs[t.wrapRef]) == null || s.validate("change");
5002
5012
  },
5003
5013
  tidyOptions(t) {
5004
5014
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
@@ -5020,7 +5030,7 @@ const tn = {
5020
5030
  wrap: {}
5021
5031
  };
5022
5032
  ["info", "wrap", "col", "title"].forEach((r) => {
5023
- t.prop[r] = ee([this.options[r] || {}, t.prop[r] || {}], e[r]);
5033
+ t.prop[r] = Y([this.options[r] || {}, t.prop[r] || {}], e[r]);
5024
5034
  });
5025
5035
  },
5026
5036
  getDefaultOptions() {
@@ -5046,12 +5056,12 @@ const tn = {
5046
5056
  });
5047
5057
  },
5048
5058
  render(t) {
5049
- return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, Q(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
5059
+ return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, Z(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
5050
5060
  },
5051
5061
  makeWrap(t, e) {
5052
5062
  const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r) && r.wrap.title !== !1, o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: l } = this.rule.props, u = r.wrap.class;
5053
5063
  delete r.wrap.class, delete r.wrap.title;
5054
- const f = Q(r.wrap.show) ? e : this.$r(ee([r.wrap, {
5064
+ const f = Z(r.wrap.show) ? e : this.$r(Y([r.wrap, {
5055
5065
  props: q(v({
5056
5066
  labelWidth: o === void 0 ? o : At(o),
5057
5067
  label: n ? r.title.title : void 0
@@ -5064,12 +5074,12 @@ const tn = {
5064
5074
  ref: t.wrapRef,
5065
5075
  type: "formItem"
5066
5076
  }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5067
- return a === !0 || Q(l) || Q(s.show) ? f : this.makeCol(r, i, [f]);
5077
+ return a === !0 || Z(l) || Z(s.show) ? f : this.makeCol(r, i, [f]);
5068
5078
  },
5069
5079
  isTitle(t) {
5070
5080
  if (this.options.form.title === !1) return !1;
5071
5081
  const e = t.title;
5072
- return !(!e.title && !e.native || Q(e.show));
5082
+ return !(!e.title && !e.native || Z(e.show));
5073
5083
  },
5074
5084
  makeInfo(t, e, r) {
5075
5085
  var f, p, d, m, y, C;
@@ -5078,7 +5088,7 @@ const tn = {
5078
5088
  rule: r.rule,
5079
5089
  options: this.options
5080
5090
  }) : ((m = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : m.value) + (o.labelSuffix || o["label-suffix"] || "")];
5081
- if (!Q(s.show) && (s.info || s.native) && !Q(s.icon)) {
5091
+ if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
5082
5092
  const F = {
5083
5093
  type: s.type || "popover",
5084
5094
  slot: "label",
@@ -5087,7 +5097,7 @@ const tn = {
5087
5097
  };
5088
5098
  delete F.props.icon, delete F.props.show, delete F.props.info, delete F.props.align, delete F.props.native;
5089
5099
  const G = "content";
5090
- s.info && !D(F.props, G) && (F.props[G] = (C = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : C.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(ee([s, F]), [
5100
+ s.info && !D(F.props, G) && (F.props[G] = (C = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : C.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, F]), [
5091
5101
  this.$r({
5092
5102
  type: "i",
5093
5103
  slot: n ? "default" : "reference",
@@ -5096,7 +5106,7 @@ const tn = {
5096
5106
  })
5097
5107
  ]));
5098
5108
  }
5099
- const u = ee([i, {
5109
+ const u = Y([i, {
5100
5110
  props: He(i),
5101
5111
  key: `${e}tit`,
5102
5112
  class: "fc-form-title",
@@ -5125,7 +5135,7 @@ const tn = {
5125
5135
  },
5126
5136
  makeFormBtn() {
5127
5137
  let t = [];
5128
- if (Q(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), Q(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5138
+ if (Z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), Z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5129
5139
  return;
5130
5140
  const e = this.$r({
5131
5141
  type: "formItem",
@@ -5172,12 +5182,12 @@ const tn = {
5172
5182
  key: `${this.key}b1`
5173
5183
  }, [e]);
5174
5184
  }
5175
- }, he = {};
5176
- rn(he);
5177
- nn(he);
5178
- sn(he);
5179
- on(he);
5180
- an(he);
5185
+ }, ce = {};
5186
+ rn(ce);
5187
+ nn(ce);
5188
+ sn(ce);
5189
+ on(ce);
5190
+ an(ce);
5181
5191
  function rn(t) {
5182
5192
  ["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "radio", "rate"].forEach((e) => {
5183
5193
  t[e] = T(e);
@@ -5232,7 +5242,7 @@ function ln(t, e) {
5232
5242
  }), Promise.all(o).then(() => {
5233
5243
  i(!0), r && r(!0);
5234
5244
  }).catch((a) => {
5235
- s(a), r && r(a), e.vm.$emit("validate-fail", a, { api: t });
5245
+ s(a), r && r(a), e.vm.$emit("validate-fail", a, { api: t }), e.emitEvent("validate-fail", a, { api: t });
5236
5246
  });
5237
5247
  });
5238
5248
  },
@@ -5348,14 +5358,14 @@ function fn(t) {
5348
5358
  t.component(e.name, e);
5349
5359
  }), t.register(Wt), Xi.forEach((e) => {
5350
5360
  t.parser(e);
5351
- }), Object.keys(he).forEach((e) => {
5352
- t.maker[e] = he[e];
5361
+ }), Object.keys(ce).forEach((e) => {
5362
+ t.maker[e] = ce[e];
5353
5363
  });
5354
5364
  }
5355
5365
  function cn() {
5356
5366
  return Kt({
5357
5367
  ui: "element-ui",
5358
- version: "2.7.12",
5368
+ version: "2.7.14",
5359
5369
  manager: tn,
5360
5370
  extendApi: ln,
5361
5371
  install: fn,