@form-create/iview 2.7.12 → 2.7.15

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/iview v2.7.12
3
+ * @form-create/iview v2.7.15
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -11,7 +11,7 @@ var sr = Object.defineProperty, or = Object.defineProperties;
11
11
  var ar = Object.getOwnPropertyDescriptors;
12
12
  var ot = Object.getOwnPropertySymbols;
13
13
  var lr = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
14
- var at = (t, e, r) => e in t ? sr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
14
+ var at = (t, e, r) => e in t ? sr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, _ = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
16
  lr.call(e, r) && at(t, r, e[r]);
17
17
  if (ot)
@@ -19,7 +19,7 @@ var at = (t, e, r) => e in t ? sr(t, e, { enumerable: !0, configurable: !0, writ
19
19
  ur.call(e, r) && at(t, r, e[r]);
20
20
  return t;
21
21
  }, U = (t, e) => or(t, ar(e));
22
- import $e, { getCurrentInstance as fr, provide as cr, inject as hr, toRefs as lt, reactive as ie, onBeforeMount as dr, watch as B, onMounted as pr, onBeforeUnmount as mr, onUpdated as gr, nextTick as V, markRaw as ge, computed as ye, toRef as je, ref as yr } from "vue";
22
+ import ye, { getCurrentInstance as fr, provide as cr, inject as hr, toRefs as lt, reactive as ie, onBeforeMount as dr, watch as B, onMounted as pr, onBeforeUnmount as mr, onUpdated as gr, nextTick as V, markRaw as me, computed as ge, toRef as De, ref as yr } from "vue";
23
23
  function $r(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
@@ -50,7 +50,7 @@ var br = ["attrs", "props", "domProps"], vr = ["class", "style", "directives"],
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
52
  }, Or = Cr;
53
- const A = /* @__PURE__ */ $r(Or);
53
+ const D = /* @__PURE__ */ $r(Or);
54
54
  function Ie(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => ((!e || e.indexOf(i) === -1) && r.push(t[i]), r), []);
56
56
  }
@@ -100,7 +100,7 @@ const Fr = "fcCheckbox", kr = {
100
100
  },
