@form-create/view-design 2.7.20 → 2.7.21

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/view-design v2.7.20
3
+ * @form-create/view-design v2.7.21
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -19,7 +19,7 @@ var lt = (t, e, r) => e in t ? or(t, e, { enumerable: !0, configurable: !0, writ
19
19
  fr.call(e, r) && lt(t, r, e[r]);
20
20
  return t;
21
21
  }, q = (t, e) => ar(t, lr(e));
22
- import ye, { getCurrentInstance as cr, provide as hr, inject as dr, toRefs as ut, reactive as ie, onBeforeMount as pr, watch as T, onMounted as mr, onBeforeUnmount as gr, onUpdated as yr, nextTick as V, markRaw as me, computed as ge, toRef as De, ref as $r } from "vue";
22
+ import $e, { getCurrentInstance as cr, provide as hr, inject as dr, toRefs as ut, reactive as ie, onBeforeMount as pr, watch as T, onMounted as mr, onBeforeUnmount as gr, onUpdated as yr, nextTick as V, markRaw as ge, computed as ye, toRef as De, ref as $r } from "vue";
23
23
  function br(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
@@ -49,13 +49,13 @@ var vr = ["attrs", "props", "domProps"], _r = ["class", "style", "directives"],
49
49
  return function() {
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
- }, Fr = wr;
53
- const D = /* @__PURE__ */ br(Fr);
52
+ }, kr = wr;
53
+ const D = /* @__PURE__ */ br(kr);
54
54
  function Ve(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => ((!e || e.indexOf(i) === -1) && r.push(t[i]), r), []);
56
56
  }
