@form-create/element-ui 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/element-ui v2.7.0
4
- * (c) 2018-2024 xaboy
3
+ * @form-create/element-ui 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.
@@ -496,8 +496,8 @@ const Cr = "fcFrame", wr = {
496
496
  mounted() {
497
497
  this.$on("fc.closeModal", this.closeModal);
498
498
  }
499
- }, Or = "fcRadio", Fr = {
500
- name: Or,
499
+ }, Fr = "fcRadio", Or = {
500
+ name: Fr,
501
501
  props: {
502
502
  formCreateInject: {
503
503
  type: Object,
@@ -1338,7 +1338,7 @@ const Ir = "fcGroup", Pr = {
1338
1338
  }, Lr = [
1339
1339
  _r,
1340
1340
  wr,
1341
- Fr,
1341
+ Or,
1342
1342
  Er,
1343
1343
  Sr,
1344
1344
  Ar,
@@ -1430,68 +1430,68 @@ function Mr(t, e, r) {
1430
1430
  unique: 1,
1431
1431
  renderRule: [...l.value || []],
1432
1432
  updateValue: JSON.stringify(u.value || {})
1433
- }), $ = new t(n), v = $.api(), w = p.value, D = () => {
1433
+ }), y = new t(n), v = y.api(), w = p.value, D = () => {
1434
1434
  if (o) {
1435
- const O = ke(n, o);
1436
- if (O) {
1435
+ const F = ke(n, o);
1436
+ if (F) {
1437
1437
  let S;
1438
- w ? (S = H(O.getSubForm()), S.push(v)) : S = v, O.subForm(S);
1438
+ w ? (S = H(F.getSubForm()), S.push(v)) : S = v, F.subForm(S);
1439
1439
  }
1440
1440
  }
1441
1441
  }, Y = () => {
1442
- const O = ke(n, o);
1443
- if (O)
1442
+ const F = ke(n, o);
1443
+ if (F)
1444
1444
  if (w) {
1445
- const S = H(O.getSubForm()), T = S.indexOf(v);
1445
+ const S = H(F.getSubForm()), T = S.indexOf(v);
1446
1446
  T > -1 && S.splice(T, 1);
1447
1447
  } else
1448
- O.subForm();
1448
+ F.subForm();
1449
1449
  };
1450
1450
  let P = null;
1451
1451
  lr(() => {
1452
1452
  B(() => {
1453
- let O = "";
1453
+ let F = "";
1454
1454
  const S = s.option && s.option.globalClass || {};
1455
1455
  Object.keys(S).forEach((T) => {
1456
1456
  let re = "";
1457
1457
  S[T].style && Object.keys(S[T].style).forEach((be) => {
1458
1458
  re += ye(be) + ":" + S[T].style[be] + ";";
1459
- }), S[T].content && (re += S[T].content + ";"), re && (O += `.${T}{${re}}`);
1460
- }), s.option && s.option.style && (O += s.option.style), P || (P = document.createElement("style"), P.type = "text/css", document.head.appendChild(P)), P.innerHTML = O || "";
1459
+ }), S[T].content && (re += S[T].content + ";"), re && (F += `.${T}{${re}}`);
1460
+ }), s.option && s.option.style && (F += s.option.style), P || (P = document.createElement("style"), P.type = "text/css", document.head.appendChild(P)), P.innerHTML = F || "";
1461
1461
  }, () => {
1462
1462
  });
1463
1463
  });
1464
1464
  const L = le(() => {
1465
- $.bus.$emit("$loadData.$topForm");
1465
+ y.bus.$emit("$loadData.$topForm");
1466
1466
  }, 100), De = le(() => {
1467
- $.bus.$emit("$loadData.$form");
1468
- }, 100), ve = (O) => {
1469
- $.bus.$emit("change-$form." + O);
1467
+ y.bus.$emit("$loadData.$form");
1468
+ }, 100), ve = (F) => {
1469
+ y.bus.$emit("change-$form." + F);
1470
1470
  };
