@form-create/element-ui 2.7.26 → 2.7.28

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.26
3
+ * @form-create/element-ui v2.7.28
4
4
  * (c) 2018-2026 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -11,7 +11,7 @@ var nr = Object.defineProperty, sr = Object.defineProperties;
11
11
  var or = Object.getOwnPropertyDescriptors;
12
12
  var at = Object.getOwnPropertySymbols;
13
13
  var ar = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
14
- var lt = (t, e, r) => e in t ? nr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, _ = (t, e) => {
14
+ var lt = (t, e, r) => e in t ? nr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
16
  ar.call(e, r) && lt(t, r, e[r]);
17
17
  if (at)
@@ -111,7 +111,7 @@ const Or = "fcCheckbox", Fr = {
111
111
  input: this.onInput
112
112
  }
113
113
  }]), [this.options().map((e, r) => {
114
- const i = _({}, e), s = this.type === "button" ? "ElCheckboxButton" : "ElCheckbox";
114
+ const i = v({}, e), s = this.type === "button" ? "ElCheckboxButton" : "ElCheckbox";
115
115
  return delete i.value, t(s, I([{}, {
116
116
  props: i
117
117
  }, {
@@ -123,11 +123,11 @@ const Or = "fcCheckbox", Fr = {
123
123
  this.$emit("fc.el", this.$refs.el);
124
124
  }
125
125
  };
126
- function G(t) {
126
+ function J(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
- const Er = "fcFrame", kr = {
130
- name: Er,
129
+ const kr = "fcFrame", Er = {
130
+ name: kr,
131
131
  props: {
132
132
  formCreateInject: {
133
133
  type: Object,
@@ -248,7 +248,7 @@ const Er = "fcFrame", kr = {
248
248
  },
249
249
  data() {
250
250
  return {
251
- fileList: G(this.value),
251
+ fileList: J(this.value),
252
252
  previewVisible: !1,
253
253
  frameVisible: !1,
254
254
  previewImage: ""
@@ -256,7 +256,7 @@ const Er = "fcFrame", kr = {
256
256
  },
257
257
  watch: {
258
258
  value(t) {
259
- this.fileList = G(t);
259
+ this.fileList = J(t);
260
260
  },
261
261
  fileList(t) {
262
262
  const e = this.maxLength === 1 ? t[0] || "" : t;
@@ -469,7 +469,7 @@ const Er = "fcFrame", kr = {
469
469
  src: this.previewImage
470
470
  }
471
471
  })]), t("el-dialog", I([{}, {
472
- props: q(_({
472
+ props: q(v({
473
473
  width: i,
474
474
  title: o,
475
475
  appendToBody: !0
@@ -550,7 +550,7 @@ const Er = "fcFrame", kr = {
550
550
  input: this.onInput
551
551
  }
552
552
  }]), [this.options().map((e, r) => {
553
- const i = _({}, e), s = this.type === "button" ? "ElRadioButton" : "ElRadio";
553
+ const i = v({}, e), s = this.type === "button" ? "ElRadioButton" : "ElRadio";
554
554
  return delete i.value, t(s, I([{}, {
555
555
  props: i
556
556
  }, {
@@ -666,7 +666,7 @@ const jr = "fcSelect", Dr = {
666
666
  t === "selected" ? e = this.$refs.tree.getCurrentKey() : e = this.$refs.tree.getCheckedKeys(), this.$emit("input", e);
667
667
  },
668
668
  setValue() {
669
- this.type.toLocaleLowerCase() === "selected" ? this.$refs.tree.setCurrentKey(this.value) : this.$refs.tree.setCheckedKeys(G(this.value));
669
+ this.type.toLocaleLowerCase() === "selected" ? this.$refs.tree.setCurrentKey(this.value) : this.$refs.tree.setCheckedKeys(J(this.value));
670
670
  }
671
671
  },
672
672
  render() {
@@ -692,7 +692,7 @@ function ft(t, e) {
692
692
  };
693
693
  }
694
694
  function ct(t) {
695
- return q(_({}, t), {
695
+ return q(v({}, t), {
696
696
  file: t,
697
697
  value: t
698
698
  });
@@ -750,11 +750,11 @@ const Pr = "fcUpload", Tr = {
750
750
  };
751
751
  },
752
752
  created() {
753
- this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = G(this.value).map(ft).map(ct);
753
+ this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = J(this.value).map(ft).map(ct);
754
754
  },
755
755
  watch: {
756
756
  value(t) {
757
- this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = G(t).map(ft).map(ct), this.uploadList = this.$refs.upload.uploadFiles);
757
+ this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = J(t).map(ft).map(ct), this.uploadList = this.$refs.upload.uploadFiles);
758
758
  },
759
759
  limit(t, e) {
760
760
  (e === 1 || t === 1) && this.update();
@@ -912,7 +912,7 @@ const Pr = "fcUpload", Tr = {
912
912
  }), this.$emit("fc.el", this.$refs.upload);
913
913
  }
914
914
  };
915
- function E(t, e, r) {
915
+ function k(t, e, r) {
916
916
  be.set(t, e, r);
917
917
  }
918
918
  function ie(t, e) {
@@ -926,19 +926,19 @@ function Fe(t, e = {}, r) {
926
926
  if ((i = Array.isArray(n)) || h.Object(n)) {
927
927
  let o = t[s] === void 0;
928
928
  if (i)
929
- i = !1, o && E(t, s, []);
929
+ i = !1, o && k(t, s, []);
930
930
  else if (n._clone && r !== void 0)
931
931
  if (r)
932
- n = n.getRule(), o && E(t, s, {});
932
+ n = n.getRule(), o && k(t, s, {});
933
933
  else {
934
- E(t, s, n._clone());
934
+ k(t, s, n._clone());
935
935
  continue;
936
936
  }
937
937
  else
938
- o && E(t, s, {});
938
+ o && k(t, s, {});
939
939
  t[s] = Fe(t[s], n, r);
940
940
  } else
941
- E(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
941
+ k(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
942
942
  }
943
943
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
944
944
  }
@@ -948,14 +948,14 @@ function Y(t) {
948
948
  const Br = Object.assign || function(t) {
949
949
  for (let e, r = 1; r < arguments.length; r++)
950
950
  for (let i in e = arguments[r], e)
951
- Object.prototype.hasOwnProperty.call(e, i) && E(t, i, e[i]);
951
+ Object.prototype.hasOwnProperty.call(e, i) && k(t, i, e[i]);
952
952
  return t;
953
953
  };
954
954
  function C() {
955
955
  return Br.apply(this, arguments);
956
956
  }
957
957
  function Ke(t) {
958
- return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : _({}, t);
958
+ return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
959
959
  }
960
960
  function se(t, e) {
961
961
  var r = null;
@@ -963,7 +963,7 @@ function se(t, e) {
963
963
  r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
964
964
  };
965
965
  }
966
- function kt(t) {
966
+ function Et(t) {
967
967
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
968
968
  }
969
969
  function Lr(t) {
@@ -1004,7 +1004,7 @@ function Oe(t, e) {
1004
1004
  function Le(t) {
1005
1005
  return new Function("return " + t)();
1006
1006
  }
1007
- function x(t, e) {
1007
+ function z(t, e) {
1008
1008
  if (t && h.String(t) && t.length > 4) {
1009
1009
  let r = t.trim(), i = !1;
1010
1010
  try {
@@ -1047,7 +1047,7 @@ err: ${s}`);
1047
1047
  }
1048
1048
  function St(t, e) {
1049
1049
  return JSON.parse(t, function(r, i) {
1050
- return h.Undef(i) || !i.indexOf ? i : x(i, e);
1050
+ return h.Undef(i) || !i.indexOf ? i : z(i, e);
1051
1051
  });
1052
1052
  }
1053
1053
  let qr = 0;
@@ -1058,8 +1058,8 @@ function Ie() {
1058
1058
  function oe(t, e, r) {
1059
1059
  let i = t, s;
1060
1060
  return (e || "").split(".").forEach((n) => {
1061
- s && ((!i[s] || typeof i[s] != "object") && E(i, s, {}), i = i[s]), s = n;
1062
- }), E(i, s, r), i;
1061
+ s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1062
+ }), k(i, s, r), i;
1063
1063
  }
1064
1064
  const Ur = "fcGroup", Hr = {
1065
1065
  name: Ur,
@@ -1196,7 +1196,7 @@ const Ur = "fcGroup", Hr = {
1196
1196
  if (i.filter((n) => r[n].$f).length !== i.length)
1197
1197
  return;
1198
1198
  const s = i.map((n) => {
1199
- const o = t === n ? e : _({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1199
+ const o = t === n ? e : v({}, this.cacheRule[n].$f.form), a = this.field ? h.Undef(o[this.field]) ? null : o[this.field] : o;
1200
1200
  return this.cache(n, a), a;
1201
1201
  });
1202
1202
  this.input(s);
@@ -1208,7 +1208,7 @@ const Ur = "fcGroup", Hr = {
1208
1208
  }), this.cacheValue[t] !== JSON.stringify(r ? e[r] : e) && (this.cache(t, e), i && i.coverValue(e || {}));
1209
1209
  },
1210
1210
  addRule(t, e) {
1211
- const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? _({}, this.options) : {
1211
+ const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? v({}, this.options) : {
1212
1212
  submitBtn: !1,
1213
1213
  resetBtn: !1
1214
1214
  };
@@ -1418,7 +1418,7 @@ const Ur = "fcGroup", Hr = {
1418
1418
  submitBtn: !1,
1419
1419
  resetBtn: !1
1420
1420
  };
1421
- t.formData = _({}, this.value || {}), this.cacheRule = {
1421
+ t.formData = v({}, this.value || {}), this.cacheRule = {
1422
1422
  rule: this.rule,
1423
1423
  options: t
1424
1424
  };
@@ -1457,7 +1457,7 @@ const Ur = "fcGroup", Hr = {
1457
1457
  }
1458
1458
  }, Kr = [
1459
1459
  Fr,
1460
- kr,
1460
+ Er,
1461
1461
  Sr,
1462
1462
  Dr,
1463
1463
  Ar,
@@ -1472,7 +1472,7 @@ const Ur = "fcGroup", Hr = {
1472
1472
  if (o.indexOf(u) > -1)
1473
1473
  a[u] = Q([l[u]], a[u]);
1474
1474
  else if (i.indexOf(u) > -1)
1475
- a[u] = _(_({}, a[u]), l[u]);
1475
+ a[u] = v(v({}, a[u]), l[u]);
1476
1476
  else if (s.indexOf(u) > -1) {
1477
1477
  const f = a[u] instanceof Array ? a[u] : [a[u]], d = l[u] instanceof Array ? l[u] : [l[u]];
1478
1478
  a[u] = [...f, ...d];
@@ -1489,7 +1489,7 @@ const Ur = "fcGroup", Hr = {
1489
1489
  else
1490
1490
  a[u] = l[u];
1491
1491
  else
1492
- i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = _({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? _({}, l[u]) : l[u] : a[u] = l[u];
1492
+ i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = v({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? v({}, l[u]) : l[u] : a[u] = l[u];
1493
1493
  return a;
1494
1494
  }, e);
1495
1495
  }, Wr = (t, e) => function() {
@@ -1531,10 +1531,10 @@ function Bt(t, e) {
1531
1531
  }
1532
1532
  }, r), {}));
1533
1533
  }
1534
- function Z(t) {
1534
+ function x(t) {
1535
1535
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1536
1536
  }
1537
- function O(t, e) {
1537
+ function F(t, e) {
1538
1538
  try {
1539
1539
  e = t();
1540
1540
  } catch (r) {
@@ -1544,7 +1544,7 @@ function O(t, e) {
1544
1544
  }
1545
1545
  function Xe(t, e) {
1546
1546
  let r = null;
1547
- return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Xe(i, e)) : r = t, r && e && G(r).forEach((i) => {
1547
+ return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Xe(i, e)) : r = t, r && e && J(r).forEach((i) => {
1548
1548
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1549
1549
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1550
1550
  });
@@ -1740,34 +1740,34 @@ function Zr(t, e, r) {
1740
1740
  unique: 1,
1741
1741
  renderRule: [...l.value || []],
1742
1742
  updateValue: JSON.stringify(u.value || {})
1743
- }), m = new t(n), $ = m.api(), v = d.value, F = () => {
1743
+ }), m = new t(n), $ = m.api(), _ = d.value, O = () => {
1744
1744
  if (o) {
1745
- const k = De(n, o);
1746
- if (k) {
1745
+ const E = De(n, o);
1746
+ if (E) {
1747
1747
  let S;
1748
- v ? (S = G(k.getSubForm()), S.push($)) : S = $, k.subForm(S);
1748
+ _ ? (S = J(E.getSubForm()), S.push($)) : S = $, E.subForm(S);
1749
1749
  }
1750
1750
  }
1751
- }, J = () => {
1752
- const k = De(n, o);
1753
- if (k)
1754
- if (v) {
1755
- const S = G(k.getSubForm()), M = S.indexOf($);
1756
- M > -1 && S.splice(M, 1);
1751
+ }, M = () => {
1752
+ const E = De(n, o);
1753
+ if (E)
1754
+ if (_) {
1755
+ const S = J(E.getSubForm()), U = S.indexOf($);
1756
+ U > -1 && S.splice(U, 1);
1757
1757
  } else
1758
- k.subForm();
1758
+ E.subForm();
1759
1759
  };
1760
1760
  let A = null;
1761
1761
  hr(() => {
1762
1762
  N(() => {
1763
- let k = "";
1763
+ let E = "";
1764
1764
  const S = s.option && s.option.globalClass || {};
1765
- Object.keys(S).forEach((M) => {
1765
+ Object.keys(S).forEach((U) => {
1766
1766
  let ge = "";
1767
- S[M].style && Object.keys(S[M].style).forEach((K) => {
1768
- ge += ve(K) + ":" + S[M].style[K] + ";";
1769
- }), S[M].content && (ge += S[M].content + ";"), ge && (k += `.${M}{${ge}}`);
1770
- }), s.option && s.option.style && (k += s.option.style), A || (A = document.createElement("style"), A.type = "text/css", document.head.appendChild(A)), A.innerHTML = k || "";
1767
+ S[U].style && Object.keys(S[U].style).forEach((K) => {
1768
+ ge += ve(K) + ":" + S[U].style[K] + ";";
1769
+ }), S[U].content && (ge += S[U].content + ";"), ge && (E += `.${U}{${ge}}`);
1770
+ }), s.option && s.option.style && (E += s.option.style), A || (A = document.createElement("style"), A.type = "text/css", document.head.appendChild(A)), A.innerHTML = E || "";
1771
1771
  }, () => {
1772
1772
  });
1773
1773
  });
@@ -1777,32 +1777,32 @@ function Zr(t, e, r) {
1777
1777
  m.bus.$emit("$loadData.$scopeForm");
1778
1778
  }, 100), Pe = se(() => {
1779
1779
  m.bus.$emit("$loadData.$form");
1780
- }, 100), me = (k) => {
1781
- m.bus.$emit("change-$form." + k);
1780
+ }, 100), me = (E) => {
1781
+ m.bus.$emit("change-$form." + E);
1782
1782
  };
1783
1783
  return dr(() => {
1784
1784
  o && ($.top.bus.$on("$loadData.$form", L), $.top.bus.$on("change", me)), $ !== $.scope && $.scope.bus.$on("$loadData.$scopeForm", pe), m.mounted();
1785
1785
  }), pr(() => {
1786
- o && ($.top.bus.$off("$loadData.$form", L), $.top.bus.$off("change", me)), $ !== $.scope && $.scope.bus.$off("$loadData.$scopeForm", pe), J(), p.destroyed = !0, m.unmount(), A && (A.parentNode || A.parentElement) && document.head.removeChild(A);
1786
+ o && ($.top.bus.$off("$loadData.$form", L), $.top.bus.$off("change", me)), $ !== $.scope && $.scope.bus.$off("$loadData.$scopeForm", pe), M(), p.destroyed = !0, m.unmount(), A && (A.parentNode || A.parentElement) && document.head.removeChild(A);
1787
1787
  }), mr(() => {
1788
1788
  m.updated();
1789
- }), N(f, (k) => {
1790
- k ? F() : J();
1789
+ }), N(f, (E) => {
1790
+ E ? O() : M();
1791
1791
  }, { immediate: !0 }), N(() => s.option, () => {
1792
1792
  m.initOptions(), $.refresh();
1793
- }, { deep: !0, flush: "sync" }), N(() => [...l.value], (k) => {
1794
- m.$handle.isBreakWatch() || k.length === p.renderRule.length && k.every((S) => p.renderRule.indexOf(S) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1793
+ }, { deep: !0, flush: "sync" }), N(() => [...l.value], (E) => {
1794
+ m.$handle.isBreakWatch() || E.length === p.renderRule.length && E.every((S) => p.renderRule.indexOf(S) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1795
1795
  }), N(() => [s.disabled, s.preview], () => {
1796
1796
  $.refresh();
1797
- }), N(u, (k) => {
1798
- Oe(k || {}) !== p.updateValue && ($.config.forceCoverValue ? $.coverValue(k || {}) : $.setValue(k || {}));
1797
+ }), N(u, (E) => {
1798
+ Oe(E || {}) !== p.updateValue && ($.config.forceCoverValue ? $.coverValue(E || {}) : $.setValue(E || {}));
1799
1799
  }, { deep: !0, flush: "post" }), N(() => s.index, () => {
1800
1800
  $.coverValue({}), m.$handle.updateAppendData(), P(() => {
1801
1801
  P(() => {
1802
1802
  $.clearValidateState();
1803
1803
  });
1804
1804
  });
1805
- }, { flush: "sync" }), q(_({
1805
+ }, { flush: "sync" }), q(v({
1806
1806
  fc: ye(m),
1807
1807
  parent: o && ye(o),
1808
1808
  top: ye(a),
@@ -1815,10 +1815,10 @@ function Zr(t, e, r) {
1815
1815
  renderRule() {
1816
1816
  p.renderRule = [...l.value || []];
1817
1817
  },
1818
- updateValue(k) {
1818
+ updateValue(E) {
1819
1819
  if (p.destroyed) return;
1820
- const S = Oe(k);
1821
- p.updateValue !== S && (p.updateValue = S, n.$emit("update:value", k), P(() => {
1820
+ const S = Oe(E);
1821
+ p.updateValue !== S && (p.updateValue = S, n.$emit("update:value", E), P(() => {
1822
1822
  Pe(), o ? f.value || pe() : (L(), pe());
1823
1823
  }));
1824
1824
  }
@@ -1855,7 +1855,7 @@ C(rt.prototype, {
1855
1855
  return this._data;
1856
1856
  },
1857
1857
  setProp(t, e) {
1858
- return E(this._data, t, e), this;
1858
+ return k(this._data, t, e), this;
1859
1859
  },
1860
1860
  _clone() {
1861
1861
  const t = new this.constructor();
@@ -1930,10 +1930,10 @@ function Ut(t) {
1930
1930
  }
1931
1931
  function yt(t, e, r) {
1932
1932
  return new Promise((i, s) => {
1933
- (e || Ut)(q(_({}, t), {
1933
+ (e || Ut)(q(v({}, t), {
1934
1934
  onSuccess(n) {
1935
1935
  let o = (l) => l;
1936
- const a = x(t.parse);
1936
+ const a = z(t.parse);
1937
1937
  h.Function(a) ? o = a : a && h.String(a) && (o = (l) => B(l, a)), Ae(o(n, t.targetRule, r)).then((l) => {
1938
1938
  i(l);
1939
1939
  });
@@ -1952,10 +1952,10 @@ function ti(t) {
1952
1952
  return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1953
1953
  }
1954
1954
  function r(n, o, a) {
1955
- h.Undef(n) ? n = Object.keys(_(_({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1955
+ h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1956
1956
  const u = t.fieldCtx[l] || t.nameCtx[l];
1957
1957
  u && u.forEach((f) => {
1958
- E(f.rule, o, a), t.$render.clearCache(f);
1958
+ k(f.rule, o, a), t.$render.clearCache(f);
1959
1959
  });
1960
1960
  });
1961
1961
  }
@@ -2025,7 +2025,7 @@ function ti(t) {
2025
2025
  }
2026
2026
  },
2027
2027
  get formulas() {
2028
- return _({}, t.fc.formulas);
2028
+ return v({}, t.fc.formulas);
2029
2029
  },
2030
2030
  formData(n) {
2031
2031
  if (n == null || typeof n == "boolean") {
@@ -2041,14 +2041,14 @@ function ti(t) {
2041
2041
  return o ? _e(o.rule.value) : t.options.appendValue !== !1 && j(t.appendData, n) ? _e(t.appendData[n]) : void 0;
2042
2042
  },
2043
2043
  coverValue(n) {
2044
- const o = _({}, n || {});
2044
+ const o = v({}, n || {});
2045
2045
  t.deferSyncValue(() => {
2046
2046
  t.appendData = {}, s.fields().forEach((a) => {
2047
2047
  const l = t.fieldCtx[a];
2048
2048
  if (l) {
2049
2049
  const u = j(n, a);
2050
2050
  l.forEach((f) => {
2051
- E(f.rule, "value", u ? n[a] : void 0);
2051
+ k(f.rule, "value", u ? n[a] : void 0);
2052
2052
  }), delete o[a];
2053
2053
  }
2054
2054
  }), C(t.appendData, o);
@@ -2061,7 +2061,7 @@ function ti(t) {
2061
2061
  const l = t.fieldCtx[a];
2062
2062
  if (!l) return t.appendData[a] = o[a];
2063
2063
  l.forEach((u) => {
2064
- E(u.rule, "value", o[a]);
2064
+ k(u.rule, "value", o[a]);
2065
2065
  });
2066
2066
  });
2067
2067
  }, !0);
@@ -2075,7 +2075,7 @@ function ti(t) {
2075
2075
  }, !0), o ? o.origin : void 0;
2076
2076
  },
2077
2077
  removeRule(n) {
2078
- const o = n && Z(n);
2078
+ const o = n && x(n);
2079
2079
  if (o)
2080
2080
  return o.rm(), o.origin;
2081
2081
  },
@@ -2125,7 +2125,7 @@ function ti(t) {
2125
2125
  disabled(n, o) {
2126
2126
  e(o).forEach((a) => {
2127
2127
  t.getCtxs(a).forEach((l) => {
2128
- E(l.rule.props, "disabled", !!n);
2128
+ k(l.rule.props, "disabled", !!n);
2129
2129
  });
2130
2130
  }), t.refresh();
2131
2131
  },
@@ -2164,7 +2164,7 @@ function ti(t) {
2164
2164
  n.forEach((a) => s.sync(a));
2165
2165
  return;
2166
2166
  }
2167
- let o = h.Object(n) ? Z(n) : t.getCtxs(n);
2167
+ let o = h.Object(n) ? x(n) : t.getCtxs(n);
2168
2168
  o && (o = Array.isArray(o) ? o : [o], o.forEach((a) => {
2169
2169
  if (!a.deleted) {
2170
2170
  const l = t.subForm[a.id];
@@ -2183,7 +2183,7 @@ function ti(t) {
2183
2183
  t.$manager.updateOptions(t.options), s.refresh();
2184
2184
  },
2185
2185
  hideForm: (n) => {
2186
- E(t.vm, "isShow", !n);
2186
+ k(t.vm, "isShow", !n);
2187
2187
  },
2188
2188
  changeStatus: () => t.changeStatus,
2189
2189
  clearChangeStatus: () => {
@@ -2242,7 +2242,7 @@ function ti(t) {
2242
2242
  },
2243
2243
  setEffect(n, o, a) {
2244
2244
  const l = t.getCtx(n);
2245
- l && o && (o[0] === "$" && (o = o.substr(1)), j(l.rule, "$" + o) && E(l.rule, "$" + o, a), j(l.rule, "effect") || E(l.rule, "effect", {}), E(l.rule.effect, o, a));
2245
+ 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));
2246
2246
  },
2247
2247
  clearEffectData(n, o) {
2248
2248
  const a = t.getCtx(n);
@@ -2270,7 +2270,7 @@ function ti(t) {
2270
2270
  s.clearValidateState(n);
2271
2271
  });
2272
2272
  });
2273
- }), n == null && (h.Function(t.options.onReset) && O(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2273
+ }), n == null && (h.Function(t.options.onReset) && F(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2274
2274
  },
2275
2275
  method(n, o) {
2276
2276
  const a = s.el(n);
@@ -2279,7 +2279,7 @@ function ti(t) {
2279
2279
  return (...l) => a[o](...l);
2280
2280
  },
2281
2281
  exec(n, o, ...a) {
2282
- return O(() => s.method(n, o)(...a));
2282
+ return F(() => s.method(n, o)(...a));
2283
2283
  },
2284
2284
  toJson(n) {
2285
2285
  return Oe(s.rule, n);
@@ -2303,7 +2303,7 @@ function ti(t) {
2303
2303
  focus(n) {
2304
2304
  const o = s.el(n);
2305
2305
  if (!o) return;
2306
- const a = (d) => !d || typeof d.focus != "function" ? !1 : (O(() => d.focus()), !0);
2306
+ const a = (d) => !d || typeof d.focus != "function" ? !1 : (F(() => d.focus()), !0);
2307
2307
  if (a(o)) return;
2308
2308
  const l = o.$el !== void 0 ? o.$el : o;
2309
2309
  if (a(l)) return;
@@ -2321,7 +2321,7 @@ function ti(t) {
2321
2321
  return o ? t.subForm[o.id] : void 0;
2322
2322
  },
2323
2323
  getChildrenRuleList(n) {
2324
- const o = typeof n == "object", a = o ? Z(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2324
+ const o = typeof n == "object", a = o ? x(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2325
2325
  if (!l)
2326
2326
  return [];
2327
2327
  const u = [];
@@ -2332,10 +2332,10 @@ function ti(t) {
2332
2332
  })(a ? a.loadChildrenPending() : l.children), u;
2333
2333
  },
2334
2334
  getParentRule(n) {
2335
- return (typeof n == "object" ? Z(n) : t.getCtx(n)).parent.rule;
2335
+ return (typeof n == "object" ? x(n) : t.getCtx(n)).parent.rule;
2336
2336
  },
2337
2337
  getParentSubRule(n) {
2338
- const a = typeof n == "object" ? Z(n) : t.getCtx(n);
2338
+ const a = typeof n == "object" ? x(n) : t.getCtx(n);
2339
2339
  if (a) {
2340
2340
  const l = a.getParentGroup();
2341
2341
  if (l)
@@ -2349,14 +2349,14 @@ function ti(t) {
2349
2349
  const l = s.getChildrenRuleList(n);
2350
2350
  t.deferSyncValue(() => {
2351
2351
  l.forEach((u) => {
2352
- j(o, u.field) ? E(u, "value", o[u.field]) : a && E(u, "value", void 0);
2352
+ j(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2353
2353
  });
2354
2354
  });
2355
2355
  },
2356
2356
  getGlobalEvent(n) {
2357
2357
  let o = s.options.globalEvent[n];
2358
2358
  if (o)
2359
- return typeof o == "object" && (o = o.handle), x(o);
2359
+ return typeof o == "object" && (o = o.handle), z(o);
2360
2360
  },
2361
2361
  getGlobalData(n) {
2362
2362
  return new Promise((o, a) => {
@@ -2380,18 +2380,18 @@ function ti(t) {
2380
2380
  s.setData("$var." + n, o);
2381
2381
  },
2382
2382
  renderRule(n, o, a) {
2383
- const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2383
+ const u = typeof n == "object" ? x(n) : t.getCtx(n);
2384
2384
  return u ? t.$render.createRuleVnode(u, o, a) : void 0;
2385
2385
  },
2386
2386
  renderChildren(n, o, a) {
2387
- const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2387
+ const u = typeof n == "object" ? x(n) : t.getCtx(n);
2388
2388
  return u ? t.$render.createChildrenVnodes(u, o, a) : void 0;
2389
2389
  },
2390
2390
  nextTick(n) {
2391
2391
  t.bus.$once("next-tick", n), t.refresh();
2392
2392
  },
2393
2393
  nextRefresh(n) {
2394
- t.nextRefresh(), n && O(n);
2394
+ t.nextRefresh(), n && F(n);
2395
2395
  },
2396
2396
  emit(n, ...o) {
2397
2397
  t.vm.$emit(n, ...o);
@@ -2406,13 +2406,13 @@ function ti(t) {
2406
2406
  },
2407
2407
  fetch(n) {
2408
2408
  return new Promise((o, a) => {
2409
- let l = _({}, n);
2409
+ let l = v({}, n);
2410
2410
  l = t.loadFetchVar(l);
2411
2411
  const u = (f) => {
2412
- O(() => l.onError && l.onError(f)), a(f);
2412
+ F(() => l.onError && l.onError(f)), a(f);
2413
2413
  };
2414
2414
  t.beforeFetch(l).then(() => yt(l, t.fc.create.fetch, s).then((f) => {
2415
- O(() => l.onSuccess && l.onSuccess(f)), o(f);
2415
+ F(() => l.onSuccess && l.onSuccess(f)), o(f);
2416
2416
  }).catch((f) => {
2417
2417
  u(f);
2418
2418
  })).catch((f) => {
@@ -2422,13 +2422,13 @@ function ti(t) {
2422
2422
  },
2423
2423
  watchFetch(n, o, a, l) {
2424
2424
  return t.fc.watchLoadData((u, f) => {
2425
- let d = _({}, n);
2425
+ let d = v({}, n);
2426
2426
  d = t.loadFetchVar(d, u);
2427
2427
  const p = (m) => {
2428
- O(() => d.onError && d.onError(m)), a && a(m);
2428
+ F(() => d.onError && d.onError(m)), a && a(m);
2429
2429
  };
2430
2430
  l && l(d, f) === !1 || t.beforeFetch(d).then(() => yt(d, t.fc.create.fetch, s).then((m) => {
2431
- O(() => d.onSuccess && d.onSuccess(m)), o && o(m, f);
2431
+ F(() => d.onSuccess && d.onSuccess(m)), o && o(m, f);
2432
2432
  }).catch((m) => {
2433
2433
  p(m);
2434
2434
  })).catch((m) => {
@@ -2494,7 +2494,7 @@ function ri(t) {
2494
2494
  }
2495
2495
  });
2496
2496
  }
2497
- function H(t) {
2497
+ function G(t) {
2498
2498
  const e = t.replace(/(-[a-z])/g, function(r) {
2499
2499
  return r.replace("-", "").toLocaleUpperCase();
2500
2500
  });
@@ -2574,7 +2574,7 @@ function ii(t) {
2574
2574
  return;
2575
2575
  }
2576
2576
  s = (...l) => {
2577
- var $;
2577
+ var $, _;
2578
2578
  const u = {
2579
2579
  rule: i,
2580
2580
  prop: n,
@@ -2583,23 +2583,23 @@ function ii(t) {
2583
2583
  model: n.model || {},
2584
2584
  slotValue: l
2585
2585
  };
2586
- l.length && i.slotUpdate && O(() => i.slotUpdate(u));
2586
+ l.length && i.slotUpdate && F(() => i.slotUpdate(u));
2587
2587
  let f = [];
2588
2588
  const d = e.loadChildrenPending();
2589
- e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach((v) => {
2589
+ e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach((O) => {
2590
2590
  f.push(this.renderRule({
2591
2591
  type: "template",
2592
- slot: v
2592
+ slot: O
2593
2593
  }, (() => {
2594
- if (h.Function(n.renderSlots[v]))
2595
- return O(() => n.renderSlots[v]());
2596
- const F = this.parseSide(n.renderSlots[v], e);
2597
- return this.renderRule(F);
2594
+ if (h.Function(n.renderSlots[O]))
2595
+ return F(() => n.renderSlots[O]());
2596
+ const M = this.parseSide(n.renderSlots[O], e);
2597
+ return this.renderRule(M);
2598
2598
  })()));
2599
2599
  });
2600
2600
  const p = this.getTypeSlot(e);
2601
2601
  let m;
2602
- return p ? (u.children = f, m = p(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.col) == null ? void 0 : $.show) === !0) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((v) => !v || !v.tag ? v : this.none(v)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2602
+ return p ? (u.children = f, m = p(u)) : m = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), m = this.renderSides(m, e), ($ = n.title) != null && $.show && (n.wrap = q(v({}, n.wrap || {}), { show: !0 }), n.native || (n.native = !1)), (!(!e.input && h.Undef(n.native)) || ((_ = n.col) == null ? void 0 : _.show) === !0) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((O) => !O || !O.tag ? O : this.none(O)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2603
2603
  }, this.setCache(e, s, r);
2604
2604
  }
2605
2605
  return (...s) => {
@@ -2641,7 +2641,7 @@ function ii(t) {
2641
2641
  },
2642
2642
  injectProp(e) {
2643
2643
  const r = this.vm;
2644
- r.ctxInject[e.id] || E(r.ctxInject, e.id, {
2644
+ r.ctxInject[e.id] || k(r.ctxInject, e.id, {
2645
2645
  api: this.$handle.api,
2646
2646
  form: this.fc.create,
2647
2647
  subForm: (n) => {
@@ -2666,19 +2666,19 @@ function ii(t) {
2666
2666
  preview: e.prop.preview,
2667
2667
  options: e.prop.options,
2668
2668
  prop: function() {
2669
- const n = _({}, e.prop);
2670
- return n.on = n.on ? _({}, n.on) : {}, delete n.model, n;
2669
+ const n = v({}, e.prop);
2670
+ return n.on = n.on ? v({}, n.on) : {}, delete n.model, n;
2671
2671
  }(),
2672
2672
  children: e.loadChildrenPending()
2673
2673
  };
2674
2674
  return Object.keys(s).forEach((n) => {
2675
- E(i, n, s[n]);
2675
+ k(i, n, s[n]);
2676
2676
  }), i;
2677
2677
  },
2678
2678
  ctxProp(e) {
2679
2679
  const { ref: r, key: i, rule: s } = e;
2680
2680
  this.$manager.mergeProp(e), e.parser.mergeProp(e);
2681
- const n = _({}, e.prop.on || {}), o = {};
2681
+ const n = v({}, e.prop.on || {}), o = {};
2682
2682
  Object.keys(n).forEach((l) => {
2683
2683
  if (l.indexOf("native.") === 0)
2684
2684
  o[l.replace("native.", "")] = n[l], delete n[l];
@@ -2778,16 +2778,16 @@ function ii(t) {
2778
2778
  if (i)
2779
2779
  s = e.type;
2780
2780
  else if (s = e.is, e.type) {
2781
- s = H(e.type);
2781
+ s = G(e.type);
2782
2782
  const a = this.vNode.aliasMap[s];
2783
- a && (s = H(a));
2783
+ a && (s = G(a));
2784
2784
  }
2785
2785
  if (!s) return;
2786
2786
  const n = Se();
2787
2787
  h.trueArray(e.children) && e.children.forEach((a) => {
2788
2788
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2789
2789
  });
2790
- const o = _({}, e);
2790
+ const o = v({}, e);
2791
2791
  return delete o.type, delete o.is, this.vNode.make(s, o, n.mergeBag(r).getSlots());
2792
2792
  }
2793
2793
  });
@@ -2832,7 +2832,7 @@ function si(t) {
2832
2832
  if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2833
2833
  return this.parseEventLst(e, r, i, !0);
2834
2834
  if (h.String(r)) {
2835
- const n = x(r);
2835
+ const n = z(r);
2836
2836
  if (n && r !== n)
2837
2837
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2838
2838
  }
@@ -2844,14 +2844,14 @@ function si(t) {
2844
2844
  let d, p = n || o || a;
2845
2845
  if (h.Object(f) && (d = f.inject, f = f.name, p = f.prefix || p), p) {
2846
2846
  r || (p = `native-${p}`);
2847
- const m = ve(`${p}-${f}`), $ = (...v) => {
2848
- this.vm.$emit(m, ...v), this.vm.$emit("emit-event", m, ...v), this.bus.$emit(m, ...v);
2847
+ const m = ve(`${p}-${f}`), $ = (..._) => {
2848
+ this.vm.$emit(m, ..._), this.vm.$emit("emit-event", m, ..._), this.bus.$emit(m, ..._);
2849
2849
  };
2850
2850
  if ($.__emit = !0, !d && l === !1)
2851
2851
  i[f] = $;
2852
2852
  else {
2853
- let v = d || l || this.options.injectEvent;
2854
- i[f] = h.Undef(v) ? $ : this.inject(s, $, v);
2853
+ let _ = d || l || this.options.injectEvent;
2854
+ i[f] = h.Undef(_) ? $ : this.inject(s, $, _);
2855
2855
  }
2856
2856
  }
2857
2857
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2906,7 +2906,7 @@ function si(t) {
2906
2906
  const f = u.split("||"), d = f[0].trim();
2907
2907
  if (d) {
2908
2908
  const p = (f[1] || "").trim(), m = Lt(d);
2909
- let $ = O(() => a(m));
2909
+ let $ = F(() => a(m));
2910
2910
  ($ == null || $ === "") && f.length > 1 && ($ = p), l = $, e = e.replaceAll(`{{${u}}}`, $ == null ? "" : $);
2911
2911
  }
2912
2912
  }), n.length === 1 && s === `{{${n[0]}}}`)
@@ -2994,7 +2994,7 @@ function Gt(t, e, r) {
2994
2994
  parent: null,
2995
2995
  group: e.subRule ? this : null,
2996
2996
  cacheConfig: null,
2997
- prop: _({}, e),
2997
+ prop: v({}, e),
2998
2998
  computed: {},
2999
2999
  payload: {},
3000
3000
  refRule: {},
@@ -3038,7 +3038,7 @@ C(Gt.prototype, {
3038
3038
  delete this.pending[e];
3039
3039
  let a = r;
3040
3040
  if (h.Function(r)) {
3041
- let l = O(() => r({
3041
+ let l = F(() => r({
3042
3042
  rule: this.rule,
3043
3043
  api: this.$api,
3044
3044
  update: (u) => {
@@ -3078,14 +3078,14 @@ C(Gt.prototype, {
3078
3078
  this.key = Ie(), t && this.parent && this.parent.updateKey(t);
3079
3079
  },
3080
3080
  updateType() {
3081
- this.originType = this.rule.type, this.type = H(this.rule.type), this.trueType = this.$handle.getType(this.originType);
3081
+ this.originType = this.rule.type, this.type = G(this.rule.type), this.trueType = this.$handle.getType(this.originType);
3082
3082
  },
3083
3083
  setParser(t) {
3084
3084
  this.parser = t, t.init(this);
3085
3085
  },
3086
3086
  initProp() {
3087
3087
  var e, r, i;
3088
- const t = _({}, this.rule);
3088
+ const t = v({}, this.rule);
3089
3089
  delete t.children, delete t.validate, this.prop = ee({}, [t, ...Object.keys(this.payload).map((s) => this.payload[s]), this.computed]), t.col && ((e = t.col) == null ? void 0 : e.show) !== !1 && (this.prop.col.show = !0), this.prop.validate = [...((i = (r = this.refRule) == null ? void 0 : r.__$validate) == null ? void 0 : i.value) || [], ...this.prop.validate || []];
3090
3090
  },
3091
3091
  initNone() {
@@ -3171,7 +3171,7 @@ function fi(t) {
3171
3171
  __origin__: ze(e, !0)
3172
3172
  }), ci(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3173
3173
  i && this.loadFn(i, r);
3174
- }), this.loadCtrl(r), r.update && (r.update = x(r.update)), r;
3174
+ }), this.loadCtrl(r), r.update && (r.update = z(r.update)), r;
3175
3175
  },
3176
3176
  loadFn(e, r) {
3177
3177
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -3180,7 +3180,7 @@ function fi(t) {
3180
3180
  },
3181
3181
  loadCtrl(e) {
3182
3182
  e.control && e.control.forEach((r) => {
3183
- r.handle && (r.handle = x(r.handle));
3183
+ r.handle && (r.handle = z(r.handle));
3184
3184
  });
3185
3185
  },
3186
3186
  syncProp(e) {
@@ -3234,18 +3234,18 @@ function fi(t) {
3234
3234
  if (f)
3235
3235
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3236
3236
  else {
3237
- const F = this.parseRule(o);
3238
- f = new Gt(this, F, m), this.bindParser(f);
3237
+ const O = this.parseRule(o);
3238
+ f = new Gt(this, O, m), this.bindParser(f);
3239
3239
  }
3240
- [!1, !0].forEach((F) => this.parseEmit(f, F)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !d && !p && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3240
+ [!1, !0].forEach((O) => this.parseEmit(f, O)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !d && !p && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3241
3241
  const $ = f.loadChildrenPending();
3242
3242
  if (f.parser.loadChildren === !1 || s($, f), !r) {
3243
- const F = i(a);
3244
- F > -1 || !a ? this.sort.splice(F + 1, 0, f.id) : this.sort.push(f.id);
3243
+ const O = i(a);
3244
+ O > -1 || !a ? this.sort.splice(O + 1, 0, f.id) : this.sort.push(f.id);
3245
3245
  }
3246
- const v = f.rule;
3247
- return f.updated || (f.updated = !0, h.Function(v.update) && this.bus.$once("load-end", () => {
3248
- this.refreshUpdate(f, v.value, "init");
3246
+ const _ = f.rule;
3247
+ return f.updated || (f.updated = !0, h.Function(_.update) && this.bus.$once("load-end", () => {
3248
+ this.refreshUpdate(f, _.value, "init");
3249
3249
  }), this.effect(f, "loaded")), this.refreshControl(f) && (this.cycleLoad = !0), f;
3250
3250
  }).filter((o) => !!o);
3251
3251
  r && (r.children = n);
@@ -3261,8 +3261,8 @@ function fi(t) {
3261
3261
  return (he[l.condition || "=="] || he["=="])(d, l.value);
3262
3262
  };
3263
3263
  if (!h.trueArray(l.rule)) continue;
3264
- const f = q(_({}, l), {
3265
- valid: O(() => u(e.rule.value, s)),
3264
+ const f = q(v({}, l), {
3265
+ valid: F(() => u(e.rule.value, s)),
3266
3266
  ctrl: di(e, l.rule),
3267
3267
  isHidden: h.String(l.rule[0])
3268
3268
  });
@@ -3279,27 +3279,27 @@ function fi(t) {
3279
3279
  children: u,
3280
3280
  valid: l
3281
3281
  }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3282
- $ === "disabled" || $ === "enabled" ? this.api.disabled(!l, u) : $ === "display" || $ === "show" ? this.api.display(l, u) : $ === "required" ? (u.forEach((v) => {
3283
- this.api.setEffect(v, "required", l);
3282
+ $ === "disabled" || $ === "enabled" ? this.api.disabled(!l, u) : $ === "display" || $ === "show" ? this.api.display(l, u) : $ === "required" ? (u.forEach((_) => {
3283
+ this.api.setEffect(_, "required", l);
3284
3284
  }), l || this.api.clearValidateState(u)) : $ === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3285
3285
  });
3286
3286
  return;
3287
3287
  }
3288
3288
  if (l) {
3289
3289
  o = !0;
3290
- const v = {
3290
+ const _ = {
3291
3291
  type: "fragment",
3292
3292
  native: !0,
3293
3293
  __ctrl: !0,
3294
3294
  children: u
3295
3295
  };
3296
- e.ctrlRule.push(v), this.bus.$once("load-start", () => {
3297
- f ? s.prepend(v, f, p) : d || p ? s.append(v, d || e.id, p) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, v);
3296
+ e.ctrlRule.push(_), this.bus.$once("load-start", () => {
3297
+ f ? s.prepend(_, f, p) : d || p ? s.append(_, d || e.id, p) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3298
3298
  });
3299
3299
  } else {
3300
3300
  e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3301
- const v = Z(m);
3302
- v && v.rm();
3301
+ const _ = x(m);
3302
+ _ && _.rm();
3303
3303
  }
3304
3304
  });
3305
3305
  }), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
@@ -3313,7 +3313,7 @@ function fi(t) {
3313
3313
  },
3314
3314
  _reloadRule(e) {
3315
3315
  e || (e = this.rules);
3316
- const r = _({}, this.ctxs);
3316
+ const r = v({}, this.ctxs);
3317
3317
  this.clearNextTick(), this.initData(e), this.fc.rules = e, this.deferSyncValue(() => {
3318
3318
  this.bus.$once("load-end", () => {
3319
3319
  Object.keys(r).filter((i) => this.ctxs[i] === void 0).forEach((i) => this.rmCtx(r[i])), this.$render.clearCacheAll();
@@ -3329,7 +3329,7 @@ function fi(t) {
3329
3329
  function ci(t) {
3330
3330
  const e = Nt();
3331
3331
  return Object.keys(e).forEach((r) => {
3332
- j(t, r) || E(t, r, e[r]);
3332
+ j(t, r) || k(t, r, e[r]);
3333
3333
  }), t;
3334
3334
  }
3335
3335
  function hi(t) {
@@ -3379,7 +3379,7 @@ function pi(t) {
3379
3379
  setFormData(e, r) {
3380
3380
  e.modelValue = r;
3381
3381
  const i = e.getParentGroup();
3382
- i && (this.subRuleData[i.id] || E(this.subRuleData, i.id, {}), E(this.subRuleData[i.id], e.field, e.rule.value)), E(this.formData, e.id, r);
3382
+ i && (this.subRuleData[i.id] || k(this.subRuleData, i.id, {}), k(this.subRuleData[i.id], e.field, e.rule.value)), k(this.formData, e.id, r);
3383
3383
  },
3384
3384
  rmSubRuleData(e) {
3385
3385
  const r = e.getParentGroup();
@@ -3405,7 +3405,7 @@ function pi(t) {
3405
3405
  this.subForm[e.id] = r;
3406
3406
  },
3407
3407
  deferSyncValue(e, r) {
3408
- this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), O(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
3408
+ this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), F(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
3409
3409
  },
3410
3410
  syncValue() {
3411
3411
  if (this.deferSyncFn)
@@ -3423,7 +3423,7 @@ function pi(t) {
3423
3423
  },
3424
3424
  refreshUpdate(e, r, i, s) {
3425
3425
  if (h.Function(e.rule.update)) {
3426
- const n = O(() => e.rule.update(r, e.origin, this.api, {
3426
+ const n = F(() => e.rule.update(r, e.origin, this.api, {
3427
3427
  origin: i || "change",
3428
3428
  linkField: s
3429
3429
  }));
@@ -3503,21 +3503,21 @@ function gi(t) {
3503
3503
  getParser(e) {
3504
3504
  const r = this.fc.parsers, i = this.fc.renderDriver;
3505
3505
  if (i) {
3506
- const s = i.parsers || {}, n = s[e.originType] || s[H(e.type)] || s[e.trueType];
3506
+ const s = i.parsers || {}, n = s[e.originType] || s[G(e.type)] || s[e.trueType];
3507
3507
  if (n)
3508
3508
  return n;
3509
3509
  }
3510
- return r[e.originType] || r[H(e.type)] || r[e.trueType] || we;
3510
+ return r[e.originType] || r[G(e.type)] || r[e.trueType] || we;
3511
3511
  },
3512
3512
  bindParser(e) {
3513
3513
  e.setParser(this.getParser(e));
3514
3514
  },
3515
3515
  getType(e) {
3516
- const r = this.fc.CreateNode.aliasMap, i = r[e] || r[H(e)] || e;
3517
- return H(i);
3516
+ const r = this.fc.CreateNode.aliasMap, i = r[e] || r[G(e)] || e;
3517
+ return G(i);
3518
3518
  },
3519
3519
  noWatch(e) {
3520
- this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
3520
+ this.noWatchFn || (this.noWatchFn = e), F(e), this.noWatchFn === e && (this.noWatchFn = null);
3521
3521
  },
3522
3522
  watchCtx(e) {
3523
3523
  if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && mi.indexOf(i) === -1).forEach((i) => {
@@ -3562,8 +3562,8 @@ function gi(t) {
3562
3562
  const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3563
3563
  return n ? this.api.t(n[1], { title: (a = (o = e.refRule) == null ? void 0 : o.__$title) == null ? void 0 : a.value }) : s;
3564
3564
  };
3565
- return G(e.rule.validate).map((s) => {
3566
- const n = _({}, s);
3565
+ return J(e.rule.validate).map((s) => {
3566
+ const n = v({}, s);
3567
3567
  if (n.message && (n.message = i(n.message)), h.Function(n.validator)) {
3568
3568
  const o = e;
3569
3569
  n.validator = function(...a) {
@@ -3578,7 +3578,7 @@ function gi(t) {
3578
3578
  }
3579
3579
  if (n.adapter) {
3580
3580
  if (typeof n.error == "object") {
3581
- const o = _({}, n.error);
3581
+ const o = v({}, n.error);
3582
3582
  Object.keys(o).forEach((a) => {
3583
3583
  o[a] = i(o[a]);
3584
3584
  }), n.error = o;
@@ -3615,7 +3615,7 @@ function gi(t) {
3615
3615
  },
3616
3616
  adapterValidate(e, r) {
3617
3617
  const i = (s, n) => {
3618
- if ((e.beforeValidate && O(() => e.beforeValidate({
3618
+ if ((e.beforeValidate && F(() => e.beforeValidate({
3619
3619
  value: s,
3620
3620
  api: this.api,
3621
3621
  validate: e,
@@ -3628,7 +3628,7 @@ function gi(t) {
3628
3628
  let l = "";
3629
3629
  typeof e.error == "object" && (l = e.error[a] || e.error.default), !l && typeof e.message == "string" && (l = e.message), l || (l = this.getValidateMessage(r, { key: a, rule: e[a] })), n(l);
3630
3630
  } else if (e.validator) {
3631
- const l = e.validator && O(() => e.validator(s, n));
3631
+ const l = e.validator && F(() => e.validator(s, n));
3632
3632
  l && h.Function(l.then) && l.then(() => n()).catch((u) => n(u));
3633
3633
  } else
3634
3634
  n();
@@ -3743,22 +3743,22 @@ function gi(t) {
3743
3743
  m = pt(d.field || "");
3744
3744
  else if (!d.mode)
3745
3745
  return !0;
3746
- let v = d.compare;
3747
- if (v && (v = pt(v || "")), d.mode ? p = n(d) : he[d.condition] ? h.Function(d.handler) ? p = O(() => d.handler(this.api, e.rule)) : p = O(() => new Function("$condition", "$variableVal", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${d.variable ? "$variableVal" : m}, ${v || "$val"}); }}}}`).call(this.api.form, he, $, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : p = !1, l && p)
3746
+ let _ = d.compare;
3747
+ if (_ && (_ = pt(_ || "")), d.mode ? p = n(d) : he[d.condition] ? h.Function(d.handler) ? p = F(() => d.handler(this.api, e.rule)) : p = F(() => new Function("$condition", "$variableVal", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${d.variable ? "$variableVal" : m}, ${_ || "$val"}); }}}}`).call(this.api.form, he, $, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : p = !1, l && p)
3748
3748
  return !0;
3749
3749
  l || (u = u && p);
3750
3750
  }
3751
3751
  return l ? !1 : u;
3752
3752
  };
3753
3753
  let o = n(r);
3754
- return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : Ce : r.linkageVariable ? o ? O(() => this.fc.getLoadData(r.linkageVariable), void 0) : Ce : o;
3754
+ return o = r.invert === !0 ? !o : o, r.linkage ? o ? F(() => this.computeValue(r.linkage, e, s), void 0) : Ce : r.linkageVariable ? o ? F(() => this.fc.getLoadData(r.linkageVariable), void 0) : Ce : o;
3755
3755
  } else if (h.Function(r))
3756
3756
  i = () => r(this.api.form, this.api, e.rule);
3757
3757
  else {
3758
3758
  const s = e.getParentGroup();
3759
3759
  i = () => this.computeValue(r, e, s);
3760
3760
  }
3761
- return O(i, void 0);
3761
+ return F(i, void 0);
3762
3762
  },
3763
3763
  computeValue(e, r, i) {
3764
3764
  const s = this, n = Object.keys(this.fc.formulas).reduce((o, a) => (o[a] = function(...l) {
@@ -3769,7 +3769,7 @@ function gi(t) {
3769
3769
  fc: s.fc
3770
3770
  }, ...l);
3771
3771
  }, o), {});
3772
- return O(() => new Function("$formulas", "$form", "$scope", "$group", "$rule", "$api", `with($form){with($scope){with(this){with($group){with($formulas){ return ${e} }}}}}`).call(this.api.form, n, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, i ? this.subRuleData[i.id] || {} : {}, r.rule, this.api));
3772
+ return F(() => new Function("$formulas", "$form", "$scope", "$group", "$rule", "$api", `with($form){with($scope){with(this){with($group){with($formulas){ return ${e} }}}}}`).call(this.api.form, n, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, i ? this.subRuleData[i.id] || {} : {}, r.rule, this.api));
3773
3773
  },
3774
3774
  updateChildren(e, r, i) {
3775
3775
  this.deferSyncValue(() => {
@@ -3814,10 +3814,10 @@ function yi(t) {
3814
3814
  this.fc.targetFormDriver(e, this.api, this.fc), this.vm.$emit(e, this.api), this.emitEvent(e, this.api);
3815
3815
  },
3816
3816
  emitEvent(e, ...r) {
3817
- const i = this.options[e] || this.options[H("on-" + e)];
3817
+ const i = this.options[e] || this.options[G("on-" + e)];
3818
3818
  if (i) {
3819
- const s = x(i);
3820
- h.Function(s) && O(() => s(...r));
3819
+ const s = z(i);
3820
+ h.Function(s) && F(() => s(...r));
3821
3821
  }
3822
3822
  this.bus.$emit(e, ...r);
3823
3823
  },
@@ -3825,7 +3825,7 @@ function yi(t) {
3825
3825
  var l, u, f, d;
3826
3826
  let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (p, m) => {
3827
3827
  p && (p = Array.isArray(p) ? p : [p], p.forEach(($) => {
3828
- O(() => $(q(_({
3828
+ F(() => $(q(v({
3829
3829
  args: Object.values(i || {})
3830
3830
  }, i || {}), {
3831
3831
  self: e.rule,
@@ -3905,7 +3905,7 @@ function $i(t) {
3905
3905
  },
3906
3906
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
3907
3907
  if (!s || ["fcFragment", "fragment"].indexOf(s) > -1) return;
3908
- const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), _({}, r.effect || {}));
3908
+ const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), v({}, r.effect || {}));
3909
3909
  Object.keys(l).forEach((u) => {
3910
3910
  const f = this.providers[u];
3911
3911
  if (!f || f.input && !i) return;
@@ -3916,7 +3916,7 @@ function $i(t) {
3916
3916
  d = s;
3917
3917
  else
3918
3918
  return;
3919
- const p = _({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3919
+ const p = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3920
3920
  e && (p.getProp = () => e.effectData(u), p.clearProp = () => e.clearEffectData(u), p.mergeProp = (m) => ee(p.getProp(), [m]), p.id = e.id), this.bus.$emit(`p:${u}:${d}:${f.input ? 1 : 0}`, o, [p, r, this.api]);
3921
3921
  });
3922
3922
  }
@@ -3934,7 +3934,7 @@ function vi(t) {
3934
3934
  return r.length ? r : !1;
3935
3935
  } else return h.String(e) ? [e] : !1;
3936
3936
  }
3937
- function z(t) {
3937
+ function X(t) {
3938
3938
  Bt(this, {
3939
3939
  options() {
3940
3940
  return t.options.value || {};
@@ -3970,11 +3970,11 @@ function z(t) {
3970
3970
  this.lifecycle("reload");
3971
3971
  }
3972
3972
  }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
3973
- const i = O(() => r(e, this));
3973
+ const i = F(() => r(e, this));
3974
3974
  return i && i !== e && C(e, i), e;
3975
3975
  }, ti(this));
3976
3976
  }
3977
- C(z.prototype, {
3977
+ C(X.prototype, {
3978
3978
  initData(t) {
3979
3979
  C(this, {
3980
3980
  ctxs: {},
@@ -3988,38 +3988,38 @@ C(z.prototype, {
3988
3988
  this.updateAppendData(), this.useProvider(), this.usePage(), this.loadRule(), this.$manager.__init(), this.lifecycle("created");
3989
3989
  },
3990
3990
  updateAppendData() {
3991
- this.appendData = _(_(_({}, this.options.formData || {}), this.fc.vm.$props.value || {}), this.appendData);
3991
+ this.appendData = v(v(v({}, this.options.formData || {}), this.fc.vm.$props.value || {}), this.appendData);
3992
3992
  },
3993
3993
  isBreakWatch() {
3994
3994
  return this.loading || this.noWatchFn || this.reloading;
3995
3995
  },
3996
3996
  globalBeforeFetch(t) {
3997
3997
  return new Promise((e, r) => {
3998
- const i = this.options.beforeFetch && O(() => this.options.beforeFetch(t, { api: this.api }));
3998
+ const i = this.options.beforeFetch && F(() => this.options.beforeFetch(t, { api: this.api }));
3999
3999
  i && h.Function(i.then) ? i.then(e).catch(r) : e();
4000
4000
  });
4001
4001
  },
4002
4002
  beforeFetch(t) {
4003
4003
  return new Promise((e, r) => {
4004
- const i = t && t.beforeFetch && O(() => t.beforeFetch(t, { api: this.api }));
4004
+ const i = t && t.beforeFetch && F(() => t.beforeFetch(t, { api: this.api }));
4005
4005
  i && h.Function(i.then) ? i.then(e).catch(r) : i === !1 ? r() : e();
4006
4006
  }).then(() => this.globalBeforeFetch(t));
4007
4007
  },
4008
4008
  beforeSubmit(t) {
4009
4009
  return new Promise((e, r) => {
4010
- const i = this.options.beforeSubmit && O(() => this.options.beforeSubmit(t, { api: this.api }));
4010
+ const i = this.options.beforeSubmit && F(() => this.options.beforeSubmit(t, { api: this.api }));
4011
4011
  i && h.Function(i.then) ? i.then(e).catch(r) : i === !1 ? r() : e();
4012
4012
  });
4013
4013
  }
4014
4014
  });
4015
- si(z);
4016
- oi(z);
4017
- li(z);
4018
- fi(z);
4019
- pi(z);
4020
- gi(z);
4021
- yi(z);
4022
- $i(z);
4015
+ si(X);
4016
+ oi(X);
4017
+ li(X);
4018
+ fi(X);
4019
+ pi(X);
4020
+ gi(X);
4021
+ yi(X);
4022
+ $i(X);
4023
4023
  const _i = "fcFragment", Ne = {
4024
4024
  name: _i,
4025
4025
  functional: !0,
@@ -4065,7 +4065,7 @@ function wi() {
4065
4065
  },
4066
4066
  use(r) {
4067
4067
  Object.keys(r).forEach((i) => {
4068
- const s = ve(i), n = kt(i).toLocaleLowerCase(), o = r[i];
4068
+ const s = ve(i), n = Et(i).toLocaleLowerCase(), o = r[i];
4069
4069
  e.alias(i, o), [i, s, n].forEach((a) => {
4070
4070
  e.prototype[a] = function(l, u) {
4071
4071
  return this.make(t[i] || a, l, u);
@@ -4147,7 +4147,7 @@ const Fi = function(t) {
4147
4147
  _fn: [],
4148
4148
  loaded(r, i, s) {
4149
4149
  this.deleted(r), P(() => {
4150
- let n = G(r.getValue());
4150
+ let n = J(r.getValue());
4151
4151
  const o = [];
4152
4152
  n.forEach((a) => {
4153
4153
  if (a && (a.attr || a.template)) {
@@ -4157,7 +4157,7 @@ const Fi = function(t) {
4157
4157
  let m;
4158
4158
  a.template ? m = t.$handle.loadStrVar(a.template, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null) : a.handler && h.Function(a.handler) ? m = a.handler(d, i, s) : m = t.$handle.loadStrVar(`{{${a.attr}}}`, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null), (m == null || m === "") && a.default != null && (m = a.default), a.copy !== !1 && (m = Y(m));
4159
4159
  const $ = a.modify ? i : r.getProp();
4160
- a.to === "child" ? $.children ? E($.children, 0, m) : E($, "children", [m]) : oe($, a.to || "options", m), s.sync(i);
4160
+ a.to === "child" ? $.children ? k($.children, 0, m) : k($, "children", [m]) : oe($, a.to || "options", m), s.sync(i);
4161
4161
  }, u = (d) => l(d);
4162
4162
  const f = t.watchLoadData(u);
4163
4163
  l = se(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
@@ -4172,7 +4172,7 @@ const Fi = function(t) {
4172
4172
  }
4173
4173
  };
4174
4174
  return e.watch = e.loaded, e;
4175
- }, Ei = function(t) {
4175
+ }, ki = function(t) {
4176
4176
  const e = {
4177
4177
  name: "t",
4178
4178
  _fn: [],
@@ -4186,8 +4186,8 @@ const Fi = function(t) {
4186
4186
  const u = typeof l == "object";
4187
4187
  let f = (m) => {
4188
4188
  let $ = t.t(u ? l.attr : l, u ? l.params : null, m);
4189
- const v = u && l.modify ? i : r.getProp();
4190
- a === "child" ? v.children ? E(v.children, 0, $) : E(v, "children", [$]) : oe(v, a, $), s.sync(i);
4189
+ const _ = u && l.modify ? i : r.getProp();
4190
+ a === "child" ? _.children ? k(_.children, 0, $) : k(_, "children", [$]) : oe(_, a, $), s.sync(i);
4191
4191
  }, d = (m) => f(m);
4192
4192
  const p = t.watchLoadData(d);
4193
4193
  f = se(f, l.wait || 300), l.watch !== !1 ? o.push(p) : p();
@@ -4209,9 +4209,9 @@ const Fi = function(t) {
4209
4209
  t.clearProp(), r.clearValidateState([e.field]);
4210
4210
  else {
4211
4211
  h.Object(i) || (i = { method: i });
4212
- const s = i.method, n = q(_({}, i), {
4212
+ const s = i.method, n = q(v({}, i), {
4213
4213
  validator(...o) {
4214
- const a = Z(e);
4214
+ const a = x(e);
4215
4215
  if (a)
4216
4216
  return r.exec(a.id, h.String(s) ? s : "formCreateValidate", ...o, {
4217
4217
  attr: t,
@@ -4226,7 +4226,7 @@ const Fi = function(t) {
4226
4226
  watch(...t) {
4227
4227
  Kt.load(...t);
4228
4228
  }
4229
- }, ki = function(t) {
4229
+ }, Ei = function(t) {
4230
4230
  function e(s) {
4231
4231
  return h.String(s) && (s = {
4232
4232
  action: s,
@@ -4237,24 +4237,13 @@ const Fi = function(t) {
4237
4237
  let a = s.value;
4238
4238
  i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
4239
4239
  const l = (d) => {
4240
- d === void 0 ? s.clearProp() : oe(s.getProp(), a.to || "options", d), o.sync(n);
4240
+ d === void 0 ? s.clearProp() : oe(s.getProp(), a.to || "options", d), d != null && a && a.key && t.$handle.options.globalData[a.key] && t.fetchCache.set(t.$handle.options.globalData[a.key], { status: !0, data: d }), o.sync(n);
4241
4241
  };
4242
4242
  if (!a || !a.action && !a.key) {
4243
4243
  l(void 0);
4244
4244
  return;
4245
4245
  }
4246
- if (a = Y(a), a.to || (a.to = "options"), a.key) {
4247
- const d = t.$handle.options.globalData[a.key];
4248
- if (!d) {
4249
- l(void 0);
4250
- return;
4251
- }
4252
- if (d.type === "static") {
4253
- l(d.data);
4254
- return;
4255
- } else
4256
- a = _(_({}, a), d);
4257
- }
4246
+ a = Y(a), a.to || (a.to = "options");
4258
4247
  const u = a.onError, f = () => {
4259
4248
  if (!s.getValue())
4260
4249
  return s.clearProp(), o.sync(n), !0;
@@ -4262,32 +4251,41 @@ const Fi = function(t) {
4262
4251
  i._fn[s.id] = t.watchLoadData(se((d, p) => {
4263
4252
  if (p && a.watch === !1)
4264
4253
  return i._fn[s.id]();
4265
- const m = t.$handle.loadFetchVar(Y(a), d, n), $ = q(_({
4254
+ if (a.key) {
4255
+ t.targetRule = n;
4256
+ const _ = d("$globalData." + a.key);
4257
+ if (delete t.targetRule, _) {
4258
+ if (f()) return;
4259
+ l(_);
4260
+ }
4261
+ return;
4262
+ }
4263
+ const m = t.$handle.loadFetchVar(Y(a), d, n), $ = q(v({
4266
4264
  headers: {}
4267
4265
  }, m), {
4268
- onSuccess(v, F) {
4266
+ onSuccess(_, O) {
4269
4267
  if (f()) return;
4270
- let J = (L) => F ? L : j(L, "data") ? L.data : L;
4271
- const A = x(m.parse);
4272
- h.Function(A) ? J = A : A && h.String(A) && (J = (L) => B(L, A)), Ae(J(v, n, o)).then((L) => {
4268
+ let M = (L) => O ? L : j(L, "data") ? L.data : L;
4269
+ const A = z(m.parse);
4270
+ h.Function(A) ? M = A : A && h.String(A) && (M = (L) => B(L, A)), Ae(M(_, n, o)).then((L) => {
4273
4271
  l(L);
4274
4272
  });
4275
4273
  },
4276
- onError(v) {
4277
- l(void 0), !f() && (u || ((F) => Ye(F.message || "fetch fail " + m.action)))(v, n, o);
4274
+ onError(_) {
4275
+ l(void 0), !f() && (u || ((O) => Ye(O.message || "fetch fail " + m.action)))(_, n, o);
4278
4276
  }
4279
4277
  });
4280
4278
  t.$handle.beforeFetch($, { rule: n, api: o }).then(() => {
4281
4279
  if (h.Function(m.action)) {
4282
- Ae(m.action(n, o)).then((v) => {
4283
- $.onSuccess(v, !0);
4284
- }).catch((v) => {
4285
- $.onError(v);
4280
+ Ae(m.action(n, o)).then((_) => {
4281
+ $.onSuccess(_, !0);
4282
+ }).catch((_) => {
4283
+ $.onError(_);
4286
4284
  });
4287
4285
  return;
4288
4286
  }
4289
- O(() => t.create.fetch($, { inject: s, rule: n, api: o }));
4290
- }).catch((v) => {
4287
+ F(() => t.create.fetch($, { inject: s, rule: n, api: o }));
4288
+ }).catch((_) => {
4291
4289
  });
4292
4290
  }, a.wait || 600));
4293
4291
  }
@@ -4306,9 +4304,9 @@ const Fi = function(t) {
4306
4304
  };
4307
4305
  return i;
4308
4306
  }, Ri = {
4309
- fetch: ki,
4307
+ fetch: Ei,
4310
4308
  loadData: Fi,
4311
- t: Ei,
4309
+ t: ki,
4312
4310
  componentValidate: Kt
4313
4311
  };
4314
4312
  function Si(t) {
@@ -4475,20 +4473,20 @@ function Ui(t) {
4475
4473
  At.push(...e), et.push(...r), tt.push(...i), Mt([...e, ...r, ...i]);
4476
4474
  }
4477
4475
  let Hi = 1;
4478
- const U = {}, _t = Symbol("defValue");
4476
+ const H = {}, _t = Symbol("defValue");
4479
4477
  function Wt(t) {
4480
4478
  const e = {
4481
4479
  [Ne.name]: Ne
4482
4480
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4483
4481
  t.extendApi
4484
- ], u = _({}, Ri), f = Yr();
4482
+ ], u = v({}, Ri), f = Yr();
4485
4483
  let d = { global: {} };
4486
4484
  const p = t.isMobile === !0, m = ne({
4487
4485
  $mobile: p
4488
- }), $ = wi(), v = {}, F = {};
4486
+ }), $ = wi(), _ = {}, O = {};
4489
4487
  Ui(t.attrs || {});
4490
- function J(c) {
4491
- const g = U[c];
4488
+ function M(c) {
4489
+ const g = H[c];
4492
4490
  if (Array.isArray(g))
4493
4491
  return g.map((y) => y.api());
4494
4492
  if (g)
@@ -4503,7 +4501,7 @@ function Wt(t) {
4503
4501
  }
4504
4502
  function pe() {
4505
4503
  const c = Me(...arguments);
4506
- c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(_({}, c.prop), {
4504
+ c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(v({}, c.prop), {
4507
4505
  name: c.id
4508
4506
  }));
4509
4507
  }
@@ -4514,27 +4512,27 @@ function Wt(t) {
4514
4512
  if (arguments.length === 0)
4515
4513
  return we;
4516
4514
  if (typeof c == "string" && arguments.length === 1)
4517
- return r[H(c)];
4515
+ return r[G(c)];
4518
4516
  const g = Me(...arguments);
4519
4517
  if (!g.id || !g.prop) return we;
4520
- const y = H(g.id), b = g.prop, w = b.merge === !0 ? r[y] : void 0;
4518
+ const y = G(g.id), b = g.prop, w = b.merge === !0 ? r[y] : void 0;
4521
4519
  r[y] = je(b, w || we), f[y] = T(y), b.maker && C(f, b.maker);
4522
4520
  }
4523
- function k(c, g) {
4521
+ function E(c, g) {
4524
4522
  let y;
4525
4523
  if (h.String(c)) {
4526
4524
  if (y = c, g === void 0)
4527
4525
  return ["form-create", "formcreate"].indexOf(y) > -1 ? S() : e[y];
4528
4526
  } else
4529
- y = H(c.name), g = c;
4527
+ y = G(c.name), g = c;
4530
4528
  if (!y || !g) return;
4531
- const b = H(y);
4529
+ const b = G(y);
4532
4530
  e[y] = g, e[b] = g, delete $.aliasMap[y], delete $.aliasMap[b], delete r[y], delete r[b], g.formCreateParser && me(y, g.formCreateParser);
4533
4531
  }
4534
4532
  function S() {
4535
4533
  return Zr(Be, e, i);
4536
4534
  }
4537
- function M() {
4535
+ function U() {
4538
4536
  return Ne;
4539
4537
  }
4540
4538
  function ge(c, g) {
@@ -4545,9 +4543,9 @@ function Wt(t) {
4545
4543
  const w = b.$refs.fc.formCreate;
4546
4544
  return w.$parent = y, Mi(w.options).appendChild(b.$el), w.api();
4547
4545
  }
4548
- je(K, F);
4546
+ je(K, O);
4549
4547
  function zt(c) {
4550
- let g = _({}, t);
4548
+ let g = v({}, t);
4551
4549
  return c ? g.inherit = {
4552
4550
  components: e,
4553
4551
  parsers: r,
@@ -4556,7 +4554,7 @@ function Wt(t) {
4556
4554
  providers: u,
4557
4555
  useApps: o,
4558
4556
  maker: f,
4559
- formulas: v,
4557
+ formulas: _,
4560
4558
  loadData: m
4561
4559
  } : delete g.inherit, Wt(g);
4562
4560
  }
@@ -4564,33 +4562,33 @@ function Wt(t) {
4564
4562
  s[c] = g;
4565
4563
  }
4566
4564
  function Zt(c, g) {
4567
- v[c] = g;
4565
+ _[c] = g;
4568
4566
  }
4569
4567
  function Qt(c, g) {
4570
4568
  const y = n[c] || {}, b = y.parsers || {};
4571
4569
  g.parsers && Object.keys(g.parsers).forEach((w) => {
4572
4570
  b[w] = je(g.parsers[w], we);
4573
- }), g.name = c, n[c] = q(_(_({}, y), g), { parsers: b });
4571
+ }), g.name = c, n[c] = q(v(v({}, y), g), { parsers: b });
4574
4572
  }
4575
- function Ee(c) {
4576
- c && Object.keys(U).forEach((g) => {
4577
- (Array.isArray(U[g]) ? U[g] : [U[g]]).forEach((b) => {
4573
+ function ke(c) {
4574
+ c && Object.keys(H).forEach((g) => {
4575
+ (Array.isArray(H[g]) ? H[g] : [H[g]]).forEach((b) => {
4578
4576
  b.bus.$emit("$loadData." + c);
4579
4577
  });
4580
4578
  });
4581
4579
  }
4582
4580
  function Te(c, g) {
4583
- oe(m, c, g), Ee(c);
4581
+ oe(m, c, g), ke(c);
4584
4582
  }
4585
- function ke(c, g) {
4586
- const y = (...b) => O(() => g(...b));
4583
+ function Ee(c, g) {
4584
+ const y = (...b) => F(() => g(...b));
4587
4585
  y._driver = !0, Te(c, y);
4588
4586
  }
4589
4587
  function st(c, g) {
4590
4588
  const y = (c || "").split(".");
4591
4589
  c = y.shift();
4592
4590
  const b = y.join(".");
4593
- if (j(m, c) || E(m, c, _t), m[c] !== _t) {
4591
+ if (j(m, c) || k(m, c, _t), m[c] !== _t) {
4594
4592
  let w = m[c];
4595
4593
  return w && w._driver ? w = w(b) : y.length && (w = B(w, y)), w == null || w === "" ? g : w;
4596
4594
  } else
@@ -4600,7 +4598,7 @@ function Wt(t) {
4600
4598
  l.push(c);
4601
4599
  }
4602
4600
  function er(c) {
4603
- delete m[c], Ee(c);
4601
+ delete m[c], ke(c);
4604
4602
  }
4605
4603
  function tr(c, g) {
4606
4604
  a.push({ name: c, callback: g });
@@ -4614,7 +4612,7 @@ function Wt(t) {
4614
4612
  parsers: r,
4615
4613
  providers: u,
4616
4614
  modelFields: s,
4617
- formulas: v,
4615
+ formulas: _,
4618
4616
  isMobile: p,
4619
4617
  rules: c.$props.rule,
4620
4618
  name: c.$props.name || Ie(),
@@ -4626,7 +4624,7 @@ function Wt(t) {
4626
4624
  get: null,
4627
4625
  drivers: n,
4628
4626
  renderDriver: null,
4629
- refreshData: Ee,
4627
+ refreshData: ke,
4630
4628
  loadData: m,
4631
4629
  CreateNode: $,
4632
4630
  bus: new Si(),
@@ -4641,7 +4639,7 @@ function Wt(t) {
4641
4639
  N(this.options, () => {
4642
4640
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4643
4641
  }, { deep: !0 });
4644
- }), C(c.$options.components, e), C(c.$options.directives, i), this.$handle = new z(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
4642
+ }), C(c.$options.components, e), C(c.$options.directives, i), this.$handle = new X(this), this.name && (this.inFor ? (H[this.name] || (H[this.name] = []), H[this.name].push(this)) : H[this.name] = this);
4645
4643
  }
4646
4644
  Be.isMobile = p, C(Be.prototype, {
4647
4645
  init() {
@@ -4651,7 +4649,7 @@ function Wt(t) {
4651
4649
  },
4652
4650
  targetFormDriver(c, ...g) {
4653
4651
  if (this.bus.$emit(c, ...g), this.renderDriver && this.renderDriver[c])
4654
- return O(() => this.renderDriver[c](...g));
4652
+ return F(() => this.renderDriver[c](...g));
4655
4653
  },
4656
4654
  t(c, g, y) {
4657
4655
  let b = y ? y("$t." + c) : this.globalLanguageDriver(c);
@@ -4705,7 +4703,7 @@ function Wt(t) {
4705
4703
  },
4706
4704
  globalLanguageDriver(c) {
4707
4705
  let g = this.vm.top.$props.t, y = this.vm.top.$props.locale, b;
4708
- if (g && (b = O(() => g(c))), b == null && y && typeof y == "object" && (b = B(y, c)), b == null) {
4706
+ if (g && (b = F(() => g(c))), b == null && y && typeof y == "object" && (b = B(y, c)), b == null) {
4709
4707
  const w = this.options.value.language || {}, V = this.getLocale();
4710
4708
  b = B(w[V] || {}, c), b == null && (b = B(Li[V] || {}, c));
4711
4709
  }
@@ -4715,7 +4713,7 @@ function Wt(t) {
4715
4713
  let g = c.split(".");
4716
4714
  const y = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[y];
4717
4715
  if (b) {
4718
- const w = h.Function(b) ? b : x(b.handle);
4716
+ const w = h.Function(b) ? b : z(b.handle);
4719
4717
  if (w) {
4720
4718
  let V = w((...R) => this.$handle.api.getData(...R), this.$handle.api);
4721
4719
  return B(V, g);
@@ -4760,7 +4758,7 @@ function Wt(t) {
4760
4758
  watchLoadData(c, g) {
4761
4759
  let y = {};
4762
4760
  const b = (R) => {
4763
- this.get || (this.get = w), O(() => {
4761
+ this.get || (this.get = w), F(() => {
4764
4762
  c(w, R);
4765
4763
  }), this.get === w && (this.get = void 0);
4766
4764
  }, w = (R, ae) => {
@@ -4793,7 +4791,7 @@ function Wt(t) {
4793
4791
  },
4794
4792
  initOptions() {
4795
4793
  this.options.value = {};
4796
- let c = _({
4794
+ let c = v({
4797
4795
  formData: {},
4798
4796
  submitBtn: {},
4799
4797
  resetBtn: {},
@@ -4806,7 +4804,7 @@ function Wt(t) {
4806
4804
  this.targetFormDriver("initOptions", c, { api: y, isSubForm: g }), this.updateOptions(c);
4807
4805
  },
4808
4806
  mergeOptions(c, g, y) {
4809
- return g = _({}, g || {}), y && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "beforeUnmount", "beforeSubmit", "onBeforeUnmount", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4807
+ return g = v({}, g || {}), y && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "beforeUnmount", "beforeSubmit", "onBeforeUnmount", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4810
4808
  delete g[b];
4811
4809
  }), g.global && (c.global = xr(c.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], c), c;
4812
4810
  },
@@ -4823,12 +4821,12 @@ function Wt(t) {
4823
4821
  this.$handle.mounted();
4824
4822
  },
4825
4823
  unmount() {
4826
- if (O(() => this.$handle.lifecycle("beforeUnmount")), this.name)
4824
+ if (F(() => this.$handle.lifecycle("beforeUnmount")), this.name)
4827
4825
  if (this.inFor) {
4828
- const c = U[this.name].indexOf(this);
4829
- U[this.name].splice(c, 1);
4826
+ const c = H[this.name].indexOf(this);
4827
+ H[this.name].splice(c, 1);
4830
4828
  } else
4831
- delete U[this.name];
4829
+ delete H[this.name];
4832
4830
  a.forEach((c) => {
4833
4831
  this.bus.$off(c.name, c.callback);
4834
4832
  }), this.tmpData = {}, this.unwatch.forEach((c) => c()), this.unwatch = [], this.$handle.reloadRule([]);
@@ -4844,18 +4842,18 @@ function Wt(t) {
4844
4842
  isMobile: p,
4845
4843
  extendApi: Yt,
4846
4844
  getData: st,
4847
- setDataDriver: ke,
4845
+ setDataDriver: Ee,
4848
4846
  setData: Te,
4849
4847
  removeData: er,
4850
- refreshData: Ee,
4848
+ refreshData: ke,
4851
4849
  maker: f,
4852
- component: k,
4850
+ component: E,
4853
4851
  directive: L,
4854
4852
  setModelField: Xt,
4855
4853
  setFormula: Zt,
4856
4854
  setDriver: Qt,
4857
4855
  register: pe,
4858
- $vnode: M,
4856
+ $vnode: U,
4859
4857
  parser: me,
4860
4858
  use: ge,
4861
4859
  factory: zt,
@@ -4865,11 +4863,11 @@ function Wt(t) {
4865
4863
  mergeRule: ee,
4866
4864
  fetch: Ut,
4867
4865
  $form: S,
4868
- parseFn: x,
4866
+ parseFn: z,
4869
4867
  parseJson: St,
4870
4868
  toJson: Oe,
4871
4869
  useApp: A,
4872
- getApi: J,
4870
+ getApi: M,
4873
4871
  on: tr
4874
4872
  });
4875
4873
  }
@@ -4877,7 +4875,7 @@ function Wt(t) {
4877
4875
  C(c, {
4878
4876
  create: K,
4879
4877
  install(g, y) {
4880
- d = _(_({}, d), y || {});
4878
+ d = v(v({}, d), y || {});
4881
4879
  const b = `_installedFormCreate${p ? "Mobile" : ""}_${t.ui}`;
4882
4880
  if (g[b] === !0) return;
4883
4881
  g[b] = !0;
@@ -4886,27 +4884,27 @@ function Wt(t) {
4886
4884
  };
4887
4885
  ot(w), g.prototype.$formCreate = w;
4888
4886
  const V = S();
4889
- g.component(V.name, V), g.component("FcFragment", M()), o.forEach((R) => {
4890
- O(() => R(c, g));
4887
+ g.component(V.name, V), g.component("FcFragment", U()), o.forEach((R) => {
4888
+ F(() => R(c, g));
4891
4889
  });
4892
4890
  }
4893
4891
  });
4894
4892
  }
4895
- if (ot(F), rr(F), ke("$cookie", Pi), ke("$localStorage", Ti), ke("$sessionStorage", Bi), $.use({ fragment: "fcFragment" }), t.install && K.use(t), me(Di), t.inherit) {
4893
+ if (ot(O), rr(O), Ee("$cookie", Pi), Ee("$localStorage", Ti), Ee("$sessionStorage", Bi), $.use({ fragment: "fcFragment" }), t.install && K.use(t), me(Di), t.inherit) {
4896
4894
  const c = t.inherit;
4897
- c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(m, c.loadData), c.formulas && C(v, c.formulas);
4895
+ c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(m, c.loadData), c.formulas && C(_, c.formulas);
4898
4896
  }
4899
4897
  const Re = S();
4900
- return je(Re, F), Object.defineProperties(Re, {
4898
+ return je(Re, O), Object.defineProperties(Re, {
4901
4899
  fetch: {
4902
4900
  get() {
4903
- return F.fetch;
4901
+ return O.fetch;
4904
4902
  },
4905
4903
  set(c) {
4906
- F.fetch = c;
4904
+ O.fetch = c;
4907
4905
  }
4908
4906
  }
4909
- }), Re.util = F, Re;
4907
+ }), Re.util = O, Re;
4910
4908
  }
4911
4909
  const Ct = {
4912
4910
  date: "yyyy-MM-dd",
@@ -4979,7 +4977,7 @@ const Ct = {
4979
4977
  }, Qi = "select", Yi = {
4980
4978
  name: Qi,
4981
4979
  toFormValue(t, e) {
4982
- return e.prop.props.multiple && !Array.isArray(t) ? G(t) : t;
4980
+ return e.prop.props.multiple && !Array.isArray(t) ? J(t) : t;
4983
4981
  }
4984
4982
  }, en = [
4985
4983
  Gi,
@@ -5064,14 +5062,14 @@ function nn(t) {
5064
5062
  function Ft(t, e) {
5065
5063
  j(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
5066
5064
  }
5067
- function X(t) {
5065
+ function Z(t) {
5068
5066
  return t === !1;
5069
5067
  }
5070
5068
  function sn(t, e) {
5071
5069
  j(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
5072
5070
  }
5073
5071
  function Ge(t) {
5074
- const e = _({}, t);
5072
+ const e = v({}, t);
5075
5073
  return delete e.children, e;
5076
5074
  }
5077
5075
  const on = {
@@ -5124,7 +5122,7 @@ const on = {
5124
5122
  update() {
5125
5123
  const t = this.options.form;
5126
5124
  this.rule = {
5127
- props: _({}, t),
5125
+ props: v({}, t),
5128
5126
  nativeOn: {
5129
5127
  submit: (e) => {
5130
5128
  e.preventDefault();
@@ -5141,14 +5139,14 @@ const on = {
5141
5139
  });
5142
5140
  },
5143
5141
  render(t) {
5144
- return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, X(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
5142
+ 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)]);
5145
5143
  },
5146
5144
  makeWrap(t, e) {
5147
5145
  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;
5148
5146
  delete r.wrap.class, delete r.wrap.title;
5149
- const f = (h.Undef(r.wrap.show) ? !t.input : X(r.wrap.show)) ? e : this.$r(Q([r.wrap, {
5150
- props: q(_({
5151
- labelWidth: o === void 0 ? o : kt(o),
5147
+ const f = (h.Undef(r.wrap.show) ? !t.input : Z(r.wrap.show)) ? e : this.$r(Q([r.wrap, {
5148
+ props: q(v({
5149
+ labelWidth: o === void 0 ? o : Et(o),
5152
5150
  label: n ? r.title.title : void 0
5153
5151
  }, Ge(r.wrap || {})), {
5154
5152
  prop: t.id,
@@ -5158,31 +5156,31 @@ const on = {
5158
5156
  key: `${i}fi`,
5159
5157
  ref: t.wrapRef,
5160
5158
  type: "formItem"
5161
- }]), _({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5162
- return a === !0 || X(l) || X(s.show) ? f : this.makeCol(r, i, [f]);
5159
+ }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5160
+ return a === !0 || Z(l) || Z(s.show) ? f : this.makeCol(r, i, [f]);
5163
5161
  },
5164
5162
  isTitle(t) {
5165
5163
  if (this.options.form.title === !1) return !1;
5166
5164
  const e = t.title;
5167
- return !(!e.title && !e.native || X(e.show));
5165
+ return !(!e.title && !e.native || Z(e.show));
5168
5166
  },
5169
5167
  makeInfo(t, e, r) {
5170
- var f, d, p, m, $, v;
5171
- const i = _({}, t.title), s = _({}, t.info), n = nn(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5168
+ var f, d, p, m, $, _;
5169
+ const i = v({}, t.title), s = v({}, t.info), n = nn(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5172
5170
  title: (d = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : d.value,
5173
5171
  rule: r.rule,
5174
5172
  options: this.options
5175
5173
  }) : ((m = (p = r.refRule) == null ? void 0 : p.__$title) == null ? void 0 : m.value) + (o.labelSuffix || o["label-suffix"] || "")];
5176
- if (!X(s.show) && (s.info || s.native) && !X(s.icon)) {
5177
- const F = {
5174
+ if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
5175
+ const O = {
5178
5176
  type: s.type || "popover",
5179
5177
  slot: "label",
5180
5178
  props: Ge(s),
5181
5179
  key: `${e}pop`
5182
5180
  };
5183
- delete F.props.icon, delete F.props.show, delete F.props.info, delete F.props.align, delete F.props.native;
5184
- const J = "content";
5185
- s.info && !j(F.props, J) && (F.props[J] = (v = ($ = r.refRule) == null ? void 0 : $.__$info) == null ? void 0 : v.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(Q([s, F]), [
5181
+ delete O.props.icon, delete O.props.show, delete O.props.info, delete O.props.align, delete O.props.native;
5182
+ const M = "content";
5183
+ s.info && !j(O.props, M) && (O.props[M] = (_ = ($ = r.refRule) == null ? void 0 : $.__$info) == null ? void 0 : _.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(Q([s, O]), [
5186
5184
  this.$r({
5187
5185
  type: "i",
5188
5186
  slot: n ? "default" : "reference",
@@ -5198,8 +5196,8 @@ const on = {
5198
5196
  slot: i.slot || "label",
5199
5197
  type: i.type || "span",
5200
5198
  on: {
5201
- click: (...F) => {
5202
- this.$handle.targetHook(r, "titleClick", { args: F });
5199
+ click: (...O) => {
5200
+ this.$handle.targetHook(r, "titleClick", { args: O });
5203
5201
  }
5204
5202
  }
5205
5203
  }]);
@@ -5225,7 +5223,7 @@ const on = {
5225
5223
  },
5226
5224
  makeFormBtn() {
5227
5225
  let t = [];
5228
- if (X(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), X(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5226
+ if (Z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), Z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5229
5227
  return;
5230
5228
  const e = this.$r({
5231
5229
  type: "formItem",
@@ -5240,7 +5238,7 @@ const on = {
5240
5238
  }, [e]);
5241
5239
  },
5242
5240
  makeResetBtn() {
5243
- const t = _({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5241
+ const t = v({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5244
5242
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
5245
5243
  type: "button",
5246
5244
  props: t,
@@ -5256,7 +5254,7 @@ const on = {
5256
5254
  }, [e]);
5257
5255
  },
5258
5256
  makeSubmitBtn() {
5259
- const t = _({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5257
+ const t = v({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5260
5258
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
5261
5259
  type: "button",
5262
5260
  props: t,
@@ -5311,7 +5309,7 @@ function cn(t) {
5311
5309
  };
5312
5310
  return Object.keys(e).reduce((r, i) => (r[i] = T("frame", (s) => s.props({ type: e[i][0], maxLength: e[i][1] })), r), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages, t;
5313
5311
  }
5314
- function Et(t, e) {
5312
+ function kt(t, e) {
5315
5313
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5316
5314
  }
5317
5315
  function hn(t, e) {
@@ -5338,18 +5336,18 @@ function hn(t, e) {
5338
5336
  },
5339
5337
  validateField(r, i) {
5340
5338
  return new Promise((s, n) => {
5341
- const o = e.getFieldCtx(r);
5342
- if (!o) {
5339
+ const a = typeof r == "object" ? x(r) : e.getCtx(r);
5340
+ if (!a) {
5343
5341
  s(null), i && i(null);
5344
5342
  return;
5345
5343
  }
5346
- const a = e.subForm[o.id], l = [e.$manager.validateField(o.id)];
5347
- G(a).filter((u) => !u.isScope).forEach((u) => {
5348
- l.push(u.validate());
5349
- }), Promise.all(l).then(() => {
5344
+ const l = e.subForm[a.id], u = [e.$manager.validateField(a.id)];
5345
+ J(l).filter((f) => !f.isScope).forEach((f) => {
5346
+ u.push(f.validate());
5347
+ }), Promise.all(u).then(() => {
5350
5348
  s(null), i && i(null);
5351
- }).catch((u) => {
5352
- n(u), i && i(u), e.vm.$emit("validate-field-fail", u, { field: r, api: t });
5349
+ }).catch((f) => {
5350
+ n(f), i && i(f), e.vm.$emit("validate-field-fail", f, { field: r, api: t });
5353
5351
  });
5354
5352
  });
5355
5353
  },
@@ -5404,11 +5402,11 @@ function hn(t, e) {
5404
5402
  }
5405
5403
  },
5406
5404
  submitBtnProps: (r = {}) => {
5407
- let i = Et(e.options.submitBtn, !0);
5405
+ let i = kt(e.options.submitBtn, !0);
5408
5406
  C(i, r), e.options.submitBtn = i, t.refreshOptions();
5409
5407
  },
5410
5408
  resetBtnProps: (r = {}) => {
5411
- let i = Et(e.options.resetBtn, !1);
5409
+ let i = kt(e.options.resetBtn, !1);
5412
5410
  C(i, r), e.options.resetBtn = i, t.refreshOptions();
5413
5411
  },
5414
5412
  submit(r, i) {
@@ -5416,11 +5414,11 @@ function hn(t, e) {
5416
5414
  (e.options.validateOnSubmit === !1 ? Promise.resolve() : t.validate()).then(() => {
5417
5415
  let a = t.formData();
5418
5416
  e.beforeSubmit(a).then(() => {
5419
- h.Function(r) && O(() => r(a, t)), h.Function(e.options.onSubmit) && O(() => e.options.onSubmit(a, t)), e.vm.$emit("submit", a, t), s(a);
5417
+ h.Function(r) && F(() => r(a, t)), h.Function(e.options.onSubmit) && F(() => e.options.onSubmit(a, t)), e.vm.$emit("submit", a, t), s(a);
5420
5418
  }).catch((l) => {
5421
5419
  });
5422
5420
  }).catch((...a) => {
5423
- h.Function(i) && O(() => i(t, ...a)), n(...a);
5421
+ h.Function(i) && F(() => i(t, ...a)), n(...a);
5424
5422
  });
5425
5423
  });
5426
5424
  }
@@ -5434,7 +5432,7 @@ const xt = {
5434
5432
  if (i.required === !1)
5435
5433
  t.clearProp(), r.clearValidateState([e.field]);
5436
5434
  else {
5437
- const n = _({
5435
+ const n = v({
5438
5436
  required: !0,
5439
5437
  validator(a, l, u) {
5440
5438
  o(), h.empty(l) ? u(n.message) : u();
@@ -5473,7 +5471,7 @@ function pn(t) {
5473
5471
  function mn() {
5474
5472
  return Wt({
5475
5473
  ui: "element-ui",
5476
- version: "2.7.26",
5474
+ version: "2.7.28",
5477
5475
  manager: on,
5478
5476
  extendApi: hn,
5479
5477
  install: pn,