101
101
  render() {
102
102
  const t = arguments[0];
103
- return t("CheckboxGroup", A([{}, this.formCreateInject.prop, {
103
+ return t("CheckboxGroup", D([{}, this.formCreateInject.prop, {
104
104
  ref: "el"
105
105
  }, {
106
106
  props: {
@@ -111,8 +111,8 @@ const Fr = "fcCheckbox", kr = {
111
111
  input: this.onInput
112
112
  }
113
113
  }]), [this.options().map((e, r) => {
114
- const i = v({}, e);
115
- return delete i.value, t("Checkbox", A([{}, {
114
+ const i = _({}, e);
115
+ return delete i.value, t("Checkbox", D([{}, {
116
116
  props: i
117
117
  }, {
118
118
  key: "" + r + "-" + e.value
@@ -286,7 +286,7 @@ function Ft(t) {
286
286
  readonly: !0,
287
287
  clearable: !1
288
288
  };
289
- return e("Input", A([{}, {
289
+ return e("Input", D([{}, {
290
290
  props: r
291
291
  }, {}, {
292
292
  on: {
@@ -325,7 +325,7 @@ function Ft(t) {
325
325
  },
326
326
  makeHandleIcon(e, r) {
327
327
  const i = this.$createElement;
328
- return i("icon", A([{}, {
328
+ return i("icon", D([{}, {
329
329
  props: {
330
330
  type: this.handleIcon === !0 || this.handleIcon === void 0 ? "ios-eye-outline" : this.handleIcon
331
331
  }
@@ -338,7 +338,7 @@ function Ft(t) {
338
338
  },
339
339
  makeRemoveIcon(e, r) {
340
340
  const i = this.$createElement;
341
- return i("icon", A([{}, {
341
+ return i("icon", D([{}, {
342
342
  props: {
343
343
  type: "ios-trash-outline"
344
344
  }
@@ -351,7 +351,7 @@ function Ft(t) {
351
351
  },
352
352
  makeFiles() {
353
353
  const e = this.$createElement;
354
- return this.makeGroup(this.fileList.map((r, i) => this.makeItem(i, [e("icon", A([{}, {
354
+ return this.makeGroup(this.fileList.map((r, i) => this.makeItem(i, [e("icon", D([{}, {
355
355
  props: {
356
356
  type: t.fileIcon,
357
357
  size: 40
@@ -378,7 +378,7 @@ function Ft(t) {
378
378
  click: () => this.showModel()
379
379
  },
380
380
  key: this.key("btn")
381
- }, [e("icon", A([{}, {
381
+ }, [e("icon", D([{}, {
382
382
  props: {
383
383
  type: this.icon,
384
384
  size: 20
@@ -450,7 +450,7 @@ function Ft(t) {
450
450
  this.$refs.frame && this.frameLoad(this.$refs.frame.contentWindow || {});
451
451
  }), e("div", {
452
452
  class: "_fc-frame"
453
- }, [i, e("Modal", A([{}, {
453
+ }, [i, e("Modal", D([{}, {
454
454
  props: {
455
455
  mask: this.previewMask,
456
456
  title: l,
@@ -468,8 +468,8 @@ function Ft(t) {
468
468
  attrs: {
469
469
  src: this.previewImage
470
470
  }
471
- })]), e("Modal", A([{}, {
472
- props: v({
471
+ })]), e("Modal", D([{}, {
472
+ props: _({
473
473
  width: s,
474
474
  title: a
475
475
  }, this.modal)
@@ -553,7 +553,7 @@ const Rr = "fcRadio", Er = {
553
553
  },
554
554
  render() {
555
555
  const t = arguments[0];
556
- return t("RadioGroup", A([{}, this.formCreateInject.prop, {}, {
556
+ return t("RadioGroup", D([{}, this.formCreateInject.prop, {}, {
557
557
  props: {
558
558
  value: this.trueValue
559
559
  }
@@ -563,8 +563,8 @@ const Rr = "fcRadio", Er = {
563
563
  input: this.onInput
564
564
  }
565
565
  }]), [this.options().map((e, r) => {
566
- const i = v({}, e);
567
- return delete i.value, t("Radio", A([{}, {
566
+ const i = _({}, e);
567
+ return delete i.value, t("Radio", D([{}, {
568
568
  props: i
569
569
  }, {
570
570
  key: "" + r + "-" + e.value
@@ -604,11 +604,11 @@ const Rr = "fcRadio", Er = {
604
604
  return h.type(e, t);
605
605
  };
606
606
  });
607
- function D(t, e) {
607
+ function j(t, e) {
608
608
  return {}.hasOwnProperty.call(t, e);
609
609
  }
610
- const Dr = "fcSelect", jr = {
611
- name: Dr,
610
+ const jr = "fcSelect", Dr = {
611
+ name: jr,
612
612
  functional: !0,
613
613
  props: {
614
614
  formCreateInject: {
@@ -619,7 +619,7 @@ const Dr = "fcSelect", jr = {
619
619
  render(t, e) {
620
620
  const r = (n, o) => {
621
621
  const a = n.slot;
622
- return t("Option", A([{}, {
622
+ return t("Option", D([{}, {
623
623
  props: n
624
624
  }, {
625
625
  key: "" + o + "-" + n.value
@@ -632,9 +632,9 @@ const Dr = "fcSelect", jr = {
632
632
  },
633
633
  key: "" + o + "-" + n.label
634
634
  }, [h.trueArray(n.options) && n.options.map((a, l) => r(a, l))]), s = e.props.formCreateInject.options;
635
- return t("Select", A([{}, e.data, {
635
+ return t("Select", D([{}, e.data, {
636
636
  ref: "el"
637
- }]), [(Array.isArray(s) ? s : []).map((n, o) => D(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
637
+ }]), [(Array.isArray(s) ? s : []).map((n, o) => j(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
638
638
  },
639
639
  mounted() {
640
640
  this.$emit("fc.el", this.$refs.el);
@@ -684,7 +684,7 @@ const Dr = "fcSelect", jr = {
684
684
  },
685
685
  render() {
686
686
  const t = arguments[0], e = {};
687
- return this.type === "selected" ? e["on-select-change"] = this.onInput : e["on-check-change"] = this.onInput, t("Tree", A([{}, this.formCreateInject.prop, {
687
+ return this.type === "selected" ? e["on-select-change"] = this.onInput : e["on-check-change"] = this.onInput, t("Tree", D([{}, this.formCreateInject.prop, {
688
688
  ref: "tree"
689
689
  }, {
690
690
  on: e
@@ -702,7 +702,7 @@ function ut(t) {
702
702
  };
703
703
  }
704
704
  function ft(t) {
705
- return U(v({}, t), {
705
+ return U(_({}, t), {
706
706
  file: t,
707
707
  value: t
708
708
  });
@@ -784,7 +784,7 @@ function St(t) {
784
784
  src: e.url
785
785
  },
786
786
  key: this.key("img" + r)
787
- }) : i("icon", A([{}, {
787
+ }) : i("icon", D([{}, {
788
788
  props: {
789
789
  type: t.fileIcon,
790
790
  size: 40
@@ -819,7 +819,7 @@ function St(t) {
819
819
  },
820
820
  makeProgress(e, r) {
821
821
  const i = this.$createElement;
822
- return i("Progress", A([{}, {
822
+ return i("Progress", D([{}, {
823
823
  props: {
824
824
  percent: e.percentage,
825
825
  hideInfo: !0
@@ -849,7 +849,7 @@ function St(t) {
849
849
  },
850
850
  makeUpload() {
851
851
  const e = this.$createElement, r = !this.maxLength || this.maxLength > this.uploadList.length;
852
- return e("Upload", A([{}, this.formCreateInject.prop, {}, {
852
+ return e("Upload", D([{}, this.formCreateInject.prop, {}, {
853
853
  style: {
854
854
  display: "inline-block"
855
855
  },
@@ -859,7 +859,7 @@ function St(t) {
859
859
  slot: "default"
860
860
  }, [this.$slots.default || e("div", {
861
861
  class: "fc-upload-btn"
862
- }, [e("icon", A([{}, {
862
+ }, [e("icon", D([{}, {
863
863
  props: {
864
864
  type: this.uploadType === "file" ? "ios-cloud-upload-outline" : t.imgUpIcon,
865
865
  size: 20
@@ -878,7 +878,7 @@ function St(t) {
878
878
  const e = arguments[0];
879
879
  return this.$refs.upload && (this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = this.$refs.upload.showUploadList), this.formCreateInject.prop.props.defaultFileList = this.$refs.upload.defaultFileList), e("div", {
880
880
  class: "_fc-upload"
881
- }, [[this.formCreateInject.prop.props.showUploadList ? [] : this.makeFiles(), this.makeUpload()], e("Modal", A([{}, {
881
+ }, [[this.formCreateInject.prop.props.showUploadList ? [] : this.makeFiles(), this.makeUpload()], e("Modal", D([{}, {
882
882
  props: {
883
883
  title: this.modalTitle,
884
884
  footerHide: !0
@@ -916,12 +916,12 @@ Rt.v2 = St({
916
916
  imgUpIcon: "image"
917
917
  });
918
918
  function F(t, e, r) {
919
- $e.set(t, e, r);
919
+ ye.set(t, e, r);
920
920
  }
921
921
  function re(t, e) {
922
- ($e.del || $e.delete)(t, e);
922
+ (ye.del || ye.delete)(t, e);
923
923
  }
924
- function Ce(t, e = {}, r) {
924
+ function we(t, e = {}, r) {
925
925
  let i = !1;
926
926
  for (let s in e)
927
927
  if (Object.prototype.hasOwnProperty.call(e, s)) {
@@ -939,14 +939,14 @@ function Ce(t, e = {}, r) {
939
939
  }
940
940
  else
941
941
  o && F(t, s, {});
942
- t[s] = Ce(t[s], n, r);
942
+ t[s] = we(t[s], n, r);
943
943
  } else
944
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));
945
945
  }
946
946
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
947
947
  }
948
948
  function G(t) {
949
- return Ce({}, { value: t }).value;
949
+ return we({}, { value: t }).value;
950
950
  }
951
951
  const Lr = Object.assign || function(t) {
952
952
  for (let e, r = 1; r < arguments.length; r++)
@@ -958,7 +958,7 @@ function C() {
958
958
  return Lr.apply(this, arguments);
959
959
  }
960
960
  function Je(t) {
961
- return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
961
+ return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : _({}, t);
962
962
  }
963
963
  const Br = "fcGroup", Tr = {
964
964
  name: Br,
@@ -1042,7 +1042,7 @@ const Br = "fcGroup", Tr = {
1042
1042
  const s = i.$f.formData();
1043
1043
  if (t === e)
1044
1044
  i.$f.deferSyncValue(() => {
1045
- Ce(i.rule, t), i.$f.setValue(s);
1045
+ we(i.rule, t), i.$f.setValue(s);
1046
1046
  }, !0);
1047
1047
  else {
1048
1048
  const n = i.$f.formData();
@@ -1082,7 +1082,7 @@ const Br = "fcGroup", Tr = {
1082
1082
  },
1083
1083
  methods: {
1084
1084
  _value(t) {
1085
- return t && D(t, this.field) ? t[this.field] : t;
1085
+ return t && j(t, this.field) ? t[this.field] : t;
1086
1086
  },
1087
1087
  cache(t, e) {
1088
1088
  this.cacheValue[t] = JSON.stringify(e);
@@ -1095,7 +1095,7 @@ const Br = "fcGroup", Tr = {
1095
1095
  if (i.filter((n) => r[n].$f).length !== i.length)
1096
1096
  return;
1097
1097
  const s = i.map((n) => {
1098
- const o = t === n ? e : v({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1098
+ const o = t === n ? e : _({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1099
1099
  return this.cache(n, a), a;
1100
1100
  });
1101
1101
  this.input(s);
@@ -1107,7 +1107,7 @@ const Br = "fcGroup", Tr = {
1107
1107
  }), this.cacheValue[t] !== JSON.stringify(r ? e[r] : e) && (this.cache(t, e), i && i.coverValue(e || {}));
1108
1108
  },
1109
1109
  addRule(t, e) {
1110
- const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? v({}, this.options) : {
1110
+ const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? _({}, this.options) : {
1111
1111
  submitBtn: !1,
1112
1112
  resetBtn: !1
1113
1113
  };
@@ -1235,7 +1235,7 @@ const Br = "fcGroup", Tr = {
1235
1235
  return t("div", {
1236
1236
  class: "_fc-group-container",
1237
1237
  key: o
1238
- }, [t(i, A([{
1238
+ }, [t(i, D([{
1239
1239
  key: o
1240
1240
  }, {
1241
1241
  on: {
@@ -1312,7 +1312,7 @@ const Br = "fcGroup", Tr = {
1312
1312
  submitBtn: !1,
1313
1313
  resetBtn: !1
1314
1314
  };
1315
- t.formData = v({}, this.value || {}), this.cacheRule = {
1315
+ t.formData = _({}, this.value || {}), this.cacheRule = {
1316
1316
  rule: this.rule,
1317
1317
  options: t
1318
1318
  };
@@ -1334,7 +1334,7 @@ const Br = "fcGroup", Tr = {
1334
1334
  rule: e,
1335
1335
  options: r
1336
1336
  } = this.cacheRule, i = this.type;
1337
- return t(i, A([{}, {
1337
+ return t(i, D([{}, {
1338
1338
  on: {
1339
1339
  "update:value": this.formData,
1340
1340
  "emit-event": this.emitEvent,
@@ -1352,7 +1352,7 @@ const Br = "fcGroup", Tr = {
1352
1352
  }, Ur = [
1353
1353
  kr,
1354
1354
  Er,
1355
- jr,
1355
+ Dr,
1356
1356
  Ir,
1357
1357
  Mr,
1358
1358
  kt,
@@ -1365,22 +1365,22 @@ function ne(t, e) {
1365
1365
  r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
1366
1366
  };
1367
1367
  }
1368
- function be(t) {
1368
+ function $e(t) {
1369
1369
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1370
1370
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1371
1371
  }
1372
1372
  function qr(t) {
1373
1373
  return t.replace(t[0], t[0].toLocaleUpperCase());
1374
1374
  }
1375
- const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style", "directives"], jt = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
1376
- const i = [...Et, ...r.normal || []], s = [...Dt, ...r.array || []], n = [...jt, ...r.functional || []], o = r.props || [];
1375
+ const Et = ["attrs", "props", "domProps", "scopedSlots"], jt = ["class", "style", "directives"], Dt = ["on", "nativeOn", "hook"], x = (t, e = {}, r = {}) => {
1376
+ const i = [...Et, ...r.normal || []], s = [...jt, ...r.array || []], n = [...Dt, ...r.functional || []], o = r.props || [];
1377
1377
  return t.reduce((a, l) => {
1378
1378
  for (const u in l)
1379
1379
  if (a[u])
1380
1380
  if (o.indexOf(u) > -1)
1381
- a[u] = Y([l[u]], a[u]);
1381
+ a[u] = x([l[u]], a[u]);
1382
1382
  else if (i.indexOf(u) > -1)
1383
- a[u] = v(v({}, a[u]), l[u]);
1383
+ a[u] = _(_({}, a[u]), l[u]);
1384
1384
  else if (s.indexOf(u) > -1) {
1385
1385
  const f = a[u] instanceof Array ? a[u] : [a[u]], p = l[u] instanceof Array ? l[u] : [l[u]];
1386
1386
  a[u] = [...f, ...p];
@@ -1397,14 +1397,14 @@ const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style"
1397
1397
  else
1398
1398
  a[u] = l[u];
1399
1399
  else
1400
- i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = v({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? v({}, l[u]) : l[u] : a[u] = l[u];
1400
+ i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = _({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? _({}, l[u]) : l[u] : a[u] = l[u];
1401
1401
  return a;
1402
1402
  }, e);
1403
1403
  }, Gr = (t, e) => function() {
1404
1404
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1405
- }, 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"], Ye = ["validate", "children", "control"], xe = ["effect", "deep", "renderSlots"];
1405
+ }, 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"], Qe = ["validate", "children", "control"], Ye = ["effect", "deep", "renderSlots"];
1406
1406
  function It() {
1407
- return [...At, ...Et, ...Dt, ...jt, ...Ye, ...xe];
1407
+ return [...At, ...Et, ...jt, ...Dt, ...Qe, ...Ye];
1408
1408
  }
1409
1409
  function Vt(t, e, r) {
1410
1410
  return `[form-create ${t}]: ${e}`;
@@ -1419,8 +1419,8 @@ function zr(t) {
1419
1419
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1420
1420
  }
1421
1421
  const We = "[[FORM-CREATE-PREFIX-", Ke = "-FORM-CREATE-SUFFIX]]";
1422
- function _e(t, e) {
1423
- return JSON.stringify(Ce(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1422
+ function Ce(t, e) {
1423
+ return JSON.stringify(we(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1424
1424
  if (!(i && i._isVue === !0)) {
1425
1425
  if (typeof i != "function")
1426
1426
  return i;
@@ -1503,10 +1503,10 @@ function Lt(t, e) {
1503
1503
  return Bt([t], e || !1)[0];
1504
1504
  }
1505
1505
  function Bt(t, e) {
1506
- return Ce([], [...t], e || !1);
1506
+ return we([], [...t], e || !1);
1507
1507
  }
1508
- function x(t, e) {
1509
- return Y(Array.isArray(e) ? e : [e], t, { array: Ye, normal: xe }), t;
1508
+ function Q(t, e) {
1509
+ return x(Array.isArray(e) ? e : [e], t, { array: Qe, normal: Ye }), t;
1510
1510
  }
1511
1511
  function ct(t) {
1512
1512
  const e = h.Function(t.getRule) ? t.getRule() : t;
@@ -1514,7 +1514,7 @@ function ct(t) {
1514
1514
  }
1515
1515
  function Wr(t, e) {
1516
1516
  return t ? (Object.keys(e || {}).forEach((r) => {
1517
- e[r] && (t[r] = x(t[r] || {}, e[r]));
1517
+ e[r] && (t[r] = Q(t[r] || {}, e[r]));
1518
1518
  }), t) : e;
1519
1519
  }
1520
1520
  function Tt(t, e) {
@@ -1524,7 +1524,7 @@ function Tt(t, e) {
1524
1524
  }
1525
1525
  }, r), {}));
1526
1526
  }
1527
- function Q(t) {
1527
+ function Z(t) {
1528
1528
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1529
1529
  }
1530
1530
  function O(t, e) {
@@ -1552,7 +1552,7 @@ function Kr(t, e) {
1552
1552
  } else
1553
1553
  return Ze(t, e);
1554
1554
  }
1555
- function ke() {
1555
+ function Se() {
1556
1556
  const t = {}, e = (r) => r || "default";
1557
1557
  return {
1558
1558
  setSlot(r, i) {
@@ -1588,12 +1588,12 @@ function ke() {
1588
1588
  }
1589
1589
  };
1590
1590
  }
1591
- function Se(t, e) {
1591
+ function Re(t, e) {
1592
1592
  return Object.setPrototypeOf(t, e), t;
1593
1593
  }
1594
- const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1594
+ const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, fe = {
1595
1595
  "==": (t, e) => JSON.stringify(t) === JSON.stringify(ht(t, e)),
1596
- "!=": (t, e) => !ce["=="](t, e),
1596
+ "!=": (t, e) => !fe["=="](t, e),
1597
1597
  ">": (t, e) => t > e,
1598
1598
  ">=": (t, e) => t >= e,
1599
1599
  "<": (t, e) => t < e,
@@ -1602,13 +1602,13 @@ const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1602
1602
  return t && t.indexOf && t.indexOf(ht(t[0], e)) > -1;
1603
1603
  },
1604
1604
  notOn(t, e) {
1605
- return !ce.on(t, e);
1605
+ return !fe.on(t, e);
1606
1606
  },
1607
1607
  in(t, e) {
1608
1608
  return e && e.indexOf && e.indexOf(t) > -1;
1609
1609
  },
1610
1610
  notIn(t, e) {
1611
- return !ce.in(t, e);
1611
+ return !fe.in(t, e);
1612
1612
  },
1613
1613
  between(t, e) {
1614
1614
  return t > e[0] && t < e[1];
@@ -1733,20 +1733,20 @@ function Zr(t, e, r) {
1733
1733
  unique: 1,
1734
1734
  renderRule: [...l.value || []],
1735
1735
  updateValue: JSON.stringify(u.value || {})
1736
- }), m = new t(n), y = m.api(), _ = p.value, E = () => {
1736
+ }), g = new t(n), y = g.api(), v = p.value, E = () => {
1737
1737
  if (o) {
1738
1738
  const k = Ee(n, o);
1739
1739
  if (k) {
1740
- let R;
1741
- _ ? (R = H(k.getSubForm()), R.push(y)) : R = y, k.subForm(R);
1740
+ let S;
1741
+ v ? (S = H(k.getSubForm()), S.push(y)) : S = y, k.subForm(S);
1742
1742
  }
1743
1743
  }
1744
- }, ee = () => {
1744
+ }, Y = () => {
1745
1745
  const k = Ee(n, o);
1746
1746
  if (k)
1747
- if (_) {
1748
- const R = H(k.getSubForm()), N = R.indexOf(y);
1749
- N > -1 && R.splice(N, 1);
1747
+ if (v) {
1748
+ const S = H(k.getSubForm()), N = S.indexOf(y);
1749
+ N > -1 && S.splice(N, 1);
1750
1750
  } else
1751
1751
  k.subForm();
1752
1752
  };
@@ -1754,52 +1754,52 @@ function Zr(t, e, r) {
1754
1754
  dr(() => {
1755
1755
  B(() => {
1756
1756
  let k = "";
1757
- const R = s.option && s.option.globalClass || {};
1758
- Object.keys(R).forEach((N) => {
1759
- let pe = "";
1760
- R[N].style && Object.keys(R[N].style).forEach((z) => {
1761
- pe += be(z) + ":" + R[N].style[z] + ";";
1762
- }), R[N].content && (pe += R[N].content + ";"), pe && (k += `.${N}{${pe}}`);
1757
+ const S = s.option && s.option.globalClass || {};
1758
+ Object.keys(S).forEach((N) => {
1759
+ let de = "";
1760
+ S[N].style && Object.keys(S[N].style).forEach((z) => {
1761
+ de += $e(z) + ":" + S[N].style[z] + ";";
1762
+ }), S[N].content && (de += S[N].content + ";"), de && (k += `.${N}{${de}}`);
1763
1763
  }), s.option && s.option.style && (k += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = k || "";
1764
1764
  }, () => {
1765
1765
  });
1766
1766
  });
1767
1767
  const T = ne(() => {
1768
- m.bus.$emit("$loadData.$topForm");
1769
- }, 100), he = ne(function() {
1770
- m.bus.$emit("$loadData.$scopeForm");
1768
+ g.bus.$emit("$loadData.$topForm");
1769
+ }, 100), ce = ne(function() {
1770
+ g.bus.$emit("$loadData.$scopeForm");
1771
1771
  }, 100), Pe = ne(() => {
1772
- m.bus.$emit("$loadData.$form");
1773
- }, 100), de = (k) => {
1774
- m.bus.$emit("change-$form." + k);
1772
+ g.bus.$emit("$loadData.$form");
1773
+ }, 100), he = (k) => {
1774
+ g.bus.$emit("change-$form." + k);
1775
1775
  };
1776
1776
  return pr(() => {
1777
- o && (y.top.bus.$on("$loadData.$form", T), y.top.bus.$on("change", de)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", he), m.mounted();
1777
+ o && (y.top.bus.$on("$loadData.$form", T), y.top.bus.$on("change", he)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", ce), g.mounted();
1778
1778
  }), mr(() => {
1779
- o && (y.top.bus.$off("$loadData.$form", T), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), ee(), d.destroyed = !0, m.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1779
+ o && (y.top.bus.$off("$loadData.$form", T), y.top.bus.$off("change", he)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", ce), Y(), d.destroyed = !0, g.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1780
1780
  }), gr(() => {
1781
- m.updated();
1781
+ g.updated();
1782
1782
  }), B(f, (k) => {
1783
- k ? E() : ee();
1783
+ k ? E() : Y();
1784
1784
  }, { immediate: !0 }), B(() => s.option, () => {
1785
- m.initOptions(), y.refresh();
1786
- }, { deep: !0 }), B(() => [...l.value], (k) => {
1787
- m.$handle.isBreakWatch() || k.length === d.renderRule.length && k.every((R) => d.renderRule.indexOf(R) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1785
+ g.initOptions(), y.refresh();
1786
+ }, { deep: !0, flush: "sync" }), B(() => [...l.value], (k) => {
1787
+ g.$handle.isBreakWatch() || k.length === d.renderRule.length && k.every((S) => d.renderRule.indexOf(S) > -1) || (g.$handle.updateAppendData(), g.$handle.reloadRule(l.value), n.renderRule());
1788
1788
  }), B(() => [s.disabled, s.preview], () => {
1789
1789
  y.refresh();
1790
1790
  }), B(u, (k) => {
1791
- _e(k || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(k || {}) : y.setValue(k || {}));
1791
+ Ce(k || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(k || {}) : y.setValue(k || {}));
1792
1792
  }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1793
- y.coverValue({}), m.$handle.updateAppendData(), V(() => {
1793
+ y.coverValue({}), g.$handle.updateAppendData(), V(() => {
1794
1794
  V(() => {
1795
1795
  y.clearValidateState();
1796
1796
  });
1797
1797
  });
1798
- }, { flush: "sync" }), U(v({
1799
- fc: ge(m),
1800
- parent: o && ge(o),
1801
- top: ge(a),
1802
- fapi: ge(y)
1798
+ }, { flush: "sync" }), U(_({
1799
+ fc: me(g),
1800
+ parent: o && me(o),
1801
+ top: me(a),
1802
+ fapi: me(y)
1803
1803
  }, lt(d)), {
1804
1804
  getGroupInject: () => Ee(n, o),
1805
1805
  refresh() {
@@ -1810,9 +1810,9 @@ function Zr(t, e, r) {
1810
1810
  },
1811
1811
  updateValue(k) {
1812
1812
  if (d.destroyed) return;
1813
- const R = _e(k);
1814
- d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", k), V(() => {
1815
- Pe(), o ? f.value || he() : (T(), he());
1813
+ const S = Ce(k);
1814
+ d.updateValue !== S && (d.updateValue = S, n.$emit("update:value", k), V(() => {
1815
+ Pe(), o ? f.value || ce() : (T(), ce());
1816
1816
  }));
1817
1817
  }
1818
1818
  });
@@ -1858,13 +1858,13 @@ C(tt.prototype, {
1858
1858
  function Ut(t) {
1859
1859
  t.forEach((e) => {
1860
1860
  tt.prototype[e] = function(r) {
1861
- return x(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1861
+ return Q(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1862
1862
  };
1863
1863
  });
1864
1864
  }
1865
1865
  Ut(It());
1866
1866
  const qt = P("");
1867
- function Qr(t, e, r) {
1867
+ function xr(t, e, r) {
1868
1868
  let i = qt("", e);
1869
1869
  return i._data.type = t, i._data.title = r, i;
1870
1870
  }
@@ -1872,15 +1872,15 @@ function pt(t, e, r, i) {
1872
1872
  let s = qt("", r);
1873
1873
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1874
1874
  }
1875
- function Yr() {
1875
+ function Qr() {
1876
1876
  return {
1877
- create: Qr,
1877
+ create: xr,
1878
1878
  createTmp: pt,
1879
1879
  template: pt,
1880
1880
  factory: P
1881
1881
  };
1882
1882
  }
1883
- function xr(t, e, r) {
1883
+ function Yr(t, e, r) {
1884
1884
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1885
1885
  return s.status = r.status, s.url = t, s;
1886
1886
  }
@@ -1909,7 +1909,7 @@ function Gt(t) {
1909
1909
  t.onError(o);
1910
1910
  }, e.onload = function() {
1911
1911
  if (e.status < 200 || e.status >= 300)
1912
- return t.onError(xr(r, t, e), mt(e));
1912
+ return t.onError(Yr(r, t, e), mt(e));
1913
1913
  t.onSuccess(mt(e));
1914
1914
  }, e.open(t.method || "get", r, !0);
1915
1915
  let i;
@@ -1923,7 +1923,7 @@ function Gt(t) {
1923
1923
  }
1924
1924
  function gt(t, e, r) {
1925
1925
  return new Promise((i, s) => {
1926
- (e || Gt)(U(v({}, t), {
1926
+ (e || Gt)(U(_({}, t), {
1927
1927
  onSuccess(n) {
1928
1928
  let o = (l) => l;
1929
1929
  const a = W(t.parse);
@@ -1943,7 +1943,7 @@ function ei(t) {
1943
1943
  return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1944
1944
  }
1945
1945
  function r(n, o, a) {
1946
- h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1946
+ h.Undef(n) ? n = Object.keys(_(_({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1947
1947
  const u = t.fieldCtx[l] || t.nameCtx[l];
1948
1948
  u && u.forEach((f) => {
1949
1949
  F(f.rule, o, a), t.$render.clearCache(f);
@@ -2016,7 +2016,7 @@ function ei(t) {
2016
2016
  }
2017
2017
  },
2018
2018
  get formulas() {
2019
- return v({}, t.fc.formulas);
2019
+ return _({}, t.fc.formulas);
2020
2020
  },
2021
2021
  formData(n) {
2022
2022
  if (n == null || typeof n == "boolean") {
@@ -2029,15 +2029,15 @@ function ei(t) {
2029
2029
  },
2030
2030
  getValue(n) {
2031
2031
  const o = t.getFieldCtx(n);
2032
- return o ? ve(o.rule.value) : t.options.appendValue !== !1 && D(t.appendData, n) ? ve(t.appendData[n]) : void 0;
2032
+ return o ? ve(o.rule.value) : t.options.appendValue !== !1 && j(t.appendData, n) ? ve(t.appendData[n]) : void 0;
2033
2033
  },
2034
2034
  coverValue(n) {
2035
- const o = v({}, n || {});
2035
+ const o = _({}, n || {});
2036
2036
  t.deferSyncValue(() => {
2037
2037
  t.appendData = {}, s.fields().forEach((a) => {
2038
2038
  const l = t.fieldCtx[a];
2039
2039
  if (l) {
2040
- const u = D(n, a);
2040
+ const u = j(n, a);
2041
2041
  l.forEach((f) => {
2042
2042
  F(f.rule, "value", u ? n[a] : void 0);
2043
2043
  }), delete o[a];
@@ -2066,7 +2066,7 @@ function ei(t) {
2066
2066
  }, !0), o ? o.origin : void 0;
2067
2067
  },
2068
2068
  removeRule(n) {
2069
- const o = n && Q(n);
2069
+ const o = n && Z(n);
2070
2070
  if (o)
2071
2071
  return o.rm(), o.origin;
2072
2072
  },
@@ -2155,7 +2155,7 @@ function ei(t) {
2155
2155
  n.forEach((a) => s.sync(a));
2156
2156
  return;
2157
2157
  }
2158
- let o = h.Object(n) ? Q(n) : t.getCtxs(n);
2158
+ let o = h.Object(n) ? Z(n) : t.getCtxs(n);
2159
2159
  o && (o = Array.isArray(o) ? o : [o], o.forEach((a) => {
2160
2160
  if (!a.deleted) {
2161
2161
  const l = t.subForm[a.id];
@@ -2192,7 +2192,7 @@ function ei(t) {
2192
2192
  },
2193
2193
  mergeRule: (n, o) => {
2194
2194
  t.getCtxs(n).forEach((a) => {
2195
- x(a.rule, o);
2195
+ Q(a.rule, o);
2196
2196
  });
2197
2197
  },
2198
2198
  mergeRules(n) {
@@ -2205,6 +2205,20 @@ function ei(t) {
2205
2205
  if (a)
2206
2206
  return o ? a.origin : a.rule;
2207
2207
  },
2208
+ findType(n, o) {
2209
+ let a;
2210
+ return Object.keys(t.ctxs).forEach((l) => {
2211
+ const u = t.ctxs[l];
2212
+ u.rule.type === n && (a = o ? u.origin : u.rule);
2213
+ }), a;
2214
+ },
2215
+ findTypes(n, o) {
2216
+ let a = [];
2217
+ return Object.keys(t.ctxs).forEach((l) => {
2218
+ const u = t.ctxs[l];
2219
+ u.rule.type === n && a.push(o ? u.origin : u.rule);
2220
+ }), a;
2221
+ },
2208
2222
  getRenderRule: (n) => {
2209
2223
  const o = t.getCtx(n);
2210
2224
  if (o)
@@ -2219,7 +2233,7 @@ function ei(t) {
2219
2233
  },
2220
2234
  setEffect(n, o, a) {
2221
2235
  const l = t.getCtx(n);
2222
- l && o && (o[0] === "$" && (o = o.substr(1)), D(l.rule, "$" + o) && F(l.rule, "$" + o, a), D(l.rule, "effect") || F(l.rule, "effect", {}), F(l.rule.effect, o, a));
2236
+ l && o && (o[0] === "$" && (o = o.substr(1)), j(l.rule, "$" + o) && F(l.rule, "$" + o, a), j(l.rule, "effect") || F(l.rule, "effect", {}), F(l.rule.effect, o, a));
2223
2237
  },
2224
2238
  clearEffectData(n, o) {
2225
2239
  const a = t.getCtx(n);
@@ -2259,7 +2273,7 @@ function ei(t) {
2259
2273
  return O(() => s.method(n, o)(...a));
2260
2274
  },
2261
2275
  toJson(n) {
2262
- return _e(s.rule, n);
2276
+ return Ce(s.rule, n);
2263
2277
  },
2264
2278
  trigger(n, o, ...a) {
2265
2279
  const l = s.el(n);
@@ -2278,7 +2292,7 @@ function ei(t) {
2278
2292
  return o ? t.subForm[o.id] : void 0;
2279
2293
  },
2280
2294
  getChildrenRuleList(n) {
2281
- const o = typeof n == "object", a = o ? Q(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2295
+ const o = typeof n == "object", a = o ? Z(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2282
2296
  if (!l)
2283
2297
  return [];
2284
2298
  const u = [];
@@ -2289,10 +2303,10 @@ function ei(t) {
2289
2303
  })(a ? a.loadChildrenPending() : l.children), u;
2290
2304
  },
2291
2305
  getParentRule(n) {
2292
- return (typeof n == "object" ? Q(n) : t.getCtx(n)).parent.rule;
2306
+ return (typeof n == "object" ? Z(n) : t.getCtx(n)).parent.rule;
2293
2307
  },
2294
2308
  getParentSubRule(n) {
2295
- const a = typeof n == "object" ? Q(n) : t.getCtx(n);
2309
+ const a = typeof n == "object" ? Z(n) : t.getCtx(n);
2296
2310
  if (a) {
2297
2311
  const l = a.getParentGroup();
2298
2312
  if (l)
@@ -2306,7 +2320,7 @@ function ei(t) {
2306
2320
  const l = s.getChildrenRuleList(n);
2307
2321
  t.deferSyncValue(() => {
2308
2322
  l.forEach((u) => {
2309
- D(o, u.field) ? F(u, "value", o[u.field]) : a && F(u, "value", void 0);
2323
+ j(o, u.field) ? F(u, "value", o[u.field]) : a && F(u, "value", void 0);
2310
2324
  });
2311
2325
  });
2312
2326
  },
@@ -2330,11 +2344,11 @@ function ei(t) {
2330
2344
  s.setData("$var." + n, o);
2331
2345
  },
2332
2346
  renderRule(n, o, a) {
2333
- const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2347
+ const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2334
2348
  return u ? t.$render.createRuleVnode(u, o, a) : void 0;
2335
2349
  },
2336
2350
  renderChildren(n, o, a) {
2337
- const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2351
+ const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2338
2352
  return u ? t.$render.createChildrenVnodes(u, o, a) : void 0;
2339
2353
  },
2340
2354
  nextTick(n) {
@@ -2350,6 +2364,10 @@ function ei(t) {
2350
2364
  t.deferSyncValue(n, o);
2351
2365
  },
2352
2366
  bus: t.bus,
2367
+ getCurrentFormRule() {
2368
+ var n;
2369
+ return (n = t.vm.getGroupInject()) == null ? void 0 : n.rule;
2370
+ },
2353
2371
  fetch(n) {
2354
2372
  return new Promise((o, a) => {
2355
2373
  n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => gt(n, t.fc.create.fetch, s).then((l) => {
@@ -2447,7 +2465,7 @@ function ri(t) {
2447
2465
  const r = (i) => {
2448
2466
  if (i) {
2449
2467
  let s;
2450
- return e.rule.field && (s = i.$scopedSlots["field-" + be(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + be(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2468
+ return e.rule.field && (s = i.$scopedSlots["field-" + $e(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + $e(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2451
2469
  }
2452
2470
  };
2453
2471
  return r(this.vm);
@@ -2456,7 +2474,7 @@ function ri(t) {
2456
2474
  if (!this.vm.isShow)
2457
2475
  return;
2458
2476
  this.$manager.beforeRender();
2459
- const e = ke();
2477
+ const e = Se();
2460
2478
  return this.sort.forEach((r) => {
2461
2479
  this.renderSlot(e, this.$handle.ctxs[r]);
2462
2480
  }), this.$manager.render(e);
@@ -2467,10 +2485,10 @@ function ri(t) {
2467
2485
  })) : e.setSlot(r.rule.slot, this.renderCtx(r, i));
2468
2486
  },
2469
2487
  mergeGlobal(e) {
2470
- this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ye(() => {
2488
+ this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ge(() => {
2471
2489
  const i = this.$handle.options.global;
2472
- return x({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2473
- })), e.prop = x({}, [this.cacheConfig[e.trueType].value, e.prop]));
2490
+ return Q({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2491
+ })), e.prop = Q({}, [this.cacheConfig[e.trueType].value, e.prop]));
2474
2492
  },
2475
2493
  setOptions(e) {
2476
2494
  const r = e.loadPending({ key: "options", origin: e.prop.options, def: [] });
@@ -2483,7 +2501,7 @@ function ri(t) {
2483
2501
  });
2484
2502
  },
2485
2503
  parseSide(e, r) {
2486
- return h.Object(e) ? x({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2504
+ return h.Object(e) ? Q({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2487
2505
  },
2488
2506
  renderSides(e, r, i) {
2489
2507
  const s = r[i ? "rule" : "prop"];
@@ -2527,13 +2545,13 @@ function ri(t) {
2527
2545
  }, (() => {
2528
2546
  if (h.Function(n.renderSlots[y]))
2529
2547
  return O(() => n.renderSlots[y]());
2530
- const _ = this.parseSide(n.renderSlots[y], e);
2531
- return this.renderRule(_);
2548
+ const v = this.parseSide(n.renderSlots[y], e);
2549
+ return this.renderRule(v);
2532
2550
  })()));
2533
2551
  });
2534
2552
  const d = this.getTypeSlot(e);
2535
- let m;
2536
- return d ? (u.children = f, m = d(u)) : m = a ? e.parser.preview(Je(f), e) : e.parser.render(Je(f), e), m = this.renderSides(m, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((y) => !y || !y.tag ? y : this.none(y)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2553
+ let g;
2554
+ return d ? (u.children = f, g = d(u)) : g = a ? e.parser.preview(Je(f), e) : e.parser.render(Je(f), e), g = this.renderSides(g, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), g = this.$manager.makeWrap(e, g)), e.none && (Array.isArray(g) ? g = g.map((y) => !y || !y.tag ? y : this.none(y)) : g = this.none(g)), o && this.setCache(e, () => this.stable(g), r), g;
2537
2555
  }, this.setCache(e, s, r);
2538
2556
  }
2539
2557
  return (...s) => {
@@ -2601,8 +2619,8 @@ function ri(t) {
2601
2619
  preview: e.prop.preview,
2602
2620
  options: e.prop.options,
2603
2621
  prop: function() {
2604
- const s = v({}, e.prop);
2605
- return s.on = s.on ? v({}, s.on) : {}, delete s.model, s;
2622
+ const s = _({}, e.prop);
2623
+ return s.on = s.on ? _({}, s.on) : {}, delete s.model, s;
2606
2624
  }(),
2607
2625
  children: e.loadChildrenPending()
2608
2626
  }), i;
@@ -2610,12 +2628,12 @@ function ri(t) {
2610
2628
  ctxProp(e) {
2611
2629
  const { ref: r, key: i, rule: s } = e;
2612
2630
  this.$manager.mergeProp(e), e.parser.mergeProp(e);
2613
- const n = v({}, e.prop.on || {}), o = {};
2631
+ const n = _({}, e.prop.on || {}), o = {};
2614
2632
  Object.keys(n).forEach((l) => {
2615
2633
  if (l.indexOf("native.") === 0)
2616
2634
  o[l.replace("native.", "")] = n[l], delete n[l];
2617
2635
  else if (this.$handle.options.transformEventName !== !1) {
2618
- const u = be(l);
2636
+ const u = $e(l);
2619
2637
  u !== l.toLowerCase() && !n[u] && (n[u] = n[l]);
2620
2638
  }
2621
2639
  }), e.prop.on = n;
@@ -2654,7 +2672,7 @@ function ri(t) {
2654
2672
  }
2655
2673
  });
2656
2674
  }
2657
- return Y(a, e.prop), e.prop;
2675
+ return x(a, e.prop), e.prop;
2658
2676
  },
2659
2677
  onMounted(e) {
2660
2678
  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");
@@ -2671,7 +2689,7 @@ function ri(t) {
2671
2689
  },
2672
2690
  renderChildren(e, r, i) {
2673
2691
  if (!h.trueArray(e)) return [];
2674
- const s = ke();
2692
+ const s = Se();
2675
2693
  return e.map((n) => {
2676
2694
  if (n) {
2677
2695
  if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
@@ -2697,7 +2715,7 @@ function ri(t) {
2697
2715
  },
2698
2716
  createRuleVnode(e, r, i) {
2699
2717
  this.force = i !== !1, this.tmpInput = r;
2700
- const s = ke();
2718
+ const s = Se();
2701
2719
  return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
2702
2720
  },
2703
2721
  renderRule(e, r, i) {
@@ -2712,11 +2730,11 @@ function ri(t) {
2712
2730
  a && (s = q(a));
2713
2731
  }
2714
2732
  if (!s) return;
2715
- const n = ke();
2733
+ const n = Se();
2716
2734
  h.trueArray(e.children) && e.children.forEach((a) => {
2717
2735
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2718
2736
  });
2719
- const o = v({}, e);
2737
+ const o = _({}, e);
2720
2738
  return delete o.type, delete o.is, this.vNode.make(s, o, n.mergeBag(r).getSlots());
2721
2739
  }
2722
2740
  });
@@ -2728,7 +2746,7 @@ function rt(t) {
2728
2746
  fc: t.fc,
2729
2747
  vm: t.vm,
2730
2748
  $manager: t.$manager,
2731
- vNode: new t.fc.CreateNode(t.vm),
2749
+ vNode: new t.fc.CreateNode(t),
2732
2750
  force: !1,
2733
2751
  tmpInput: null,
2734
2752
  id: ii++
@@ -2773,14 +2791,14 @@ function ni(t) {
2773
2791
  let p, d = n || o || a;
2774
2792
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2775
2793
  r || (d = `native-${d}`);
2776
- const m = be(`${d}-${f}`), y = (..._) => {
2777
- this.vm.$emit(m, ..._), this.vm.$emit("emit-event", m, ..._), this.bus.$emit(m, ..._);
2794
+ const g = $e(`${d}-${f}`), y = (...v) => {
2795
+ this.vm.$emit(g, ...v), this.vm.$emit("emit-event", g, ...v), this.bus.$emit(g, ...v);
2778
2796
  };
2779
2797
  if (y.__emit = !0, !p && l === !1)
2780
2798
  i[f] = y;
2781
2799
  else {
2782
- let _ = p || l || this.options.injectEvent;
2783
- i[f] = h.Undef(_) ? y : this.inject(s, y, _);
2800
+ let v = p || l || this.options.injectEvent;
2801
+ i[f] = h.Undef(v) ? y : this.inject(s, y, v);
2784
2802
  }
2785
2803
  }
2786
2804
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2814,7 +2832,7 @@ function ni(t) {
2814
2832
  let f = !1, p;
2815
2833
  if (i && u.indexOf("$form.") === 0) {
2816
2834
  const d = u.split(".");
2817
- d.shift(), D(i.value, d[0]) && (f = !0, p = r ? r({
2835
+ d.shift(), j(i.value, d[0]) && (f = !0, p = r ? r({
2818
2836
  id: "$form." + d[0] + "_" + i.rule.__fc__.id,
2819
2837
  getValue: () => L(i.value, d)
2820
2838
  }) : L(i.value, d));
@@ -2826,16 +2844,16 @@ function ni(t) {
2826
2844
  d.key ? f.push(d.key) : d.children && f.push(a(d.children));
2827
2845
  });
2828
2846
  let p = !1;
2829
- return f.forEach((d, m) => {
2830
- d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[m] = d.slice(1, -1), p = !0);
2847
+ return f.forEach((d, g) => {
2848
+ d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[g] = d.slice(1, -1), p = !0);
2831
2849
  }), f.length === 1 && (p || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2832
2850
  };
2833
2851
  let l;
2834
2852
  if (n.forEach((u) => {
2835
2853
  const f = u.split("||"), p = f[0].trim();
2836
2854
  if (p) {
2837
- const d = (f[1] || "").trim(), m = Nt(p);
2838
- let y = O(() => a(m));
2855
+ const d = (f[1] || "").trim(), g = Nt(p);
2856
+ let y = O(() => a(g));
2839
2857
  (y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2840
2858
  }
2841
2859
  }), n.length === 1 && s === `{{${n[0]}}}`)
@@ -2899,9 +2917,9 @@ function ai(t) {
2899
2917
  }
2900
2918
  function li(t) {
2901
2919
  Object.defineProperties(t.origin, {
2902
- __fc__: Xe(ge(t), !0)
2920
+ __fc__: Xe(me(t), !0)
2903
2921
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2904
- __fc__: Xe(ge(t), !0)
2922
+ __fc__: Xe(me(t), !0)
2905
2923
  });
2906
2924
  }
2907
2925
  function zt(t, e, r) {
@@ -2923,7 +2941,7 @@ function zt(t, e, r) {
2923
2941
  parent: null,
2924
2942
  group: e.subRule ? this : null,
2925
2943
  cacheConfig: null,
2926
- prop: v({}, e),
2944
+ prop: _({}, e),
2927
2945
  computed: {},
2928
2946
  payload: {},
2929
2947
  refRule: {},
@@ -3014,8 +3032,8 @@ C(zt.prototype, {
3014
3032
  },
3015
3033
  initProp() {
3016
3034
  var e, r;
3017
- const t = v({}, this.rule);
3018
- delete t.children, delete t.validate, this.prop = x({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
3035
+ const t = _({}, this.rule);
3036
+ delete t.children, delete t.validate, this.prop = Q({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
3019
3037
  },
3020
3038
  initNone() {
3021
3039
  this.none = !(h.Undef(this.prop.display) || this.prop.display);
@@ -3112,7 +3130,7 @@ function ui(t) {
3112
3130
  },
3113
3131
  syncProp(e) {
3114
3132
  const r = e.rule;
3115
- h.trueArray(r.sync) && Y([{
3133
+ h.trueArray(r.sync) && x([{
3116
3134
  on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
3117
3135
  r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
3118
3136
  }, i), {})
@@ -3146,23 +3164,23 @@ function ui(t) {
3146
3164
  let l = ct(o);
3147
3165
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3148
3166
  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);
3149
- let f, p = !1, d = !!o.__fc__, m = l.value;
3167
+ let f, p = !1, d = !!o.__fc__, g = l.value;
3150
3168
  if (d) {
3151
- if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3169
+ if (f = o.__fc__, g = f.defaultValue, f.deleted) {
3152
3170
  if ($t(f))
3153
3171
  return;
3154
3172
  f.update(this);
3155
3173
  } else if (!f.check(this)) {
3156
3174
  if ($t(f))
3157
3175
  return;
3158
- e[a] = o = o._clone ? o._clone() : Pt(_e(o)), f = null, p = !0;
3176
+ e[a] = o = o._clone ? o._clone() : Pt(Ce(o)), f = null, p = !0;
3159
3177
  }
3160
3178
  }
3161
3179
  if (f)
3162
3180
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3163
3181
  else {
3164
3182
  const E = this.parseRule(o);
3165
- f = new zt(this, E, m), this.bindParser(f);
3183
+ f = new zt(this, E, g), this.bindParser(f);
3166
3184
  }
3167
3185
  [!1, !0].forEach((E) => this.parseEmit(f, E)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !p && !d && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3168
3186
  const y = f.loadChildrenPending();
@@ -3170,9 +3188,9 @@ function ui(t) {
3170
3188
  const E = i(a);
3171
3189
  E > -1 || !a ? this.sort.splice(E + 1, 0, f.id) : this.sort.push(f.id);
3172
3190
  }
3173
- const _ = f.rule;
3174
- return f.updated || (f.updated = !0, h.Function(_.update) && this.bus.$once("load-end", () => {
3175
- this.refreshUpdate(f, _.value, "init");
3191
+ const v = f.rule;
3192
+ return f.updated || (f.updated = !0, h.Function(v.update) && this.bus.$once("load-end", () => {
3193
+ this.refreshUpdate(f, v.value, "init");
3176
3194
  }), this.effect(f, "loaded")), this.refreshControl(f) && (this.cycleLoad = !0), f;
3177
3195
  }).filter((o) => !!o);
3178
3196
  r && (r.children = n);
@@ -3185,10 +3203,10 @@ function ui(t) {
3185
3203
  if (!r.length) return !1;
3186
3204
  for (let a = 0; a < r.length; a++) {
3187
3205
  const l = r[a], u = l.handle || function(p) {
3188
- return (ce[l.condition || "=="] || ce["=="])(p, l.value);
3206
+ return (fe[l.condition || "=="] || fe["=="])(p, l.value);
3189
3207
  };
3190
3208
  if (!h.trueArray(l.rule)) continue;
3191
- const f = U(v({}, l), {
3209
+ const f = U(_({}, l), {
3192
3210
  valid: O(() => u(e.rule.value, s)),
3193
3211
  ctrl: hi(e, l.rule),
3194
3212
  isHidden: h.String(l.rule[0])
@@ -3199,34 +3217,34 @@ function ui(t) {
3199
3217
  const n = [];
3200
3218
  let o = !1;
3201
3219
  return this.deferSyncValue(() => {
3202
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: m, method: y }) => {
3220
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: g, method: y }) => {
3203
3221
  if (a) {
3204
3222
  l ? e.ctrlRule.push({
3205
3223
  __ctrl: !0,
3206
3224
  children: u,
3207
3225
  valid: l
3208
- }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3209
- y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((_) => {
3210
- this.api.setEffect(_, "required", l);
3226
+ }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3227
+ y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((v) => {
3228
+ this.api.setEffect(v, "required", l);
3211
3229
  }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3212
3230
  });
3213
3231
  return;
3214
3232
  }
3215
3233
  if (l) {
3216
3234
  o = !0;
3217
- const _ = {
3235
+ const v = {
3218
3236
  type: "fragment",
3219
3237
  native: !0,
3220
3238
  __ctrl: !0,
3221
3239
  children: u
3222
3240
  };
3223
- e.ctrlRule.push(_), this.bus.$once("load-start", () => {
3224
- f ? s.prepend(_, f, d) : p || d ? s.append(_, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3241
+ e.ctrlRule.push(v), this.bus.$once("load-start", () => {
3242
+ f ? s.prepend(v, f, d) : p || d ? s.append(v, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, v);
3225
3243
  });
3226
3244
  } else {
3227
- e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3228
- const _ = Q(m);
3229
- _ && _.rm();
3245
+ e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3246
+ const v = Z(g);
3247
+ v && v.rm();
3230
3248
  }
3231
3249
  });
3232
3250
  }), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
@@ -3240,7 +3258,7 @@ function ui(t) {
3240
3258
  },
3241
3259
  _reloadRule(e) {
3242
3260
  e || (e = this.rules);
3243
- const r = v({}, this.ctxs);
3261
+ const r = _({}, this.ctxs);
3244
3262
  this.clearNextTick(), this.initData(e), this.fc.rules = e, this.deferSyncValue(() => {
3245
3263
  this.bus.$once("load-end", () => {
3246
3264
  Object.keys(r).filter((i) => this.ctxs[i] === void 0).forEach((i) => this.rmCtx(r[i])), this.$render.clearCacheAll();
@@ -3256,7 +3274,7 @@ function ui(t) {
3256
3274
  function fi(t) {
3257
3275
  const e = Mt();
3258
3276
  return Object.keys(e).forEach((r) => {
3259
- D(t, r) || F(t, r, e[r]);
3277
+ j(t, r) || F(t, r, e[r]);
3260
3278
  }), t;
3261
3279
  }
3262
3280
  function ci(t) {
@@ -3296,7 +3314,7 @@ function di(t) {
3296
3314
  this.deferSyncValue(() => {
3297
3315
  const i = e.getParentGroup(), s = i ? this.subRuleData[i.id] : null, n = {};
3298
3316
  Object.keys(r || {}).forEach((o) => {
3299
- s && D(s, o) ? n[o] = r[o] : D(this.api.form, o) ? this.api.form[o] = r[o] : this.api.top !== this.api && D(this.api.top.form, o) && (this.api.top.form[o] = r[o]);
3317
+ s && j(s, o) ? n[o] = r[o] : j(this.api.form, o) ? this.api.form[o] = r[o] : this.api.top !== this.api && j(this.api.top.form, o) && (this.api.top.form[o] = r[o]);
3300
3318
  }), Object.keys(n).length && this.api.setChildrenFormData(i.rule, n);
3301
3319
  });
3302
3320
  },
@@ -3317,16 +3335,16 @@ function di(t) {
3317
3335
  },
3318
3336
  syncForm() {
3319
3337
  const e = {}, r = this.fields(), i = [];
3320
- this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = je(this.appendData, n)), s), e), r.reduce((s, n) => {
3338
+ this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = De(this.appendData, n)), s), e), r.reduce((s, n) => {
3321
3339
  let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
3322
- return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = je(o.rule, "value"), s;
3340
+ return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = De(o.rule, "value"), s;
3323
3341
  }, e), this.form = ie(e), this.ignoreFields = i, this.syncValue();
3324
3342
  },
3325
3343
  isIgnore(e) {
3326
3344
  return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
3327
3345
  },
3328
3346
  appendValue(e) {
3329
- (!e.field || !D(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
3347
+ (!e.field || !j(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
3330
3348
  },
3331
3349
  addSubForm(e, r) {
3332
3350
  this.subForm[e.id] = r;
@@ -3379,7 +3397,7 @@ function di(t) {
3379
3397
  function bt(t, e) {
3380
3398
  return typeof e == "function" ? "" + e : e;
3381
3399
  }
3382
- const De = {
3400
+ const je = {
3383
3401
  init(t) {
3384
3402
  },
3385
3403
  toFormValue(t, e) {
@@ -3398,7 +3416,7 @@ const De = {
3398
3416
  },
3399
3417
  mergeProp(t) {
3400
3418
  }
3401
- }, pi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Re = Symbol("oldValue");
3419
+ }, pi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], _e = Symbol("oldValue");
3402
3420
  function mi(t) {
3403
3421
  C(t.prototype, {
3404
3422
  getCtx(e) {
@@ -3434,7 +3452,7 @@ function mi(t) {
3434
3452
  if (n)
3435
3453
  return n;
3436
3454
  }
3437
- return r[e.originType] || r[q(e.type)] || r[e.trueType] || De;
3455
+ return r[e.originType] || r[q(e.type)] || r[e.trueType] || je;
3438
3456
  },
3439
3457
  bindParser(e) {
3440
3458
  e.setParser(this.getParser(e));
@@ -3448,7 +3466,7 @@ function mi(t) {
3448
3466
  },
3449
3467
  watchCtx(e) {
3450
3468
  if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && pi.indexOf(i) === -1).forEach((i) => {
3451
- const s = je(e.rule, i), n = i === "children";
3469
+ const s = De(e.rule, i), n = i === "children";
3452
3470
  e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3453
3471
  let l = s.value;
3454
3472
  if (!this.isBreakWatch()) {
@@ -3469,28 +3487,28 @@ function mi(t) {
3469
3487
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3470
3488
  }
3471
3489
  }, { deep: !n, sync: n }));
3472
- }), e.refRule.__$title = ye(() => {
3490
+ }), e.refRule.__$title = ge(() => {
3473
3491
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3474
3492
  if (i) {
3475
3493
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3476
3494
  s && (i = this.api.t(s[1]));
3477
3495
  }
3478
3496
  return i;
3479
- }), e.refRule.__$info = ye(() => {
3497
+ }), e.refRule.__$info = ge(() => {
3480
3498
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3481
3499
  if (i) {
3482
3500
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3483
3501
  s && (i = this.api.t(s[1]));
3484
3502
  }
3485
3503
  return i;
3486
- }), e.refRule.__$validate = ye(() => {
3504
+ }), e.refRule.__$validate = ge(() => {
3487
3505
  const i = (s) => {
3488
3506
  var o, a;
3489
3507
  const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3490
3508
  return n ? this.api.t(n[1], { title: (a = (o = e.refRule) == null ? void 0 : o.__$title) == null ? void 0 : a.value }) : s;
3491
3509
  };
3492
3510
  return H(e.rule.validate).map((s) => {
3493
- const n = v({}, s);
3511
+ const n = _({}, s);
3494
3512
  if (n.message && (n.message = i(n.message)), h.Function(n.validator)) {
3495
3513
  const o = e;
3496
3514
  n.validator = function(...a) {
@@ -3505,7 +3523,7 @@ function mi(t) {
3505
3523
  }
3506
3524
  if (n.adapter) {
3507
3525
  if (typeof n.error == "object") {
3508
- const o = v({}, n.error);
3526
+ const o = _({}, n.error);
3509
3527
  Object.keys(o).forEach((a) => {
3510
3528
  o[a] = i(o[a]);
3511
3529
  }), n.error = o;
@@ -3515,7 +3533,7 @@ function mi(t) {
3515
3533
  return n;
3516
3534
  });
3517
3535
  }), e.input) {
3518
- const i = je(e.rule, "value");
3536
+ const i = De(e.rule, "value");
3519
3537
  e.watch.push(B(() => i.value, () => {
3520
3538
  let s = e.parser.toFormValue(i.value, e);
3521
3539
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3524,16 +3542,16 @@ function mi(t) {
3524
3542
  this.bus.$once("load-end", () => {
3525
3543
  let i = e.rule.computed;
3526
3544
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3527
- const n = ye(() => {
3545
+ const n = ge(() => {
3528
3546
  const a = i[s];
3529
3547
  if (!a) return;
3530
3548
  const l = this.compute(e, a);
3531
- return a.linkage && l === Re ? Re : l;
3549
+ return (a.linkage || a.linkageVariable) && l === _e ? _e : l;
3532
3550
  }), o = (a) => {
3533
3551
  s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : se(e.rule, s, a);
3534
3552
  };
3535
3553
  (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : n.value !== L(e.rule, s)) && o(n.value), e.watch.push(B(n, (a, l) => {
3536
- a === Re || a === l || setTimeout(() => {
3554
+ a === _e || a === l || setTimeout(() => {
3537
3555
  o(a);
3538
3556
  });
3539
3557
  }, { deep: !0 }));
@@ -3663,22 +3681,22 @@ function mi(t) {
3663
3681
  let u = !0;
3664
3682
  for (let f = 0; f < a.group.length; f++) {
3665
3683
  const p = a.group[f];
3666
- let d, m = null;
3684
+ let d, g = null;
3667
3685
  if (p.variable)
3668
- m = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3686
+ g = JSON.stringify(this.fc.getLoadData(p.variable)) || "";
3669
3687
  else if (p.field)
3670
- m = dt(p.field || "");
3688
+ g = dt(p.field || "");
3671
3689
  else if (!p.mode)
3672
3690
  return !0;
3673
3691
  let y = p.compare;
3674
- if (y && (y = dt(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}'](${m}, ${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)
3692
+ if (y && (y = dt(y || "")), p.mode ? d = n(p) : fe[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, fe, 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)
3675
3693
  return !0;
3676
3694
  l || (u = u && d);
3677
3695
  }
3678
3696
  return l ? !1 : u;
3679
3697
  };
3680
3698
  let o = n(r);
3681
- return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : Re : o;
3699
+ return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : _e : r.linkageVariable ? o ? O(() => this.fc.getLoadData(r.linkageVariable), void 0) : _e : o;
3682
3700
  } else if (h.Function(r))
3683
3701
  i = () => r(this.api.form, this.api);
3684
3702
  else {
@@ -3715,7 +3733,7 @@ function mi(t) {
3715
3733
  const { id: r, field: i, input: s, name: n } = e;
3716
3734
  re(this.ctxs, r), re(this.formData, r), re(this.subForm, r), re(this.vm.ctxInject, r);
3717
3735
  const o = e.getParentGroup();
3718
- o && this.subRuleData[o.id] && re(this.subRuleData[o.id], i), e.group && re(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !D(this.fieldCtx, i) && re(this.form, i), this.deferSyncValue(() => {
3736
+ o && this.subRuleData[o.id] && re(this.subRuleData[o.id], i), e.group && re(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !j(this.fieldCtx, i) && re(this.form, i), this.deferSyncValue(() => {
3719
3737
  if (!this.reloading) {
3720
3738
  if (e.parser.loadChildren !== !1) {
3721
3739
  const l = e.getPending("children", e.rule.children);
@@ -3750,12 +3768,12 @@ function gi(t) {
3750
3768
  },
3751
3769
  targetHook(e, r, i) {
3752
3770
  var l, u, f, p;
3753
- let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, m) => {
3771
+ let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, g) => {
3754
3772
  d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
3755
- O(() => y(U(v({}, i || {}), {
3773
+ O(() => y(U(_({}, i || {}), {
3756
3774
  self: e.rule,
3757
3775
  rule: e.rule,
3758
- parent: m == null ? void 0 : m.rule,
3776
+ parent: g == null ? void 0 : g.rule,
3759
3777
  $f: this.api,
3760
3778
  api: this.api,
3761
3779
  option: this.vm.$props.option
@@ -3777,23 +3795,23 @@ function yi(t) {
3777
3795
  const e = this.fc.providers;
3778
3796
  Object.keys(e).forEach((r) => {
3779
3797
  let i = e[r];
3780
- h.Function(i) && (i = i(this.fc)), i._c = bi(i), this.onEffect(i), this.providers[r] = i;
3798
+ h.Function(i) && (i = i(this.fc)), i._c = bi(i), this.onEffect(i, r), this.providers[r] = i;
3781
3799
  });
3782
3800
  },
3783
- onEffect(e) {
3784
- const r = [];
3785
- (e._c || ["*"]).forEach((i) => {
3786
- const s = i === "*" ? "*" : this.getType(i);
3787
- r.indexOf(s) > -1 || (r.push(s), this.bus.$on(`p:${e.name}:${s}:${e.input ? 1 : 0}`, (n, o) => {
3788
- e[n] && e[n](...o);
3801
+ onEffect(e, r) {
3802
+ const i = [];
3803
+ (e._c || ["*"]).forEach((s) => {
3804
+ const n = s === "*" ? "*" : this.getType(s);
3805
+ i.indexOf(n) > -1 || (i.push(n), this.bus.$on(`p:${r || e.name}:${n}:${e.input ? 1 : 0}`, (o, a) => {
3806
+ e[o] && e[o](...a);
3789
3807
  }));
3790
- }), e._used = r;
3808
+ }), e._used = i;
3791
3809
  },
3792
3810
  watchEffect(e) {
3793
3811
  let r = {
3794
3812
  required: () => {
3795
3813
  var i, s;
3796
- return (D(e.rule, "$required") ? e.rule.$required : (s = (i = e.rule) == null ? void 0 : i.effect) == null ? void 0 : s.required) || !1;
3814
+ return (j(e.rule, "$required") ? e.rule.$required : (s = (i = e.rule) == null ? void 0 : i.effect) == null ? void 0 : s.required) || !1;
3797
3815
  }
3798
3816
  };
3799
3817
  Object.keys(e.rule.effect || {}).forEach((i) => {
@@ -3823,14 +3841,14 @@ function yi(t) {
3823
3841
  }, r);
3824
3842
  },
3825
3843
  getEffect(e, r) {
3826
- if (D(e, "$" + r))
3844
+ if (j(e, "$" + r))
3827
3845
  return e["$" + r];
3828
- if (D(e, "effect") && D(e.effect, r))
3846
+ if (j(e, "effect") && j(e.effect, r))
3829
3847
  return e.effect[r];
3830
3848
  },
3831
3849
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
3832
3850
  if (!s || ["fcFragment", "fragment"].indexOf(s) > -1) return;
3833
- const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), v({}, r.effect || {}));
3851
+ const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), _({}, r.effect || {}));
3834
3852
  Object.keys(l).forEach((u) => {
3835
3853
  const f = this.providers[u];
3836
3854
  if (!f || f.input && !i) return;
@@ -3841,8 +3859,8 @@ function yi(t) {
3841
3859
  p = s;
3842
3860
  else
3843
3861
  return;
3844
- const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3845
- e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (m) => x(d.getProp(), [m]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3862
+ const d = _({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3863
+ e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (g) => Q(d.getProp(), [g]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3846
3864
  });
3847
3865
  }
3848
3866
  });
@@ -3868,7 +3886,7 @@ function K(t) {
3868
3886
  return t.bus;
3869
3887
  },
3870
3888
  preview() {
3871
- return t.vm.$options.propsData.preview != null ? t.vm.$options.propsData.preview : t.vm.parent && t.vm.parent.$props.preview != null ? t.vm.parent.$props.preview : t.options.value.preview || !1;
3889
+ 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;
3872
3890
  }
3873
3891
  }), C(this, {
3874
3892
  fc: t,
@@ -3913,7 +3931,7 @@ C(K.prototype, {
3913
3931
  this.updateAppendData(), this.useProvider(), this.usePage(), this.loadRule(), this.$manager.__init(), this.lifecycle("created");
3914
3932
  },
3915
3933
  updateAppendData() {
3916
- this.appendData = v(v(v({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3934
+ this.appendData = _(_(_({}, this.options.formData || {}), this.fc.vm.$props.value || {}), this.appendData);
3917
3935
  },
3918
3936
  isBreakWatch() {
3919
3937
  return this.loading || this.noWatchFn || this.reloading;
@@ -3963,22 +3981,24 @@ function Ci() {
3963
3981
  }
3964
3982
  return C(e.prototype, {
3965
3983
  setVm(r) {
3966
- this.vm = r, this.h = this.$h = r.$createElement;
3984
+ this.handle = r, this.vm = r.vm, this.h = this.$h = r.vm.$createElement;
3967
3985
  },
3968
3986
  make(r, i, s) {
3969
3987
  var n, o, a;
3970
- return ($e.isReservedTag ? $e.isReservedTag(r) : (o = (n = $e) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
3988
+ return (ye.isReservedTag ? ye.isReservedTag(r) : (o = (n = ye) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
3971
3989
  },
3972
3990
  makeComponent(r, i, s) {
3973
- var o;
3974
- let n = this.$h(r, _i(i), s || []);
3975
- if ((o = n == null ? void 0 : n.componentOptions) != null && o.propsData && (i != null && i.props)) {
3976
- const a = Object.keys(n.componentOptions.propsData);
3977
- n.data.attrs || (n.data.attrs = {}), Object.keys(i.props).forEach((l) => {
3978
- n.data.attrs[l] == null && a.indexOf(l) === -1 && ["string", "number", "boolean"].indexOf(typeof i.props[l]) > -1 && (n.data.attrs[l] = i.props[l]);
3991
+ var a;
3992
+ const n = this.handle.fc.prop.components[r];
3993
+ n && (r = n);
3994
+ let o = this.$h(r, _i(i), s || []);
3995
+ if ((a = o == null ? void 0 : o.componentOptions) != null && a.propsData && (i != null && i.props)) {
3996
+ const l = Object.keys(o.componentOptions.propsData);
3997
+ o.data.attrs || (o.data.attrs = {}), Object.keys(i.props).forEach((u) => {
3998
+ o.data.attrs[u] == null && l.indexOf(u) === -1 && ["string", "number", "boolean"].indexOf(typeof i.props[u]) > -1 && (o.data.attrs[u] = i.props[u]);
3979
3999
  });
3980
4000
  }
3981
- return n.context = this.vm, n;
4001
+ return o.context = this.vm, o;
3982
4002
  },
3983
4003
  aliasMap: t
3984
4004
  }), C(e, {
@@ -3988,10 +4008,10 @@ function Ci() {
3988
4008
  },
3989
4009
  use(r) {
3990
4010
  Object.keys(r).forEach((i) => {
3991
- const s = be(i), n = zr(i).toLocaleLowerCase(), o = r[i];
3992
- [i, s, n].forEach((a) => {
3993
- e.alias(i, o), e.prototype[a] = function(l, u) {
3994
- return this.make(o, l, u);
4011
+ const s = $e(i), n = zr(i).toLocaleLowerCase(), o = r[i];
4012
+ e.alias(i, o), [i, s, n].forEach((a) => {
4013
+ e.prototype[a] = function(l, u) {
4014
+ return this.make(t[i] || a, l, u);
3995
4015
  };
3996
4016
  });
3997
4017
  });
@@ -4044,7 +4064,7 @@ C(Jt.prototype, {
4044
4064
  return e(this.vm);
4045
4065
  },
4046
4066
  mergeOptions(t, e) {
4047
- return Y(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
4067
+ return x(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
4048
4068
  },
4049
4069
  updateOptions(t) {
4050
4070
  this.$handle.fc.targetFormDriver("updateOptions", t, { handle: this.$handle, api: this.$handle.api }), this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
@@ -4077,10 +4097,10 @@ const Oi = function(t) {
4077
4097
  let l = (p) => {
4078
4098
  let d;
4079
4099
  i && i.__fc__ && (d = i.__fc__.getParentGroup());
4080
- let m;
4081
- a.template ? m = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? m = a.handler(p, i, s) : m = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (m == null || m === "") && a.default != null && (m = a.default), a.copy !== !1 && (m = G(m));
4100
+ let g;
4101
+ a.template ? g = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? g = a.handler(p, i, s) : g = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (g == null || g === "") && a.default != null && (g = a.default), a.copy !== !1 && (g = G(g));
4082
4102
  const y = a.modify ? i : r.getProp();
4083
- a.to === "child" ? y.children ? F(y.children, 0, m) : F(y, "children", [m]) : se(y, a.to || "options", m), s.sync(i);
4103
+ a.to === "child" ? y.children ? F(y.children, 0, g) : F(y, "children", [g]) : se(y, a.to || "options", g), s.sync(i);
4084
4104
  }, u = (p) => l(p);
4085
4105
  const f = t.watchLoadData(u);
4086
4106
  l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
@@ -4107,11 +4127,11 @@ const Oi = function(t) {
4107
4127
  const l = n[a];
4108
4128
  if (l) {
4109
4129
  const u = typeof l == "object";
4110
- let f = (m) => {
4111
- let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4112
- const _ = u && l.modify ? i : r.getProp();
4113
- a === "child" ? _.children ? F(_.children, 0, y) : F(_, "children", [y]) : se(_, a, y), s.sync(i);
4114
- }, p = (m) => f(m);
4130
+ let f = (g) => {
4131
+ let y = t.t(u ? l.attr : l, u ? l.params : null, g);
4132
+ const v = u && l.modify ? i : r.getProp();
4133
+ a === "child" ? v.children ? F(v.children, 0, y) : F(v, "children", [y]) : se(v, a, y), s.sync(i);
4134
+ }, p = (g) => f(g);
4115
4135
  const d = t.watchLoadData(p);
4116
4136
  f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4117
4137
  }
@@ -4132,9 +4152,9 @@ const Oi = function(t) {
4132
4152
  t.clearProp(), r.clearValidateState([e.field]);
4133
4153
  else {
4134
4154
  h.Object(i) || (i = { method: i });
4135
- const s = i.method, n = U(v({}, i), {
4155
+ const s = i.method, n = U(_({}, i), {
4136
4156
  validator(...o) {
4137
- const a = Q(e);
4157
+ const a = Z(e);
4138
4158
  if (a)
4139
4159
  return r.exec(a.id, h.String(s) ? s : "formCreateValidate", ...o, {
4140
4160
  attr: t,
@@ -4166,18 +4186,7 @@ const Oi = function(t) {
4166
4186
  l(void 0);
4167
4187
  return;
4168
4188
  }
4169
- if (a = G(a), a.to || (a.to = "options"), a.key) {
4170
- const p = t.$handle.options.globalData[a.key];
4171
- if (!p) {
4172
- l(void 0);
4173
- return;
4174
- }
4175
- if (p.type === "static") {
4176
- l(p.data);
4177
- return;
4178
- } else
4179
- a = v(v({}, a), p);
4180
- }
4189
+ a = G(a), a.to || (a.to = "options");
4181
4190
  const u = a.onError, f = () => {
4182
4191
  if (!s.getValue())
4183
4192
  return s.clearProp(), o.sync(n), !0;
@@ -4185,30 +4194,38 @@ const Oi = function(t) {
4185
4194
  i._fn[s.id] = t.watchLoadData(ne((p, d) => {
4186
4195
  if (d && a.watch === !1)
4187
4196
  return i._fn[s.id]();
4188
- const m = t.$handle.loadFetchVar(G(a), p, n), y = U(v({
4197
+ if (a.key) {
4198
+ const v = p("$globalData." + a.key);
4199
+ if (v) {
4200
+ if (f()) return;
4201
+ l(v);
4202
+ }
4203
+ return;
4204
+ }
4205
+ const g = t.$handle.loadFetchVar(G(a), p, n), y = U(_({
4189
4206
  headers: {}
4190
- }, m), {
4191
- onSuccess(_, E) {
4207
+ }, g), {
4208
+ onSuccess(v, E) {
4192
4209
  if (f()) return;
4193
- let ee = (T) => E ? T : D(T, "data") ? T.data : T;
4194
- const I = W(m.parse);
4195
- h.Function(I) ? ee = I : I && h.String(I) && (ee = (T) => L(T, I)), l(ee(_, n, o));
4210
+ let Y = (T) => E ? T : j(T, "data") ? T.data : T;
4211
+ const I = W(g.parse);
4212
+ h.Function(I) ? Y = I : I && h.String(I) && (Y = (T) => L(T, I)), l(Y(v, n, o));
4196
4213
  },
4197
- onError(_) {
4198
- l(void 0), !f() && (u || ((E) => et(E.message || "fetch fail " + m.action)))(_, n, o);
4214
+ onError(v) {
4215
+ l(void 0), !f() && (u || ((E) => et(E.message || "fetch fail " + g.action)))(v, n, o);
4199
4216
  }
4200
4217
  });
4201
4218
  t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4202
- if (h.Function(m.action)) {
4203
- m.action(n, o).then((_) => {
4204
- y.onSuccess(_, !0);
4205
- }).catch((_) => {
4206
- y.onError(_);
4219
+ if (h.Function(g.action)) {
4220
+ g.action(n, o).then((v) => {
4221
+ y.onSuccess(v, !0);
4222
+ }).catch((v) => {
4223
+ y.onError(v);
4207
4224
  });
4208
4225
  return;
4209
4226
  }
4210
4227
  O(() => t.create.fetch(y, { inject: s, rule: n, api: o }));
4211
- }).catch((_) => {
4228
+ }).catch((v) => {
4212
4229
  });
4213
4230
  }, a.wait || 600));
4214
4231
  }
@@ -4256,7 +4273,7 @@ function Ri(t) {
4256
4273
  };
4257
4274
  return e;
4258
4275
  }
4259
- const Ei = "html", Di = {
4276
+ const Ei = "html", ji = {
4260
4277
  name: Ei,
4261
4278
  loadChildren: !1,
4262
4279
  render(t, e) {
@@ -4266,7 +4283,7 @@ const Ei = "html", Di = {
4266
4283
  return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
4267
4284
  }
4268
4285
  };
4269
- function ji(t) {
4286
+ function Di(t) {
4270
4287
  t = t + "=";
4271
4288
  const r = decodeURIComponent(document.cookie).split(";");
4272
4289
  for (let i = 0; i < r.length; i++) {
@@ -4312,7 +4329,7 @@ function it(t, e) {
4312
4329
  return r.length ? i == null ? null : L(i, r) : i;
4313
4330
  }
4314
4331
  function Vi(t) {
4315
- return it(ji, t);
4332
+ return it(Di, t);
4316
4333
  }
4317
4334
  function Pi(t) {
4318
4335
  return it(Ai, t);
@@ -4393,7 +4410,7 @@ function Mi(t, e) {
4393
4410
  }
4394
4411
  function Ui(t) {
4395
4412
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4396
- At.push(...e), Ye.push(...r), xe.push(...i), Ut([...e, ...r, ...i]);
4413
+ At.push(...e), Qe.push(...r), Ye.push(...i), Ut([...e, ...r, ...i]);
4397
4414
  }
4398
4415
  let qi = 1;
4399
4416
  const M = {}, vt = Symbol("defValue");
@@ -4402,18 +4419,18 @@ function Kt(t) {
4402
4419
  [Ne.name]: Ne
4403
4420
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4404
4421
  t.extendApi
4405
- ], u = v({}, Si), f = Yr();
4422
+ ], u = _({}, Si), f = Qr();
4406
4423
  let p = { global: {} };
4407
- const d = t.isMobile === !0, m = ie({
4424
+ const d = t.isMobile === !0, g = ie({
4408
4425
  $mobile: d
4409
- }), y = Ci(), _ = {}, E = {};
4426
+ }), y = Ci(), v = {}, E = {};
4410
4427
  Ui(t.attrs || {});
4411
- function ee(c) {
4412
- const g = M[c];
4413
- if (Array.isArray(g))
4414
- return g.map(($) => $.api());
4415
- if (g)
4416
- return g.api();
4428
+ function Y(c) {
4429
+ const m = M[c];
4430
+ if (Array.isArray(m))
4431
+ return m.map(($) => $.api());
4432
+ if (m)
4433
+ return m.api();
4417
4434
  }
4418
4435
  function I(c) {
4419
4436
  o.push(c);
@@ -4422,50 +4439,50 @@ function Kt(t) {
4422
4439
  const c = Me(...arguments);
4423
4440
  c.id && c.prop && (i[c.id] = c.prop);
4424
4441
  }
4425
- function he() {
4442
+ function ce() {
4426
4443
  const c = Me(...arguments);
4427
- c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(v({}, c.prop), {
4444
+ c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(_({}, c.prop), {
4428
4445
  name: c.id
4429
4446
  }));
4430
4447
  }
4431
4448
  function Pe(c) {
4432
4449
  y.use(c);
4433
4450
  }
4434
- function de() {
4451
+ function he() {
4435
4452
  const c = Me(...arguments);
4436
- if (!c.id || !c.prop) return De;
4437
- const g = q(c.id), $ = c.prop, b = $.merge === !0 ? r[g] : void 0;
4438
- r[g] = Se($, b || De), f[g] = P(g), $.maker && C(f, $.maker);
4453
+ if (!c.id || !c.prop) return je;
4454
+ const m = q(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4455
+ r[m] = Re($, b || je), f[m] = P(m), $.maker && C(f, $.maker);
4439
4456
  }
4440
- function k(c, g) {
4457
+ function k(c, m) {
4441
4458
  let $;
4442
4459
  if (h.String(c)) {
4443
- if ($ = c, g === void 0)
4444
- return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
4460
+ if ($ = c, m === void 0)
4461
+ return ["form-create", "formcreate"].indexOf($) > -1 ? S() : e[$];
4445
4462
  } else
4446
- $ = q(c.name), g = c;
4447
- if (!$ || !g) return;
4463
+ $ = q(c.name), m = c;
4464
+ if (!$ || !m) return;
4448
4465
  const b = q($);
4449
- e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && de($, g.formCreateParser);
4466
+ e[$] = m, e[b] = m, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && he($, m.formCreateParser);
4450
4467
  }
4451
- function R() {
4468
+ function S() {
4452
4469
  return Zr(Be, e, i);
4453
4470
  }
4454
4471
  function N() {
4455
4472
  return Ne;
4456
4473
  }
4457
- function pe(c, g) {
4458
- return h.Function(c.install) ? c.install(z, g) : h.Function(c) && c(z, g), this;
4474
+ function de(c, m) {
4475
+ return h.Function(c.install) ? c.install(z, m) : h.Function(c) && c(z, m), this;
4459
4476
  }
4460
- function z(c, g, $) {
4461
- let b = Mi(c, g || {});
4477
+ function z(c, m, $) {
4478
+ let b = Mi(c, m || {});
4462
4479
  const w = b.$refs.fc.formCreate;
4463
4480
  return w.$parent = $, Ni(w.options).appendChild(b.$el), w.api();
4464
4481
  }
4465
- Se(z, E);
4482
+ Re(z, E);
4466
4483
  function Zt(c) {
4467
- let g = v({}, t);
4468
- return c ? g.inherit = {
4484
+ let m = _({}, t);
4485
+ return c ? m.inherit = {
4469
4486
  components: e,
4470
4487
  parsers: r,
4471
4488
  directives: i,
@@ -4473,54 +4490,54 @@ function Kt(t) {
4473
4490
  providers: u,
4474
4491
  useApps: o,
4475
4492
  maker: f,
4476
- formulas: _,
4477
- loadData: m
4478
- } : delete g.inherit, Kt(g);
4493
+ formulas: v,
4494
+ loadData: g
4495
+ } : delete m.inherit, Kt(m);
4479
4496
  }
4480
- function Qt(c, g) {
4481
- s[c] = g;
4497
+ function xt(c, m) {
4498
+ s[c] = m;
4482
4499
  }
4483
- function Yt(c, g) {
4484
- _[c] = g;
4500
+ function Qt(c, m) {
4501
+ v[c] = m;
4485
4502
  }
4486
- function xt(c, g) {
4503
+ function Yt(c, m) {
4487
4504
  const $ = n[c] || {}, b = $.parsers || {};
4488
- g.parsers && Object.keys(g.parsers).forEach((w) => {
4489
- b[w] = Se(g.parsers[w], De);
4490
- }), g.name = c, n[c] = U(v(v({}, $), g), { parsers: b });
4505
+ m.parsers && Object.keys(m.parsers).forEach((w) => {
4506
+ b[w] = Re(m.parsers[w], je);
4507
+ }), m.name = c, n[c] = U(_(_({}, $), m), { parsers: b });
4491
4508
  }
4492
- function we(c) {
4493
- c && Object.keys(M).forEach((g) => {
4494
- (Array.isArray(M[g]) ? M[g] : [M[g]]).forEach((b) => {
4509
+ function Oe(c) {
4510
+ c && Object.keys(M).forEach((m) => {
4511
+ (Array.isArray(M[m]) ? M[m] : [M[m]]).forEach((b) => {
4495
4512
  b.bus.$emit("$loadData." + c);
4496
4513
  });
4497
4514
  });
4498
4515
  }
4499
- function Le(c, g) {
4500
- se(m, c, g), we(c);
4516
+ function Le(c, m) {
4517
+ se(g, c, m), Oe(c);
4501
4518
  }
4502
- function Oe(c, g) {
4503
- const $ = (...b) => O(() => g(...b));
4519
+ function Fe(c, m) {
4520
+ const $ = (...b) => O(() => m(...b));
4504
4521
  $._driver = !0, Le(c, $);
4505
4522
  }
4506
- function nt(c, g) {
4523
+ function nt(c, m) {
4507
4524
  const $ = (c || "").split(".");
4508
4525
  c = $.shift();
4509
4526
  const b = $.join(".");
4510
- if (D(m, c) || F(m, c, vt), m[c] !== vt) {
4511
- let w = m[c];
4512
- return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? g : w;
4527
+ if (j(g, c) || F(g, c, vt), g[c] !== vt) {
4528
+ let w = g[c];
4529
+ return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? m : w;
4513
4530
  } else
4514
- return g;
4531
+ return m;
4515
4532
  }
4516
4533
  function er(c) {
4517
4534
  l.push(c);
4518
4535
  }
4519
4536
  function tr(c) {
4520
- delete m[c], we(c);
4537
+ delete g[c], Oe(c);
4521
4538
  }
4522
- function rr(c, g) {
4523
- a.push({ name: c, callback: g });
4539
+ function rr(c, m) {
4540
+ a.push({ name: c, callback: m });
4524
4541
  }
4525
4542
  function Be(c) {
4526
4543
  C(this, {
@@ -4531,11 +4548,11 @@ function Kt(t) {
4531
4548
  parsers: r,
4532
4549
  providers: u,
4533
4550
  modelFields: s,
4534
- formulas: _,
4551
+ formulas: v,
4535
4552
  isMobile: d,
4536
- rules: c.$options.propsData.rule,
4537
- name: c.$options.propsData.name || Ve(),
4538
- inFor: c.$options.propsData.inFor,
4553
+ rules: c.$props.rule,
4554
+ name: c.$props.name || Ve(),
4555
+ inFor: c.$props.inFor,
4539
4556
  prop: {
4540
4557
  components: e,
4541
4558
  directives: i
@@ -4543,8 +4560,8 @@ function Kt(t) {
4543
4560
  get: null,
4544
4561
  drivers: n,
4545
4562
  renderDriver: null,
4546
- refreshData: we,
4547
- loadData: m,
4563
+ refreshData: Oe,
4564
+ loadData: g,
4548
4565
  CreateNode: y,
4549
4566
  bus: new Ri(),
4550
4567
  unwatch: [],
@@ -4552,8 +4569,8 @@ function Kt(t) {
4552
4569
  extendApiFn: l,
4553
4570
  fetchCache: /* @__PURE__ */ new WeakMap(),
4554
4571
  tmpData: ie({})
4555
- }), a.forEach((g) => {
4556
- this.bus.$on(g.name, g.callback);
4572
+ }), a.forEach((m) => {
4573
+ this.bus.$on(m.name, m.callback);
4557
4574
  }), V(() => {
4558
4575
  B(this.options, () => {
4559
4576
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
@@ -4564,55 +4581,55 @@ function Kt(t) {
4564
4581
  init() {
4565
4582
  this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4566
4583
  this.initOptions(), this.$handle.api.refresh();
4567
- }, { deep: !0 })), this.vm.$options.propsData.driver && (this.renderDriver = typeof this.vm.$options.propsData.driver == "object" ? this.vm.$options.propsData.driver : this.drivers[this.vm.$options.propsData.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.fc.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4584
+ }, { deep: !0, flush: "sync" })), this.vm.$props.driver && (this.renderDriver = typeof this.vm.$props.driver == "object" ? this.vm.$props.driver : this.drivers[this.vm.$props.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.fc.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4568
4585
  },
4569
- targetFormDriver(c, ...g) {
4570
- if (this.renderDriver && this.renderDriver[c])
4571
- return O(() => this.renderDriver[c](...g));
4586
+ targetFormDriver(c, ...m) {
4587
+ if (this.bus.$emit(c, ...m), this.renderDriver && this.renderDriver[c])
4588
+ return O(() => this.renderDriver[c](...m));
4572
4589
  },
4573
- t(c, g, $) {
4590
+ t(c, m, $) {
4574
4591
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4575
- return b == null && (b = ""), b && g && Object.keys(g).forEach((w) => {
4576
- const j = new RegExp(`{${w}}`, "g");
4577
- b = b.replace(j, g[w]);
4592
+ return b == null && (b = ""), b && m && Object.keys(m).forEach((w) => {
4593
+ const A = new RegExp(`{${w}}`, "g");
4594
+ b = b.replace(A, m[w]);
4578
4595
  }), b;
4579
4596
  },
4580
4597
  globalDataDriver(c) {
4581
- let g = c.split(".");
4582
- const $ = g.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4598
+ let m = c.split(".");
4599
+ const $ = m.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4583
4600
  if (b) {
4584
4601
  if (b.type === "static")
4585
- return L(b.data, g);
4602
+ return L(b.data, m);
4586
4603
  {
4587
4604
  let w;
4588
- const j = this.fetchCache.get(b);
4589
- if (j) {
4590
- if (j.status && (w = L(j.data, g)), !j.loading)
4605
+ const A = this.fetchCache.get(b);
4606
+ if (A) {
4607
+ if (A.status && (w = L(A.data, m)), !A.loading)
4591
4608
  return w;
4592
- j.loading = !1, this.fetchCache.set(b, j);
4609
+ A.loading = !1, this.fetchCache.set(b, A);
4593
4610
  } else
4594
4611
  this.fetchCache.set(b, { status: !1 });
4595
- const S = ne(() => {
4596
- le();
4612
+ const R = ne(() => {
4613
+ ee();
4597
4614
  const J = this.fetchCache.get(b);
4598
4615
  this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (J && (J.loading = !0, this.fetchCache.set(b, J)), this.bus.$emit("$loadData.$globalData." + $)) : this.fetchCache.delete(b);
4599
- }, b.wait || 600), ae = (J) => {
4616
+ }, b.wait || 600), be = (J) => {
4600
4617
  this.fetchCache.set(b, { status: !0, data: J }), this.bus.$emit("$loadData.$globalData." + $);
4601
- }, X = (J, ue) => {
4602
- if (ue && b.watch === !1)
4603
- return le();
4604
- if (ue) {
4605
- S();
4618
+ }, ae = (J, le) => {
4619
+ if (le && b.watch === !1)
4620
+ return ee();
4621
+ if (le) {
4622
+ R();
4606
4623
  return;
4607
4624
  }
4608
- const me = this.$handle.loadFetchVar(Je(b), J);
4609
- this.$handle.api.fetch(me).then((te) => {
4610
- ae(te);
4625
+ const pe = this.$handle.loadFetchVar(Je(b), J);
4626
+ this.$handle.api.fetch(pe).then((te) => {
4627
+ be(te);
4611
4628
  }).catch((te) => {
4612
- ae(null);
4629
+ be(null);
4613
4630
  });
4614
- }, le = this.watchLoadData(X);
4615
- return this.unwatch.push(le), w;
4631
+ }, ee = this.watchLoadData(ae);
4632
+ return b.watch === !1 && ee(), this.unwatch.push(ee), w;
4616
4633
  }
4617
4634
  }
4618
4635
  },
@@ -4621,31 +4638,28 @@ function Kt(t) {
4621
4638
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4622
4639
  },
4623
4640
  globalLanguageDriver(c) {
4624
- let g = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4625
- if (g && (b = O(() => g(c))), b == null && $ && typeof $ == "object" && (b = L($, c)), b == null) {
4626
- const w = this.options.value.language || {}, j = this.getLocale();
4627
- b = L(w[j] || {}, c), b == null && (b = L(Bi[j] || {}, c));
4641
+ let m = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4642
+ if (m && (b = O(() => m(c))), b == null && $ && typeof $ == "object" && (b = L($, c)), b == null) {
4643
+ const w = this.options.value.language || {}, A = this.getLocale();
4644
+ b = L(w[A] || {}, c), b == null && (b = L(Bi[A] || {}, c));
4628
4645
  }
4629
4646
  return b;
4630
4647
  },
4631
4648
  globalVarDriver(c) {
4632
- let g = c.split(".");
4633
- const $ = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4649
+ let m = c.split(".");
4650
+ const $ = m.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4634
4651
  if (b) {
4635
4652
  const w = h.Function(b) ? b : W(b.handle);
4636
4653
  if (w) {
4637
- let j;
4638
- const S = this.watchLoadData((ae, X) => {
4639
- X ? (this.bus.$emit("$loadData.$var." + $), S()) : j = w(ae, this.$handle.api);
4640
- });
4641
- return this.unwatch.push(S), L(j, g);
4654
+ let A = w((...R) => this.$handle.api.getData(...R), this.$handle.api);
4655
+ return L(A, m);
4642
4656
  }
4643
4657
  }
4644
4658
  },
4645
- setData(c, g, $) {
4646
- $ ? Le(c, g) : (se(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4659
+ setData(c, m, $) {
4660
+ $ ? Le(c, m) : (se(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
4647
4661
  },
4648
- getLoadData(c, g) {
4662
+ getLoadData(c, m) {
4649
4663
  let $ = null;
4650
4664
  if (c != null) {
4651
4665
  let b = c.split(".");
@@ -4675,57 +4689,60 @@ function Kt(t) {
4675
4689
  }
4676
4690
  $ && b.length && ($ = L($, b));
4677
4691
  }
4678
- return $ == null || $ === "" ? g : $;
4692
+ return $ == null || $ === "" ? m : $;
4679
4693
  },
4680
- watchLoadData(c, g) {
4694
+ watchLoadData(c, m) {
4681
4695
  let $ = {};
4682
- const b = (S) => {
4696
+ const b = (R) => {
4683
4697
  this.get || (this.get = w), O(() => {
4684
- c(w, S);
4698
+ c(w, R);
4685
4699
  }), this.get === w && (this.get = void 0);
4686
- }, w = (S, ae) => {
4687
- let X;
4688
- if (typeof S == "object" && (X = S.getValue, S = S.id), $[S])
4689
- return $[S].val;
4690
- const le = ye(() => X ? X() : this.getLoadData(S, ae)), J = S.split("."), ue = J.shift(), me = J.shift() || "", te = ne(() => {
4691
- const fe = X ? X() : this.getLoadData(S, ae);
4692
- if ($[S])
4693
- ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[S].val || JSON.stringify(fe) !== JSON.stringify($[S].val)) && ($[S].val = fe, b(!0));
4700
+ }, w = (R, be) => {
4701
+ let ae;
4702
+ if (typeof R == "object" && (ae = R.getValue, R = R.id), $[R])
4703
+ return $[R].val;
4704
+ const ee = ge(() => ae ? ae() : this.getLoadData(R, be)), J = R.split("."), le = J.shift(), pe = J.shift() || "", te = ne(() => {
4705
+ const ue = ae ? ae() : this.getLoadData(R, be);
4706
+ if ($[R])
4707
+ ((ue instanceof Function || h.Object(ue) || Array.isArray(ue)) && ue === $[R].val || JSON.stringify(ue) !== JSON.stringify($[R].val)) && ($[R].val = ue, b(!0));
4694
4708
  else return;
4695
- }, g || 0), nr = B(le, (fe) => {
4709
+ }, m || 0), nr = B(ee, (ue) => {
4696
4710
  te();
4697
4711
  });
4698
- return this.bus.$on("$loadData." + ue, te), me && this.bus.$on("$loadData." + ue + "." + me, te), $[S] = {
4712
+ return this.bus.$on("$loadData." + le, te), pe && this.bus.$on("$loadData." + le + "." + pe, te), $[R] = {
4699
4713
  fn: () => {
4700
- this.bus.$off("$loadData." + ue, te), me && this.bus.$off("$loadData." + ue + "." + me, te), nr();
4714
+ this.bus.$off("$loadData." + le, te), pe && this.bus.$off("$loadData." + le + "." + pe, te), nr();
4701
4715
  },
4702
- val: le.value
4703
- }, le.value;
4716
+ val: ee.value
4717
+ }, ee.value;
4704
4718
  };
4705
4719
  b(!1);
4706
- const j = () => {
4707
- Object.keys($).forEach((S) => $[S].fn()), $ = {};
4720
+ const A = () => {
4721
+ Object.keys($).forEach((R) => $[R].fn()), $ = {};
4708
4722
  };
4709
- return this.unwatch.push(j), j;
4723
+ return this.unwatch.push(A), A;
4710
4724
  },
4711
4725
  isSub() {
4712
4726
  return this.vm.parent && this.vm.extendOption;
4713
4727
  },
4714
4728
  initOptions() {
4715
4729
  this.options.value = {};
4716
- let c = v({
4730
+ let c = _({
4717
4731
  formData: {},
4718
4732
  submitBtn: {},
4719
4733
  resetBtn: {},
4720
4734
  globalEvent: {},
4721
4735
  globalData: {}
4722
4736
  }, G(p));
4723
- 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);
4737
+ const m = this.isSub();
4738
+ m && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$props.option || {});
4739
+ const $ = this.api();
4740
+ this.targetFormDriver("initOptions", c, { api: $, isSubForm: m }), this.updateOptions(c);
4724
4741
  },
4725
- mergeOptions(c, g, $) {
4726
- return g = v({}, g || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4727
- delete g[b];
4728
- }), g.global && (c.global = Wr(c.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], c), c;
4742
+ mergeOptions(c, m, $) {
4743
+ return m = _({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4744
+ delete m[b];
4745
+ }), m.global && (c.global = Wr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4729
4746
  },
4730
4747
  updateOptions(c) {
4731
4748
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4761,58 +4778,58 @@ function Kt(t) {
4761
4778
  isMobile: d,
4762
4779
  extendApi: er,
4763
4780
  getData: nt,
4764
- setDataDriver: Oe,
4781
+ setDataDriver: Fe,
4765
4782
  setData: Le,
4766
4783
  removeData: tr,
4767
- refreshData: we,
4784
+ refreshData: Oe,
4768
4785
  maker: f,
4769
4786
  component: k,
4770
4787
  directive: T,
4771
- setModelField: Qt,
4772
- setFormula: Yt,
4773
- setDriver: xt,
4774
- register: he,
4788
+ setModelField: xt,
4789
+ setFormula: Qt,
4790
+ setDriver: Yt,
4791
+ register: ce,
4775
4792
  $vnode: N,
4776
- parser: de,
4777
- use: pe,
4793
+ parser: he,
4794
+ use: de,
4778
4795
  factory: Zt,
4779
4796
  componentAlias: Pe,
4780
4797
  copyRule: Lt,
4781
4798
  copyRules: Bt,
4782
- mergeRule: x,
4799
+ mergeRule: Q,
4783
4800
  fetch: Gt,
4784
- $form: R,
4801
+ $form: S,
4785
4802
  parseFn: W,
4786
4803
  parseJson: Pt,
4787
- toJson: _e,
4804
+ toJson: Ce,
4788
4805
  useApp: I,
4789
- getApi: ee,
4806
+ getApi: Y,
4790
4807
  on: rr
4791
4808
  });
4792
4809
  }
4793
4810
  function ir(c) {
4794
4811
  C(c, {
4795
4812
  create: z,
4796
- install(g, $) {
4797
- if (p = v(v({}, p), $ || {}), g._installedFormCreate === !0) return;
4798
- g._installedFormCreate = !0;
4799
- const b = function(j, S = {}) {
4800
- return z(j, S, this);
4813
+ install(m, $) {
4814
+ if (p = _(_({}, p), $ || {}), m._installedFormCreate === !0) return;
4815
+ m._installedFormCreate = !0;
4816
+ const b = function(A, R = {}) {
4817
+ return z(A, R, this);
4801
4818
  };
4802
- st(b), g.prototype.$formCreate = b;
4803
- const w = R();
4804
- g.component(w.name, w), g.component("FcFragment", N()), o.forEach((j) => {
4805
- O(() => j(c, g));
4819
+ st(b), m.prototype.$formCreate = b;
4820
+ const w = S();
4821
+ m.component(w.name, w), m.component("FcFragment", N()), o.forEach((A) => {
4822
+ O(() => A(c, m));
4806
4823
  });
4807
4824
  }
4808
4825
  });
4809
4826
  }
4810
- if (st(E), ir(E), Oe("$cookie", Vi), Oe("$localStorage", Pi), Oe("$sessionStorage", Li), y.use({ fragment: "fcFragment" }), t.install && z.use(t), de(Di), t.inherit) {
4827
+ if (st(E), ir(E), Fe("$cookie", Vi), Fe("$localStorage", Pi), Fe("$sessionStorage", Li), y.use({ fragment: "fcFragment" }), t.install && z.use(t), he(ji), t.inherit) {
4811
4828
  const c = t.inherit;
4812
- c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(m, c.loadData), c.formulas && C(_, c.formulas);
4829
+ c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(g, c.loadData), c.formulas && C(v, c.formulas);
4813
4830
  }
4814
- const Fe = R();
4815
- return Se(Fe, E), Object.defineProperties(Fe, {
4831
+ const ke = S();
4832
+ return Re(ke, E), Object.defineProperties(ke, {
4816
4833
  fetch: {
4817
4834
  get() {
4818
4835
  return E.fetch;
@@ -4821,7 +4838,7 @@ function Kt(t) {
4821
4838
  E.fetch = c;
4822
4839
  }
4823
4840
  }
4824
- }), Fe.util = E, Fe;
4841
+ }), ke.util = E, ke;
4825
4842
  }
4826
4843
  function Ue(t) {
4827
4844
  if (h.Date(t))
@@ -4942,7 +4959,7 @@ const _t = "datePicker", Gi = {
4942
4959
  resetBtnIcon: "md-refresh",
4943
4960
  infoIcon: "ios-information-circle-outline"
4944
4961
  };
4945
- function Qi() {
4962
+ function xi() {
4946
4963
  return {
4947
4964
  type: "poptip",
4948
4965
  trigger: "hover",
@@ -4951,7 +4968,7 @@ function Qi() {
4951
4968
  icon: Ae.infoIcon
4952
4969
  };
4953
4970
  }
4954
- function Yi() {
4971
+ function Qi() {
4955
4972
  return {
4956
4973
  form: {
4957
4974
  inline: !1,
@@ -4984,16 +5001,16 @@ function Yi() {
4984
5001
  };
4985
5002
  }
4986
5003
  function wt(t, e) {
4987
- D(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
5004
+ j(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4988
5005
  }
4989
- function Z(t) {
5006
+ function X(t) {
4990
5007
  return t === !1;
4991
5008
  }
4992
- function xi(t, e) {
4993
- D(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
5009
+ function Yi(t, e) {
5010
+ j(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4994
5011
  }
4995
5012
  function He(t) {
4996
- const e = v({}, t);
5013
+ const e = _({}, t);
4997
5014
  return delete e.children, e;
4998
5015
  }
4999
5016
  const en = {
@@ -5015,7 +5032,7 @@ const en = {
5015
5032
  },
5016
5033
  tidyOptions(t) {
5017
5034
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
5018
- xi(t, e);
5035
+ Yi(t, e);
5019
5036
  }), t;
5020
5037
  },
5021
5038
  tidyRule({ prop: t }) {
@@ -5023,25 +5040,25 @@ const en = {
5023
5040
  },
5024
5041
  mergeProp(t) {
5025
5042
  const e = {
5026
- info: Qi(),
5043
+ info: xi(),
5027
5044
  title: {},
5028
5045
  col: { span: 24 },
5029
5046
  wrap: {}
5030
5047
  };
5031
5048
  ["info", "wrap", "col", "title"].forEach((r) => {
5032
- t.prop[r] = Y([this.options[r] || {}, t.prop[r] || {}], e[r]);
5049
+ t.prop[r] = x([this.options[r] || {}, t.prop[r] || {}], e[r]);
5033
5050
  }), this.setSize(t.prop.props);
5034
5051
  },
5035
5052
  setSize(t) {
5036
5053
  !t.size && this.options.form.size && (t.size = this.options.form.size);
5037
5054
  },
5038
5055
  getDefaultOptions() {
5039
- return Yi();
5056
+ return Qi();
5040
5057
  },
5041
5058
  update() {
5042
5059
  const t = this.options.form;
5043
5060
  this.rule = {
5044
- props: v({}, t),
5061
+ props: _({}, t),
5045
5062
  nativeOn: {
5046
5063
  submit: (e) => {
5047
5064
  e.preventDefault();
@@ -5058,13 +5075,13 @@ const en = {
5058
5075
  });
5059
5076
  },
5060
5077
  render(t) {
5061
- 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)]);
5078
+ 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)]);
5062
5079
  },
5063
5080
  makeWrap(t, e) {
5064
5081
  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, u = r.wrap.class;
5065
5082
  delete r.wrap.class, delete r.wrap.title;
5066
- const f = Z(r.wrap.show) ? e : this.$r(Y([r.wrap, {
5067
- props: U(v({
5083
+ const f = X(r.wrap.show) ? e : this.$r(x([r.wrap, {
5084
+ props: U(_({
5068
5085
  labelWidth: o
5069
5086
  }, He(r.wrap || {})), {
5070
5087
  prop: t.id,
@@ -5074,31 +5091,31 @@ const en = {
5074
5091
  key: `${i}fi`,
5075
5092
  ref: t.wrapRef,
5076
5093
  type: "formItem"
5077
- }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5078
- return a === !0 || Z(l) || Z(s.show) ? f : this.makeCol(r, i, [f]);
5094
+ }]), _({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5095
+ return a === !0 || X(l) || X(s.show) ? f : this.makeCol(r, i, [f]);
5079
5096
  },
5080
5097
  isTitle(t) {
5081
5098
  if (this.options.form.title === !1) return !1;
5082
5099
  const e = t.title;
5083
- return !(!e.title && !e.native || Z(e.show));
5100
+ return !(!e.title && !e.native || X(e.show));
5084
5101
  },
5085
5102
  makeInfo(t, e, r) {
5086
- var u, f, p, d, m, y;
5087
- const i = v({}, t.title), s = v({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5103
+ var u, f, p, d, g, y;
5104
+ const i = _({}, t.title), s = _({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5088
5105
  title: (f = (u = r.refRule) == null ? void 0 : u.__$title) == null ? void 0 : f.value,
5089
5106
  rule: r.rule,
5090
5107
  options: this.options
5091
5108
  }) : ((d = (p = r.refRule) == null ? void 0 : p.__$title) == null ? void 0 : d.value) + (n.labelSuffix || n["label-suffix"] || "")];
5092
- if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
5093
- const _ = {
5109
+ if (!X(s.show) && (s.info || s.native) && !X(s.icon)) {
5110
+ const v = {
5094
5111
  type: s.type || "poptip",
5095
5112
  props: He(s),
5096
5113
  key: `${e}pop`,
5097
5114
  slot: "label"
5098
5115
  };
5099
- delete _.props.icon, delete _.props.show, delete _.props.info, delete _.props.align, delete _.props.native;
5116
+ delete v.props.icon, delete v.props.show, delete v.props.info, delete v.props.align, delete v.props.native;
5100
5117
  const E = "content";
5101
- s.info && !D(_.props, E) && (_.props[E] = (y = (m = r.refRule) == null ? void 0 : m.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, _]), [
5118
+ s.info && !j(v.props, E) && (v.props[E] = (y = (g = r.refRule) == null ? void 0 : g.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(x([s, v]), [
5102
5119
  this.$r({
5103
5120
  type: "icon",
5104
5121
  props: { type: s.icon === !0 ? Ae.infoIcon : s.icon, size: 16 },
@@ -5107,7 +5124,7 @@ const en = {
5107
5124
  })
5108
5125
  ]));
5109
5126
  }
5110
- const l = Y([i, {
5127
+ const l = x([i, {
5111
5128
  props: He(i),
5112
5129
  key: `${e}tit`,
5113
5130
  class: "fc-form-title",
@@ -5136,7 +5153,7 @@ const en = {
5136
5153
  },
5137
5154
  makeFormBtn() {
5138
5155
  let t = [];
5139
- if (Z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), Z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5156
+ if (X(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), X(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5140
5157
  return;
5141
5158
  const e = this.$r({
5142
5159
  type: "formItem",
@@ -5151,7 +5168,7 @@ const en = {
5151
5168
  }, [e]);
5152
5169
  },
5153
5170
  makeResetBtn() {
5154
- const t = v({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5171
+ const t = _({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5155
5172
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
5156
5173
  type: "button",
5157
5174
  props: t,
@@ -5167,7 +5184,7 @@ const en = {
5167
5184
  }, [e]);
5168
5185
  },
5169
5186
  makeSubmitBtn() {
5170
- const t = v({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5187
+ const t = _({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5171
5188
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
5172
5189
  type: "button",
5173
5190
  props: t,
@@ -5248,7 +5265,7 @@ function un(t, e) {
5248
5265
  }), Promise.all(o).then(() => {
5249
5266
  i(!0), r && r(!0);
5250
5267
  }).catch((a) => {
5251
- s(a), r && r(a), e.vm.$emit("validate-fail", a, { api: t });
5268
+ s(a), r && r(a), e.vm.$emit("validate-fail", a, { api: t }), e.emitEvent("validate-fail", a, { api: t });
5252
5269
  });
5253
5270
  });
5254
5271
  },
@@ -5336,7 +5353,7 @@ const Xt = {
5336
5353
  if (i.required === !1)
5337
5354
  t.clearProp(), r.clearValidateState([e.field]);
5338
5355
  else {
5339
- const o = v({
5356
+ const o = _({
5340
5357
  required: !0,
5341
5358
  validator(l, u, f) {
5342
5359
  h.empty(u) ? f(o.message) : f();
@@ -5371,7 +5388,7 @@ function cn(t) {
5371
5388
  function hn() {
5372
5389
  return Kt({
5373
5390
  ui: "iview",
5374
- version: "2.7.12",
5391
+ version: "2.7.15",
5375
5392
  manager: en,
5376
5393
  install: cn,
5377
5394
  extendApi: un,
@@ -5382,10 +5399,10 @@ function hn() {
5382
5399
  }
5383
5400
  });
5384
5401
  }
5385
- const Qe = hn();
5386
- typeof window != "undefined" && (window.formCreate = Qe, window.Vue && Qe.install(window.Vue));
5387
- const mn = Qe.maker;
5402
+ const xe = hn();
5403
+ typeof window != "undefined" && (window.formCreate = xe, window.Vue && xe.install(window.Vue));
5404
+ const mn = xe.maker;
5388
5405
  export {
5389
- Qe as default,
5406
+ xe as default,
5390
5407
  mn as maker
5391
5408
  };