@form-create/element-ui 2.7.17 → 2.7.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/element-ui v2.7.17
3
+ * @form-create/element-ui v2.7.19
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -19,7 +19,7 @@ var lt = (t, e, r) => e in t ? nr(t, e, { enumerable: !0, configurable: !0, writ
19
19
  lr.call(e, r) && lt(t, r, e[r]);
20
20
  return t;
21
21
  }, q = (t, e) => sr(t, or(e));
22
- import $e, { getCurrentInstance as ur, provide as fr, inject as cr, toRefs as ut, reactive as ne, onBeforeMount as hr, watch as N, onMounted as dr, onBeforeUnmount as pr, onUpdated as mr, nextTick as P, markRaw as ge, computed as ye, toRef as Ae, ref as gr } from "vue";
22
+ import $e, { getCurrentInstance as ur, provide as fr, inject as cr, toRefs as ut, reactive as ne, onBeforeMount as hr, watch as N, onMounted as dr, onBeforeUnmount as pr, onUpdated as mr, nextTick as P, markRaw as ge, computed as ye, toRef as Ve, ref as gr } from "vue";
23
23
  function yr(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
@@ -626,8 +626,8 @@ const jr = "fcSelect", Dr = {
626
626
  mounted() {
627
627
  this.$emit("fc.el", this.$refs.el);
628
628
  }
629
- }, Ar = "fcTree", Vr = {
630
- name: Ar,
629
+ }, Vr = "fcTree", Ar = {
630
+ name: Vr,
631
631
  formCreateParser: {
632
632
  mergeProp(t) {
633
633
  const e = t.prop.props;
@@ -951,7 +951,7 @@ const Br = Object.assign || function(t) {
951
951
  Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
952
952
  return t;
953
953
  };
954
- function _() {
954
+ function C() {
955
955
  return Br.apply(this, arguments);
956
956
  }
957
957
  function Ke(t) {
@@ -969,7 +969,7 @@ function Et(t) {
969
969
  function Lr(t) {
970
970
  return t && typeof t == "object" && typeof t.then == "function";
971
971
  }
972
- function Ve(t) {
972
+ function Ae(t) {
973
973
  return Lr(t) ? t : Promise.resolve(t);
974
974
  }
975
975
  function be(t) {
@@ -1215,7 +1215,7 @@ const Ur = "fcGroup", Hr = {
1215
1215
  if (this.defaultValue) {
1216
1216
  i.formData || (i.formData = {});
1217
1217
  const s = K(this.defaultValue);
1218
- _(i.formData, this.field ? {
1218
+ C(i.formData, this.field ? {
1219
1219
  [this.field]: s
1220
1220
  } : s);
1221
1221
  }
@@ -1251,7 +1251,7 @@ const Ur = "fcGroup", Hr = {
1251
1251
  const i = [...this.value];
1252
1252
  i.splice(t, 1), this.input(i);
1253
1253
  };
1254
- Ve(this.onBeforeRemove(this.modelValue, t)).then((i) => {
1254
+ Ae(this.onBeforeRemove(this.modelValue, t)).then((i) => {
1255
1255
  i !== !1 && r();
1256
1256
  });
1257
1257
  },
@@ -1460,12 +1460,12 @@ const Ur = "fcGroup", Hr = {
1460
1460
  Er,
1461
1461
  Sr,
1462
1462
  Dr,
1463
- Vr,
1463
+ Ar,
1464
1464
  Tr,
1465
1465
  Hr,
1466
1466
  Jr
1467
- ], jt = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style", "directives"], At = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
1468
- const i = [...jt, ...r.normal || []], s = [...Dt, ...r.array || []], n = [...At, ...r.functional || []], o = r.props || [];
1467
+ ], jt = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style", "directives"], Vt = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
1468
+ const i = [...jt, ...r.normal || []], s = [...Dt, ...r.array || []], n = [...Vt, ...r.functional || []], o = r.props || [];
1469
1469
  return t.reduce((a, l) => {
1470
1470
  for (const u in l)
1471
1471
  if (a[u])
@@ -1494,9 +1494,9 @@ const Ur = "fcGroup", Hr = {
1494
1494
  }, e);
1495
1495
  }, Wr = (t, e) => function() {
1496
1496
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1497
- }, Vt = ["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"], et = ["validate", "children", "control"], tt = ["effect", "deep", "renderSlots"];
1497
+ }, At = ["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"], et = ["validate", "children", "control"], tt = ["effect", "deep", "renderSlots"];
1498
1498
  function It() {
1499
- return [...Vt, ...jt, ...Dt, ...At, ...et, ...tt];
1499
+ return [...At, ...jt, ...Dt, ...Vt, ...et, ...tt];
1500
1500
  }
1501
1501
  function ze(t, e) {
1502
1502
  return {
@@ -1740,24 +1740,24 @@ function Zr(t, e, r) {
1740
1740
  unique: 1,
1741
1741
  renderRule: [...l.value || []],
1742
1742
  updateValue: JSON.stringify(u.value || {})
1743
- }), g = new t(n), y = g.api(), C = p.value, k = () => {
1743
+ }), g = new t(n), y = g.api(), _ = p.value, k = () => {
1744
1744
  if (o) {
1745
1745
  const E = je(n, o);
1746
1746
  if (E) {
1747
1747
  let R;
1748
- C ? (R = H(E.getSubForm()), R.push(y)) : R = y, E.subForm(R);
1748
+ _ ? (R = H(E.getSubForm()), R.push(y)) : R = y, E.subForm(R);
1749
1749
  }
1750
1750
  }
1751
1751
  }, G = () => {
1752
1752
  const E = je(n, o);
1753
1753
  if (E)
1754
- if (C) {
1754
+ if (_) {
1755
1755
  const R = H(E.getSubForm()), M = R.indexOf(y);
1756
1756
  M > -1 && R.splice(M, 1);
1757
1757
  } else
1758
1758
  E.subForm();
1759
1759
  };
1760
- let V = null;
1760
+ let A = null;
1761
1761
  hr(() => {
1762
1762
  N(() => {
1763
1763
  let E = "";
@@ -1767,7 +1767,7 @@ function Zr(t, e, r) {
1767
1767
  R[M].style && Object.keys(R[M].style).forEach((W) => {
1768
1768
  me += be(W) + ":" + R[M].style[W] + ";";
1769
1769
  }), R[M].content && (me += R[M].content + ";"), me && (E += `.${M}{${me}}`);
1770
- }), s.option && s.option.style && (E += s.option.style), V || (V = document.createElement("style"), V.type = "text/css", document.head.appendChild(V)), V.innerHTML = E || "";
1770
+ }), s.option && s.option.style && (E += s.option.style), A || (A = document.createElement("style"), A.type = "text/css", document.head.appendChild(A)), A.innerHTML = E || "";
1771
1771
  }, () => {
1772
1772
  });
1773
1773
  });
@@ -1783,7 +1783,7 @@ function Zr(t, e, r) {
1783
1783
  return dr(() => {
1784
1784
  o && (y.top.bus.$on("$loadData.$form", L), y.top.bus.$on("change", pe)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", de), g.mounted();
1785
1785
  }), pr(() => {
1786
- o && (y.top.bus.$off("$loadData.$form", L), y.top.bus.$off("change", pe)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", de), G(), d.destroyed = !0, g.unmount(), V && (V.parentNode || V.parentElement) && document.head.removeChild(V);
1786
+ o && (y.top.bus.$off("$loadData.$form", L), y.top.bus.$off("change", pe)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", de), G(), d.destroyed = !0, g.unmount(), A && (A.parentNode || A.parentElement) && document.head.removeChild(A);
1787
1787
  }), mr(() => {
1788
1788
  g.updated();
1789
1789
  }), N(f, (E) => {
@@ -1848,9 +1848,9 @@ function T(t, e) {
1848
1848
  };
1849
1849
  }
1850
1850
  function rt(t, e, r, i, s) {
1851
- this._data = _(Nt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1851
+ this._data = C(Nt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1852
1852
  }
1853
- _(rt.prototype, {
1853
+ C(rt.prototype, {
1854
1854
  getRule() {
1855
1855
  return this._data;
1856
1856
  },
@@ -1934,7 +1934,7 @@ function yt(t, e, r) {
1934
1934
  onSuccess(n) {
1935
1935
  let o = (l) => l;
1936
1936
  const a = z(t.parse);
1937
- h.Function(a) ? o = a : a && h.String(a) && (o = (l) => B(l, a)), Ve(o(n, t.targetRule, r)).then((l) => {
1937
+ h.Function(a) ? o = a : a && h.String(a) && (o = (l) => B(l, a)), Ae(o(n, t.targetRule, r)).then((l) => {
1938
1938
  i(l);
1939
1939
  });
1940
1940
  },
@@ -2051,7 +2051,7 @@ function ti(t) {
2051
2051
  F(f.rule, "value", u ? n[a] : void 0);
2052
2052
  }), delete o[a];
2053
2053
  }
2054
- }), _(t.appendData, o);
2054
+ }), C(t.appendData, o);
2055
2055
  }, !0);
2056
2056
  },
2057
2057
  setValue(n) {
@@ -2191,7 +2191,7 @@ function ti(t) {
2191
2191
  },
2192
2192
  updateRule(n, o) {
2193
2193
  t.getCtxs(n).forEach((a) => {
2194
- _(a.rule, o);
2194
+ C(a.rule, o);
2195
2195
  });
2196
2196
  },
2197
2197
  updateRules(n) {
@@ -2425,7 +2425,7 @@ function ti(t) {
2425
2425
  }), s.changeValue = s.changeField = s.setValue, s;
2426
2426
  }
2427
2427
  function ri(t) {
2428
- _(t.prototype, {
2428
+ C(t.prototype, {
2429
2429
  initCache() {
2430
2430
  this.clearCacheAll();
2431
2431
  },
@@ -2466,7 +2466,7 @@ function Ht(t) {
2466
2466
  return t.replace(t[0], t[0].toLowerCase());
2467
2467
  }
2468
2468
  function ii(t) {
2469
- _(t.prototype, {
2469
+ C(t.prototype, {
2470
2470
  initRender() {
2471
2471
  this.cacheConfig = {};
2472
2472
  },
@@ -2554,8 +2554,8 @@ function ii(t) {
2554
2554
  }, (() => {
2555
2555
  if (h.Function(n.renderSlots[y]))
2556
2556
  return O(() => n.renderSlots[y]());
2557
- const C = this.parseSide(n.renderSlots[y], e);
2558
- return this.renderRule(C);
2557
+ const _ = this.parseSide(n.renderSlots[y], e);
2558
+ return this.renderRule(_);
2559
2559
  })()));
2560
2560
  });
2561
2561
  const d = this.getTypeSlot(e);
@@ -2752,7 +2752,7 @@ function ii(t) {
2752
2752
  }
2753
2753
  let ni = 1;
2754
2754
  function it(t) {
2755
- _(this, {
2755
+ C(this, {
2756
2756
  $handle: t,
2757
2757
  fc: t.fc,
2758
2758
  vm: t.vm,
@@ -2773,7 +2773,7 @@ function it(t) {
2773
2773
  ri(it);
2774
2774
  ii(it);
2775
2775
  function si(t) {
2776
- _(t.prototype, {
2776
+ C(t.prototype, {
2777
2777
  parseInjectEvent(e, r) {
2778
2778
  const i = e.inject || this.options.injectEvent;
2779
2779
  return this.parseEventLst(e, r, i);
@@ -2802,14 +2802,14 @@ function si(t) {
2802
2802
  let p, d = n || o || a;
2803
2803
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2804
2804
  r || (d = `native-${d}`);
2805
- const g = be(`${d}-${f}`), y = (...C) => {
2806
- this.vm.$emit(g, ...C), this.vm.$emit("emit-event", g, ...C), this.bus.$emit(g, ...C);
2805
+ const g = be(`${d}-${f}`), y = (..._) => {
2806
+ this.vm.$emit(g, ..._), this.vm.$emit("emit-event", g, ..._), this.bus.$emit(g, ..._);
2807
2807
  };
2808
2808
  if (y.__emit = !0, !p && l === !1)
2809
2809
  i[f] = y;
2810
2810
  else {
2811
- let C = p || l || this.options.injectEvent;
2812
- i[f] = h.Undef(C) ? y : this.inject(s, y, C);
2811
+ let _ = p || l || this.options.injectEvent;
2812
+ i[f] = h.Undef(_) ? y : this.inject(s, y, _);
2813
2813
  }
2814
2814
  }
2815
2815
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2889,12 +2889,12 @@ function si(t) {
2889
2889
  }
2890
2890
  const $t = ["hook:updated", "hook:mounted"];
2891
2891
  function oi(t) {
2892
- _(t.prototype, {
2892
+ C(t.prototype, {
2893
2893
  usePage() {
2894
2894
  const e = this.options.page;
2895
2895
  if (!e) return;
2896
2896
  let r = 25, i = ai(this.rules);
2897
- h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), _(this, {
2897
+ h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), C(this, {
2898
2898
  first: r,
2899
2899
  limit: i,
2900
2900
  pageEnd: this.rules.length <= r
@@ -2912,7 +2912,7 @@ function ai(t) {
2912
2912
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2913
2913
  }
2914
2914
  function li(t) {
2915
- _(t.prototype, {
2915
+ C(t.prototype, {
2916
2916
  clearNextTick() {
2917
2917
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
2918
2918
  },
@@ -2935,7 +2935,7 @@ function ui(t) {
2935
2935
  }
2936
2936
  function Gt(t, e, r) {
2937
2937
  const i = Ie(), s = !!e.field;
2938
- _(this, {
2938
+ C(this, {
2939
2939
  id: i,
2940
2940
  ref: i,
2941
2941
  wrapRef: i + "fi",
@@ -2963,7 +2963,7 @@ function Gt(t, e, r) {
2963
2963
  field: e.field || void 0
2964
2964
  }), this.updateKey(), ui(this), this.update(t, !0);
2965
2965
  }
2966
- _(Gt.prototype, {
2966
+ C(Gt.prototype, {
2967
2967
  getParentGroup() {
2968
2968
  let t = this.parent;
2969
2969
  for (; t; ) {
@@ -3073,7 +3073,7 @@ _(Gt.prototype, {
3073
3073
  this.$handle.watchCtx(this);
3074
3074
  },
3075
3075
  delete() {
3076
- this.unwatch(), this.unlink(), this.rmCtrl(), this.parent && this.parent.children.splice(this.parent.children.indexOf(this) >>> 0, 1), _(this, {
3076
+ this.unwatch(), this.unlink(), this.rmCtrl(), this.parent && this.parent.children.splice(this.parent.children.indexOf(this) >>> 0, 1), C(this, {
3077
3077
  deleted: !0,
3078
3078
  computed: {},
3079
3079
  parent: null,
@@ -3096,14 +3096,14 @@ _(Gt.prototype, {
3096
3096
  }
3097
3097
  this.$handle.noWatch(() => {
3098
3098
  this.$handle.deferSyncValue(() => {
3099
- this.rmCtrl(), t(), this.$handle.rmCtx(this), _(this, {
3099
+ this.rmCtrl(), t(), this.$handle.rmCtx(this), C(this, {
3100
3100
  root: []
3101
3101
  });
3102
3102
  }, this.input);
3103
3103
  });
3104
3104
  },
3105
3105
  update(t, e) {
3106
- _(this, {
3106
+ C(this, {
3107
3107
  deleted: !1,
3108
3108
  $handle: t,
3109
3109
  $render: t.$render,
@@ -3116,7 +3116,7 @@ _(Gt.prototype, {
3116
3116
  }
3117
3117
  });
3118
3118
  function fi(t) {
3119
- _(t.prototype, {
3119
+ C(t.prototype, {
3120
3120
  nextRefresh(e) {
3121
3121
  const r = this.loadedId;
3122
3122
  P(() => {
@@ -3201,9 +3201,9 @@ function fi(t) {
3201
3201
  const k = i(a);
3202
3202
  k > -1 || !a ? this.sort.splice(k + 1, 0, f.id) : this.sort.push(f.id);
3203
3203
  }
3204
- const C = f.rule;
3205
- return f.updated || (f.updated = !0, h.Function(C.update) && this.bus.$once("load-end", () => {
3206
- this.refreshUpdate(f, C.value, "init");
3204
+ const _ = f.rule;
3205
+ return f.updated || (f.updated = !0, h.Function(_.update) && this.bus.$once("load-end", () => {
3206
+ this.refreshUpdate(f, _.value, "init");
3207
3207
  }), this.effect(f, "loaded")), this.refreshControl(f) && (this.cycleLoad = !0), f;
3208
3208
  }).filter((o) => !!o);
3209
3209
  r && (r.children = n);
@@ -3237,27 +3237,27 @@ function fi(t) {
3237
3237
  children: u,
3238
3238
  valid: l
3239
3239
  }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3240
- y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((C) => {
3241
- this.api.setEffect(C, "required", l);
3240
+ y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((_) => {
3241
+ this.api.setEffect(_, "required", l);
3242
3242
  }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3243
3243
  });
3244
3244
  return;
3245
3245
  }
3246
3246
  if (l) {
3247
3247
  o = !0;
3248
- const C = {
3248
+ const _ = {
3249
3249
  type: "fragment",
3250
3250
  native: !0,
3251
3251
  __ctrl: !0,
3252
3252
  children: u
3253
3253
  };
3254
- e.ctrlRule.push(C), this.bus.$once("load-start", () => {
3255
- f ? s.prepend(C, f, d) : p || d ? s.append(C, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, C);
3254
+ e.ctrlRule.push(_), this.bus.$once("load-start", () => {
3255
+ f ? s.prepend(_, f, d) : p || d ? s.append(_, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3256
3256
  });
3257
3257
  } else {
3258
3258
  e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3259
- const C = Q(g);
3260
- C && C.rm();
3259
+ const _ = Q(g);
3260
+ _ && _.rm();
3261
3261
  }
3262
3262
  });
3263
3263
  }), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
@@ -3305,7 +3305,7 @@ function bt(t) {
3305
3305
  return !!t.rule.__ctrl;
3306
3306
  }
3307
3307
  function pi(t) {
3308
- _(t.prototype, {
3308
+ C(t.prototype, {
3309
3309
  setValue(e, r, i, s) {
3310
3310
  e.deleted || (e.rule.value = r, this.changeStatus = !0, this.nextRefresh(), this.$render.clearCache(e), this.setFormData(e, i), this.syncValue(), this.valueChange(e, r), this.vm.$emit("change", e.field, r, e.origin, this.api, s || !1), this.effect(e, "value"), this.targetHook(e, "value", { value: r }), this.emitEvent("change", e.field, r, {
3311
3311
  rule: e.origin,
@@ -3348,9 +3348,9 @@ function pi(t) {
3348
3348
  },
3349
3349
  syncForm() {
3350
3350
  const e = {}, r = this.fields(), i = [];
3351
- this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Ae(this.appendData, n)), s), e), r.reduce((s, n) => {
3351
+ this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Ve(this.appendData, n)), s), e), r.reduce((s, n) => {
3352
3352
  let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
3353
- return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = Ae(o.rule, "value"), s;
3353
+ return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = Ve(o.rule, "value"), s;
3354
3354
  }, e), this.form = ne(e), this.ignoreFields = i, this.syncValue();
3355
3355
  },
3356
3356
  isIgnore(e) {
@@ -3431,7 +3431,7 @@ const De = {
3431
3431
  }
3432
3432
  }, mi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Ce = Symbol("oldValue");
3433
3433
  function gi(t) {
3434
- _(t.prototype, {
3434
+ C(t.prototype, {
3435
3435
  getCtx(e) {
3436
3436
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
3437
3437
  },
@@ -3479,7 +3479,7 @@ function gi(t) {
3479
3479
  },
3480
3480
  watchCtx(e) {
3481
3481
  if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && mi.indexOf(i) === -1).forEach((i) => {
3482
- const s = Ae(e.rule, i), n = i === "children";
3482
+ const s = Ve(e.rule, i), n = i === "children";
3483
3483
  e.refRule[i] = s, e.watch.push(N(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3484
3484
  let l = s.value;
3485
3485
  if (!this.isBreakWatch()) {
@@ -3546,7 +3546,7 @@ function gi(t) {
3546
3546
  return n;
3547
3547
  });
3548
3548
  }), e.input) {
3549
- const i = Ae(e.rule, "value");
3549
+ const i = Ve(e.rule, "value");
3550
3550
  e.watch.push(N(() => i.value, () => {
3551
3551
  let s = e.parser.toFormValue(i.value, e);
3552
3552
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3595,7 +3595,7 @@ function gi(t) {
3595
3595
  return this.$manager.adapterValidate({
3596
3596
  required: e.required,
3597
3597
  message: e.message,
3598
- target: e.trigger
3598
+ trigger: e.trigger
3599
3599
  }, i);
3600
3600
  },
3601
3601
  getValidateMessage(e, r) {
@@ -3694,15 +3694,17 @@ function gi(t) {
3694
3694
  let u = !0;
3695
3695
  for (let f = 0; f < a.group.length; f++) {
3696
3696
  const p = a.group[f];
3697
- let d, g = null;
3697
+ let d, g = null, y = null;
3698
3698
  if (p.variable)
3699
- g = JSON.stringify(this.fc.getLoadData(p.variable)) || "";
3699
+ y = this.fc.getLoadData(p.variable);
3700
3700
  else if (p.field)
3701
3701
  g = pt(p.field || "");
3702
3702
  else if (!p.mode)
3703
3703
  return !0;
3704
- let y = p.compare;
3705
- if (y && (y = pt(y || "")), p.mode ? d = n(p) : ce[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${g}, ${y || "$val"}); }}}}`).call(this.api.form, ce, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
3704
+ if (!p.variable && !p.field)
3705
+ return !1;
3706
+ let _ = p.compare;
3707
+ if (_ && (_ = pt(_ || "")), p.mode ? d = n(p) : ce[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$variableVal", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${p.variable ? "$variableVal" : g}, ${_ || "$val"}); }}}}`).call(this.api.form, ce, y, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
3706
3708
  return !0;
3707
3709
  l || (u = u && d);
3708
3710
  }
@@ -3761,7 +3763,7 @@ function gi(t) {
3761
3763
  });
3762
3764
  }
3763
3765
  function yi(t) {
3764
- _(t.prototype, {
3766
+ C(t.prototype, {
3765
3767
  mounted() {
3766
3768
  const e = () => {
3767
3769
  this.isMounted = !0, this.lifecycle("mounted");
@@ -3803,7 +3805,7 @@ function yi(t) {
3803
3805
  });
3804
3806
  }
3805
3807
  function $i(t) {
3806
- _(t.prototype, {
3808
+ C(t.prototype, {
3807
3809
  useProvider() {
3808
3810
  const e = this.fc.providers;
3809
3811
  Object.keys(e).forEach((r) => {
@@ -3901,7 +3903,7 @@ function X(t) {
3901
3903
  preview() {
3902
3904
  return t.vm.$props.preview != null ? t.vm.$props.preview : t.vm.parent && t.vm.parent.$props.preview != null ? t.vm.parent.$props.preview : t.options.value.preview || !1;
3903
3905
  }
3904
- }), _(this, {
3906
+ }), C(this, {
3905
3907
  fc: t,
3906
3908
  vm: t.vm,
3907
3909
  watching: !1,
@@ -3927,12 +3929,12 @@ function X(t) {
3927
3929
  }
3928
3930
  }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
3929
3931
  const i = O(() => r(e, this));
3930
- return i && i !== e && _(e, i), e;
3932
+ return i && i !== e && C(e, i), e;
3931
3933
  }, ti(this));
3932
3934
  }
3933
- _(X.prototype, {
3935
+ C(X.prototype, {
3934
3936
  initData(t) {
3935
- _(this, {
3937
+ C(this, {
3936
3938
  ctxs: {},
3937
3939
  fieldCtx: {},
3938
3940
  nameCtx: {},
@@ -3992,7 +3994,7 @@ function wi() {
3992
3994
  function e(r) {
3993
3995
  r && this.setVm(r);
3994
3996
  }
3995
- return _(e.prototype, {
3997
+ return C(e.prototype, {
3996
3998
  setVm(r) {
3997
3999
  this.handle = r, this.vm = r.vm, this.h = this.$h = r.vm.$createElement;
3998
4000
  },
@@ -4014,7 +4016,7 @@ function wi() {
4014
4016
  return o.context = this.vm, o;
4015
4017
  },
4016
4018
  aliasMap: t
4017
- }), _(e, {
4019
+ }), C(e, {
4018
4020
  aliasMap: t,
4019
4021
  alias(r, i) {
4020
4022
  t[r] = i;
@@ -4037,7 +4039,7 @@ function Oi(t) {
4037
4039
  return Object.assign(e.prototype, t), e;
4038
4040
  }
4039
4041
  function Jt(t) {
4040
- _(this, {
4042
+ C(this, {
4041
4043
  $handle: t,
4042
4044
  vm: t.vm,
4043
4045
  options: {},
@@ -4047,7 +4049,7 @@ function Jt(t) {
4047
4049
  }
4048
4050
  }), this.updateKey(), this.init();
4049
4051
  }
4050
- _(Jt.prototype, {
4052
+ C(Jt.prototype, {
4051
4053
  __init() {
4052
4054
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
4053
4055
  },
@@ -4142,8 +4144,8 @@ const Fi = function(t) {
4142
4144
  const u = typeof l == "object";
4143
4145
  let f = (g) => {
4144
4146
  let y = t.t(u ? l.attr : l, u ? l.params : null, g);
4145
- const C = u && l.modify ? i : r.getProp();
4146
- a === "child" ? C.children ? F(C.children, 0, y) : F(C, "children", [y]) : oe(C, a, y), s.sync(i);
4147
+ const _ = u && l.modify ? i : r.getProp();
4148
+ a === "child" ? _.children ? F(_.children, 0, y) : F(_, "children", [y]) : oe(_, a, y), s.sync(i);
4147
4149
  }, p = (g) => f(g);
4148
4150
  const d = t.watchLoadData(p);
4149
4151
  f = se(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
@@ -4221,29 +4223,29 @@ const Fi = function(t) {
4221
4223
  const g = t.$handle.loadFetchVar(K(a), p, n), y = q(v({
4222
4224
  headers: {}
4223
4225
  }, g), {
4224
- onSuccess(C, k) {
4226
+ onSuccess(_, k) {
4225
4227
  if (f()) return;
4226
4228
  let G = (L) => k ? L : j(L, "data") ? L.data : L;
4227
- const V = z(g.parse);
4228
- h.Function(V) ? G = V : V && h.String(V) && (G = (L) => B(L, V)), Ve(G(C, n, o)).then((L) => {
4229
+ const A = z(g.parse);
4230
+ h.Function(A) ? G = A : A && h.String(A) && (G = (L) => B(L, A)), Ae(G(_, n, o)).then((L) => {
4229
4231
  l(L);
4230
4232
  });
4231
4233
  },
4232
- onError(C) {
4233
- l(void 0), !f() && (u || ((k) => Ye(k.message || "fetch fail " + g.action)))(C, n, o);
4234
+ onError(_) {
4235
+ l(void 0), !f() && (u || ((k) => Ye(k.message || "fetch fail " + g.action)))(_, n, o);
4234
4236
  }
4235
4237
  });
4236
4238
  t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4237
4239
  if (h.Function(g.action)) {
4238
- Ve(g.action(n, o)).then((C) => {
4239
- y.onSuccess(C, !0);
4240
- }).catch((C) => {
4241
- y.onError(C);
4240
+ Ae(g.action(n, o)).then((_) => {
4241
+ y.onSuccess(_, !0);
4242
+ }).catch((_) => {
4243
+ y.onError(_);
4242
4244
  });
4243
4245
  return;
4244
4246
  }
4245
4247
  O(() => t.create.fetch(y, { inject: s, rule: n, api: o }));
4246
- }).catch((C) => {
4248
+ }).catch((_) => {
4247
4249
  });
4248
4250
  }, a.wait || 600));
4249
4251
  }
@@ -4301,7 +4303,7 @@ const ji = "html", Di = {
4301
4303
  return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
4302
4304
  }
4303
4305
  };
4304
- function Ai(t) {
4306
+ function Vi(t) {
4305
4307
  t = t + "=";
4306
4308
  const r = decodeURIComponent(document.cookie).split(";");
4307
4309
  for (let i = 0; i < r.length; i++) {
@@ -4319,7 +4321,7 @@ function Ai(t) {
4319
4321
  }
4320
4322
  return null;
4321
4323
  }
4322
- function Vi(t) {
4324
+ function Ai(t) {
4323
4325
  const e = localStorage.getItem(t);
4324
4326
  if (e)
4325
4327
  try {
@@ -4347,10 +4349,10 @@ function nt(t, e) {
4347
4349
  return r.length ? i == null ? null : B(i, r) : i;
4348
4350
  }
4349
4351
  function Pi(t) {
4350
- return nt(Ai, t);
4352
+ return nt(Vi, t);
4351
4353
  }
4352
4354
  function Ti(t) {
4353
- return nt(Vi, t);
4355
+ return nt(Ai, t);
4354
4356
  }
4355
4357
  function Bi(t) {
4356
4358
  return nt(Ii, t);
@@ -4428,7 +4430,7 @@ function qi(t, e) {
4428
4430
  }
4429
4431
  function Ui(t) {
4430
4432
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4431
- Vt.push(...e), et.push(...r), tt.push(...i), Mt([...e, ...r, ...i]);
4433
+ At.push(...e), et.push(...r), tt.push(...i), Mt([...e, ...r, ...i]);
4432
4434
  }
4433
4435
  let Hi = 1;
4434
4436
  const U = {}, _t = Symbol("defValue");
@@ -4441,7 +4443,7 @@ function Wt(t) {
4441
4443
  let p = { global: {} };
4442
4444
  const d = t.isMobile === !0, g = ne({
4443
4445
  $mobile: d
4444
- }), y = wi(), C = {}, k = {};
4446
+ }), y = wi(), _ = {}, k = {};
4445
4447
  Ui(t.attrs || {});
4446
4448
  function G(c) {
4447
4449
  const m = U[c];
@@ -4450,7 +4452,7 @@ function Wt(t) {
4450
4452
  if (m)
4451
4453
  return m.api();
4452
4454
  }
4453
- function V(c) {
4455
+ function A(c) {
4454
4456
  o.push(c);
4455
4457
  }
4456
4458
  function L() {
@@ -4470,7 +4472,7 @@ function Wt(t) {
4470
4472
  const c = Me(...arguments);
4471
4473
  if (!c.id || !c.prop) return De;
4472
4474
  const m = J(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4473
- r[m] = Se($, b || De), f[m] = T(m), $.maker && _(f, $.maker);
4475
+ r[m] = Se($, b || De), f[m] = T(m), $.maker && C(f, $.maker);
4474
4476
  }
4475
4477
  function E(c, m) {
4476
4478
  let $;
@@ -4508,7 +4510,7 @@ function Wt(t) {
4508
4510
  providers: u,
4509
4511
  useApps: o,
4510
4512
  maker: f,
4511
- formulas: C,
4513
+ formulas: _,
4512
4514
  loadData: g
4513
4515
  } : delete m.inherit, Wt(m);
4514
4516
  }
@@ -4516,7 +4518,7 @@ function Wt(t) {
4516
4518
  s[c] = m;
4517
4519
  }
4518
4520
  function Zt(c, m) {
4519
- C[c] = m;
4521
+ _[c] = m;
4520
4522
  }
4521
4523
  function Qt(c, m) {
4522
4524
  const $ = n[c] || {}, b = $.parsers || {};
@@ -4558,7 +4560,7 @@ function Wt(t) {
4558
4560
  a.push({ name: c, callback: m });
4559
4561
  }
4560
4562
  function Be(c) {
4561
- _(this, {
4563
+ C(this, {
4562
4564
  id: Hi++,
4563
4565
  create: W,
4564
4566
  vm: c,
@@ -4566,7 +4568,7 @@ function Wt(t) {
4566
4568
  parsers: r,
4567
4569
  providers: u,
4568
4570
  modelFields: s,
4569
- formulas: C,
4571
+ formulas: _,
4570
4572
  isMobile: d,
4571
4573
  rules: c.$props.rule,
4572
4574
  name: c.$props.name || Ie(),
@@ -4593,9 +4595,9 @@ function Wt(t) {
4593
4595
  N(this.options, () => {
4594
4596
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4595
4597
  }, { deep: !0 });
4596
- }), _(c.$options.components, e), _(c.$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);
4598
+ }), C(c.$options.components, e), C(c.$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);
4597
4599
  }
4598
- Be.isMobile = d, _(Be.prototype, {
4600
+ Be.isMobile = d, C(Be.prototype, {
4599
4601
  init() {
4600
4602
  this.isSub() && this.unwatch.push(N(() => this.vm.parent.fc.options.value, () => {
4601
4603
  this.initOptions(), this.$handle.api.refresh();
@@ -4608,8 +4610,8 @@ function Wt(t) {
4608
4610
  t(c, m, $) {
4609
4611
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4610
4612
  return b == null && (b = ""), b && m && Object.keys(m).forEach((w) => {
4611
- const A = new RegExp(`{${w}}`, "g");
4612
- b = b.replace(A, m[w]);
4613
+ const V = new RegExp(`{${w}}`, "g");
4614
+ b = b.replace(V, m[w]);
4613
4615
  }), b;
4614
4616
  },
4615
4617
  globalDataDriver(c) {
@@ -4620,11 +4622,11 @@ function Wt(t) {
4620
4622
  return B(b.data, m);
4621
4623
  {
4622
4624
  let w;
4623
- const A = this.fetchCache.get(b);
4624
- if (A) {
4625
- if (A.status && (w = B(A.data, m)), !A.loading)
4625
+ const V = this.fetchCache.get(b);
4626
+ if (V) {
4627
+ if (V.status && (w = B(V.data, m)), !V.loading)
4626
4628
  return w;
4627
- A.loading = !1, this.fetchCache.set(b, A);
4629
+ V.loading = !1, this.fetchCache.set(b, V);
4628
4630
  } else
4629
4631
  this.fetchCache.set(b, { status: !1 });
4630
4632
  const S = se(() => {
@@ -4658,8 +4660,8 @@ function Wt(t) {
4658
4660
  globalLanguageDriver(c) {
4659
4661
  let m = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4660
4662
  if (m && (b = O(() => m(c))), b == null && $ && typeof $ == "object" && (b = B($, c)), b == null) {
4661
- const w = this.options.value.language || {}, A = this.getLocale();
4662
- b = B(w[A] || {}, c), b == null && (b = B(Li[A] || {}, c));
4663
+ const w = this.options.value.language || {}, V = this.getLocale();
4664
+ b = B(w[V] || {}, c), b == null && (b = B(Li[V] || {}, c));
4663
4665
  }
4664
4666
  return b;
4665
4667
  },
@@ -4669,8 +4671,8 @@ function Wt(t) {
4669
4671
  if (b) {
4670
4672
  const w = h.Function(b) ? b : z(b.handle);
4671
4673
  if (w) {
4672
- let A = w((...S) => this.$handle.api.getData(...S), this.$handle.api);
4673
- return B(A, m);
4674
+ let V = w((...S) => this.$handle.api.getData(...S), this.$handle.api);
4675
+ return B(V, m);
4674
4676
  }
4675
4677
  }
4676
4678
  },
@@ -4735,10 +4737,10 @@ function Wt(t) {
4735
4737
  }, te.value;
4736
4738
  };
4737
4739
  b(!1);
4738
- const A = () => {
4740
+ const V = () => {
4739
4741
  Object.keys($).forEach((S) => $[S].fn()), $ = {};
4740
4742
  };
4741
- return this.unwatch.push(A), A;
4743
+ return this.unwatch.push(V), V;
4742
4744
  },
4743
4745
  isSub() {
4744
4746
  return this.vm.parent && this.vm.extendOption;
@@ -4790,7 +4792,7 @@ function Wt(t) {
4790
4792
  }
4791
4793
  });
4792
4794
  function ot(c) {
4793
- _(c, {
4795
+ C(c, {
4794
4796
  version: t.version,
4795
4797
  ui: t.ui,
4796
4798
  isMobile: d,
@@ -4820,31 +4822,31 @@ function Wt(t) {
4820
4822
  parseFn: z,
4821
4823
  parseJson: St,
4822
4824
  toJson: we,
4823
- useApp: V,
4825
+ useApp: A,
4824
4826
  getApi: G,
4825
4827
  on: tr
4826
4828
  });
4827
4829
  }
4828
4830
  function rr(c) {
4829
- _(c, {
4831
+ C(c, {
4830
4832
  create: W,
4831
4833
  install(m, $) {
4832
4834
  if (p = v(v({}, p), $ || {}), m._installedFormCreate === !0) return;
4833
4835
  m._installedFormCreate = !0;
4834
- const b = function(A, S = {}) {
4835
- return W(A, S, this);
4836
+ const b = function(V, S = {}) {
4837
+ return W(V, S, this);
4836
4838
  };
4837
4839
  ot(b), m.prototype.$formCreate = b;
4838
4840
  const w = R();
4839
- m.component(w.name, w), m.component("FcFragment", M()), o.forEach((A) => {
4840
- O(() => A(c, m));
4841
+ m.component(w.name, w), m.component("FcFragment", M()), o.forEach((V) => {
4842
+ O(() => V(c, m));
4841
4843
  });
4842
4844
  }
4843
4845
  });
4844
4846
  }
4845
4847
  if (ot(k), rr(k), ke("$cookie", Pi), ke("$localStorage", Ti), ke("$sessionStorage", Bi), y.use({ fragment: "fcFragment" }), t.install && W.use(t), pe(Di), t.inherit) {
4846
4848
  const c = t.inherit;
4847
- 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 && _(g, c.loadData), c.formulas && _(C, c.formulas);
4849
+ c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(g, c.loadData), c.formulas && C(_, c.formulas);
4848
4850
  }
4849
4851
  const Ee = R();
4850
4852
  return Se(Ee, k), Object.defineProperties(Ee, {
@@ -5086,7 +5088,7 @@ const on = {
5086
5088
  },
5087
5089
  beforeRender() {
5088
5090
  const { key: t, ref: e, $handle: r } = this, i = this.options.form;
5089
- _(this.rule, { key: t, ref: e, class: [i.className, i.class, "form-create", this.$handle.preview ? "is-preview" : ""] }), _(this.rule.props, {
5091
+ C(this.rule, { key: t, ref: e, class: [i.className, i.class, "form-create", this.$handle.preview ? "is-preview" : ""] }), C(this.rule.props, {
5090
5092
  model: r.formData
5091
5093
  });
5092
5094
  },
@@ -5117,7 +5119,7 @@ const on = {
5117
5119
  return !(!e.title && !e.native || Z(e.show));
5118
5120
  },
5119
5121
  makeInfo(t, e, r) {
5120
- var f, p, d, g, y, C;
5122
+ var f, p, d, g, y, _;
5121
5123
  const i = v({}, t.title), s = v({}, t.info), n = nn(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5122
5124
  title: (p = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : p.value,
5123
5125
  rule: r.rule,
@@ -5132,7 +5134,7 @@ const on = {
5132
5134
  };
5133
5135
  delete k.props.icon, delete k.props.show, delete k.props.info, delete k.props.align, delete k.props.native;
5134
5136
  const G = "content";
5135
- s.info && !j(k.props, G) && (k.props[G] = (C = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : C.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, k]), [
5137
+ s.info && !j(k.props, G) && (k.props[G] = (_ = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : _.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, k]), [
5136
5138
  this.$r({
5137
5139
  type: "i",
5138
5140
  slot: n ? "default" : "reference",
@@ -5336,11 +5338,11 @@ function hn(t, e) {
5336
5338
  },
5337
5339
  submitBtnProps: (r = {}) => {
5338
5340
  let i = kt(e.options.submitBtn, !0);
5339
- _(i, r), e.options.submitBtn = i, t.refreshOptions();
5341
+ C(i, r), e.options.submitBtn = i, t.refreshOptions();
5340
5342
  },
5341
5343
  resetBtnProps: (r = {}) => {
5342
5344
  let i = kt(e.options.resetBtn, !1);
5343
- _(i, r), e.options.resetBtn = i, t.refreshOptions();
5345
+ C(i, r), e.options.resetBtn = i, t.refreshOptions();
5344
5346
  },
5345
5347
  submit(r, i) {
5346
5348
  return new Promise((s, n) => {
@@ -5400,7 +5402,7 @@ function pn(t) {
5400
5402
  function mn() {
5401
5403
  return Wt({
5402
5404
  ui: "element-ui",
5403
- version: "2.7.17",
5405
+ version: "2.7.19",
5404
5406
  manager: on,
5405
5407
  extendApi: hn,
5406
5408
  install: pn,