@form-create/element-ui 2.7.10 → 2.7.11

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.10
3
+ * @form-create/element-ui v2.7.11
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -591,7 +591,7 @@ const Fr = "fcFrame", kr = {
591
591
  return h.type(e, t);
592
592
  };
593
593
  });
594
- function D(t, e) {
594
+ function j(t, e) {
595
595
  return {}.hasOwnProperty.call(t, e);
596
596
  }
597
597
  const Rr = "fcSelect", Dr = {
@@ -621,7 +621,7 @@ const Rr = "fcSelect", Dr = {
621
621
  }, [h.trueArray(n.options) && n.options.map((a, l) => r(a, l))]), s = e.props.formCreateInject.options;
622
622
  return t("ElSelect", I([{}, e.data, {
623
623
  ref: "el"
624
- }]), [(Array.isArray(s) ? s : []).map((n, o) => D(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
624
+ }]), [(Array.isArray(s) ? s : []).map((n, o) => j(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
625
625
  },
626
626
  mounted() {
627
627
  this.$emit("fc.el", this.$refs.el);
@@ -738,6 +738,7 @@ const Ir = "fcUpload", Pr = {
738
738
  default: () => {
739
739
  }
740
740
  },
741
+ uploadText: String,
741
742
  value: [Array, String]
742
743
  },
743
744
  data() {
@@ -846,7 +847,7 @@ const Ir = "fcUpload", Pr = {
846
847
  attrs: {
847
848
  type: "primary"
848
849
  }
849
- }, [this.formCreateInject.t("clickToUpload") || "点击上传"]) : t("i", {
850
+ }, [this.formCreateInject.t("clickToUpload") || this.uploadText || "点击上传"]) : t("i", {
850
851
  class: "el-icon-upload2"
851
852
  });
852
853
  },
@@ -1078,7 +1079,7 @@ const Br = "fcGroup", Lr = {
1078
1079
  },
1079
1080
  methods: {
1080
1081
  _value(t) {
1081
- return t && D(t, this.field) ? t[this.field] : t;
1082
+ return t && j(t, this.field) ? t[this.field] : t;
1082
1083
  },
1083
1084
  cache(t, e) {
1084
1085
  this.cacheValue[t] = JSON.stringify(e);
@@ -1430,7 +1431,7 @@ function Ce(t, e) {
1430
1431
  function Le(t) {
1431
1432
  return new Function("return " + t)();
1432
1433
  }
1433
- function X(t, e) {
1434
+ function x(t, e) {
1434
1435
  if (t && h.String(t) && t.length > 4) {
1435
1436
  let r = t.trim(), i = !1;
1436
1437
  try {
@@ -1473,7 +1474,7 @@ err: ${s}`);
1473
1474
  }
1474
1475
  function Vt(t, e) {
1475
1476
  return JSON.parse(t, function(r, i) {
1476
- return h.Undef(i) || !i.indexOf ? i : X(i, e);
1477
+ return h.Undef(i) || !i.indexOf ? i : x(i, e);
1477
1478
  });
1478
1479
  }
1479
1480
  let Jr = 0;
@@ -1487,7 +1488,7 @@ function oe(t, e, r) {
1487
1488
  s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1488
1489
  }), k(i, s, r), i;
1489
1490
  }
1490
- function Xe(t, e) {
1491
+ function xe(t, e) {
1491
1492
  return {
1492
1493
  value: t,
1493
1494
  enumerable: !1,
@@ -1531,9 +1532,9 @@ function O(t, e) {
1531
1532
  }
1532
1533
  return e;
1533
1534
  }
1534
- function xe(t, e) {
1535
+ function Xe(t, e) {
1535
1536
  let r = null;
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) => {
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
1538
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1538
1539
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1539
1540
  });
@@ -1543,10 +1544,10 @@ function Wr(t, e) {
1543
1544
  if (h.Object(t)) {
1544
1545
  const r = {};
1545
1546
  return Object.keys(t).forEach((i) => {
1546
- r[i] = xe(t[i], i);
1547
+ r[i] = Xe(t[i], i);
1547
1548
  }), r;
1548
1549
  } else
1549
- return xe(t, e);
1550
+ return Xe(t, e);
1550
1551
  }
1551
1552
  function Ee() {
1552
1553
  const t = {}, e = (r) => r || "default";
@@ -1661,7 +1662,7 @@ const je = (t, e) => {
1661
1662
  return je(t.$parent, e);
1662
1663
  }
1663
1664
  };
1664
- function Xr(t, e, r) {
1665
+ function xr(t, e, r) {
1665
1666
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1666
1667
  return {
1667
1668
  name: i,
@@ -1701,6 +1702,7 @@ function Xr(t, e, r) {
1701
1702
  index: [String, Number],
1702
1703
  api: Object,
1703
1704
  locale: [String, Object],
1705
+ t: Function,
1704
1706
  name: String,
1705
1707
  subForm: {
1706
1708
  type: Boolean,
@@ -1728,20 +1730,20 @@ function Xr(t, e, r) {
1728
1730
  unique: 1,
1729
1731
  renderRule: [...l.value || []],
1730
1732
  updateValue: JSON.stringify(u.value || {})
1731
- }), g = new t(n), y = g.api(), w = p.value, F = () => {
1733
+ }), m = new t(n), y = m.api(), w = p.value, F = () => {
1732
1734
  if (o) {
1733
1735
  const E = je(n, o);
1734
1736
  if (E) {
1735
- let R;
1736
- w ? (R = H(E.getSubForm()), R.push(y)) : R = y, E.subForm(R);
1737
+ let D;
1738
+ w ? (D = H(E.getSubForm()), D.push(y)) : D = y, E.subForm(D);
1737
1739
  }
1738
1740
  }
1739
1741
  }, G = () => {
1740
1742
  const E = je(n, o);
1741
1743
  if (E)
1742
1744
  if (w) {
1743
- const R = H(E.getSubForm()), M = R.indexOf(y);
1744
- M > -1 && R.splice(M, 1);
1745
+ const D = H(E.getSubForm()), M = D.indexOf(y);
1746
+ M > -1 && D.splice(M, 1);
1745
1747
  } else
1746
1748
  E.subForm();
1747
1749
  };
@@ -1749,49 +1751,49 @@ function Xr(t, e, r) {
1749
1751
  cr(() => {
1750
1752
  L(() => {
1751
1753
  let E = "";
1752
- const R = s.option && s.option.globalClass || {};
1753
- Object.keys(R).forEach((M) => {
1754
+ const D = s.option && s.option.globalClass || {};
1755
+ Object.keys(D).forEach((M) => {
1754
1756
  let me = "";
1755
- R[M].style && Object.keys(R[M].style).forEach((W) => {
1756
- me += ve(W) + ":" + R[M].style[W] + ";";
1757
- }), R[M].content && (me += R[M].content + ";"), me && (E += `.${M}{${me}}`);
1757
+ D[M].style && Object.keys(D[M].style).forEach((W) => {
1758
+ me += ve(W) + ":" + D[M].style[W] + ";";
1759
+ }), D[M].content && (me += D[M].content + ";"), me && (E += `.${M}{${me}}`);
1758
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 || "";
1759
1761
  }, () => {
1760
1762
  });
1761
1763
  });
1762
1764
  const N = se(() => {
1763
- g.bus.$emit("$loadData.$topForm");
1765
+ m.bus.$emit("$loadData.$topForm");
1764
1766
  }, 100), de = se(function() {
1765
- g.bus.$emit("$loadData.$scopeForm");
1767
+ m.bus.$emit("$loadData.$scopeForm");
1766
1768
  }, 100), Pe = se(() => {
1767
- g.bus.$emit("$loadData.$form");
1769
+ m.bus.$emit("$loadData.$form");
1768
1770
  }, 100), pe = (E) => {
1769
- g.bus.$emit("change-$form." + E);
1771
+ m.bus.$emit("change-$form." + E);
1770
1772
  };
1771
1773
  return hr(() => {
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();
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();
1773
1775
  }), dr(() => {
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);
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);
1775
1777
  }), pr(() => {
1776
- g.updated();
1778
+ m.updated();
1777
1779
  }), L(f, (E) => {
1778
1780
  E ? F() : G();
1779
1781
  }, { immediate: !0 }), L(() => s.option, () => {
1780
- g.initOptions(), y.refresh();
1782
+ m.initOptions(), y.refresh();
1781
1783
  }, { deep: !0 }), L(() => [...l.value], (E) => {
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());
1784
+ m.$handle.isBreakWatch() || E.length === d.renderRule.length && E.every((D) => d.renderRule.indexOf(D) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1783
1785
  }), L(() => [s.disabled, s.preview], () => {
1784
1786
  y.refresh();
1785
1787
  }), L(u, (E) => {
1786
1788
  Ce(E || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(E || {}) : y.setValue(E || {}));
1787
1789
  }, { deep: !0, flush: "post" }), L(() => s.index, () => {
1788
- y.coverValue({}), g.$handle.updateAppendData(), P(() => {
1790
+ y.coverValue({}), m.$handle.updateAppendData(), P(() => {
1789
1791
  P(() => {
1790
1792
  y.clearValidateState();
1791
1793
  });
1792
1794
  });
1793
1795
  }, { flush: "sync" }), q(v({
1794
- fc: ye(g),
1796
+ fc: ye(m),
1795
1797
  parent: o && ye(o),
1796
1798
  top: ye(a),
1797
1799
  fapi: ye(y)
@@ -1805,8 +1807,8 @@ function Xr(t, e, r) {
1805
1807
  },
1806
1808
  updateValue(E) {
1807
1809
  if (d.destroyed) return;
1808
- const R = Ce(E);
1809
- d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", E), P(() => {
1810
+ const D = Ce(E);
1811
+ d.updateValue !== D && (d.updateValue = D, n.$emit("update:value", E), P(() => {
1810
1812
  Pe(), o ? f.value || de() : (N(), de());
1811
1813
  }));
1812
1814
  }
@@ -1859,7 +1861,7 @@ function Nt(t) {
1859
1861
  }
1860
1862
  Nt(Dt());
1861
1863
  const Mt = T("");
1862
- function xr(t, e, r) {
1864
+ function Xr(t, e, r) {
1863
1865
  let i = Mt("", e);
1864
1866
  return i._data.type = t, i._data.title = r, i;
1865
1867
  }
@@ -1869,7 +1871,7 @@ function mt(t, e, r, i) {
1869
1871
  }
1870
1872
  function Zr() {
1871
1873
  return {
1872
- create: xr,
1874
+ create: Xr,
1873
1875
  createTmp: mt,
1874
1876
  template: mt,
1875
1877
  factory: T
@@ -1921,7 +1923,7 @@ function yt(t, e, r) {
1921
1923
  (e || qt)(q(v({}, t), {
1922
1924
  onSuccess(n) {
1923
1925
  let o = (l) => l;
1924
- const a = X(t.parse);
1926
+ const a = x(t.parse);
1925
1927
  h.Function(a) ? o = a : a && h.String(a) && (o = (l) => B(l, a)), i(o(n, void 0, r));
1926
1928
  },
1927
1929
  onError(n) {
@@ -2024,7 +2026,7 @@ function Yr(t) {
2024
2026
  },
2025
2027
  getValue(n) {
2026
2028
  const o = t.getFieldCtx(n);
2027
- return o ? _e(o.rule.value) : t.options.appendValue !== !1 && D(t.appendData, n) ? _e(t.appendData[n]) : void 0;
2029
+ return o ? _e(o.rule.value) : t.options.appendValue !== !1 && j(t.appendData, n) ? _e(t.appendData[n]) : void 0;
2028
2030
  },
2029
2031
  coverValue(n) {
2030
2032
  const o = v({}, n || {});
@@ -2032,7 +2034,7 @@ function Yr(t) {
2032
2034
  t.appendData = {}, s.fields().forEach((a) => {
2033
2035
  const l = t.fieldCtx[a];
2034
2036
  if (l) {
2035
- const u = D(n, a);
2037
+ const u = j(n, a);
2036
2038
  l.forEach((f) => {
2037
2039
  k(f.rule, "value", u ? n[a] : void 0);
2038
2040
  }), delete o[a];
@@ -2214,7 +2216,7 @@ function Yr(t) {
2214
2216
  },
2215
2217
  setEffect(n, o, a) {
2216
2218
  const l = t.getCtx(n);
2217
- l && o && (o[0] === "$" && (o = o.substr(1)), D(l.rule, "$" + o) && k(l.rule, "$" + o, a), D(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2219
+ l && o && (o[0] === "$" && (o = o.substr(1)), j(l.rule, "$" + o) && k(l.rule, "$" + o, a), j(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2218
2220
  },
2219
2221
  clearEffectData(n, o) {
2220
2222
  const a = t.getCtx(n);
@@ -2301,14 +2303,14 @@ function Yr(t) {
2301
2303
  const l = s.getChildrenRuleList(n);
2302
2304
  t.deferSyncValue(() => {
2303
2305
  l.forEach((u) => {
2304
- D(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2306
+ j(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2305
2307
  });
2306
2308
  });
2307
2309
  },
2308
2310
  getGlobalEvent(n) {
2309
2311
  let o = s.options.globalEvent[n];
2310
2312
  if (o)
2311
- return typeof o == "object" && (o = o.handle), X(o);
2313
+ return typeof o == "object" && (o = o.handle), x(o);
2312
2314
  },
2313
2315
  getGlobalData(n) {
2314
2316
  return new Promise((o, a) => {
@@ -2521,8 +2523,8 @@ function ti(t) {
2521
2523
  })()));
2522
2524
  });
2523
2525
  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;
2526
+ let m;
2527
+ return d ? (u.children = f, m = d(u)) : m = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), m = this.renderSides(m, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((y) => !y || !y.tag ? y : this.none(y)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2526
2528
  }, this.setCache(e, s, r);
2527
2529
  }
2528
2530
  return (...s) => {
@@ -2749,7 +2751,7 @@ function ii(t) {
2749
2751
  if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2750
2752
  return this.parseEventLst(e, r, i, !0);
2751
2753
  if (h.String(r)) {
2752
- const n = X(r);
2754
+ const n = x(r);
2753
2755
  if (n && r !== n)
2754
2756
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2755
2757
  }
@@ -2761,8 +2763,8 @@ function ii(t) {
2761
2763
  let p, d = n || o || a;
2762
2764
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2763
2765
  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);
2766
+ const m = ve(`${d}-${f}`), y = (...w) => {
2767
+ this.vm.$emit(m, ...w), this.vm.$emit("emit-event", m, ...w), this.bus.$emit(m, ...w);
2766
2768
  };
2767
2769
  if (y.__emit = !0, !p && l === !1)
2768
2770
  i[f] = y;
@@ -2802,7 +2804,7 @@ function ii(t) {
2802
2804
  let f = !1, p;
2803
2805
  if (i && u.indexOf("$form.") === 0) {
2804
2806
  const d = u.split(".");
2805
- d.shift(), D(i.value, d[0]) && (f = !0, p = r ? r({
2807
+ d.shift(), j(i.value, d[0]) && (f = !0, p = r ? r({
2806
2808
  id: "$form." + d[0] + "_" + i.rule.__fc__.id,
2807
2809
  getValue: () => B(i.value, d)
2808
2810
  }) : B(i.value, d));
@@ -2814,16 +2816,16 @@ function ii(t) {
2814
2816
  d.key ? f.push(d.key) : d.children && f.push(a(d.children));
2815
2817
  });
2816
2818
  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
+ return f.forEach((d, m) => {
2820
+ d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[m] = d.slice(1, -1), p = !0);
2819
2821
  }), f.length === 1 && (p || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2820
2822
  };
2821
2823
  let l;
2822
2824
  if (n.forEach((u) => {
2823
2825
  const f = u.split("||"), p = f[0].trim();
2824
2826
  if (p) {
2825
- const d = (f[1] || "").trim(), g = Bt(p);
2826
- let y = O(() => a(g));
2827
+ const d = (f[1] || "").trim(), m = Bt(p);
2828
+ let y = O(() => a(m));
2827
2829
  (y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2828
2830
  }
2829
2831
  }), n.length === 1 && s === `{{${n[0]}}}`)
@@ -2887,9 +2889,9 @@ function oi(t) {
2887
2889
  }
2888
2890
  function ai(t) {
2889
2891
  Object.defineProperties(t.origin, {
2890
- __fc__: Xe(ye(t), !0)
2892
+ __fc__: xe(ye(t), !0)
2891
2893
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2892
- __fc__: Xe(ye(t), !0)
2894
+ __fc__: xe(ye(t), !0)
2893
2895
  });
2894
2896
  }
2895
2897
  function Ht(t, e, r) {
@@ -3083,10 +3085,10 @@ function li(t) {
3083
3085
  parseRule(e) {
3084
3086
  const r = ht(e);
3085
3087
  return Object.defineProperties(r, {
3086
- __origin__: Xe(e, !0)
3088
+ __origin__: xe(e, !0)
3087
3089
  }), ui(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3088
3090
  i && this.loadFn(i, r);
3089
- }), this.loadCtrl(r), r.update && (r.update = X(r.update)), r;
3091
+ }), this.loadCtrl(r), r.update && (r.update = x(r.update)), r;
3090
3092
  },
3091
3093
  loadFn(e, r) {
3092
3094
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -3095,7 +3097,7 @@ function li(t) {
3095
3097
  },
3096
3098
  loadCtrl(e) {
3097
3099
  e.control && e.control.forEach((r) => {
3098
- r.handle && (r.handle = X(r.handle));
3100
+ r.handle && (r.handle = x(r.handle));
3099
3101
  });
3100
3102
  },
3101
3103
  syncProp(e) {
@@ -3134,9 +3136,9 @@ function li(t) {
3134
3136
  let l = ht(o);
3135
3137
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3136
3138
  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);
3137
- let f, p = !1, d = !!o.__fc__, g = l.value;
3139
+ let f, p = !1, d = !!o.__fc__, m = l.value;
3138
3140
  if (d) {
3139
- if (f = o.__fc__, g = f.defaultValue, f.deleted) {
3141
+ if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3140
3142
  if (bt(f))
3141
3143
  return;
3142
3144
  f.update(this);
@@ -3150,7 +3152,7 @@ function li(t) {
3150
3152
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3151
3153
  else {
3152
3154
  const F = this.parseRule(o);
3153
- f = new Ht(this, F, g), this.bindParser(f);
3155
+ f = new Ht(this, F, m), this.bindParser(f);
3154
3156
  }
3155
3157
  [!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
3158
  const y = f.loadChildrenPending();
@@ -3187,13 +3189,13 @@ function li(t) {
3187
3189
  const n = [];
3188
3190
  let o = !1;
3189
3191
  return this.deferSyncValue(() => {
3190
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: g, method: y }) => {
3192
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: m, method: y }) => {
3191
3193
  if (a) {
3192
3194
  l ? e.ctrlRule.push({
3193
3195
  __ctrl: !0,
3194
3196
  children: u,
3195
3197
  valid: l
3196
- }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3198
+ }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3197
3199
  y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((w) => {
3198
3200
  this.api.setEffect(w, "required", l);
3199
3201
  }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
@@ -3212,8 +3214,8 @@ function li(t) {
3212
3214
  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);
3213
3215
  });
3214
3216
  } else {
3215
- e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3216
- const w = Y(g);
3217
+ e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3218
+ const w = Y(m);
3217
3219
  w && w.rm();
3218
3220
  }
3219
3221
  });
@@ -3244,7 +3246,7 @@ function li(t) {
3244
3246
  function ui(t) {
3245
3247
  const e = Lt();
3246
3248
  return Object.keys(e).forEach((r) => {
3247
- D(t, r) || k(t, r, e[r]);
3249
+ j(t, r) || k(t, r, e[r]);
3248
3250
  }), t;
3249
3251
  }
3250
3252
  function fi(t) {
@@ -3284,7 +3286,7 @@ function hi(t) {
3284
3286
  this.deferSyncValue(() => {
3285
3287
  const i = e.getParentGroup(), s = i ? this.subRuleData[i.id] : null, n = {};
3286
3288
  Object.keys(r || {}).forEach((o) => {
3287
- s && D(s, o) ? n[o] = r[o] : D(this.api.form, o) ? this.api.form[o] = r[o] : this.api.top !== this.api && D(this.api.top.form, o) && (this.api.top.form[o] = r[o]);
3289
+ s && j(s, o) ? n[o] = r[o] : j(this.api.form, o) ? this.api.form[o] = r[o] : this.api.top !== this.api && j(this.api.top.form, o) && (this.api.top.form[o] = r[o]);
3288
3290
  }), Object.keys(n).length && this.api.setChildrenFormData(i.rule, n);
3289
3291
  });
3290
3292
  },
@@ -3314,7 +3316,7 @@ function hi(t) {
3314
3316
  return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
3315
3317
  },
3316
3318
  appendValue(e) {
3317
- (!e.field || !D(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
3319
+ (!e.field || !j(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
3318
3320
  },
3319
3321
  addSubForm(e, r) {
3320
3322
  this.subForm[e.id] = r;
@@ -3651,15 +3653,15 @@ function pi(t) {
3651
3653
  let u = !0;
3652
3654
  for (let f = 0; f < a.group.length; f++) {
3653
3655
  const p = a.group[f];
3654
- let d, g = null;
3656
+ let d, m = null;
3655
3657
  if (p.variable)
3656
- g = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3658
+ m = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3657
3659
  else if (p.field)
3658
- g = pt(p.field || "");
3660
+ m = pt(p.field || "");
3659
3661
  else if (!p.mode)
3660
3662
  return !0;
3661
3663
  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)
3664
+ 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}'](${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)
3663
3665
  return !0;
3664
3666
  l || (u = u && d);
3665
3667
  }
@@ -3703,7 +3705,7 @@ function pi(t) {
3703
3705
  const { id: r, field: i, input: s, name: n } = e;
3704
3706
  ie(this.ctxs, r), ie(this.formData, r), ie(this.subForm, r), ie(this.vm.ctxInject, r);
3705
3707
  const o = e.getParentGroup();
3706
- 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(() => {
3708
+ 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 && !j(this.fieldCtx, i) && ie(this.form, i), this.deferSyncValue(() => {
3707
3709
  if (!this.reloading) {
3708
3710
  if (e.parser.loadChildren !== !1) {
3709
3711
  const l = e.getPending("children", e.rule.children);
@@ -3731,19 +3733,19 @@ function mi(t) {
3731
3733
  emitEvent(e, ...r) {
3732
3734
  const i = this.options[e] || this.options[J("on-" + e)];
3733
3735
  if (i) {
3734
- const s = X(i);
3736
+ const s = x(i);
3735
3737
  h.Function(s) && O(() => s(...r));
3736
3738
  }
3737
3739
  this.bus.$emit(e, ...r);
3738
3740
  },
3739
3741
  targetHook(e, r, i) {
3740
3742
  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) => {
3743
+ let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, m) => {
3742
3744
  d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
3743
3745
  O(() => y(q(v({}, i || {}), {
3744
3746
  self: e.rule,
3745
3747
  rule: e.rule,
3746
- parent: g == null ? void 0 : g.rule,
3748
+ parent: m == null ? void 0 : m.rule,
3747
3749
  $f: this.api,
3748
3750
  api: this.api,
3749
3751
  option: this.vm.$props.option
@@ -3781,7 +3783,7 @@ function gi(t) {
3781
3783
  let r = {
3782
3784
  required: () => {
3783
3785
  var i, s;
3784
- return (D(e.rule, "$required") ? e.rule.$required : (s = (i = e.rule) == null ? void 0 : i.effect) == null ? void 0 : s.required) || !1;
3786
+ return (j(e.rule, "$required") ? e.rule.$required : (s = (i = e.rule) == null ? void 0 : i.effect) == null ? void 0 : s.required) || !1;
3785
3787
  }
3786
3788
  };
3787
3789
  Object.keys(e.rule.effect || {}).forEach((i) => {
@@ -3811,9 +3813,9 @@ function gi(t) {
3811
3813
  }, r);
3812
3814
  },
3813
3815
  getEffect(e, r) {
3814
- if (D(e, "$" + r))
3816
+ if (j(e, "$" + r))
3815
3817
  return e["$" + r];
3816
- if (D(e, "effect") && D(e.effect, r))
3818
+ if (j(e, "effect") && j(e.effect, r))
3817
3819
  return e.effect[r];
3818
3820
  },
3819
3821
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
@@ -3830,7 +3832,7 @@ function gi(t) {
3830
3832
  else
3831
3833
  return;
3832
3834
  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]);
3835
+ 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]);
3834
3836
  });
3835
3837
  }
3836
3838
  });
@@ -3847,7 +3849,7 @@ function $i(t) {
3847
3849
  return r.length ? r : !1;
3848
3850
  } else return h.String(e) ? [e] : !1;
3849
3851
  }
3850
- function x(t) {
3852
+ function X(t) {
3851
3853
  Tt(this, {
3852
3854
  options() {
3853
3855
  return t.options.value || {};
@@ -3887,7 +3889,7 @@ function x(t) {
3887
3889
  return i && i !== e && _(e, i), e;
3888
3890
  }, Yr(this));
3889
3891
  }
3890
- _(x.prototype, {
3892
+ _(X.prototype, {
3891
3893
  initData(t) {
3892
3894
  _(this, {
3893
3895
  ctxs: {},
@@ -3925,14 +3927,14 @@ _(x.prototype, {
3925
3927
  });
3926
3928
  }
3927
3929
  });
3928
- ii(x);
3929
- ni(x);
3930
- oi(x);
3931
- li(x);
3932
- hi(x);
3933
- pi(x);
3934
- mi(x);
3935
- gi(x);
3930
+ ii(X);
3931
+ ni(X);
3932
+ oi(X);
3933
+ li(X);
3934
+ hi(X);
3935
+ pi(X);
3936
+ mi(X);
3937
+ gi(X);
3936
3938
  const bi = "fcFragment", Ne = {
3937
3939
  name: bi,
3938
3940
  functional: !0,
@@ -4063,10 +4065,10 @@ const wi = function(t) {
4063
4065
  let l = (p) => {
4064
4066
  let d;
4065
4067
  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
+ let m;
4069
+ 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));
4068
4070
  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);
4071
+ a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : oe(y, a.to || "options", m), s.sync(i);
4070
4072
  }, u = (p) => l(p);
4071
4073
  const f = t.watchLoadData(u);
4072
4074
  l = se(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
@@ -4093,11 +4095,11 @@ const wi = function(t) {
4093
4095
  const l = n[a];
4094
4096
  if (l) {
4095
4097
  const u = typeof l == "object";
4096
- let f = (g) => {
4097
- let y = t.t(u ? l.attr : l, u ? l.params : null, g);
4098
+ let f = (m) => {
4099
+ let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4098
4100
  const w = u && l.modify ? i : r.getProp();
4099
4101
  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);
4102
+ }, p = (m) => f(m);
4101
4103
  const d = t.watchLoadData(p);
4102
4104
  f = se(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4103
4105
  }
@@ -4118,18 +4120,18 @@ const wi = function(t) {
4118
4120
  t.clearProp(), r.clearValidateState([e.field]);
4119
4121
  else {
4120
4122
  h.Object(i) || (i = { method: i });
4121
- const s = i.method;
4122
- delete i.method, t.getProp().validate = [q(v({}, i), {
4123
- validator(...n) {
4124
- const o = Y(e);
4125
- if (o)
4126
- return r.exec(o.id, h.String(s) ? s : "formCreateValidate", ...n, {
4123
+ const s = i.method, n = q(v({}, i), {
4124
+ validator(...o) {
4125
+ const a = Y(e);
4126
+ if (a)
4127
+ return r.exec(a.id, h.String(s) ? s : "formCreateValidate", ...o, {
4127
4128
  attr: t,
4128
4129
  rule: e,
4129
4130
  api: r
4130
4131
  });
4131
4132
  }
4132
- })];
4133
+ });
4134
+ delete n.method, t.getProp().validate = [n];
4133
4135
  }
4134
4136
  },
4135
4137
  watch(...t) {
@@ -4171,22 +4173,22 @@ const wi = function(t) {
4171
4173
  i._fn[s.id] = t.watchLoadData(se((p, d) => {
4172
4174
  if (d && a.watch === !1)
4173
4175
  return i._fn[s.id]();
4174
- const g = t.$handle.loadFetchVar(K(a), p, n), y = q(v({
4176
+ const m = t.$handle.loadFetchVar(K(a), p, n), y = q(v({
4175
4177
  headers: {}
4176
- }, g), {
4178
+ }, m), {
4177
4179
  onSuccess(w, F) {
4178
4180
  if (f()) return;
4179
- let G = (N) => F ? N : D(N, "data") ? N.data : N;
4180
- const V = X(g.parse);
4181
+ let G = (N) => F ? N : j(N, "data") ? N.data : N;
4182
+ const V = x(m.parse);
4181
4183
  h.Function(V) ? G = V : V && h.String(V) && (G = (N) => B(N, V)), l(G(w, n, o));
4182
4184
  },
4183
4185
  onError(w) {
4184
- l(void 0), !f() && (u || ((F) => tt(F.message || "fetch fail " + g.action)))(w, n, o);
4186
+ l(void 0), !f() && (u || ((F) => tt(F.message || "fetch fail " + m.action)))(w, n, o);
4185
4187
  }
4186
4188
  });
4187
4189
  t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4188
- if (h.Function(g.action)) {
4189
- g.action(n, o).then((w) => {
4190
+ if (h.Function(m.action)) {
4191
+ m.action(n, o).then((w) => {
4190
4192
  y.onSuccess(w, !0);
4191
4193
  }).catch((w) => {
4192
4194
  y.onError(w);
@@ -4390,16 +4392,16 @@ function Kt(t) {
4390
4392
  t.extendApi
4391
4393
  ], u = v({}, ki), f = Zr();
4392
4394
  let p = { global: {} };
4393
- const d = t.isMobile === !0, g = ne({
4395
+ const d = t.isMobile === !0, m = ne({
4394
4396
  $mobile: d
4395
4397
  }), y = _i(), w = {}, F = {};
4396
4398
  Mi(t.attrs || {});
4397
4399
  function G(c) {
4398
- const m = U[c];
4399
- if (Array.isArray(m))
4400
- return m.map(($) => $.api());
4401
- if (m)
4402
- return m.api();
4400
+ const g = U[c];
4401
+ if (Array.isArray(g))
4402
+ return g.map(($) => $.api());
4403
+ if (g)
4404
+ return g.api();
4403
4405
  }
4404
4406
  function V(c) {
4405
4407
  o.push(c);
@@ -4420,38 +4422,38 @@ function Kt(t) {
4420
4422
  function pe() {
4421
4423
  const c = Me(...arguments);
4422
4424
  if (!c.id || !c.prop) return Ae;
4423
- const m = J(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4424
- r[m] = Se($, b || Ae), f[m] = T(m), $.maker && _(f, $.maker);
4425
+ const g = J(c.id), $ = c.prop, b = $.merge === !0 ? r[g] : void 0;
4426
+ r[g] = Se($, b || Ae), f[g] = T(g), $.maker && _(f, $.maker);
4425
4427
  }
4426
- function E(c, m) {
4428
+ function E(c, g) {
4427
4429
  let $;
4428
4430
  if (h.String(c)) {
4429
- if ($ = c, m === void 0)
4430
- return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
4431
+ if ($ = c, g === void 0)
4432
+ return ["form-create", "formcreate"].indexOf($) > -1 ? D() : e[$];
4431
4433
  } else
4432
- $ = J(c.name), m = c;
4433
- if (!$ || !m) return;
4434
+ $ = J(c.name), g = c;
4435
+ if (!$ || !g) return;
4434
4436
  const b = J($);
4435
- e[$] = m, e[b] = m, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && pe($, m.formCreateParser);
4437
+ e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && pe($, g.formCreateParser);
4436
4438
  }
4437
- function R() {
4438
- return Xr(Be, e, i);
4439
+ function D() {
4440
+ return xr(Be, e, i);
4439
4441
  }
4440
4442
  function M() {
4441
4443
  return Ne;
4442
4444
  }
4443
- function me(c, m) {
4444
- return h.Function(c.install) ? c.install(W, m) : h.Function(c) && c(W, m), this;
4445
+ function me(c, g) {
4446
+ return h.Function(c.install) ? c.install(W, g) : h.Function(c) && c(W, g), this;
4445
4447
  }
4446
- function W(c, m, $) {
4447
- let b = Ni(c, m || {});
4448
+ function W(c, g, $) {
4449
+ let b = Ni(c, g || {});
4448
4450
  const C = b.$refs.fc.formCreate;
4449
4451
  return C.$parent = $, Li(C.options).appendChild(b.$el), C.api();
4450
4452
  }
4451
4453
  Se(W, F);
4452
4454
  function zt(c) {
4453
- let m = v({}, t);
4454
- return c ? m.inherit = {
4455
+ let g = v({}, t);
4456
+ return c ? g.inherit = {
4455
4457
  components: e,
4456
4458
  parsers: r,
4457
4459
  directives: i,
@@ -4460,53 +4462,53 @@ function Kt(t) {
4460
4462
  useApps: o,
4461
4463
  maker: f,
4462
4464
  formulas: w,
4463
- loadData: g
4464
- } : delete m.inherit, Kt(m);
4465
+ loadData: m
4466
+ } : delete g.inherit, Kt(g);
4465
4467
  }
4466
- function Xt(c, m) {
4467
- s[c] = m;
4468
+ function xt(c, g) {
4469
+ s[c] = g;
4468
4470
  }
4469
- function xt(c, m) {
4470
- w[c] = m;
4471
+ function Xt(c, g) {
4472
+ w[c] = g;
4471
4473
  }
4472
- function Zt(c, m) {
4474
+ function Zt(c, g) {
4473
4475
  const $ = n[c] || {}, b = $.parsers || {};
4474
- m.parsers && Object.keys(m.parsers).forEach((C) => {
4475
- b[C] = Se(m.parsers[C], Ae);
4476
- }), m.name = c, n[c] = q(v(v({}, $), m), { parsers: b });
4476
+ g.parsers && Object.keys(g.parsers).forEach((C) => {
4477
+ b[C] = Se(g.parsers[C], Ae);
4478
+ }), g.name = c, n[c] = q(v(v({}, $), g), { parsers: b });
4477
4479
  }
4478
4480
  function Oe(c) {
4479
- c && Object.keys(U).forEach((m) => {
4480
- (Array.isArray(U[m]) ? U[m] : [U[m]]).forEach((b) => {
4481
+ c && Object.keys(U).forEach((g) => {
4482
+ (Array.isArray(U[g]) ? U[g] : [U[g]]).forEach((b) => {
4481
4483
  b.bus.$emit("$loadData." + c);
4482
4484
  });
4483
4485
  });
4484
4486
  }
4485
- function Te(c, m) {
4486
- oe(g, c, m), Oe(c);
4487
+ function Te(c, g) {
4488
+ oe(m, c, g), Oe(c);
4487
4489
  }
4488
- function Fe(c, m) {
4489
- const $ = (...b) => O(() => m(...b));
4490
+ function Fe(c, g) {
4491
+ const $ = (...b) => O(() => g(...b));
4490
4492
  $._driver = !0, Te(c, $);
4491
4493
  }
4492
- function st(c, m) {
4494
+ function st(c, g) {
4493
4495
  const $ = (c || "").split(".");
4494
4496
  c = $.shift();
4495
4497
  const b = $.join(".");
4496
- if (D(g, c) || k(g, c, De), g[c] !== De) {
4497
- let C = g[c];
4498
- return C && C._driver ? C = C(b) : $.length && (C = B(C, $)), C == null || C === "" ? m : C;
4498
+ if (j(m, c) || k(m, c, De), m[c] !== De) {
4499
+ let C = m[c];
4500
+ return C && C._driver ? C = C(b) : $.length && (C = B(C, $)), C == null || C === "" ? g : C;
4499
4501
  } else
4500
- return m;
4502
+ return g;
4501
4503
  }
4502
4504
  function Qt(c) {
4503
4505
  l.push(c);
4504
4506
  }
4505
4507
  function Yt(c) {
4506
- delete g[c], Oe(c);
4508
+ delete m[c], Oe(c);
4507
4509
  }
4508
- function er(c, m) {
4509
- a.push({ name: c, callback: m });
4510
+ function er(c, g) {
4511
+ a.push({ name: c, callback: g });
4510
4512
  }
4511
4513
  function Be(c) {
4512
4514
  _(this, {
@@ -4530,7 +4532,7 @@ function Kt(t) {
4530
4532
  drivers: n,
4531
4533
  renderDriver: null,
4532
4534
  refreshData: Oe,
4533
- loadData: g,
4535
+ loadData: m,
4534
4536
  CreateNode: y,
4535
4537
  bus: new Ei(),
4536
4538
  unwatch: [],
@@ -4538,13 +4540,13 @@ function Kt(t) {
4538
4540
  extendApiFn: l,
4539
4541
  fetchCache: /* @__PURE__ */ new WeakMap(),
4540
4542
  tmpData: ne({})
4541
- }), a.forEach((m) => {
4542
- this.bus.$on(m.name, m.callback);
4543
+ }), a.forEach((g) => {
4544
+ this.bus.$on(g.name, g.callback);
4543
4545
  }), P(() => {
4544
4546
  L(this.options, () => {
4545
4547
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4546
4548
  }, { deep: !0 });
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);
4549
+ }), _(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);
4548
4550
  }
4549
4551
  Be.isMobile = d, _(Be.prototype, {
4550
4552
  init() {
@@ -4552,33 +4554,33 @@ function Kt(t) {
4552
4554
  this.initOptions(), this.$handle.api.refresh();
4553
4555
  }, { 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();
4554
4556
  },
4555
- targetFormDriver(c, ...m) {
4557
+ targetFormDriver(c, ...g) {
4556
4558
  if (this.renderDriver && this.renderDriver[c])
4557
- return O(() => this.renderDriver[c](...m));
4559
+ return O(() => this.renderDriver[c](...g));
4558
4560
  },
4559
- t(c, m, $) {
4561
+ t(c, g, $) {
4560
4562
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4561
- return b == null && (b = ""), b && m && Object.keys(m).forEach((C) => {
4562
- const j = new RegExp(`{${C}}`, "g");
4563
- b = b.replace(j, m[C]);
4563
+ return b == null && (b = ""), b && g && Object.keys(g).forEach((C) => {
4564
+ const S = new RegExp(`{${C}}`, "g");
4565
+ b = b.replace(S, g[C]);
4564
4566
  }), b;
4565
4567
  },
4566
4568
  globalDataDriver(c) {
4567
- let m = c.split(".");
4568
- const $ = m.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4569
+ let g = c.split(".");
4570
+ const $ = g.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4569
4571
  if (b) {
4570
4572
  if (b.type === "static")
4571
- return B(b.data, m);
4573
+ return B(b.data, g);
4572
4574
  {
4573
4575
  let C;
4574
- const j = this.fetchCache.get(b);
4575
- if (j) {
4576
- if (j.status && (C = B(j.data, m)), !j.loading)
4576
+ const S = this.fetchCache.get(b);
4577
+ if (S) {
4578
+ if (S.status && (C = B(S.data, g)), !S.loading)
4577
4579
  return C;
4578
- j.loading = !1, this.fetchCache.set(b, j);
4580
+ S.loading = !1, this.fetchCache.set(b, S);
4579
4581
  } else
4580
4582
  this.fetchCache.set(b, { status: !1 });
4581
- const S = se(() => {
4583
+ const R = se(() => {
4582
4584
  le();
4583
4585
  const z = this.fetchCache.get(b);
4584
4586
  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);
@@ -4588,7 +4590,7 @@ function Kt(t) {
4588
4590
  if (ue && b.watch === !1)
4589
4591
  return le();
4590
4592
  if (ue) {
4591
- S();
4593
+ R();
4592
4594
  return;
4593
4595
  }
4594
4596
  const ge = this.$handle.loadFetchVar(Ke(b), z);
@@ -4607,31 +4609,31 @@ function Kt(t) {
4607
4609
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4608
4610
  },
4609
4611
  globalLanguageDriver(c) {
4610
- let m = this.vm.top.$props.locale, $;
4611
- if (m && typeof m == "object" && ($ = B(m, c)), $ == null) {
4612
- const b = this.options.value.language || {}, C = this.getLocale();
4613
- $ = B(b[C] || {}, c), $ == null && ($ = B(Ti[C] || {}, c));
4612
+ let g = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4613
+ if (g && (b = O(() => g(c))), b == null && $ && typeof $ == "object" && (b = B($, c)), b == null) {
4614
+ const C = this.options.value.language || {}, S = this.getLocale();
4615
+ b = B(C[S] || {}, c), b == null && (b = B(Ti[S] || {}, c));
4614
4616
  }
4615
- return $;
4617
+ return b;
4616
4618
  },
4617
4619
  globalVarDriver(c) {
4618
- let m = c.split(".");
4619
- const $ = m.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4620
+ let g = c.split(".");
4621
+ const $ = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4620
4622
  if (b) {
4621
- const C = h.Function(b) ? b : X(b.handle);
4623
+ const C = h.Function(b) ? b : x(b.handle);
4622
4624
  if (C) {
4623
- let j;
4624
- const S = this.watchLoadData((ae, Z) => {
4625
- Z ? (this.bus.$emit("$loadData.$var." + $), S()) : j = C(ae, this.$handle.api);
4625
+ let S;
4626
+ const R = this.watchLoadData((ae, Z) => {
4627
+ Z ? (this.bus.$emit("$loadData.$var." + $), R()) : S = C(ae, this.$handle.api);
4626
4628
  });
4627
- return this.unwatch.push(S), B(j, m);
4629
+ return this.unwatch.push(R), B(S, g);
4628
4630
  }
4629
4631
  }
4630
4632
  },
4631
- setData(c, m, $) {
4632
- $ ? Te(c, m) : (oe(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
4633
+ setData(c, g, $) {
4634
+ $ ? Te(c, g) : (oe(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4633
4635
  },
4634
- getLoadData(c, m) {
4636
+ getLoadData(c, g) {
4635
4637
  let $ = null;
4636
4638
  if (c != null) {
4637
4639
  let b = c.split(".");
@@ -4656,33 +4658,33 @@ function Kt(t) {
4656
4658
  if (C === "$preview")
4657
4659
  return this.$handle.preview;
4658
4660
  {
4659
- const j = this.vm.top.fc.tmpData;
4660
- D(j, C) || k(j, C, De), $ = j[C] !== De ? B(j, c) : st(c), b = [];
4661
+ const S = this.vm.top.fc.tmpData;
4662
+ j(S, C) || k(S, C, De), $ = S[C] !== De ? B(S, c) : st(c), b = [];
4661
4663
  }
4662
4664
  }
4663
4665
  $ && b.length && ($ = B($, b));
4664
4666
  }
4665
- return $ == null || $ === "" ? m : $;
4667
+ return $ == null || $ === "" ? g : $;
4666
4668
  },
4667
- watchLoadData(c, m) {
4669
+ watchLoadData(c, g) {
4668
4670
  let $ = {};
4669
- const b = (S) => {
4671
+ const b = (R) => {
4670
4672
  this.get || (this.get = C), O(() => {
4671
- c(C, S);
4673
+ c(C, R);
4672
4674
  }), this.get === C && (this.get = void 0);
4673
- }, C = (S, ae) => {
4675
+ }, C = (R, ae) => {
4674
4676
  let Z;
4675
- if (typeof S == "object" && (Z = S.getValue, S = S.id), $[S])
4676
- return $[S].val;
4677
- const le = $e(() => Z ? Z() : this.getLoadData(S, ae)), z = S.split("."), ue = z.shift(), ge = z.shift() || "", re = se(() => {
4678
- const fe = Z ? Z() : this.getLoadData(S, ae);
4679
- if ($[S])
4680
- ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[S].val || JSON.stringify(fe) !== JSON.stringify($[S].val)) && ($[S].val = fe, b(!0));
4677
+ if (typeof R == "object" && (Z = R.getValue, R = R.id), $[R])
4678
+ return $[R].val;
4679
+ const le = $e(() => Z ? Z() : this.getLoadData(R, ae)), z = R.split("."), ue = z.shift(), ge = z.shift() || "", re = se(() => {
4680
+ const fe = Z ? Z() : this.getLoadData(R, ae);
4681
+ if ($[R])
4682
+ ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[R].val || JSON.stringify(fe) !== JSON.stringify($[R].val)) && ($[R].val = fe, b(!0));
4681
4683
  else return;
4682
- }, m || 0), rr = L(le, (fe) => {
4684
+ }, g || 0), rr = L(le, (fe) => {
4683
4685
  re();
4684
4686
  });
4685
- return this.bus.$on("$loadData." + ue, re), ge && this.bus.$on("$loadData." + ue + "." + ge, re), $[S] = {
4687
+ return this.bus.$on("$loadData." + ue, re), ge && this.bus.$on("$loadData." + ue + "." + ge, re), $[R] = {
4686
4688
  fn: () => {
4687
4689
  this.bus.$off("$loadData." + ue, re), ge && this.bus.$off("$loadData." + ue + "." + ge, re), rr();
4688
4690
  },
@@ -4690,10 +4692,10 @@ function Kt(t) {
4690
4692
  }, le.value;
4691
4693
  };
4692
4694
  b(!1);
4693
- const j = () => {
4694
- Object.keys($).forEach((S) => $[S].fn()), $ = {};
4695
+ const S = () => {
4696
+ Object.keys($).forEach((R) => $[R].fn()), $ = {};
4695
4697
  };
4696
- return this.unwatch.push(j), j;
4698
+ return this.unwatch.push(S), S;
4697
4699
  },
4698
4700
  isSub() {
4699
4701
  return this.vm.parent && this.vm.extendOption;
@@ -4709,10 +4711,10 @@ function Kt(t) {
4709
4711
  }, K(p));
4710
4712
  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);
4711
4713
  },
4712
- mergeOptions(c, m, $) {
4713
- return m = v({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4714
- delete m[b];
4715
- }), m.global && (c.global = Kr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4714
+ mergeOptions(c, g, $) {
4715
+ return g = v({}, g || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4716
+ delete g[b];
4717
+ }), g.global && (c.global = Kr(c.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], c), c;
4716
4718
  },
4717
4719
  updateOptions(c) {
4718
4720
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4755,8 +4757,8 @@ function Kt(t) {
4755
4757
  maker: f,
4756
4758
  component: E,
4757
4759
  directive: N,
4758
- setModelField: Xt,
4759
- setFormula: xt,
4760
+ setModelField: xt,
4761
+ setFormula: Xt,
4760
4762
  setDriver: Zt,
4761
4763
  register: de,
4762
4764
  $vnode: M,
@@ -4768,8 +4770,8 @@ function Kt(t) {
4768
4770
  copyRules: Pt,
4769
4771
  mergeRule: te,
4770
4772
  fetch: qt,
4771
- $form: R,
4772
- parseFn: X,
4773
+ $form: D,
4774
+ parseFn: x,
4773
4775
  parseJson: Vt,
4774
4776
  toJson: Ce,
4775
4777
  useApp: V,
@@ -4780,25 +4782,25 @@ function Kt(t) {
4780
4782
  function tr(c) {
4781
4783
  _(c, {
4782
4784
  create: W,
4783
- install(m, $) {
4784
- if (p = v(v({}, p), $ || {}), m._installedFormCreate === !0) return;
4785
- m._installedFormCreate = !0;
4786
- const b = function(j, S = {}) {
4787
- return W(j, S, this);
4785
+ install(g, $) {
4786
+ if (p = v(v({}, p), $ || {}), g._installedFormCreate === !0) return;
4787
+ g._installedFormCreate = !0;
4788
+ const b = function(S, R = {}) {
4789
+ return W(S, R, this);
4788
4790
  };
4789
- ot(b), m.prototype.$formCreate = b;
4790
- const C = R();
4791
- m.component(C.name, C), m.component("FcFragment", M()), o.forEach((j) => {
4792
- O(() => j(c, m));
4791
+ ot(b), g.prototype.$formCreate = b;
4792
+ const C = D();
4793
+ g.component(C.name, C), g.component("FcFragment", M()), o.forEach((S) => {
4794
+ O(() => S(c, g));
4793
4795
  });
4794
4796
  }
4795
4797
  });
4796
4798
  }
4797
4799
  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) {
4798
4800
  const c = t.inherit;
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);
4801
+ 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 && _(w, c.formulas);
4800
4802
  }
4801
- const ke = R();
4803
+ const ke = D();
4802
4804
  return Se(ke, F), Object.defineProperties(ke, {
4803
4805
  fetch: {
4804
4806
  get() {
@@ -4872,19 +4874,19 @@ const _t = {
4872
4874
  e.vNode.row(e.prop, t)
4873
4875
  ]);
4874
4876
  }
4875
- }, zi = "select", Xi = {
4877
+ }, zi = "select", xi = {
4876
4878
  name: zi,
4877
4879
  toFormValue(t, e) {
4878
4880
  return e.prop.props.multiple && !Array.isArray(t) ? H(t) : t;
4879
4881
  }
4880
- }, xi = [
4882
+ }, Xi = [
4881
4883
  Ui,
4882
4884
  Hi,
4883
4885
  Gi,
4884
4886
  Ji,
4885
4887
  Ki,
4886
4888
  Wi,
4887
- Xi
4889
+ xi
4888
4890
  ], A = "el", Zi = {
4889
4891
  button: A + "Button",
4890
4892
  icon: "i",
@@ -4956,13 +4958,13 @@ function Yi(t) {
4956
4958
  return t.type === "tooltip";
4957
4959
  }
4958
4960
  function Ot(t, e) {
4959
- D(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4961
+ j(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4960
4962
  }
4961
4963
  function Q(t) {
4962
4964
  return t === !1;
4963
4965
  }
4964
4966
  function en(t, e) {
4965
- D(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4967
+ j(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4966
4968
  }
4967
4969
  function Ge(t) {
4968
4970
  const e = v({}, t);
@@ -5034,9 +5036,9 @@ const tn = {
5034
5036
  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)]);
5035
5037
  },
5036
5038
  makeWrap(t, e) {
5037
- 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;
5038
- delete r.wrap.title;
5039
- const u = Q(r.wrap.show) ? e : this.$r(ee([r.wrap, {
5039
+ 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;
5040
+ delete r.wrap.class, delete r.wrap.title;
5041
+ const f = Q(r.wrap.show) ? e : this.$r(ee([r.wrap, {
5040
5042
  props: q(v({
5041
5043
  labelWidth: o === void 0 ? o : At(o),
5042
5044
  label: n ? r.title.title : void 0
@@ -5044,12 +5046,12 @@ const tn = {
5044
5046
  prop: t.id,
5045
5047
  rules: t.injectValidate()
5046
5048
  }),
5047
- class: this.$render.mergeClass(r.className, "fc-form-item"),
5049
+ class: this.$render.mergeClass(u || r.className, "fc-form-item"),
5048
5050
  key: `${i}fi`,
5049
5051
  ref: t.wrapRef,
5050
5052
  type: "formItem"
5051
5053
  }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5052
- return a === !0 || Q(l) || Q(s.show) ? u : this.makeCol(r, i, [u]);
5054
+ return a === !0 || Q(l) || Q(s.show) ? f : this.makeCol(r, i, [f]);
5053
5055
  },
5054
5056
  isTitle(t) {
5055
5057
  if (this.options.form.title === !1) return !1;
@@ -5057,12 +5059,12 @@ const tn = {
5057
5059
  return !(!e.title && !e.native || Q(e.show));
5058
5060
  },
5059
5061
  makeInfo(t, e, r) {
5060
- var f, p, d, g, y, w;
5062
+ var f, p, d, m, y, w;
5061
5063
  const i = v({}, t.title), s = v({}, t.info), n = Yi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5062
5064
  title: (p = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : p.value,
5063
5065
  rule: r.rule,
5064
5066
  options: this.options
5065
- }) : ((g = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : g.value) + (o.labelSuffix || o["label-suffix"] || "")];
5067
+ }) : ((m = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : m.value) + (o.labelSuffix || o["label-suffix"] || "")];
5066
5068
  if (!Q(s.show) && (s.info || s.native) && !Q(s.icon)) {
5067
5069
  const F = {
5068
5070
  type: s.type || "popover",
@@ -5072,7 +5074,7 @@ const tn = {
5072
5074
  };
5073
5075
  delete F.props.icon, delete F.props.show, delete F.props.info, delete F.props.align, delete F.props.native;
5074
5076
  const G = "content";
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]), [
5077
+ s.info && !j(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]), [
5076
5078
  this.$r({
5077
5079
  type: "i",
5078
5080
  slot: n ? "default" : "reference",
@@ -5331,7 +5333,7 @@ function un(t) {
5331
5333
  function fn(t) {
5332
5334
  t.componentAlias(Zi), qr.forEach((e) => {
5333
5335
  t.component(e.name, e);
5334
- }), t.register(Wt), xi.forEach((e) => {
5336
+ }), t.register(Wt), Xi.forEach((e) => {
5335
5337
  t.parser(e);
5336
5338
  }), Object.keys(he).forEach((e) => {
5337
5339
  t.maker[e] = he[e];
@@ -5340,7 +5342,7 @@ function fn(t) {
5340
5342
  function cn() {
5341
5343
  return Kt({
5342
5344
  ui: "element-ui",
5343
- version: "2.7.10",
5345
+ version: "2.7.11",
5344
5346
  manager: tn,
5345
5347
  extendApi: ln,
5346
5348
  install: fn,