1471
1471
  return ur(() => {
1472
- o && (v.top.bus.$on("$loadData.$form", L), v.top.bus.$on("change", ve)), $.mounted();
1472
+ o && (v.top.bus.$on("$loadData.$form", L), v.top.bus.$on("change", ve)), y.mounted();
1473
1473
  }), cr(() => {
1474
- o && (v.top.bus.$off("$loadData.$form", L), v.top.bus.$off("change", ve)), P && document.head.removeChild(P), Y(), m.destroyed = !0, $.unmount();
1474
+ o && (v.top.bus.$off("$loadData.$form", L), v.top.bus.$off("change", ve)), P && document.head.removeChild(P), Y(), m.destroyed = !0, y.unmount();
1475
1475
  }), fr(() => {
1476
- $.updated();
1477
- }), B(c, (O) => {
1478
- O ? D() : Y();
1479
- }, { immediate: !0 }), B(() => [...l.value], (O) => {
1480
- $.$handle.isBreakWatch() || O.length === m.renderRule.length && O.every((S) => m.renderRule.indexOf(S) > -1) || ($.$handle.updateAppendData(), $.$handle.reloadRule(l.value), n.renderRule());
1476
+ y.updated();
1477
+ }), B(c, (F) => {
1478
+ F ? D() : Y();
1479
+ }, { immediate: !0 }), B(() => [...l.value], (F) => {
1480
+ y.$handle.isBreakWatch() || F.length === m.renderRule.length && F.every((S) => m.renderRule.indexOf(S) > -1) || (y.$handle.updateAppendData(), y.$handle.reloadRule(l.value), n.renderRule());
1481
1481
  }), B(() => s.option, () => {
1482
- $.initOptions(), v.refresh();
1482
+ y.initOptions(), v.refresh();
1483
1483
  }, { deep: !0 }), B(() => [s.disabled, s.preview], () => {
1484
1484
  v.refresh();
1485
- }), B(u, (O) => {
1486
- JSON.stringify(O || {}) !== m.updateValue && (v.config.forceCoverValue ? v.coverValue(O || {}) : v.setValue(O || {}));
1485
+ }), B(u, (F) => {
1486
+ JSON.stringify(F || {}) !== m.updateValue && (v.config.forceCoverValue ? v.coverValue(F || {}) : v.setValue(F || {}));
1487
1487
  }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1488
- v.coverValue({}), $.$handle.updateAppendData(), J(() => {
1488
+ v.coverValue({}), y.$handle.updateAppendData(), J(() => {
1489
1489
  J(() => {
1490
1490
  v.clearValidateState();
1491
1491
  });
1492
1492
  });
1493
1493
  }, { flush: "sync" }), N(b({
1494
- fc: fe($),
1494
+ fc: fe(y),
1495
1495
  parent: o && fe(o),
1496
1496
  top: fe(a),
1497
1497
  fapi: fe(v)
@@ -1503,10 +1503,10 @@ function Mr(t, e, r) {
1503
1503
  renderRule() {
1504
1504
  m.renderRule = [...l.value || []];
1505
1505
  },
1506
- updateValue(O) {
1506
+ updateValue(F) {
1507
1507
  if (m.destroyed) return;
1508
- const S = JSON.stringify(O);
1509
- m.updateValue !== S && (m.updateValue = S, n.$emit("update:value", O), J(() => {
1508
+ const S = JSON.stringify(F);
1509
+ m.updateValue !== S && (m.updateValue = S, n.$emit("update:value", F), J(() => {
1510
1510
  De(), o || L();
1511
1511
  }));
1512
1512
  }
@@ -1517,13 +1517,13 @@ function Mr(t, e, r) {
1517
1517
  }
1518
1518
  };
1519
1519
  }
1520
- const Ot = ["attrs", "props", "domProps", "scopedSlots"], Ft = ["class", "style", "directives"], kt = ["on", "nativeOn", "hook"], z = (t, e = {}, r = {}) => {
1521
- const i = [...Ot, ...r.normal || []], s = [...Ft, ...r.array || []], n = [...kt, ...r.functional || []], o = r.props || [];
1520
+ const Ft = ["attrs", "props", "domProps", "scopedSlots"], Ot = ["class", "style", "directives"], kt = ["on", "nativeOn", "hook"], Q = (t, e = {}, r = {}) => {
1521
+ const i = [...Ft, ...r.normal || []], s = [...Ot, ...r.array || []], n = [...kt, ...r.functional || []], o = r.props || [];
1522
1522
  return t.reduce((a, l) => {
1523
1523
  for (const u in l)
1524
1524
  if (a[u])
1525
1525
  if (o.indexOf(u) > -1)
1526
- a[u] = z([l[u]], a[u]);
1526
+ a[u] = Q([l[u]], a[u]);
1527
1527
  else if (i.indexOf(u) > -1)
1528
1528
  a[u] = b(b({}, a[u]), l[u]);
1529
1529
  else if (s.indexOf(u) > -1) {
@@ -1549,7 +1549,7 @@ const Ot = ["attrs", "props", "domProps", "scopedSlots"], Ft = ["class", "style"
1549
1549
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1550
1550
  }, Et = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], Ze = ["validate", "children", "control"], Ye = ["effect", "deep"];
1551
1551
  function Rt() {
1552
- return [...Et, ...Ot, ...Ft, ...kt, ...Ze, ...Ye];
1552
+ return [...Et, ...Ft, ...Ot, ...kt, ...Ze, ...Ye];
1553
1553
  }
1554
1554
  function St(t, e, r) {
1555
1555
  return `[form-create ${t}]: ${e}`;
@@ -1579,7 +1579,7 @@ function et(t, e) {
1579
1579
  function Pe(t) {
1580
1580
  return new Function("return " + t)();
1581
1581
  }
1582
- function Z(t, e) {
1582
+ function K(t, e) {
1583
1583
  if (t && h.String(t) && t.length > 4) {
1584
1584
  let r = t.trim(), i = !1;
1585
1585
  try {
@@ -1620,7 +1620,7 @@ err: ${s}`);
1620
1620
  }
1621
1621
  function jt(t, e) {
1622
1622
  return JSON.parse(t, function(r, i) {
1623
- return h.Undef(i) || !i.indexOf ? i : Z(i, e);
1623
+ return h.Undef(i) || !i.indexOf ? i : K(i, e);
1624
1624
  });
1625
1625
  }
1626
1626
  let qr = 0;
@@ -1648,8 +1648,8 @@ function At(t, e) {
1648
1648
  function Vt(t, e) {
1649
1649
  return $e([], [...t], e || !1);
1650
1650
  }
1651
- function Q(t, e) {
1652
- return z(Array.isArray(e) ? e : [e], t, { array: Ze, normal: Ye }), t;
1651
+ function Z(t, e) {
1652
+ return Q(Array.isArray(e) ? e : [e], t, { array: Ze, normal: Ye }), t;
1653
1653
  }
1654
1654
  function ct(t) {
1655
1655
  const e = h.Function(t.getRule) ? t.getRule() : t;
@@ -1657,7 +1657,7 @@ function ct(t) {
1657
1657
  }
1658
1658
  function Hr(t, e) {
1659
1659
  return t ? (Object.keys(e || {}).forEach((r) => {
1660
- e[r] && (t[r] = Q(t[r] || {}, e[r]));
1660
+ e[r] && (t[r] = Z(t[r] || {}, e[r]));
1661
1661
  }), t) : e;
1662
1662
  }
1663
1663
  function It(t, e) {
@@ -1670,7 +1670,7 @@ function It(t, e) {
1670
1670
  function oe(t) {
1671
1671
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1672
1672
  }
1673
- function F(t, e) {
1673
+ function O(t, e) {
1674
1674
  try {
1675
1675
  e = t();
1676
1676
  } catch (r) {
@@ -1731,7 +1731,7 @@ function Te() {
1731
1731
  }
1732
1732
  };
1733
1733
  }
1734
- function Oe(t, e) {
1734
+ function Fe(t, e) {
1735
1735
  return Object.setPrototypeOf(t, e), t;
1736
1736
  }
1737
1737
  const ft = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ae = {
@@ -1824,7 +1824,7 @@ _(tt.prototype, {
1824
1824
  function Tt(t) {
1825
1825
  t.forEach((e) => {
1826
1826
  tt.prototype[e] = function(r) {
1827
- return Q(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1827
+ return Z(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1828
1828
  };
1829
1829
  });
1830
1830
  }
@@ -1890,7 +1890,7 @@ function mt(t, e, r) {
1890
1890
  (e || Lt)(N(b({}, t), {
1891
1891
  onSuccess(n) {
1892
1892
  let o = (l) => l;
1893
- const a = Z(t.parse);
1893
+ const a = K(t.parse);
1894
1894
  h.Function(a) ? o = a : a && h.String(a) && (o = (l) => q(l, a)), i(o(n, void 0, r));
1895
1895
  },
1896
1896
  onError(n) {
@@ -2137,7 +2137,7 @@ function zr(t) {
2137
2137
  },
2138
2138
  mergeRule: (n, o) => {
2139
2139
  t.getCtxs(n).forEach((a) => {
2140
- Q(a.rule, o);
2140
+ Z(a.rule, o);
2141
2141
  });
2142
2142
  },
2143
2143
  mergeRules(n) {
@@ -2188,7 +2188,7 @@ function zr(t) {
2188
2188
  });
2189
2189
  }), J(() => {
2190
2190
  s.clearValidateState();
2191
- }), n == null && (h.Function(t.options.onReset) && F(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2191
+ }), n == null && (h.Function(t.options.onReset) && O(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2192
2192
  },
2193
2193
  method(n, o) {
2194
2194
  const a = s.el(n);
@@ -2197,7 +2197,7 @@ function zr(t) {
2197
2197
  return (...l) => a[o](...l);
2198
2198
  },
2199
2199
  exec(n, o, ...a) {
2200
- return F(() => s.method(n, o)(...a));
2200
+ return O(() => s.method(n, o)(...a));
2201
2201
  },
2202
2202
  toJson(n) {
2203
2203
  return et(s.rule, n);
@@ -2254,7 +2254,7 @@ function zr(t) {
2254
2254
  getGlobalEvent(n) {
2255
2255
  let o = s.options.globalEvent[n];
2256
2256
  if (o)
2257
- return typeof o == "object" && (o = o.handle), Z(o);
2257
+ return typeof o == "object" && (o = o.handle), K(o);
2258
2258
  },
2259
2259
  getGlobalData(n) {
2260
2260
  return new Promise((o, a) => {
@@ -2268,7 +2268,7 @@ function zr(t) {
2268
2268
  t.bus.$once("next-tick", n), t.refresh();
2269
2269
  },
2270
2270
  nextRefresh(n) {
2271
- t.nextRefresh(), n && F(n);
2271
+ t.nextRefresh(), n && O(n);
2272
2272
  },
2273
2273
  emit(n, ...o) {
2274
2274
  t.vm.$emit(n, ...o);
@@ -2280,9 +2280,9 @@ function zr(t) {
2280
2280
  fetch(n) {
2281
2281
  return new Promise((o, a) => {
2282
2282
  n = W(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => mt(n, t.fc.create.fetch, s).then((l) => {
2283
- F(() => n.onSuccess && n.onSuccess(l)), o(l);
2283
+ O(() => n.onSuccess && n.onSuccess(l)), o(l);
2284
2284
  }).catch((l) => {
2285
- F(() => n.onError && n.onError(l)), a(l);
2285
+ O(() => n.onError && n.onError(l)), a(l);
2286
2286
  }));
2287
2287
  });
2288
2288
  },
@@ -2290,9 +2290,9 @@ function zr(t) {
2290
2290
  return t.fc.watchLoadData((u, c) => {
2291
2291
  let p = W(n);
2292
2292
  p = t.loadFetchVar(p, u), !(l && l(p, c) === !1) && t.beforeFetch(p).then(() => mt(p, t.fc.create.fetch, s).then((m) => {
2293
- F(() => p.onSuccess && p.onSuccess(m)), o && o(m, c);
2293
+ O(() => p.onSuccess && p.onSuccess(m)), o && o(m, c);
2294
2294
  }).catch((m) => {
2295
- F(() => p.onError && p.onError(m)), a && a(m);
2295
+ O(() => p.onError && p.onError(m)), a && a(m);
2296
2296
  }));
2297
2297
  }, n.wait == null ? 1e3 : n.wait);
2298
2298
  },
@@ -2394,8 +2394,8 @@ function Zr(t) {
2394
2394
  mergeGlobal(e) {
2395
2395
  this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = he(() => {
2396
2396
  const i = this.$handle.options.global;
2397
- return Q({}, [i["*"], i[e.originType] || i[e.type] || i[e.type] || {}]);
2398
- })), e.prop = Q({}, [this.cacheConfig[e.trueType].value, e.prop]));
2397
+ return Z({}, [i["*"], i[e.originType] || i[e.type] || i[e.type] || {}]);
2398
+ })), e.prop = Z({}, [this.cacheConfig[e.trueType].value, e.prop]));
2399
2399
  },
2400
2400
  setOptions(e) {
2401
2401
  const r = e.loadPending({ key: "options", origin: e.prop.options, def: [] });
@@ -2408,7 +2408,7 @@ function Zr(t) {
2408
2408
  });
2409
2409
  },
2410
2410
  parseSide(e, r) {
2411
- return h.Object(e) ? Q({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2411
+ return h.Object(e) ? Z({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2412
2412
  },
2413
2413
  renderSides(e, r, i) {
2414
2414
  const s = r[i ? "rule" : "prop"];
@@ -2442,13 +2442,13 @@ function Zr(t) {
2442
2442
  model: n.model || {},
2443
2443
  slotValue: l
2444
2444
  };
2445
- l.length && i.slotUpdate && F(() => i.slotUpdate(u));
2445
+ l.length && i.slotUpdate && O(() => i.slotUpdate(u));
2446
2446
  let c = {};
2447
2447
  const p = e.loadChildrenPending();
2448
2448
  e.parser.renderChildren ? c = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (c = this.renderChildren(p, e));
2449
2449
  const m = this.getTypeSlot(e);
2450
- let $;
2451
- return m ? (u.children = c, $ = m(u)) : $ = a ? e.parser.preview(Ge(c), e) : e.parser.render(Ge(c), 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), $;
2450
+ let y;
2451
+ return m ? (u.children = c, y = m(u)) : y = a ? e.parser.preview(Ge(c), e) : e.parser.render(Ge(c), 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;
2452
2452
  }, this.setCache(e, s, r);
2453
2453
  }
2454
2454
  return (...s) => {
@@ -2551,7 +2551,7 @@ function Zr(t) {
2551
2551
  on: {
2552
2552
  [e.prop.modelEmit]: () => this.onEmitInput(e)
2553
2553
  }
2554
- })), z(n, e.prop), e.prop;
2554
+ })), Q(n, e.prop), e.prop;
2555
2555
  },
2556
2556
  onMounted(e) {
2557
2557
  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");
@@ -2646,7 +2646,7 @@ function xr(t) {
2646
2646
  if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2647
2647
  return this.parseEventLst(e, r, i, !0);
2648
2648
  if (h.String(r)) {
2649
- const n = Z(r);
2649
+ const n = K(r);
2650
2650
  if (n && r !== n)
2651
2651
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2652
2652
  }
@@ -2658,8 +2658,8 @@ function xr(t) {
2658
2658
  let p, m = n || o || a;
2659
2659
  if (h.Object(c) && (p = c.inject, c = c.name, m = c.prefix || m), m) {
2660
2660
  r || (m = `native-${m}`);
2661
- const $ = ye(`${m}-${c}`), v = (...w) => {
2662
- this.vm.$emit($, ...w), this.vm.$emit("emit-event", $, ...w), this.bus.$emit($, ...w);
2661
+ const y = ye(`${m}-${c}`), v = (...w) => {
2662
+ this.vm.$emit(y, ...w), this.vm.$emit("emit-event", y, ...w), this.bus.$emit(y, ...w);
2663
2663
  };
2664
2664
  if (v.__emit = !0, !p && l === !1)
2665
2665
  i[c] = v;
@@ -2710,19 +2710,14 @@ function xr(t) {
2710
2710
  },
2711
2711
  loadFetchVar(e, r) {
2712
2712
  const i = (s) => this.loadStrVar(s, r);
2713
- if (e.action = i(e.action), e.headers) {
2714
- const s = {};
2715
- Object.keys(e.headers).forEach((n) => {
2716
- s[i(n)] = i(e.headers[n]);
2717
- }), e.headers = s;
2718
- }
2719
- if (e.data) {
2720
- const s = {};
2721
- Object.keys(e.data).forEach((n) => {
2722
- s[i(n)] = i(e.data[n]);
2723
- }), e.data = s;
2724
- }
2725
- return e;
2713
+ return e.action = i(e.action || ""), ["headers", "data", "query"].forEach((s) => {
2714
+ if (e[s]) {
2715
+ const n = {};
2716
+ Object.keys(e[s]).forEach((o) => {
2717
+ n[i(o)] = i(e[s][o]);
2718
+ }), e[s] = n;
2719
+ }
2720
+ }), e;
2726
2721
  }
2727
2722
  });
2728
2723
  }
@@ -2835,7 +2830,7 @@ _(Nt.prototype, {
2835
2830
  delete this.pending[e];
2836
2831
  let a = r;
2837
2832
  if (h.Function(r)) {
2838
- let l = F(() => r({
2833
+ let l = O(() => r({
2839
2834
  rule: this.rule,
2840
2835
  api: this.$api,
2841
2836
  update: (u) => {
@@ -2882,7 +2877,7 @@ _(Nt.prototype, {
2882
2877
  },
2883
2878
  initProp() {
2884
2879
  const t = b({}, this.rule);
2885
- 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 || []];
2880
+ delete t.children, delete t.validate, this.prop = Z({}, [t, ...Object.keys(this.payload).map((e) => this.payload[e]), this.computed]), this.prop.validate = [...this.refRule.__$validate.value || [], ...this.prop.validate || []];
2886
2881
  },
2887
2882
  initNone() {
2888
2883
  this.none = !(h.Undef(this.prop.display) || this.prop.display);
@@ -2962,7 +2957,7 @@ function ni(t) {
2962
2957
  __origin__: Ke(e, !0)
2963
2958
  }), si(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
2964
2959
  i && this.loadFn(i, r);
2965
- }), this.loadCtrl(r), r.update && (r.update = Z(r.update)), r;
2960
+ }), this.loadCtrl(r), r.update && (r.update = K(r.update)), r;
2966
2961
  },
2967
2962
  loadFn(e, r) {
2968
2963
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -2971,12 +2966,12 @@ function ni(t) {
2971
2966
  },
2972
2967
  loadCtrl(e) {
2973
2968
  e.control && e.control.forEach((r) => {
2974
- r.handle && (r.handle = Z(r.handle));
2969
+ r.handle && (r.handle = K(r.handle));
2975
2970
  });
2976
2971
  },
2977
2972
  syncProp(e) {
2978
2973
  const r = e.rule;
2979
- h.trueArray(r.sync) && z([{
2974
+ h.trueArray(r.sync) && Q([{
2980
2975
  on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
2981
2976
  r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
2982
2977
  }, i), {})
@@ -3010,9 +3005,9 @@ function ni(t) {
3010
3005
  let l = ct(o);
3011
3006
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3012
3007
  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);
3013
- let c, p = !1, m = !!o.__fc__, $ = l.value;
3008
+ let c, p = !1, m = !!o.__fc__, y = l.value;
3014
3009
  if (m) {
3015
- if (c = o.__fc__, $ = c.defaultValue, c.deleted) {
3010
+ if (c = o.__fc__, y = c.defaultValue, c.deleted) {
3016
3011
  if (yt(c))
3017
3012
  return;
3018
3013
  c.update(this);
@@ -3026,7 +3021,7 @@ function ni(t) {
3026
3021
  c.originType !== c.rule.type && c.updateType(), this.bindParser(c), this.appendValue(c.rule), c.parent && c.parent !== r && this.rmSubRuleData(c);
3027
3022
  else {
3028
3023
  const D = this.parseRule(o);
3029
- c = new Nt(this, D, $), this.bindParser(c);
3024
+ c = new Nt(this, D, y), this.bindParser(c);
3030
3025
  }
3031
3026
  [!1, !0].forEach((D) => this.parseEmit(c, D)), this.syncProp(c), c.parent = r || null, c.root = e, this.setCtx(c), !p && !m && (this.effect(c, "load"), this.targetHook(c, "load")), this.effect(c, "created");
3032
3027
  const v = c.loadChildrenPending();
@@ -3053,7 +3048,7 @@ function ni(t) {
3053
3048
  };
3054
3049
  if (!h.trueArray(l.rule)) continue;
3055
3050
  const c = N(b({}, l), {
3056
- valid: F(() => u(e.rule.value, s)),
3051
+ valid: O(() => u(e.rule.value, s)),
3057
3052
  ctrl: ai(e, l.rule),
3058
3053
  isHidden: h.String(l.rule[0])
3059
3054
  });
@@ -3063,13 +3058,13 @@ function ni(t) {
3063
3058
  const n = [];
3064
3059
  let o = !1;
3065
3060
  return this.deferSyncValue(() => {
3066
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: c, append: p, child: m, ctrl: $, method: v }) => {
3061
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: c, append: p, child: m, ctrl: y, method: v }) => {
3067
3062
  if (a) {
3068
3063
  l ? e.ctrlRule.push({
3069
3064
  __ctrl: !0,
3070
3065
  children: u,
3071
3066
  valid: l
3072
- }) : $ && e.ctrlRule.splice(e.ctrlRule.indexOf($) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3067
+ }) : y && e.ctrlRule.splice(e.ctrlRule.indexOf(y) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3073
3068
  v === "disabled" || v === "enabled" ? this.api.disabled(!l, u) : v === "display" ? this.api.display(l, u) : v === "required" ? (u.forEach((w) => {
3074
3069
  this.api.setEffect(w, "required", l);
3075
3070
  }), l || this.api.clearValidateState(u)) : this.api.hidden(!l, u);
@@ -3088,8 +3083,8 @@ function ni(t) {
3088
3083
  c ? s.prepend(w, c, m) : p || m ? s.append(w, p || e.id, m) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, w);
3089
3084
  });
3090
3085
  } else {
3091
- e.ctrlRule.splice(e.ctrlRule.indexOf($), 1);
3092
- const w = oe($);
3086
+ e.ctrlRule.splice(e.ctrlRule.indexOf(y), 1);
3087
+ const w = oe(y);
3093
3088
  w && w.rm();
3094
3089
  }
3095
3090
  });
@@ -3190,7 +3185,7 @@ function li(t) {
3190
3185
  this.subForm[e.id] = r;
3191
3186
  },
3192
3187
  deferSyncValue(e, r) {
3193
- this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), F(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
3188
+ this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), O(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
3194
3189
  },
3195
3190
  syncValue() {
3196
3191
  if (this.deferSyncFn)
@@ -3208,7 +3203,7 @@ function li(t) {
3208
3203
  },
3209
3204
  refreshUpdate(e, r, i, s) {
3210
3205
  if (h.Function(e.rule.update)) {
3211
- const n = F(() => e.rule.update(r, e.origin, this.api, {
3206
+ const n = O(() => e.rule.update(r, e.origin, this.api, {
3212
3207
  origin: i || "change",
3213
3208
  linkField: s
3214
3209
  }));
@@ -3302,7 +3297,7 @@ function ci(t) {
3302
3297
  return G(i);
3303
3298
  },
3304
3299
  noWatch(e) {
3305
- this.noWatchFn || (this.noWatchFn = e), F(e), this.noWatchFn === e && (this.noWatchFn = null);
3300
+ this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
3306
3301
  },
3307
3302
  watchCtx(e) {
3308
3303
  if (Rt().filter((i) => i[0] !== "_" && i[0] !== "$" && ui.indexOf(i) === -1).forEach((i) => {
@@ -3397,29 +3392,29 @@ function ci(t) {
3397
3392
  let u = !0;
3398
3393
  for (let c = 0; c < a.group.length; c++) {
3399
3394
  const p = a.group[c];
3400
- let m, $ = null;
3395
+ let m, y = null;
3401
3396
  if (p.variable)
3402
- $ = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3397
+ y = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3403
3398
  else if (p.field)
3404
- $ = ht(p.field || "");
3399
+ y = ht(p.field || "");
3405
3400
  else
3406
3401
  return !0;
3407
3402
  let v = p.compare;
3408
- 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}'](${$}, ${v || "$val"}); }}}`).call(this.api.form, ae, p.value, this.api.top.form, s ? this.subRuleData[s.id] || {} : {}, e.rule) : m = !1, l && m)
3403
+ if (v && (v = ht(v || "")), p.mode ? m = n(p) : ae[p.condition] ? h.Function(p.handler) ? m = O(() => 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)
3409
3404
  return !0;
3410
3405
  l || (u = u && m);
3411
3406
  }
3412
3407
  return l ? !1 : u;
3413
3408
  };
3414
3409
  let o = n(r);
3415
- return o = r.invert === !0 ? !o : o, r.linkage ? o ? F(() => this.computeValue(r.linkage, e, s), void 0) : void 0 : o;
3410
+ return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : void 0 : o;
3416
3411
  } else if (h.Function(r))
3417
3412
  i = () => r(this.api.form, this.api);
3418
3413
  else {
3419
3414
  const s = e.getParentGroup();
3420
3415
  i = () => this.computeValue(r, e, s);
3421
3416
  }
3422
- return F(i, void 0);
3417
+ return O(i, void 0);
3423
3418
  },
3424
3419
  computeValue(e, r, i) {
3425
3420
  const s = this, n = Object.keys(this.fc.formulas).reduce((o, a) => (o[a] = function(...l) {
@@ -3477,8 +3472,8 @@ function fi(t) {
3477
3472
  emitEvent(e, ...r) {
3478
3473
  const i = this.options[e] || this.options[G("on-" + e)];
3479
3474
  if (i) {
3480
- const s = Z(i);
3481
- h.Function(s) && F(() => s(...r));
3475
+ const s = K(i);
3476
+ h.Function(s) && O(() => s(...r));
3482
3477
  }
3483
3478
  this.bus.$emit(e, ...r);
3484
3479
  },
@@ -3486,7 +3481,7 @@ function fi(t) {
3486
3481
  var n, o;
3487
3482
  let s = (o = (n = e.prop) == null ? void 0 : n.hook) == null ? void 0 : o[r];
3488
3483
  s && (s = Array.isArray(s) ? s : [s], s.forEach((a) => {
3489
- F(() => a(N(b({}, i || {}), { rule: e.rule, api: this.api })));
3484
+ O(() => a(N(b({}, i || {}), { rule: e.rule, api: this.api })));
3490
3485
  }));
3491
3486
  }
3492
3487
  });
@@ -3562,7 +3557,7 @@ function hi(t) {
3562
3557
  else
3563
3558
  return;
3564
3559
  const m = b({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3565
- e && (m.getProp = () => e.effectData(u), m.clearProp = () => e.clearEffectData(u), m.mergeProp = ($) => Q(m.getProp(), [$]), m.id = e.id), this.bus.$emit(`p:${u}:${p}:${c.input ? 1 : 0}`, o, [m, r, this.api]);
3560
+ e && (m.getProp = () => e.effectData(u), m.clearProp = () => e.clearEffectData(u), m.mergeProp = (y) => Z(m.getProp(), [y]), m.id = e.id), this.bus.$emit(`p:${u}:${p}:${c.input ? 1 : 0}`, o, [m, r, this.api]);
3566
3561
  });
3567
3562
  }
3568
3563
  });
@@ -3579,7 +3574,7 @@ function pi(t) {
3579
3574
  return r.length ? r : !1;
3580
3575
  } else return h.String(e) ? [e] : !1;
3581
3576
  }
3582
- function K(t) {
3577
+ function X(t) {
3583
3578
  It(this, {
3584
3579
  options() {
3585
3580
  return t.options.value || {};
@@ -3615,11 +3610,11 @@ function K(t) {
3615
3610
  this.lifecycle("reload");
3616
3611
  }
3617
3612
  }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3618
- const i = F(() => r(e, this));
3613
+ const i = O(() => r(e, this));
3619
3614
  return i && i !== e && _(e, i), e;
3620
3615
  }, zr(this));
3621
3616
  }
3622
- _(K.prototype, {
3617
+ _(X.prototype, {
3623
3618
  initData(t) {
3624
3619
  _(this, {
3625
3620
  ctxs: {},
@@ -3640,19 +3635,19 @@ _(K.prototype, {
3640
3635
  },
3641
3636
  beforeFetch(t) {
3642
3637
  return new Promise((e) => {
3643
- const r = this.options.beforeFetch && F(() => this.options.beforeFetch(t, { api: this.api }));
3638
+ const r = this.options.beforeFetch && O(() => this.options.beforeFetch(t, { api: this.api }));
3644
3639
  r && h.Function(r.then) ? r.then(e) : e();
3645
3640
  });
3646
3641
  }
3647
3642
  });
3648
- xr(K);
3649
- ei(K);
3650
- ri(K);
3651
- ni(K);
3652
- li(K);
3653
- ci(K);
3654
- fi(K);
3655
- hi(K);
3643
+ xr(X);
3644
+ ei(X);
3645
+ ri(X);
3646
+ ni(X);
3647
+ li(X);
3648
+ ci(X);
3649
+ fi(X);
3650
+ hi(X);
3656
3651
  const mi = "fcFragment", Be = {
3657
3652
  name: mi,
3658
3653
  functional: !0,
@@ -3742,7 +3737,7 @@ _(Ut.prototype, {
3742
3737
  return e(this.vm);
3743
3738
  },
3744
3739
  mergeOptions(t, e) {
3745
- return z(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3740
+ return Q(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3746
3741
  },
3747
3742
  updateOptions(t) {
3748
3743
  this.$handle.fc.targetFormDriver("updateOptions", t, { handle: this.$handle, api: this.$handle.api }), this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
@@ -3772,9 +3767,9 @@ const vi = function(t) {
3772
3767
  if (a && (a.attr || a.template)) {
3773
3768
  let l = (p) => {
3774
3769
  let m;
3775
- a.template ? m = t.$handle.loadStrVar(a.template, p) : m = p(a.attr, a.default), a.copy !== !1 && (m = W(m));
3776
- const $ = a.modify ? i : r.getProp();
3777
- a.to === "child" ? $.children ? k($.children, 0, m) : k($, "children", [m]) : te($, a.to || "options", m), s.sync(i);
3770
+ 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 = W(m));
3771
+ const y = a.modify ? i : r.getProp();
3772
+ a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : te(y, a.to || "options", m), s.sync(i);
3778
3773
  }, u = (p) => l(p);
3779
3774
  const c = t.watchLoadData(u);
3780
3775
  l = le(l, a.wait || 300), a.watch !== !1 ? o.push(c) : c();
@@ -3800,11 +3795,11 @@ const vi = function(t) {
3800
3795
  const l = n[a];
3801
3796
  if (l) {
3802
3797
  const u = typeof l == "object";
3803
- let c = ($) => {
3804
- let v = t.t(u ? l.attr : l, u ? l.params : null, $);
3798
+ let c = (y) => {
3799
+ let v = t.t(u ? l.attr : l, u ? l.params : null, y);
3805
3800
  const w = u && l.modify ? i : r.getProp();
3806
3801
  a === "child" ? w.children ? k(w.children, 0, v) : k(w, "children", [v]) : te(w, a, v), s.sync(i);
3807
- }, p = ($) => c($);
3802
+ }, p = (y) => c(y);
3808
3803
  const m = t.watchLoadData(p);
3809
3804
  c = le(c, l.wait || 300), l.watch !== !1 ? o.push(m) : m();
3810
3805
  }
@@ -3878,29 +3873,29 @@ const vi = function(t) {
3878
3873
  i._fn[s.id] = t.watchLoadData(le((p, m) => {
3879
3874
  if (m && a.watch === !1)
3880
3875
  return i._fn[s.id]();
3881
- const $ = t.$handle.loadFetchVar(W(a), p), v = N(b({
3876
+ const y = t.$handle.loadFetchVar(W(a), p), v = N(b({
3882
3877
  headers: {}
3883
- }, $), {
3878
+ }, y), {
3884
3879
  onSuccess(w, D) {
3885
3880
  if (c()) return;
3886
3881
  let Y = (L) => D ? L : E(L, "data") ? L.data : L;
3887
- const P = Z($.parse);
3882
+ const P = K(y.parse);
3888
3883
  h.Function(P) ? Y = P : P && h.String(P) && (Y = (L) => q(L, P)), l(Y(w, n, o)), o.sync(n);
3889
3884
  },
3890
3885
  onError(w) {
3891
- l(void 0), !c() && (u || ((D) => xe(D.message || "fetch fail " + $.action)))(w, n, o);
3886
+ l(void 0), !c() && (u || ((D) => xe(D.message || "fetch fail " + y.action)))(w, n, o);
3892
3887
  }
3893
3888
  });
3894
3889
  t.$handle.beforeFetch(v, { rule: n, api: o }).then(() => {
3895
- if (h.Function($.action)) {
3896
- $.action(n, o).then((w) => {
3890
+ if (h.Function(y.action)) {
3891
+ y.action(n, o).then((w) => {
3897
3892
  v.onSuccess(w, !0);
3898
3893
  }).catch((w) => {
3899
3894
  v.onError(w);
3900
3895
  });
3901
3896
  return;
3902
3897
  }
3903
- F(() => t.create.fetch(v, { inject: s, rule: n, api: o }));
3898
+ O(() => t.create.fetch(v, { inject: s, rule: n, api: o }));
3904
3899
  });
3905
3900
  }, a.wait || 600));
3906
3901
  }
@@ -3948,8 +3943,8 @@ function wi(t) {
3948
3943
  };
3949
3944
  return e;
3950
3945
  }
3951
- const Oi = "html", Fi = {
3952
- name: Oi,
3946
+ const Fi = "html", Oi = {
3947
+ name: Fi,
3953
3948
  loadChildren: !1,
3954
3949
  render(t, e) {
3955
3950
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
@@ -4025,7 +4020,7 @@ function Vi(t) {
4025
4020
  Et.push(...e), Ze.push(...r), Ye.push(...i), Tt([...e, ...r, ...i]);
4026
4021
  }
4027
4022
  let Ii = 1;
4028
- const U = {}, Fe = Symbol("defValue");
4023
+ const U = {}, Oe = Symbol("defValue");
4029
4024
  function Gt(t) {
4030
4025
  const e = {
4031
4026
  [Be.name]: Be
@@ -4033,7 +4028,7 @@ function Gt(t) {
4033
4028
  t.extendApi
4034
4029
  ], u = b({}, Ci), c = Kr();
4035
4030
  let p = { global: {} };
4036
- const m = ee({}), $ = yi(), v = {}, w = t.isMobile === !0, D = {};
4031
+ const m = ee({}), y = yi(), v = {}, w = t.isMobile === !0, D = {};
4037
4032
  Vi(t.attrs || {});
4038
4033
  function Y(f) {
4039
4034
  const d = U[f];
@@ -4056,13 +4051,13 @@ function Gt(t) {
4056
4051
  }));
4057
4052
  }
4058
4053
  function ve(f) {
4059
- $.use(f);
4054
+ y.use(f);
4060
4055
  }
4061
- function O() {
4056
+ function F() {
4062
4057
  const f = Le(...arguments);
4063
4058
  if (!f.id || !f.prop) return Ee;
4064
- const d = G(f.id), g = f.prop, y = g.merge === !0 ? r[d] : void 0;
4065
- r[d] = Oe(g, y || Ee), c[d] = I(d), g.maker && _(c, g.maker);
4059
+ const d = G(f.id), g = f.prop, $ = g.merge === !0 ? r[d] : void 0;
4060
+ r[d] = Fe(g, $ || Ee), c[d] = I(d), g.maker && _(c, g.maker);
4066
4061
  }
4067
4062
  function S(f, d) {
4068
4063
  let g;
@@ -4072,8 +4067,8 @@ function Gt(t) {
4072
4067
  } else
4073
4068
  g = G(f.name), d = f;
4074
4069
  if (!g || !d) return;
4075
- const y = G(g);
4076
- e[g] = d, e[y] = d, delete $.aliasMap[g], delete $.aliasMap[y], delete r[g], delete r[y], d.formCreateParser && O(g, d.formCreateParser);
4070
+ const $ = G(g);
4071
+ e[g] = d, e[$] = d, delete y.aliasMap[g], delete y.aliasMap[$], delete r[g], delete r[$], d.formCreateParser && F(g, d.formCreateParser);
4077
4072
  }
4078
4073
  function T() {
4079
4074
  return Mr(Ve, e, i);
@@ -4085,11 +4080,11 @@ function Gt(t) {
4085
4080
  return h.Function(f.install) ? f.install(ie, d) : h.Function(f) && f(ie, d), this;
4086
4081
  }
4087
4082
  function ie(f, d, g) {
4088
- let y = Ai(f, d || {});
4089
- const C = y.$refs.fc.formCreate;
4090
- return C.$parent = g, ji(C.options).appendChild(y.$el), C.api();
4083
+ let $ = Ai(f, d || {});
4084
+ const C = $.$refs.fc.formCreate;
4085
+ return C.$parent = g, ji(C.options).appendChild($.$el), C.api();
4091
4086
  }
4092
- Oe(ie, D);
4087
+ Fe(ie, D);
4093
4088
  function Wt(f) {
4094
4089
  let d = b({}, t);
4095
4090
  return f ? d.inherit = {
@@ -4111,15 +4106,15 @@ function Gt(t) {
4111
4106
  v[f] = d;
4112
4107
  }
4113
4108
  function zt(f, d) {
4114
- const g = n[f] || {}, y = g.parsers || {};
4109
+ const g = n[f] || {}, $ = g.parsers || {};
4115
4110
  d.parsers && Object.keys(d.parsers).forEach((C) => {
4116
- y[C] = Oe(d.parsers[C], Ee);
4117
- }), d.name = f, n[f] = N(b(b({}, g), d), { parsers: y });
4111
+ $[C] = Fe(d.parsers[C], Ee);
4112
+ }), d.name = f, n[f] = N(b(b({}, g), d), { parsers: $ });
4118
4113
  }
4119
4114
  function _e(f) {
4120
4115
  f && Object.keys(U).forEach((d) => {
4121
- (Array.isArray(U[d]) ? U[d] : [U[d]]).forEach((y) => {
4122
- y.bus.$emit("$loadData." + f);
4116
+ (Array.isArray(U[d]) ? U[d] : [U[d]]).forEach(($) => {
4117
+ $.bus.$emit("$loadData." + f);
4123
4118
  });
4124
4119
  });
4125
4120
  }
@@ -4127,16 +4122,16 @@ function Gt(t) {
4127
4122
  te(m, f, d), _e(f);
4128
4123
  }
4129
4124
  function Ae(f, d) {
4130
- const g = (...y) => F(() => d(...y));
4125
+ const g = (...$) => O(() => d(...$));
4131
4126
  g._driver = !0, je(f, g);
4132
4127
  }
4133
4128
  function it(f, d) {
4134
4129
  const g = (f || "").split(".");
4135
4130
  f = g.shift();
4136
- const y = g.join(".");
4137
- if (E(m, f) || k(m, f, Fe), m[f] !== Fe) {
4131
+ const $ = g.join(".");
4132
+ if (E(m, f) || k(m, f, Oe), m[f] !== Oe) {
4138
4133
  let C = m[f];
4139
- return C && C._driver ? C = C(y) : g.length && (C = q(C, g)), C == null || C === "" ? d : C;
4134
+ return C && C._driver ? C = C($) : g.length && (C = q(C, g)), C == null || C === "" ? d : C;
4140
4135
  } else
4141
4136
  return d;
4142
4137
  }
@@ -4172,7 +4167,7 @@ function Gt(t) {
4172
4167
  get: null,
4173
4168
  refreshData: _e,
4174
4169
  loadData: m,
4175
- CreateNode: $,
4170
+ CreateNode: y,
4176
4171
  bus: new wi(),
4177
4172
  unwatch: [],
4178
4173
  options: hr({}),
@@ -4185,7 +4180,7 @@ function Gt(t) {
4185
4180
  B(this.options, () => {
4186
4181
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4187
4182
  }, { deep: !0 });
4188
- }), _(f.$options.components, e), _(f.$options.directives, i), this.$handle = new K(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
4183
+ }), _(f.$options.components, e), _(f.$options.directives, i), this.$handle = new X(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
4189
4184
  }
4190
4185
  Ve.isMobile = w, _(Ve.prototype, {
4191
4186
  init() {
@@ -4195,44 +4190,44 @@ function Gt(t) {
4195
4190
  },
4196
4191
  targetFormDriver(f, ...d) {
4197
4192
  if (this.renderDriver && this.renderDriver[f])
4198
- return F(() => this.renderDriver[f](...d));
4193
+ return O(() => this.renderDriver[f](...d));
4199
4194
  },
4200
4195
  t(f, d, g) {
4201
- let y = g ? g("$t." + f) : this.globalLanguageDriver(f);
4202
- return y == null && this.vm.$i18n ? this.vm.$i18n.t(f, d) : (y == null && (y = ""), y && d && Object.keys(d).forEach((C) => {
4196
+ let $ = g ? g("$t." + f) : this.globalLanguageDriver(f);
4197
+ return $ == null && ($ = ""), $ && d && Object.keys(d).forEach((C) => {
4203
4198
  const R = new RegExp(`{${C}}`, "g");
4204
- y = y.replace(R, d[C]);
4205
- }), y);
4199
+ $ = $.replace(R, d[C]);
4200
+ }), $;
4206
4201
  },
4207
4202
  globalDataDriver(f) {
4208
4203
  let d = f.split(".");
4209
- const g = d.shift(), y = this.options.value.globalData && this.options.value.globalData[g];
4210
- if (y) {
4211
- if (y.type === "static")
4212
- return q(y.data, d);
4204
+ const g = d.shift(), $ = this.options.value.globalData && this.options.value.globalData[g];
4205
+ if ($) {
4206
+ if ($.type === "static")
4207
+ return q($.data, d);
4213
4208
  {
4214
4209
  let C;
4215
- const R = this.fetchCache.get(y);
4210
+ const R = this.fetchCache.get($);
4216
4211
  if (R) {
4217
4212
  if (R.status && (C = q(R.data, d)), !R.loading)
4218
4213
  return C;
4219
- R.loading = !1, this.fetchCache.set(y, R);
4214
+ R.loading = !1, this.fetchCache.set($, R);
4220
4215
  } else
4221
- this.fetchCache.set(y, { status: !1 });
4216
+ this.fetchCache.set($, { status: !1 });
4222
4217
  const A = le(() => {
4223
4218
  ce();
4224
- const M = this.fetchCache.get(y);
4225
- this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(y) !== -1 ? (M && (M.loading = !0, this.fetchCache.set(y, M)), this.bus.$emit("$loadData.$globalData." + g)) : this.fetchCache.delete(y);
4226
- }, y.wait || 600), pe = (M) => {
4227
- this.fetchCache.set(y, { status: !0, data: M }), this.bus.$emit("$loadData.$globalData." + g);
4219
+ const M = this.fetchCache.get($);
4220
+ this.options.value.globalData && Object.values(this.options.value.globalData).indexOf($) !== -1 ? (M && (M.loading = !0, this.fetchCache.set($, M)), this.bus.$emit("$loadData.$globalData." + g)) : this.fetchCache.delete($);
4221
+ }, $.wait || 600), pe = (M) => {
4222
+ this.fetchCache.set($, { status: !0, data: M }), this.bus.$emit("$loadData.$globalData." + g);
4228
4223
  }, me = (M, ne) => {
4229
- if (ne && y.watch === !1)
4224
+ if (ne && $.watch === !1)
4230
4225
  return ce();
4231
4226
  if (ne) {
4232
4227
  A();
4233
4228
  return;
4234
4229
  }
4235
- const se = this.$handle.loadFetchVar(Ge(y), M);
4230
+ const se = this.$handle.loadFetchVar(Ge($), M);
4236
4231
  this.$handle.api.fetch(se).then((we) => {
4237
4232
  pe(we);
4238
4233
  }).catch((we) => {
@@ -4245,23 +4240,23 @@ function Gt(t) {
4245
4240
  },
4246
4241
  getLocale() {
4247
4242
  let f = this.vm.top.$props.locale;
4248
- return f && typeof f == "object" ? f.name : typeof f == "string" ? f : this.vm.$i18n && this.vm.$i18n.locale ? this.vm.$i18n.locale : "zh-cn";
4243
+ return f && typeof f == "object" ? f.name : typeof f == "string" ? f : "zh-cn";
4249
4244
  },
4250
4245
  globalLanguageDriver(f) {
4251
4246
  let d = this.vm.top.$props.locale, g;
4252
4247
  if (d && typeof d == "object" && (g = q(d, f)), g == null) {
4253
- const y = this.options.value.language || {}, C = this.getLocale();
4254
- g = q(y[C], f);
4248
+ const $ = this.options.value.language || {}, C = this.getLocale();
4249
+ g = q($[C], f);
4255
4250
  }
4256
4251
  return g;
4257
4252
  },
4258
4253
  globalVarDriver(f) {
4259
4254
  let d = f.split(".");
4260
- const g = d.shift(), y = this.options.value.globalVariable && this.options.value.globalVariable[g];
4261
- if (y) {
4262
- const C = h.Function(y) ? y : y.handle;
4255
+ const g = d.shift(), $ = this.options.value.globalVariable && this.options.value.globalVariable[g];
4256
+ if ($) {
4257
+ const C = h.Function($) ? $ : K($.handle);
4263
4258
  if (C)
4264
- return q(F(() => C(this.get || ((...R) => this.getLoadData(...R)), this.$handle.api)), d);
4259
+ return q(O(() => C(this.get || ((...R) => this.getLoadData(...R)), this.$handle.api)), d);
4265
4260
  }
4266
4261
  },
4267
4262
  setData(f, d, g) {
@@ -4270,8 +4265,8 @@ function Gt(t) {
4270
4265
  getLoadData(f, d) {
4271
4266
  let g = null;
4272
4267
  if (f != null) {
4273
- let y = f.split(".");
4274
- const C = y.shift();
4268
+ let $ = f.split(".");
4269
+ const C = $.shift();
4275
4270
  if (C === "$topForm")
4276
4271
  g = this.$handle.api.top.formData();
4277
4272
  else if (C === "$form")
@@ -4279,25 +4274,25 @@ function Gt(t) {
4279
4274
  else if (C === "$options")
4280
4275
  g = this.options.value;
4281
4276
  else if (C === "$globalData")
4282
- g = this.globalDataDriver(y.join(".")), y = [];
4277
+ g = this.globalDataDriver($.join(".")), $ = [];
4283
4278
  else if (C === "$var")
4284
- g = this.globalVarDriver(y.join(".")), y = [];
4279
+ g = this.globalVarDriver($.join(".")), $ = [];
4285
4280
  else if (C === "$locale")
4286
- g = this.getLocale(), y = [];
4281
+ g = this.getLocale(), $ = [];
4287
4282
  else if (C === "$t")
4288
- g = this.globalLanguageDriver(y.join(".")), y = [];
4283
+ g = this.globalLanguageDriver($.join(".")), $ = [];
4289
4284
  else {
4290
4285
  const R = this.vm.top.fc.tmpData;
4291
- E(R, C) || k(R, C, Fe), g = R[C] !== Fe ? q(R, f) : it(f), y = [];
4286
+ E(R, C) || k(R, C, Oe), g = R[C] !== Oe ? q(R, f) : it(f), $ = [];
4292
4287
  }
4293
- g && y.length && (g = q(g, y));
4288
+ g && $.length && (g = q(g, $));
4294
4289
  }
4295
4290
  return g == null || g === "" ? d : g;
4296
4291
  },
4297
4292
  watchLoadData(f, d) {
4298
4293
  let g = {};
4299
- const y = (A) => {
4300
- this.get || (this.get = C), F(() => {
4294
+ const $ = (A) => {
4295
+ this.get || (this.get = C), O(() => {
4301
4296
  f(C, A);
4302
4297
  }), this.get === C && (this.get = void 0);
4303
4298
  }, C = (A, pe) => {
@@ -4306,7 +4301,7 @@ function Gt(t) {
4306
4301
  const me = he(() => this.getLoadData(A, pe)), ce = A.split("."), M = ce.shift(), ne = ce.shift() || "", se = le(() => {
4307
4302
  const Ie = this.getLoadData(A, pe);
4308
4303
  if (g[A])
4309
- JSON.stringify(Ie) !== JSON.stringify(g[A].val) && (g[A].val = Ie, y(!0));
4304
+ JSON.stringify(Ie) !== JSON.stringify(g[A].val) && (g[A].val = Ie, $(!0));
4310
4305
  else return;
4311
4306
  }, d || 0), we = B(me, (Ie) => {
4312
4307
  se();
@@ -4318,7 +4313,7 @@ function Gt(t) {
4318
4313
  val: me.value
4319
4314
  }, me.value;
4320
4315
  };
4321
- y(!1);
4316
+ $(!1);
4322
4317
  const R = () => {
4323
4318
  Object.keys(g).forEach((A) => g[A].fn()), g = {};
4324
4319
  };
@@ -4339,8 +4334,8 @@ function Gt(t) {
4339
4334
  this.isSub() && (f = this.mergeOptions(f, this.vm.parent.fc.options.value || {}, !0)), f = this.mergeOptions(f, this.vm.$options.propsData.option || {}), this.updateOptions(f);
4340
4335
  },
4341
4336
  mergeOptions(f, d, g) {
4342
- return d = b({}, d || {}), g && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((y) => {
4343
- delete d[y];
4337
+ return d = b({}, d || {}), g && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach(($) => {
4338
+ delete d[$];
4344
4339
  }), d.global && (f.global = Hr(f.global, d.global), delete d.global), this.$handle.$manager.mergeOptions([d], f), f;
4345
4340
  },
4346
4341
  updateOptions(f) {
@@ -4389,16 +4384,16 @@ function Gt(t) {
4389
4384
  setDriver: zt,
4390
4385
  register: De,
4391
4386
  $vnode: re,
4392
- parser: O,
4387
+ parser: F,
4393
4388
  use: be,
4394
4389
  factory: Wt,
4395
4390
  componentAlias: ve,
4396
4391
  copyRule: At,
4397
4392
  copyRules: Vt,
4398
- mergeRule: Q,
4393
+ mergeRule: Z,
4399
4394
  fetch: Lt,
4400
4395
  $form: T,
4401
- parseFn: Z,
4396
+ parseFn: K,
4402
4397
  parseJson: jt,
4403
4398
  toJson: et,
4404
4399
  useApp: P,
@@ -4412,23 +4407,23 @@ function Gt(t) {
4412
4407
  install(d, g) {
4413
4408
  if (p = b(b({}, p), g || {}), d._installedFormCreate === !0) return;
4414
4409
  d._installedFormCreate = !0;
4415
- const y = function(R, A = {}) {
4410
+ const $ = function(R, A = {}) {
4416
4411
  return ie(R, A, this);
4417
4412
  };
4418
- nt(y), d.prototype.$formCreate = y;
4413
+ nt($), d.prototype.$formCreate = $;
4419
4414
  const C = T();
4420
4415
  d.component(C.name, C), d.component("FcFragment", re()), o.forEach((R) => {
4421
- F(() => R(f, d));
4416
+ O(() => R(f, d));
4422
4417
  });
4423
4418
  }
4424
4419
  });
4425
4420
  }
4426
- if (nt(D), xt(D), Ae("$cookie", Ri), Ae("$localStorage", Si), $.use({ fragment: "fcFragment" }), t.install && ie.use(t), O(Fi), t.inherit) {
4421
+ if (nt(D), xt(D), Ae("$cookie", Ri), Ae("$localStorage", Si), y.use({ fragment: "fcFragment" }), t.install && ie.use(t), F(Oi), t.inherit) {
4427
4422
  const f = t.inherit;
4428
4423
  f.components && _(e, f.components), f.parsers && _(r, f.parsers), f.directives && _(i, f.directives), f.modelFields && _(s, f.modelFields), f.providers && _(u, f.providers), f.useApps && _(o, f.useApps), f.maker && _(c, f.maker), f.loadData && _(m, f.loadData), f.formulas && _(v, f.formulas);
4429
4424
  }
4430
4425
  const Ce = T();
4431
- return Oe(Ce, D), Object.defineProperties(Ce, {
4426
+ return Fe(Ce, D), Object.defineProperties(Ce, {
4432
4427
  fetch: {
4433
4428
  get() {
4434
4429
  return D.fetch;
@@ -4587,7 +4582,7 @@ function Wi(t) {
4587
4582
  function Ct(t, e) {
4588
4583
  E(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4589
4584
  }
4590
- function X(t) {
4585
+ function z(t) {
4591
4586
  return t === !1;
4592
4587
  }
4593
4588
  function Ki(t, e) {
@@ -4634,7 +4629,7 @@ const Xi = {
4634
4629
  wrap: {}
4635
4630
  };
4636
4631
  ["info", "wrap", "col", "title"].forEach((r) => {
4637
- t.prop[r] = z([this.options[r] || {}, t.prop[r] || {}], e[r]);
4632
+ t.prop[r] = Q([this.options[r] || {}, t.prop[r] || {}], e[r]);
4638
4633
  });
4639
4634
  },
4640
4635
  getDefaultOptions() {
@@ -4661,12 +4656,12 @@ const Xi = {
4661
4656
  });
4662
4657
  },
4663
4658
  render(t) {
4664
- return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, X(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
4659
+ 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)]);
4665
4660
  },
4666
4661
  makeWrap(t, e) {
4667
4662
  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;
4668
4663
  delete r.wrap.title;
4669
- const u = X(r.wrap.show) ? e : this.$r(z([r.wrap, {
4664
+ const u = z(r.wrap.show) ? e : this.$r(Q([r.wrap, {
4670
4665
  props: N(b({
4671
4666
  labelWidth: o === void 0 ? o : Dt(o),
4672
4667
  label: n ? r.title.title : void 0
@@ -4679,12 +4674,12 @@ const Xi = {
4679
4674
  ref: t.wrapRef,
4680
4675
  type: "formItem"
4681
4676
  }]), b({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
4682
- return a === !0 || X(l) || X(s.show) ? u : this.makeCol(r, i, [u]);
4677
+ return a === !0 || z(l) || z(s.show) ? u : this.makeCol(r, i, [u]);
4683
4678
  },
4684
4679
  isTitle(t) {
4685
4680
  if (this.options.form.title === !1) return !1;
4686
4681
  const e = t.title;
4687
- return !(!e.title && !e.native || X(e.show));
4682
+ return !(!e.title && !e.native || z(e.show));
4688
4683
  },
4689
4684
  makeInfo(t, e, r) {
4690
4685
  const i = b({}, t.title), s = b({}, t.info), n = Wi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
@@ -4692,7 +4687,7 @@ const Xi = {
4692
4687
  rule: r.rule,
4693
4688
  options: this.options
4694
4689
  }) : r.refRule.__$title.value + (o.labelSuffix || o["label-suffix"] || "")];
4695
- if (!X(s.show) && (s.info || s.native) && !X(s.icon)) {
4690
+ if (!z(s.show) && (s.info || s.native) && !z(s.icon)) {
4696
4691
  const c = {
4697
4692
  type: s.type || "popover",
4698
4693
  slot: "label",
@@ -4701,7 +4696,7 @@ const Xi = {
4701
4696
  };
4702
4697
  delete c.props.icon, delete c.props.show, delete c.props.info, delete c.props.align, delete c.props.native;
4703
4698
  const p = "content";
4704
- s.info && !E(c.props, p) && (c.props[p] = r.refRule.__$info.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(z([s, c]), [
4699
+ s.info && !E(c.props, p) && (c.props[p] = r.refRule.__$info.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(Q([s, c]), [
4705
4700
  this.$r({
4706
4701
  type: "i",
4707
4702
  slot: n ? "default" : "reference",
@@ -4710,7 +4705,7 @@ const Xi = {
4710
4705
  })
4711
4706
  ]));
4712
4707
  }
4713
- const u = z([i, {
4708
+ const u = Q([i, {
4714
4709
  props: qe(i),
4715
4710
  key: `${e}tit`,
4716
4711
  class: "fc-form-title",
@@ -4739,7 +4734,7 @@ const Xi = {
4739
4734
  },
4740
4735
  makeFormBtn() {
4741
4736
  let t = [];
4742
- if (X(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), X(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
4737
+ if (z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
4743
4738
  return;
4744
4739
  const e = this.$r({
4745
4740
  type: "formItem",
@@ -4915,9 +4910,9 @@ function en(t, e) {
4915
4910
  return new Promise((s, n) => {
4916
4911
  t.validate().then(() => {
4917
4912
  let o = t.formData();
4918
- 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);
4913
+ h.Function(r) && O(() => r(o, t)), h.Function(e.options.onSubmit) && O(() => e.options.onSubmit(o, t)), e.vm.$emit("submit", o, t), s(o);
4919
4914
  }).catch((...o) => {
4920
- h.Function(i) && F(() => i(t, ...o)), n(...o);
4915
+ h.Function(i) && O(() => i(t, ...o)), n(...o);
4921
4916
  });
4922
4917
  });
4923
4918
  }
@@ -4965,7 +4960,7 @@ function rn(t) {
4965
4960
  function nn() {
4966
4961
  return Gt({
4967
4962
  ui: "element-ui",
4968
- version: "2.7.0",
4963
+ version: "2.7.1",
4969
4964
  manager: Xi,
4970
4965
  extendApi: en,
4971
4966
  install: rn,