57
- const kr = "fcCheckbox", Sr = {
58
- name: kr,
57
+ const Fr = "fcCheckbox", Sr = {
58
+ name: Fr,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -127,7 +127,7 @@ function H(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
129
  const Rr = "fcFrame";
130
- function kt(t) {
130
+ function Ft(t) {
131
131
  return {
132
132
  name: Rr,
133
133
  props: {
@@ -503,11 +503,11 @@ function kt(t) {
503
503
  }
504
504
  };
505
505
  }
506
- const St = kt({
506
+ const St = Ft({
507
507
  fileIcon: "md-document",
508
508
  fileUpIcon: "ios-folder-open"
509
509
  });
510
- St.v2 = kt({
510
+ St.v2 = Ft({
511
511
  fileIcon: "document-text",
512
512
  fileUpIcon: "folder"
513
513
  });
@@ -915,11 +915,11 @@ Et.v2 = Rt({
915
915
  fileIcon: "document-text",
916
916
  imgUpIcon: "image"
917
917
  });
918
- function F(t, e, r) {
919
- ye.set(t, e, r);
918
+ function k(t, e, r) {
919
+ $e.set(t, e, r);
920
920
  }
921
921
  function re(t, e) {
922
- (ye.del || ye.delete)(t, e);
922
+ ($e.del || $e.delete)(t, e);
923
923
  }
924
924
  function we(t, e = {}, r) {
925
925
  let i = !1;
@@ -929,19 +929,19 @@ function we(t, e = {}, r) {
929
929
  if ((i = Array.isArray(n)) || h.Object(n)) {
930
930
  let o = t[s] === void 0;
931
931
  if (i)
932
- i = !1, o && F(t, s, []);
932
+ i = !1, o && k(t, s, []);
933
933
  else if (n._clone && r !== void 0)
934
934
  if (r)
935
- n = n.getRule(), o && F(t, s, {});
935
+ n = n.getRule(), o && k(t, s, {});
936
936
  else {
937
- F(t, s, n._clone());
937
+ k(t, s, n._clone());
938
938
  continue;
939
939
  }
940
940
  else
941
- o && F(t, s, {});
941
+ o && k(t, s, {});
942
942
  t[s] = we(t[s], n, r);
943
943
  } else
944
- F(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
944
+ k(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
945
945
  }
946
946
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
947
947
  }
@@ -951,7 +951,7 @@ function G(t) {
951
951
  const Br = Object.assign || function(t) {
952
952
  for (let e, r = 1; r < arguments.length; r++)
953
953
  for (let i in e = arguments[r], e)
954
- Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
954
+ Object.prototype.hasOwnProperty.call(e, i) && k(t, i, e[i]);
955
955
  return t;
956
956
  };
957
957
  function C() {
@@ -975,7 +975,7 @@ function Nr(t) {
975
975
  function Ae(t) {
976
976
  return Nr(t) ? t : Promise.resolve(t);
977
977
  }
978
- function $e(t) {
978
+ function be(t) {
979
979
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
980
980
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
981
981
  }
@@ -1061,8 +1061,8 @@ function Pe() {
1061
1061
  function se(t, e, r) {
1062
1062
  let i = t, s;
1063
1063
  return (e || "").split(".").forEach((n) => {
1064
- s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
1065
- }), F(i, s, r), i;
1064
+ s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1065
+ }), k(i, s, r), i;
1066
1066
  }
1067
1067
  const Gr = "fcGroup", Hr = {
1068
1068
  name: Gr,
@@ -1601,9 +1601,9 @@ function Se() {
1601
1601
  function Re(t, e) {
1602
1602
  return Object.setPrototypeOf(t, e), t;
1603
1603
  }
1604
- const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1604
+ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, he = {
1605
1605
  "==": (t, e) => JSON.stringify(t) === JSON.stringify(dt(t, e)),
1606
- "!=": (t, e) => !ce["=="](t, e),
1606
+ "!=": (t, e) => !he["=="](t, e),
1607
1607
  ">": (t, e) => t > e,
1608
1608
  ">=": (t, e) => t >= e,
1609
1609
  "<": (t, e) => t < e,
@@ -1612,13 +1612,13 @@ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1612
1612
  return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
1613
1613
  },
1614
1614
  notOn(t, e) {
1615
- return !ce.on(t, e);
1615
+ return !he.on(t, e);
1616
1616
  },
1617
1617
  in(t, e) {
1618
1618
  return e && e.indexOf && e.indexOf(t) > -1;
1619
1619
  },
1620
1620
  notIn(t, e) {
1621
- return !ce.in(t, e);
1621
+ return !he.in(t, e);
1622
1622
  },
1623
1623
  between(t, e) {
1624
1624
  return t > e[0] && t < e[1];
@@ -1743,73 +1743,73 @@ function Qr(t, e, r) {
1743
1743
  unique: 1,
1744
1744
  renderRule: [...l.value || []],
1745
1745
  updateValue: JSON.stringify(u.value || {})
1746
- }), g = new t(n), y = g.api(), v = p.value, E = () => {
1746
+ }), m = new t(n), y = m.api(), v = p.value, E = () => {
1747
1747
  if (o) {
1748
- const k = Ee(n, o);
1749
- if (k) {
1750
- let S;
1751
- v ? (S = H(k.getSubForm()), S.push(y)) : S = y, k.subForm(S);
1748
+ const F = Ee(n, o);
1749
+ if (F) {
1750
+ let R;
1751
+ v ? (R = H(F.getSubForm()), R.push(y)) : R = y, F.subForm(R);
1752
1752
  }
1753
1753
  }
1754
1754
  }, Y = () => {
1755
- const k = Ee(n, o);
1756
- if (k)
1755
+ const F = Ee(n, o);
1756
+ if (F)
1757
1757
  if (v) {
1758
- const S = H(k.getSubForm()), N = S.indexOf(y);
1759
- N > -1 && S.splice(N, 1);
1758
+ const R = H(F.getSubForm()), N = R.indexOf(y);
1759
+ N > -1 && R.splice(N, 1);
1760
1760
  } else
1761
- k.subForm();
1761
+ F.subForm();
1762
1762
  };
1763
1763
  let I = null;
1764
1764
  pr(() => {
1765
1765
  T(() => {
1766
- let k = "";
1767
- const S = s.option && s.option.globalClass || {};
1768
- Object.keys(S).forEach((N) => {
1769
- let pe = "";
1770
- S[N].style && Object.keys(S[N].style).forEach((z) => {
1771
- pe += $e(z) + ":" + S[N].style[z] + ";";
1772
- }), S[N].content && (pe += S[N].content + ";"), pe && (k += `.${N}{${pe}}`);
1773
- }), s.option && s.option.style && (k += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = k || "";
1766
+ let F = "";
1767
+ const R = s.option && s.option.globalClass || {};
1768
+ Object.keys(R).forEach((N) => {
1769
+ let me = "";
1770
+ R[N].style && Object.keys(R[N].style).forEach((z) => {
1771
+ me += be(z) + ":" + R[N].style[z] + ";";
1772
+ }), R[N].content && (me += R[N].content + ";"), me && (F += `.${N}{${me}}`);
1773
+ }), s.option && s.option.style && (F += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = F || "";
1774
1774
  }, () => {
1775
1775
  });
1776
1776
  });
1777
1777
  const B = ne(() => {
1778
- g.bus.$emit("$loadData.$topForm");
1779
- }, 100), he = ne(function() {
1780
- g.bus.$emit("$loadData.$scopeForm");
1778
+ m.bus.$emit("$loadData.$topForm");
1779
+ }, 100), de = ne(function() {
1780
+ m.bus.$emit("$loadData.$scopeForm");
1781
1781
  }, 100), Le = ne(() => {
1782
- g.bus.$emit("$loadData.$form");
1783
- }, 100), de = (k) => {
1784
- g.bus.$emit("change-$form." + k);
1782
+ m.bus.$emit("$loadData.$form");
1783
+ }, 100), pe = (F) => {
1784
+ m.bus.$emit("change-$form." + F);
1785
1785
  };
1786
1786
  return mr(() => {
1787
- o && (y.top.bus.$on("$loadData.$form", B), y.top.bus.$on("change", de)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", he), g.mounted();
1787
+ o && (y.top.bus.$on("$loadData.$form", B), y.top.bus.$on("change", pe)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", de), m.mounted();
1788
1788
  }), gr(() => {
1789
- o && (y.top.bus.$off("$loadData.$form", B), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), Y(), d.destroyed = !0, g.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1789
+ o && (y.top.bus.$off("$loadData.$form", B), y.top.bus.$off("change", pe)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", de), Y(), d.destroyed = !0, m.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1790
1790
  }), yr(() => {
1791
- g.updated();
1792
- }), T(f, (k) => {
1793
- k ? E() : Y();
1791
+ m.updated();
1792
+ }), T(f, (F) => {
1793
+ F ? E() : Y();
1794
1794
  }, { immediate: !0 }), T(() => s.option, () => {
1795
- g.initOptions(), y.refresh();
1796
- }, { deep: !0, flush: "sync" }), T(() => [...l.value], (k) => {
1797
- g.$handle.isBreakWatch() || k.length === d.renderRule.length && k.every((S) => d.renderRule.indexOf(S) > -1) || (g.$handle.updateAppendData(), g.$handle.reloadRule(l.value), n.renderRule());
1795
+ m.initOptions(), y.refresh();
1796
+ }, { deep: !0, flush: "sync" }), T(() => [...l.value], (F) => {
1797
+ m.$handle.isBreakWatch() || F.length === d.renderRule.length && F.every((R) => d.renderRule.indexOf(R) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1798
1798
  }), T(() => [s.disabled, s.preview], () => {
1799
1799
  y.refresh();
1800
- }), T(u, (k) => {
1801
- Ce(k || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(k || {}) : y.setValue(k || {}));
1800
+ }), T(u, (F) => {
1801
+ Ce(F || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(F || {}) : y.setValue(F || {}));
1802
1802
  }, { deep: !0, flush: "post" }), T(() => s.index, () => {
1803
- y.coverValue({}), g.$handle.updateAppendData(), V(() => {
1803
+ y.coverValue({}), m.$handle.updateAppendData(), V(() => {
1804
1804
  V(() => {
1805
1805
  y.clearValidateState();
1806
1806
  });
1807
1807
  });
1808
1808
  }, { flush: "sync" }), q(_({
1809
- fc: me(g),
1810
- parent: o && me(o),
1811
- top: me(a),
1812
- fapi: me(y)
1809
+ fc: ge(m),
1810
+ parent: o && ge(o),
1811
+ top: ge(a),
1812
+ fapi: ge(y)
1813
1813
  }, ut(d)), {
1814
1814
  getGroupInject: () => Ee(n, o),
1815
1815
  refresh() {
@@ -1818,11 +1818,11 @@ function Qr(t, e, r) {
1818
1818
  renderRule() {
1819
1819
  d.renderRule = [...l.value || []];
1820
1820
  },
1821
- updateValue(k) {
1821
+ updateValue(F) {
1822
1822
  if (d.destroyed) return;
1823
- const S = Ce(k);
1824
- d.updateValue !== S && (d.updateValue = S, n.$emit("update:value", k), V(() => {
1825
- Le(), o ? f.value || he() : (B(), he());
1823
+ const R = Ce(F);
1824
+ d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", F), V(() => {
1825
+ Le(), o ? f.value || de() : (B(), de());
1826
1826
  }));
1827
1827
  }
1828
1828
  });
@@ -1858,7 +1858,7 @@ C(rt.prototype, {
1858
1858
  return this._data;
1859
1859
  },
1860
1860
  setProp(t, e) {
1861
- return F(this._data, t, e), this;
1861
+ return k(this._data, t, e), this;
1862
1862
  },
1863
1863
  _clone() {
1864
1864
  const t = new this.constructor();
@@ -1958,7 +1958,7 @@ function ri(t) {
1958
1958
  h.Undef(n) ? n = Object.keys(_(_({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1959
1959
  const u = t.fieldCtx[l] || t.nameCtx[l];
1960
1960
  u && u.forEach((f) => {
1961
- F(f.rule, o, a), t.$render.clearCache(f);
1961
+ k(f.rule, o, a), t.$render.clearCache(f);
1962
1962
  });
1963
1963
  });
1964
1964
  }
@@ -2051,7 +2051,7 @@ function ri(t) {
2051
2051
  if (l) {
2052
2052
  const u = j(n, a);
2053
2053
  l.forEach((f) => {
2054
- F(f.rule, "value", u ? n[a] : void 0);
2054
+ k(f.rule, "value", u ? n[a] : void 0);
2055
2055
  }), delete o[a];
2056
2056
  }
2057
2057
  }), C(t.appendData, o);
@@ -2064,7 +2064,7 @@ function ri(t) {
2064
2064
  const l = t.fieldCtx[a];
2065
2065
  if (!l) return t.appendData[a] = o[a];
2066
2066
  l.forEach((u) => {
2067
- F(u.rule, "value", o[a]);
2067
+ k(u.rule, "value", o[a]);
2068
2068
  });
2069
2069
  });
2070
2070
  }, !0);
@@ -2128,7 +2128,7 @@ function ri(t) {
2128
2128
  disabled(n, o) {
2129
2129
  e(o).forEach((a) => {
2130
2130
  t.getCtxs(a).forEach((l) => {
2131
- F(l.rule.props, "disabled", !!n);
2131
+ k(l.rule.props, "disabled", !!n);
2132
2132
  });
2133
2133
  }), t.refresh();
2134
2134
  },
@@ -2186,7 +2186,7 @@ function ri(t) {
2186
2186
  t.$manager.updateOptions(t.options), s.refresh();
2187
2187
  },
2188
2188
  hideForm: (n) => {
2189
- F(t.vm, "isShow", !n);
2189
+ k(t.vm, "isShow", !n);
2190
2190
  },
2191
2191
  changeStatus: () => t.changeStatus,
2192
2192
  clearChangeStatus: () => {
@@ -2245,7 +2245,7 @@ function ri(t) {
2245
2245
  },
2246
2246
  setEffect(n, o, a) {
2247
2247
  const l = t.getCtx(n);
2248
- l && o && (o[0] === "$" && (o = o.substr(1)), j(l.rule, "$" + o) && F(l.rule, "$" + o, a), j(l.rule, "effect") || F(l.rule, "effect", {}), F(l.rule.effect, o, a));
2248
+ l && o && (o[0] === "$" && (o = o.substr(1)), j(l.rule, "$" + o) && k(l.rule, "$" + o, a), j(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2249
2249
  },
2250
2250
  clearEffectData(n, o) {
2251
2251
  const a = t.getCtx(n);
@@ -2332,7 +2332,7 @@ function ri(t) {
2332
2332
  const l = s.getChildrenRuleList(n);
2333
2333
  t.deferSyncValue(() => {
2334
2334
  l.forEach((u) => {
2335
- j(o, u.field) ? F(u, "value", o[u.field]) : a && F(u, "value", void 0);
2335
+ j(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2336
2336
  });
2337
2337
  });
2338
2338
  },
@@ -2349,6 +2349,13 @@ function ri(t) {
2349
2349
  }).catch(a) : o(l.data) : o(t.fc.loadData[n]);
2350
2350
  });
2351
2351
  },
2352
+ emitGlobalEvent(n, ...o) {
2353
+ const a = s.getGlobalEvent(n);
2354
+ if (a) {
2355
+ const l = t.getInjectData({}, void 0);
2356
+ return l.args = [...o], o.unshift(l), a.apply(null, o);
2357
+ }
2358
+ },
2352
2359
  setGlobalData(n, o) {
2353
2360
  s.setData("$globalData." + n, o);
2354
2361
  },
@@ -2382,22 +2389,32 @@ function ri(t) {
2382
2389
  },
2383
2390
  fetch(n) {
2384
2391
  return new Promise((o, a) => {
2385
- n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((l) => {
2386
- O(() => n.onSuccess && n.onSuccess(l)), o(l);
2387
- }).catch((l) => {
2388
- O(() => n.onError && n.onError(l)), a(l);
2389
- })).catch((l) => {
2392
+ n = G(n), n = t.loadFetchVar(n);
2393
+ const l = (u) => {
2394
+ O(() => n.onError && n.onError(u)), a(u);
2395
+ };
2396
+ t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((u) => {
2397
+ O(() => n.onSuccess && n.onSuccess(u)), o(u);
2398
+ }).catch((u) => {
2399
+ l(u);
2400
+ })).catch((u) => {
2401
+ l(u);
2390
2402
  });
2391
2403
  });
2392
2404
  },
2393
2405
  watchFetch(n, o, a, l) {
2394
2406
  return t.fc.watchLoadData((u, f) => {
2395
2407
  let p = G(n);
2396
- p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((d) => {
2397
- O(() => p.onSuccess && p.onSuccess(d)), o && o(d, f);
2398
- }).catch((d) => {
2399
- O(() => p.onError && p.onError(d)), a && a(d);
2400
- })).catch((d) => {
2408
+ p = t.loadFetchVar(p, u);
2409
+ const d = (m) => {
2410
+ O(() => p.onError && p.onError(m)), a && a(m);
2411
+ };
2412
+ l && l(p, f) === !1 || t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((m) => {
2413
+ O(() => p.onSuccess && p.onSuccess(m)), o && o(m, f);
2414
+ }).catch((m) => {
2415
+ d(m);
2416
+ })).catch((m) => {
2417
+ d(m);
2401
2418
  });
2402
2419
  }, n.wait == null ? 1e3 : n.wait);
2403
2420
  },
@@ -2477,7 +2494,7 @@ function ni(t) {
2477
2494
  const r = (i) => {
2478
2495
  if (i) {
2479
2496
  let s;
2480
- return e.rule.field && (s = i.$scopedSlots["field-" + $e(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + $e(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2497
+ return e.rule.field && (s = i.$scopedSlots["field-" + be(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + be(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2481
2498
  }
2482
2499
  };
2483
2500
  return r(this.vm);
@@ -2497,7 +2514,7 @@ function ni(t) {
2497
2514
  })) : e.setSlot(r.rule.slot, this.renderCtx(r, i));
2498
2515
  },
2499
2516
  mergeGlobal(e) {
2500
- this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ge(() => {
2517
+ this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ye(() => {
2501
2518
  const i = this.$handle.options.global;
2502
2519
  return Q({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2503
2520
  })), e.prop = Q({}, [this.cacheConfig[e.trueType].value, e.prop]));
@@ -2562,8 +2579,8 @@ function ni(t) {
2562
2579
  })()));
2563
2580
  });
2564
2581
  const d = this.getTypeSlot(e);
2565
- let g;
2566
- return d ? (u.children = f, g = d(u)) : g = a ? e.parser.preview(We(f), e) : e.parser.render(We(f), e), g = this.renderSides(g, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), g = this.$manager.makeWrap(e, g)), e.none && (Array.isArray(g) ? g = g.map((y) => !y || !y.tag ? y : this.none(y)) : g = this.none(g)), o && this.setCache(e, () => this.stable(g), r), g;
2582
+ let m;
2583
+ return d ? (u.children = f, m = d(u)) : m = a ? e.parser.preview(We(f), e) : e.parser.render(We(f), e), m = this.renderSides(m, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((y) => !y || !y.tag ? y : this.none(y)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2567
2584
  }, this.setCache(e, s, r);
2568
2585
  }
2569
2586
  return (...s) => {
@@ -2605,7 +2622,7 @@ function ni(t) {
2605
2622
  },
2606
2623
  injectProp(e) {
2607
2624
  const r = this.vm;
2608
- r.ctxInject[e.id] || F(r.ctxInject, e.id, {
2625
+ r.ctxInject[e.id] || k(r.ctxInject, e.id, {
2609
2626
  api: this.$handle.api,
2610
2627
  form: this.fc.create,
2611
2628
  subForm: (n) => {
@@ -2636,7 +2653,7 @@ function ni(t) {
2636
2653
  children: e.loadChildrenPending()
2637
2654
  };
2638
2655
  return Object.keys(s).forEach((n) => {
2639
- F(i, n, s[n]);
2656
+ k(i, n, s[n]);
2640
2657
  }), i;
2641
2658
  },
2642
2659
  ctxProp(e) {
@@ -2647,7 +2664,7 @@ function ni(t) {
2647
2664
  if (l.indexOf("native.") === 0)
2648
2665
  o[l.replace("native.", "")] = n[l], delete n[l];
2649
2666
  else if (this.$handle.options.transformEventName !== !1) {
2650
- const u = $e(l);
2667
+ const u = be(l);
2651
2668
  u !== l.toLowerCase() && !n[u] && (n[u] = n[l]);
2652
2669
  }
2653
2670
  }), e.prop.on = n;
@@ -2805,8 +2822,8 @@ function oi(t) {
2805
2822
  let p, d = n || o || a;
2806
2823
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2807
2824
  r || (d = `native-${d}`);
2808
- const g = $e(`${d}-${f}`), y = (...v) => {
2809
- this.vm.$emit(g, ...v), this.vm.$emit("emit-event", g, ...v), this.bus.$emit(g, ...v);
2825
+ const m = be(`${d}-${f}`), y = (...v) => {
2826
+ this.vm.$emit(m, ...v), this.vm.$emit("emit-event", m, ...v), this.bus.$emit(m, ...v);
2810
2827
  };
2811
2828
  if (y.__emit = !0, !p && l === !1)
2812
2829
  i[f] = y;
@@ -2858,16 +2875,16 @@ function oi(t) {
2858
2875
  d.key ? f.push(d.key) : d.children && f.push(a(d.children));
2859
2876
  });
2860
2877
  let p = !1;
2861
- return f.forEach((d, g) => {
2862
- d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[g] = d.slice(1, -1), p = !0);
2878
+ return f.forEach((d, m) => {
2879
+ d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[m] = d.slice(1, -1), p = !0);
2863
2880
  }), f.length === 1 && (p || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2864
2881
  };
2865
2882
  let l;
2866
2883
  if (n.forEach((u) => {
2867
2884
  const f = u.split("||"), p = f[0].trim();
2868
2885
  if (p) {
2869
- const d = (f[1] || "").trim(), g = Mt(p);
2870
- let y = O(() => a(g));
2886
+ const d = (f[1] || "").trim(), m = Mt(p);
2887
+ let y = O(() => a(m));
2871
2888
  (y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2872
2889
  }
2873
2890
  }), n.length === 1 && s === `{{${n[0]}}}`)
@@ -2931,9 +2948,9 @@ function ui(t) {
2931
2948
  }
2932
2949
  function fi(t) {
2933
2950
  Object.defineProperties(t.origin, {
2934
- __fc__: Ze(me(t), !0)
2951
+ __fc__: Ze(ge(t), !0)
2935
2952
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2936
- __fc__: Ze(me(t), !0)
2953
+ __fc__: Ze(ge(t), !0)
2937
2954
  });
2938
2955
  }
2939
2956
  function Jt(t, e, r) {
@@ -3180,9 +3197,9 @@ function ci(t) {
3180
3197
  let l = ht(o);
3181
3198
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3182
3199
  this.fc.targetFormDriver("loadRule", { rule: l, api: this.api }, this.fc), this.ruleEffect(l, "init", { repeat: u() }), u() && this.vm.$emit("repeat-field", o, this.api);
3183
- let f, p = !1, d = !!o.__fc__, g = l.value;
3200
+ let f, p = !1, d = !!o.__fc__, m = l.value;
3184
3201
  if (d) {
3185
- if (f = o.__fc__, g = f.defaultValue, f.deleted) {
3202
+ if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3186
3203
  if (bt(f))
3187
3204
  return;
3188
3205
  f.update(this);
@@ -3196,7 +3213,7 @@ function ci(t) {
3196
3213
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3197
3214
  else {
3198
3215
  const E = this.parseRule(o);
3199
- f = new Jt(this, E, g), this.bindParser(f);
3216
+ f = new Jt(this, E, m), this.bindParser(f);
3200
3217
  }
3201
3218
  [!1, !0].forEach((E) => this.parseEmit(f, E)), 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");
3202
3219
  const y = f.loadChildrenPending();
@@ -3219,7 +3236,7 @@ function ci(t) {
3219
3236
  if (!r.length) return !1;
3220
3237
  for (let a = 0; a < r.length; a++) {
3221
3238
  const l = r[a], u = l.handle || function(p) {
3222
- return (ce[l.condition || "=="] || ce["=="])(p, l.value);
3239
+ return (he[l.condition || "=="] || he["=="])(p, l.value);
3223
3240
  };
3224
3241
  if (!h.trueArray(l.rule)) continue;
3225
3242
  const f = q(_({}, l), {
@@ -3233,13 +3250,13 @@ function ci(t) {
3233
3250
  const n = [];
3234
3251
  let o = !1;
3235
3252
  return this.deferSyncValue(() => {
3236
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: g, method: y }) => {
3253
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: m, method: y }) => {
3237
3254
  if (a) {
3238
3255
  l ? e.ctrlRule.push({
3239
3256
  __ctrl: !0,
3240
3257
  children: u,
3241
3258
  valid: l
3242
- }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3259
+ }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3243
3260
  y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((v) => {
3244
3261
  this.api.setEffect(v, "required", l);
3245
3262
  }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
@@ -3258,8 +3275,8 @@ function ci(t) {
3258
3275
  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);
3259
3276
  });
3260
3277
  } else {
3261
- e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3262
- const v = Z(g);
3278
+ e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3279
+ const v = Z(m);
3263
3280
  v && v.rm();
3264
3281
  }
3265
3282
  });
@@ -3290,7 +3307,7 @@ function ci(t) {
3290
3307
  function hi(t) {
3291
3308
  const e = qt();
3292
3309
  return Object.keys(e).forEach((r) => {
3293
- j(t, r) || F(t, r, e[r]);
3310
+ j(t, r) || k(t, r, e[r]);
3294
3311
  }), t;
3295
3312
  }
3296
3313
  function di(t) {
@@ -3340,7 +3357,7 @@ function mi(t) {
3340
3357
  setFormData(e, r) {
3341
3358
  e.modelValue = r;
3342
3359
  const i = e.getParentGroup();
3343
- i && (this.subRuleData[i.id] || F(this.subRuleData, i.id, {}), F(this.subRuleData[i.id], e.field, e.rule.value)), F(this.formData, e.id, r);
3360
+ i && (this.subRuleData[i.id] || k(this.subRuleData, i.id, {}), k(this.subRuleData[i.id], e.field, e.rule.value)), k(this.formData, e.id, r);
3344
3361
  },
3345
3362
  rmSubRuleData(e) {
3346
3363
  const r = e.getParentGroup();
@@ -3503,21 +3520,21 @@ function yi(t) {
3503
3520
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3504
3521
  }
3505
3522
  }, { deep: !n, sync: n }));
3506
- }), e.refRule.__$title = ge(() => {
3523
+ }), e.refRule.__$title = ye(() => {
3507
3524
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3508
3525
  if (i) {
3509
3526
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3510
3527
  s && (i = this.api.t(s[1]));
3511
3528
  }
3512
3529
  return i;
3513
- }), e.refRule.__$info = ge(() => {
3530
+ }), e.refRule.__$info = ye(() => {
3514
3531
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3515
3532
  if (i) {
3516
3533
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3517
3534
  s && (i = this.api.t(s[1]));
3518
3535
  }
3519
3536
  return i;
3520
- }), e.refRule.__$validate = ge(() => {
3537
+ }), e.refRule.__$validate = ye(() => {
3521
3538
  const i = (s) => {
3522
3539
  var o, a;
3523
3540
  const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
@@ -3558,7 +3575,7 @@ function yi(t) {
3558
3575
  this.bus.$once("load-end", () => {
3559
3576
  let i = e.rule.computed;
3560
3577
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3561
- const n = ge(() => {
3578
+ const n = ye(() => {
3562
3579
  const a = i[s];
3563
3580
  if (!a) return;
3564
3581
  const l = this.compute(e, a);
@@ -3697,15 +3714,15 @@ function yi(t) {
3697
3714
  let u = !0;
3698
3715
  for (let f = 0; f < a.group.length; f++) {
3699
3716
  const p = a.group[f];
3700
- let d, g = null, y = null;
3717
+ let d, m = null, y = null;
3701
3718
  if (p.variable)
3702
3719
  y = this.fc.getLoadData(p.variable);
3703
3720
  else if (p.field)
3704
- g = pt(p.field || "");
3721
+ m = pt(p.field || "");
3705
3722
  else if (!p.mode)
3706
3723
  return !0;
3707
3724
  let v = p.compare;
3708
- if (v && (v = pt(v || "")), p.mode ? d = n(p) : ce[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$variableVal", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${p.variable ? "$variableVal" : g}, ${v || "$val"}); }}}}`).call(this.api.form, ce, 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)
3725
+ 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, 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)
3709
3726
  return !0;
3710
3727
  l || (u = u && d);
3711
3728
  }
@@ -3784,12 +3801,13 @@ function $i(t) {
3784
3801
  },
3785
3802
  targetHook(e, r, i) {
3786
3803
  var l, u, f, p;
3787
- let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, g) => {
3804
+ let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, m) => {
3788
3805
  d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
3789
3806
  O(() => y(q(_({}, i || {}), {
3807
+ args: Object.values(i),
3790
3808
  self: e.rule,
3791
3809
  rule: e.rule,
3792
- parent: g == null ? void 0 : g.rule,
3810
+ parent: m == null ? void 0 : m.rule,
3793
3811
  $f: this.api,
3794
3812
  api: this.api,
3795
3813
  option: this.vm.$props.option
@@ -3876,7 +3894,7 @@ function bi(t) {
3876
3894
  else
3877
3895
  return;
3878
3896
  const d = _({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3879
- e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (g) => Q(d.getProp(), [g]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3897
+ e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (m) => Q(d.getProp(), [m]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3880
3898
  });
3881
3899
  }
3882
3900
  });
@@ -4001,7 +4019,7 @@ function Oi() {
4001
4019
  },
4002
4020
  make(r, i, s) {
4003
4021
  var n, o, a;
4004
- return (ye.isReservedTag ? ye.isReservedTag(r) : (o = (n = ye) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
4022
+ return ($e.isReservedTag ? $e.isReservedTag(r) : (o = (n = $e) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
4005
4023
  },
4006
4024
  makeComponent(r, i, s) {
4007
4025
  var a;
@@ -4024,7 +4042,7 @@ function Oi() {
4024
4042
  },
4025
4043
  use(r) {
4026
4044
  Object.keys(r).forEach((i) => {
4027
- const s = $e(i), n = Tr(i).toLocaleLowerCase(), o = r[i];
4045
+ const s = be(i), n = Tr(i).toLocaleLowerCase(), o = r[i];
4028
4046
  e.alias(i, o), [i, s, n].forEach((a) => {
4029
4047
  e.prototype[a] = function(l, u) {
4030
4048
  return this.make(t[i] || a, l, u);
@@ -4034,7 +4052,7 @@ function Oi() {
4034
4052
  }
4035
4053
  }), e;
4036
4054
  }
4037
- function Fi(t) {
4055
+ function ki(t) {
4038
4056
  class e extends Wt {
4039
4057
  }
4040
4058
  return Object.assign(e.prototype, t), e;
@@ -4100,7 +4118,7 @@ C(Wt.prototype, {
4100
4118
  render(t) {
4101
4119
  }
4102
4120
  });
4103
- const ki = function(t) {
4121
+ const Fi = function(t) {
4104
4122
  const e = {
4105
4123
  name: "loadData",
4106
4124
  _fn: [],
@@ -4113,10 +4131,10 @@ const ki = function(t) {
4113
4131
  let l = (p) => {
4114
4132
  let d;
4115
4133
  i && i.__fc__ && (d = i.__fc__.getParentGroup());
4116
- let g;
4117
- a.template ? g = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? g = a.handler(p, i, s) : g = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (g == null || g === "") && a.default != null && (g = a.default), a.copy !== !1 && (g = G(g));
4134
+ let m;
4135
+ 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 = G(m));
4118
4136
  const y = a.modify ? i : r.getProp();
4119
- a.to === "child" ? y.children ? F(y.children, 0, g) : F(y, "children", [g]) : se(y, a.to || "options", g), s.sync(i);
4137
+ a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : se(y, a.to || "options", m), s.sync(i);
4120
4138
  }, u = (p) => l(p);
4121
4139
  const f = t.watchLoadData(u);
4122
4140
  l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
@@ -4143,11 +4161,11 @@ const ki = function(t) {
4143
4161
  const l = n[a];
4144
4162
  if (l) {
4145
4163
  const u = typeof l == "object";
4146
- let f = (g) => {
4147
- let y = t.t(u ? l.attr : l, u ? l.params : null, g);
4164
+ let f = (m) => {
4165
+ let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4148
4166
  const v = u && l.modify ? i : r.getProp();
4149
- a === "child" ? v.children ? F(v.children, 0, y) : F(v, "children", [y]) : se(v, a, y), s.sync(i);
4150
- }, p = (g) => f(g);
4167
+ a === "child" ? v.children ? k(v.children, 0, y) : k(v, "children", [y]) : se(v, a, y), s.sync(i);
4168
+ }, p = (m) => f(m);
4151
4169
  const d = t.watchLoadData(p);
4152
4170
  f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4153
4171
  }
@@ -4221,24 +4239,24 @@ const ki = function(t) {
4221
4239
  i._fn[s.id] = t.watchLoadData(ne((p, d) => {
4222
4240
  if (d && a.watch === !1)
4223
4241
  return i._fn[s.id]();
4224
- const g = t.$handle.loadFetchVar(G(a), p, n), y = q(_({
4242
+ const m = t.$handle.loadFetchVar(G(a), p, n), y = q(_({
4225
4243
  headers: {}
4226
- }, g), {
4244
+ }, m), {
4227
4245
  onSuccess(v, E) {
4228
4246
  if (f()) return;
4229
4247
  let Y = (B) => E ? B : j(B, "data") ? B.data : B;
4230
- const I = W(g.parse);
4248
+ const I = W(m.parse);
4231
4249
  h.Function(I) ? Y = I : I && h.String(I) && (Y = (B) => L(B, I)), Ae(Y(v, n, o)).then((B) => {
4232
4250
  l(B);
4233
4251
  });
4234
4252
  },
4235
4253
  onError(v) {
4236
- l(void 0), !f() && (u || ((E) => Ye(E.message || "fetch fail " + g.action)))(v, n, o);
4254
+ l(void 0), !f() && (u || ((E) => Ye(E.message || "fetch fail " + m.action)))(v, n, o);
4237
4255
  }
4238
4256
  });
4239
4257
  t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4240
- if (h.Function(g.action)) {
4241
- Ae(g.action(n, o)).then((v) => {
4258
+ if (h.Function(m.action)) {
4259
+ Ae(m.action(n, o)).then((v) => {
4242
4260
  y.onSuccess(v, !0);
4243
4261
  }).catch((v) => {
4244
4262
  y.onError(v);
@@ -4266,7 +4284,7 @@ const ki = function(t) {
4266
4284
  return i;
4267
4285
  }, Ei = {
4268
4286
  fetch: Ri,
4269
- loadData: ki,
4287
+ loadData: Fi,
4270
4288
  t: Si,
4271
4289
  componentValidate: Kt
4272
4290
  };
@@ -4442,16 +4460,16 @@ function Xt(t) {
4442
4460
  t.extendApi
4443
4461
  ], u = _({}, Ei), f = ei();
4444
4462
  let p = { global: {} };
4445
- const d = t.isMobile === !0, g = ie({
4463
+ const d = t.isMobile === !0, m = ie({
4446
4464
  $mobile: d
4447
4465
  }), y = Oi(), v = {}, E = {};
4448
4466
  Gi(t.attrs || {});
4449
4467
  function Y(c) {
4450
- const m = M[c];
4451
- if (Array.isArray(m))
4452
- return m.map(($) => $.api());
4453
- if (m)
4454
- return m.api();
4468
+ const g = M[c];
4469
+ if (Array.isArray(g))
4470
+ return g.map(($) => $.api());
4471
+ if (g)
4472
+ return g.api();
4455
4473
  }
4456
4474
  function I(c) {
4457
4475
  o.push(c);
@@ -4460,7 +4478,7 @@ function Xt(t) {
4460
4478
  const c = qe(...arguments);
4461
4479
  c.id && c.prop && (i[c.id] = c.prop);
4462
4480
  }
4463
- function he() {
4481
+ function de() {
4464
4482
  const c = qe(...arguments);
4465
4483
  c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(_({}, c.prop), {
4466
4484
  name: c.id
@@ -4469,41 +4487,41 @@ function Xt(t) {
4469
4487
  function Le(c) {
4470
4488
  y.use(c);
4471
4489
  }
4472
- function de() {
4490
+ function pe() {
4473
4491
  const c = qe(...arguments);
4474
4492
  if (!c.id || !c.prop) return je;
4475
- const m = U(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4476
- r[m] = Re($, b || je), f[m] = P(m), $.maker && C(f, $.maker);
4493
+ const g = U(c.id), $ = c.prop, b = $.merge === !0 ? r[g] : void 0;
4494
+ r[g] = Re($, b || je), f[g] = P(g), $.maker && C(f, $.maker);
4477
4495
  }
4478
- function k(c, m) {
4496
+ function F(c, g) {
4479
4497
  let $;
4480
4498
  if (h.String(c)) {
4481
- if ($ = c, m === void 0)
4482
- return ["form-create", "formcreate"].indexOf($) > -1 ? S() : e[$];
4499
+ if ($ = c, g === void 0)
4500
+ return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
4483
4501
  } else
4484
- $ = U(c.name), m = c;
4485
- if (!$ || !m) return;
4502
+ $ = U(c.name), g = c;
4503
+ if (!$ || !g) return;
4486
4504
  const b = U($);
4487
- e[$] = m, e[b] = m, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && de($, m.formCreateParser);
4505
+ e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && pe($, g.formCreateParser);
4488
4506
  }
4489
- function S() {
4507
+ function R() {
4490
4508
  return Qr(Te, e, i);
4491
4509
  }
4492
4510
  function N() {
4493
4511
  return Me;
4494
4512
  }
4495
- function pe(c, m) {
4496
- return h.Function(c.install) ? c.install(z, m) : h.Function(c) && c(z, m), this;
4513
+ function me(c, g) {
4514
+ return h.Function(c.install) ? c.install(z, g) : h.Function(c) && c(z, g), this;
4497
4515
  }
4498
- function z(c, m, $) {
4499
- let b = Ui(c, m || {});
4516
+ function z(c, g, $) {
4517
+ let b = Ui(c, g || {});
4500
4518
  const w = b.$refs.fc.formCreate;
4501
4519
  return w.$parent = $, qi(w.options).appendChild(b.$el), w.api();
4502
4520
  }
4503
4521
  Re(z, E);
4504
4522
  function xt(c) {
4505
- let m = _({}, t);
4506
- return c ? m.inherit = {
4523
+ let g = _({}, t);
4524
+ return c ? g.inherit = {
4507
4525
  components: e,
4508
4526
  parsers: r,
4509
4527
  directives: i,
@@ -4512,60 +4530,60 @@ function Xt(t) {
4512
4530
  useApps: o,
4513
4531
  maker: f,
4514
4532
  formulas: v,
4515
- loadData: g
4516
- } : delete m.inherit, Xt(m);
4533
+ loadData: m
4534
+ } : delete g.inherit, Xt(g);
4517
4535
  }
4518
- function Qt(c, m) {
4519
- s[c] = m;
4536
+ function Qt(c, g) {
4537
+ s[c] = g;
4520
4538
  }
4521
- function Yt(c, m) {
4522
- v[c] = m;
4539
+ function Yt(c, g) {
4540
+ v[c] = g;
4523
4541
  }
4524
- function er(c, m) {
4542
+ function er(c, g) {
4525
4543
  const $ = n[c] || {}, b = $.parsers || {};
4526
- m.parsers && Object.keys(m.parsers).forEach((w) => {
4527
- b[w] = Re(m.parsers[w], je);
4528
- }), m.name = c, n[c] = q(_(_({}, $), m), { parsers: b });
4544
+ g.parsers && Object.keys(g.parsers).forEach((w) => {
4545
+ b[w] = Re(g.parsers[w], je);
4546
+ }), g.name = c, n[c] = q(_(_({}, $), g), { parsers: b });
4529
4547
  }
4530
4548
  function Oe(c) {
4531
- c && Object.keys(M).forEach((m) => {
4532
- (Array.isArray(M[m]) ? M[m] : [M[m]]).forEach((b) => {
4549
+ c && Object.keys(M).forEach((g) => {
4550
+ (Array.isArray(M[g]) ? M[g] : [M[g]]).forEach((b) => {
4533
4551
  b.bus.$emit("$loadData." + c);
4534
4552
  });
4535
4553
  });
4536
4554
  }
4537
- function Be(c, m) {
4538
- se(g, c, m), Oe(c);
4555
+ function Be(c, g) {
4556
+ se(m, c, g), Oe(c);
4539
4557
  }
4540
- function Fe(c, m) {
4541
- const $ = (...b) => O(() => m(...b));
4558
+ function ke(c, g) {
4559
+ const $ = (...b) => O(() => g(...b));
4542
4560
  $._driver = !0, Be(c, $);
4543
4561
  }
4544
- function st(c, m) {
4562
+ function st(c, g) {
4545
4563
  const $ = (c || "").split(".");
4546
4564
  c = $.shift();
4547
4565
  const b = $.join(".");
4548
- if (j(g, c) || F(g, c, _t), g[c] !== _t) {
4549
- let w = g[c];
4550
- return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? m : w;
4566
+ if (j(m, c) || k(m, c, _t), m[c] !== _t) {
4567
+ let w = m[c];
4568
+ return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? g : w;
4551
4569
  } else
4552
- return m;
4570
+ return g;
4553
4571
  }
4554
4572
  function tr(c) {
4555
4573
  l.push(c);
4556
4574
  }
4557
4575
  function rr(c) {
4558
- delete g[c], Oe(c);
4576
+ delete m[c], Oe(c);
4559
4577
  }
4560
- function ir(c, m) {
4561
- a.push({ name: c, callback: m });
4578
+ function ir(c, g) {
4579
+ a.push({ name: c, callback: g });
4562
4580
  }
4563
4581
  function Te(c) {
4564
4582
  C(this, {
4565
4583
  id: Hi++,
4566
4584
  create: z,
4567
4585
  vm: c,
4568
- manager: Fi(t.manager),
4586
+ manager: ki(t.manager),
4569
4587
  parsers: r,
4570
4588
  providers: u,
4571
4589
  modelFields: s,
@@ -4582,7 +4600,7 @@ function Xt(t) {
4582
4600
  drivers: n,
4583
4601
  renderDriver: null,
4584
4602
  refreshData: Oe,
4585
- loadData: g,
4603
+ loadData: m,
4586
4604
  CreateNode: y,
4587
4605
  bus: new ji(),
4588
4606
  unwatch: [],
@@ -4590,8 +4608,8 @@ function Xt(t) {
4590
4608
  extendApiFn: l,
4591
4609
  fetchCache: /* @__PURE__ */ new WeakMap(),
4592
4610
  tmpData: ie({})
4593
- }), a.forEach((m) => {
4594
- this.bus.$on(m.name, m.callback);
4611
+ }), a.forEach((g) => {
4612
+ this.bus.$on(g.name, g.callback);
4595
4613
  }), V(() => {
4596
4614
  T(this.options, () => {
4597
4615
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
@@ -4604,52 +4622,52 @@ function Xt(t) {
4604
4622
  this.initOptions(), this.$handle.api.refresh();
4605
4623
  }, { deep: !0, flush: "sync" })), this.vm.$props.driver && (this.renderDriver = typeof this.vm.$props.driver == "object" ? this.vm.$props.driver : this.drivers[this.vm.$props.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.fc.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4606
4624
  },
4607
- targetFormDriver(c, ...m) {
4608
- if (this.bus.$emit(c, ...m), this.renderDriver && this.renderDriver[c])
4609
- return O(() => this.renderDriver[c](...m));
4625
+ targetFormDriver(c, ...g) {
4626
+ if (this.bus.$emit(c, ...g), this.renderDriver && this.renderDriver[c])
4627
+ return O(() => this.renderDriver[c](...g));
4610
4628
  },
4611
- t(c, m, $) {
4629
+ t(c, g, $) {
4612
4630
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4613
- return b == null && (b = ""), b && m && Object.keys(m).forEach((w) => {
4631
+ return b == null && (b = ""), b && g && Object.keys(g).forEach((w) => {
4614
4632
  const A = new RegExp(`{${w}}`, "g");
4615
- b = b.replace(A, m[w]);
4633
+ b = b.replace(A, g[w]);
4616
4634
  }), b;
4617
4635
  },
4618
4636
  globalDataDriver(c) {
4619
- let m = c.split(".");
4620
- const $ = m.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4637
+ let g = c.split(".");
4638
+ const $ = g.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4621
4639
  if (b) {
4622
4640
  if (b.type === "static")
4623
- return L(b.data, m);
4641
+ return L(b.data, g);
4624
4642
  {
4625
4643
  let w;
4626
4644
  const A = this.fetchCache.get(b);
4627
4645
  if (A) {
4628
- if (A.status && (w = L(A.data, m)), !A.loading)
4646
+ if (A.status && (w = L(A.data, g)), !A.loading)
4629
4647
  return w;
4630
4648
  A.loading = !1, this.fetchCache.set(b, A);
4631
4649
  } else
4632
4650
  this.fetchCache.set(b, { status: !1 });
4633
- const R = ne(() => {
4651
+ const S = ne(() => {
4634
4652
  ee();
4635
4653
  const J = this.fetchCache.get(b);
4636
4654
  this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (J && (J.loading = !0, this.fetchCache.set(b, J)), this.bus.$emit("$loadData.$globalData." + $)) : this.fetchCache.delete(b);
4637
- }, b.wait || 600), be = (J) => {
4655
+ }, b.wait || 600), ae = (J) => {
4638
4656
  this.fetchCache.set(b, { status: !0, data: J }), this.bus.$emit("$loadData.$globalData." + $);
4639
- }, ae = (J, le) => {
4640
- if (le && b.watch === !1)
4657
+ }, le = (J, ue) => {
4658
+ if (ue && b.watch === !1)
4641
4659
  return ee();
4642
- if (le) {
4643
- R();
4660
+ if (ue) {
4661
+ S();
4644
4662
  return;
4645
4663
  }
4646
- const ue = this.$handle.loadFetchVar(We(b), J);
4647
- ue.targetRule = this.targetRule, this.$handle.api.fetch(ue).then((te) => {
4648
- be(te);
4664
+ const fe = this.$handle.loadFetchVar(We(b), J);
4665
+ fe.targetRule = this.targetRule, this.$handle.api.fetch(fe).then((te) => {
4666
+ ae(te);
4649
4667
  }).catch((te) => {
4650
- be(null);
4668
+ ae(null);
4651
4669
  });
4652
- }, ee = this.watchLoadData(ae);
4670
+ }, ee = this.watchLoadData(le);
4653
4671
  return b.watch === !1 && ee(), this.unwatch.push(ee), w;
4654
4672
  }
4655
4673
  }
@@ -4659,28 +4677,28 @@ function Xt(t) {
4659
4677
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4660
4678
  },
4661
4679
  globalLanguageDriver(c) {
4662
- let m = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4663
- if (m && (b = O(() => m(c))), b == null && $ && typeof $ == "object" && (b = L($, c)), b == null) {
4680
+ let g = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4681
+ if (g && (b = O(() => g(c))), b == null && $ && typeof $ == "object" && (b = L($, c)), b == null) {
4664
4682
  const w = this.options.value.language || {}, A = this.getLocale();
4665
4683
  b = L(w[A] || {}, c), b == null && (b = L(Ni[A] || {}, c));
4666
4684
  }
4667
4685
  return b;
4668
4686
  },
4669
4687
  globalVarDriver(c) {
4670
- let m = c.split(".");
4671
- const $ = m.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4688
+ let g = c.split(".");
4689
+ const $ = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4672
4690
  if (b) {
4673
4691
  const w = h.Function(b) ? b : W(b.handle);
4674
4692
  if (w) {
4675
- let A = w((...R) => this.$handle.api.getData(...R), this.$handle.api);
4676
- return L(A, m);
4693
+ let A = w((...S) => this.$handle.api.getData(...S), this.$handle.api);
4694
+ return L(A, g);
4677
4695
  }
4678
4696
  }
4679
4697
  },
4680
- setData(c, m, $) {
4681
- $ ? Be(c, m) : (se(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
4698
+ setData(c, g, $) {
4699
+ $ ? Be(c, g) : (se(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4682
4700
  },
4683
- getLoadData(c, m) {
4701
+ getLoadData(c, g) {
4684
4702
  let $ = null;
4685
4703
  if (c != null) {
4686
4704
  let b = c.split(".");
@@ -4710,36 +4728,36 @@ function Xt(t) {
4710
4728
  }
4711
4729
  $ && b.length && ($ = L($, b));
4712
4730
  }
4713
- return $ == null || $ === "" ? m : $;
4731
+ return $ == null || $ === "" ? g : $;
4714
4732
  },
4715
- watchLoadData(c, m) {
4733
+ watchLoadData(c, g) {
4716
4734
  let $ = {};
4717
- const b = (R) => {
4735
+ const b = (S) => {
4718
4736
  this.get || (this.get = w), O(() => {
4719
- c(w, R);
4737
+ c(w, S);
4720
4738
  }), this.get === w && (this.get = void 0);
4721
- }, w = (R, be) => {
4722
- let ae;
4723
- if (typeof R == "object" && (ae = R.getValue, R = R.id), $[R])
4724
- return $[R].val;
4725
- const ee = ge(() => ae ? ae() : this.getLoadData(R, be)), J = R.split("."), le = J.shift(), ue = J.shift() || "", te = ne(() => {
4726
- const fe = ae ? ae() : this.getLoadData(R, be);
4727
- if ($[R])
4728
- ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[R].val || JSON.stringify(fe) !== JSON.stringify($[R].val)) && ($[R].val = fe, b(!0));
4739
+ }, w = (S, ae) => {
4740
+ let le;
4741
+ if (typeof S == "object" && (le = S.getValue, S = S.id), $[S])
4742
+ return $[S].val;
4743
+ const ee = ye(() => le ? le() : this.getLoadData(S, ae)), J = S.split("."), ue = J.shift(), fe = J.shift() || "", te = ne(() => {
4744
+ const ce = le ? le() : this.getLoadData(S, ae);
4745
+ if ($[S])
4746
+ ((ce instanceof Function || h.Object(ce) || Array.isArray(ce)) && ce === $[S].val || JSON.stringify(ce) !== JSON.stringify($[S].val)) && ($[S].val = ce, b(!0));
4729
4747
  else return;
4730
- }, m || 0), sr = T(ee, (fe) => {
4748
+ }, g || 0), sr = T(ee, (ce) => {
4731
4749
  te();
4732
4750
  });
4733
- return this.bus.$on("$loadData." + le, te), ue && this.bus.$on("$loadData." + le + "." + ue, te), $[R] = {
4751
+ return this.bus.$on("$loadData." + ue, te), fe && this.bus.$on("$loadData." + ue + "." + fe, te), $[S] = {
4734
4752
  fn: () => {
4735
- this.bus.$off("$loadData." + le, te), ue && this.bus.$off("$loadData." + le + "." + ue, te), sr();
4753
+ this.bus.$off("$loadData." + ue, te), fe && this.bus.$off("$loadData." + ue + "." + fe, te), sr();
4736
4754
  },
4737
4755
  val: ee.value
4738
4756
  }, ee.value;
4739
4757
  };
4740
4758
  b(!1);
4741
4759
  const A = () => {
4742
- Object.keys($).forEach((R) => $[R].fn()), $ = {};
4760
+ Object.keys($).forEach((S) => $[S].fn()), $ = {};
4743
4761
  };
4744
4762
  return this.unwatch.push(A), A;
4745
4763
  },
@@ -4755,15 +4773,15 @@ function Xt(t) {
4755
4773
  globalEvent: {},
4756
4774
  globalData: {}
4757
4775
  }, G(p));
4758
- const m = this.isSub();
4759
- m && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$props.option || {});
4776
+ const g = this.isSub();
4777
+ g && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$props.option || {});
4760
4778
  const $ = this.api();
4761
- this.targetFormDriver("initOptions", c, { api: $, isSubForm: m }), this.updateOptions(c);
4779
+ this.targetFormDriver("initOptions", c, { api: $, isSubForm: g }), this.updateOptions(c);
4762
4780
  },
4763
- mergeOptions(c, m, $) {
4764
- return m = _({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4765
- delete m[b];
4766
- }), m.global && (c.global = Xr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4781
+ mergeOptions(c, g, $) {
4782
+ return g = _({}, g || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4783
+ delete g[b];
4784
+ }), g.global && (c.global = Xr(c.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], c), c;
4767
4785
  },
4768
4786
  updateOptions(c) {
4769
4787
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4799,27 +4817,27 @@ function Xt(t) {
4799
4817
  isMobile: d,
4800
4818
  extendApi: tr,
4801
4819
  getData: st,
4802
- setDataDriver: Fe,
4820
+ setDataDriver: ke,
4803
4821
  setData: Be,
4804
4822
  removeData: rr,
4805
4823
  refreshData: Oe,
4806
4824
  maker: f,
4807
- component: k,
4825
+ component: F,
4808
4826
  directive: B,
4809
4827
  setModelField: Qt,
4810
4828
  setFormula: Yt,
4811
4829
  setDriver: er,
4812
- register: he,
4830
+ register: de,
4813
4831
  $vnode: N,
4814
- parser: de,
4815
- use: pe,
4832
+ parser: pe,
4833
+ use: me,
4816
4834
  factory: xt,
4817
4835
  componentAlias: Le,
4818
4836
  copyRule: Bt,
4819
4837
  copyRules: Tt,
4820
4838
  mergeRule: Q,
4821
4839
  fetch: Ht,
4822
- $form: S,
4840
+ $form: R,
4823
4841
  parseFn: W,
4824
4842
  parseJson: Dt,
4825
4843
  toJson: Ce,
@@ -4831,26 +4849,28 @@ function Xt(t) {
4831
4849
  function nr(c) {
4832
4850
  C(c, {
4833
4851
  create: z,
4834
- install(m, $) {
4835
- if (p = _(_({}, p), $ || {}), m._installedFormCreate === !0) return;
4836
- m._installedFormCreate = !0;
4837
- const b = function(A, R = {}) {
4838
- return z(A, R, this);
4852
+ install(g, $) {
4853
+ p = _(_({}, p), $ || {});
4854
+ const b = `_installedFormCreate${d ? "Mobile" : ""}_${t.ui}`;
4855
+ if (g[b] === !0) return;
4856
+ g[b] = !0;
4857
+ const w = function(S, ae = {}) {
4858
+ return z(S, ae, this);
4839
4859
  };
4840
- ot(b), m.prototype.$formCreate = b;
4841
- const w = S();
4842
- m.component(w.name, w), m.component("FcFragment", N()), o.forEach((A) => {
4843
- O(() => A(c, m));
4860
+ ot(w), g.prototype.$formCreate = w;
4861
+ const A = R();
4862
+ g.component(A.name, A), g.component("FcFragment", N()), o.forEach((S) => {
4863
+ O(() => S(c, g));
4844
4864
  });
4845
4865
  }
4846
4866
  });
4847
4867
  }
4848
- if (ot(E), nr(E), Fe("$cookie", Li), Fe("$localStorage", Bi), Fe("$sessionStorage", Ti), y.use({ fragment: "fcFragment" }), t.install && z.use(t), de(Ai), t.inherit) {
4868
+ if (ot(E), nr(E), ke("$cookie", Li), ke("$localStorage", Bi), ke("$sessionStorage", Ti), y.use({ fragment: "fcFragment" }), t.install && z.use(t), pe(Ai), t.inherit) {
4849
4869
  const c = t.inherit;
4850
- 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(g, c.loadData), c.formulas && C(v, c.formulas);
4870
+ 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);
4851
4871
  }
4852
- const ke = S();
4853
- return Re(ke, E), Object.defineProperties(ke, {
4872
+ const Fe = R();
4873
+ return Re(Fe, E), Object.defineProperties(Fe, {
4854
4874
  fetch: {
4855
4875
  get() {
4856
4876
  return E.fetch;
@@ -4859,7 +4879,7 @@ function Xt(t) {
4859
4879
  E.fetch = c;
4860
4880
  }
4861
4881
  }
4862
- }), ke.util = E, ke;
4882
+ }), Fe.util = E, Fe;
4863
4883
  }
4864
4884
  function Ue(t) {
4865
4885
  if (h.Date(t))
@@ -5121,7 +5141,7 @@ const rn = {
5121
5141
  return !(!e.title && !e.native || X(e.show));
5122
5142
  },
5123
5143
  makeInfo(t, e, r) {
5124
- var u, f, p, d, g, y;
5144
+ var u, f, p, d, m, y;
5125
5145
  const i = _({}, t.title), s = _({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5126
5146
  title: (f = (u = r.refRule) == null ? void 0 : u.__$title) == null ? void 0 : f.value,
5127
5147
  rule: r.rule,
@@ -5136,7 +5156,7 @@ const rn = {
5136
5156
  };
5137
5157
  delete v.props.icon, delete v.props.show, delete v.props.info, delete v.props.align, delete v.props.native;
5138
5158
  const E = "content";
5139
- s.info && !j(v.props, E) && (v.props[E] = (y = (g = r.refRule) == null ? void 0 : g.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(x([s, v]), [
5159
+ s.info && !j(v.props, E) && (v.props[E] = (y = (m = r.refRule) == null ? void 0 : m.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(x([s, v]), [
5140
5160
  this.$r({
5141
5161
  type: "icon",
5142
5162
  props: { type: s.icon === !0 ? Ie.infoIcon : s.icon, size: 16 },
@@ -5270,7 +5290,7 @@ an(oe);
5270
5290
  un(oe);
5271
5291
  fn(oe);
5272
5292
  ln(oe);
5273
- function Ft(t, e) {
5293
+ function kt(t, e) {
5274
5294
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5275
5295
  }
5276
5296
  function cn(t, e) {
@@ -5353,11 +5373,11 @@ function cn(t, e) {
5353
5373
  }
5354
5374
  },
5355
5375
  submitBtnProps: (r = {}) => {
5356
- let i = Ft(e.options.submitBtn, !0);
5376
+ let i = kt(e.options.submitBtn, !0);
5357
5377
  C(i, r), e.options.submitBtn = i, t.refreshOptions();
5358
5378
  },
5359
5379
  resetBtnProps: (r = {}) => {
5360
- let i = Ft(e.options.resetBtn, !1);
5380
+ let i = kt(e.options.resetBtn, !1);
5361
5381
  C(i, r), e.options.resetBtn = i, t.refreshOptions();
5362
5382
  },
5363
5383
  submit(r, i) {
@@ -5378,24 +5398,28 @@ function cn(t, e) {
5378
5398
  const Zt = {
5379
5399
  name: "required",
5380
5400
  load(t, e, r) {
5381
- var s, n;
5382
5401
  const i = hn(t.getValue());
5402
+ let s;
5383
5403
  if (i.required === !1)
5384
5404
  t.clearProp(), r.clearValidateState([e.field]);
5385
5405
  else {
5386
- const o = _({
5406
+ const n = _({
5387
5407
  required: !0,
5388
- validator(l, u, f) {
5389
- h.empty(u) ? f(o.message) : f();
5408
+ validator(a, l, u) {
5409
+ o(), h.empty(l) ? u(n.message) : u();
5390
5410
  }
5391
- }, i), a = (n = (s = e.__fc__.refRule) == null ? void 0 : s.__$title) == null ? void 0 : n.value;
5392
- if (!o.message)
5393
- o.message = r.t("required", { title: a }) || a + (r.getLocale() === "en" ? " is required" : "不能为空");
5394
- else {
5395
- const l = o.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
5396
- l && (o.message = r.t(l[1], { title: a }));
5397
- }
5398
- t.getProp().validate = [o];
5411
+ }, i), o = () => {
5412
+ var l, u;
5413
+ const a = (u = (l = e.__fc__.refRule) == null ? void 0 : l.__$title) == null ? void 0 : u.value;
5414
+ if (s !== a)
5415
+ if (s = a, !i.message)
5416
+ n.message = r.t("required", { title: a }) || a + (r.getLocale() === "en" ? " is required" : "不能为空");
5417
+ else {
5418
+ const f = i.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
5419
+ f && (n.message = r.t(f[1], { title: a }));
5420
+ }
5421
+ };
5422
+ o(), t.getProp().validate = [n];
5399
5423
  }
5400
5424
  r.sync(e);
5401
5425
  },
@@ -5418,7 +5442,7 @@ function dn(t) {
5418
5442
  function pn() {
5419
5443
  return Xt({
5420
5444
  ui: "view-design",
5421
- version: "2.7.20",
5445
+ version: "2.7.21",
5422
5446
  manager: rn,
5423
5447
  install: dn,
5424
5448
  extendApi: cn,