@form-create/element-ui 2.7.19 → 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,12 +1,12 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/element-ui v2.7.19
3
+ * @form-create/element-ui 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/
7
7
  * Released under the MIT License.
8
8
  */
9
- (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode('._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-frame .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-frame .fc-files:hover .fc-upload-cover{opacity:1}._fc-frame .el-upload{display:block}._fc-frame .fc-upload-btn,.fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-upload .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-upload .fc-files:hover .fc-upload-cover{opacity:1}._fc-upload .fc-upload-btn,._fc-upload .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-group{display:flex;min-height:42px;justify-content:center;flex-direction:column}._fc-group-disabled ._fc-group-btn,._fc-group-disabled ._fc-group-add{cursor:not-allowed}._fc-group-handle{display:flex;flex-direction:row;position:absolute;bottom:-15px;right:30px;border-radius:15px;border:1px dashed #d9d9d9;padding:3px 8px;background-color:#fff}._fc-group-btn{cursor:pointer}._fc-group-idx{position:absolute;bottom:-15px;left:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#eee;border-radius:15px;font-weight:700}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{position:relative;display:flex;flex-direction:column;border:1px dashed #d9d9d9;padding:20px 20px 25px;margin:5px 5px 25px;border-radius:5px}._fc-group-arrow{position:relative;width:20px;height:20px}._fc-group-arrow:before{content:"";position:absolute;top:8px;left:5px;width:9px;height:9px;border-left:2px solid #999;border-top:2px solid #999}._fc-group-arrow:before{transform:rotate(45deg)}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{width:20px;height:20px;position:relative;cursor:pointer}._fc-group-plus-minus:before,._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:60%;height:2px;background-color:#409eff;transform:translate(-50%,-50%)}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{cursor:pointer;width:25px;height:25px;border:1px solid rgb(64 158 255 / 50%);border-radius:15px}._fc-group-add._fc-group-plus-minus:before,._fc-group-add._fc-group-plus-minus:after{width:50%}.form-create .form-create .el-form-item{margin-bottom:22px}.form-create{width:100%}.fc-form-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.form-create.is-preview .fc-clock,.form-create .fc-none,.form-create.is-preview .el-form-item.is-required>.el-form-item__label-wrap>.el-form-item__label:before,.form-create.is-preview .el-form-item.is-required>.el-form-item__label:before{display:none!important}.fc-wrap-right>.el-form-item__label{display:flex;justify-content:flex-end}.fc-wrap-left>.el-form-item__label{display:flex;justify-content:flex-start}.fc-wrap-top.el-form-item{display:block}.fc-wrap-top.el-form-item>.el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.fc-wrap-top.el-form-item>.el-form-item__content{margin-left:0!important}.el-form--large .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small .fc-wrap-top.el-form-item>.el-form-item__label{line-height:20px;margin-bottom:4px}.fc-form-footer{margin-top:12px}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
9
+ (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode('._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-frame .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-frame .fc-files:hover .fc-upload-cover{opacity:1}._fc-frame .el-upload{display:block}._fc-frame .fc-upload-btn,.fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-upload .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-upload .fc-files:hover .fc-upload-cover{opacity:1}._fc-upload .fc-upload-btn,._fc-upload .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-group{display:flex;min-height:42px;justify-content:center;flex-direction:column}._fc-group-disabled ._fc-group-btn,._fc-group-disabled ._fc-group-add{cursor:not-allowed}._fc-group-handle{display:flex;flex-direction:row;position:absolute;bottom:-15px;right:30px;border-radius:15px;border:1px dashed #d9d9d9;padding:3px 8px;background-color:#fff}._fc-group-btn{cursor:pointer}._fc-group-idx{position:absolute;bottom:-15px;left:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#eee;border-radius:15px;font-weight:700}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{position:relative;display:flex;flex-direction:column;border:1px dashed #d9d9d9;padding:20px 20px 25px;margin:5px 5px 25px;border-radius:5px}._fc-group-arrow{position:relative;width:20px;height:20px}._fc-group-arrow:before{content:"";position:absolute;top:8px;left:5px;width:9px;height:9px;border-left:2px solid #999;border-top:2px solid #999}._fc-group-arrow:before{transform:rotate(45deg)}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{width:20px;height:20px;position:relative;cursor:pointer}._fc-group-plus-minus:before,._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:60%;height:2px;background-color:#409eff;transform:translate(-50%,-50%)}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{cursor:pointer;width:25px;height:25px;border:1px solid rgb(64 158 255 / 50%);border-radius:15px}._fc-group-add._fc-group-plus-minus:before,._fc-group-add._fc-group-plus-minus:after{width:50%}.form-create .form-create .el-form-item{margin-bottom:22px}.form-create{width:100%}.fc-form-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.form-create.is-preview .fc-clock,.form-create .fc-none,.form-create.is-preview .el-form-item.is-required>.el-form-item__label-wrap>.el-form-item__label:before,.form-create.is-preview .el-form-item.is-required>.el-form-item__label:before{display:none!important}.fc-wrap-right>.el-form-item__label{display:flex;justify-content:flex-end}.fc-wrap-left>.el-form-item__label{display:flex;justify-content:flex-start}.fc-wrap-top.el-form-item{display:block}.fc-wrap-top.el-form-item>.el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left;float:unset}.fc-wrap-top.el-form-item>.el-form-item__content{margin-left:0!important}.el-form--large .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small .fc-wrap-top.el-form-item>.el-form-item__label{line-height:20px;margin-bottom:4px}.fc-form-footer{margin-top:12px}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
10
  var nr = Object.defineProperty, sr = Object.defineProperties;
11
11
  var or = Object.getOwnPropertyDescriptors;
12
12
  var at = Object.getOwnPropertySymbols;
@@ -19,7 +19,7 @@ var lt = (t, e, r) => e in t ? nr(t, e, { enumerable: !0, configurable: !0, writ
19
19
  lr.call(e, r) && lt(t, r, e[r]);
20
20
  return t;
21
21
  }, q = (t, e) => sr(t, or(e));
22
- import $e, { getCurrentInstance as ur, provide as fr, inject as cr, toRefs as ut, reactive as ne, onBeforeMount as hr, watch as N, onMounted as dr, onBeforeUnmount as pr, onUpdated as mr, nextTick as P, markRaw as ge, computed as ye, toRef as Ve, ref as gr } from "vue";
22
+ import be, { getCurrentInstance as ur, provide as fr, inject as cr, toRefs as ut, reactive as ne, onBeforeMount as hr, watch as N, onMounted as dr, onBeforeUnmount as pr, onUpdated as mr, nextTick as P, markRaw as ye, computed as $e, toRef as Ve, ref as gr } from "vue";
23
23
  function yr(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
@@ -912,11 +912,11 @@ const Pr = "fcUpload", Tr = {
912
912
  }), this.$emit("fc.el", this.$refs.upload);
913
913
  }
914
914
  };
915
- function F(t, e, r) {
916
- $e.set(t, e, r);
915
+ function k(t, e, r) {
916
+ be.set(t, e, r);
917
917
  }
918
918
  function ie(t, e) {
919
- ($e.del || $e.delete)(t, e);
919
+ (be.del || be.delete)(t, e);
920
920
  }
921
921
  function Oe(t, e = {}, r) {
922
922
  let i = !1;
@@ -926,19 +926,19 @@ function Oe(t, e = {}, r) {
926
926
  if ((i = Array.isArray(n)) || h.Object(n)) {
927
927
  let o = t[s] === void 0;
928
928
  if (i)
929
- i = !1, o && F(t, s, []);
929
+ i = !1, o && k(t, s, []);
930
930
  else if (n._clone && r !== void 0)
931
931
  if (r)
932
- n = n.getRule(), o && F(t, s, {});
932
+ n = n.getRule(), o && k(t, s, {});
933
933
  else {
934
- F(t, s, n._clone());
934
+ k(t, s, n._clone());
935
935
  continue;
936
936
  }
937
937
  else
938
- o && F(t, s, {});
938
+ o && k(t, s, {});
939
939
  t[s] = Oe(t[s], n, r);
940
940
  } else
941
- 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));
941
+ k(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
942
942
  }
943
943
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
944
944
  }
@@ -948,7 +948,7 @@ function K(t) {
948
948
  const Br = Object.assign || function(t) {
949
949
  for (let e, r = 1; r < arguments.length; r++)
950
950
  for (let i in e = arguments[r], e)
951
- Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
951
+ Object.prototype.hasOwnProperty.call(e, i) && k(t, i, e[i]);
952
952
  return t;
953
953
  };
954
954
  function C() {
@@ -972,7 +972,7 @@ function Lr(t) {
972
972
  function Ae(t) {
973
973
  return Lr(t) ? t : Promise.resolve(t);
974
974
  }
975
- function be(t) {
975
+ function ve(t) {
976
976
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
977
977
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
978
978
  }
@@ -1058,8 +1058,8 @@ function Ie() {
1058
1058
  function oe(t, e, r) {
1059
1059
  let i = t, s;
1060
1060
  return (e || "").split(".").forEach((n) => {
1061
- s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
1062
- }), F(i, s, r), i;
1061
+ s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1062
+ }), k(i, s, r), i;
1063
1063
  }
1064
1064
  const Ur = "fcGroup", Hr = {
1065
1065
  name: Ur,
@@ -1598,9 +1598,9 @@ function Re() {
1598
1598
  function Se(t, e) {
1599
1599
  return Object.setPrototypeOf(t, e), t;
1600
1600
  }
1601
- const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1601
+ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, he = {
1602
1602
  "==": (t, e) => JSON.stringify(t) === JSON.stringify(dt(t, e)),
1603
- "!=": (t, e) => !ce["=="](t, e),
1603
+ "!=": (t, e) => !he["=="](t, e),
1604
1604
  ">": (t, e) => t > e,
1605
1605
  ">=": (t, e) => t >= e,
1606
1606
  "<": (t, e) => t < e,
@@ -1609,13 +1609,13 @@ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1609
1609
  return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
1610
1610
  },
1611
1611
  notOn(t, e) {
1612
- return !ce.on(t, e);
1612
+ return !he.on(t, e);
1613
1613
  },
1614
1614
  in(t, e) {
1615
1615
  return e && e.indexOf && e.indexOf(t) > -1;
1616
1616
  },
1617
1617
  notIn(t, e) {
1618
- return !ce.in(t, e);
1618
+ return !he.in(t, e);
1619
1619
  },
1620
1620
  between(t, e) {
1621
1621
  return t > e[0] && t < e[1];
@@ -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
- }), g = new t(n), y = g.api(), _ = p.value, k = () => {
1743
+ }), m = new t(n), y = m.api(), _ = p.value, F = () => {
1744
1744
  if (o) {
1745
1745
  const E = je(n, o);
1746
1746
  if (E) {
1747
- let R;
1748
- _ ? (R = H(E.getSubForm()), R.push(y)) : R = y, E.subForm(R);
1747
+ let S;
1748
+ _ ? (S = H(E.getSubForm()), S.push(y)) : S = y, E.subForm(S);
1749
1749
  }
1750
1750
  }
1751
1751
  }, G = () => {
1752
1752
  const E = je(n, o);
1753
1753
  if (E)
1754
1754
  if (_) {
1755
- const R = H(E.getSubForm()), M = R.indexOf(y);
1756
- M > -1 && R.splice(M, 1);
1755
+ const S = H(E.getSubForm()), M = S.indexOf(y);
1756
+ M > -1 && S.splice(M, 1);
1757
1757
  } else
1758
1758
  E.subForm();
1759
1759
  };
@@ -1761,52 +1761,52 @@ function Zr(t, e, r) {
1761
1761
  hr(() => {
1762
1762
  N(() => {
1763
1763
  let E = "";
1764
- const R = s.option && s.option.globalClass || {};
1765
- Object.keys(R).forEach((M) => {
1766
- let me = "";
1767
- R[M].style && Object.keys(R[M].style).forEach((W) => {
1768
- me += be(W) + ":" + R[M].style[W] + ";";
1769
- }), R[M].content && (me += R[M].content + ";"), me && (E += `.${M}{${me}}`);
1764
+ const S = s.option && s.option.globalClass || {};
1765
+ Object.keys(S).forEach((M) => {
1766
+ let ge = "";
1767
+ S[M].style && Object.keys(S[M].style).forEach((W) => {
1768
+ ge += ve(W) + ":" + S[M].style[W] + ";";
1769
+ }), S[M].content && (ge += S[M].content + ";"), ge && (E += `.${M}{${ge}}`);
1770
1770
  }), s.option && s.option.style && (E += s.option.style), A || (A = document.createElement("style"), A.type = "text/css", document.head.appendChild(A)), A.innerHTML = E || "";
1771
1771
  }, () => {
1772
1772
  });
1773
1773
  });
1774
1774
  const L = se(() => {
1775
- g.bus.$emit("$loadData.$topForm");
1776
- }, 100), de = se(function() {
1777
- g.bus.$emit("$loadData.$scopeForm");
1775
+ m.bus.$emit("$loadData.$topForm");
1776
+ }, 100), pe = se(function() {
1777
+ m.bus.$emit("$loadData.$scopeForm");
1778
1778
  }, 100), Pe = se(() => {
1779
- g.bus.$emit("$loadData.$form");
1780
- }, 100), pe = (E) => {
1781
- g.bus.$emit("change-$form." + E);
1779
+ m.bus.$emit("$loadData.$form");
1780
+ }, 100), me = (E) => {
1781
+ m.bus.$emit("change-$form." + E);
1782
1782
  };
1783
1783
  return dr(() => {
1784
- o && (y.top.bus.$on("$loadData.$form", L), y.top.bus.$on("change", pe)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", de), g.mounted();
1784
+ o && (y.top.bus.$on("$loadData.$form", L), y.top.bus.$on("change", me)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", pe), m.mounted();
1785
1785
  }), pr(() => {
1786
- o && (y.top.bus.$off("$loadData.$form", L), y.top.bus.$off("change", pe)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", de), G(), d.destroyed = !0, g.unmount(), A && (A.parentNode || A.parentElement) && document.head.removeChild(A);
1786
+ o && (y.top.bus.$off("$loadData.$form", L), y.top.bus.$off("change", me)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", pe), G(), d.destroyed = !0, m.unmount(), A && (A.parentNode || A.parentElement) && document.head.removeChild(A);
1787
1787
  }), mr(() => {
1788
- g.updated();
1788
+ m.updated();
1789
1789
  }), N(f, (E) => {
1790
- E ? k() : G();
1790
+ E ? F() : G();
1791
1791
  }, { immediate: !0 }), N(() => s.option, () => {
1792
- g.initOptions(), y.refresh();
1792
+ m.initOptions(), y.refresh();
1793
1793
  }, { deep: !0, flush: "sync" }), N(() => [...l.value], (E) => {
1794
- g.$handle.isBreakWatch() || E.length === d.renderRule.length && E.every((R) => d.renderRule.indexOf(R) > -1) || (g.$handle.updateAppendData(), g.$handle.reloadRule(l.value), n.renderRule());
1794
+ m.$handle.isBreakWatch() || E.length === d.renderRule.length && E.every((S) => d.renderRule.indexOf(S) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1795
1795
  }), N(() => [s.disabled, s.preview], () => {
1796
1796
  y.refresh();
1797
1797
  }), N(u, (E) => {
1798
1798
  we(E || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(E || {}) : y.setValue(E || {}));
1799
1799
  }, { deep: !0, flush: "post" }), N(() => s.index, () => {
1800
- y.coverValue({}), g.$handle.updateAppendData(), P(() => {
1800
+ y.coverValue({}), m.$handle.updateAppendData(), P(() => {
1801
1801
  P(() => {
1802
1802
  y.clearValidateState();
1803
1803
  });
1804
1804
  });
1805
1805
  }, { flush: "sync" }), q(v({
1806
- fc: ge(g),
1807
- parent: o && ge(o),
1808
- top: ge(a),
1809
- fapi: ge(y)
1806
+ fc: ye(m),
1807
+ parent: o && ye(o),
1808
+ top: ye(a),
1809
+ fapi: ye(y)
1810
1810
  }, ut(d)), {
1811
1811
  getGroupInject: () => je(n, o),
1812
1812
  refresh() {
@@ -1817,9 +1817,9 @@ function Zr(t, e, r) {
1817
1817
  },
1818
1818
  updateValue(E) {
1819
1819
  if (d.destroyed) return;
1820
- const R = we(E);
1821
- d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", E), P(() => {
1822
- Pe(), o ? f.value || de() : (L(), de());
1820
+ const S = we(E);
1821
+ d.updateValue !== S && (d.updateValue = S, n.$emit("update:value", E), P(() => {
1822
+ Pe(), o ? f.value || pe() : (L(), pe());
1823
1823
  }));
1824
1824
  }
1825
1825
  });
@@ -1855,7 +1855,7 @@ C(rt.prototype, {
1855
1855
  return this._data;
1856
1856
  },
1857
1857
  setProp(t, e) {
1858
- return F(this._data, t, e), this;
1858
+ return k(this._data, t, e), this;
1859
1859
  },
1860
1860
  _clone() {
1861
1861
  const t = new this.constructor();
@@ -1955,7 +1955,7 @@ function ti(t) {
1955
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
- F(f.rule, o, a), t.$render.clearCache(f);
1958
+ k(f.rule, o, a), t.$render.clearCache(f);
1959
1959
  });
1960
1960
  });
1961
1961
  }
@@ -2048,7 +2048,7 @@ function ti(t) {
2048
2048
  if (l) {
2049
2049
  const u = j(n, a);
2050
2050
  l.forEach((f) => {
2051
- F(f.rule, "value", u ? n[a] : void 0);
2051
+ k(f.rule, "value", u ? n[a] : void 0);
2052
2052
  }), delete o[a];
2053
2053
  }
2054
2054
  }), C(t.appendData, o);
@@ -2061,7 +2061,7 @@ function ti(t) {
2061
2061
  const l = t.fieldCtx[a];
2062
2062
  if (!l) return t.appendData[a] = o[a];
2063
2063
  l.forEach((u) => {
2064
- F(u.rule, "value", o[a]);
2064
+ k(u.rule, "value", o[a]);
2065
2065
  });
2066
2066
  });
2067
2067
  }, !0);
@@ -2125,7 +2125,7 @@ function ti(t) {
2125
2125
  disabled(n, o) {
2126
2126
  e(o).forEach((a) => {
2127
2127
  t.getCtxs(a).forEach((l) => {
2128
- F(l.rule.props, "disabled", !!n);
2128
+ k(l.rule.props, "disabled", !!n);
2129
2129
  });
2130
2130
  }), t.refresh();
2131
2131
  },
@@ -2183,7 +2183,7 @@ function ti(t) {
2183
2183
  t.$manager.updateOptions(t.options), s.refresh();
2184
2184
  },
2185
2185
  hideForm: (n) => {
2186
- F(t.vm, "isShow", !n);
2186
+ k(t.vm, "isShow", !n);
2187
2187
  },
2188
2188
  changeStatus: () => t.changeStatus,
2189
2189
  clearChangeStatus: () => {
@@ -2242,7 +2242,7 @@ function ti(t) {
2242
2242
  },
2243
2243
  setEffect(n, o, a) {
2244
2244
  const l = t.getCtx(n);
2245
- l && o && (o[0] === "$" && (o = o.substr(1)), j(l.rule, "$" + o) && F(l.rule, "$" + o, a), j(l.rule, "effect") || F(l.rule, "effect", {}), F(l.rule.effect, o, a));
2245
+ l && o && (o[0] === "$" && (o = o.substr(1)), j(l.rule, "$" + o) && k(l.rule, "$" + o, a), j(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2246
2246
  },
2247
2247
  clearEffectData(n, o) {
2248
2248
  const a = t.getCtx(n);
@@ -2329,7 +2329,7 @@ function ti(t) {
2329
2329
  const l = s.getChildrenRuleList(n);
2330
2330
  t.deferSyncValue(() => {
2331
2331
  l.forEach((u) => {
2332
- j(o, u.field) ? F(u, "value", o[u.field]) : a && F(u, "value", void 0);
2332
+ j(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2333
2333
  });
2334
2334
  });
2335
2335
  },
@@ -2346,6 +2346,13 @@ function ti(t) {
2346
2346
  }).catch(a) : o(l.data) : o(t.fc.loadData[n]);
2347
2347
  });
2348
2348
  },
2349
+ emitGlobalEvent(n, ...o) {
2350
+ const a = s.getGlobalEvent(n);
2351
+ if (a) {
2352
+ const l = t.getInjectData({}, void 0);
2353
+ return l.args = [...o], o.unshift(l), a.apply(null, o);
2354
+ }
2355
+ },
2349
2356
  setGlobalData(n, o) {
2350
2357
  s.setData("$globalData." + n, o);
2351
2358
  },
@@ -2379,22 +2386,32 @@ function ti(t) {
2379
2386
  },
2380
2387
  fetch(n) {
2381
2388
  return new Promise((o, a) => {
2382
- n = K(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((l) => {
2383
- O(() => n.onSuccess && n.onSuccess(l)), o(l);
2384
- }).catch((l) => {
2385
- O(() => n.onError && n.onError(l)), a(l);
2386
- })).catch((l) => {
2389
+ n = K(n), n = t.loadFetchVar(n);
2390
+ const l = (u) => {
2391
+ O(() => n.onError && n.onError(u)), a(u);
2392
+ };
2393
+ t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((u) => {
2394
+ O(() => n.onSuccess && n.onSuccess(u)), o(u);
2395
+ }).catch((u) => {
2396
+ l(u);
2397
+ })).catch((u) => {
2398
+ l(u);
2387
2399
  });
2388
2400
  });
2389
2401
  },
2390
2402
  watchFetch(n, o, a, l) {
2391
2403
  return t.fc.watchLoadData((u, f) => {
2392
2404
  let p = K(n);
2393
- p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((d) => {
2394
- O(() => p.onSuccess && p.onSuccess(d)), o && o(d, f);
2395
- }).catch((d) => {
2396
- O(() => p.onError && p.onError(d)), a && a(d);
2397
- })).catch((d) => {
2405
+ p = t.loadFetchVar(p, u);
2406
+ const d = (m) => {
2407
+ O(() => p.onError && p.onError(m)), a && a(m);
2408
+ };
2409
+ l && l(p, f) === !1 || t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((m) => {
2410
+ O(() => p.onSuccess && p.onSuccess(m)), o && o(m, f);
2411
+ }).catch((m) => {
2412
+ d(m);
2413
+ })).catch((m) => {
2414
+ d(m);
2398
2415
  });
2399
2416
  }, n.wait == null ? 1e3 : n.wait);
2400
2417
  },
@@ -2474,7 +2491,7 @@ function ii(t) {
2474
2491
  const r = (i) => {
2475
2492
  if (i) {
2476
2493
  let s;
2477
- 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);
2494
+ return e.rule.field && (s = i.$scopedSlots["field-" + ve(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + ve(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2478
2495
  }
2479
2496
  };
2480
2497
  return r(this.vm);
@@ -2494,7 +2511,7 @@ function ii(t) {
2494
2511
  })) : e.setSlot(r.rule.slot, this.renderCtx(r, i));
2495
2512
  },
2496
2513
  mergeGlobal(e) {
2497
- this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ye(() => {
2514
+ this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = $e(() => {
2498
2515
  const i = this.$handle.options.global;
2499
2516
  return ee({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2500
2517
  })), e.prop = ee({}, [this.cacheConfig[e.trueType].value, e.prop]));
@@ -2559,8 +2576,8 @@ function ii(t) {
2559
2576
  })()));
2560
2577
  });
2561
2578
  const d = this.getTypeSlot(e);
2562
- let g;
2563
- return d ? (u.children = f, g = d(u)) : g = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), g = this.renderSides(g, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), g = this.$manager.makeWrap(e, g)), e.none && (Array.isArray(g) ? g = g.map((y) => !y || !y.tag ? y : this.none(y)) : g = this.none(g)), o && this.setCache(e, () => this.stable(g), r), g;
2579
+ let m;
2580
+ return d ? (u.children = f, m = d(u)) : m = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), m = this.renderSides(m, e), !(!e.input && h.Undef(n.native)) && n.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;
2564
2581
  }, this.setCache(e, s, r);
2565
2582
  }
2566
2583
  return (...s) => {
@@ -2602,7 +2619,7 @@ function ii(t) {
2602
2619
  },
2603
2620
  injectProp(e) {
2604
2621
  const r = this.vm;
2605
- r.ctxInject[e.id] || F(r.ctxInject, e.id, {
2622
+ r.ctxInject[e.id] || k(r.ctxInject, e.id, {
2606
2623
  api: this.$handle.api,
2607
2624
  form: this.fc.create,
2608
2625
  subForm: (n) => {
@@ -2633,7 +2650,7 @@ function ii(t) {
2633
2650
  children: e.loadChildrenPending()
2634
2651
  };
2635
2652
  return Object.keys(s).forEach((n) => {
2636
- F(i, n, s[n]);
2653
+ k(i, n, s[n]);
2637
2654
  }), i;
2638
2655
  },
2639
2656
  ctxProp(e) {
@@ -2644,7 +2661,7 @@ function ii(t) {
2644
2661
  if (l.indexOf("native.") === 0)
2645
2662
  o[l.replace("native.", "")] = n[l], delete n[l];
2646
2663
  else if (this.$handle.options.transformEventName !== !1) {
2647
- const u = be(l);
2664
+ const u = ve(l);
2648
2665
  u !== l.toLowerCase() && !n[u] && (n[u] = n[l]);
2649
2666
  }
2650
2667
  }), e.prop.on = n;
@@ -2703,10 +2720,10 @@ function ii(t) {
2703
2720
  const s = Re();
2704
2721
  return e.map((n) => {
2705
2722
  if (n) {
2706
- if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
2723
+ if (h.String(n) || h.Number(n)) return s.setSlot(null, i ? this.renderRule({
2707
2724
  type: "template",
2708
- children: [n]
2709
- }) : n);
2725
+ children: [`${n}`]
2726
+ }) : `${n}`);
2710
2727
  if (n.__fc__)
2711
2728
  return this.renderSlot(s, n.__fc__, r);
2712
2729
  n.type && P(() => {
@@ -2731,7 +2748,7 @@ function ii(t) {
2731
2748
  },
2732
2749
  renderRule(e, r, i) {
2733
2750
  if (!e) return;
2734
- if (h.String(e)) return e;
2751
+ if (h.String(e) || h.Number(e)) return `${e}`;
2735
2752
  let s;
2736
2753
  if (i)
2737
2754
  s = e.type;
@@ -2802,8 +2819,8 @@ function si(t) {
2802
2819
  let p, d = n || o || a;
2803
2820
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2804
2821
  r || (d = `native-${d}`);
2805
- const g = be(`${d}-${f}`), y = (..._) => {
2806
- this.vm.$emit(g, ..._), this.vm.$emit("emit-event", g, ..._), this.bus.$emit(g, ..._);
2822
+ const m = ve(`${d}-${f}`), y = (..._) => {
2823
+ this.vm.$emit(m, ..._), this.vm.$emit("emit-event", m, ..._), this.bus.$emit(m, ..._);
2807
2824
  };
2808
2825
  if (y.__emit = !0, !p && l === !1)
2809
2826
  i[f] = y;
@@ -2855,16 +2872,16 @@ function si(t) {
2855
2872
  d.key ? f.push(d.key) : d.children && f.push(a(d.children));
2856
2873
  });
2857
2874
  let p = !1;
2858
- return f.forEach((d, g) => {
2859
- d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[g] = d.slice(1, -1), p = !0);
2875
+ return f.forEach((d, m) => {
2876
+ d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[m] = d.slice(1, -1), p = !0);
2860
2877
  }), f.length === 1 && (p || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2861
2878
  };
2862
2879
  let l;
2863
2880
  if (n.forEach((u) => {
2864
2881
  const f = u.split("||"), p = f[0].trim();
2865
2882
  if (p) {
2866
- const d = (f[1] || "").trim(), g = Lt(p);
2867
- let y = O(() => a(g));
2883
+ const d = (f[1] || "").trim(), m = Lt(p);
2884
+ let y = O(() => a(m));
2868
2885
  (y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2869
2886
  }
2870
2887
  }), n.length === 1 && s === `{{${n[0]}}}`)
@@ -2928,9 +2945,9 @@ function li(t) {
2928
2945
  }
2929
2946
  function ui(t) {
2930
2947
  Object.defineProperties(t.origin, {
2931
- __fc__: ze(ge(t), !0)
2948
+ __fc__: ze(ye(t), !0)
2932
2949
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2933
- __fc__: ze(ge(t), !0)
2950
+ __fc__: ze(ye(t), !0)
2934
2951
  });
2935
2952
  }
2936
2953
  function Gt(t, e, r) {
@@ -3177,9 +3194,9 @@ function fi(t) {
3177
3194
  let l = ht(o);
3178
3195
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3179
3196
  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);
3180
- let f, p = !1, d = !!o.__fc__, g = l.value;
3197
+ let f, p = !1, d = !!o.__fc__, m = l.value;
3181
3198
  if (d) {
3182
- if (f = o.__fc__, g = f.defaultValue, f.deleted) {
3199
+ if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3183
3200
  if (bt(f))
3184
3201
  return;
3185
3202
  f.update(this);
@@ -3192,14 +3209,14 @@ function fi(t) {
3192
3209
  if (f)
3193
3210
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3194
3211
  else {
3195
- const k = this.parseRule(o);
3196
- f = new Gt(this, k, g), this.bindParser(f);
3212
+ const F = this.parseRule(o);
3213
+ f = new Gt(this, F, m), this.bindParser(f);
3197
3214
  }
3198
- [!1, !0].forEach((k) => this.parseEmit(f, k)), 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");
3215
+ [!1, !0].forEach((F) => this.parseEmit(f, F)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !p && !d && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3199
3216
  const y = f.loadChildrenPending();
3200
3217
  if (f.parser.loadChildren === !1 || s(y, f), !r) {
3201
- const k = i(a);
3202
- k > -1 || !a ? this.sort.splice(k + 1, 0, f.id) : this.sort.push(f.id);
3218
+ const F = i(a);
3219
+ F > -1 || !a ? this.sort.splice(F + 1, 0, f.id) : this.sort.push(f.id);
3203
3220
  }
3204
3221
  const _ = f.rule;
3205
3222
  return f.updated || (f.updated = !0, h.Function(_.update) && this.bus.$once("load-end", () => {
@@ -3216,7 +3233,7 @@ function fi(t) {
3216
3233
  if (!r.length) return !1;
3217
3234
  for (let a = 0; a < r.length; a++) {
3218
3235
  const l = r[a], u = l.handle || function(p) {
3219
- return (ce[l.condition || "=="] || ce["=="])(p, l.value);
3236
+ return (he[l.condition || "=="] || he["=="])(p, l.value);
3220
3237
  };
3221
3238
  if (!h.trueArray(l.rule)) continue;
3222
3239
  const f = q(v({}, l), {
@@ -3230,13 +3247,13 @@ function fi(t) {
3230
3247
  const n = [];
3231
3248
  let o = !1;
3232
3249
  return this.deferSyncValue(() => {
3233
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: g, method: y }) => {
3250
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: m, method: y }) => {
3234
3251
  if (a) {
3235
3252
  l ? e.ctrlRule.push({
3236
3253
  __ctrl: !0,
3237
3254
  children: u,
3238
3255
  valid: l
3239
- }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3256
+ }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3240
3257
  y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((_) => {
3241
3258
  this.api.setEffect(_, "required", l);
3242
3259
  }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
@@ -3255,8 +3272,8 @@ function fi(t) {
3255
3272
  f ? s.prepend(_, f, d) : p || d ? s.append(_, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3256
3273
  });
3257
3274
  } else {
3258
- e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3259
- const _ = Q(g);
3275
+ e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3276
+ const _ = Q(m);
3260
3277
  _ && _.rm();
3261
3278
  }
3262
3279
  });
@@ -3287,7 +3304,7 @@ function fi(t) {
3287
3304
  function ci(t) {
3288
3305
  const e = Nt();
3289
3306
  return Object.keys(e).forEach((r) => {
3290
- j(t, r) || F(t, r, e[r]);
3307
+ j(t, r) || k(t, r, e[r]);
3291
3308
  }), t;
3292
3309
  }
3293
3310
  function hi(t) {
@@ -3337,7 +3354,7 @@ function pi(t) {
3337
3354
  setFormData(e, r) {
3338
3355
  e.modelValue = r;
3339
3356
  const i = e.getParentGroup();
3340
- 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);
3357
+ 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);
3341
3358
  },
3342
3359
  rmSubRuleData(e) {
3343
3360
  const r = e.getParentGroup();
@@ -3491,7 +3508,7 @@ function gi(t) {
3491
3508
  this.targetHook(e, "watch", { key: i, oldValue: a, newValue: l });
3492
3509
  }), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(), P(() => {
3493
3510
  this.targetHook(e, "hidden", { value: l });
3494
- })), i === "ignore" && e.input || i === "hidden" && e.input && (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields))
3511
+ })), i === "ignore" && e.input || i === "hidden" && (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields))
3495
3512
  this.syncForm();
3496
3513
  else if (i === "link") {
3497
3514
  e.link();
@@ -3500,21 +3517,21 @@ function gi(t) {
3500
3517
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3501
3518
  }
3502
3519
  }, { deep: !n, sync: n }));
3503
- }), e.refRule.__$title = ye(() => {
3520
+ }), e.refRule.__$title = $e(() => {
3504
3521
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3505
3522
  if (i) {
3506
3523
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3507
3524
  s && (i = this.api.t(s[1]));
3508
3525
  }
3509
3526
  return i;
3510
- }), e.refRule.__$info = ye(() => {
3527
+ }), e.refRule.__$info = $e(() => {
3511
3528
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3512
3529
  if (i) {
3513
3530
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3514
3531
  s && (i = this.api.t(s[1]));
3515
3532
  }
3516
3533
  return i;
3517
- }), e.refRule.__$validate = ye(() => {
3534
+ }), e.refRule.__$validate = $e(() => {
3518
3535
  const i = (s) => {
3519
3536
  var o, a;
3520
3537
  const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
@@ -3555,7 +3572,7 @@ function gi(t) {
3555
3572
  this.bus.$once("load-end", () => {
3556
3573
  let i = e.rule.computed;
3557
3574
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3558
- const n = ye(() => {
3575
+ const n = $e(() => {
3559
3576
  const a = i[s];
3560
3577
  if (!a) return;
3561
3578
  const l = this.compute(e, a);
@@ -3694,17 +3711,15 @@ function gi(t) {
3694
3711
  let u = !0;
3695
3712
  for (let f = 0; f < a.group.length; f++) {
3696
3713
  const p = a.group[f];
3697
- let d, g = null, y = null;
3714
+ let d, m = null, y = null;
3698
3715
  if (p.variable)
3699
3716
  y = this.fc.getLoadData(p.variable);
3700
3717
  else if (p.field)
3701
- g = pt(p.field || "");
3718
+ m = pt(p.field || "");
3702
3719
  else if (!p.mode)
3703
3720
  return !0;
3704
- if (!p.variable && !p.field)
3705
- return !1;
3706
3721
  let _ = p.compare;
3707
- if (_ && (_ = pt(_ || "")), 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}, ${_ || "$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)
3722
+ if (_ && (_ = pt(_ || "")), p.mode ? d = n(p) : he[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$variableVal", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${p.variable ? "$variableVal" : m}, ${_ || "$val"}); }}}}`).call(this.api.form, he, y, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
3708
3723
  return !0;
3709
3724
  l || (u = u && d);
3710
3725
  }
@@ -3783,12 +3798,13 @@ function yi(t) {
3783
3798
  },
3784
3799
  targetHook(e, r, i) {
3785
3800
  var l, u, f, p;
3786
- let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, g) => {
3801
+ let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, m) => {
3787
3802
  d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
3788
3803
  O(() => y(q(v({}, i || {}), {
3804
+ args: Object.values(i),
3789
3805
  self: e.rule,
3790
3806
  rule: e.rule,
3791
- parent: g == null ? void 0 : g.rule,
3807
+ parent: m == null ? void 0 : m.rule,
3792
3808
  $f: this.api,
3793
3809
  api: this.api,
3794
3810
  option: this.vm.$props.option
@@ -3875,7 +3891,7 @@ function $i(t) {
3875
3891
  else
3876
3892
  return;
3877
3893
  const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3878
- e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (g) => ee(d.getProp(), [g]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3894
+ e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (m) => ee(d.getProp(), [m]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3879
3895
  });
3880
3896
  }
3881
3897
  });
@@ -4000,7 +4016,7 @@ function wi() {
4000
4016
  },
4001
4017
  make(r, i, s) {
4002
4018
  var n, o, a;
4003
- 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);
4019
+ return (be.isReservedTag ? be.isReservedTag(r) : (o = (n = be) == 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);
4004
4020
  },
4005
4021
  makeComponent(r, i, s) {
4006
4022
  var a;
@@ -4023,7 +4039,7 @@ function wi() {
4023
4039
  },
4024
4040
  use(r) {
4025
4041
  Object.keys(r).forEach((i) => {
4026
- const s = be(i), n = Et(i).toLocaleLowerCase(), o = r[i];
4042
+ const s = ve(i), n = Et(i).toLocaleLowerCase(), o = r[i];
4027
4043
  e.alias(i, o), [i, s, n].forEach((a) => {
4028
4044
  e.prototype[a] = function(l, u) {
4029
4045
  return this.make(t[i] || a, l, u);
@@ -4112,10 +4128,10 @@ const Fi = function(t) {
4112
4128
  let l = (p) => {
4113
4129
  let d;
4114
4130
  i && i.__fc__ && (d = i.__fc__.getParentGroup());
4115
- let g;
4116
- a.template ? g = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? g = a.handler(p, i, s) : g = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (g == null || g === "") && a.default != null && (g = a.default), a.copy !== !1 && (g = K(g));
4131
+ let m;
4132
+ a.template ? m = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? m = a.handler(p, i, s) : m = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (m == null || m === "") && a.default != null && (m = a.default), a.copy !== !1 && (m = K(m));
4117
4133
  const y = a.modify ? i : r.getProp();
4118
- a.to === "child" ? y.children ? F(y.children, 0, g) : F(y, "children", [g]) : oe(y, a.to || "options", g), s.sync(i);
4134
+ a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : oe(y, a.to || "options", m), s.sync(i);
4119
4135
  }, u = (p) => l(p);
4120
4136
  const f = t.watchLoadData(u);
4121
4137
  l = se(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
@@ -4142,11 +4158,11 @@ const Fi = function(t) {
4142
4158
  const l = n[a];
4143
4159
  if (l) {
4144
4160
  const u = typeof l == "object";
4145
- let f = (g) => {
4146
- let y = t.t(u ? l.attr : l, u ? l.params : null, g);
4161
+ let f = (m) => {
4162
+ let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4147
4163
  const _ = u && l.modify ? i : r.getProp();
4148
- a === "child" ? _.children ? F(_.children, 0, y) : F(_, "children", [y]) : oe(_, a, y), s.sync(i);
4149
- }, p = (g) => f(g);
4164
+ a === "child" ? _.children ? k(_.children, 0, y) : k(_, "children", [y]) : oe(_, a, y), s.sync(i);
4165
+ }, p = (m) => f(m);
4150
4166
  const d = t.watchLoadData(p);
4151
4167
  f = se(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4152
4168
  }
@@ -4220,24 +4236,24 @@ const Fi = function(t) {
4220
4236
  i._fn[s.id] = t.watchLoadData(se((p, d) => {
4221
4237
  if (d && a.watch === !1)
4222
4238
  return i._fn[s.id]();
4223
- const g = t.$handle.loadFetchVar(K(a), p, n), y = q(v({
4239
+ const m = t.$handle.loadFetchVar(K(a), p, n), y = q(v({
4224
4240
  headers: {}
4225
- }, g), {
4226
- onSuccess(_, k) {
4241
+ }, m), {
4242
+ onSuccess(_, F) {
4227
4243
  if (f()) return;
4228
- let G = (L) => k ? L : j(L, "data") ? L.data : L;
4229
- const A = z(g.parse);
4244
+ let G = (L) => F ? L : j(L, "data") ? L.data : L;
4245
+ const A = z(m.parse);
4230
4246
  h.Function(A) ? G = A : A && h.String(A) && (G = (L) => B(L, A)), Ae(G(_, n, o)).then((L) => {
4231
4247
  l(L);
4232
4248
  });
4233
4249
  },
4234
4250
  onError(_) {
4235
- l(void 0), !f() && (u || ((k) => Ye(k.message || "fetch fail " + g.action)))(_, n, o);
4251
+ l(void 0), !f() && (u || ((F) => Ye(F.message || "fetch fail " + m.action)))(_, n, o);
4236
4252
  }
4237
4253
  });
4238
4254
  t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4239
- if (h.Function(g.action)) {
4240
- Ae(g.action(n, o)).then((_) => {
4255
+ if (h.Function(m.action)) {
4256
+ Ae(m.action(n, o)).then((_) => {
4241
4257
  y.onSuccess(_, !0);
4242
4258
  }).catch((_) => {
4243
4259
  y.onError(_);
@@ -4441,16 +4457,16 @@ function Wt(t) {
4441
4457
  t.extendApi
4442
4458
  ], u = v({}, Ri), f = Yr();
4443
4459
  let p = { global: {} };
4444
- const d = t.isMobile === !0, g = ne({
4460
+ const d = t.isMobile === !0, m = ne({
4445
4461
  $mobile: d
4446
- }), y = wi(), _ = {}, k = {};
4462
+ }), y = wi(), _ = {}, F = {};
4447
4463
  Ui(t.attrs || {});
4448
4464
  function G(c) {
4449
- const m = U[c];
4450
- if (Array.isArray(m))
4451
- return m.map(($) => $.api());
4452
- if (m)
4453
- return m.api();
4465
+ const g = U[c];
4466
+ if (Array.isArray(g))
4467
+ return g.map(($) => $.api());
4468
+ if (g)
4469
+ return g.api();
4454
4470
  }
4455
4471
  function A(c) {
4456
4472
  o.push(c);
@@ -4459,7 +4475,7 @@ function Wt(t) {
4459
4475
  const c = Me(...arguments);
4460
4476
  c.id && c.prop && (i[c.id] = c.prop);
4461
4477
  }
4462
- function de() {
4478
+ function pe() {
4463
4479
  const c = Me(...arguments);
4464
4480
  c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(v({}, c.prop), {
4465
4481
  name: c.id
@@ -4468,41 +4484,41 @@ function Wt(t) {
4468
4484
  function Pe(c) {
4469
4485
  y.use(c);
4470
4486
  }
4471
- function pe() {
4487
+ function me() {
4472
4488
  const c = Me(...arguments);
4473
4489
  if (!c.id || !c.prop) return De;
4474
- const m = J(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4475
- r[m] = Se($, b || De), f[m] = T(m), $.maker && C(f, $.maker);
4490
+ const g = J(c.id), $ = c.prop, b = $.merge === !0 ? r[g] : void 0;
4491
+ r[g] = Se($, b || De), f[g] = T(g), $.maker && C(f, $.maker);
4476
4492
  }
4477
- function E(c, m) {
4493
+ function E(c, g) {
4478
4494
  let $;
4479
4495
  if (h.String(c)) {
4480
- if ($ = c, m === void 0)
4481
- return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
4496
+ if ($ = c, g === void 0)
4497
+ return ["form-create", "formcreate"].indexOf($) > -1 ? S() : e[$];
4482
4498
  } else
4483
- $ = J(c.name), m = c;
4484
- if (!$ || !m) return;
4499
+ $ = J(c.name), g = c;
4500
+ if (!$ || !g) return;
4485
4501
  const b = J($);
4486
- e[$] = m, e[b] = m, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && pe($, m.formCreateParser);
4502
+ e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && me($, g.formCreateParser);
4487
4503
  }
4488
- function R() {
4504
+ function S() {
4489
4505
  return Zr(Be, e, i);
4490
4506
  }
4491
4507
  function M() {
4492
4508
  return Ne;
4493
4509
  }
4494
- function me(c, m) {
4495
- return h.Function(c.install) ? c.install(W, m) : h.Function(c) && c(W, m), this;
4510
+ function ge(c, g) {
4511
+ return h.Function(c.install) ? c.install(W, g) : h.Function(c) && c(W, g), this;
4496
4512
  }
4497
- function W(c, m, $) {
4498
- let b = qi(c, m || {});
4513
+ function W(c, g, $) {
4514
+ let b = qi(c, g || {});
4499
4515
  const w = b.$refs.fc.formCreate;
4500
4516
  return w.$parent = $, Mi(w.options).appendChild(b.$el), w.api();
4501
4517
  }
4502
- Se(W, k);
4518
+ Se(W, F);
4503
4519
  function zt(c) {
4504
- let m = v({}, t);
4505
- return c ? m.inherit = {
4520
+ let g = v({}, t);
4521
+ return c ? g.inherit = {
4506
4522
  components: e,
4507
4523
  parsers: r,
4508
4524
  directives: i,
@@ -4511,53 +4527,53 @@ function Wt(t) {
4511
4527
  useApps: o,
4512
4528
  maker: f,
4513
4529
  formulas: _,
4514
- loadData: g
4515
- } : delete m.inherit, Wt(m);
4530
+ loadData: m
4531
+ } : delete g.inherit, Wt(g);
4516
4532
  }
4517
- function Xt(c, m) {
4518
- s[c] = m;
4533
+ function Xt(c, g) {
4534
+ s[c] = g;
4519
4535
  }
4520
- function Zt(c, m) {
4521
- _[c] = m;
4536
+ function Zt(c, g) {
4537
+ _[c] = g;
4522
4538
  }
4523
- function Qt(c, m) {
4539
+ function Qt(c, g) {
4524
4540
  const $ = n[c] || {}, b = $.parsers || {};
4525
- m.parsers && Object.keys(m.parsers).forEach((w) => {
4526
- b[w] = Se(m.parsers[w], De);
4527
- }), m.name = c, n[c] = q(v(v({}, $), m), { parsers: b });
4541
+ g.parsers && Object.keys(g.parsers).forEach((w) => {
4542
+ b[w] = Se(g.parsers[w], De);
4543
+ }), g.name = c, n[c] = q(v(v({}, $), g), { parsers: b });
4528
4544
  }
4529
4545
  function Fe(c) {
4530
- c && Object.keys(U).forEach((m) => {
4531
- (Array.isArray(U[m]) ? U[m] : [U[m]]).forEach((b) => {
4546
+ c && Object.keys(U).forEach((g) => {
4547
+ (Array.isArray(U[g]) ? U[g] : [U[g]]).forEach((b) => {
4532
4548
  b.bus.$emit("$loadData." + c);
4533
4549
  });
4534
4550
  });
4535
4551
  }
4536
- function Te(c, m) {
4537
- oe(g, c, m), Fe(c);
4552
+ function Te(c, g) {
4553
+ oe(m, c, g), Fe(c);
4538
4554
  }
4539
- function ke(c, m) {
4540
- const $ = (...b) => O(() => m(...b));
4555
+ function ke(c, g) {
4556
+ const $ = (...b) => O(() => g(...b));
4541
4557
  $._driver = !0, Te(c, $);
4542
4558
  }
4543
- function st(c, m) {
4559
+ function st(c, g) {
4544
4560
  const $ = (c || "").split(".");
4545
4561
  c = $.shift();
4546
4562
  const b = $.join(".");
4547
- if (j(g, c) || F(g, c, _t), g[c] !== _t) {
4548
- let w = g[c];
4549
- return w && w._driver ? w = w(b) : $.length && (w = B(w, $)), w == null || w === "" ? m : w;
4563
+ if (j(m, c) || k(m, c, _t), m[c] !== _t) {
4564
+ let w = m[c];
4565
+ return w && w._driver ? w = w(b) : $.length && (w = B(w, $)), w == null || w === "" ? g : w;
4550
4566
  } else
4551
- return m;
4567
+ return g;
4552
4568
  }
4553
4569
  function Yt(c) {
4554
4570
  l.push(c);
4555
4571
  }
4556
4572
  function er(c) {
4557
- delete g[c], Fe(c);
4573
+ delete m[c], Fe(c);
4558
4574
  }
4559
- function tr(c, m) {
4560
- a.push({ name: c, callback: m });
4575
+ function tr(c, g) {
4576
+ a.push({ name: c, callback: g });
4561
4577
  }
4562
4578
  function Be(c) {
4563
4579
  C(this, {
@@ -4581,7 +4597,7 @@ function Wt(t) {
4581
4597
  drivers: n,
4582
4598
  renderDriver: null,
4583
4599
  refreshData: Fe,
4584
- loadData: g,
4600
+ loadData: m,
4585
4601
  CreateNode: y,
4586
4602
  bus: new Si(),
4587
4603
  unwatch: [],
@@ -4589,8 +4605,8 @@ function Wt(t) {
4589
4605
  extendApiFn: l,
4590
4606
  fetchCache: /* @__PURE__ */ new WeakMap(),
4591
4607
  tmpData: ne({})
4592
- }), a.forEach((m) => {
4593
- this.bus.$on(m.name, m.callback);
4608
+ }), a.forEach((g) => {
4609
+ this.bus.$on(g.name, g.callback);
4594
4610
  }), P(() => {
4595
4611
  N(this.options, () => {
4596
4612
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
@@ -4603,52 +4619,52 @@ function Wt(t) {
4603
4619
  this.initOptions(), this.$handle.api.refresh();
4604
4620
  }, { 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();
4605
4621
  },
4606
- targetFormDriver(c, ...m) {
4607
- if (this.bus.$emit(c, ...m), this.renderDriver && this.renderDriver[c])
4608
- return O(() => this.renderDriver[c](...m));
4622
+ targetFormDriver(c, ...g) {
4623
+ if (this.bus.$emit(c, ...g), this.renderDriver && this.renderDriver[c])
4624
+ return O(() => this.renderDriver[c](...g));
4609
4625
  },
4610
- t(c, m, $) {
4626
+ t(c, g, $) {
4611
4627
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4612
- return b == null && (b = ""), b && m && Object.keys(m).forEach((w) => {
4628
+ return b == null && (b = ""), b && g && Object.keys(g).forEach((w) => {
4613
4629
  const V = new RegExp(`{${w}}`, "g");
4614
- b = b.replace(V, m[w]);
4630
+ b = b.replace(V, g[w]);
4615
4631
  }), b;
4616
4632
  },
4617
4633
  globalDataDriver(c) {
4618
- let m = c.split(".");
4619
- const $ = m.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4634
+ let g = c.split(".");
4635
+ const $ = g.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4620
4636
  if (b) {
4621
4637
  if (b.type === "static")
4622
- return B(b.data, m);
4638
+ return B(b.data, g);
4623
4639
  {
4624
4640
  let w;
4625
4641
  const V = this.fetchCache.get(b);
4626
4642
  if (V) {
4627
- if (V.status && (w = B(V.data, m)), !V.loading)
4643
+ if (V.status && (w = B(V.data, g)), !V.loading)
4628
4644
  return w;
4629
4645
  V.loading = !1, this.fetchCache.set(b, V);
4630
4646
  } else
4631
4647
  this.fetchCache.set(b, { status: !1 });
4632
- const S = se(() => {
4648
+ const R = se(() => {
4633
4649
  te();
4634
4650
  const x = this.fetchCache.get(b);
4635
4651
  this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (x && (x.loading = !0, this.fetchCache.set(b, x)), this.bus.$emit("$loadData.$globalData." + $)) : this.fetchCache.delete(b);
4636
- }, b.wait || 600), ve = (x) => {
4652
+ }, b.wait || 600), ae = (x) => {
4637
4653
  this.fetchCache.set(b, { status: !0, data: x }), this.bus.$emit("$loadData.$globalData." + $);
4638
- }, ae = (x, le) => {
4639
- if (le && b.watch === !1)
4654
+ }, le = (x, ue) => {
4655
+ if (ue && b.watch === !1)
4640
4656
  return te();
4641
- if (le) {
4642
- S();
4657
+ if (ue) {
4658
+ R();
4643
4659
  return;
4644
4660
  }
4645
- const ue = this.$handle.loadFetchVar(Ke(b), x);
4646
- ue.targetRule = this.targetRule, this.$handle.api.fetch(ue).then((re) => {
4647
- ve(re);
4661
+ const fe = this.$handle.loadFetchVar(Ke(b), x);
4662
+ fe.targetRule = this.targetRule, this.$handle.api.fetch(fe).then((re) => {
4663
+ ae(re);
4648
4664
  }).catch((re) => {
4649
- ve(null);
4665
+ ae(null);
4650
4666
  });
4651
- }, te = this.watchLoadData(ae);
4667
+ }, te = this.watchLoadData(le);
4652
4668
  return b.watch === !1 && te(), this.unwatch.push(te), w;
4653
4669
  }
4654
4670
  }
@@ -4658,28 +4674,28 @@ function Wt(t) {
4658
4674
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4659
4675
  },
4660
4676
  globalLanguageDriver(c) {
4661
- let m = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4662
- if (m && (b = O(() => m(c))), b == null && $ && typeof $ == "object" && (b = B($, c)), b == null) {
4677
+ let g = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4678
+ if (g && (b = O(() => g(c))), b == null && $ && typeof $ == "object" && (b = B($, c)), b == null) {
4663
4679
  const w = this.options.value.language || {}, V = this.getLocale();
4664
4680
  b = B(w[V] || {}, c), b == null && (b = B(Li[V] || {}, c));
4665
4681
  }
4666
4682
  return b;
4667
4683
  },
4668
4684
  globalVarDriver(c) {
4669
- let m = c.split(".");
4670
- const $ = m.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4685
+ let g = c.split(".");
4686
+ const $ = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4671
4687
  if (b) {
4672
4688
  const w = h.Function(b) ? b : z(b.handle);
4673
4689
  if (w) {
4674
- let V = w((...S) => this.$handle.api.getData(...S), this.$handle.api);
4675
- return B(V, m);
4690
+ let V = w((...R) => this.$handle.api.getData(...R), this.$handle.api);
4691
+ return B(V, g);
4676
4692
  }
4677
4693
  }
4678
4694
  },
4679
- setData(c, m, $) {
4680
- $ ? Te(c, m) : (oe(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
4695
+ setData(c, g, $) {
4696
+ $ ? Te(c, g) : (oe(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4681
4697
  },
4682
- getLoadData(c, m) {
4698
+ getLoadData(c, g) {
4683
4699
  let $ = null;
4684
4700
  if (c != null) {
4685
4701
  let b = c.split(".");
@@ -4709,36 +4725,36 @@ function Wt(t) {
4709
4725
  }
4710
4726
  $ && b.length && ($ = B($, b));
4711
4727
  }
4712
- return $ == null || $ === "" ? m : $;
4728
+ return $ == null || $ === "" ? g : $;
4713
4729
  },
4714
- watchLoadData(c, m) {
4730
+ watchLoadData(c, g) {
4715
4731
  let $ = {};
4716
- const b = (S) => {
4732
+ const b = (R) => {
4717
4733
  this.get || (this.get = w), O(() => {
4718
- c(w, S);
4734
+ c(w, R);
4719
4735
  }), this.get === w && (this.get = void 0);
4720
- }, w = (S, ve) => {
4721
- let ae;
4722
- if (typeof S == "object" && (ae = S.getValue, S = S.id), $[S])
4723
- return $[S].val;
4724
- const te = ye(() => ae ? ae() : this.getLoadData(S, ve)), x = S.split("."), le = x.shift(), ue = x.shift() || "", re = se(() => {
4725
- const fe = ae ? ae() : this.getLoadData(S, ve);
4726
- if ($[S])
4727
- ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[S].val || JSON.stringify(fe) !== JSON.stringify($[S].val)) && ($[S].val = fe, b(!0));
4736
+ }, w = (R, ae) => {
4737
+ let le;
4738
+ if (typeof R == "object" && (le = R.getValue, R = R.id), $[R])
4739
+ return $[R].val;
4740
+ const te = $e(() => le ? le() : this.getLoadData(R, ae)), x = R.split("."), ue = x.shift(), fe = x.shift() || "", re = se(() => {
4741
+ const ce = le ? le() : this.getLoadData(R, ae);
4742
+ if ($[R])
4743
+ ((ce instanceof Function || h.Object(ce) || Array.isArray(ce)) && ce === $[R].val || JSON.stringify(ce) !== JSON.stringify($[R].val)) && ($[R].val = ce, b(!0));
4728
4744
  else return;
4729
- }, m || 0), ir = N(te, (fe) => {
4745
+ }, g || 0), ir = N(te, (ce) => {
4730
4746
  re();
4731
4747
  });
4732
- return this.bus.$on("$loadData." + le, re), ue && this.bus.$on("$loadData." + le + "." + ue, re), $[S] = {
4748
+ return this.bus.$on("$loadData." + ue, re), fe && this.bus.$on("$loadData." + ue + "." + fe, re), $[R] = {
4733
4749
  fn: () => {
4734
- this.bus.$off("$loadData." + le, re), ue && this.bus.$off("$loadData." + le + "." + ue, re), ir();
4750
+ this.bus.$off("$loadData." + ue, re), fe && this.bus.$off("$loadData." + ue + "." + fe, re), ir();
4735
4751
  },
4736
4752
  val: te.value
4737
4753
  }, te.value;
4738
4754
  };
4739
4755
  b(!1);
4740
4756
  const V = () => {
4741
- Object.keys($).forEach((S) => $[S].fn()), $ = {};
4757
+ Object.keys($).forEach((R) => $[R].fn()), $ = {};
4742
4758
  };
4743
4759
  return this.unwatch.push(V), V;
4744
4760
  },
@@ -4754,15 +4770,15 @@ function Wt(t) {
4754
4770
  globalEvent: {},
4755
4771
  globalData: {}
4756
4772
  }, K(p));
4757
- const m = this.isSub();
4758
- m && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$props.option || {});
4773
+ const g = this.isSub();
4774
+ g && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$props.option || {});
4759
4775
  const $ = this.api();
4760
- this.targetFormDriver("initOptions", c, { api: $, isSubForm: m }), this.updateOptions(c);
4776
+ this.targetFormDriver("initOptions", c, { api: $, isSubForm: g }), this.updateOptions(c);
4761
4777
  },
4762
- mergeOptions(c, m, $) {
4763
- return m = v({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4764
- delete m[b];
4765
- }), m.global && (c.global = xr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4778
+ mergeOptions(c, g, $) {
4779
+ return g = v({}, g || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4780
+ delete g[b];
4781
+ }), g.global && (c.global = xr(c.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], c), c;
4766
4782
  },
4767
4783
  updateOptions(c) {
4768
4784
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4808,17 +4824,17 @@ function Wt(t) {
4808
4824
  setModelField: Xt,
4809
4825
  setFormula: Zt,
4810
4826
  setDriver: Qt,
4811
- register: de,
4827
+ register: pe,
4812
4828
  $vnode: M,
4813
- parser: pe,
4814
- use: me,
4829
+ parser: me,
4830
+ use: ge,
4815
4831
  factory: zt,
4816
4832
  componentAlias: Pe,
4817
4833
  copyRule: Pt,
4818
4834
  copyRules: Tt,
4819
4835
  mergeRule: ee,
4820
4836
  fetch: Ut,
4821
- $form: R,
4837
+ $form: S,
4822
4838
  parseFn: z,
4823
4839
  parseJson: St,
4824
4840
  toJson: we,
@@ -4830,35 +4846,37 @@ function Wt(t) {
4830
4846
  function rr(c) {
4831
4847
  C(c, {
4832
4848
  create: W,
4833
- install(m, $) {
4834
- if (p = v(v({}, p), $ || {}), m._installedFormCreate === !0) return;
4835
- m._installedFormCreate = !0;
4836
- const b = function(V, S = {}) {
4837
- return W(V, S, this);
4849
+ install(g, $) {
4850
+ p = v(v({}, p), $ || {});
4851
+ const b = `_installedFormCreate${d ? "Mobile" : ""}_${t.ui}`;
4852
+ if (g[b] === !0) return;
4853
+ g[b] = !0;
4854
+ const w = function(R, ae = {}) {
4855
+ return W(R, ae, this);
4838
4856
  };
4839
- ot(b), m.prototype.$formCreate = b;
4840
- const w = R();
4841
- m.component(w.name, w), m.component("FcFragment", M()), o.forEach((V) => {
4842
- O(() => V(c, m));
4857
+ ot(w), g.prototype.$formCreate = w;
4858
+ const V = S();
4859
+ g.component(V.name, V), g.component("FcFragment", M()), o.forEach((R) => {
4860
+ O(() => R(c, g));
4843
4861
  });
4844
4862
  }
4845
4863
  });
4846
4864
  }
4847
- if (ot(k), rr(k), ke("$cookie", Pi), ke("$localStorage", Ti), ke("$sessionStorage", Bi), y.use({ fragment: "fcFragment" }), t.install && W.use(t), pe(Di), t.inherit) {
4865
+ if (ot(F), rr(F), ke("$cookie", Pi), ke("$localStorage", Ti), ke("$sessionStorage", Bi), y.use({ fragment: "fcFragment" }), t.install && W.use(t), me(Di), t.inherit) {
4848
4866
  const c = t.inherit;
4849
- 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(_, c.formulas);
4867
+ 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);
4850
4868
  }
4851
- const Ee = R();
4852
- return Se(Ee, k), Object.defineProperties(Ee, {
4869
+ const Ee = S();
4870
+ return Se(Ee, F), Object.defineProperties(Ee, {
4853
4871
  fetch: {
4854
4872
  get() {
4855
- return k.fetch;
4873
+ return F.fetch;
4856
4874
  },
4857
4875
  set(c) {
4858
- k.fetch = c;
4876
+ F.fetch = c;
4859
4877
  }
4860
4878
  }
4861
- }), Ee.util = k, Ee;
4879
+ }), Ee.util = F, Ee;
4862
4880
  }
4863
4881
  const Ct = {
4864
4882
  date: "yyyy-MM-dd",
@@ -5119,22 +5137,22 @@ const on = {
5119
5137
  return !(!e.title && !e.native || Z(e.show));
5120
5138
  },
5121
5139
  makeInfo(t, e, r) {
5122
- var f, p, d, g, y, _;
5140
+ var f, p, d, m, y, _;
5123
5141
  const i = v({}, t.title), s = v({}, t.info), n = nn(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5124
5142
  title: (p = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : p.value,
5125
5143
  rule: r.rule,
5126
5144
  options: this.options
5127
- }) : ((g = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : g.value) + (o.labelSuffix || o["label-suffix"] || "")];
5145
+ }) : ((m = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : m.value) + (o.labelSuffix || o["label-suffix"] || "")];
5128
5146
  if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
5129
- const k = {
5147
+ const F = {
5130
5148
  type: s.type || "popover",
5131
5149
  slot: "label",
5132
5150
  props: Ge(s),
5133
5151
  key: `${e}pop`
5134
5152
  };
5135
- delete k.props.icon, delete k.props.show, delete k.props.info, delete k.props.align, delete k.props.native;
5153
+ delete F.props.icon, delete F.props.show, delete F.props.info, delete F.props.align, delete F.props.native;
5136
5154
  const G = "content";
5137
- s.info && !j(k.props, G) && (k.props[G] = (_ = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : _.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, k]), [
5155
+ s.info && !j(F.props, G) && (F.props[G] = (_ = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : _.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, F]), [
5138
5156
  this.$r({
5139
5157
  type: "i",
5140
5158
  slot: n ? "default" : "reference",
@@ -5148,7 +5166,12 @@ const on = {
5148
5166
  key: `${e}tit`,
5149
5167
  class: "fc-form-title",
5150
5168
  slot: i.slot || "label",
5151
- type: i.type || "span"
5169
+ type: i.type || "span",
5170
+ on: {
5171
+ click: (...F) => {
5172
+ this.$handle.targetHook(r, "titleClick", { args: F });
5173
+ }
5174
+ }
5152
5175
  }]);
5153
5176
  return delete u.props.show, delete u.props.title, delete u.props.native, this.$r(u, l);
5154
5177
  },
@@ -5219,12 +5242,12 @@ const on = {
5219
5242
  key: `${this.key}b1`
5220
5243
  }, [e]);
5221
5244
  }
5222
- }, he = {};
5223
- an(he);
5224
- ln(he);
5225
- un(he);
5226
- fn(he);
5227
- cn(he);
5245
+ }, de = {};
5246
+ an(de);
5247
+ ln(de);
5248
+ un(de);
5249
+ fn(de);
5250
+ cn(de);
5228
5251
  function an(t) {
5229
5252
  ["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "radio", "rate"].forEach((e) => {
5230
5253
  t[e] = T(e);
@@ -5362,24 +5385,28 @@ function hn(t, e) {
5362
5385
  const xt = {
5363
5386
  name: "required",
5364
5387
  load(t, e, r) {
5365
- var s, n;
5366
5388
  const i = dn(t.getValue());
5389
+ let s;
5367
5390
  if (i.required === !1)
5368
5391
  t.clearProp(), r.clearValidateState([e.field]);
5369
5392
  else {
5370
- const o = v({
5393
+ const n = v({
5371
5394
  required: !0,
5372
- validator(l, u, f) {
5373
- h.empty(u) ? f(o.message) : f();
5395
+ validator(a, l, u) {
5396
+ o(), h.empty(l) ? u(n.message) : u();
5374
5397
  }
5375
- }, i), a = (n = (s = e.__fc__.refRule) == null ? void 0 : s.__$title) == null ? void 0 : n.value;
5376
- if (!o.message)
5377
- o.message = r.t("required", { title: a }) || a + (r.getLocale() === "en" ? " is required" : "不能为空");
5378
- else {
5379
- const l = o.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
5380
- l && (o.message = r.t(l[1], { title: a }));
5381
- }
5382
- t.getProp().validate = [o];
5398
+ }, i), o = () => {
5399
+ var l, u;
5400
+ const a = (u = (l = e.__fc__.refRule) == null ? void 0 : l.__$title) == null ? void 0 : u.value;
5401
+ if (s !== a)
5402
+ if (s = a, !i.message)
5403
+ n.message = r.t("required", { title: a }) || a + (r.getLocale() === "en" ? " is required" : "不能为空");
5404
+ else {
5405
+ const f = i.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
5406
+ f && (n.message = r.t(f[1], { title: a }));
5407
+ }
5408
+ };
5409
+ o(), t.getProp().validate = [n];
5383
5410
  }
5384
5411
  r.sync(e);
5385
5412
  },
@@ -5395,14 +5422,14 @@ function pn(t) {
5395
5422
  t.component(e.name, e);
5396
5423
  }), t.register(xt), en.forEach((e) => {
5397
5424
  t.parser(e);
5398
- }), Object.keys(he).forEach((e) => {
5399
- t.maker[e] = he[e];
5425
+ }), Object.keys(de).forEach((e) => {
5426
+ t.maker[e] = de[e];
5400
5427
  });
5401
5428
  }
5402
5429
  function mn() {
5403
5430
  return Wt({
5404
5431
  ui: "element-ui",
5405
- version: "2.7.19",
5432
+ version: "2.7.21",
5406
5433
  manager: on,
5407
5434
  extendApi: hn,
5408
5435
  install: pn,