@form-create/element-ui 2.7.26 → 2.7.27

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.27
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,7 +123,7 @@ 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
129
  const Er = "fcFrame", kr = {
@@ -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();
@@ -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] : _({}, 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;
@@ -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;
@@ -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
  };
@@ -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,20 +1740,20 @@ 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
1745
  const k = De(n, o);
1746
1746
  if (k) {
1747
1747
  let S;
1748
- v ? (S = G(k.getSubForm()), S.push($)) : S = $, k.subForm(S);
1748
+ _ ? (S = J(k.getSubForm()), S.push($)) : S = $, k.subForm(S);
1749
1749
  }
1750
1750
  }
1751
- }, J = () => {
1751
+ }, M = () => {
1752
1752
  const k = De(n, o);
1753
1753
  if (k)
1754
- if (v) {
1755
- const S = G(k.getSubForm()), M = S.indexOf($);
1756
- M > -1 && S.splice(M, 1);
1754
+ if (_) {
1755
+ const S = J(k.getSubForm()), U = S.indexOf($);
1756
+ U > -1 && S.splice(U, 1);
1757
1757
  } else
1758
1758
  k.subForm();
1759
1759
  };
@@ -1762,11 +1762,11 @@ function Zr(t, e, r) {
1762
1762
  N(() => {
1763
1763
  let k = "";
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}}`);
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 && (k += `.${U}{${ge}}`);
1770
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 || "";
1771
1771
  }, () => {
1772
1772
  });
@@ -1783,11 +1783,11 @@ function Zr(t, e, r) {
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
1789
  }), N(f, (k) => {
1790
- k ? F() : J();
1790
+ k ? O() : M();
1791
1791
  }, { immediate: !0 }), N(() => s.option, () => {
1792
1792
  m.initOptions(), $.refresh();
1793
1793
  }, { deep: !0, flush: "sync" }), N(() => [...l.value], (k) => {
@@ -1802,7 +1802,7 @@ function Zr(t, e, r) {
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),
@@ -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,7 +1952,7 @@ 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
1958
  E(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 _({}, t.fc.formulas);
2028
+ return v({}, 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 = _({}, 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];
@@ -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
  },
@@ -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];
@@ -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)
@@ -2356,7 +2356,7 @@ function ti(t) {
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) => {
@@ -2666,8 +2666,8 @@ 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
  };
@@ -2678,7 +2678,7 @@ function ii(t) {
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();
@@ -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,
@@ -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)) {
@@ -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 ? E(_.children, 0, $) : E(_, "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,
@@ -4253,7 +4253,7 @@ const Fi = function(t) {
4253
4253
  l(d.data);
4254
4254
  return;
4255
4255
  } else
4256
- a = _(_({}, a), d);
4256
+ a = v(v({}, a), d);
4257
4257
  }
4258
4258
  const u = a.onError, f = () => {
4259
4259
  if (!s.getValue())
@@ -4262,32 +4262,32 @@ const Fi = function(t) {
4262
4262
  i._fn[s.id] = t.watchLoadData(se((d, p) => {
4263
4263
  if (p && a.watch === !1)
4264
4264
  return i._fn[s.id]();
4265
- const m = t.$handle.loadFetchVar(Y(a), d, n), $ = q(_({
4265
+ const m = t.$handle.loadFetchVar(Y(a), d, n), $ = q(v({
4266
4266
  headers: {}
4267
4267
  }, m), {
4268
- onSuccess(v, F) {
4268
+ onSuccess(_, O) {
4269
4269
  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) => {
4270
+ let M = (L) => O ? L : j(L, "data") ? L.data : L;
4271
+ const A = z(m.parse);
4272
+ h.Function(A) ? M = A : A && h.String(A) && (M = (L) => B(L, A)), Ae(M(_, n, o)).then((L) => {
4273
4273
  l(L);
4274
4274
  });
4275
4275
  },
4276
- onError(v) {
4277
- l(void 0), !f() && (u || ((F) => Ye(F.message || "fetch fail " + m.action)))(v, n, o);
4276
+ onError(_) {
4277
+ l(void 0), !f() && (u || ((O) => Ye(O.message || "fetch fail " + m.action)))(_, n, o);
4278
4278
  }
4279
4279
  });
4280
4280
  t.$handle.beforeFetch($, { rule: n, api: o }).then(() => {
4281
4281
  if (h.Function(m.action)) {
4282
- Ae(m.action(n, o)).then((v) => {
4283
- $.onSuccess(v, !0);
4284
- }).catch((v) => {
4285
- $.onError(v);
4282
+ Ae(m.action(n, o)).then((_) => {
4283
+ $.onSuccess(_, !0);
4284
+ }).catch((_) => {
4285
+ $.onError(_);
4286
4286
  });
4287
4287
  return;
4288
4288
  }
4289
- O(() => t.create.fetch($, { inject: s, rule: n, api: o }));
4290
- }).catch((v) => {
4289
+ F(() => t.create.fetch($, { inject: s, rule: n, api: o }));
4290
+ }).catch((_) => {
4291
4291
  });
4292
4292
  }, a.wait || 600));
4293
4293
  }
@@ -4475,20 +4475,20 @@ function Ui(t) {
4475
4475
  At.push(...e), et.push(...r), tt.push(...i), Mt([...e, ...r, ...i]);
4476
4476
  }
4477
4477
  let Hi = 1;
4478
- const U = {}, _t = Symbol("defValue");
4478
+ const H = {}, _t = Symbol("defValue");
4479
4479
  function Wt(t) {
4480
4480
  const e = {
4481
4481
  [Ne.name]: Ne
4482
4482
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4483
4483
  t.extendApi
4484
- ], u = _({}, Ri), f = Yr();
4484
+ ], u = v({}, Ri), f = Yr();
4485
4485
  let d = { global: {} };
4486
4486
  const p = t.isMobile === !0, m = ne({
4487
4487
  $mobile: p
4488
- }), $ = wi(), v = {}, F = {};
4488
+ }), $ = wi(), _ = {}, O = {};
4489
4489
  Ui(t.attrs || {});
4490
- function J(c) {
4491
- const g = U[c];
4490
+ function M(c) {
4491
+ const g = H[c];
4492
4492
  if (Array.isArray(g))
4493
4493
  return g.map((y) => y.api());
4494
4494
  if (g)
@@ -4503,7 +4503,7 @@ function Wt(t) {
4503
4503
  }
4504
4504
  function pe() {
4505
4505
  const c = Me(...arguments);
4506
- c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(_({}, c.prop), {
4506
+ c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(v({}, c.prop), {
4507
4507
  name: c.id
4508
4508
  }));
4509
4509
  }
@@ -4514,10 +4514,10 @@ function Wt(t) {
4514
4514
  if (arguments.length === 0)
4515
4515
  return we;
4516
4516
  if (typeof c == "string" && arguments.length === 1)
4517
- return r[H(c)];
4517
+ return r[G(c)];
4518
4518
  const g = Me(...arguments);
4519
4519
  if (!g.id || !g.prop) return we;
4520
- const y = H(g.id), b = g.prop, w = b.merge === !0 ? r[y] : void 0;
4520
+ const y = G(g.id), b = g.prop, w = b.merge === !0 ? r[y] : void 0;
4521
4521
  r[y] = je(b, w || we), f[y] = T(y), b.maker && C(f, b.maker);
4522
4522
  }
4523
4523
  function k(c, g) {
@@ -4526,15 +4526,15 @@ function Wt(t) {
4526
4526
  if (y = c, g === void 0)
4527
4527
  return ["form-create", "formcreate"].indexOf(y) > -1 ? S() : e[y];
4528
4528
  } else
4529
- y = H(c.name), g = c;
4529
+ y = G(c.name), g = c;
4530
4530
  if (!y || !g) return;
4531
- const b = H(y);
4531
+ const b = G(y);
4532
4532
  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
4533
  }
4534
4534
  function S() {
4535
4535
  return Zr(Be, e, i);
4536
4536
  }
4537
- function M() {
4537
+ function U() {
4538
4538
  return Ne;
4539
4539
  }
4540
4540
  function ge(c, g) {
@@ -4545,9 +4545,9 @@ function Wt(t) {
4545
4545
  const w = b.$refs.fc.formCreate;
4546
4546
  return w.$parent = y, Mi(w.options).appendChild(b.$el), w.api();
4547
4547
  }
4548
- je(K, F);
4548
+ je(K, O);
4549
4549
  function zt(c) {
4550
- let g = _({}, t);
4550
+ let g = v({}, t);
4551
4551
  return c ? g.inherit = {
4552
4552
  components: e,
4553
4553
  parsers: r,
@@ -4556,7 +4556,7 @@ function Wt(t) {
4556
4556
  providers: u,
4557
4557
  useApps: o,
4558
4558
  maker: f,
4559
- formulas: v,
4559
+ formulas: _,
4560
4560
  loadData: m
4561
4561
  } : delete g.inherit, Wt(g);
4562
4562
  }
@@ -4564,17 +4564,17 @@ function Wt(t) {
4564
4564
  s[c] = g;
4565
4565
  }
4566
4566
  function Zt(c, g) {
4567
- v[c] = g;
4567
+ _[c] = g;
4568
4568
  }
4569
4569
  function Qt(c, g) {
4570
4570
  const y = n[c] || {}, b = y.parsers || {};
4571
4571
  g.parsers && Object.keys(g.parsers).forEach((w) => {
4572
4572
  b[w] = je(g.parsers[w], we);
4573
- }), g.name = c, n[c] = q(_(_({}, y), g), { parsers: b });
4573
+ }), g.name = c, n[c] = q(v(v({}, y), g), { parsers: b });
4574
4574
  }
4575
4575
  function Ee(c) {
4576
- c && Object.keys(U).forEach((g) => {
4577
- (Array.isArray(U[g]) ? U[g] : [U[g]]).forEach((b) => {
4576
+ c && Object.keys(H).forEach((g) => {
4577
+ (Array.isArray(H[g]) ? H[g] : [H[g]]).forEach((b) => {
4578
4578
  b.bus.$emit("$loadData." + c);
4579
4579
  });
4580
4580
  });
@@ -4583,7 +4583,7 @@ function Wt(t) {
4583
4583
  oe(m, c, g), Ee(c);
4584
4584
  }
4585
4585
  function ke(c, g) {
4586
- const y = (...b) => O(() => g(...b));
4586
+ const y = (...b) => F(() => g(...b));
4587
4587
  y._driver = !0, Te(c, y);
4588
4588
  }
4589
4589
  function st(c, g) {
@@ -4614,7 +4614,7 @@ function Wt(t) {
4614
4614
  parsers: r,
4615
4615
  providers: u,
4616
4616
  modelFields: s,
4617
- formulas: v,
4617
+ formulas: _,
4618
4618
  isMobile: p,
4619
4619
  rules: c.$props.rule,
4620
4620
  name: c.$props.name || Ie(),
@@ -4641,7 +4641,7 @@ function Wt(t) {
4641
4641
  N(this.options, () => {
4642
4642
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4643
4643
  }, { 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);
4644
+ }), 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
4645
  }
4646
4646
  Be.isMobile = p, C(Be.prototype, {
4647
4647
  init() {
@@ -4651,7 +4651,7 @@ function Wt(t) {
4651
4651
  },
4652
4652
  targetFormDriver(c, ...g) {
4653
4653
  if (this.bus.$emit(c, ...g), this.renderDriver && this.renderDriver[c])
4654
- return O(() => this.renderDriver[c](...g));
4654
+ return F(() => this.renderDriver[c](...g));
4655
4655
  },
4656
4656
  t(c, g, y) {
4657
4657
  let b = y ? y("$t." + c) : this.globalLanguageDriver(c);
@@ -4705,7 +4705,7 @@ function Wt(t) {
4705
4705
  },
4706
4706
  globalLanguageDriver(c) {
4707
4707
  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) {
4708
+ if (g && (b = F(() => g(c))), b == null && y && typeof y == "object" && (b = B(y, c)), b == null) {
4709
4709
  const w = this.options.value.language || {}, V = this.getLocale();
4710
4710
  b = B(w[V] || {}, c), b == null && (b = B(Li[V] || {}, c));
4711
4711
  }
@@ -4715,7 +4715,7 @@ function Wt(t) {
4715
4715
  let g = c.split(".");
4716
4716
  const y = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[y];
4717
4717
  if (b) {
4718
- const w = h.Function(b) ? b : x(b.handle);
4718
+ const w = h.Function(b) ? b : z(b.handle);
4719
4719
  if (w) {
4720
4720
  let V = w((...R) => this.$handle.api.getData(...R), this.$handle.api);
4721
4721
  return B(V, g);
@@ -4760,7 +4760,7 @@ function Wt(t) {
4760
4760
  watchLoadData(c, g) {
4761
4761
  let y = {};
4762
4762
  const b = (R) => {
4763
- this.get || (this.get = w), O(() => {
4763
+ this.get || (this.get = w), F(() => {
4764
4764
  c(w, R);
4765
4765
  }), this.get === w && (this.get = void 0);
4766
4766
  }, w = (R, ae) => {
@@ -4793,7 +4793,7 @@ function Wt(t) {
4793
4793
  },
4794
4794
  initOptions() {
4795
4795
  this.options.value = {};
4796
- let c = _({
4796
+ let c = v({
4797
4797
  formData: {},
4798
4798
  submitBtn: {},
4799
4799
  resetBtn: {},
@@ -4806,7 +4806,7 @@ function Wt(t) {
4806
4806
  this.targetFormDriver("initOptions", c, { api: y, isSubForm: g }), this.updateOptions(c);
4807
4807
  },
4808
4808
  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) => {
4809
+ return g = v({}, g || {}), y && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "beforeUnmount", "beforeSubmit", "onBeforeUnmount", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4810
4810
  delete g[b];
4811
4811
  }), g.global && (c.global = xr(c.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], c), c;
4812
4812
  },
@@ -4823,12 +4823,12 @@ function Wt(t) {
4823
4823
  this.$handle.mounted();
4824
4824
  },
4825
4825
  unmount() {
4826
- if (O(() => this.$handle.lifecycle("beforeUnmount")), this.name)
4826
+ if (F(() => this.$handle.lifecycle("beforeUnmount")), this.name)
4827
4827
  if (this.inFor) {
4828
- const c = U[this.name].indexOf(this);
4829
- U[this.name].splice(c, 1);
4828
+ const c = H[this.name].indexOf(this);
4829
+ H[this.name].splice(c, 1);
4830
4830
  } else
4831
- delete U[this.name];
4831
+ delete H[this.name];
4832
4832
  a.forEach((c) => {
4833
4833
  this.bus.$off(c.name, c.callback);
4834
4834
  }), this.tmpData = {}, this.unwatch.forEach((c) => c()), this.unwatch = [], this.$handle.reloadRule([]);
@@ -4855,7 +4855,7 @@ function Wt(t) {
4855
4855
  setFormula: Zt,
4856
4856
  setDriver: Qt,
4857
4857
  register: pe,
4858
- $vnode: M,
4858
+ $vnode: U,
4859
4859
  parser: me,
4860
4860
  use: ge,
4861
4861
  factory: zt,
@@ -4865,11 +4865,11 @@ function Wt(t) {
4865
4865
  mergeRule: ee,
4866
4866
  fetch: Ut,
4867
4867
  $form: S,
4868
- parseFn: x,
4868
+ parseFn: z,
4869
4869
  parseJson: St,
4870
4870
  toJson: Oe,
4871
4871
  useApp: A,
4872
- getApi: J,
4872
+ getApi: M,
4873
4873
  on: tr
4874
4874
  });
4875
4875
  }
@@ -4877,7 +4877,7 @@ function Wt(t) {
4877
4877
  C(c, {
4878
4878
  create: K,
4879
4879
  install(g, y) {
4880
- d = _(_({}, d), y || {});
4880
+ d = v(v({}, d), y || {});
4881
4881
  const b = `_installedFormCreate${p ? "Mobile" : ""}_${t.ui}`;
4882
4882
  if (g[b] === !0) return;
4883
4883
  g[b] = !0;
@@ -4886,27 +4886,27 @@ function Wt(t) {
4886
4886
  };
4887
4887
  ot(w), g.prototype.$formCreate = w;
4888
4888
  const V = S();
4889
- g.component(V.name, V), g.component("FcFragment", M()), o.forEach((R) => {
4890
- O(() => R(c, g));
4889
+ g.component(V.name, V), g.component("FcFragment", U()), o.forEach((R) => {
4890
+ F(() => R(c, g));
4891
4891
  });
4892
4892
  }
4893
4893
  });
4894
4894
  }
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) {
4895
+ if (ot(O), rr(O), ke("$cookie", Pi), ke("$localStorage", Ti), ke("$sessionStorage", Bi), $.use({ fragment: "fcFragment" }), t.install && K.use(t), me(Di), t.inherit) {
4896
4896
  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);
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(_, c.formulas);
4898
4898
  }
4899
4899
  const Re = S();
4900
- return je(Re, F), Object.defineProperties(Re, {
4900
+ return je(Re, O), Object.defineProperties(Re, {
4901
4901
  fetch: {
4902
4902
  get() {
4903
- return F.fetch;
4903
+ return O.fetch;
4904
4904
  },
4905
4905
  set(c) {
4906
- F.fetch = c;
4906
+ O.fetch = c;
4907
4907
  }
4908
4908
  }
4909
- }), Re.util = F, Re;
4909
+ }), Re.util = O, Re;
4910
4910
  }
4911
4911
  const Ct = {
4912
4912
  date: "yyyy-MM-dd",
@@ -4979,7 +4979,7 @@ const Ct = {
4979
4979
  }, Qi = "select", Yi = {
4980
4980
  name: Qi,
4981
4981
  toFormValue(t, e) {
4982
- return e.prop.props.multiple && !Array.isArray(t) ? G(t) : t;
4982
+ return e.prop.props.multiple && !Array.isArray(t) ? J(t) : t;
4983
4983
  }
4984
4984
  }, en = [
4985
4985
  Gi,
@@ -5064,14 +5064,14 @@ function nn(t) {
5064
5064
  function Ft(t, e) {
5065
5065
  j(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
5066
5066
  }
5067
- function X(t) {
5067
+ function Z(t) {
5068
5068
  return t === !1;
5069
5069
  }
5070
5070
  function sn(t, e) {
5071
5071
  j(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
5072
5072
  }
5073
5073
  function Ge(t) {
5074
- const e = _({}, t);
5074
+ const e = v({}, t);
5075
5075
  return delete e.children, e;
5076
5076
  }
5077
5077
  const on = {
@@ -5124,7 +5124,7 @@ const on = {
5124
5124
  update() {
5125
5125
  const t = this.options.form;
5126
5126
  this.rule = {
5127
- props: _({}, t),
5127
+ props: v({}, t),
5128
5128
  nativeOn: {
5129
5129
  submit: (e) => {
5130
5130
  e.preventDefault();
@@ -5141,13 +5141,13 @@ const on = {
5141
5141
  });
5142
5142
  },
5143
5143
  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)]);
5144
+ 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
5145
  },
5146
5146
  makeWrap(t, e) {
5147
5147
  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
5148
  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(_({
5149
+ const f = (h.Undef(r.wrap.show) ? !t.input : Z(r.wrap.show)) ? e : this.$r(Q([r.wrap, {
5150
+ props: q(v({
5151
5151
  labelWidth: o === void 0 ? o : kt(o),
5152
5152
  label: n ? r.title.title : void 0
5153
5153
  }, Ge(r.wrap || {})), {
@@ -5158,31 +5158,31 @@ const on = {
5158
5158
  key: `${i}fi`,
5159
5159
  ref: t.wrapRef,
5160
5160
  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]);
5161
+ }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5162
+ return a === !0 || Z(l) || Z(s.show) ? f : this.makeCol(r, i, [f]);
5163
5163
  },
5164
5164
  isTitle(t) {
5165
5165
  if (this.options.form.title === !1) return !1;
5166
5166
  const e = t.title;
5167
- return !(!e.title && !e.native || X(e.show));
5167
+ return !(!e.title && !e.native || Z(e.show));
5168
5168
  },
5169
5169
  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({
5170
+ var f, d, p, m, $, _;
5171
+ const i = v({}, t.title), s = v({}, t.info), n = nn(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5172
5172
  title: (d = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : d.value,
5173
5173
  rule: r.rule,
5174
5174
  options: this.options
5175
5175
  }) : ((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 = {
5176
+ if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
5177
+ const O = {
5178
5178
  type: s.type || "popover",
5179
5179
  slot: "label",
5180
5180
  props: Ge(s),
5181
5181
  key: `${e}pop`
5182
5182
  };
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]), [
5183
+ delete O.props.icon, delete O.props.show, delete O.props.info, delete O.props.align, delete O.props.native;
5184
+ const M = "content";
5185
+ 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
5186
  this.$r({
5187
5187
  type: "i",
5188
5188
  slot: n ? "default" : "reference",
@@ -5198,8 +5198,8 @@ const on = {
5198
5198
  slot: i.slot || "label",
5199
5199
  type: i.type || "span",
5200
5200
  on: {
5201
- click: (...F) => {
5202
- this.$handle.targetHook(r, "titleClick", { args: F });
5201
+ click: (...O) => {
5202
+ this.$handle.targetHook(r, "titleClick", { args: O });
5203
5203
  }
5204
5204
  }
5205
5205
  }]);
@@ -5225,7 +5225,7 @@ const on = {
5225
5225
  },
5226
5226
  makeFormBtn() {
5227
5227
  let t = [];
5228
- if (X(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), X(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5228
+ if (Z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), Z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5229
5229
  return;
5230
5230
  const e = this.$r({
5231
5231
  type: "formItem",
@@ -5240,7 +5240,7 @@ const on = {
5240
5240
  }, [e]);
5241
5241
  },
5242
5242
  makeResetBtn() {
5243
- const t = _({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5243
+ const t = v({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5244
5244
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
5245
5245
  type: "button",
5246
5246
  props: t,
@@ -5256,7 +5256,7 @@ const on = {
5256
5256
  }, [e]);
5257
5257
  },
5258
5258
  makeSubmitBtn() {
5259
- const t = _({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5259
+ const t = v({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5260
5260
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
5261
5261
  type: "button",
5262
5262
  props: t,
@@ -5338,18 +5338,18 @@ function hn(t, e) {
5338
5338
  },
5339
5339
  validateField(r, i) {
5340
5340
  return new Promise((s, n) => {
5341
- const o = e.getFieldCtx(r);
5342
- if (!o) {
5341
+ const a = typeof r == "object" ? x(r) : e.getCtx(r);
5342
+ if (!a) {
5343
5343
  s(null), i && i(null);
5344
5344
  return;
5345
5345
  }
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(() => {
5346
+ const l = e.subForm[a.id], u = [e.$manager.validateField(a.id)];
5347
+ J(l).filter((f) => !f.isScope).forEach((f) => {
5348
+ u.push(f.validate());
5349
+ }), Promise.all(u).then(() => {
5350
5350
  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 });
5351
+ }).catch((f) => {
5352
+ n(f), i && i(f), e.vm.$emit("validate-field-fail", f, { field: r, api: t });
5353
5353
  });
5354
5354
  });
5355
5355
  },
@@ -5416,11 +5416,11 @@ function hn(t, e) {
5416
5416
  (e.options.validateOnSubmit === !1 ? Promise.resolve() : t.validate()).then(() => {
5417
5417
  let a = t.formData();
5418
5418
  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);
5419
+ 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
5420
  }).catch((l) => {
5421
5421
  });
5422
5422
  }).catch((...a) => {
5423
- h.Function(i) && O(() => i(t, ...a)), n(...a);
5423
+ h.Function(i) && F(() => i(t, ...a)), n(...a);
5424
5424
  });
5425
5425
  });
5426
5426
  }
@@ -5434,7 +5434,7 @@ const xt = {
5434
5434
  if (i.required === !1)
5435
5435
  t.clearProp(), r.clearValidateState([e.field]);
5436
5436
  else {
5437
- const n = _({
5437
+ const n = v({
5438
5438
  required: !0,
5439
5439
  validator(a, l, u) {
5440
5440
  o(), h.empty(l) ? u(n.message) : u();
@@ -5473,7 +5473,7 @@ function pn(t) {
5473
5473
  function mn() {
5474
5474
  return Wt({
5475
5475
  ui: "element-ui",
5476
- version: "2.7.26",
5476
+ version: "2.7.27",
5477
5477
  manager: on,
5478
5478
  extendApi: hn,
5479
5479
  install: pn,