@form-create/view-design 2.7.0 → 2.7.1

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,7 +1,7 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/view-design v2.7.0
4
- * (c) 2018-2024 xaboy
3
+ * @form-create/view-design v2.7.1
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.
@@ -511,8 +511,8 @@ Ot.v2 = wt({
511
511
  fileIcon: "document-text",
512
512
  fileUpIcon: "folder"
513
513
  });
514
- const kr = "fcRadio", Fr = {
515
- name: kr,
514
+ const Fr = "fcRadio", kr = {
515
+ name: Fr,
516
516
  props: {
517
517
  formCreateInject: {
518
518
  type: Object,
@@ -711,7 +711,7 @@ function jr(t) {
711
711
  return ("" + t).split("/").pop();
712
712
  }
713
713
  const Ir = "fcUpload";
714
- function kt(t) {
714
+ function Ft(t) {
715
715
  return {
716
716
  name: Ir,
717
717
  props: {
@@ -907,15 +907,15 @@ function kt(t) {
907
907
  }
908
908
  };
909
909
  }
910
- const Ft = kt({
910
+ const kt = Ft({
911
911
  fileIcon: "md-document",
912
912
  imgUpIcon: "md-images"
913
913
  });
914
- Ft.v2 = kt({
914
+ kt.v2 = Ft({
915
915
  fileIcon: "document-text",
916
916
  imgUpIcon: "image"
917
917
  });
918
- function F(t, e, r) {
918
+ function k(t, e, r) {
919
919
  he.set(t, e, r);
920
920
  }
921
921
  function Y(t, e) {
@@ -929,19 +929,19 @@ function ye(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] = ye(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 J(t) {
951
951
  const Ar = 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 _() {
@@ -1346,12 +1346,12 @@ const Vr = "fcGroup", Pr = {
1346
1346
  }
1347
1347
  }, Tr = [
1348
1348
  wr,
1349
- Fr,
1349
+ kr,
1350
1350
  Sr,
1351
1351
  Dr,
1352
1352
  Lr,
1353
1353
  Ot,
1354
- Ft,
1354
+ kt,
1355
1355
  Pr
1356
1356
  ];
1357
1357
  function le(t, e) {
@@ -1364,12 +1364,12 @@ function ge(t) {
1364
1364
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1365
1365
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1366
1366
  }
1367
- const ke = (t, e) => {
1367
+ const Fe = (t, e) => {
1368
1368
  if (!(!t || t === e || !t.$props)) {
1369
1369
  if (t.$props.formCreateInject)
1370
1370
  return t.$props.formCreateInject;
1371
1371
  if (t.$parent)
1372
- return ke(t.$parent, e);
1372
+ return Fe(t.$parent, e);
1373
1373
  }
1374
1374
  };
1375
1375
  function Nr(t, e, r) {
@@ -1439,16 +1439,16 @@ function Nr(t, e, r) {
1439
1439
  unique: 1,
1440
1440
  renderRule: [...l.value || []],
1441
1441
  updateValue: JSON.stringify(u.value || {})
1442
- }), $ = new t(n), v = $.api(), w = p.value, j = () => {
1442
+ }), y = new t(n), v = y.api(), w = p.value, j = () => {
1443
1443
  if (o) {
1444
- const O = ke(n, o);
1444
+ const O = Fe(n, o);
1445
1445
  if (O) {
1446
1446
  let E;
1447
1447
  w ? (E = G(O.getSubForm()), E.push(v)) : E = v, O.subForm(E);
1448
1448
  }
1449
1449
  }
1450
1450
  }, Z = () => {
1451
- const O = ke(n, o);
1451
+ const O = Fe(n, o);
1452
1452
  if (O)
1453
1453
  if (w) {
1454
1454
  const E = G(O.getSubForm()), P = E.indexOf(v);
@@ -1471,41 +1471,41 @@ function Nr(t, e, r) {
1471
1471
  });
1472
1472
  });
1473
1473
  const L = le(() => {
1474
- $.bus.$emit("$loadData.$topForm");
1474
+ y.bus.$emit("$loadData.$topForm");
1475
1475
  }, 100), je = le(() => {
1476
- $.bus.$emit("$loadData.$form");
1476
+ y.bus.$emit("$loadData.$form");
1477
1477
  }, 100), $e = (O) => {
1478
- $.bus.$emit("change-$form." + O);
1478
+ y.bus.$emit("change-$form." + O);
1479
1479
  };
1480
1480
  return cr(() => {
1481
- o && (v.top.bus.$on("$loadData.$form", L), v.top.bus.$on("change", $e)), $.mounted();
1481
+ o && (v.top.bus.$on("$loadData.$form", L), v.top.bus.$on("change", $e)), y.mounted();
1482
1482
  }), hr(() => {
1483
- o && (v.top.bus.$off("$loadData.$form", L), v.top.bus.$off("change", $e)), V && document.head.removeChild(V), Z(), m.destroyed = !0, $.unmount();
1483
+ o && (v.top.bus.$off("$loadData.$form", L), v.top.bus.$off("change", $e)), V && document.head.removeChild(V), Z(), m.destroyed = !0, y.unmount();
1484
1484
  }), dr(() => {
1485
- $.updated();
1485
+ y.updated();
1486
1486
  }), B(f, (O) => {
1487
1487
  O ? j() : Z();
1488
1488
  }, { immediate: !0 }), B(() => [...l.value], (O) => {
1489
- $.$handle.isBreakWatch() || O.length === m.renderRule.length && O.every((E) => m.renderRule.indexOf(E) > -1) || ($.$handle.updateAppendData(), $.$handle.reloadRule(l.value), n.renderRule());
1489
+ y.$handle.isBreakWatch() || O.length === m.renderRule.length && O.every((E) => m.renderRule.indexOf(E) > -1) || (y.$handle.updateAppendData(), y.$handle.reloadRule(l.value), n.renderRule());
1490
1490
  }), B(() => s.option, () => {
1491
- $.initOptions(), v.refresh();
1491
+ y.initOptions(), v.refresh();
1492
1492
  }, { deep: !0 }), B(() => [s.disabled, s.preview], () => {
1493
1493
  v.refresh();
1494
1494
  }), B(u, (O) => {
1495
1495
  JSON.stringify(O || {}) !== m.updateValue && (v.config.forceCoverValue ? v.coverValue(O || {}) : v.setValue(O || {}));
1496
1496
  }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1497
- v.coverValue({}), $.$handle.updateAppendData(), H(() => {
1497
+ v.coverValue({}), y.$handle.updateAppendData(), H(() => {
1498
1498
  H(() => {
1499
1499
  v.clearValidateState();
1500
1500
  });
1501
1501
  });
1502
1502
  }, { flush: "sync" }), U(b({
1503
- fc: fe($),
1503
+ fc: fe(y),
1504
1504
  parent: o && fe(o),
1505
1505
  top: fe(a),
1506
1506
  fapi: fe(v)
1507
1507
  }, at(m)), {
1508
- getGroupInject: () => ke(n, o),
1508
+ getGroupInject: () => Fe(n, o),
1509
1509
  refresh() {
1510
1510
  ++m.unique;
1511
1511
  },
@@ -1526,13 +1526,13 @@ function Nr(t, e, r) {
1526
1526
  }
1527
1527
  };
1528
1528
  }
1529
- const Rt = ["attrs", "props", "domProps", "scopedSlots"], St = ["class", "style", "directives"], Et = ["on", "nativeOn", "hook"], K = (t, e = {}, r = {}) => {
1529
+ const Rt = ["attrs", "props", "domProps", "scopedSlots"], St = ["class", "style", "directives"], Et = ["on", "nativeOn", "hook"], X = (t, e = {}, r = {}) => {
1530
1530
  const i = [...Rt, ...r.normal || []], s = [...St, ...r.array || []], n = [...Et, ...r.functional || []], o = r.props || [];
1531
1531
  return t.reduce((a, l) => {
1532
1532
  for (const u in l)
1533
1533
  if (a[u])
1534
1534
  if (o.indexOf(u) > -1)
1535
- a[u] = K([l[u]], a[u]);
1535
+ a[u] = X([l[u]], a[u]);
1536
1536
  else if (i.indexOf(u) > -1)
1537
1537
  a[u] = b(b({}, a[u]), l[u]);
1538
1538
  else if (s.indexOf(u) > -1) {
@@ -1588,7 +1588,7 @@ function et(t, e) {
1588
1588
  function Be(t) {
1589
1589
  return new Function("return " + t)();
1590
1590
  }
1591
- function Q(t, e) {
1591
+ function W(t, e) {
1592
1592
  if (t && h.String(t) && t.length > 4) {
1593
1593
  let r = t.trim(), i = !1;
1594
1594
  try {
@@ -1629,7 +1629,7 @@ err: ${s}`);
1629
1629
  }
1630
1630
  function At(t, e) {
1631
1631
  return JSON.parse(t, function(r, i) {
1632
- return h.Undef(i) || !i.indexOf ? i : Q(i, e);
1632
+ return h.Undef(i) || !i.indexOf ? i : W(i, e);
1633
1633
  });
1634
1634
  }
1635
1635
  let Gr = 0;
@@ -1640,8 +1640,8 @@ function De() {
1640
1640
  function ee(t, e, r) {
1641
1641
  let i = t, s;
1642
1642
  return (e || "").split(".").forEach((n) => {
1643
- s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
1644
- }), F(i, s, r), i;
1643
+ s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1644
+ }), k(i, s, r), i;
1645
1645
  }
1646
1646
  function Ke(t, e) {
1647
1647
  return {
@@ -1657,8 +1657,8 @@ function Vt(t, e) {
1657
1657
  function Pt(t, e) {
1658
1658
  return ye([], [...t], e || !1);
1659
1659
  }
1660
- function X(t, e) {
1661
- return K(Array.isArray(e) ? e : [e], t, { array: Ze, normal: Ye }), t;
1660
+ function Q(t, e) {
1661
+ return X(Array.isArray(e) ? e : [e], t, { array: Ze, normal: Ye }), t;
1662
1662
  }
1663
1663
  function ft(t) {
1664
1664
  const e = h.Function(t.getRule) ? t.getRule() : t;
@@ -1666,7 +1666,7 @@ function ft(t) {
1666
1666
  }
1667
1667
  function Hr(t, e) {
1668
1668
  return t ? (Object.keys(e || {}).forEach((r) => {
1669
- e[r] && (t[r] = X(t[r] || {}, e[r]));
1669
+ e[r] && (t[r] = Q(t[r] || {}, e[r]));
1670
1670
  }), t) : e;
1671
1671
  }
1672
1672
  function Bt(t, e) {
@@ -1679,7 +1679,7 @@ function Bt(t, e) {
1679
1679
  function oe(t) {
1680
1680
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1681
1681
  }
1682
- function k(t, e) {
1682
+ function F(t, e) {
1683
1683
  try {
1684
1684
  e = t();
1685
1685
  } catch (r) {
@@ -1823,7 +1823,7 @@ _(tt.prototype, {
1823
1823
  return this._data;
1824
1824
  },
1825
1825
  setProp(t, e) {
1826
- return F(this._data, t, e), this;
1826
+ return k(this._data, t, e), this;
1827
1827
  },
1828
1828
  _clone() {
1829
1829
  const t = new this.constructor();
@@ -1833,7 +1833,7 @@ _(tt.prototype, {
1833
1833
  function Tt(t) {
1834
1834
  t.forEach((e) => {
1835
1835
  tt.prototype[e] = function(r) {
1836
- return X(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1836
+ return Q(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1837
1837
  };
1838
1838
  });
1839
1839
  }
@@ -1899,7 +1899,7 @@ function mt(t, e, r) {
1899
1899
  (e || Mt)(U(b({}, t), {
1900
1900
  onSuccess(n) {
1901
1901
  let o = (l) => l;
1902
- const a = Q(t.parse);
1902
+ const a = W(t.parse);
1903
1903
  h.Function(a) ? o = a : a && h.String(a) && (o = (l) => M(l, a)), i(o(n, void 0, r));
1904
1904
  },
1905
1905
  onError(n) {
@@ -1918,7 +1918,7 @@ function Qr(t) {
1918
1918
  function r(n, o, a) {
1919
1919
  e(n).forEach((l) => {
1920
1920
  t.getCtxs(l).forEach((u) => {
1921
- F(u.rule, o, a), t.$render.clearCache(u);
1921
+ k(u.rule, o, a), t.$render.clearCache(u);
1922
1922
  });
1923
1923
  });
1924
1924
  }
@@ -2070,7 +2070,7 @@ function Qr(t) {
2070
2070
  disabled(n, o) {
2071
2071
  e(o).forEach((a) => {
2072
2072
  t.getCtxs(a).forEach((l) => {
2073
- F(l.rule.props, "disabled", !!n);
2073
+ k(l.rule.props, "disabled", !!n);
2074
2074
  });
2075
2075
  }), t.refresh();
2076
2076
  },
@@ -2128,7 +2128,7 @@ function Qr(t) {
2128
2128
  t.$manager.updateOptions(t.options), s.refresh();
2129
2129
  },
2130
2130
  hideForm: (n) => {
2131
- F(t.vm, "isShow", !n);
2131
+ k(t.vm, "isShow", !n);
2132
2132
  },
2133
2133
  changeStatus: () => t.changeStatus,
2134
2134
  clearChangeStatus: () => {
@@ -2146,7 +2146,7 @@ function Qr(t) {
2146
2146
  },
2147
2147
  mergeRule: (n, o) => {
2148
2148
  t.getCtxs(n).forEach((a) => {
2149
- X(a.rule, o);
2149
+ Q(a.rule, o);
2150
2150
  });
2151
2151
  },
2152
2152
  mergeRules(n) {
@@ -2173,7 +2173,7 @@ function Qr(t) {
2173
2173
  },
2174
2174
  setEffect(n, o, a) {
2175
2175
  const l = t.getCtx(n);
2176
- l && o && (o[0] === "$" && (o = o.substr(1)), R(l.rule, "$" + o) && F(l.rule, "$" + o, a), R(l.rule, "effect") || F(l.rule, "effect", {}), F(l.rule.effect, o, a));
2176
+ l && o && (o[0] === "$" && (o = o.substr(1)), R(l.rule, "$" + o) && k(l.rule, "$" + o, a), R(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2177
2177
  },
2178
2178
  clearEffectData(n, o) {
2179
2179
  const a = t.getCtx(n);
@@ -2197,7 +2197,7 @@ function Qr(t) {
2197
2197
  });
2198
2198
  }), H(() => {
2199
2199
  s.clearValidateState();
2200
- }), n == null && (h.Function(t.options.onReset) && k(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2200
+ }), n == null && (h.Function(t.options.onReset) && F(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2201
2201
  },
2202
2202
  method(n, o) {
2203
2203
  const a = s.el(n);
@@ -2206,7 +2206,7 @@ function Qr(t) {
2206
2206
  return (...l) => a[o](...l);
2207
2207
  },
2208
2208
  exec(n, o, ...a) {
2209
- return k(() => s.method(n, o)(...a));
2209
+ return F(() => s.method(n, o)(...a));
2210
2210
  },
2211
2211
  toJson(n) {
2212
2212
  return et(s.rule, n);
@@ -2263,7 +2263,7 @@ function Qr(t) {
2263
2263
  getGlobalEvent(n) {
2264
2264
  let o = s.options.globalEvent[n];
2265
2265
  if (o)
2266
- return typeof o == "object" && (o = o.handle), Q(o);
2266
+ return typeof o == "object" && (o = o.handle), W(o);
2267
2267
  },
2268
2268
  getGlobalData(n) {
2269
2269
  return new Promise((o, a) => {
@@ -2277,7 +2277,7 @@ function Qr(t) {
2277
2277
  t.bus.$once("next-tick", n), t.refresh();
2278
2278
  },
2279
2279
  nextRefresh(n) {
2280
- t.nextRefresh(), n && k(n);
2280
+ t.nextRefresh(), n && F(n);
2281
2281
  },
2282
2282
  emit(n, ...o) {
2283
2283
  t.vm.$emit(n, ...o);
@@ -2289,9 +2289,9 @@ function Qr(t) {
2289
2289
  fetch(n) {
2290
2290
  return new Promise((o, a) => {
2291
2291
  n = J(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => mt(n, t.fc.create.fetch, s).then((l) => {
2292
- k(() => n.onSuccess && n.onSuccess(l)), o(l);
2292
+ F(() => n.onSuccess && n.onSuccess(l)), o(l);
2293
2293
  }).catch((l) => {
2294
- k(() => n.onError && n.onError(l)), a(l);
2294
+ F(() => n.onError && n.onError(l)), a(l);
2295
2295
  }));
2296
2296
  });
2297
2297
  },
@@ -2299,9 +2299,9 @@ function Qr(t) {
2299
2299
  return t.fc.watchLoadData((u, f) => {
2300
2300
  let p = J(n);
2301
2301
  p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => mt(p, t.fc.create.fetch, s).then((m) => {
2302
- k(() => p.onSuccess && p.onSuccess(m)), o && o(m, f);
2302
+ F(() => p.onSuccess && p.onSuccess(m)), o && o(m, f);
2303
2303
  }).catch((m) => {
2304
- k(() => p.onError && p.onError(m)), a && a(m);
2304
+ F(() => p.onError && p.onError(m)), a && a(m);
2305
2305
  }));
2306
2306
  }, n.wait == null ? 1e3 : n.wait);
2307
2307
  },
@@ -2403,8 +2403,8 @@ function Yr(t) {
2403
2403
  mergeGlobal(e) {
2404
2404
  this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ce(() => {
2405
2405
  const i = this.$handle.options.global;
2406
- return X({}, [i["*"], i[e.originType] || i[e.type] || i[e.type] || {}]);
2407
- })), e.prop = X({}, [this.cacheConfig[e.trueType].value, e.prop]));
2406
+ return Q({}, [i["*"], i[e.originType] || i[e.type] || i[e.type] || {}]);
2407
+ })), e.prop = Q({}, [this.cacheConfig[e.trueType].value, e.prop]));
2408
2408
  },
2409
2409
  setOptions(e) {
2410
2410
  const r = e.loadPending({ key: "options", origin: e.prop.options, def: [] });
@@ -2417,7 +2417,7 @@ function Yr(t) {
2417
2417
  });
2418
2418
  },
2419
2419
  parseSide(e, r) {
2420
- return h.Object(e) ? X({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2420
+ return h.Object(e) ? Q({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2421
2421
  },
2422
2422
  renderSides(e, r, i) {
2423
2423
  const s = r[i ? "rule" : "prop"];
@@ -2451,13 +2451,13 @@ function Yr(t) {
2451
2451
  model: n.model || {},
2452
2452
  slotValue: l
2453
2453
  };
2454
- l.length && i.slotUpdate && k(() => i.slotUpdate(u));
2454
+ l.length && i.slotUpdate && F(() => i.slotUpdate(u));
2455
2455
  let f = {};
2456
2456
  const p = e.loadChildrenPending();
2457
2457
  e.parser.renderChildren ? f = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(p, e));
2458
2458
  const m = this.getTypeSlot(e);
2459
- let $;
2460
- return m ? (u.children = f, $ = m(u)) : $ = a ? e.parser.preview(Je(f), e) : e.parser.render(Je(f), e), $ = this.renderSides($, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), $ = this.$manager.makeWrap(e, $)), e.none && (Array.isArray($) ? $ = $.map((v) => !v || !v.tag ? v : this.none(v)) : $ = this.none($)), o && this.setCache(e, () => this.stable($), r), $;
2459
+ let y;
2460
+ return m ? (u.children = f, y = m(u)) : y = a ? e.parser.preview(Je(f), e) : e.parser.render(Je(f), e), y = this.renderSides(y, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), y = this.$manager.makeWrap(e, y)), e.none && (Array.isArray(y) ? y = y.map((v) => !v || !v.tag ? v : this.none(v)) : y = this.none(y)), o && this.setCache(e, () => this.stable(y), r), y;
2461
2461
  }, this.setCache(e, s, r);
2462
2462
  }
2463
2463
  return (...s) => {
@@ -2560,7 +2560,7 @@ function Yr(t) {
2560
2560
  on: {
2561
2561
  [e.prop.modelEmit]: () => this.onEmitInput(e)
2562
2562
  }
2563
- })), K(n, e.prop), e.prop;
2563
+ })), X(n, e.prop), e.prop;
2564
2564
  },
2565
2565
  onMounted(e) {
2566
2566
  e.el = this.vm.$refs[e.ref], e.el && ((e.el.$el || e.el).__rule__ = e.rule), e.parser.mounted(e), this.$handle.effect(e, "mounted"), this.$handle.targetHook(e, "mounted");
@@ -2655,7 +2655,7 @@ function ei(t) {
2655
2655
  if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2656
2656
  return this.parseEventLst(e, r, i, !0);
2657
2657
  if (h.String(r)) {
2658
- const n = Q(r);
2658
+ const n = W(r);
2659
2659
  if (n && r !== n)
2660
2660
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2661
2661
  }
@@ -2667,8 +2667,8 @@ function ei(t) {
2667
2667
  let p, m = n || o || a;
2668
2668
  if (h.Object(f) && (p = f.inject, f = f.name, m = f.prefix || m), m) {
2669
2669
  r || (m = `native-${m}`);
2670
- const $ = ge(`${m}-${f}`), v = (...w) => {
2671
- this.vm.$emit($, ...w), this.vm.$emit("emit-event", $, ...w), this.bus.$emit($, ...w);
2670
+ const y = ge(`${m}-${f}`), v = (...w) => {
2671
+ this.vm.$emit(y, ...w), this.vm.$emit("emit-event", y, ...w), this.bus.$emit(y, ...w);
2672
2672
  };
2673
2673
  if (v.__emit = !0, !p && l === !1)
2674
2674
  i[f] = v;
@@ -2719,19 +2719,14 @@ function ei(t) {
2719
2719
  },
2720
2720
  loadFetchVar(e, r) {
2721
2721
  const i = (s) => this.loadStrVar(s, r);
2722
- if (e.action = i(e.action), e.headers) {
2723
- const s = {};
2724
- Object.keys(e.headers).forEach((n) => {
2725
- s[i(n)] = i(e.headers[n]);
2726
- }), e.headers = s;
2727
- }
2728
- if (e.data) {
2729
- const s = {};
2730
- Object.keys(e.data).forEach((n) => {
2731
- s[i(n)] = i(e.data[n]);
2732
- }), e.data = s;
2733
- }
2734
- return e;
2722
+ return e.action = i(e.action || ""), ["headers", "data", "query"].forEach((s) => {
2723
+ if (e[s]) {
2724
+ const n = {};
2725
+ Object.keys(e[s]).forEach((o) => {
2726
+ n[i(o)] = i(e[s][o]);
2727
+ }), e[s] = n;
2728
+ }
2729
+ }), e;
2735
2730
  }
2736
2731
  });
2737
2732
  }
@@ -2844,7 +2839,7 @@ _(qt.prototype, {
2844
2839
  delete this.pending[e];
2845
2840
  let a = r;
2846
2841
  if (h.Function(r)) {
2847
- let l = k(() => r({
2842
+ let l = F(() => r({
2848
2843
  rule: this.rule,
2849
2844
  api: this.$api,
2850
2845
  update: (u) => {
@@ -2891,7 +2886,7 @@ _(qt.prototype, {
2891
2886
  },
2892
2887
  initProp() {
2893
2888
  const t = b({}, this.rule);
2894
- delete t.children, delete t.validate, this.prop = X({}, [t, ...Object.keys(this.payload).map((e) => this.payload[e]), this.computed]), this.prop.validate = [...this.refRule.__$validate.value || [], ...this.prop.validate || []];
2889
+ delete t.children, delete t.validate, this.prop = Q({}, [t, ...Object.keys(this.payload).map((e) => this.payload[e]), this.computed]), this.prop.validate = [...this.refRule.__$validate.value || [], ...this.prop.validate || []];
2895
2890
  },
2896
2891
  initNone() {
2897
2892
  this.none = !(h.Undef(this.prop.display) || this.prop.display);
@@ -2971,7 +2966,7 @@ function si(t) {
2971
2966
  __origin__: Ke(e, !0)
2972
2967
  }), oi(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
2973
2968
  i && this.loadFn(i, r);
2974
- }), this.loadCtrl(r), r.update && (r.update = Q(r.update)), r;
2969
+ }), this.loadCtrl(r), r.update && (r.update = W(r.update)), r;
2975
2970
  },
2976
2971
  loadFn(e, r) {
2977
2972
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -2980,12 +2975,12 @@ function si(t) {
2980
2975
  },
2981
2976
  loadCtrl(e) {
2982
2977
  e.control && e.control.forEach((r) => {
2983
- r.handle && (r.handle = Q(r.handle));
2978
+ r.handle && (r.handle = W(r.handle));
2984
2979
  });
2985
2980
  },
2986
2981
  syncProp(e) {
2987
2982
  const r = e.rule;
2988
- h.trueArray(r.sync) && K([{
2983
+ h.trueArray(r.sync) && X([{
2989
2984
  on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
2990
2985
  r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
2991
2986
  }, i), {})
@@ -3019,9 +3014,9 @@ function si(t) {
3019
3014
  let l = ft(o);
3020
3015
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3021
3016
  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);
3022
- let f, p = !1, m = !!o.__fc__, $ = l.value;
3017
+ let f, p = !1, m = !!o.__fc__, y = l.value;
3023
3018
  if (m) {
3024
- if (f = o.__fc__, $ = f.defaultValue, f.deleted) {
3019
+ if (f = o.__fc__, y = f.defaultValue, f.deleted) {
3025
3020
  if (yt(f))
3026
3021
  return;
3027
3022
  f.update(this);
@@ -3035,7 +3030,7 @@ function si(t) {
3035
3030
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3036
3031
  else {
3037
3032
  const j = this.parseRule(o);
3038
- f = new qt(this, j, $), this.bindParser(f);
3033
+ f = new qt(this, j, y), this.bindParser(f);
3039
3034
  }
3040
3035
  [!1, !0].forEach((j) => this.parseEmit(f, j)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !p && !m && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3041
3036
  const v = f.loadChildrenPending();
@@ -3062,7 +3057,7 @@ function si(t) {
3062
3057
  };
3063
3058
  if (!h.trueArray(l.rule)) continue;
3064
3059
  const f = U(b({}, l), {
3065
- valid: k(() => u(e.rule.value, s)),
3060
+ valid: F(() => u(e.rule.value, s)),
3066
3061
  ctrl: li(e, l.rule),
3067
3062
  isHidden: h.String(l.rule[0])
3068
3063
  });
@@ -3072,13 +3067,13 @@ function si(t) {
3072
3067
  const n = [];
3073
3068
  let o = !1;
3074
3069
  return this.deferSyncValue(() => {
3075
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: m, ctrl: $, method: v }) => {
3070
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: m, ctrl: y, method: v }) => {
3076
3071
  if (a) {
3077
3072
  l ? e.ctrlRule.push({
3078
3073
  __ctrl: !0,
3079
3074
  children: u,
3080
3075
  valid: l
3081
- }) : $ && e.ctrlRule.splice(e.ctrlRule.indexOf($) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3076
+ }) : y && e.ctrlRule.splice(e.ctrlRule.indexOf(y) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3082
3077
  v === "disabled" || v === "enabled" ? this.api.disabled(!l, u) : v === "display" ? this.api.display(l, u) : v === "required" ? (u.forEach((w) => {
3083
3078
  this.api.setEffect(w, "required", l);
3084
3079
  }), l || this.api.clearValidateState(u)) : this.api.hidden(!l, u);
@@ -3097,8 +3092,8 @@ function si(t) {
3097
3092
  f ? s.prepend(w, f, m) : p || m ? s.append(w, p || e.id, m) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, w);
3098
3093
  });
3099
3094
  } else {
3100
- e.ctrlRule.splice(e.ctrlRule.indexOf($), 1);
3101
- const w = oe($);
3095
+ e.ctrlRule.splice(e.ctrlRule.indexOf(y), 1);
3096
+ const w = oe(y);
3102
3097
  w && w.rm();
3103
3098
  }
3104
3099
  });
@@ -3129,7 +3124,7 @@ function si(t) {
3129
3124
  function oi(t) {
3130
3125
  const e = Lt();
3131
3126
  return Object.keys(e).forEach((r) => {
3132
- R(t, r) || F(t, r, e[r]);
3127
+ R(t, r) || k(t, r, e[r]);
3133
3128
  }), t;
3134
3129
  }
3135
3130
  function ai(t) {
@@ -3173,7 +3168,7 @@ function ui(t) {
3173
3168
  setFormData(e, r) {
3174
3169
  e.modelValue = r;
3175
3170
  const i = e.getParentGroup();
3176
- 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);
3171
+ 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);
3177
3172
  },
3178
3173
  rmSubRuleData(e) {
3179
3174
  const r = e.getParentGroup();
@@ -3199,7 +3194,7 @@ function ui(t) {
3199
3194
  this.subForm[e.id] = r;
3200
3195
  },
3201
3196
  deferSyncValue(e, r) {
3202
- this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), k(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
3197
+ this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), F(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
3203
3198
  },
3204
3199
  syncValue() {
3205
3200
  if (this.deferSyncFn)
@@ -3217,7 +3212,7 @@ function ui(t) {
3217
3212
  },
3218
3213
  refreshUpdate(e, r, i, s) {
3219
3214
  if (h.Function(e.rule.update)) {
3220
- const n = k(() => e.rule.update(r, e.origin, this.api, {
3215
+ const n = F(() => e.rule.update(r, e.origin, this.api, {
3221
3216
  origin: i || "change",
3222
3217
  linkField: s
3223
3218
  }));
@@ -3246,7 +3241,7 @@ function ui(t) {
3246
3241
  function $t(t, e) {
3247
3242
  return typeof e == "function" ? "" + e : e;
3248
3243
  }
3249
- const Fe = {
3244
+ const ke = {
3250
3245
  init(t) {
3251
3246
  },
3252
3247
  toFormValue(t, e) {
@@ -3301,7 +3296,7 @@ function ci(t) {
3301
3296
  if (n)
3302
3297
  return n;
3303
3298
  }
3304
- return r[e.originType] || r[q(e.type)] || r[e.trueType] || Fe;
3299
+ return r[e.originType] || r[q(e.type)] || r[e.trueType] || ke;
3305
3300
  },
3306
3301
  bindParser(e) {
3307
3302
  e.setParser(this.getParser(e));
@@ -3311,7 +3306,7 @@ function ci(t) {
3311
3306
  return q(i);
3312
3307
  },
3313
3308
  noWatch(e) {
3314
- this.noWatchFn || (this.noWatchFn = e), k(e), this.noWatchFn === e && (this.noWatchFn = null);
3309
+ this.noWatchFn || (this.noWatchFn = e), F(e), this.noWatchFn === e && (this.noWatchFn = null);
3315
3310
  },
3316
3311
  watchCtx(e) {
3317
3312
  if (jt().filter((i) => i[0] !== "_" && i[0] !== "$" && fi.indexOf(i) === -1).forEach((i) => {
@@ -3406,29 +3401,29 @@ function ci(t) {
3406
3401
  let u = !0;
3407
3402
  for (let f = 0; f < a.group.length; f++) {
3408
3403
  const p = a.group[f];
3409
- let m, $ = null;
3404
+ let m, y = null;
3410
3405
  if (p.variable)
3411
- $ = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3406
+ y = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3412
3407
  else if (p.field)
3413
- $ = ht(p.field || "");
3408
+ y = ht(p.field || "");
3414
3409
  else
3415
3410
  return !0;
3416
3411
  let v = p.compare;
3417
- if (v && (v = ht(v || "")), p.mode ? m = n(p) : ae[p.condition] ? h.Function(p.handler) ? m = k(() => p.handler(this.api, e.rule)) : m = new Function("$condition", "$val", "$form", "$group", "$rule", `with($form){with(this){with($group){ return $condition['${p.condition}'](${$}, ${v || "$val"}); }}}`).call(this.api.form, ae, p.value, this.api.top.form, s ? this.subRuleData[s.id] || {} : {}, e.rule) : m = !1, l && m)
3412
+ if (v && (v = ht(v || "")), p.mode ? m = n(p) : ae[p.condition] ? h.Function(p.handler) ? m = F(() => p.handler(this.api, e.rule)) : m = new Function("$condition", "$val", "$form", "$group", "$rule", `with($form){with(this){with($group){ return $condition['${p.condition}'](${y}, ${v || "$val"}); }}}`).call(this.api.form, ae, p.value, this.api.top.form, s ? this.subRuleData[s.id] || {} : {}, e.rule) : m = !1, l && m)
3418
3413
  return !0;
3419
3414
  l || (u = u && m);
3420
3415
  }
3421
3416
  return l ? !1 : u;
3422
3417
  };
3423
3418
  let o = n(r);
3424
- return o = r.invert === !0 ? !o : o, r.linkage ? o ? k(() => this.computeValue(r.linkage, e, s), void 0) : void 0 : o;
3419
+ return o = r.invert === !0 ? !o : o, r.linkage ? o ? F(() => this.computeValue(r.linkage, e, s), void 0) : void 0 : o;
3425
3420
  } else if (h.Function(r))
3426
3421
  i = () => r(this.api.form, this.api);
3427
3422
  else {
3428
3423
  const s = e.getParentGroup();
3429
3424
  i = () => this.computeValue(r, e, s);
3430
3425
  }
3431
- return k(i, void 0);
3426
+ return F(i, void 0);
3432
3427
  },
3433
3428
  computeValue(e, r, i) {
3434
3429
  const s = this, n = Object.keys(this.fc.formulas).reduce((o, a) => (o[a] = function(...l) {
@@ -3486,8 +3481,8 @@ function hi(t) {
3486
3481
  emitEvent(e, ...r) {
3487
3482
  const i = this.options[e] || this.options[q("on-" + e)];
3488
3483
  if (i) {
3489
- const s = Q(i);
3490
- h.Function(s) && k(() => s(...r));
3484
+ const s = W(i);
3485
+ h.Function(s) && F(() => s(...r));
3491
3486
  }
3492
3487
  this.bus.$emit(e, ...r);
3493
3488
  },
@@ -3495,7 +3490,7 @@ function hi(t) {
3495
3490
  var n, o;
3496
3491
  let s = (o = (n = e.prop) == null ? void 0 : n.hook) == null ? void 0 : o[r];
3497
3492
  s && (s = Array.isArray(s) ? s : [s], s.forEach((a) => {
3498
- k(() => a(U(b({}, i || {}), { rule: e.rule, api: this.api })));
3493
+ F(() => a(U(b({}, i || {}), { rule: e.rule, api: this.api })));
3499
3494
  }));
3500
3495
  }
3501
3496
  });
@@ -3571,7 +3566,7 @@ function di(t) {
3571
3566
  else
3572
3567
  return;
3573
3568
  const m = b({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3574
- e && (m.getProp = () => e.effectData(u), m.clearProp = () => e.clearEffectData(u), m.mergeProp = ($) => X(m.getProp(), [$]), m.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [m, r, this.api]);
3569
+ e && (m.getProp = () => e.effectData(u), m.clearProp = () => e.clearEffectData(u), m.mergeProp = (y) => Q(m.getProp(), [y]), m.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [m, r, this.api]);
3575
3570
  });
3576
3571
  }
3577
3572
  });
@@ -3588,7 +3583,7 @@ function mi(t) {
3588
3583
  return r.length ? r : !1;
3589
3584
  } else return h.String(e) ? [e] : !1;
3590
3585
  }
3591
- function W(t) {
3586
+ function z(t) {
3592
3587
  Bt(this, {
3593
3588
  options() {
3594
3589
  return t.options.value || {};
@@ -3624,11 +3619,11 @@ function W(t) {
3624
3619
  this.lifecycle("reload");
3625
3620
  }
3626
3621
  }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3627
- const i = k(() => r(e, this));
3622
+ const i = F(() => r(e, this));
3628
3623
  return i && i !== e && _(e, i), e;
3629
3624
  }, Qr(this));
3630
3625
  }
3631
- _(W.prototype, {
3626
+ _(z.prototype, {
3632
3627
  initData(t) {
3633
3628
  _(this, {
3634
3629
  ctxs: {},
@@ -3649,19 +3644,19 @@ _(W.prototype, {
3649
3644
  },
3650
3645
  beforeFetch(t) {
3651
3646
  return new Promise((e) => {
3652
- const r = this.options.beforeFetch && k(() => this.options.beforeFetch(t, { api: this.api }));
3647
+ const r = this.options.beforeFetch && F(() => this.options.beforeFetch(t, { api: this.api }));
3653
3648
  r && h.Function(r.then) ? r.then(e) : e();
3654
3649
  });
3655
3650
  }
3656
3651
  });
3657
- ei(W);
3658
- ti(W);
3659
- ii(W);
3660
- si(W);
3661
- ui(W);
3662
- ci(W);
3663
- hi(W);
3664
- di(W);
3652
+ ei(z);
3653
+ ti(z);
3654
+ ii(z);
3655
+ si(z);
3656
+ ui(z);
3657
+ ci(z);
3658
+ hi(z);
3659
+ di(z);
3665
3660
  const gi = "fcFragment", Te = {
3666
3661
  name: gi,
3667
3662
  functional: !0,
@@ -3751,7 +3746,7 @@ _(Gt.prototype, {
3751
3746
  return e(this.vm);
3752
3747
  },
3753
3748
  mergeOptions(t, e) {
3754
- return K(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3749
+ return X(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3755
3750
  },
3756
3751
  updateOptions(t) {
3757
3752
  this.$handle.fc.targetFormDriver("updateOptions", t, { handle: this.$handle, api: this.$handle.api }), this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
@@ -3781,9 +3776,9 @@ const bi = function(t) {
3781
3776
  if (a && (a.attr || a.template)) {
3782
3777
  let l = (p) => {
3783
3778
  let m;
3784
- a.template ? m = t.$handle.loadStrVar(a.template, p) : m = p(a.attr, a.default), a.copy !== !1 && (m = J(m));
3785
- const $ = a.modify ? i : r.getProp();
3786
- a.to === "child" ? $.children ? F($.children, 0, m) : F($, "children", [m]) : ee($, a.to || "options", m), s.sync(i);
3779
+ a.template ? m = t.$handle.loadStrVar(a.template, p) : a.handler && h.Function(a.handler) ? m = a.handler(p, i, s) : m = p(a.attr, a.default), a.copy !== !1 && (m = J(m));
3780
+ const y = a.modify ? i : r.getProp();
3781
+ a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : ee(y, a.to || "options", m), s.sync(i);
3787
3782
  }, u = (p) => l(p);
3788
3783
  const f = t.watchLoadData(u);
3789
3784
  l = le(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
@@ -3809,11 +3804,11 @@ const bi = function(t) {
3809
3804
  const l = n[a];
3810
3805
  if (l) {
3811
3806
  const u = typeof l == "object";
3812
- let f = ($) => {
3813
- let v = t.t(u ? l.attr : l, u ? l.params : null, $);
3807
+ let f = (y) => {
3808
+ let v = t.t(u ? l.attr : l, u ? l.params : null, y);
3814
3809
  const w = u && l.modify ? i : r.getProp();
3815
- a === "child" ? w.children ? F(w.children, 0, v) : F(w, "children", [v]) : ee(w, a, v), s.sync(i);
3816
- }, p = ($) => f($);
3810
+ a === "child" ? w.children ? k(w.children, 0, v) : k(w, "children", [v]) : ee(w, a, v), s.sync(i);
3811
+ }, p = (y) => f(y);
3817
3812
  const m = t.watchLoadData(p);
3818
3813
  f = le(f, l.wait || 300), l.watch !== !1 ? o.push(m) : m();
3819
3814
  }
@@ -3887,29 +3882,29 @@ const bi = function(t) {
3887
3882
  i._fn[s.id] = t.watchLoadData(le((p, m) => {
3888
3883
  if (m && a.watch === !1)
3889
3884
  return i._fn[s.id]();
3890
- const $ = t.$handle.loadFetchVar(J(a), p), v = U(b({
3885
+ const y = t.$handle.loadFetchVar(J(a), p), v = U(b({
3891
3886
  headers: {}
3892
- }, $), {
3887
+ }, y), {
3893
3888
  onSuccess(w, j) {
3894
3889
  if (f()) return;
3895
3890
  let Z = (L) => j ? L : R(L, "data") ? L.data : L;
3896
- const V = Q($.parse);
3891
+ const V = W(y.parse);
3897
3892
  h.Function(V) ? Z = V : V && h.String(V) && (Z = (L) => M(L, V)), l(Z(w, n, o)), o.sync(n);
3898
3893
  },
3899
3894
  onError(w) {
3900
- l(void 0), !f() && (u || ((j) => xe(j.message || "fetch fail " + $.action)))(w, n, o);
3895
+ l(void 0), !f() && (u || ((j) => xe(j.message || "fetch fail " + y.action)))(w, n, o);
3901
3896
  }
3902
3897
  });
3903
3898
  t.$handle.beforeFetch(v, { rule: n, api: o }).then(() => {
3904
- if (h.Function($.action)) {
3905
- $.action(n, o).then((w) => {
3899
+ if (h.Function(y.action)) {
3900
+ y.action(n, o).then((w) => {
3906
3901
  v.onSuccess(w, !0);
3907
3902
  }).catch((w) => {
3908
3903
  v.onError(w);
3909
3904
  });
3910
3905
  return;
3911
3906
  }
3912
- k(() => t.create.fetch(v, { inject: s, rule: n, api: o }));
3907
+ F(() => t.create.fetch(v, { inject: s, rule: n, api: o }));
3913
3908
  });
3914
3909
  }, a.wait || 600));
3915
3910
  }
@@ -3957,8 +3952,8 @@ function Oi(t) {
3957
3952
  };
3958
3953
  return e;
3959
3954
  }
3960
- const ki = "html", Fi = {
3961
- name: ki,
3955
+ const Fi = "html", ki = {
3956
+ name: Fi,
3962
3957
  loadChildren: !1,
3963
3958
  render(t, e) {
3964
3959
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
@@ -4042,7 +4037,7 @@ function Wt(t) {
4042
4037
  t.extendApi
4043
4038
  ], u = b({}, wi), f = Kr();
4044
4039
  let p = { global: {} };
4045
- const m = x({}), $ = $i(), v = {}, w = t.isMobile === !0, j = {};
4040
+ const m = x({}), y = $i(), v = {}, w = t.isMobile === !0, j = {};
4046
4041
  Vi(t.attrs || {});
4047
4042
  function Z(c) {
4048
4043
  const d = N[c];
@@ -4065,13 +4060,13 @@ function Wt(t) {
4065
4060
  }));
4066
4061
  }
4067
4062
  function $e(c) {
4068
- $.use(c);
4063
+ y.use(c);
4069
4064
  }
4070
4065
  function O() {
4071
4066
  const c = Ne(...arguments);
4072
- if (!c.id || !c.prop) return Fe;
4073
- const d = q(c.id), g = c.prop, y = g.merge === !0 ? r[d] : void 0;
4074
- r[d] = we(g, y || Fe), f[d] = A(d), g.maker && _(f, g.maker);
4067
+ if (!c.id || !c.prop) return ke;
4068
+ const d = q(c.id), g = c.prop, $ = g.merge === !0 ? r[d] : void 0;
4069
+ r[d] = we(g, $ || ke), f[d] = A(d), g.maker && _(f, g.maker);
4075
4070
  }
4076
4071
  function E(c, d) {
4077
4072
  let g;
@@ -4081,8 +4076,8 @@ function Wt(t) {
4081
4076
  } else
4082
4077
  g = q(c.name), d = c;
4083
4078
  if (!g || !d) return;
4084
- const y = q(g);
4085
- e[g] = d, e[y] = d, delete $.aliasMap[g], delete $.aliasMap[y], delete r[g], delete r[y], d.formCreateParser && O(g, d.formCreateParser);
4079
+ const $ = q(g);
4080
+ e[g] = d, e[$] = d, delete y.aliasMap[g], delete y.aliasMap[$], delete r[g], delete r[$], d.formCreateParser && O(g, d.formCreateParser);
4086
4081
  }
4087
4082
  function P() {
4088
4083
  return Nr(Ve, e, i);
@@ -4094,9 +4089,9 @@ function Wt(t) {
4094
4089
  return h.Function(c.install) ? c.install(ie, d) : h.Function(c) && c(ie, d), this;
4095
4090
  }
4096
4091
  function ie(c, d, g) {
4097
- let y = Ai(c, d || {});
4098
- const C = y.$refs.fc.formCreate;
4099
- return C.$parent = g, Ii(C.options).appendChild(y.$el), C.api();
4092
+ let $ = Ai(c, d || {});
4093
+ const C = $.$refs.fc.formCreate;
4094
+ return C.$parent = g, Ii(C.options).appendChild($.$el), C.api();
4100
4095
  }
4101
4096
  we(ie, j);
4102
4097
  function Kt(c) {
@@ -4120,15 +4115,15 @@ function Wt(t) {
4120
4115
  v[c] = d;
4121
4116
  }
4122
4117
  function Zt(c, d) {
4123
- const g = n[c] || {}, y = g.parsers || {};
4118
+ const g = n[c] || {}, $ = g.parsers || {};
4124
4119
  d.parsers && Object.keys(d.parsers).forEach((C) => {
4125
- y[C] = we(d.parsers[C], Fe);
4126
- }), d.name = c, n[c] = U(b(b({}, g), d), { parsers: y });
4120
+ $[C] = we(d.parsers[C], ke);
4121
+ }), d.name = c, n[c] = U(b(b({}, g), d), { parsers: $ });
4127
4122
  }
4128
4123
  function be(c) {
4129
4124
  c && Object.keys(N).forEach((d) => {
4130
- (Array.isArray(N[d]) ? N[d] : [N[d]]).forEach((y) => {
4131
- y.bus.$emit("$loadData." + c);
4125
+ (Array.isArray(N[d]) ? N[d] : [N[d]]).forEach(($) => {
4126
+ $.bus.$emit("$loadData." + c);
4132
4127
  });
4133
4128
  });
4134
4129
  }
@@ -4136,16 +4131,16 @@ function Wt(t) {
4136
4131
  ee(m, c, d), be(c);
4137
4132
  }
4138
4133
  function Ae(c, d) {
4139
- const g = (...y) => k(() => d(...y));
4134
+ const g = (...$) => F(() => d(...$));
4140
4135
  g._driver = !0, Ie(c, g);
4141
4136
  }
4142
4137
  function it(c, d) {
4143
4138
  const g = (c || "").split(".");
4144
4139
  c = g.shift();
4145
- const y = g.join(".");
4146
- if (R(m, c) || F(m, c, Oe), m[c] !== Oe) {
4140
+ const $ = g.join(".");
4141
+ if (R(m, c) || k(m, c, Oe), m[c] !== Oe) {
4147
4142
  let C = m[c];
4148
- return C && C._driver ? C = C(y) : g.length && (C = M(C, g)), C == null || C === "" ? d : C;
4143
+ return C && C._driver ? C = C($) : g.length && (C = M(C, g)), C == null || C === "" ? d : C;
4149
4144
  } else
4150
4145
  return d;
4151
4146
  }
@@ -4181,7 +4176,7 @@ function Wt(t) {
4181
4176
  get: null,
4182
4177
  refreshData: be,
4183
4178
  loadData: m,
4184
- CreateNode: $,
4179
+ CreateNode: y,
4185
4180
  bus: new Oi(),
4186
4181
  unwatch: [],
4187
4182
  options: pr({}),
@@ -4194,7 +4189,7 @@ function Wt(t) {
4194
4189
  B(this.options, () => {
4195
4190
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4196
4191
  }, { deep: !0 });
4197
- }), _(c.$options.components, e), _(c.$options.directives, i), this.$handle = new W(this), this.name && (this.inFor ? (N[this.name] || (N[this.name] = []), N[this.name].push(this)) : N[this.name] = this);
4192
+ }), _(c.$options.components, e), _(c.$options.directives, i), this.$handle = new z(this), this.name && (this.inFor ? (N[this.name] || (N[this.name] = []), N[this.name].push(this)) : N[this.name] = this);
4198
4193
  }
4199
4194
  Ve.isMobile = w, _(Ve.prototype, {
4200
4195
  init() {
@@ -4204,44 +4199,44 @@ function Wt(t) {
4204
4199
  },
4205
4200
  targetFormDriver(c, ...d) {
4206
4201
  if (this.renderDriver && this.renderDriver[c])
4207
- return k(() => this.renderDriver[c](...d));
4202
+ return F(() => this.renderDriver[c](...d));
4208
4203
  },
4209
4204
  t(c, d, g) {
4210
- let y = g ? g("$t." + c) : this.globalLanguageDriver(c);
4211
- return y == null && this.vm.$i18n ? this.vm.$i18n.t(c, d) : (y == null && (y = ""), y && d && Object.keys(d).forEach((C) => {
4205
+ let $ = g ? g("$t." + c) : this.globalLanguageDriver(c);
4206
+ return $ == null && ($ = ""), $ && d && Object.keys(d).forEach((C) => {
4212
4207
  const S = new RegExp(`{${C}}`, "g");
4213
- y = y.replace(S, d[C]);
4214
- }), y);
4208
+ $ = $.replace(S, d[C]);
4209
+ }), $;
4215
4210
  },
4216
4211
  globalDataDriver(c) {
4217
4212
  let d = c.split(".");
4218
- const g = d.shift(), y = this.options.value.globalData && this.options.value.globalData[g];
4219
- if (y) {
4220
- if (y.type === "static")
4221
- return M(y.data, d);
4213
+ const g = d.shift(), $ = this.options.value.globalData && this.options.value.globalData[g];
4214
+ if ($) {
4215
+ if ($.type === "static")
4216
+ return M($.data, d);
4222
4217
  {
4223
4218
  let C;
4224
- const S = this.fetchCache.get(y);
4219
+ const S = this.fetchCache.get($);
4225
4220
  if (S) {
4226
4221
  if (S.status && (C = M(S.data, d)), !S.loading)
4227
4222
  return C;
4228
- S.loading = !1, this.fetchCache.set(y, S);
4223
+ S.loading = !1, this.fetchCache.set($, S);
4229
4224
  } else
4230
- this.fetchCache.set(y, { status: !1 });
4225
+ this.fetchCache.set($, { status: !1 });
4231
4226
  const I = le(() => {
4232
4227
  ue();
4233
- const T = this.fetchCache.get(y);
4234
- this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(y) !== -1 ? (T && (T.loading = !0, this.fetchCache.set(y, T)), this.bus.$emit("$loadData.$globalData." + g)) : this.fetchCache.delete(y);
4235
- }, y.wait || 600), de = (T) => {
4236
- this.fetchCache.set(y, { status: !0, data: T }), this.bus.$emit("$loadData.$globalData." + g);
4228
+ const T = this.fetchCache.get($);
4229
+ this.options.value.globalData && Object.values(this.options.value.globalData).indexOf($) !== -1 ? (T && (T.loading = !0, this.fetchCache.set($, T)), this.bus.$emit("$loadData.$globalData." + g)) : this.fetchCache.delete($);
4230
+ }, $.wait || 600), de = (T) => {
4231
+ this.fetchCache.set($, { status: !0, data: T }), this.bus.$emit("$loadData.$globalData." + g);
4237
4232
  }, pe = (T, ne) => {
4238
- if (ne && y.watch === !1)
4233
+ if (ne && $.watch === !1)
4239
4234
  return ue();
4240
4235
  if (ne) {
4241
4236
  I();
4242
4237
  return;
4243
4238
  }
4244
- const se = this.$handle.loadFetchVar(Je(y), T);
4239
+ const se = this.$handle.loadFetchVar(Je($), T);
4245
4240
  this.$handle.api.fetch(se).then((Ce) => {
4246
4241
  de(Ce);
4247
4242
  }).catch((Ce) => {
@@ -4254,23 +4249,23 @@ function Wt(t) {
4254
4249
  },
4255
4250
  getLocale() {
4256
4251
  let c = this.vm.top.$props.locale;
4257
- return c && typeof c == "object" ? c.name : typeof c == "string" ? c : this.vm.$i18n && this.vm.$i18n.locale ? this.vm.$i18n.locale : "zh-cn";
4252
+ return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4258
4253
  },
4259
4254
  globalLanguageDriver(c) {
4260
4255
  let d = this.vm.top.$props.locale, g;
4261
4256
  if (d && typeof d == "object" && (g = M(d, c)), g == null) {
4262
- const y = this.options.value.language || {}, C = this.getLocale();
4263
- g = M(y[C], c);
4257
+ const $ = this.options.value.language || {}, C = this.getLocale();
4258
+ g = M($[C], c);
4264
4259
  }
4265
4260
  return g;
4266
4261
  },
4267
4262
  globalVarDriver(c) {
4268
4263
  let d = c.split(".");
4269
- const g = d.shift(), y = this.options.value.globalVariable && this.options.value.globalVariable[g];
4270
- if (y) {
4271
- const C = h.Function(y) ? y : y.handle;
4264
+ const g = d.shift(), $ = this.options.value.globalVariable && this.options.value.globalVariable[g];
4265
+ if ($) {
4266
+ const C = h.Function($) ? $ : W($.handle);
4272
4267
  if (C)
4273
- return M(k(() => C(this.get || ((...S) => this.getLoadData(...S)), this.$handle.api)), d);
4268
+ return M(F(() => C(this.get || ((...S) => this.getLoadData(...S)), this.$handle.api)), d);
4274
4269
  }
4275
4270
  },
4276
4271
  setData(c, d, g) {
@@ -4279,8 +4274,8 @@ function Wt(t) {
4279
4274
  getLoadData(c, d) {
4280
4275
  let g = null;
4281
4276
  if (c != null) {
4282
- let y = c.split(".");
4283
- const C = y.shift();
4277
+ let $ = c.split(".");
4278
+ const C = $.shift();
4284
4279
  if (C === "$topForm")
4285
4280
  g = this.$handle.api.top.formData();
4286
4281
  else if (C === "$form")
@@ -4288,25 +4283,25 @@ function Wt(t) {
4288
4283
  else if (C === "$options")
4289
4284
  g = this.options.value;
4290
4285
  else if (C === "$globalData")
4291
- g = this.globalDataDriver(y.join(".")), y = [];
4286
+ g = this.globalDataDriver($.join(".")), $ = [];
4292
4287
  else if (C === "$var")
4293
- g = this.globalVarDriver(y.join(".")), y = [];
4288
+ g = this.globalVarDriver($.join(".")), $ = [];
4294
4289
  else if (C === "$locale")
4295
- g = this.getLocale(), y = [];
4290
+ g = this.getLocale(), $ = [];
4296
4291
  else if (C === "$t")
4297
- g = this.globalLanguageDriver(y.join(".")), y = [];
4292
+ g = this.globalLanguageDriver($.join(".")), $ = [];
4298
4293
  else {
4299
4294
  const S = this.vm.top.fc.tmpData;
4300
- R(S, C) || F(S, C, Oe), g = S[C] !== Oe ? M(S, c) : it(c), y = [];
4295
+ R(S, C) || k(S, C, Oe), g = S[C] !== Oe ? M(S, c) : it(c), $ = [];
4301
4296
  }
4302
- g && y.length && (g = M(g, y));
4297
+ g && $.length && (g = M(g, $));
4303
4298
  }
4304
4299
  return g == null || g === "" ? d : g;
4305
4300
  },
4306
4301
  watchLoadData(c, d) {
4307
4302
  let g = {};
4308
- const y = (I) => {
4309
- this.get || (this.get = C), k(() => {
4303
+ const $ = (I) => {
4304
+ this.get || (this.get = C), F(() => {
4310
4305
  c(C, I);
4311
4306
  }), this.get === C && (this.get = void 0);
4312
4307
  }, C = (I, de) => {
@@ -4315,7 +4310,7 @@ function Wt(t) {
4315
4310
  const pe = ce(() => this.getLoadData(I, de)), ue = I.split("."), T = ue.shift(), ne = ue.shift() || "", se = le(() => {
4316
4311
  const Pe = this.getLoadData(I, de);
4317
4312
  if (g[I])
4318
- JSON.stringify(Pe) !== JSON.stringify(g[I].val) && (g[I].val = Pe, y(!0));
4313
+ JSON.stringify(Pe) !== JSON.stringify(g[I].val) && (g[I].val = Pe, $(!0));
4319
4314
  else return;
4320
4315
  }, d || 0), Ce = B(pe, (Pe) => {
4321
4316
  se();
@@ -4327,7 +4322,7 @@ function Wt(t) {
4327
4322
  val: pe.value
4328
4323
  }, pe.value;
4329
4324
  };
4330
- y(!1);
4325
+ $(!1);
4331
4326
  const S = () => {
4332
4327
  Object.keys(g).forEach((I) => g[I].fn()), g = {};
4333
4328
  };
@@ -4348,8 +4343,8 @@ function Wt(t) {
4348
4343
  this.isSub() && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$options.propsData.option || {}), this.updateOptions(c);
4349
4344
  },
4350
4345
  mergeOptions(c, d, g) {
4351
- return d = b({}, d || {}), g && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((y) => {
4352
- delete d[y];
4346
+ return d = b({}, d || {}), g && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach(($) => {
4347
+ delete d[$];
4353
4348
  }), d.global && (c.global = Hr(c.global, d.global), delete d.global), this.$handle.$manager.mergeOptions([d], c), c;
4354
4349
  },
4355
4350
  updateOptions(c) {
@@ -4404,10 +4399,10 @@ function Wt(t) {
4404
4399
  componentAlias: $e,
4405
4400
  copyRule: Vt,
4406
4401
  copyRules: Pt,
4407
- mergeRule: X,
4402
+ mergeRule: Q,
4408
4403
  fetch: Mt,
4409
4404
  $form: P,
4410
- parseFn: Q,
4405
+ parseFn: W,
4411
4406
  parseJson: At,
4412
4407
  toJson: et,
4413
4408
  useApp: V,
@@ -4421,18 +4416,18 @@ function Wt(t) {
4421
4416
  install(d, g) {
4422
4417
  if (p = b(b({}, p), g || {}), d._installedFormCreate === !0) return;
4423
4418
  d._installedFormCreate = !0;
4424
- const y = function(S, I = {}) {
4419
+ const $ = function(S, I = {}) {
4425
4420
  return ie(S, I, this);
4426
4421
  };
4427
- nt(y), d.prototype.$formCreate = y;
4422
+ nt($), d.prototype.$formCreate = $;
4428
4423
  const C = P();
4429
4424
  d.component(C.name, C), d.component("FcFragment", re()), o.forEach((S) => {
4430
- k(() => S(c, d));
4425
+ F(() => S(c, d));
4431
4426
  });
4432
4427
  }
4433
4428
  });
4434
4429
  }
4435
- if (nt(j), tr(j), Ae("$cookie", Ei), Ae("$localStorage", Di), $.use({ fragment: "fcFragment" }), t.install && ie.use(t), O(Fi), t.inherit) {
4430
+ if (nt(j), tr(j), Ae("$cookie", Ei), Ae("$localStorage", Di), y.use({ fragment: "fcFragment" }), t.install && ie.use(t), O(ki), t.inherit) {
4436
4431
  const c = t.inherit;
4437
4432
  c.components && _(e, c.components), c.parsers && _(r, c.parsers), c.directives && _(i, c.directives), c.modelFields && _(s, c.modelFields), c.providers && _(u, c.providers), c.useApps && _(o, c.useApps), c.maker && _(f, c.maker), c.loadData && _(m, c.loadData), c.formulas && _(v, c.formulas);
4438
4433
  }
@@ -4611,7 +4606,7 @@ function Ji() {
4611
4606
  function _t(t, e) {
4612
4607
  R(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4613
4608
  }
4614
- function z(t) {
4609
+ function K(t) {
4615
4610
  return t === !1;
4616
4611
  }
4617
4612
  function Wi(t, e) {
@@ -4654,7 +4649,7 @@ const zi = {
4654
4649
  wrap: {}
4655
4650
  };
4656
4651
  ["info", "wrap", "col", "title"].forEach((r) => {
4657
- t.prop[r] = K([this.options[r] || {}, t.prop[r] || {}], e[r]);
4652
+ t.prop[r] = X([this.options[r] || {}, t.prop[r] || {}], e[r]);
4658
4653
  }), this.setSize(t.prop.props);
4659
4654
  },
4660
4655
  setSize(t) {
@@ -4684,12 +4679,12 @@ const zi = {
4684
4679
  });
4685
4680
  },
4686
4681
  render(t) {
4687
- return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, z(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
4682
+ return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, K(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
4688
4683
  },
4689
4684
  makeWrap(t, e) {
4690
4685
  const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r) && r.wrap.title !== !1, o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: l } = this.rule.props;
4691
4686
  delete r.wrap.title;
4692
- const u = z(r.wrap.show) ? e : this.$r(K([r.wrap, {
4687
+ const u = K(r.wrap.show) ? e : this.$r(X([r.wrap, {
4693
4688
  props: U(b({
4694
4689
  labelWidth: o
4695
4690
  }, Ge(r.wrap || {})), {
@@ -4701,12 +4696,12 @@ const zi = {
4701
4696
  ref: t.wrapRef,
4702
4697
  type: "formItem"
4703
4698
  }]), b({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
4704
- return a === !0 || z(l) || z(s.show) ? u : this.makeCol(r, i, [u]);
4699
+ return a === !0 || K(l) || K(s.show) ? u : this.makeCol(r, i, [u]);
4705
4700
  },
4706
4701
  isTitle(t) {
4707
4702
  if (this.options.form.title === !1) return !1;
4708
4703
  const e = t.title;
4709
- return !(!e.title && !e.native || z(e.show));
4704
+ return !(!e.title && !e.native || K(e.show));
4710
4705
  },
4711
4706
  makeInfo(t, e, r) {
4712
4707
  const i = b({}, t.title), s = b({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
@@ -4714,7 +4709,7 @@ const zi = {
4714
4709
  rule: r.rule,
4715
4710
  options: this.options
4716
4711
  }) : r.refRule.__$title.value + (n.labelSuffix || n["label-suffix"] || "")];
4717
- if (!z(s.show) && (s.info || s.native) && !z(s.icon)) {
4712
+ if (!K(s.show) && (s.info || s.native) && !K(s.icon)) {
4718
4713
  const u = {
4719
4714
  type: s.type || "poptip",
4720
4715
  props: Ge(s),
@@ -4723,7 +4718,7 @@ const zi = {
4723
4718
  };
4724
4719
  delete u.props.icon, delete u.props.show, delete u.props.info, delete u.props.align, delete u.props.native;
4725
4720
  const f = "content";
4726
- s.info && !R(u.props, f) && (u.props[f] = r.refRule.__$info.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(K([s, u]), [
4721
+ s.info && !R(u.props, f) && (u.props[f] = r.refRule.__$info.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(X([s, u]), [
4727
4722
  this.$r({
4728
4723
  type: "icon",
4729
4724
  props: { type: s.icon === !0 ? Se.infoIcon : s.icon, size: 16 },
@@ -4732,7 +4727,7 @@ const zi = {
4732
4727
  })
4733
4728
  ]));
4734
4729
  }
4735
- const l = K([i, {
4730
+ const l = X([i, {
4736
4731
  props: Ge(i),
4737
4732
  key: `${e}tit`,
4738
4733
  class: "fc-form-title",
@@ -4761,7 +4756,7 @@ const zi = {
4761
4756
  },
4762
4757
  makeFormBtn() {
4763
4758
  let t = [];
4764
- if (z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
4759
+ if (K(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), K(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
4765
4760
  return;
4766
4761
  const e = this.$r({
4767
4762
  type: "formItem",
@@ -4942,9 +4937,9 @@ function tn(t, e) {
4942
4937
  return new Promise((s, n) => {
4943
4938
  t.validate().then(() => {
4944
4939
  let o = t.formData();
4945
- h.Function(r) && k(() => r(o, t)), h.Function(e.options.onSubmit) && k(() => e.options.onSubmit(o, t)), e.vm.emit("submit", o, t), s(o);
4940
+ h.Function(r) && F(() => r(o, t)), h.Function(e.options.onSubmit) && F(() => e.options.onSubmit(o, t)), e.vm.emit("submit", o, t), s(o);
4946
4941
  }).catch((...o) => {
4947
- h.Function(i) && k(() => i(t, ...o)), n(...o);
4942
+ h.Function(i) && F(() => i(t, ...o)), n(...o);
4948
4943
  });
4949
4944
  });
4950
4945
  }
@@ -4992,7 +4987,7 @@ function nn(t) {
4992
4987
  function sn() {
4993
4988
  return Wt({
4994
4989
  ui: "view-design",
4995
- version: "2.7.0",
4990
+ version: "2.7.1",
4996
4991
  manager: zi,
4997
4992
  install: nn,
4998
4993
  extendApi: tn,