@form-create/element-ui 2.7.23 → 2.7.25

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.23
3
+ * @form-create/element-ui v2.7.25
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, v = (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, _ = (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 = v({}, e), s = this.type === "button" ? "ElCheckboxButton" : "ElCheckbox";
114
+ const i = _({}, e), s = this.type === "button" ? "ElCheckboxButton" : "ElCheckbox";
115
115
  return delete i.value, t(s, I([{}, {
116
116
  props: i
117
117
  }, {
@@ -469,7 +469,7 @@ const kr = "fcFrame", Er = {
469
469
  src: this.previewImage
470
470
  }
471
471
  })]), t("el-dialog", I([{}, {
472
- props: q(v({
472
+ props: q(_({
473
473
  width: i,
474
474
  title: o,
475
475
  appendToBody: !0
@@ -550,7 +550,7 @@ const kr = "fcFrame", Er = {
550
550
  input: this.onInput
551
551
  }
552
552
  }]), [this.options().map((e, r) => {
553
- const i = v({}, e), s = this.type === "button" ? "ElRadioButton" : "ElRadio";
553
+ const i = _({}, e), s = this.type === "button" ? "ElRadioButton" : "ElRadio";
554
554
  return delete i.value, t(s, I([{}, {
555
555
  props: i
556
556
  }, {
@@ -692,7 +692,7 @@ function ft(t, e) {
692
692
  };
693
693
  }
694
694
  function ct(t) {
695
- return q(v({}, t), {
695
+ return q(_({}, t), {
696
696
  file: t,
697
697
  value: t
698
698
  });
@@ -942,7 +942,7 @@ function Fe(t, e = {}, r) {
942
942
  }
943
943
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
944
944
  }
945
- function K(t) {
945
+ function Y(t) {
946
946
  return Fe({}, { value: t }).value;
947
947
  }
948
948
  const Br = Object.assign || function(t) {
@@ -955,7 +955,7 @@ 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] : v({}, t);
958
+ return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : _({}, t);
959
959
  }
960
960
  function se(t, e) {
961
961
  var r = null;
@@ -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;
@@ -1149,7 +1149,7 @@ const Ur = "fcGroup", Hr = {
1149
1149
  const n = i.$f.formData();
1150
1150
  i.$f.once("reloading", () => {
1151
1151
  i.$f.setValue(n);
1152
- }), i.rule = K(t);
1152
+ }), i.rule = Y(t);
1153
1153
  }
1154
1154
  }
1155
1155
  });
@@ -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 : v({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1199
+ const o = t === n ? e : _({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1200
1200
  return this.cache(n, a), a;
1201
1201
  });
1202
1202
  this.input(s);
@@ -1208,13 +1208,13 @@ 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 ? v({}, this.options) : {
1211
+ const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? _({}, this.options) : {
1212
1212
  submitBtn: !1,
1213
1213
  resetBtn: !1
1214
1214
  };
1215
1215
  if (this.defaultValue) {
1216
1216
  i.formData || (i.formData = {});
1217
- const s = K(this.defaultValue);
1217
+ const s = Y(this.defaultValue);
1218
1218
  C(i.formData, this.field ? {
1219
1219
  [this.field]: s
1220
1220
  } : s);
@@ -1241,7 +1241,7 @@ const Ur = "fcGroup", Hr = {
1241
1241
  if (this.disabled || this.onBeforeAdd(this.value) === !1)
1242
1242
  return;
1243
1243
  const e = [...this.value];
1244
- e.push(this.defaultValue ? K(this.defaultValue) : this.field ? null : {}), this.input(e);
1244
+ e.push(this.defaultValue ? Y(this.defaultValue) : this.field ? null : {}), this.input(e);
1245
1245
  },
1246
1246
  del(t, e) {
1247
1247
  if (this.disabled)
@@ -1418,7 +1418,7 @@ const Ur = "fcGroup", Hr = {
1418
1418
  submitBtn: !1,
1419
1419
  resetBtn: !1
1420
1420
  };
1421
- t.formData = v({}, this.value || {}), this.cacheRule = {
1421
+ t.formData = _({}, this.value || {}), this.cacheRule = {
1422
1422
  rule: this.rule,
1423
1423
  options: t
1424
1424
  };
@@ -1464,15 +1464,15 @@ const Ur = "fcGroup", Hr = {
1464
1464
  Tr,
1465
1465
  Hr,
1466
1466
  Jr
1467
- ], jt = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style", "directives"], Vt = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
1467
+ ], jt = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style", "directives"], Vt = ["on", "nativeOn", "hook"], Q = (t, e = {}, r = {}) => {
1468
1468
  const i = [...jt, ...r.normal || []], s = [...Dt, ...r.array || []], n = [...Vt, ...r.functional || []], o = r.props || [];
1469
1469
  return t.reduce((a, l) => {
1470
1470
  for (const u in l)
1471
1471
  if (a[u])
1472
1472
  if (o.indexOf(u) > -1)
1473
- a[u] = Y([l[u]], a[u]);
1473
+ a[u] = Q([l[u]], a[u]);
1474
1474
  else if (i.indexOf(u) > -1)
1475
- a[u] = v(v({}, a[u]), l[u]);
1475
+ a[u] = _(_({}, a[u]), l[u]);
1476
1476
  else if (s.indexOf(u) > -1) {
1477
1477
  const f = a[u] instanceof Array ? a[u] : [a[u]], p = l[u] instanceof Array ? l[u] : [l[u]];
1478
1478
  a[u] = [...f, ...p];
@@ -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] = 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];
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];
1493
1493
  return a;
1494
1494
  }, e);
1495
1495
  }, Wr = (t, e) => function() {
@@ -1513,7 +1513,7 @@ function Tt(t, e) {
1513
1513
  return Fe([], [...t], e || !1);
1514
1514
  }
1515
1515
  function ee(t, e) {
1516
- return Y(Array.isArray(e) ? e : [e], t, { array: et, normal: tt }), t;
1516
+ return Q(Array.isArray(e) ? e : [e], t, { array: et, normal: tt }), t;
1517
1517
  }
1518
1518
  function ht(t) {
1519
1519
  const e = h.Function(t.getRule) ? t.getRule() : t;
@@ -1531,7 +1531,7 @@ function Bt(t, e) {
1531
1531
  }
1532
1532
  }, r), {}));
1533
1533
  }
1534
- function Q(t) {
1534
+ function Z(t) {
1535
1535
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1536
1536
  }
1537
1537
  function O(t, e) {
@@ -1740,19 +1740,19 @@ 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), y = m.api(), _ = p.value, F = () => {
1743
+ }), m = new t(n), $ = m.api(), v = p.value, F = () => {
1744
1744
  if (o) {
1745
1745
  const E = De(n, o);
1746
1746
  if (E) {
1747
1747
  let S;
1748
- _ ? (S = G(E.getSubForm()), S.push(y)) : S = y, E.subForm(S);
1748
+ v ? (S = G(E.getSubForm()), S.push($)) : S = $, E.subForm(S);
1749
1749
  }
1750
1750
  }
1751
1751
  }, J = () => {
1752
1752
  const E = De(n, o);
1753
1753
  if (E)
1754
- if (_) {
1755
- const S = G(E.getSubForm()), M = S.indexOf(y);
1754
+ if (v) {
1755
+ const S = G(E.getSubForm()), M = S.indexOf($);
1756
1756
  M > -1 && S.splice(M, 1);
1757
1757
  } else
1758
1758
  E.subForm();
@@ -1764,8 +1764,8 @@ function Zr(t, e, r) {
1764
1764
  const S = s.option && s.option.globalClass || {};
1765
1765
  Object.keys(S).forEach((M) => {
1766
1766
  let ge = "";
1767
- S[M].style && Object.keys(S[M].style).forEach((W) => {
1768
- ge += ve(W) + ":" + S[M].style[W] + ";";
1767
+ S[M].style && Object.keys(S[M].style).forEach((K) => {
1768
+ ge += ve(K) + ":" + S[M].style[K] + ";";
1769
1769
  }), S[M].content && (ge += S[M].content + ";"), ge && (E += `.${M}{${ge}}`);
1770
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
  }, () => {
@@ -1781,32 +1781,32 @@ function Zr(t, e, r) {
1781
1781
  m.bus.$emit("change-$form." + E);
1782
1782
  };
1783
1783
  return dr(() => {
1784
- o && (y.top.bus.$on("$loadData.$form", L), y.top.bus.$on("change", me)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", pe), m.mounted();
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 && (y.top.bus.$off("$loadData.$form", L), y.top.bus.$off("change", me)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", pe), J(), d.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), J(), d.destroyed = !0, m.unmount(), A && (A.parentNode || A.parentElement) && document.head.removeChild(A);
1787
1787
  }), mr(() => {
1788
1788
  m.updated();
1789
1789
  }), N(f, (E) => {
1790
1790
  E ? F() : J();
1791
1791
  }, { immediate: !0 }), N(() => s.option, () => {
1792
- m.initOptions(), y.refresh();
1792
+ m.initOptions(), $.refresh();
1793
1793
  }, { deep: !0, flush: "sync" }), N(() => [...l.value], (E) => {
1794
1794
  m.$handle.isBreakWatch() || E.length === d.renderRule.length && E.every((S) => d.renderRule.indexOf(S) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1795
1795
  }), N(() => [s.disabled, s.preview], () => {
1796
- y.refresh();
1796
+ $.refresh();
1797
1797
  }), N(u, (E) => {
1798
- Oe(E || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(E || {}) : y.setValue(E || {}));
1798
+ Oe(E || {}) !== d.updateValue && ($.config.forceCoverValue ? $.coverValue(E || {}) : $.setValue(E || {}));
1799
1799
  }, { deep: !0, flush: "post" }), N(() => s.index, () => {
1800
- y.coverValue({}), m.$handle.updateAppendData(), P(() => {
1800
+ $.coverValue({}), m.$handle.updateAppendData(), P(() => {
1801
1801
  P(() => {
1802
- y.clearValidateState();
1802
+ $.clearValidateState();
1803
1803
  });
1804
1804
  });
1805
- }, { flush: "sync" }), q(v({
1805
+ }, { flush: "sync" }), q(_({
1806
1806
  fc: ye(m),
1807
1807
  parent: o && ye(o),
1808
1808
  top: ye(a),
1809
- fapi: ye(y)
1809
+ fapi: ye($)
1810
1810
  }, ut(d)), {
1811
1811
  getGroupInject: () => De(n, o),
1812
1812
  refresh() {
@@ -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(v({}, t), {
1933
+ (e || Ut)(q(_({}, 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
  });
@@ -1945,14 +1945,14 @@ function yt(t, e, r) {
1945
1945
  });
1946
1946
  }
1947
1947
  function _e(t) {
1948
- return K(t);
1948
+ return Y(t);
1949
1949
  }
1950
1950
  function ti(t) {
1951
1951
  function e(n) {
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(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1955
+ h.Undef(n) ? n = Object.keys(_(_({}, 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
1958
  k(f.rule, o, a), t.$render.clearCache(f);
@@ -2025,7 +2025,7 @@ function ti(t) {
2025
2025
  }
2026
2026
  },
2027
2027
  get formulas() {
2028
- return v({}, t.fc.formulas);
2028
+ return _({}, t.fc.formulas);
2029
2029
  },
2030
2030
  formData(n) {
2031
2031
  if (n == null || typeof n == "boolean") {
@@ -2041,7 +2041,7 @@ 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 = v({}, n || {});
2044
+ const o = _({}, n || {});
2045
2045
  t.deferSyncValue(() => {
2046
2046
  t.appendData = {}, s.fields().forEach((a) => {
2047
2047
  const l = t.fieldCtx[a];
@@ -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 && Q(n);
2078
+ const o = n && Z(n);
2079
2079
  if (o)
2080
2080
  return o.rm(), o.origin;
2081
2081
  },
@@ -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) ? Q(n) : t.getCtxs(n);
2167
+ let o = h.Object(n) ? Z(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];
@@ -2301,7 +2301,7 @@ function ti(t) {
2301
2301
  return o ? t.subForm[o.id] : void 0;
2302
2302
  },
2303
2303
  getChildrenRuleList(n) {
2304
- const o = typeof n == "object", a = o ? Q(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2304
+ const o = typeof n == "object", a = o ? Z(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2305
2305
  if (!l)
2306
2306
  return [];
2307
2307
  const u = [];
@@ -2312,10 +2312,10 @@ function ti(t) {
2312
2312
  })(a ? a.loadChildrenPending() : l.children), u;
2313
2313
  },
2314
2314
  getParentRule(n) {
2315
- return (typeof n == "object" ? Q(n) : t.getCtx(n)).parent.rule;
2315
+ return (typeof n == "object" ? Z(n) : t.getCtx(n)).parent.rule;
2316
2316
  },
2317
2317
  getParentSubRule(n) {
2318
- const a = typeof n == "object" ? Q(n) : t.getCtx(n);
2318
+ const a = typeof n == "object" ? Z(n) : t.getCtx(n);
2319
2319
  if (a) {
2320
2320
  const l = a.getParentGroup();
2321
2321
  if (l)
@@ -2336,7 +2336,7 @@ function ti(t) {
2336
2336
  getGlobalEvent(n) {
2337
2337
  let o = s.options.globalEvent[n];
2338
2338
  if (o)
2339
- return typeof o == "object" && (o = o.handle), x(o);
2339
+ return typeof o == "object" && (o = o.handle), z(o);
2340
2340
  },
2341
2341
  getGlobalData(n) {
2342
2342
  return new Promise((o, a) => {
@@ -2360,11 +2360,11 @@ function ti(t) {
2360
2360
  s.setData("$var." + n, o);
2361
2361
  },
2362
2362
  renderRule(n, o, a) {
2363
- const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2363
+ const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2364
2364
  return u ? t.$render.createRuleVnode(u, o, a) : void 0;
2365
2365
  },
2366
2366
  renderChildren(n, o, a) {
2367
- const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2367
+ const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2368
2368
  return u ? t.$render.createChildrenVnodes(u, o, a) : void 0;
2369
2369
  },
2370
2370
  nextTick(n) {
@@ -2386,22 +2386,23 @@ function ti(t) {
2386
2386
  },
2387
2387
  fetch(n) {
2388
2388
  return new Promise((o, a) => {
2389
- n = K(n), n = t.loadFetchVar(n);
2390
- const l = (u) => {
2391
- O(() => n.onError && n.onError(u)), a(u);
2389
+ let l = _({}, n);
2390
+ l = t.loadFetchVar(l);
2391
+ const u = (f) => {
2392
+ O(() => l.onError && l.onError(f)), a(f);
2392
2393
  };
2393
- t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((u) => {
2394
- O(() => n.onSuccess && n.onSuccess(u)), o(u);
2395
- }).catch((u) => {
2396
- l(u);
2397
- })).catch((u) => {
2398
- l(u);
2394
+ t.beforeFetch(l).then(() => yt(l, t.fc.create.fetch, s).then((f) => {
2395
+ O(() => l.onSuccess && l.onSuccess(f)), o(f);
2396
+ }).catch((f) => {
2397
+ u(f);
2398
+ })).catch((f) => {
2399
+ u(f);
2399
2400
  });
2400
2401
  });
2401
2402
  },
2402
2403
  watchFetch(n, o, a, l) {
2403
2404
  return t.fc.watchLoadData((u, f) => {
2404
- let p = K(n);
2405
+ let p = _({}, n);
2405
2406
  p = t.loadFetchVar(p, u);
2406
2407
  const d = (m) => {
2407
2408
  O(() => p.onError && p.onError(m)), a && a(m);
@@ -2553,6 +2554,7 @@ function ii(t) {
2553
2554
  return;
2554
2555
  }
2555
2556
  s = (...l) => {
2557
+ var $;
2556
2558
  const u = {
2557
2559
  rule: i,
2558
2560
  prop: n,
@@ -2564,20 +2566,20 @@ function ii(t) {
2564
2566
  l.length && i.slotUpdate && O(() => i.slotUpdate(u));
2565
2567
  let f = [];
2566
2568
  const p = e.loadChildrenPending();
2567
- e.parser.renderChildren ? f = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(p, e)), Object.keys(n.renderSlots || {}).forEach((y) => {
2569
+ e.parser.renderChildren ? f = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(p, e)), Object.keys(n.renderSlots || {}).forEach((v) => {
2568
2570
  f.push(this.renderRule({
2569
2571
  type: "template",
2570
- slot: y
2572
+ slot: v
2571
2573
  }, (() => {
2572
- if (h.Function(n.renderSlots[y]))
2573
- return O(() => n.renderSlots[y]());
2574
- const _ = this.parseSide(n.renderSlots[y], e);
2575
- return this.renderRule(_);
2574
+ if (h.Function(n.renderSlots[v]))
2575
+ return O(() => n.renderSlots[v]());
2576
+ const F = this.parseSide(n.renderSlots[v], e);
2577
+ return this.renderRule(F);
2576
2578
  })()));
2577
2579
  });
2578
2580
  const d = this.getTypeSlot(e);
2579
2581
  let m;
2580
- 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.col.show !== !1) && 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;
2582
+ 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.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;
2581
2583
  }, this.setCache(e, s, r);
2582
2584
  }
2583
2585
  return (...s) => {
@@ -2644,8 +2646,8 @@ function ii(t) {
2644
2646
  preview: e.prop.preview,
2645
2647
  options: e.prop.options,
2646
2648
  prop: function() {
2647
- const n = v({}, e.prop);
2648
- return n.on = n.on ? v({}, n.on) : {}, delete n.model, n;
2649
+ const n = _({}, e.prop);
2650
+ return n.on = n.on ? _({}, n.on) : {}, delete n.model, n;
2649
2651
  }(),
2650
2652
  children: e.loadChildrenPending()
2651
2653
  };
@@ -2656,7 +2658,7 @@ function ii(t) {
2656
2658
  ctxProp(e) {
2657
2659
  const { ref: r, key: i, rule: s } = e;
2658
2660
  this.$manager.mergeProp(e), e.parser.mergeProp(e);
2659
- const n = v({}, e.prop.on || {}), o = {};
2661
+ const n = _({}, e.prop.on || {}), o = {};
2660
2662
  Object.keys(n).forEach((l) => {
2661
2663
  if (l.indexOf("native.") === 0)
2662
2664
  o[l.replace("native.", "")] = n[l], delete n[l];
@@ -2703,7 +2705,7 @@ function ii(t) {
2703
2705
  }
2704
2706
  });
2705
2707
  }
2706
- return Y(a, e.prop), e.prop;
2708
+ return Q(a, e.prop), e.prop;
2707
2709
  },
2708
2710
  onMounted(e) {
2709
2711
  e.el = this.vm.$refs[e.ref], e.el && ((e.el.$el || e.el).__rule__ = e.rule), e.parser.mounted(e), this.$handle.effect(e, "mounted"), this.$handle.targetHook(e, "mounted");
@@ -2765,7 +2767,7 @@ function ii(t) {
2765
2767
  h.trueArray(e.children) && e.children.forEach((a) => {
2766
2768
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2767
2769
  });
2768
- const o = v({}, e);
2770
+ const o = _({}, e);
2769
2771
  return delete o.type, delete o.is, this.vNode.make(s, o, n.mergeBag(r).getSlots());
2770
2772
  }
2771
2773
  });
@@ -2810,7 +2812,7 @@ function si(t) {
2810
2812
  if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2811
2813
  return this.parseEventLst(e, r, i, !0);
2812
2814
  if (h.String(r)) {
2813
- const n = x(r);
2815
+ const n = z(r);
2814
2816
  if (n && r !== n)
2815
2817
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2816
2818
  }
@@ -2822,14 +2824,14 @@ function si(t) {
2822
2824
  let p, d = n || o || a;
2823
2825
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2824
2826
  r || (d = `native-${d}`);
2825
- const m = ve(`${d}-${f}`), y = (..._) => {
2826
- this.vm.$emit(m, ..._), this.vm.$emit("emit-event", m, ..._), this.bus.$emit(m, ..._);
2827
+ const m = ve(`${d}-${f}`), $ = (...v) => {
2828
+ this.vm.$emit(m, ...v), this.vm.$emit("emit-event", m, ...v), this.bus.$emit(m, ...v);
2827
2829
  };
2828
- if (y.__emit = !0, !p && l === !1)
2829
- i[f] = y;
2830
+ if ($.__emit = !0, !p && l === !1)
2831
+ i[f] = $;
2830
2832
  else {
2831
- let _ = p || l || this.options.injectEvent;
2832
- i[f] = h.Undef(_) ? y : this.inject(s, y, _);
2833
+ let v = p || l || this.options.injectEvent;
2834
+ i[f] = h.Undef(v) ? $ : this.inject(s, $, v);
2833
2835
  }
2834
2836
  }
2835
2837
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2884,8 +2886,8 @@ function si(t) {
2884
2886
  const f = u.split("||"), p = f[0].trim();
2885
2887
  if (p) {
2886
2888
  const d = (f[1] || "").trim(), m = Lt(p);
2887
- let y = O(() => a(m));
2888
- (y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2889
+ let $ = O(() => a(m));
2890
+ ($ == null || $ === "") && f.length > 1 && ($ = d), l = $, e = e.replaceAll(`{{${u}}}`, $ == null ? "" : $);
2889
2891
  }
2890
2892
  }), n.length === 1 && s === `{{${n[0]}}}`)
2891
2893
  return l;
@@ -2894,7 +2896,7 @@ function si(t) {
2894
2896
  },
2895
2897
  loadFetchVar(e, r, i) {
2896
2898
  let s;
2897
- i && i.__fc__ && (s = i.__fc__.getParentGroup());
2899
+ i && i.__fc__ && (s = i.__fc__.getParentGroup()), !s && e.targetRule && e.targetRule.__fc__ && (s = e.targetRule.__fc__.getParentGroup());
2898
2900
  const n = (o) => this.loadStrVar(o, r, s ? { rule: i, value: this.subRuleData[s.id] || {} } : null);
2899
2901
  return e.action = n(e.action || ""), ["headers", "data", "query"].forEach((o) => {
2900
2902
  if (e[o]) {
@@ -2972,14 +2974,14 @@ function Gt(t, e, r) {
2972
2974
  parent: null,
2973
2975
  group: e.subRule ? this : null,
2974
2976
  cacheConfig: null,
2975
- prop: v({}, e),
2977
+ prop: _({}, e),
2976
2978
  computed: {},
2977
2979
  payload: {},
2978
2980
  refRule: {},
2979
2981
  input: s,
2980
2982
  el: void 0,
2981
2983
  exportEl: void 0,
2982
- defaultValue: s ? K(r) : void 0,
2984
+ defaultValue: s ? Y(r) : void 0,
2983
2985
  field: e.field || void 0
2984
2986
  }), this.updateKey(), ui(this), this.update(t, !0);
2985
2987
  }
@@ -3062,9 +3064,9 @@ C(Gt.prototype, {
3062
3064
  this.parser = t, t.init(this);
3063
3065
  },
3064
3066
  initProp() {
3065
- var e, r;
3066
- const t = v({}, this.rule);
3067
- delete t.children, delete t.validate, this.prop = ee({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
3067
+ var e, r, i;
3068
+ const t = _({}, this.rule);
3069
+ 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 || []];
3068
3070
  },
3069
3071
  initNone() {
3070
3072
  this.none = !(h.Undef(this.prop.display) || this.prop.display);
@@ -3149,7 +3151,7 @@ function fi(t) {
3149
3151
  __origin__: xe(e, !0)
3150
3152
  }), ci(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3151
3153
  i && this.loadFn(i, r);
3152
- }), this.loadCtrl(r), r.update && (r.update = x(r.update)), r;
3154
+ }), this.loadCtrl(r), r.update && (r.update = z(r.update)), r;
3153
3155
  },
3154
3156
  loadFn(e, r) {
3155
3157
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -3158,12 +3160,12 @@ function fi(t) {
3158
3160
  },
3159
3161
  loadCtrl(e) {
3160
3162
  e.control && e.control.forEach((r) => {
3161
- r.handle && (r.handle = x(r.handle));
3163
+ r.handle && (r.handle = z(r.handle));
3162
3164
  });
3163
3165
  },
3164
3166
  syncProp(e) {
3165
3167
  const r = e.rule;
3166
- h.trueArray(r.sync) && Y([{
3168
+ h.trueArray(r.sync) && Q([{
3167
3169
  on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
3168
3170
  r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
3169
3171
  }, i), {})
@@ -3216,14 +3218,14 @@ function fi(t) {
3216
3218
  f = new Gt(this, F, m), this.bindParser(f);
3217
3219
  }
3218
3220
  [!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");
3219
- const y = f.loadChildrenPending();
3220
- if (f.parser.loadChildren === !1 || s(y, f), !r) {
3221
+ const $ = f.loadChildrenPending();
3222
+ if (f.parser.loadChildren === !1 || s($, f), !r) {
3221
3223
  const F = i(a);
3222
3224
  F > -1 || !a ? this.sort.splice(F + 1, 0, f.id) : this.sort.push(f.id);
3223
3225
  }
3224
- const _ = f.rule;
3225
- return f.updated || (f.updated = !0, h.Function(_.update) && this.bus.$once("load-end", () => {
3226
- this.refreshUpdate(f, _.value, "init");
3226
+ const v = f.rule;
3227
+ return f.updated || (f.updated = !0, h.Function(v.update) && this.bus.$once("load-end", () => {
3228
+ this.refreshUpdate(f, v.value, "init");
3227
3229
  }), this.effect(f, "loaded")), this.refreshControl(f) && (this.cycleLoad = !0), f;
3228
3230
  }).filter((o) => !!o);
3229
3231
  r && (r.children = n);
@@ -3239,7 +3241,7 @@ function fi(t) {
3239
3241
  return (he[l.condition || "=="] || he["=="])(p, l.value);
3240
3242
  };
3241
3243
  if (!h.trueArray(l.rule)) continue;
3242
- const f = q(v({}, l), {
3244
+ const f = q(_({}, l), {
3243
3245
  valid: O(() => u(e.rule.value, s)),
3244
3246
  ctrl: di(e, l.rule),
3245
3247
  isHidden: h.String(l.rule[0])
@@ -3250,34 +3252,34 @@ function fi(t) {
3250
3252
  const n = [];
3251
3253
  let o = !1;
3252
3254
  return this.deferSyncValue(() => {
3253
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: m, method: y }) => {
3255
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: m, method: $ }) => {
3254
3256
  if (a) {
3255
3257
  l ? e.ctrlRule.push({
3256
3258
  __ctrl: !0,
3257
3259
  children: u,
3258
3260
  valid: l
3259
3261
  }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3260
- y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((_) => {
3261
- this.api.setEffect(_, "required", l);
3262
- }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3262
+ $ === "disabled" || $ === "enabled" ? this.api.disabled(!l, u) : $ === "display" || $ === "show" ? this.api.display(l, u) : $ === "required" ? (u.forEach((v) => {
3263
+ this.api.setEffect(v, "required", l);
3264
+ }), l || this.api.clearValidateState(u)) : $ === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3263
3265
  });
3264
3266
  return;
3265
3267
  }
3266
3268
  if (l) {
3267
3269
  o = !0;
3268
- const _ = {
3270
+ const v = {
3269
3271
  type: "fragment",
3270
3272
  native: !0,
3271
3273
  __ctrl: !0,
3272
3274
  children: u
3273
3275
  };
3274
- e.ctrlRule.push(_), this.bus.$once("load-start", () => {
3275
- f ? s.prepend(_, f, d) : p || d ? s.append(_, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3276
+ e.ctrlRule.push(v), this.bus.$once("load-start", () => {
3277
+ f ? s.prepend(v, f, d) : p || d ? s.append(v, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, v);
3276
3278
  });
3277
3279
  } else {
3278
3280
  e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3279
- const _ = Q(m);
3280
- _ && _.rm();
3281
+ const v = Z(m);
3282
+ v && v.rm();
3281
3283
  }
3282
3284
  });
3283
3285
  }), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
@@ -3291,7 +3293,7 @@ function fi(t) {
3291
3293
  },
3292
3294
  _reloadRule(e) {
3293
3295
  e || (e = this.rules);
3294
- const r = v({}, this.ctxs);
3296
+ const r = _({}, this.ctxs);
3295
3297
  this.clearNextTick(), this.initData(e), this.fc.rules = e, this.deferSyncValue(() => {
3296
3298
  this.bus.$once("load-end", () => {
3297
3299
  Object.keys(r).filter((i) => this.ctxs[i] === void 0).forEach((i) => this.rmCtx(r[i])), this.$render.clearCacheAll();
@@ -3541,7 +3543,7 @@ function gi(t) {
3541
3543
  return n ? this.api.t(n[1], { title: (a = (o = e.refRule) == null ? void 0 : o.__$title) == null ? void 0 : a.value }) : s;
3542
3544
  };
3543
3545
  return G(e.rule.validate).map((s) => {
3544
- const n = v({}, s);
3546
+ const n = _({}, s);
3545
3547
  if (n.message && (n.message = i(n.message)), h.Function(n.validator)) {
3546
3548
  const o = e;
3547
3549
  n.validator = function(...a) {
@@ -3556,7 +3558,7 @@ function gi(t) {
3556
3558
  }
3557
3559
  if (n.adapter) {
3558
3560
  if (typeof n.error == "object") {
3559
- const o = v({}, n.error);
3561
+ const o = _({}, n.error);
3560
3562
  Object.keys(o).forEach((a) => {
3561
3563
  o[a] = i(o[a]);
3562
3564
  }), n.error = o;
@@ -3634,7 +3636,7 @@ function gi(t) {
3634
3636
  case "len":
3635
3637
  case "maxLen":
3636
3638
  case "minLen":
3637
- const a = (y) => n === "len" ? y === o : n === "maxLen" ? y <= o : y >= o;
3639
+ const a = ($) => n === "len" ? $ === o : n === "maxLen" ? $ <= o : $ >= o;
3638
3640
  if (Array.isArray(r)) {
3639
3641
  if (!a(r.length))
3640
3642
  return n;
@@ -3676,7 +3678,7 @@ function gi(t) {
3676
3678
  return n;
3677
3679
  break;
3678
3680
  case "hasKeys":
3679
- if (typeof r != "object" || Array.isArray(o) && o.some((y) => !(y in r)))
3681
+ if (typeof r != "object" || Array.isArray(o) && o.some(($) => !($ in r)))
3680
3682
  return n;
3681
3683
  break;
3682
3684
  case "email":
@@ -3714,15 +3716,15 @@ function gi(t) {
3714
3716
  let u = !0;
3715
3717
  for (let f = 0; f < a.group.length; f++) {
3716
3718
  const p = a.group[f];
3717
- let d, m = null, y = null;
3719
+ let d, m = null, $ = null;
3718
3720
  if (p.variable)
3719
- y = this.fc.getLoadData(p.variable);
3721
+ $ = this.fc.getLoadData(p.variable);
3720
3722
  else if (p.field)
3721
3723
  m = pt(p.field || "");
3722
3724
  else if (!p.mode)
3723
3725
  return !0;
3724
- let _ = p.compare;
3725
- if (_ && (_ = pt(_ || "")), p.mode ? d = n(p) : he[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$variableVal", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${p.variable ? "$variableVal" : m}, ${_ || "$val"}); }}}}`).call(this.api.form, he, y, 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)
3726
+ let v = p.compare;
3727
+ if (v && (v = pt(v || "")), p.mode ? d = n(p) : he[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$variableVal", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${p.variable ? "$variableVal" : m}, ${v || "$val"}); }}}}`).call(this.api.form, he, $, 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)
3726
3728
  return !0;
3727
3729
  l || (u = u && d);
3728
3730
  }
@@ -3794,7 +3796,7 @@ function yi(t) {
3794
3796
  emitEvent(e, ...r) {
3795
3797
  const i = this.options[e] || this.options[H("on-" + e)];
3796
3798
  if (i) {
3797
- const s = x(i);
3799
+ const s = z(i);
3798
3800
  h.Function(s) && O(() => s(...r));
3799
3801
  }
3800
3802
  this.bus.$emit(e, ...r);
@@ -3802,8 +3804,8 @@ function yi(t) {
3802
3804
  targetHook(e, r, i) {
3803
3805
  var l, u, f, p;
3804
3806
  let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, m) => {
3805
- d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
3806
- O(() => y(q(v({
3807
+ d && (d = Array.isArray(d) ? d : [d], d.forEach(($) => {
3808
+ O(() => $(q(_({
3807
3809
  args: Object.values(i || {})
3808
3810
  }, i || {}), {
3809
3811
  self: e.rule,
@@ -3883,7 +3885,7 @@ function $i(t) {
3883
3885
  },
3884
3886
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
3885
3887
  if (!s || ["fcFragment", "fragment"].indexOf(s) > -1) return;
3886
- const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), v({}, r.effect || {}));
3888
+ const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), _({}, r.effect || {}));
3887
3889
  Object.keys(l).forEach((u) => {
3888
3890
  const f = this.providers[u];
3889
3891
  if (!f || f.input && !i) return;
@@ -3894,7 +3896,7 @@ function $i(t) {
3894
3896
  p = s;
3895
3897
  else
3896
3898
  return;
3897
- const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3899
+ const d = _({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3898
3900
  e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (m) => ee(d.getProp(), [m]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3899
3901
  });
3900
3902
  }
@@ -3912,7 +3914,7 @@ function vi(t) {
3912
3914
  return r.length ? r : !1;
3913
3915
  } else return h.String(e) ? [e] : !1;
3914
3916
  }
3915
- function X(t) {
3917
+ function x(t) {
3916
3918
  Bt(this, {
3917
3919
  options() {
3918
3920
  return t.options.value || {};
@@ -3952,7 +3954,7 @@ function X(t) {
3952
3954
  return i && i !== e && C(e, i), e;
3953
3955
  }, ti(this));
3954
3956
  }
3955
- C(X.prototype, {
3957
+ C(x.prototype, {
3956
3958
  initData(t) {
3957
3959
  C(this, {
3958
3960
  ctxs: {},
@@ -3966,7 +3968,7 @@ C(X.prototype, {
3966
3968
  this.updateAppendData(), this.useProvider(), this.usePage(), this.loadRule(), this.$manager.__init(), this.lifecycle("created");
3967
3969
  },
3968
3970
  updateAppendData() {
3969
- this.appendData = v(v(v({}, this.options.formData || {}), this.fc.vm.$props.value || {}), this.appendData);
3971
+ this.appendData = _(_(_({}, this.options.formData || {}), this.fc.vm.$props.value || {}), this.appendData);
3970
3972
  },
3971
3973
  isBreakWatch() {
3972
3974
  return this.loading || this.noWatchFn || this.reloading;
@@ -3990,14 +3992,14 @@ C(X.prototype, {
3990
3992
  });
3991
3993
  }
3992
3994
  });
3993
- si(X);
3994
- oi(X);
3995
- li(X);
3996
- fi(X);
3997
- pi(X);
3998
- gi(X);
3999
- yi(X);
4000
- $i(X);
3995
+ si(x);
3996
+ oi(x);
3997
+ li(x);
3998
+ fi(x);
3999
+ pi(x);
4000
+ gi(x);
4001
+ yi(x);
4002
+ $i(x);
4001
4003
  const _i = "fcFragment", Ne = {
4002
4004
  name: _i,
4003
4005
  functional: !0,
@@ -4099,7 +4101,7 @@ C(Jt.prototype, {
4099
4101
  return e(this.vm);
4100
4102
  },
4101
4103
  mergeOptions(t, e) {
4102
- return Y(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
4104
+ return Q(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
4103
4105
  },
4104
4106
  updateOptions(t) {
4105
4107
  this.$handle.fc.targetFormDriver("updateOptions", t, { handle: this.$handle, api: this.$handle.api }), this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
@@ -4133,9 +4135,9 @@ const Fi = function(t) {
4133
4135
  let d;
4134
4136
  i && i.__fc__ && (d = i.__fc__.getParentGroup());
4135
4137
  let m;
4136
- 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));
4137
- const y = a.modify ? i : r.getProp();
4138
- a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : oe(y, a.to || "options", m), s.sync(i);
4138
+ 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 = Y(m));
4139
+ const $ = a.modify ? i : r.getProp();
4140
+ a.to === "child" ? $.children ? k($.children, 0, m) : k($, "children", [m]) : oe($, a.to || "options", m), s.sync(i);
4139
4141
  }, u = (p) => l(p);
4140
4142
  const f = t.watchLoadData(u);
4141
4143
  l = se(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
@@ -4163,9 +4165,9 @@ const Fi = function(t) {
4163
4165
  if (l) {
4164
4166
  const u = typeof l == "object";
4165
4167
  let f = (m) => {
4166
- let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4167
- const _ = u && l.modify ? i : r.getProp();
4168
- a === "child" ? _.children ? k(_.children, 0, y) : k(_, "children", [y]) : oe(_, a, y), s.sync(i);
4168
+ let $ = t.t(u ? l.attr : l, u ? l.params : null, m);
4169
+ const v = u && l.modify ? i : r.getProp();
4170
+ a === "child" ? v.children ? k(v.children, 0, $) : k(v, "children", [$]) : oe(v, a, $), s.sync(i);
4169
4171
  }, p = (m) => f(m);
4170
4172
  const d = t.watchLoadData(p);
4171
4173
  f = se(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
@@ -4187,9 +4189,9 @@ const Fi = function(t) {
4187
4189
  t.clearProp(), r.clearValidateState([e.field]);
4188
4190
  else {
4189
4191
  h.Object(i) || (i = { method: i });
4190
- const s = i.method, n = q(v({}, i), {
4192
+ const s = i.method, n = q(_({}, i), {
4191
4193
  validator(...o) {
4192
- const a = Q(e);
4194
+ const a = Z(e);
4193
4195
  if (a)
4194
4196
  return r.exec(a.id, h.String(s) ? s : "formCreateValidate", ...o, {
4195
4197
  attr: t,
@@ -4221,7 +4223,7 @@ const Fi = function(t) {
4221
4223
  l(void 0);
4222
4224
  return;
4223
4225
  }
4224
- if (a = K(a), a.to || (a.to = "options"), a.key) {
4226
+ if (a = Y(a), a.to || (a.to = "options"), a.key) {
4225
4227
  const p = t.$handle.options.globalData[a.key];
4226
4228
  if (!p) {
4227
4229
  l(void 0);
@@ -4231,7 +4233,7 @@ const Fi = function(t) {
4231
4233
  l(p.data);
4232
4234
  return;
4233
4235
  } else
4234
- a = v(v({}, a), p);
4236
+ a = _(_({}, a), p);
4235
4237
  }
4236
4238
  const u = a.onError, f = () => {
4237
4239
  if (!s.getValue())
@@ -4240,32 +4242,32 @@ const Fi = function(t) {
4240
4242
  i._fn[s.id] = t.watchLoadData(se((p, d) => {
4241
4243
  if (d && a.watch === !1)
4242
4244
  return i._fn[s.id]();
4243
- const m = t.$handle.loadFetchVar(K(a), p, n), y = q(v({
4245
+ const m = t.$handle.loadFetchVar(Y(a), p, n), $ = q(_({
4244
4246
  headers: {}
4245
4247
  }, m), {
4246
- onSuccess(_, F) {
4248
+ onSuccess(v, F) {
4247
4249
  if (f()) return;
4248
4250
  let J = (L) => F ? L : j(L, "data") ? L.data : L;
4249
- const A = x(m.parse);
4250
- h.Function(A) ? J = A : A && h.String(A) && (J = (L) => B(L, A)), Ae(J(_, n, o)).then((L) => {
4251
+ const A = z(m.parse);
4252
+ h.Function(A) ? J = A : A && h.String(A) && (J = (L) => B(L, A)), Ae(J(v, n, o)).then((L) => {
4251
4253
  l(L);
4252
4254
  });
4253
4255
  },
4254
- onError(_) {
4255
- l(void 0), !f() && (u || ((F) => Ye(F.message || "fetch fail " + m.action)))(_, n, o);
4256
+ onError(v) {
4257
+ l(void 0), !f() && (u || ((F) => Ye(F.message || "fetch fail " + m.action)))(v, n, o);
4256
4258
  }
4257
4259
  });
4258
- t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4260
+ t.$handle.beforeFetch($, { rule: n, api: o }).then(() => {
4259
4261
  if (h.Function(m.action)) {
4260
- Ae(m.action(n, o)).then((_) => {
4261
- y.onSuccess(_, !0);
4262
- }).catch((_) => {
4263
- y.onError(_);
4262
+ Ae(m.action(n, o)).then((v) => {
4263
+ $.onSuccess(v, !0);
4264
+ }).catch((v) => {
4265
+ $.onError(v);
4264
4266
  });
4265
4267
  return;
4266
4268
  }
4267
- O(() => t.create.fetch(y, { inject: s, rule: n, api: o }));
4268
- }).catch((_) => {
4269
+ O(() => t.create.fetch($, { inject: s, rule: n, api: o }));
4270
+ }).catch((v) => {
4269
4271
  });
4270
4272
  }, a.wait || 600));
4271
4273
  }
@@ -4459,16 +4461,16 @@ function Wt(t) {
4459
4461
  [Ne.name]: Ne
4460
4462
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4461
4463
  t.extendApi
4462
- ], u = v({}, Ri), f = Yr();
4464
+ ], u = _({}, Ri), f = Yr();
4463
4465
  let p = { global: {} };
4464
4466
  const d = t.isMobile === !0, m = ne({
4465
4467
  $mobile: d
4466
- }), y = wi(), _ = {}, F = {};
4468
+ }), $ = wi(), v = {}, F = {};
4467
4469
  Ui(t.attrs || {});
4468
4470
  function J(c) {
4469
4471
  const g = U[c];
4470
4472
  if (Array.isArray(g))
4471
- return g.map(($) => $.api());
4473
+ return g.map((y) => y.api());
4472
4474
  if (g)
4473
4475
  return g.api();
4474
4476
  }
@@ -4481,12 +4483,12 @@ function Wt(t) {
4481
4483
  }
4482
4484
  function pe() {
4483
4485
  const c = Me(...arguments);
4484
- c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(v({}, c.prop), {
4486
+ c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(_({}, c.prop), {
4485
4487
  name: c.id
4486
4488
  }));
4487
4489
  }
4488
4490
  function Pe(c) {
4489
- y.use(c);
4491
+ $.use(c);
4490
4492
  }
4491
4493
  function me(c) {
4492
4494
  if (arguments.length === 0)
@@ -4495,19 +4497,19 @@ function Wt(t) {
4495
4497
  return r[H(c)];
4496
4498
  const g = Me(...arguments);
4497
4499
  if (!g.id || !g.prop) return we;
4498
- const $ = H(g.id), b = g.prop, w = b.merge === !0 ? r[$] : void 0;
4499
- r[$] = je(b, w || we), f[$] = T($), b.maker && C(f, b.maker);
4500
+ const y = H(g.id), b = g.prop, w = b.merge === !0 ? r[y] : void 0;
4501
+ r[y] = je(b, w || we), f[y] = T(y), b.maker && C(f, b.maker);
4500
4502
  }
4501
4503
  function E(c, g) {
4502
- let $;
4504
+ let y;
4503
4505
  if (h.String(c)) {
4504
- if ($ = c, g === void 0)
4505
- return ["form-create", "formcreate"].indexOf($) > -1 ? S() : e[$];
4506
+ if (y = c, g === void 0)
4507
+ return ["form-create", "formcreate"].indexOf(y) > -1 ? S() : e[y];
4506
4508
  } else
4507
- $ = H(c.name), g = c;
4508
- if (!$ || !g) return;
4509
- const b = H($);
4510
- e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && me($, g.formCreateParser);
4509
+ y = H(c.name), g = c;
4510
+ if (!y || !g) return;
4511
+ const b = H(y);
4512
+ e[y] = g, e[b] = g, delete $.aliasMap[y], delete $.aliasMap[b], delete r[y], delete r[b], g.formCreateParser && me(y, g.formCreateParser);
4511
4513
  }
4512
4514
  function S() {
4513
4515
  return Zr(Be, e, i);
@@ -4516,16 +4518,16 @@ function Wt(t) {
4516
4518
  return Ne;
4517
4519
  }
4518
4520
  function ge(c, g) {
4519
- return h.Function(c.install) ? c.install(W, g) : h.Function(c) && c(W, g), this;
4521
+ return h.Function(c.install) ? c.install(K, g) : h.Function(c) && c(K, g), this;
4520
4522
  }
4521
- function W(c, g, $) {
4523
+ function K(c, g, y) {
4522
4524
  let b = qi(c, g || {});
4523
4525
  const w = b.$refs.fc.formCreate;
4524
- return w.$parent = $, Mi(w.options).appendChild(b.$el), w.api();
4526
+ return w.$parent = y, Mi(w.options).appendChild(b.$el), w.api();
4525
4527
  }
4526
- je(W, F);
4528
+ je(K, F);
4527
4529
  function xt(c) {
4528
- let g = v({}, t);
4530
+ let g = _({}, t);
4529
4531
  return c ? g.inherit = {
4530
4532
  components: e,
4531
4533
  parsers: r,
@@ -4534,7 +4536,7 @@ function Wt(t) {
4534
4536
  providers: u,
4535
4537
  useApps: o,
4536
4538
  maker: f,
4537
- formulas: _,
4539
+ formulas: v,
4538
4540
  loadData: m
4539
4541
  } : delete g.inherit, Wt(g);
4540
4542
  }
@@ -4542,13 +4544,13 @@ function Wt(t) {
4542
4544
  s[c] = g;
4543
4545
  }
4544
4546
  function Zt(c, g) {
4545
- _[c] = g;
4547
+ v[c] = g;
4546
4548
  }
4547
4549
  function Qt(c, g) {
4548
- const $ = n[c] || {}, b = $.parsers || {};
4550
+ const y = n[c] || {}, b = y.parsers || {};
4549
4551
  g.parsers && Object.keys(g.parsers).forEach((w) => {
4550
4552
  b[w] = je(g.parsers[w], we);
4551
- }), g.name = c, n[c] = q(v(v({}, $), g), { parsers: b });
4553
+ }), g.name = c, n[c] = q(_(_({}, y), g), { parsers: b });
4552
4554
  }
4553
4555
  function ke(c) {
4554
4556
  c && Object.keys(U).forEach((g) => {
@@ -4561,16 +4563,16 @@ function Wt(t) {
4561
4563
  oe(m, c, g), ke(c);
4562
4564
  }
4563
4565
  function Ee(c, g) {
4564
- const $ = (...b) => O(() => g(...b));
4565
- $._driver = !0, Te(c, $);
4566
+ const y = (...b) => O(() => g(...b));
4567
+ y._driver = !0, Te(c, y);
4566
4568
  }
4567
4569
  function st(c, g) {
4568
- const $ = (c || "").split(".");
4569
- c = $.shift();
4570
- const b = $.join(".");
4570
+ const y = (c || "").split(".");
4571
+ c = y.shift();
4572
+ const b = y.join(".");
4571
4573
  if (j(m, c) || k(m, c, _t), m[c] !== _t) {
4572
4574
  let w = m[c];
4573
- return w && w._driver ? w = w(b) : $.length && (w = B(w, $)), w == null || w === "" ? g : w;
4575
+ return w && w._driver ? w = w(b) : y.length && (w = B(w, y)), w == null || w === "" ? g : w;
4574
4576
  } else
4575
4577
  return g;
4576
4578
  }
@@ -4586,13 +4588,13 @@ function Wt(t) {
4586
4588
  function Be(c) {
4587
4589
  C(this, {
4588
4590
  id: Hi++,
4589
- create: W,
4591
+ create: K,
4590
4592
  vm: c,
4591
4593
  manager: Oi(t.manager),
4592
4594
  parsers: r,
4593
4595
  providers: u,
4594
4596
  modelFields: s,
4595
- formulas: _,
4597
+ formulas: v,
4596
4598
  isMobile: d,
4597
4599
  rules: c.$props.rule,
4598
4600
  name: c.$props.name || Ie(),
@@ -4606,7 +4608,7 @@ function Wt(t) {
4606
4608
  renderDriver: null,
4607
4609
  refreshData: ke,
4608
4610
  loadData: m,
4609
- CreateNode: y,
4611
+ CreateNode: $,
4610
4612
  bus: new Si(),
4611
4613
  unwatch: [],
4612
4614
  options: gr({}),
@@ -4619,7 +4621,7 @@ function Wt(t) {
4619
4621
  N(this.options, () => {
4620
4622
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4621
4623
  }, { deep: !0 });
4622
- }), C(c.$options.components, e), C(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);
4624
+ }), C(c.$options.components, e), C(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);
4623
4625
  }
4624
4626
  Be.isMobile = d, C(Be.prototype, {
4625
4627
  init() {
@@ -4631,8 +4633,8 @@ function Wt(t) {
4631
4633
  if (this.bus.$emit(c, ...g), this.renderDriver && this.renderDriver[c])
4632
4634
  return O(() => this.renderDriver[c](...g));
4633
4635
  },
4634
- t(c, g, $) {
4635
- let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4636
+ t(c, g, y) {
4637
+ let b = y ? y("$t." + c) : this.globalLanguageDriver(c);
4636
4638
  return b == null && (b = ""), b && g && Object.keys(g).forEach((w) => {
4637
4639
  const V = new RegExp(`{${w}}`, "g");
4638
4640
  b = b.replace(V, g[w]);
@@ -4640,7 +4642,7 @@ function Wt(t) {
4640
4642
  },
4641
4643
  globalDataDriver(c) {
4642
4644
  let g = c.split(".");
4643
- const $ = g.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4645
+ const y = g.shift(), b = this.options.value.globalData && this.options.value.globalData[y];
4644
4646
  if (b) {
4645
4647
  if (b.type === "static")
4646
4648
  return B(b.data, g);
@@ -4655,18 +4657,18 @@ function Wt(t) {
4655
4657
  this.fetchCache.set(b, { status: !1 });
4656
4658
  const R = se(() => {
4657
4659
  te();
4658
- const z = this.fetchCache.get(b);
4659
- 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);
4660
- }, b.wait || 600), ae = (z) => {
4661
- this.fetchCache.set(b, { status: !0, data: z }), this.bus.$emit("$loadData.$globalData." + $);
4662
- }, le = (z, ue) => {
4660
+ const W = this.fetchCache.get(b);
4661
+ this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (W && (W.loading = !0, this.fetchCache.set(b, W)), this.bus.$emit("$loadData.$globalData." + y)) : this.fetchCache.delete(b);
4662
+ }, b.wait || 600), ae = (W) => {
4663
+ this.fetchCache.set(b, { status: !0, data: W }), this.bus.$emit("$loadData.$globalData." + y);
4664
+ }, le = (W, ue) => {
4663
4665
  if (ue && b.watch === !1)
4664
4666
  return te();
4665
4667
  if (ue) {
4666
4668
  R();
4667
4669
  return;
4668
4670
  }
4669
- const fe = this.$handle.loadFetchVar(Ke(b), z);
4671
+ const fe = this.$handle.loadFetchVar(Ke(b), W);
4670
4672
  fe.targetRule = this.targetRule, this.$handle.api.fetch(fe).then((re) => {
4671
4673
  ae(re);
4672
4674
  }).catch((re) => {
@@ -4682,8 +4684,8 @@ function Wt(t) {
4682
4684
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4683
4685
  },
4684
4686
  globalLanguageDriver(c) {
4685
- let g = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4686
- if (g && (b = O(() => g(c))), b == null && $ && typeof $ == "object" && (b = B($, c)), b == null) {
4687
+ let g = this.vm.top.$props.t, y = this.vm.top.$props.locale, b;
4688
+ if (g && (b = O(() => g(c))), b == null && y && typeof y == "object" && (b = B(y, c)), b == null) {
4687
4689
  const w = this.options.value.language || {}, V = this.getLocale();
4688
4690
  b = B(w[V] || {}, c), b == null && (b = B(Li[V] || {}, c));
4689
4691
  }
@@ -4691,69 +4693,69 @@ function Wt(t) {
4691
4693
  },
4692
4694
  globalVarDriver(c) {
4693
4695
  let g = c.split(".");
4694
- const $ = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4696
+ const y = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[y];
4695
4697
  if (b) {
4696
- const w = h.Function(b) ? b : x(b.handle);
4698
+ const w = h.Function(b) ? b : z(b.handle);
4697
4699
  if (w) {
4698
4700
  let V = w((...R) => this.$handle.api.getData(...R), this.$handle.api);
4699
4701
  return B(V, g);
4700
4702
  }
4701
4703
  }
4702
4704
  },
4703
- setData(c, g, $) {
4704
- $ ? Te(c, g) : (oe(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4705
+ setData(c, g, y) {
4706
+ y ? Te(c, g) : (oe(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4705
4707
  },
4706
4708
  getLoadData(c, g) {
4707
- let $ = null;
4709
+ let y = null;
4708
4710
  if (c != null) {
4709
4711
  let b = c.split(".");
4710
4712
  const w = b.shift();
4711
- if ($ = B(this.vm.top.fc.tmpData, c), $ != null)
4712
- return $;
4713
+ if (y = B(this.vm.top.fc.tmpData, c), y != null)
4714
+ return y;
4713
4715
  if (w === "$topForm")
4714
- $ = this.$handle.api.top.formData(!0);
4716
+ y = this.$handle.api.top.formData(!0);
4715
4717
  else if (w === "$scopeForm")
4716
- $ = this.$handle.api.scope.formData(!0);
4718
+ y = this.$handle.api.scope.formData(!0);
4717
4719
  else if (w === "$form")
4718
- $ = this.$handle.api.formData(!0);
4720
+ y = this.$handle.api.formData(!0);
4719
4721
  else if (w === "$options")
4720
- $ = this.options.value;
4722
+ y = this.options.value;
4721
4723
  else if (w === "$globalData")
4722
- $ = this.globalDataDriver(b.join(".")), b = [];
4724
+ y = this.globalDataDriver(b.join(".")), b = [];
4723
4725
  else if (w === "$var")
4724
- $ = this.globalVarDriver(b.join(".")), b = [];
4726
+ y = this.globalVarDriver(b.join(".")), b = [];
4725
4727
  else if (w === "$locale")
4726
- $ = this.getLocale(), b = [];
4728
+ y = this.getLocale(), b = [];
4727
4729
  else if (w === "$t")
4728
- $ = this.globalLanguageDriver(b.join(".")), b = [];
4730
+ y = this.globalLanguageDriver(b.join(".")), b = [];
4729
4731
  else {
4730
4732
  if (w === "$preview")
4731
4733
  return this.$handle.preview;
4732
- $ = st(c), b = [];
4734
+ y = st(c), b = [];
4733
4735
  }
4734
- $ && b.length && ($ = B($, b));
4736
+ y && b.length && (y = B(y, b));
4735
4737
  }
4736
- return $ == null || $ === "" ? g : $;
4738
+ return y == null || y === "" ? g : y;
4737
4739
  },
4738
4740
  watchLoadData(c, g) {
4739
- let $ = {};
4741
+ let y = {};
4740
4742
  const b = (R) => {
4741
4743
  this.get || (this.get = w), O(() => {
4742
4744
  c(w, R);
4743
4745
  }), this.get === w && (this.get = void 0);
4744
4746
  }, w = (R, ae) => {
4745
4747
  let le;
4746
- if (typeof R == "object" && (le = R.getValue, R = R.id), $[R])
4747
- return $[R].val;
4748
- const te = $e(() => le ? le() : this.getLoadData(R, ae)), z = R.split("."), ue = z.shift(), fe = z.shift() || "", re = se(() => {
4748
+ if (typeof R == "object" && (le = R.getValue, R = R.id), y[R])
4749
+ return y[R].val;
4750
+ const te = $e(() => le ? le() : this.getLoadData(R, ae)), W = R.split("."), ue = W.shift(), fe = W.shift() || "", re = se(() => {
4749
4751
  const ce = le ? le() : this.getLoadData(R, ae);
4750
- if ($[R])
4751
- ((ce instanceof Function || h.Object(ce) || Array.isArray(ce)) && ce === $[R].val || JSON.stringify(ce) !== JSON.stringify($[R].val)) && ($[R].val = ce, b(!0));
4752
+ if (y[R])
4753
+ ((ce instanceof Function || h.Object(ce) || Array.isArray(ce)) && ce === y[R].val || JSON.stringify(ce) !== JSON.stringify(y[R].val)) && (y[R].val = ce, b(!0));
4752
4754
  else return;
4753
4755
  }, g || 0), ir = N(te, (ce) => {
4754
4756
  re();
4755
4757
  });
4756
- return this.bus.$on("$loadData." + ue, re), fe && this.bus.$on("$loadData." + ue + "." + fe, re), $[R] = {
4758
+ return this.bus.$on("$loadData." + ue, re), fe && this.bus.$on("$loadData." + ue + "." + fe, re), y[R] = {
4757
4759
  fn: () => {
4758
4760
  this.bus.$off("$loadData." + ue, re), fe && this.bus.$off("$loadData." + ue + "." + fe, re), ir();
4759
4761
  },
@@ -4762,7 +4764,7 @@ function Wt(t) {
4762
4764
  };
4763
4765
  b(!1);
4764
4766
  const V = () => {
4765
- Object.keys($).forEach((R) => $[R].fn()), $ = {};
4767
+ Object.keys(y).forEach((R) => y[R].fn()), y = {};
4766
4768
  };
4767
4769
  return this.unwatch.push(V), V;
4768
4770
  },
@@ -4771,20 +4773,20 @@ function Wt(t) {
4771
4773
  },
4772
4774
  initOptions() {
4773
4775
  this.options.value = {};
4774
- let c = v({
4776
+ let c = _({
4775
4777
  formData: {},
4776
4778
  submitBtn: {},
4777
4779
  resetBtn: {},
4778
4780
  globalEvent: {},
4779
4781
  globalData: {}
4780
- }, K(p));
4782
+ }, Y(p));
4781
4783
  const g = this.isSub();
4782
4784
  g && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$props.option || {});
4783
- const $ = this.api();
4784
- this.targetFormDriver("initOptions", c, { api: $, isSubForm: g }), this.updateOptions(c);
4785
+ const y = this.api();
4786
+ this.targetFormDriver("initOptions", c, { api: y, isSubForm: g }), this.updateOptions(c);
4785
4787
  },
4786
- mergeOptions(c, g, $) {
4787
- return g = v({}, g || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4788
+ mergeOptions(c, g, y) {
4789
+ return g = _({}, g || {}), y && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "beforeUnmount", "onBeforeUnmount", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4788
4790
  delete g[b];
4789
4791
  }), g.global && (c.global = zr(c.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], c), c;
4790
4792
  },
@@ -4801,7 +4803,7 @@ function Wt(t) {
4801
4803
  this.$handle.mounted();
4802
4804
  },
4803
4805
  unmount() {
4804
- if (this.name)
4806
+ if (O(() => this.$handle.lifecycle("beforeUnmount")), this.name)
4805
4807
  if (this.inFor) {
4806
4808
  const c = U[this.name].indexOf(this);
4807
4809
  U[this.name].splice(c, 1);
@@ -4843,7 +4845,7 @@ function Wt(t) {
4843
4845
  mergeRule: ee,
4844
4846
  fetch: Ut,
4845
4847
  $form: S,
4846
- parseFn: x,
4848
+ parseFn: z,
4847
4849
  parseJson: St,
4848
4850
  toJson: Oe,
4849
4851
  useApp: A,
@@ -4853,14 +4855,14 @@ function Wt(t) {
4853
4855
  }
4854
4856
  function rr(c) {
4855
4857
  C(c, {
4856
- create: W,
4857
- install(g, $) {
4858
- p = v(v({}, p), $ || {});
4858
+ create: K,
4859
+ install(g, y) {
4860
+ p = _(_({}, p), y || {});
4859
4861
  const b = `_installedFormCreate${d ? "Mobile" : ""}_${t.ui}`;
4860
4862
  if (g[b] === !0) return;
4861
4863
  g[b] = !0;
4862
4864
  const w = function(R, ae = {}) {
4863
- return W(R, ae, this);
4865
+ return K(R, ae, this);
4864
4866
  };
4865
4867
  ot(w), g.prototype.$formCreate = w;
4866
4868
  const V = S();
@@ -4870,9 +4872,9 @@ function Wt(t) {
4870
4872
  }
4871
4873
  });
4872
4874
  }
4873
- if (ot(F), rr(F), Ee("$cookie", Pi), Ee("$localStorage", Ti), Ee("$sessionStorage", Bi), y.use({ fragment: "fcFragment" }), t.install && W.use(t), me(Di), t.inherit) {
4875
+ if (ot(F), rr(F), Ee("$cookie", Pi), Ee("$localStorage", Ti), Ee("$sessionStorage", Bi), $.use({ fragment: "fcFragment" }), t.install && K.use(t), me(Di), t.inherit) {
4874
4876
  const c = t.inherit;
4875
- 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);
4877
+ 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);
4876
4878
  }
4877
4879
  const Re = S();
4878
4880
  return je(Re, F), Object.defineProperties(Re, {
@@ -5042,14 +5044,14 @@ function nn(t) {
5042
5044
  function Ft(t, e) {
5043
5045
  j(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
5044
5046
  }
5045
- function Z(t) {
5047
+ function X(t) {
5046
5048
  return t === !1;
5047
5049
  }
5048
5050
  function sn(t, e) {
5049
5051
  j(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
5050
5052
  }
5051
5053
  function Ge(t) {
5052
- const e = v({}, t);
5054
+ const e = _({}, t);
5053
5055
  return delete e.children, e;
5054
5056
  }
5055
5057
  const on = {
@@ -5093,7 +5095,7 @@ const on = {
5093
5095
  wrap: {}
5094
5096
  };
5095
5097
  ["info", "wrap", "col", "title"].forEach((r) => {
5096
- t.prop[r] = Y([this.options[r] || {}, t.prop[r] || {}], e[r]);
5098
+ t.prop[r] = Q([this.options[r] || {}, t.prop[r] || {}], e[r]);
5097
5099
  });
5098
5100
  },
5099
5101
  getDefaultOptions() {
@@ -5102,7 +5104,7 @@ const on = {
5102
5104
  update() {
5103
5105
  const t = this.options.form;
5104
5106
  this.rule = {
5105
- props: v({}, t),
5107
+ props: _({}, t),
5106
5108
  nativeOn: {
5107
5109
  submit: (e) => {
5108
5110
  e.preventDefault();
@@ -5119,13 +5121,13 @@ const on = {
5119
5121
  });
5120
5122
  },
5121
5123
  render(t) {
5122
- 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)]);
5124
+ 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)]);
5123
5125
  },
5124
5126
  makeWrap(t, e) {
5125
5127
  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;
5126
5128
  delete r.wrap.class, delete r.wrap.title;
5127
- const f = (h.Undef(r.wrap.show) ? !t.input : Z(r.wrap.show)) ? e : this.$r(Y([r.wrap, {
5128
- props: q(v({
5129
+ const f = (h.Undef(r.wrap.show) ? !t.input : X(r.wrap.show)) ? e : this.$r(Q([r.wrap, {
5130
+ props: q(_({
5129
5131
  labelWidth: o === void 0 ? o : Et(o),
5130
5132
  label: n ? r.title.title : void 0
5131
5133
  }, Ge(r.wrap || {})), {
@@ -5136,22 +5138,22 @@ const on = {
5136
5138
  key: `${i}fi`,
5137
5139
  ref: t.wrapRef,
5138
5140
  type: "formItem"
5139
- }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5140
- return a === !0 || Z(l) || Z(s.show) ? f : this.makeCol(r, i, [f]);
5141
+ }]), _({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5142
+ return a === !0 || X(l) || X(s.show) ? f : this.makeCol(r, i, [f]);
5141
5143
  },
5142
5144
  isTitle(t) {
5143
5145
  if (this.options.form.title === !1) return !1;
5144
5146
  const e = t.title;
5145
- return !(!e.title && !e.native || Z(e.show));
5147
+ return !(!e.title && !e.native || X(e.show));
5146
5148
  },
5147
5149
  makeInfo(t, e, r) {
5148
- var f, p, d, m, y, _;
5149
- const i = v({}, t.title), s = v({}, t.info), n = nn(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5150
+ var f, p, d, m, $, v;
5151
+ const i = _({}, t.title), s = _({}, t.info), n = nn(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5150
5152
  title: (p = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : p.value,
5151
5153
  rule: r.rule,
5152
5154
  options: this.options
5153
5155
  }) : ((m = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : m.value) + (o.labelSuffix || o["label-suffix"] || "")];
5154
- if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
5156
+ if (!X(s.show) && (s.info || s.native) && !X(s.icon)) {
5155
5157
  const F = {
5156
5158
  type: s.type || "popover",
5157
5159
  slot: "label",
@@ -5160,7 +5162,7 @@ const on = {
5160
5162
  };
5161
5163
  delete F.props.icon, delete F.props.show, delete F.props.info, delete F.props.align, delete F.props.native;
5162
5164
  const J = "content";
5163
- s.info && !j(F.props, J) && (F.props[J] = (_ = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : _.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, F]), [
5165
+ 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]), [
5164
5166
  this.$r({
5165
5167
  type: "i",
5166
5168
  slot: n ? "default" : "reference",
@@ -5169,7 +5171,7 @@ const on = {
5169
5171
  })
5170
5172
  ]));
5171
5173
  }
5172
- const u = Y([i, {
5174
+ const u = Q([i, {
5173
5175
  props: Ge(i),
5174
5176
  key: `${e}tit`,
5175
5177
  class: "fc-form-title",
@@ -5203,7 +5205,7 @@ const on = {
5203
5205
  },
5204
5206
  makeFormBtn() {
5205
5207
  let t = [];
5206
- if (Z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), Z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5208
+ if (X(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), X(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5207
5209
  return;
5208
5210
  const e = this.$r({
5209
5211
  type: "formItem",
@@ -5218,7 +5220,7 @@ const on = {
5218
5220
  }, [e]);
5219
5221
  },
5220
5222
  makeResetBtn() {
5221
- const t = v({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5223
+ const t = _({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5222
5224
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
5223
5225
  type: "button",
5224
5226
  props: t,
@@ -5234,7 +5236,7 @@ const on = {
5234
5236
  }, [e]);
5235
5237
  },
5236
5238
  makeSubmitBtn() {
5237
- const t = v({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5239
+ const t = _({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5238
5240
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
5239
5241
  type: "button",
5240
5242
  props: t,
@@ -5398,7 +5400,7 @@ const zt = {
5398
5400
  if (i.required === !1)
5399
5401
  t.clearProp(), r.clearValidateState([e.field]);
5400
5402
  else {
5401
- const n = v({
5403
+ const n = _({
5402
5404
  required: !0,
5403
5405
  validator(a, l, u) {
5404
5406
  o(), h.empty(l) ? u(n.message) : u();
@@ -5437,7 +5439,7 @@ function pn(t) {
5437
5439
  function mn() {
5438
5440
  return Wt({
5439
5441
  ui: "element-ui",
5440
- version: "2.7.23",
5442
+ version: "2.7.25",
5441
5443
  manager: on,
5442
5444
  extendApi: hn,
5443
5445
  install: pn,