@form-create/element-ui 2.7.8 → 2.7.9

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,26 +1,26 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/element-ui v2.7.8
3
+ * @form-create/element-ui v2.7.9
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
7
7
  * Released under the MIT License.
8
8
  */
9
9
  (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode('._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-frame .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-frame .fc-files:hover .fc-upload-cover{opacity:1}._fc-frame .el-upload{display:block}._fc-frame .fc-upload-btn,.fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-upload .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-upload .fc-files:hover .fc-upload-cover{opacity:1}._fc-upload .fc-upload-btn,._fc-upload .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-group{display:flex;min-height:42px;justify-content:center;flex-direction:column}._fc-group-disabled ._fc-group-btn,._fc-group-disabled ._fc-group-add{cursor:not-allowed}._fc-group-handle{display:flex;flex-direction:row;position:absolute;bottom:-15px;right:30px;border-radius:15px;border:1px dashed #d9d9d9;padding:3px 8px;background-color:#fff}._fc-group-btn{cursor:pointer}._fc-group-idx{position:absolute;bottom:-15px;left:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#eee;border-radius:15px;font-weight:700}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{position:relative;display:flex;flex-direction:column;border:1px dashed #d9d9d9;padding:20px 20px 25px;margin:5px 5px 25px;border-radius:5px}._fc-group-arrow{position:relative;width:20px;height:20px}._fc-group-arrow:before{content:"";position:absolute;top:8px;left:5px;width:9px;height:9px;border-left:2px solid #999;border-top:2px solid #999}._fc-group-arrow:before{transform:rotate(45deg)}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{width:20px;height:20px;position:relative;cursor:pointer}._fc-group-plus-minus:before,._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:60%;height:2px;background-color:#409eff;transform:translate(-50%,-50%)}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{cursor:pointer;width:25px;height:25px;border:1px solid rgb(64 158 255 / 50%);border-radius:15px}._fc-group-add._fc-group-plus-minus:before,._fc-group-add._fc-group-plus-minus:after{width:50%}.form-create .form-create .el-form-item{margin-bottom:22px}.form-create{width:100%}.fc-form-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.form-create.is-preview .fc-clock,.form-create .fc-none,.form-create.is-preview .el-form-item.is-required>.el-form-item__label-wrap>.el-form-item__label:before,.form-create.is-preview .el-form-item.is-required>.el-form-item__label:before{display:none!important}.fc-wrap-right>.el-form-item__label{display:flex;justify-content:flex-end}.fc-wrap-left>.el-form-item__label{display:flex;justify-content:flex-start}.fc-wrap-top.el-form-item{display:block}.fc-wrap-top.el-form-item>.el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.fc-wrap-top.el-form-item>.el-form-item__content{margin-left:0!important}.el-form--large .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small .fc-wrap-top.el-form-item>.el-form-item__label{line-height:20px;margin-bottom:4px}.fc-form-footer{margin-top:12px}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
- var rr = Object.defineProperty, ir = Object.defineProperties;
11
- var nr = Object.getOwnPropertyDescriptors;
10
+ var ir = Object.defineProperty, nr = Object.defineProperties;
11
+ var sr = Object.getOwnPropertyDescriptors;
12
12
  var at = Object.getOwnPropertySymbols;
13
- var sr = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable;
14
- var lt = (t, e, r) => e in t ? rr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
13
+ var or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable;
14
+ var lt = (t, e, r) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
- sr.call(e, r) && lt(t, r, e[r]);
16
+ or.call(e, r) && lt(t, r, e[r]);
17
17
  if (at)
18
18
  for (var r of at(e))
19
- or.call(e, r) && lt(t, r, e[r]);
19
+ ar.call(e, r) && lt(t, r, e[r]);
20
20
  return t;
21
- }, q = (t, e) => ir(t, nr(e));
22
- import $e, { getCurrentInstance as ar, provide as lr, inject as ur, toRefs as ut, reactive as ne, onBeforeMount as fr, watch as L, onMounted as cr, onBeforeUnmount as hr, onUpdated as dr, nextTick as I, markRaw as ge, computed as ye, toRef as Ae, ref as pr } from "vue";
23
- function mr(t) {
21
+ }, q = (t, e) => nr(t, sr(e));
22
+ import be, { getCurrentInstance as lr, provide as ur, inject as fr, toRefs as ut, reactive as ne, onBeforeMount as cr, watch as L, onMounted as hr, onBeforeUnmount as dr, onUpdated as pr, nextTick as P, markRaw as ye, computed as $e, toRef as Ve, ref as mr } from "vue";
23
+ function gr(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
26
  function Je() {
@@ -29,33 +29,33 @@ function Je() {
29
29
  return t;
30
30
  }, Je.apply(this, arguments);
31
31
  }
32
- var gr = ["attrs", "props", "domProps"], yr = ["class", "style", "directives"], $r = ["on", "nativeOn"], br = function(t) {
32
+ var yr = ["attrs", "props", "domProps"], $r = ["class", "style", "directives"], br = ["on", "nativeOn"], vr = function(t) {
33
33
  return t.reduce(function(e, r) {
34
34
  for (var i in r) if (!e[i]) e[i] = r[i];
35
- else if (gr.indexOf(i) !== -1) e[i] = Je({}, e[i], r[i]);
36
- else if (yr.indexOf(i) !== -1) {
35
+ else if (yr.indexOf(i) !== -1) e[i] = Je({}, e[i], r[i]);
36
+ else if ($r.indexOf(i) !== -1) {
37
37
  var s = e[i] instanceof Array ? e[i] : [e[i]], n = r[i] instanceof Array ? r[i] : [r[i]];
38
38
  e[i] = [].concat(s, n);
39
- } else if ($r.indexOf(i) !== -1)
39
+ } else if (br.indexOf(i) !== -1)
40
40
  for (var o in r[i]) if (e[i][o]) {
41
41
  var a = e[i][o] instanceof Array ? e[i][o] : [e[i][o]], l = r[i][o] instanceof Array ? r[i][o] : [r[i][o]];
42
42
  e[i][o] = [].concat(a, l);
43
43
  } else e[i][o] = r[i][o];
44
- else if (i === "hook") for (var u in r[i]) e[i][u] = e[i][u] ? vr(e[i][u], r[i][u]) : r[i][u];
44
+ else if (i === "hook") for (var u in r[i]) e[i][u] = e[i][u] ? _r(e[i][u], r[i][u]) : r[i][u];
45
45
  else e[i] = r[i];
46
46
  return e;
47
47
  }, {});
48
- }, vr = function(t, e) {
48
+ }, _r = function(t, e) {
49
49
  return function() {
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
- }, _r = br;
53
- const V = /* @__PURE__ */ mr(_r);
52
+ }, Cr = vr;
53
+ const I = /* @__PURE__ */ gr(Cr);
54
54
  function Qe(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => (r.push(t[i]), r), []);
56
56
  }
57
- const Cr = "fcCheckbox", wr = {
58
- name: Cr,
57
+ const wr = "fcCheckbox", Or = {
58
+ name: wr,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -101,7 +101,7 @@ const Cr = "fcCheckbox", wr = {
101
101
  },
102
102
  render() {
103
103
  const t = arguments[0];
104
- return t("ElCheckboxGroup", V([{}, this.formCreateInject.prop, {}, {
104
+ return t("ElCheckboxGroup", I([{}, this.formCreateInject.prop, {}, {
105
105
  props: {
106
106
  value: this.trueValue
107
107
  }
@@ -112,7 +112,7 @@ const Cr = "fcCheckbox", wr = {
112
112
  }
113
113
  }]), [this.options().map((e, r) => {
114
114
  const i = v({}, e), s = this.type === "button" ? "ElCheckboxButton" : "ElCheckbox";
115
- return delete i.value, t(s, V([{}, {
115
+ return delete i.value, t(s, I([{}, {
116
116
  props: i
117
117
  }, {
118
118
  key: s + r + "-" + e.value
@@ -126,7 +126,7 @@ const Cr = "fcCheckbox", wr = {
126
126
  function H(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
- const Fr = "fcFrame", Or = {
129
+ const Fr = "fcFrame", kr = {
130
130
  name: Fr,
131
131
  props: {
132
132
  formCreateInject: {
@@ -285,7 +285,7 @@ const Fr = "fcFrame", Or = {
285
285
  value: this.fileList.map((r) => this.getSrc(r)).toString(),
286
286
  readonly: !0
287
287
  };
288
- return t("ElInput", V([{}, {
288
+ return t("ElInput", I([{}, {
289
289
  props: e
290
290
  }, {
291
291
  key: this.key("input")
@@ -295,7 +295,7 @@ const Fr = "fcFrame", Or = {
295
295
  on: {
296
296
  click: () => this.fileList = []
297
297
  }
298
- }) : null, t("ElButton", V([{
298
+ }) : null, t("ElButton", I([{
299
299
  attrs: {
300
300
  icon: this.icon
301
301
  }
@@ -452,7 +452,7 @@ const Fr = "fcFrame", Or = {
452
452
  this.$refs.frame && this.frameLoad(this.$refs.frame.contentWindow || {});
453
453
  }), t("div", {
454
454
  class: "_fc-frame"
455
- }, [r, t("el-dialog", V([{}, {
455
+ }, [r, t("el-dialog", I([{}, {
456
456
  props: {
457
457
  appendToBody: !0,
458
458
  modal: this.previewMask,
@@ -468,7 +468,7 @@ const Fr = "fcFrame", Or = {
468
468
  attrs: {
469
469
  src: this.previewImage
470
470
  }
471
- })]), t("el-dialog", V([{}, {
471
+ })]), t("el-dialog", I([{}, {
472
472
  props: q(v({
473
473
  width: i,
474
474
  title: o,
@@ -496,8 +496,8 @@ const Fr = "fcFrame", Or = {
496
496
  mounted() {
497
497
  this.$on("fc.closeModal", this.closeModal);
498
498
  }
499
- }, kr = "fcRadio", Sr = {
500
- name: kr,
499
+ }, Er = "fcRadio", Sr = {
500
+ name: Er,
501
501
  props: {
502
502
  formCreateInject: {
503
503
  type: Object,
@@ -539,7 +539,7 @@ const Fr = "fcFrame", Or = {
539
539
  },
540
540
  render() {
541
541
  const t = arguments[0];
542
- return t("ElRadioGroup", V([{}, this.formCreateInject.prop, {
542
+ return t("ElRadioGroup", I([{}, this.formCreateInject.prop, {
543
543
  ref: "el"
544
544
  }, {
545
545
  props: {
@@ -551,7 +551,7 @@ const Fr = "fcFrame", Or = {
551
551
  }
552
552
  }]), [this.options().map((e, r) => {
553
553
  const i = v({}, e), s = this.type === "button" ? "ElRadioButton" : "ElRadio";
554
- return delete i.value, t(s, V([{}, {
554
+ return delete i.value, t(s, I([{}, {
555
555
  props: i
556
556
  }, {
557
557
  key: s + r + "-" + e.value
@@ -594,8 +594,8 @@ const Fr = "fcFrame", Or = {
594
594
  function D(t, e) {
595
595
  return {}.hasOwnProperty.call(t, e);
596
596
  }
597
- const Er = "fcSelect", Rr = {
598
- name: Er,
597
+ const Rr = "fcSelect", Dr = {
598
+ name: Rr,
599
599
  functional: !0,
600
600
  props: {
601
601
  formCreateInject: {
@@ -606,7 +606,7 @@ const Er = "fcSelect", Rr = {
606
606
  render(t, e) {
607
607
  const r = (n, o) => {
608
608
  const a = n.slot;
609
- return t("ElOption", V([{}, {
609
+ return t("ElOption", I([{}, {
610
610
  props: n
611
611
  }, {
612
612
  key: "" + o + "-" + n.value
@@ -619,15 +619,15 @@ const Er = "fcSelect", Rr = {
619
619
  },
620
620
  key: "" + o + "-" + n.label
621
621
  }, [h.trueArray(n.options) && n.options.map((a, l) => r(a, l))]), s = e.props.formCreateInject.options;
622
- return t("ElSelect", V([{}, e.data, {
622
+ return t("ElSelect", I([{}, e.data, {
623
623
  ref: "el"
624
624
  }]), [(Array.isArray(s) ? s : []).map((n, o) => D(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
625
625
  },
626
626
  mounted() {
627
627
  this.$emit("fc.el", this.$refs.el);
628
628
  }
629
- }, Dr = "fcTree", jr = {
630
- name: Dr,
629
+ }, jr = "fcTree", Ar = {
630
+ name: jr,
631
631
  formCreateParser: {
632
632
  mergeProp(t) {
633
633
  const e = t.prop.props;
@@ -671,7 +671,7 @@ const Er = "fcSelect", Rr = {
671
671
  },
672
672
  render() {
673
673
  const t = arguments[0];
674
- return t("ElTree", V([{}, this.formCreateInject.prop, {
674
+ return t("ElTree", I([{}, this.formCreateInject.prop, {
675
675
  ref: "tree",
676
676
  on: {
677
677
  check: () => this.updateValue(),
@@ -687,7 +687,7 @@ function ft(t, e) {
687
687
  return typeof t == "object" ? t : {
688
688
  url: t,
689
689
  is_string: !0,
690
- name: Ar(t),
690
+ name: Vr(t),
691
691
  uid: e
692
692
  };
693
693
  }
@@ -697,11 +697,11 @@ function ct(t) {
697
697
  value: t
698
698
  });
699
699
  }
700
- function Ar(t) {
700
+ function Vr(t) {
701
701
  return ("" + t).split("/").pop();
702
702
  }
703
- const Vr = "fcUpload", Ir = {
704
- name: Vr,
703
+ const Ir = "fcUpload", Pr = {
704
+ name: Ir,
705
705
  props: {
706
706
  formCreateInject: {
707
707
  type: Object,
@@ -806,7 +806,7 @@ const Vr = "fcUpload", Ir = {
806
806
  },
807
807
  makeProgress(t, e) {
808
808
  const r = this.$createElement;
809
- return r("ElProgress", V([{}, {
809
+ return r("ElProgress", I([{}, {
810
810
  props: {
811
811
  percentage: t.percentage,
812
812
  type: "circle",
@@ -852,7 +852,7 @@ const Vr = "fcUpload", Ir = {
852
852
  },
853
853
  makeUpload() {
854
854
  const t = this.$createElement, e = !this.limit || this.limit > this.uploadList.length;
855
- return t("ElUpload", V([{}, this.formCreateInject.prop, {}, {
855
+ return t("ElUpload", I([{}, this.formCreateInject.prop, {}, {
856
856
  props: {
857
857
  listType: this.listType,
858
858
  showFileList: this.listType !== "picture",
@@ -884,7 +884,7 @@ const Vr = "fcUpload", Ir = {
884
884
  const t = arguments[0];
885
885
  return this.$refs.upload && (this.formCreateInject.prop.props.fileList = this.$refs.upload.fileList), t("div", {
886
886
  class: "_fc-upload"
887
- }, [[this.makeFiles(), this.makeUpload()], t("el-dialog", V([{}, {
887
+ }, [[this.makeFiles(), this.makeUpload()], t("el-dialog", I([{}, {
888
888
  props: {
889
889
  appendToBody: !0,
890
890
  modal: this.previewMask,
@@ -911,13 +911,13 @@ const Vr = "fcUpload", Ir = {
911
911
  }), this.$emit("fc.el", this.$refs.upload);
912
912
  }
913
913
  };
914
- function S(t, e, r) {
915
- $e.set(t, e, r);
914
+ function k(t, e, r) {
915
+ be.set(t, e, r);
916
916
  }
917
917
  function ie(t, e) {
918
- ($e.del || $e.delete)(t, e);
918
+ (be.del || be.delete)(t, e);
919
919
  }
920
- function Ce(t, e = {}, r) {
920
+ function we(t, e = {}, r) {
921
921
  let i = !1;
922
922
  for (let s in e)
923
923
  if (Object.prototype.hasOwnProperty.call(e, s)) {
@@ -925,39 +925,39 @@ function Ce(t, e = {}, r) {
925
925
  if ((i = Array.isArray(n)) || h.Object(n)) {
926
926
  let o = t[s] === void 0;
927
927
  if (i)
928
- i = !1, o && S(t, s, []);
928
+ i = !1, o && k(t, s, []);
929
929
  else if (n._clone && r !== void 0)
930
930
  if (r)
931
- n = n.getRule(), o && S(t, s, {});
931
+ n = n.getRule(), o && k(t, s, {});
932
932
  else {
933
- S(t, s, n._clone());
933
+ k(t, s, n._clone());
934
934
  continue;
935
935
  }
936
936
  else
937
- o && S(t, s, {});
938
- t[s] = Ce(t[s], n, r);
937
+ o && k(t, s, {});
938
+ t[s] = we(t[s], n, r);
939
939
  } else
940
- S(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
940
+ k(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
941
941
  }
942
942
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
943
943
  }
944
944
  function K(t) {
945
- return Ce({}, { value: t }).value;
945
+ return we({}, { value: t }).value;
946
946
  }
947
- const Pr = Object.assign || function(t) {
947
+ const Tr = Object.assign || function(t) {
948
948
  for (let e, r = 1; r < arguments.length; r++)
949
949
  for (let i in e = arguments[r], e)
950
- Object.prototype.hasOwnProperty.call(e, i) && S(t, i, e[i]);
950
+ Object.prototype.hasOwnProperty.call(e, i) && k(t, i, e[i]);
951
951
  return t;
952
952
  };
953
953
  function _() {
954
- return Pr.apply(this, arguments);
954
+ return Tr.apply(this, arguments);
955
955
  }
956
956
  function Ke(t) {
957
957
  return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
958
958
  }
959
- const Tr = "fcGroup", Br = {
960
- name: Tr,
959
+ const Br = "fcGroup", Lr = {
960
+ name: Br,
961
961
  props: {
962
962
  field: String,
963
963
  rule: [Array, Object],
@@ -1038,7 +1038,7 @@ const Tr = "fcGroup", Br = {
1038
1038
  const s = i.$f.formData();
1039
1039
  if (t === e)
1040
1040
  i.$f.deferSyncValue(() => {
1041
- Ce(i.rule, t), i.$f.setValue(s);
1041
+ we(i.rule, t), i.$f.setValue(s);
1042
1042
  }, !0);
1043
1043
  else {
1044
1044
  const n = i.$f.formData();
@@ -1231,12 +1231,12 @@ const Tr = "fcGroup", Br = {
1231
1231
  return t("div", {
1232
1232
  class: "_fc-group-container",
1233
1233
  key: o
1234
- }, [t(i, V([{
1234
+ }, [t(i, I([{
1235
1235
  key: o
1236
1236
  }, {
1237
1237
  on: {
1238
1238
  "update:value": (d) => this.formData(o, d),
1239
- "emit-event": (d, ...g) => this.emitEvent(d, g, a, o),
1239
+ "emit-event": (d, ...p) => this.emitEvent(d, p, a, o),
1240
1240
  input: (d) => this.add$f(a, o, d)
1241
1241
  }
1242
1242
  }, {}, {
@@ -1261,8 +1261,8 @@ const Tr = "fcGroup", Br = {
1261
1261
  class: "_fc-group " + (s ? "_fc-group-disabled" : "")
1262
1262
  }, [n]);
1263
1263
  }
1264
- }, Lr = "fcSubForm", Mr = {
1265
- name: Lr,
1264
+ }, Nr = "fcSubForm", Mr = {
1265
+ name: Nr,
1266
1266
  props: {
1267
1267
  rule: Array,
1268
1268
  options: Object,
@@ -1330,7 +1330,7 @@ const Tr = "fcGroup", Br = {
1330
1330
  rule: e,
1331
1331
  options: r
1332
1332
  } = this.cacheRule, i = this.type;
1333
- return t(i, V([{}, {
1333
+ return t(i, I([{}, {
1334
1334
  on: {
1335
1335
  "update:value": this.formData,
1336
1336
  "emit-event": this.emitEvent,
@@ -1345,14 +1345,14 @@ const Tr = "fcGroup", Br = {
1345
1345
  }
1346
1346
  }]));
1347
1347
  }
1348
- }, Nr = [
1349
- wr,
1348
+ }, qr = [
1350
1349
  Or,
1350
+ kr,
1351
1351
  Sr,
1352
- Rr,
1353
- jr,
1354
- Ir,
1355
- Br,
1352
+ Dr,
1353
+ Ar,
1354
+ Pr,
1355
+ Lr,
1356
1356
  Mr
1357
1357
  ];
1358
1358
  function se(t, e) {
@@ -1361,12 +1361,12 @@ function se(t, e) {
1361
1361
  r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
1362
1362
  };
1363
1363
  }
1364
- function be(t) {
1364
+ function ve(t) {
1365
1365
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1366
1366
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1367
1367
  }
1368
- const kt = ["attrs", "props", "domProps", "scopedSlots"], St = ["class", "style", "directives"], Et = ["on", "nativeOn", "hook"], ee = (t, e = {}, r = {}) => {
1369
- const i = [...kt, ...r.normal || []], s = [...St, ...r.array || []], n = [...Et, ...r.functional || []], o = r.props || [];
1368
+ const kt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style", "directives"], St = ["on", "nativeOn", "hook"], ee = (t, e = {}, r = {}) => {
1369
+ const i = [...kt, ...r.normal || []], s = [...Et, ...r.array || []], n = [...St, ...r.functional || []], o = r.props || [];
1370
1370
  return t.reduce((a, l) => {
1371
1371
  for (const u in l)
1372
1372
  if (a[u])
@@ -1380,24 +1380,24 @@ const kt = ["attrs", "props", "domProps", "scopedSlots"], St = ["class", "style"
1380
1380
  } else if (n.indexOf(u) > -1)
1381
1381
  for (const f in l[u])
1382
1382
  if (a[u][f]) {
1383
- const d = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], g = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1384
- a[u][f] = [...d, ...g];
1383
+ const d = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], p = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1384
+ a[u][f] = [...d, ...p];
1385
1385
  } else
1386
1386
  a[u][f] = l[u][f];
1387
1387
  else if (u === "hook")
1388
1388
  for (let f in l[u])
1389
- a[u][f] ? a[u][f] = qr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1389
+ a[u][f] ? a[u][f] = Ur(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1390
1390
  else
1391
1391
  a[u] = l[u];
1392
1392
  else
1393
1393
  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];
1394
1394
  return a;
1395
1395
  }, e);
1396
- }, qr = (t, e) => function() {
1396
+ }, Ur = (t, e) => function() {
1397
1397
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1398
1398
  }, Rt = ["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"], et = ["effect", "deep", "renderSlots"];
1399
1399
  function Dt() {
1400
- return [...Rt, ...kt, ...St, ...Et, ...Ye, ...et];
1400
+ return [...Rt, ...kt, ...Et, ...St, ...Ye, ...et];
1401
1401
  }
1402
1402
  function jt(t, e, r) {
1403
1403
  return `[form-create ${t}]: ${e}`;
@@ -1405,15 +1405,15 @@ function jt(t, e, r) {
1405
1405
  function tt(t, e) {
1406
1406
  console.error(jt("err", t));
1407
1407
  }
1408
- function Ur(t) {
1408
+ function Hr(t) {
1409
1409
  tt(t.toString()), console.error(t);
1410
1410
  }
1411
1411
  function At(t) {
1412
1412
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1413
1413
  }
1414
1414
  const We = "[[FORM-CREATE-PREFIX-", ze = "-FORM-CREATE-SUFFIX]]";
1415
- function _e(t, e) {
1416
- return JSON.stringify(Ce(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1415
+ function Ce(t, e) {
1416
+ return JSON.stringify(we(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1417
1417
  if (!(i && i._isVue === !0)) {
1418
1418
  if (typeof i != "function")
1419
1419
  return i;
@@ -1473,16 +1473,16 @@ function Vt(t, e) {
1473
1473
  return h.Undef(i) || !i.indexOf ? i : x(i, e);
1474
1474
  });
1475
1475
  }
1476
- let Hr = 0;
1477
- function Ve() {
1478
- const t = 370 + ++Hr;
1476
+ let Gr = 0;
1477
+ function Ie() {
1478
+ const t = 370 + ++Gr;
1479
1479
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1480
1480
  }
1481
1481
  function oe(t, e, r) {
1482
1482
  let i = t, s;
1483
1483
  return (e || "").split(".").forEach((n) => {
1484
- s && ((!i[s] || typeof i[s] != "object") && S(i, s, {}), i = i[s]), s = n;
1485
- }), S(i, s, r), i;
1484
+ s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1485
+ }), k(i, s, r), i;
1486
1486
  }
1487
1487
  function xe(t, e) {
1488
1488
  return {
@@ -1496,7 +1496,7 @@ function It(t, e) {
1496
1496
  return Pt([t], e || !1)[0];
1497
1497
  }
1498
1498
  function Pt(t, e) {
1499
- return Ce([], [...t], e || !1);
1499
+ return we([], [...t], e || !1);
1500
1500
  }
1501
1501
  function te(t, e) {
1502
1502
  return ee(Array.isArray(e) ? e : [e], t, { array: Ye, normal: et }), t;
@@ -1505,7 +1505,7 @@ function ht(t) {
1505
1505
  const e = h.Function(t.getRule) ? t.getRule() : t;
1506
1506
  return e.type || (e.type = "input"), e;
1507
1507
  }
1508
- function Gr(t, e) {
1508
+ function Jr(t, e) {
1509
1509
  return t ? (Object.keys(e || {}).forEach((r) => {
1510
1510
  e[r] && (t[r] = te(t[r] || {}, e[r]));
1511
1511
  }), t) : e;
@@ -1520,11 +1520,11 @@ function Tt(t, e) {
1520
1520
  function Y(t) {
1521
1521
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1522
1522
  }
1523
- function F(t, e) {
1523
+ function O(t, e) {
1524
1524
  try {
1525
1525
  e = t();
1526
1526
  } catch (r) {
1527
- Ur(r);
1527
+ Hr(r);
1528
1528
  }
1529
1529
  return e;
1530
1530
  }
@@ -1536,7 +1536,7 @@ function Xe(t, e) {
1536
1536
  });
1537
1537
  }), r;
1538
1538
  }
1539
- function Jr(t, e) {
1539
+ function Kr(t, e) {
1540
1540
  if (h.Object(t)) {
1541
1541
  const r = {};
1542
1542
  return Object.keys(t).forEach((i) => {
@@ -1545,7 +1545,7 @@ function Jr(t, e) {
1545
1545
  } else
1546
1546
  return Xe(t, e);
1547
1547
  }
1548
- function ke() {
1548
+ function Ee() {
1549
1549
  const t = {}, e = (r) => r || "default";
1550
1550
  return {
1551
1551
  setSlot(r, i) {
@@ -1561,7 +1561,7 @@ function ke() {
1561
1561
  const n = s();
1562
1562
  Array.isArray(n) ? i.push(...n) : i.push(n);
1563
1563
  } else h.Undef(s) || i.push(s);
1564
- }), Jr(i, r);
1564
+ }), Kr(i, r);
1565
1565
  },
1566
1566
  getSlots() {
1567
1567
  let r = [];
@@ -1584,9 +1584,9 @@ function ke() {
1584
1584
  function Se(t, e) {
1585
1585
  return Object.setPrototypeOf(t, e), t;
1586
1586
  }
1587
- const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, fe = {
1587
+ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1588
1588
  "==": (t, e) => JSON.stringify(t) === JSON.stringify(dt(t, e)),
1589
- "!=": (t, e) => !fe["=="](t, e),
1589
+ "!=": (t, e) => !ce["=="](t, e),
1590
1590
  ">": (t, e) => t > e,
1591
1591
  ">=": (t, e) => t >= e,
1592
1592
  "<": (t, e) => t < e,
@@ -1595,13 +1595,13 @@ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1595
1595
  return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
1596
1596
  },
1597
1597
  notOn(t, e) {
1598
- return !fe.on(t, e);
1598
+ return !ce.on(t, e);
1599
1599
  },
1600
1600
  in(t, e) {
1601
1601
  return e && e.indexOf && e.indexOf(t) > -1;
1602
1602
  },
1603
1603
  notIn(t, e) {
1604
- return !fe.in(t, e);
1604
+ return !ce.in(t, e);
1605
1605
  },
1606
1606
  between(t, e) {
1607
1607
  return t > e[0] && t < e[1];
@@ -1624,7 +1624,7 @@ function B(t, e) {
1624
1624
  t != null && (t = t[r]);
1625
1625
  }), t;
1626
1626
  }
1627
- function Kr(t) {
1627
+ function Wr(t) {
1628
1628
  const e = /{{\s*(.*?)\s*}}/g;
1629
1629
  let r;
1630
1630
  const i = {};
@@ -1638,15 +1638,27 @@ function pt(t) {
1638
1638
  n === 0 ? i = s : i += "." + s, r.push(i);
1639
1639
  }), r.join(" && ");
1640
1640
  }
1641
- const De = (t, e) => {
1641
+ function Bt(t) {
1642
+ const e = [];
1643
+ let r = "", i = 0;
1644
+ for (let s = 0; s < t.length; s++) {
1645
+ const n = t[s];
1646
+ n === "[" ? (i === 0 && r && (e.push({ type: "key", value: r }), r = ""), i++, r += n) : n === "]" ? (i--, r += n, i === 0 && (e.push({
1647
+ type: "bracket",
1648
+ value: Bt(r.slice(1, -1))
1649
+ }), r = "")) : n === "." && i === 0 ? r && (e.push({ type: "key", value: r }), r = "") : r += n;
1650
+ }
1651
+ return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
1652
+ }
1653
+ const je = (t, e) => {
1642
1654
  if (!(!t || t === e || !t.$props)) {
1643
1655
  if (t.$props.formCreateInject)
1644
1656
  return t.$props.formCreateInject;
1645
1657
  if (t.$parent)
1646
- return De(t.$parent, e);
1658
+ return je(t.$parent, e);
1647
1659
  }
1648
1660
  };
1649
- function Wr(t, e, r) {
1661
+ function zr(t, e, r) {
1650
1662
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1651
1663
  return {
1652
1664
  name: i,
@@ -1697,102 +1709,102 @@ function Wr(t, e, r) {
1697
1709
  return this.fc.render();
1698
1710
  },
1699
1711
  setup(s) {
1700
- const n = ar().proxy;
1701
- lr("parentFC", n);
1702
- const o = ur("parentFC", null);
1712
+ const n = lr().proxy;
1713
+ ur("parentFC", n);
1714
+ const o = fr("parentFC", null);
1703
1715
  let a = o;
1704
1716
  if (o)
1705
1717
  for (; a.parent; )
1706
1718
  a = a.parent;
1707
1719
  else
1708
1720
  a = n;
1709
- const { rule: l, value: u, subForm: f, inFor: d } = ut(s), g = ne({
1721
+ const { rule: l, value: u, subForm: f, inFor: d } = ut(s), p = ne({
1710
1722
  ctxInject: {},
1711
1723
  destroyed: !1,
1712
1724
  isShow: !0,
1713
1725
  unique: 1,
1714
1726
  renderRule: [...l.value || []],
1715
1727
  updateValue: JSON.stringify(u.value || {})
1716
- }), m = new t(n), y = m.api(), w = d.value, O = () => {
1728
+ }), y = new t(n), g = y.api(), w = d.value, F = () => {
1717
1729
  if (o) {
1718
- const k = De(n, o);
1719
- if (k) {
1720
- let E;
1721
- w ? (E = H(k.getSubForm()), E.push(y)) : E = y, k.subForm(E);
1730
+ const E = je(n, o);
1731
+ if (E) {
1732
+ let R;
1733
+ w ? (R = H(E.getSubForm()), R.push(g)) : R = g, E.subForm(R);
1722
1734
  }
1723
1735
  }
1724
1736
  }, G = () => {
1725
- const k = De(n, o);
1726
- if (k)
1737
+ const E = je(n, o);
1738
+ if (E)
1727
1739
  if (w) {
1728
- const E = H(k.getSubForm()), N = E.indexOf(y);
1729
- N > -1 && E.splice(N, 1);
1740
+ const R = H(E.getSubForm()), M = R.indexOf(g);
1741
+ M > -1 && R.splice(M, 1);
1730
1742
  } else
1731
- k.subForm();
1743
+ E.subForm();
1732
1744
  };
1733
- let T = null;
1734
- fr(() => {
1745
+ let V = null;
1746
+ cr(() => {
1735
1747
  L(() => {
1736
- let k = "";
1737
- const E = s.option && s.option.globalClass || {};
1738
- Object.keys(E).forEach((N) => {
1739
- let pe = "";
1740
- E[N].style && Object.keys(E[N].style).forEach((W) => {
1741
- pe += be(W) + ":" + E[N].style[W] + ";";
1742
- }), E[N].content && (pe += E[N].content + ";"), pe && (k += `.${N}{${pe}}`);
1743
- }), s.option && s.option.style && (k += s.option.style), T || (T = document.createElement("style"), T.type = "text/css", document.head.appendChild(T)), T.innerHTML = k || "";
1748
+ let E = "";
1749
+ const R = s.option && s.option.globalClass || {};
1750
+ Object.keys(R).forEach((M) => {
1751
+ let me = "";
1752
+ R[M].style && Object.keys(R[M].style).forEach((W) => {
1753
+ me += ve(W) + ":" + R[M].style[W] + ";";
1754
+ }), R[M].content && (me += R[M].content + ";"), me && (E += `.${M}{${me}}`);
1755
+ }), s.option && s.option.style && (E += s.option.style), V || (V = document.createElement("style"), V.type = "text/css", document.head.appendChild(V)), V.innerHTML = E || "";
1744
1756
  }, () => {
1745
1757
  });
1746
1758
  });
1747
- const M = se(() => {
1748
- m.bus.$emit("$loadData.$topForm");
1749
- }, 100), he = se(function() {
1750
- m.bus.$emit("$loadData.$scopeForm");
1751
- }, 100), Ie = se(() => {
1752
- m.bus.$emit("$loadData.$form");
1753
- }, 100), de = (k) => {
1754
- m.bus.$emit("change-$form." + k);
1759
+ const N = se(() => {
1760
+ y.bus.$emit("$loadData.$topForm");
1761
+ }, 100), de = se(function() {
1762
+ y.bus.$emit("$loadData.$scopeForm");
1763
+ }, 100), Pe = se(() => {
1764
+ y.bus.$emit("$loadData.$form");
1765
+ }, 100), pe = (E) => {
1766
+ y.bus.$emit("change-$form." + E);
1755
1767
  };
1756
- return cr(() => {
1757
- o && (y.top.bus.$on("$loadData.$form", M), y.top.bus.$on("change", de)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", he), m.mounted();
1758
- }), hr(() => {
1759
- o && (y.top.bus.$off("$loadData.$form", M), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), T && document.head.removeChild(T), G(), g.destroyed = !0, m.unmount();
1768
+ return hr(() => {
1769
+ o && (g.top.bus.$on("$loadData.$form", N), g.top.bus.$on("change", pe)), g !== g.scope && g.scope.bus.$on("$loadData.$scopeForm", de), y.mounted();
1760
1770
  }), dr(() => {
1761
- m.updated();
1762
- }), L(f, (k) => {
1763
- k ? O() : G();
1771
+ o && (g.top.bus.$off("$loadData.$form", N), g.top.bus.$off("change", pe)), g !== g.scope && g.scope.bus.$off("$loadData.$scopeForm", de), G(), p.destroyed = !0, y.unmount(), V && (V.parentNode || V.parentElement) && document.head.removeChild(V);
1772
+ }), pr(() => {
1773
+ y.updated();
1774
+ }), L(f, (E) => {
1775
+ E ? F() : G();
1764
1776
  }, { immediate: !0 }), L(() => s.option, () => {
1765
- m.initOptions(), y.refresh();
1766
- }, { deep: !0 }), L(() => [...l.value], (k) => {
1767
- m.$handle.isBreakWatch() || k.length === g.renderRule.length && k.every((E) => g.renderRule.indexOf(E) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1777
+ y.initOptions(), g.refresh();
1778
+ }, { deep: !0 }), L(() => [...l.value], (E) => {
1779
+ y.$handle.isBreakWatch() || E.length === p.renderRule.length && E.every((R) => p.renderRule.indexOf(R) > -1) || (y.$handle.updateAppendData(), y.$handle.reloadRule(l.value), n.renderRule());
1768
1780
  }), L(() => [s.disabled, s.preview], () => {
1769
- y.refresh();
1770
- }), L(u, (k) => {
1771
- _e(k || {}) !== g.updateValue && (y.config.forceCoverValue ? y.coverValue(k || {}) : y.setValue(k || {}));
1781
+ g.refresh();
1782
+ }), L(u, (E) => {
1783
+ Ce(E || {}) !== p.updateValue && (g.config.forceCoverValue ? g.coverValue(E || {}) : g.setValue(E || {}));
1772
1784
  }, { deep: !0, flush: "post" }), L(() => s.index, () => {
1773
- y.coverValue({}), m.$handle.updateAppendData(), I(() => {
1774
- I(() => {
1775
- y.clearValidateState();
1785
+ g.coverValue({}), y.$handle.updateAppendData(), P(() => {
1786
+ P(() => {
1787
+ g.clearValidateState();
1776
1788
  });
1777
1789
  });
1778
1790
  }, { flush: "sync" }), q(v({
1779
- fc: ge(m),
1780
- parent: o && ge(o),
1781
- top: ge(a),
1782
- fapi: ge(y)
1783
- }, ut(g)), {
1784
- getGroupInject: () => De(n, o),
1791
+ fc: ye(y),
1792
+ parent: o && ye(o),
1793
+ top: ye(a),
1794
+ fapi: ye(g)
1795
+ }, ut(p)), {
1796
+ getGroupInject: () => je(n, o),
1785
1797
  refresh() {
1786
- ++g.unique;
1798
+ ++p.unique;
1787
1799
  },
1788
1800
  renderRule() {
1789
- g.renderRule = [...l.value || []];
1801
+ p.renderRule = [...l.value || []];
1790
1802
  },
1791
- updateValue(k) {
1792
- if (g.destroyed) return;
1793
- const E = _e(k);
1794
- g.updateValue !== E && (g.updateValue = E, n.$emit("update:value", k), I(() => {
1795
- Ie(), o ? f.value || he() : (M(), he());
1803
+ updateValue(E) {
1804
+ if (p.destroyed) return;
1805
+ const R = Ce(E);
1806
+ p.updateValue !== R && (p.updateValue = R, n.$emit("update:value", E), P(() => {
1807
+ Pe(), o ? f.value || de() : (N(), de());
1796
1808
  }));
1797
1809
  }
1798
1810
  });
@@ -1802,7 +1814,7 @@ function Wr(t, e, r) {
1802
1814
  }
1803
1815
  };
1804
1816
  }
1805
- function Bt() {
1817
+ function Lt() {
1806
1818
  return {
1807
1819
  props: {},
1808
1820
  on: {},
@@ -1814,37 +1826,37 @@ function Bt() {
1814
1826
  value: void 0
1815
1827
  };
1816
1828
  }
1817
- function P(t, e) {
1829
+ function T(t, e) {
1818
1830
  return (r, i, s, n = {}) => {
1819
1831
  const o = new rt(t, r, i, s, n);
1820
1832
  return e && (h.Function(e) ? e(o) : o.props(e)), o;
1821
1833
  };
1822
1834
  }
1823
1835
  function rt(t, e, r, i, s) {
1824
- this._data = _(Bt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1836
+ this._data = _(Lt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1825
1837
  }
1826
1838
  _(rt.prototype, {
1827
1839
  getRule() {
1828
1840
  return this._data;
1829
1841
  },
1830
1842
  setProp(t, e) {
1831
- return S(this._data, t, e), this;
1843
+ return k(this._data, t, e), this;
1832
1844
  },
1833
1845
  _clone() {
1834
1846
  const t = new this.constructor();
1835
1847
  return t._data = It(this._data), t;
1836
1848
  }
1837
1849
  });
1838
- function Lt(t) {
1850
+ function Nt(t) {
1839
1851
  t.forEach((e) => {
1840
1852
  rt.prototype[e] = function(r) {
1841
1853
  return te(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1842
1854
  };
1843
1855
  });
1844
1856
  }
1845
- Lt(Dt());
1846
- const Mt = P("");
1847
- function zr(t, e, r) {
1857
+ Nt(Dt());
1858
+ const Mt = T("");
1859
+ function xr(t, e, r) {
1848
1860
  let i = Mt("", e);
1849
1861
  return i._data.type = t, i._data.title = r, i;
1850
1862
  }
@@ -1852,15 +1864,15 @@ function mt(t, e, r, i) {
1852
1864
  let s = Mt("", r);
1853
1865
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1854
1866
  }
1855
- function xr() {
1867
+ function Xr() {
1856
1868
  return {
1857
- create: zr,
1869
+ create: xr,
1858
1870
  createTmp: mt,
1859
1871
  template: mt,
1860
- factory: P
1872
+ factory: T
1861
1873
  };
1862
1874
  }
1863
- function Xr(t, e, r) {
1875
+ function Zr(t, e, r) {
1864
1876
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1865
1877
  return s.status = r.status, s.url = t, s;
1866
1878
  }
@@ -1874,7 +1886,7 @@ function gt(t) {
1874
1886
  return e;
1875
1887
  }
1876
1888
  }
1877
- function Nt(t) {
1889
+ function qt(t) {
1878
1890
  if (typeof XMLHttpRequest == "undefined")
1879
1891
  return;
1880
1892
  const e = new XMLHttpRequest();
@@ -1889,7 +1901,7 @@ function Nt(t) {
1889
1901
  t.onError(o);
1890
1902
  }, e.onload = function() {
1891
1903
  if (e.status < 200 || e.status >= 300)
1892
- return t.onError(Xr(r, t, e), gt(e));
1904
+ return t.onError(Zr(r, t, e), gt(e));
1893
1905
  t.onSuccess(gt(e));
1894
1906
  }, e.open(t.method || "get", r, !0);
1895
1907
  let i;
@@ -1903,7 +1915,7 @@ function Nt(t) {
1903
1915
  }
1904
1916
  function yt(t, e, r) {
1905
1917
  return new Promise((i, s) => {
1906
- (e || Nt)(q(v({}, t), {
1918
+ (e || qt)(q(v({}, t), {
1907
1919
  onSuccess(n) {
1908
1920
  let o = (l) => l;
1909
1921
  const a = x(t.parse);
@@ -1915,10 +1927,10 @@ function yt(t, e, r) {
1915
1927
  }));
1916
1928
  });
1917
1929
  }
1918
- function ve(t) {
1930
+ function _e(t) {
1919
1931
  return K(t);
1920
1932
  }
1921
- function Zr(t) {
1933
+ function Qr(t) {
1922
1934
  function e(n) {
1923
1935
  return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1924
1936
  }
@@ -1926,7 +1938,7 @@ function Zr(t) {
1926
1938
  h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1927
1939
  const u = t.fieldCtx[l] || t.nameCtx[l];
1928
1940
  u && u.forEach((f) => {
1929
- S(f.rule, o, a), t.$render.clearCache(f);
1941
+ k(f.rule, o, a), t.$render.clearCache(f);
1930
1942
  });
1931
1943
  });
1932
1944
  }
@@ -2002,14 +2014,14 @@ function Zr(t) {
2002
2014
  if (n == null || typeof n == "boolean") {
2003
2015
  const o = {};
2004
2016
  return Object.keys(t.form).forEach((a) => {
2005
- (n === !0 || t.ignoreFields.indexOf(a) === -1) && (o[a] = ve(t.form[a]));
2017
+ (n === !0 || t.ignoreFields.indexOf(a) === -1) && (o[a] = _e(t.form[a]));
2006
2018
  }), o;
2007
2019
  } else
2008
2020
  return e(n).reduce((o, a) => (o[a] = s.getValue(a), o), {});
2009
2021
  },
2010
2022
  getValue(n) {
2011
2023
  const o = t.getFieldCtx(n);
2012
- return o ? ve(o.rule.value) : t.options.appendValue !== !1 && D(t.appendData, n) ? ve(t.appendData[n]) : void 0;
2024
+ return o ? _e(o.rule.value) : t.options.appendValue !== !1 && D(t.appendData, n) ? _e(t.appendData[n]) : void 0;
2013
2025
  },
2014
2026
  coverValue(n) {
2015
2027
  const o = v({}, n || {});
@@ -2019,7 +2031,7 @@ function Zr(t) {
2019
2031
  if (l) {
2020
2032
  const u = D(n, a);
2021
2033
  l.forEach((f) => {
2022
- f.rule.value = u ? n[a] : void 0;
2034
+ k(f.rule, "value", u ? n[a] : void 0);
2023
2035
  }), delete o[a];
2024
2036
  }
2025
2037
  }), _(t.appendData, o);
@@ -2032,7 +2044,7 @@ function Zr(t) {
2032
2044
  const l = t.fieldCtx[a];
2033
2045
  if (!l) return t.appendData[a] = o[a];
2034
2046
  l.forEach((u) => {
2035
- u.rule.value = o[a];
2047
+ k(u.rule, "value", o[a]);
2036
2048
  });
2037
2049
  });
2038
2050
  }, !0);
@@ -2096,7 +2108,7 @@ function Zr(t) {
2096
2108
  disabled(n, o) {
2097
2109
  e(o).forEach((a) => {
2098
2110
  t.getCtxs(a).forEach((l) => {
2099
- S(l.rule.props, "disabled", !!n);
2111
+ k(l.rule.props, "disabled", !!n);
2100
2112
  });
2101
2113
  }), t.refresh();
2102
2114
  },
@@ -2154,7 +2166,7 @@ function Zr(t) {
2154
2166
  t.$manager.updateOptions(t.options), s.refresh();
2155
2167
  },
2156
2168
  hideForm: (n) => {
2157
- S(t.vm, "isShow", !n);
2169
+ k(t.vm, "isShow", !n);
2158
2170
  },
2159
2171
  changeStatus: () => t.changeStatus,
2160
2172
  clearChangeStatus: () => {
@@ -2199,7 +2211,7 @@ function Zr(t) {
2199
2211
  },
2200
2212
  setEffect(n, o, a) {
2201
2213
  const l = t.getCtx(n);
2202
- l && o && (o[0] === "$" && (o = o.substr(1)), D(l.rule, "$" + o) && S(l.rule, "$" + o, a), D(l.rule, "effect") || S(l.rule, "effect", {}), S(l.rule.effect, o, a));
2214
+ l && o && (o[0] === "$" && (o = o.substr(1)), D(l.rule, "$" + o) && k(l.rule, "$" + o, a), D(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2203
2215
  },
2204
2216
  clearEffectData(n, o) {
2205
2217
  const a = t.getCtx(n);
@@ -2219,15 +2231,15 @@ function Zr(t) {
2219
2231
  resetFields(n) {
2220
2232
  e(n).forEach((o) => {
2221
2233
  t.getCtxs(o).forEach((a) => {
2222
- t.$render.clearCache(a), a.rule.value = ve(a.defaultValue);
2234
+ t.$render.clearCache(a), a.rule.value = _e(a.defaultValue);
2223
2235
  });
2224
- }), I(() => {
2225
- I(() => {
2226
- I(() => {
2236
+ }), P(() => {
2237
+ P(() => {
2238
+ P(() => {
2227
2239
  s.clearValidateState(n);
2228
2240
  });
2229
2241
  });
2230
- }), n == null && (h.Function(t.options.onReset) && F(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2242
+ }), n == null && (h.Function(t.options.onReset) && O(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2231
2243
  },
2232
2244
  method(n, o) {
2233
2245
  const a = s.el(n);
@@ -2236,10 +2248,10 @@ function Zr(t) {
2236
2248
  return (...l) => a[o](...l);
2237
2249
  },
2238
2250
  exec(n, o, ...a) {
2239
- return F(() => s.method(n, o)(...a));
2251
+ return O(() => s.method(n, o)(...a));
2240
2252
  },
2241
2253
  toJson(n) {
2242
- return _e(s.rule, n);
2254
+ return Ce(s.rule, n);
2243
2255
  },
2244
2256
  trigger(n, o, ...a) {
2245
2257
  const l = s.el(n);
@@ -2263,8 +2275,8 @@ function Zr(t) {
2263
2275
  return [];
2264
2276
  const u = [];
2265
2277
  return ((d) => {
2266
- d && d.forEach((g) => {
2267
- typeof g == "object" && (g.field && u.push(g), u.push(...s.getChildrenRuleList(g)));
2278
+ d && d.forEach((p) => {
2279
+ typeof p == "object" && (p.field && u.push(p), u.push(...s.getChildrenRuleList(p)));
2268
2280
  });
2269
2281
  })(a ? a.loadChildrenPending() : l.children), u;
2270
2282
  },
@@ -2280,13 +2292,13 @@ function Zr(t) {
2280
2292
  }
2281
2293
  },
2282
2294
  getChildrenFormData(n, o) {
2283
- return s.getChildrenRuleList(n).reduce((l, u) => ((u.ignore !== !0 || o === !0) && (l[u.field] = ve(u.value)), l), {});
2295
+ return s.getChildrenRuleList(n).reduce((l, u) => ((u.ignore !== !0 || o === !0) && (l[u.field] = _e(u.value)), l), {});
2284
2296
  },
2285
2297
  setChildrenFormData(n, o, a) {
2286
2298
  const l = s.getChildrenRuleList(n);
2287
2299
  t.deferSyncValue(() => {
2288
2300
  l.forEach((u) => {
2289
- D(o, u.field) ? u.value = o[u.field] : a && (u.value = void 0);
2301
+ D(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2290
2302
  });
2291
2303
  });
2292
2304
  },
@@ -2298,9 +2310,9 @@ function Zr(t) {
2298
2310
  getGlobalData(n) {
2299
2311
  return new Promise((o, a) => {
2300
2312
  let l = s.options.globalData[n];
2301
- l || o(t.fc.loadData[n]), l.type === "fetch" ? s.fetch(l).then((u) => {
2313
+ l ? l.type === "fetch" ? s.fetch(l).then((u) => {
2302
2314
  o(u);
2303
- }).catch(a) : o(l.data);
2315
+ }).catch(a) : o(l.data) : o(t.fc.loadData[n]);
2304
2316
  });
2305
2317
  },
2306
2318
  renderRule(n, o, a) {
@@ -2315,7 +2327,7 @@ function Zr(t) {
2315
2327
  t.bus.$once("next-tick", n), t.refresh();
2316
2328
  },
2317
2329
  nextRefresh(n) {
2318
- t.nextRefresh(), n && F(n);
2330
+ t.nextRefresh(), n && O(n);
2319
2331
  },
2320
2332
  emit(n, ...o) {
2321
2333
  t.vm.$emit(n, ...o);
@@ -2327,9 +2339,9 @@ function Zr(t) {
2327
2339
  fetch(n) {
2328
2340
  return new Promise((o, a) => {
2329
2341
  n = K(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((l) => {
2330
- F(() => n.onSuccess && n.onSuccess(l)), o(l);
2342
+ O(() => n.onSuccess && n.onSuccess(l)), o(l);
2331
2343
  }).catch((l) => {
2332
- F(() => n.onError && n.onError(l)), a(l);
2344
+ O(() => n.onError && n.onError(l)), a(l);
2333
2345
  })).catch((l) => {
2334
2346
  });
2335
2347
  });
@@ -2337,11 +2349,11 @@ function Zr(t) {
2337
2349
  watchFetch(n, o, a, l) {
2338
2350
  return t.fc.watchLoadData((u, f) => {
2339
2351
  let d = K(n);
2340
- d = t.loadFetchVar(d, u), !(l && l(d, f) === !1) && t.beforeFetch(d).then(() => yt(d, t.fc.create.fetch, s).then((g) => {
2341
- F(() => d.onSuccess && d.onSuccess(g)), o && o(g, f);
2342
- }).catch((g) => {
2343
- F(() => d.onError && d.onError(g)), a && a(g);
2344
- })).catch((g) => {
2352
+ d = t.loadFetchVar(d, u), !(l && l(d, f) === !1) && t.beforeFetch(d).then(() => yt(d, t.fc.create.fetch, s).then((p) => {
2353
+ O(() => d.onSuccess && d.onSuccess(p)), o && o(p, f);
2354
+ }).catch((p) => {
2355
+ O(() => d.onError && d.onError(p)), a && a(p);
2356
+ })).catch((p) => {
2345
2357
  });
2346
2358
  }, n.wait == null ? 1e3 : n.wait);
2347
2359
  },
@@ -2371,7 +2383,7 @@ function Zr(t) {
2371
2383
  };
2372
2384
  }), s.changeValue = s.changeField = s.setValue, s;
2373
2385
  }
2374
- function Qr(t) {
2386
+ function Yr(t) {
2375
2387
  _(t.prototype, {
2376
2388
  initCache() {
2377
2389
  this.clearCacheAll();
@@ -2407,12 +2419,12 @@ function J(t) {
2407
2419
  const e = t.replace(/(-[a-z])/g, function(r) {
2408
2420
  return r.replace("-", "").toLocaleUpperCase();
2409
2421
  });
2410
- return qt(e);
2422
+ return Ut(e);
2411
2423
  }
2412
- function qt(t) {
2424
+ function Ut(t) {
2413
2425
  return t.replace(t[0], t[0].toLowerCase());
2414
2426
  }
2415
- function Yr(t) {
2427
+ function ei(t) {
2416
2428
  _(t.prototype, {
2417
2429
  initRender() {
2418
2430
  this.cacheConfig = {};
@@ -2421,7 +2433,7 @@ function Yr(t) {
2421
2433
  const r = (i) => {
2422
2434
  if (i) {
2423
2435
  let s;
2424
- 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);
2436
+ return e.rule.field && (s = i.$scopedSlots["field-" + ve(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + ve(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2425
2437
  }
2426
2438
  };
2427
2439
  return r(this.vm);
@@ -2430,7 +2442,7 @@ function Yr(t) {
2430
2442
  if (!this.vm.isShow)
2431
2443
  return;
2432
2444
  this.$manager.beforeRender();
2433
- const e = ke();
2445
+ const e = Ee();
2434
2446
  return this.sort.forEach((r) => {
2435
2447
  this.renderSlot(e, this.$handle.ctxs[r]);
2436
2448
  }), this.$manager.render(e);
@@ -2441,7 +2453,7 @@ function Yr(t) {
2441
2453
  })) : e.setSlot(r.rule.slot, this.renderCtx(r, i));
2442
2454
  },
2443
2455
  mergeGlobal(e) {
2444
- this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ye(() => {
2456
+ this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = $e(() => {
2445
2457
  const i = this.$handle.options.global;
2446
2458
  return te({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2447
2459
  })), e.prop = te({}, [this.cacheConfig[e.trueType].value, e.prop]));
@@ -2491,23 +2503,23 @@ function Yr(t) {
2491
2503
  model: n.model || {},
2492
2504
  slotValue: l
2493
2505
  };
2494
- l.length && i.slotUpdate && F(() => i.slotUpdate(u));
2506
+ l.length && i.slotUpdate && O(() => i.slotUpdate(u));
2495
2507
  let f = [];
2496
2508
  const d = e.loadChildrenPending();
2497
- e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach((y) => {
2509
+ e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach((g) => {
2498
2510
  f.push(this.renderRule({
2499
2511
  type: "template",
2500
- slot: y
2512
+ slot: g
2501
2513
  }, (() => {
2502
- if (h.Function(n.renderSlots[y]))
2503
- return F(() => n.renderSlots[y]());
2504
- const w = this.parseSide(n.renderSlots[y], e);
2514
+ if (h.Function(n.renderSlots[g]))
2515
+ return O(() => n.renderSlots[g]());
2516
+ const w = this.parseSide(n.renderSlots[g], e);
2505
2517
  return this.renderRule(w);
2506
2518
  })()));
2507
2519
  });
2508
- const g = this.getTypeSlot(e);
2509
- let m;
2510
- return g ? (u.children = f, m = g(u)) : m = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), m = this.renderSides(m, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((y) => !y || !y.tag ? y : this.none(y)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2520
+ const p = this.getTypeSlot(e);
2521
+ let y;
2522
+ return p ? (u.children = f, y = p(u)) : y = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), y = this.renderSides(y, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), y = this.$manager.makeWrap(e, y)), e.none && (Array.isArray(y) ? y = y.map((g) => !g || !g.tag ? g : this.none(g)) : y = this.none(y)), o && this.setCache(e, () => this.stable(y), r), y;
2511
2523
  }, this.setCache(e, s, r);
2512
2524
  }
2513
2525
  return (...s) => {
@@ -2588,7 +2600,7 @@ function Yr(t) {
2588
2600
  if (l.indexOf("native.") === 0)
2589
2601
  o[l.replace("native.", "")] = n[l], delete n[l];
2590
2602
  else if (this.$handle.options.transformEventName !== !1) {
2591
- const u = be(l);
2603
+ const u = ve(l);
2592
2604
  u !== l.toLowerCase() && !n[u] && (n[u] = n[l]);
2593
2605
  }
2594
2606
  }), e.prop.on = n;
@@ -2644,7 +2656,7 @@ function Yr(t) {
2644
2656
  },
2645
2657
  renderChildren(e, r, i) {
2646
2658
  if (!h.trueArray(e)) return [];
2647
- const s = ke();
2659
+ const s = Ee();
2648
2660
  return e.map((n) => {
2649
2661
  if (n) {
2650
2662
  if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
@@ -2653,7 +2665,7 @@ function Yr(t) {
2653
2665
  }) : n);
2654
2666
  if (n.__fc__)
2655
2667
  return this.renderSlot(s, n.__fc__, r);
2656
- n.type && I(() => {
2668
+ n.type && P(() => {
2657
2669
  this.$handle.loadChildren(e, r), this.$handle.refresh();
2658
2670
  });
2659
2671
  }
@@ -2661,7 +2673,7 @@ function Yr(t) {
2661
2673
  },
2662
2674
  defaultRender(e, r) {
2663
2675
  const i = e.prop;
2664
- return i.component ? typeof i.component == "string" ? this.vNode.make(i.component, i, r) : this.vNode.makeComponent(i.component, i, r) : this.vNode[e.type] ? this.vNode[e.type](i, r) : this.vNode[e.originType] ? this.vNode[e.originType](i, r) : this.vNode.make(qt(i.type), i, r);
2676
+ return i.component ? typeof i.component == "string" ? this.vNode.make(i.component, i, r) : this.vNode.makeComponent(i.component, i, r) : this.vNode[e.type] ? this.vNode[e.type](i, r) : this.vNode[e.originType] ? this.vNode[e.originType](i, r) : this.vNode.make(Ut(i.type), i, r);
2665
2677
  },
2666
2678
  createChildrenVnodes(e, r, i) {
2667
2679
  this.force = i !== !1, this.tmpInput = r;
@@ -2670,7 +2682,7 @@ function Yr(t) {
2670
2682
  },
2671
2683
  createRuleVnode(e, r, i) {
2672
2684
  this.force = i !== !1, this.tmpInput = r;
2673
- const s = ke();
2685
+ const s = Ee();
2674
2686
  return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
2675
2687
  },
2676
2688
  renderRule(e, r, i) {
@@ -2685,7 +2697,7 @@ function Yr(t) {
2685
2697
  a && (s = J(a));
2686
2698
  }
2687
2699
  if (!s) return;
2688
- const n = ke();
2700
+ const n = Ee();
2689
2701
  h.trueArray(e.children) && e.children.forEach((a) => {
2690
2702
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2691
2703
  });
@@ -2694,7 +2706,7 @@ function Yr(t) {
2694
2706
  }
2695
2707
  });
2696
2708
  }
2697
- let ei = 1;
2709
+ let ti = 1;
2698
2710
  function it(t) {
2699
2711
  _(this, {
2700
2712
  $handle: t,
@@ -2704,7 +2716,7 @@ function it(t) {
2704
2716
  vNode: new t.fc.CreateNode(t.vm),
2705
2717
  force: !1,
2706
2718
  tmpInput: null,
2707
- id: ei++
2719
+ id: ti++
2708
2720
  }), Tt(this, {
2709
2721
  options() {
2710
2722
  return t.options;
@@ -2714,9 +2726,9 @@ function it(t) {
2714
2726
  }
2715
2727
  }), this.initCache(), this.initRender();
2716
2728
  }
2717
- Qr(it);
2718
2729
  Yr(it);
2719
- function ti(t) {
2730
+ ei(it);
2731
+ function ri(t) {
2720
2732
  _(t.prototype, {
2721
2733
  parseInjectEvent(e, r) {
2722
2734
  const i = e.inject || this.options.injectEvent;
@@ -2743,17 +2755,17 @@ function ti(t) {
2743
2755
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: l } = s, u = s[r ? "emit" : "nativeEmit"] || [];
2744
2756
  return h.trueArray(u) && u.forEach((f) => {
2745
2757
  if (!f) return;
2746
- let d, g = n || o || a;
2747
- if (h.Object(f) && (d = f.inject, f = f.name, g = f.prefix || g), g) {
2748
- r || (g = `native-${g}`);
2749
- const m = be(`${g}-${f}`), y = (...w) => {
2750
- this.vm.$emit(m, ...w), this.vm.$emit("emit-event", m, ...w), this.bus.$emit(m, ...w);
2758
+ let d, p = n || o || a;
2759
+ if (h.Object(f) && (d = f.inject, f = f.name, p = f.prefix || p), p) {
2760
+ r || (p = `native-${p}`);
2761
+ const y = ve(`${p}-${f}`), g = (...w) => {
2762
+ this.vm.$emit(y, ...w), this.vm.$emit("emit-event", y, ...w), this.bus.$emit(y, ...w);
2751
2763
  };
2752
- if (y.__emit = !0, !d && l === !1)
2753
- i[f] = y;
2764
+ if (g.__emit = !0, !d && l === !1)
2765
+ i[f] = g;
2754
2766
  else {
2755
2767
  let w = d || l || this.options.injectEvent;
2756
- i[f] = h.Undef(w) ? y : this.inject(s, y, w);
2768
+ i[f] = h.Undef(w) ? g : this.inject(s, g, w);
2757
2769
  }
2758
2770
  }
2759
2771
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2783,24 +2795,36 @@ function ti(t) {
2783
2795
  },
2784
2796
  loadStrVar(e, r, i) {
2785
2797
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2786
- const s = e, n = Kr(e);
2787
- let o;
2788
- if (n.forEach((a) => {
2789
- const l = a.split("||"), u = l[0].trim();
2790
- if (u) {
2791
- const f = (l[1] || "").trim();
2792
- let d, g = !1;
2793
- if (i && u.indexOf("$form.") === 0) {
2794
- const m = u.split(".");
2795
- m.shift(), D(i.value, m[0]) && (g = !0, d = r ? r({
2796
- id: "$form." + m[0] + "_" + i.rule.__fc__.id,
2797
- getValue: () => B(i.value, m)
2798
- }) : B(i.value, m));
2799
- }
2800
- g || (d = r ? r(u, f) : this.fc.getLoadData(u, f)), o = d, e = e.replaceAll(`{{${a}}}`, d == null ? "" : d);
2798
+ const s = e, n = Wr(e), o = (u) => {
2799
+ let f = !1, d;
2800
+ if (i && u.indexOf("$form.") === 0) {
2801
+ const p = u.split(".");
2802
+ p.shift(), D(i.value, p[0]) && (f = !0, d = r ? r({
2803
+ id: "$form." + p[0] + "_" + i.rule.__fc__.id,
2804
+ getValue: () => B(i.value, p)
2805
+ }) : B(i.value, p));
2806
+ }
2807
+ return f || (d = r ? r(u) : this.fc.getLoadData(u)), d;
2808
+ }, a = (u) => {
2809
+ const f = [];
2810
+ u.forEach((p) => {
2811
+ p.key ? f.push(p.key) : p.children && f.push(a(p.children));
2812
+ });
2813
+ let d = !1;
2814
+ return f.forEach((p, y) => {
2815
+ p != null && (p.indexOf("'") === 0 || p.indexOf('"') === 0) && (f[y] = p.slice(1, -1), d = !0);
2816
+ }), f.length === 1 && (d || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2817
+ };
2818
+ let l;
2819
+ if (n.forEach((u) => {
2820
+ const f = u.split("||"), d = f[0].trim();
2821
+ if (d) {
2822
+ const p = (f[1] || "").trim(), y = Bt(d);
2823
+ let g = O(() => a(y));
2824
+ (g == null || g === "") && f.length > 1 && (g = p), l = g, e = e.replaceAll(`{{${u}}}`, g == null ? "" : g);
2801
2825
  }
2802
2826
  }), n.length === 1 && s === `{{${n[0]}}}`)
2803
- return o;
2827
+ return l;
2804
2828
  }
2805
2829
  return e;
2806
2830
  },
@@ -2820,12 +2844,12 @@ function ti(t) {
2820
2844
  });
2821
2845
  }
2822
2846
  const $t = ["hook:updated", "hook:mounted"];
2823
- function ri(t) {
2847
+ function ii(t) {
2824
2848
  _(t.prototype, {
2825
2849
  usePage() {
2826
2850
  const e = this.options.page;
2827
2851
  if (!e) return;
2828
- let r = 25, i = ii(this.rules);
2852
+ let r = 25, i = ni(this.rules);
2829
2853
  h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), _(this, {
2830
2854
  first: r,
2831
2855
  limit: i,
@@ -2840,10 +2864,10 @@ function ri(t) {
2840
2864
  }
2841
2865
  });
2842
2866
  }
2843
- function ii(t) {
2867
+ function ni(t) {
2844
2868
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2845
2869
  }
2846
- function ni(t) {
2870
+ function si(t) {
2847
2871
  _(t.prototype, {
2848
2872
  clearNextTick() {
2849
2873
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
@@ -2858,15 +2882,15 @@ function ni(t) {
2858
2882
  }
2859
2883
  });
2860
2884
  }
2861
- function si(t) {
2885
+ function oi(t) {
2862
2886
  Object.defineProperties(t.origin, {
2863
- __fc__: xe(ge(t), !0)
2887
+ __fc__: xe(ye(t), !0)
2864
2888
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2865
- __fc__: xe(ge(t), !0)
2889
+ __fc__: xe(ye(t), !0)
2866
2890
  });
2867
2891
  }
2868
- function Ut(t, e, r) {
2869
- const i = Ve(), s = !!e.field;
2892
+ function Ht(t, e, r) {
2893
+ const i = Ie(), s = !!e.field;
2870
2894
  _(this, {
2871
2895
  id: i,
2872
2896
  ref: i,
@@ -2893,9 +2917,9 @@ function Ut(t, e, r) {
2893
2917
  exportEl: void 0,
2894
2918
  defaultValue: s ? K(r) : void 0,
2895
2919
  field: e.field || void 0
2896
- }), this.updateKey(), si(this), this.update(t, !0);
2920
+ }), this.updateKey(), oi(this), this.update(t, !0);
2897
2921
  }
2898
- _(Ut.prototype, {
2922
+ _(Ht.prototype, {
2899
2923
  getParentGroup() {
2900
2924
  let t = this.parent;
2901
2925
  for (; t; ) {
@@ -2928,7 +2952,7 @@ _(Ut.prototype, {
2928
2952
  delete this.pending[e];
2929
2953
  let a = r;
2930
2954
  if (h.Function(r)) {
2931
- let l = F(() => r({
2955
+ let l = O(() => r({
2932
2956
  rule: this.rule,
2933
2957
  api: this.$api,
2934
2958
  update: (u) => {
@@ -2965,7 +2989,7 @@ _(Ut.prototype, {
2965
2989
  t === void 0 ? this.payload = {} : delete this.payload[t];
2966
2990
  },
2967
2991
  updateKey(t) {
2968
- this.key = Ve(), t && this.parent && this.parent.updateKey(t);
2992
+ this.key = Ie(), t && this.parent && this.parent.updateKey(t);
2969
2993
  },
2970
2994
  updateType() {
2971
2995
  this.originType = this.rule.type, this.type = J(this.rule.type), this.trueType = this.$handle.getType(this.originType);
@@ -2981,6 +3005,9 @@ _(Ut.prototype, {
2981
3005
  initNone() {
2982
3006
  this.none = !(h.Undef(this.prop.display) || this.prop.display);
2983
3007
  },
3008
+ hasHidden() {
3009
+ return !!this.rule.hidden || (this.parent ? this.parent.hasHidden() : !1);
3010
+ },
2984
3011
  injectValidate() {
2985
3012
  return this.prop.validate;
2986
3013
  },
@@ -3042,11 +3069,11 @@ _(Ut.prototype, {
3042
3069
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
3043
3070
  }
3044
3071
  });
3045
- function oi(t) {
3072
+ function ai(t) {
3046
3073
  _(t.prototype, {
3047
3074
  nextRefresh(e) {
3048
3075
  const r = this.loadedId;
3049
- I(() => {
3076
+ P(() => {
3050
3077
  r === this.loadedId && (e ? e() : this.refresh());
3051
3078
  });
3052
3079
  },
@@ -3054,7 +3081,7 @@ function oi(t) {
3054
3081
  const r = ht(e);
3055
3082
  return Object.defineProperties(r, {
3056
3083
  __origin__: xe(e, !0)
3057
- }), ai(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3084
+ }), li(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3058
3085
  i && this.loadFn(i, r);
3059
3086
  }), this.loadCtrl(r), r.update && (r.update = x(r.update)), r;
3060
3087
  },
@@ -3104,29 +3131,29 @@ function oi(t) {
3104
3131
  let l = ht(o);
3105
3132
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3106
3133
  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);
3107
- let f, d = !1, g = !!o.__fc__, m = l.value;
3108
- if (g) {
3109
- if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3134
+ let f, d = !1, p = !!o.__fc__, y = l.value;
3135
+ if (p) {
3136
+ if (f = o.__fc__, y = f.defaultValue, f.deleted) {
3110
3137
  if (bt(f))
3111
3138
  return;
3112
3139
  f.update(this);
3113
3140
  } else if (!f.check(this)) {
3114
3141
  if (bt(f))
3115
3142
  return;
3116
- e[a] = o = o._clone ? o._clone() : Vt(_e(o)), f = null, d = !0;
3143
+ e[a] = o = o._clone ? o._clone() : Vt(Ce(o)), f = null, d = !0;
3117
3144
  }
3118
3145
  }
3119
3146
  if (f)
3120
3147
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3121
3148
  else {
3122
- const O = this.parseRule(o);
3123
- f = new Ut(this, O, m), this.bindParser(f);
3149
+ const F = this.parseRule(o);
3150
+ f = new Ht(this, F, y), this.bindParser(f);
3124
3151
  }
3125
- [!1, !0].forEach((O) => this.parseEmit(f, O)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !d && !g && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3126
- const y = f.loadChildrenPending();
3127
- if (f.parser.loadChildren === !1 || s(y, f), !r) {
3128
- const O = i(a);
3129
- O > -1 || !a ? this.sort.splice(O + 1, 0, f.id) : this.sort.push(f.id);
3152
+ [!1, !0].forEach((F) => this.parseEmit(f, F)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !d && !p && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3153
+ const g = f.loadChildrenPending();
3154
+ if (f.parser.loadChildren === !1 || s(g, f), !r) {
3155
+ const F = i(a);
3156
+ F > -1 || !a ? this.sort.splice(F + 1, 0, f.id) : this.sort.push(f.id);
3130
3157
  }
3131
3158
  const w = f.rule;
3132
3159
  return f.updated || (f.updated = !0, h.Function(w.update) && this.bus.$once("load-end", () => {
@@ -3139,16 +3166,16 @@ function oi(t) {
3139
3166
  return e.input && e.rule.control && this.useCtrl(e);
3140
3167
  },
3141
3168
  useCtrl(e) {
3142
- const r = li(e), i = [], s = this.api;
3169
+ const r = ui(e), i = [], s = this.api;
3143
3170
  if (!r.length) return !1;
3144
3171
  for (let a = 0; a < r.length; a++) {
3145
3172
  const l = r[a], u = l.handle || function(d) {
3146
- return (fe[l.condition || "=="] || fe["=="])(d, l.value);
3173
+ return (ce[l.condition || "=="] || ce["=="])(d, l.value);
3147
3174
  };
3148
3175
  if (!h.trueArray(l.rule)) continue;
3149
3176
  const f = q(v({}, l), {
3150
- valid: F(() => u(e.rule.value, s)),
3151
- ctrl: ui(e, l.rule),
3177
+ valid: O(() => u(e.rule.value, s)),
3178
+ ctrl: fi(e, l.rule),
3152
3179
  isHidden: h.String(l.rule[0])
3153
3180
  });
3154
3181
  f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || i.push(f);
@@ -3157,16 +3184,16 @@ function oi(t) {
3157
3184
  const n = [];
3158
3185
  let o = !1;
3159
3186
  return this.deferSyncValue(() => {
3160
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: g, ctrl: m, method: y }) => {
3187
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: p, ctrl: y, method: g }) => {
3161
3188
  if (a) {
3162
3189
  l ? e.ctrlRule.push({
3163
3190
  __ctrl: !0,
3164
3191
  children: u,
3165
3192
  valid: l
3166
- }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3167
- y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((w) => {
3193
+ }) : y && e.ctrlRule.splice(e.ctrlRule.indexOf(y) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3194
+ g === "disabled" || g === "enabled" ? this.api.disabled(!l, u) : g === "display" || g === "show" ? this.api.display(l, u) : g === "required" ? (u.forEach((w) => {
3168
3195
  this.api.setEffect(w, "required", l);
3169
- }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3196
+ }), l || this.api.clearValidateState(u)) : g === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3170
3197
  });
3171
3198
  return;
3172
3199
  }
@@ -3179,17 +3206,17 @@ function oi(t) {
3179
3206
  children: u
3180
3207
  };
3181
3208
  e.ctrlRule.push(w), this.bus.$once("load-start", () => {
3182
- f ? s.prepend(w, f, g) : d || g ? s.append(w, d || e.id, g) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, w);
3209
+ f ? s.prepend(w, f, p) : d || p ? s.append(w, d || e.id, p) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, w);
3183
3210
  });
3184
3211
  } else {
3185
- e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3186
- const w = Y(m);
3212
+ e.ctrlRule.splice(e.ctrlRule.indexOf(y), 1);
3213
+ const w = Y(y);
3187
3214
  w && w.rm();
3188
3215
  }
3189
3216
  });
3190
3217
  }), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
3191
3218
  n.forEach((a) => a());
3192
- }) : n.length && I(() => {
3219
+ }) : n.length && P(() => {
3193
3220
  n.forEach((a) => a());
3194
3221
  })), this.vm.$emit("control", e.origin, this.api), this.effect(e, "control"), o;
3195
3222
  },
@@ -3211,17 +3238,17 @@ function oi(t) {
3211
3238
  }
3212
3239
  });
3213
3240
  }
3214
- function ai(t) {
3215
- const e = Bt();
3241
+ function li(t) {
3242
+ const e = Lt();
3216
3243
  return Object.keys(e).forEach((r) => {
3217
- D(t, r) || S(t, r, e[r]);
3244
+ D(t, r) || k(t, r, e[r]);
3218
3245
  }), t;
3219
3246
  }
3220
- function li(t) {
3247
+ function ui(t) {
3221
3248
  const e = t.rule.control || [];
3222
3249
  return h.Object(e) ? [e] : e;
3223
3250
  }
3224
- function ui(t, e) {
3251
+ function fi(t, e) {
3225
3252
  for (let r = 0; r < t.ctrlRule.length; r++) {
3226
3253
  const i = t.ctrlRule[r];
3227
3254
  if (i.children === e)
@@ -3231,16 +3258,16 @@ function ui(t, e) {
3231
3258
  function bt(t) {
3232
3259
  return !!t.rule.__ctrl;
3233
3260
  }
3234
- function fi(t) {
3261
+ function ci(t) {
3235
3262
  _(t.prototype, {
3236
3263
  setValue(e, r, i, s) {
3237
3264
  e.deleted || (e.rule.value = r, this.changeStatus = !0, this.nextRefresh(), this.$render.clearCache(e), this.setFormData(e, i), this.syncValue(), this.valueChange(e, r), this.vm.$emit("change", e.field, r, e.origin, this.api, s || !1), this.effect(e, "value"), this.targetHook(e, "value", { value: r }), this.emitEvent("change", e.field, r, {
3238
3265
  rule: e.origin,
3239
3266
  api: this.api,
3240
3267
  setFlag: s || !1
3241
- }), s && I(() => {
3242
- I(() => {
3243
- I(() => {
3268
+ }), s && P(() => {
3269
+ P(() => {
3270
+ P(() => {
3244
3271
  this.api.clearValidateState(e.id);
3245
3272
  });
3246
3273
  });
@@ -3264,7 +3291,7 @@ function fi(t) {
3264
3291
  setFormData(e, r) {
3265
3292
  e.modelValue = r;
3266
3293
  const i = e.getParentGroup();
3267
- i && (this.subRuleData[i.id] || S(this.subRuleData, i.id, {}), S(this.subRuleData[i.id], e.field, e.rule.value)), S(this.formData, e.id, r);
3294
+ i && (this.subRuleData[i.id] || k(this.subRuleData, i.id, {}), k(this.subRuleData[i.id], e.field, e.rule.value)), k(this.formData, e.id, r);
3268
3295
  },
3269
3296
  rmSubRuleData(e) {
3270
3297
  const r = e.getParentGroup();
@@ -3275,13 +3302,13 @@ function fi(t) {
3275
3302
  },
3276
3303
  syncForm() {
3277
3304
  const e = {}, r = this.fields(), i = [];
3278
- this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Ae(this.appendData, n)), s), e), r.reduce((s, n) => {
3279
- const o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a.rule))[0] || this.fieldCtx[n][0];
3280
- return this.isIgnore(o.rule) && i.push(n), s[n] = Ae(o.rule, "value"), s;
3305
+ this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Ve(this.appendData, n)), s), e), r.reduce((s, n) => {
3306
+ let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
3307
+ return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = Ve(o.rule, "value"), s;
3281
3308
  }, e), this.form = ne(e), this.ignoreFields = i, this.syncValue();
3282
3309
  },
3283
3310
  isIgnore(e) {
3284
- return e.ignore === !0 || e.ignore === "hidden" && e.hidden || this.options.ignoreHiddenFields && e.hidden;
3311
+ return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
3285
3312
  },
3286
3313
  appendValue(e) {
3287
3314
  (!e.field || !D(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
@@ -3290,7 +3317,7 @@ function fi(t) {
3290
3317
  this.subForm[e.id] = r;
3291
3318
  },
3292
3319
  deferSyncValue(e, r) {
3293
- this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), F(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
3320
+ this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), O(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
3294
3321
  },
3295
3322
  syncValue() {
3296
3323
  if (this.deferSyncFn)
@@ -3308,7 +3335,7 @@ function fi(t) {
3308
3335
  },
3309
3336
  refreshUpdate(e, r, i, s) {
3310
3337
  if (h.Function(e.rule.update)) {
3311
- const n = F(() => e.rule.update(r, e.origin, this.api, {
3338
+ const n = O(() => e.rule.update(r, e.origin, this.api, {
3312
3339
  origin: i || "change",
3313
3340
  linkField: s
3314
3341
  }));
@@ -3337,7 +3364,7 @@ function fi(t) {
3337
3364
  function vt(t, e) {
3338
3365
  return typeof e == "function" ? "" + e : e;
3339
3366
  }
3340
- const je = {
3367
+ const Ae = {
3341
3368
  init(t) {
3342
3369
  },
3343
3370
  toFormValue(t, e) {
@@ -3356,8 +3383,8 @@ const je = {
3356
3383
  },
3357
3384
  mergeProp(t) {
3358
3385
  }
3359
- }, ci = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Ee = Symbol("oldValue");
3360
- function hi(t) {
3386
+ }, hi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Re = Symbol("oldValue");
3387
+ function di(t) {
3361
3388
  _(t.prototype, {
3362
3389
  getCtx(e) {
3363
3390
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
@@ -3392,7 +3419,7 @@ function hi(t) {
3392
3419
  if (n)
3393
3420
  return n;
3394
3421
  }
3395
- return r[e.originType] || r[J(e.type)] || r[e.trueType] || je;
3422
+ return r[e.originType] || r[J(e.type)] || r[e.trueType] || Ae;
3396
3423
  },
3397
3424
  bindParser(e) {
3398
3425
  e.setParser(this.getParser(e));
@@ -3402,11 +3429,11 @@ function hi(t) {
3402
3429
  return J(i);
3403
3430
  },
3404
3431
  noWatch(e) {
3405
- this.noWatchFn || (this.noWatchFn = e), F(e), this.noWatchFn === e && (this.noWatchFn = null);
3432
+ this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
3406
3433
  },
3407
3434
  watchCtx(e) {
3408
- if (Dt().filter((i) => i[0] !== "_" && i[0] !== "$" && ci.indexOf(i) === -1).forEach((i) => {
3409
- const s = Ae(e.rule, i), n = i === "children";
3435
+ if (Dt().filter((i) => i[0] !== "_" && i[0] !== "$" && hi.indexOf(i) === -1).forEach((i) => {
3436
+ const s = Ve(e.rule, i), n = i === "children";
3410
3437
  e.refRule[i] = s, e.watch.push(L(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3411
3438
  let l = s.value;
3412
3439
  if (!this.isBreakWatch()) {
@@ -3414,9 +3441,9 @@ function hi(t) {
3414
3441
  this.$render.clearCache(e), this.nextRefresh();
3415
3442
  return;
3416
3443
  }
3417
- if (this.watching = !0, I(() => {
3444
+ if (this.watching = !0, P(() => {
3418
3445
  this.targetHook(e, "watch", { key: i, oldValue: a, newValue: l });
3419
- }), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(), I(() => {
3446
+ }), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(), P(() => {
3420
3447
  this.targetHook(e, "hidden", { value: l });
3421
3448
  })), i === "ignore" && e.input || i === "hidden" && e.input && (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields))
3422
3449
  this.syncForm();
@@ -3427,21 +3454,21 @@ function hi(t) {
3427
3454
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3428
3455
  }
3429
3456
  }, { deep: !n, sync: n }));
3430
- }), e.refRule.__$title = ye(() => {
3457
+ }), e.refRule.__$title = $e(() => {
3431
3458
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3432
3459
  if (i) {
3433
3460
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3434
3461
  s && (i = this.api.t(s[1]));
3435
3462
  }
3436
3463
  return i;
3437
- }), e.refRule.__$info = ye(() => {
3464
+ }), e.refRule.__$info = $e(() => {
3438
3465
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3439
3466
  if (i) {
3440
3467
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3441
3468
  s && (i = this.api.t(s[1]));
3442
3469
  }
3443
3470
  return i;
3444
- }), e.refRule.__$validate = ye(() => {
3471
+ }), e.refRule.__$validate = $e(() => {
3445
3472
  const i = (s) => {
3446
3473
  var o, a;
3447
3474
  const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
@@ -3473,7 +3500,7 @@ function hi(t) {
3473
3500
  return n;
3474
3501
  });
3475
3502
  }), e.input) {
3476
- const i = Ae(e.rule, "value");
3503
+ const i = Ve(e.rule, "value");
3477
3504
  e.watch.push(L(() => i.value, () => {
3478
3505
  let s = e.parser.toFormValue(i.value, e);
3479
3506
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3482,16 +3509,16 @@ function hi(t) {
3482
3509
  this.bus.$once("load-end", () => {
3483
3510
  let i = e.rule.computed;
3484
3511
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3485
- const n = ye(() => {
3512
+ const n = $e(() => {
3486
3513
  const a = i[s];
3487
3514
  if (!a) return;
3488
3515
  const l = this.compute(e, a);
3489
- return a.linkage && l === Ee ? Ee : l;
3516
+ return a.linkage && l === Re ? Re : l;
3490
3517
  }), o = (a) => {
3491
3518
  s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : oe(e.rule, s, a);
3492
3519
  };
3493
3520
  (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : n.value !== B(e.rule, s)) && o(n.value), e.watch.push(L(n, (a, l) => {
3494
- a === Ee || a === l || setTimeout(() => {
3521
+ a === Re || a === l || setTimeout(() => {
3495
3522
  o(a);
3496
3523
  });
3497
3524
  }, { deep: !0 }));
@@ -3500,7 +3527,7 @@ function hi(t) {
3500
3527
  },
3501
3528
  adapterValidate(e, r) {
3502
3529
  const i = (s, n) => {
3503
- if ((e.beforeValidate && F(() => e.beforeValidate({
3530
+ if ((e.beforeValidate && O(() => e.beforeValidate({
3504
3531
  value: s,
3505
3532
  api: this.api,
3506
3533
  validate: e,
@@ -3513,7 +3540,7 @@ function hi(t) {
3513
3540
  let l = "";
3514
3541
  typeof e.error == "object" && (l = e.error[a] || e.error.default), !l && typeof e.message == "string" && (l = e.message), l || (l = this.getValidateMessage(r, { key: a, rule: e[a] })), n(l);
3515
3542
  } else if (e.validator) {
3516
- const l = e.validator && F(() => e.validator(s, n));
3543
+ const l = e.validator && O(() => e.validator(s, n));
3517
3544
  l && h.Function(l.then) && l.then(() => n()).catch((u) => n(u));
3518
3545
  } else
3519
3546
  n();
@@ -3541,7 +3568,7 @@ function hi(t) {
3541
3568
  case "len":
3542
3569
  case "maxLen":
3543
3570
  case "minLen":
3544
- const a = (y) => n === "len" ? y === o : n === "maxLen" ? y <= o : y >= o;
3571
+ const a = (g) => n === "len" ? g === o : n === "maxLen" ? g <= o : g >= o;
3545
3572
  if (Array.isArray(r)) {
3546
3573
  if (!a(r.length))
3547
3574
  return n;
@@ -3583,7 +3610,7 @@ function hi(t) {
3583
3610
  return n;
3584
3611
  break;
3585
3612
  case "hasKeys":
3586
- if (typeof r != "object" || Array.isArray(o) && o.some((y) => !(y in r)))
3613
+ if (typeof r != "object" || Array.isArray(o) && o.some((g) => !(g in r)))
3587
3614
  return n;
3588
3615
  break;
3589
3616
  case "email":
@@ -3621,29 +3648,29 @@ function hi(t) {
3621
3648
  let u = !0;
3622
3649
  for (let f = 0; f < a.group.length; f++) {
3623
3650
  const d = a.group[f];
3624
- let g, m = null;
3651
+ let p, y = null;
3625
3652
  if (d.variable)
3626
- m = JSON.stringify(this.fc.getLoadData(d.variable) || "");
3653
+ y = JSON.stringify(this.fc.getLoadData(d.variable) || "");
3627
3654
  else if (d.field)
3628
- m = pt(d.field || "");
3655
+ y = pt(d.field || "");
3629
3656
  else if (!d.mode)
3630
3657
  return !0;
3631
- let y = d.compare;
3632
- if (y && (y = pt(y || "")), d.mode ? g = n(d) : fe[d.condition] ? h.Function(d.handler) ? g = F(() => d.handler(this.api, e.rule)) : g = F(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${m}, ${y || "$val"}); }}}}`).call(this.api.form, fe, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : g = !1, l && g)
3658
+ let g = d.compare;
3659
+ if (g && (g = pt(g || "")), d.mode ? p = n(d) : ce[d.condition] ? h.Function(d.handler) ? p = O(() => d.handler(this.api, e.rule)) : p = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${y}, ${g || "$val"}); }}}}`).call(this.api.form, ce, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : p = !1, l && p)
3633
3660
  return !0;
3634
- l || (u = u && g);
3661
+ l || (u = u && p);
3635
3662
  }
3636
3663
  return l ? !1 : u;
3637
3664
  };
3638
3665
  let o = n(r);
3639
- return o = r.invert === !0 ? !o : o, r.linkage ? o ? F(() => this.computeValue(r.linkage, e, s), void 0) : Ee : o;
3666
+ return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : Re : o;
3640
3667
  } else if (h.Function(r))
3641
3668
  i = () => r(this.api.form, this.api);
3642
3669
  else {
3643
3670
  const s = e.getParentGroup();
3644
3671
  i = () => this.computeValue(r, e, s);
3645
3672
  }
3646
- return F(i, void 0);
3673
+ return O(i, void 0);
3647
3674
  },
3648
3675
  computeValue(e, r, i) {
3649
3676
  const s = this, n = Object.keys(this.fc.formulas).reduce((o, a) => (o[a] = function(...l) {
@@ -3654,7 +3681,7 @@ function hi(t) {
3654
3681
  fc: s.fc
3655
3682
  }, ...l);
3656
3683
  }, o), {});
3657
- return F(() => new Function("$formulas", "$form", "$scope", "$group", "$rule", "$api", `with($form){with($scope){with(this){with($group){with($formulas){ return ${e} }}}}}`).call(this.api.form, n, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, i ? this.subRuleData[i.id] || {} : {}, r.rule, this.api));
3684
+ return O(() => new Function("$formulas", "$form", "$scope", "$group", "$rule", "$api", `with($form){with($scope){with(this){with($group){with($formulas){ return ${e} }}}}}`).call(this.api.form, n, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, i ? this.subRuleData[i.id] || {} : {}, r.rule, this.api));
3658
3685
  },
3659
3686
  updateChildren(e, r, i) {
3660
3687
  this.deferSyncValue(() => {
@@ -3677,7 +3704,7 @@ function hi(t) {
3677
3704
  if (!this.reloading) {
3678
3705
  if (e.parser.loadChildren !== !1) {
3679
3706
  const l = e.getPending("children", e.rule.children);
3680
- h.trueArray(l) && l.forEach((u) => u.__fc__ && this.rmCtx(u.__fc__));
3707
+ h.trueArray(l) && l.forEach((u) => u && u.__fc__ && this.rmCtx(u.__fc__));
3681
3708
  }
3682
3709
  e.root === this.rules && this.vm.renderRule();
3683
3710
  }
@@ -3687,7 +3714,7 @@ function hi(t) {
3687
3714
  }
3688
3715
  });
3689
3716
  }
3690
- function di(t) {
3717
+ function pi(t) {
3691
3718
  _(t.prototype, {
3692
3719
  mounted() {
3693
3720
  const e = () => {
@@ -3702,7 +3729,7 @@ function di(t) {
3702
3729
  const i = this.options[e] || this.options[J("on-" + e)];
3703
3730
  if (i) {
3704
3731
  const s = x(i);
3705
- h.Function(s) && F(() => s(...r));
3732
+ h.Function(s) && O(() => s(...r));
3706
3733
  }
3707
3734
  this.bus.$emit(e, ...r);
3708
3735
  },
@@ -3710,18 +3737,18 @@ function di(t) {
3710
3737
  var n, o;
3711
3738
  let s = (o = (n = e.prop) == null ? void 0 : n.hook) == null ? void 0 : o[r];
3712
3739
  s && (s = Array.isArray(s) ? s : [s], s.forEach((a) => {
3713
- F(() => a(q(v({}, i || {}), { self: e.rule, rule: e.rule, $f: this.api, api: this.api, option: this.vm.$props.option })));
3740
+ O(() => a(q(v({}, i || {}), { self: e.rule, rule: e.rule, $f: this.api, api: this.api, option: this.vm.$props.option })));
3714
3741
  }));
3715
3742
  }
3716
3743
  });
3717
3744
  }
3718
- function pi(t) {
3745
+ function mi(t) {
3719
3746
  _(t.prototype, {
3720
3747
  useProvider() {
3721
3748
  const e = this.fc.providers;
3722
3749
  Object.keys(e).forEach((r) => {
3723
3750
  let i = e[r];
3724
- h.Function(i) && (i = i(this.fc)), i._c = gi(i), this.onEffect(i), this.providers[r] = i;
3751
+ h.Function(i) && (i = i(this.fc)), i._c = yi(i), this.onEffect(i), this.providers[r] = i;
3725
3752
  });
3726
3753
  },
3727
3754
  onEffect(e) {
@@ -3785,21 +3812,21 @@ function pi(t) {
3785
3812
  d = s;
3786
3813
  else
3787
3814
  return;
3788
- const g = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3789
- e && (g.getProp = () => e.effectData(u), g.clearProp = () => e.clearEffectData(u), g.mergeProp = (m) => te(g.getProp(), [m]), g.id = e.id), this.bus.$emit(`p:${u}:${d}:${f.input ? 1 : 0}`, o, [g, r, this.api]);
3815
+ const p = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3816
+ e && (p.getProp = () => e.effectData(u), p.clearProp = () => e.clearEffectData(u), p.mergeProp = (y) => te(p.getProp(), [y]), p.id = e.id), this.bus.$emit(`p:${u}:${d}:${f.input ? 1 : 0}`, o, [p, r, this.api]);
3790
3817
  });
3791
3818
  }
3792
3819
  });
3793
3820
  }
3794
- function mi(t) {
3821
+ function gi(t) {
3795
3822
  return t.filter(function(e, r, i) {
3796
3823
  return i.indexOf(e, 0) === r;
3797
3824
  });
3798
3825
  }
3799
- function gi(t) {
3826
+ function yi(t) {
3800
3827
  const e = t.components;
3801
3828
  if (Array.isArray(e)) {
3802
- const r = mi(e.filter((i) => i !== "*"));
3829
+ const r = gi(e.filter((i) => i !== "*"));
3803
3830
  return r.length ? r : !1;
3804
3831
  } else return h.String(e) ? [e] : !1;
3805
3832
  }
@@ -3839,9 +3866,9 @@ function X(t) {
3839
3866
  this.lifecycle("reload");
3840
3867
  }
3841
3868
  }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
3842
- const i = F(() => r(e, this));
3869
+ const i = O(() => r(e, this));
3843
3870
  return i && i !== e && _(e, i), e;
3844
- }, Zr(this));
3871
+ }, Qr(this));
3845
3872
  }
3846
3873
  _(X.prototype, {
3847
3874
  initData(t) {
@@ -3864,43 +3891,43 @@ _(X.prototype, {
3864
3891
  },
3865
3892
  globalBeforeFetch(t) {
3866
3893
  return new Promise((e, r) => {
3867
- const i = this.options.beforeFetch && F(() => this.options.beforeFetch(t, { api: this.api }));
3894
+ const i = this.options.beforeFetch && O(() => this.options.beforeFetch(t, { api: this.api }));
3868
3895
  i && h.Function(i.then) ? i.then(e).catch(r) : e();
3869
3896
  });
3870
3897
  },
3871
3898
  beforeFetch(t) {
3872
3899
  return new Promise((e, r) => {
3873
- const i = t && t.beforeFetch && F(() => t.beforeFetch(t, { api: this.api }));
3900
+ const i = t && t.beforeFetch && O(() => t.beforeFetch(t, { api: this.api }));
3874
3901
  i && h.Function(i.then) ? i.then(e).catch(r) : i === !1 ? r() : e();
3875
3902
  }).then(() => this.globalBeforeFetch(t));
3876
3903
  },
3877
3904
  beforeSubmit(t) {
3878
3905
  return new Promise((e, r) => {
3879
- const i = this.options.beforeSubmit && F(() => this.options.beforeSubmit(t, { api: this.api }));
3906
+ const i = this.options.beforeSubmit && O(() => this.options.beforeSubmit(t, { api: this.api }));
3880
3907
  i && h.Function(i.then) ? i.then(e).catch(r) : i === !1 ? r() : e();
3881
3908
  });
3882
3909
  }
3883
3910
  });
3884
- ti(X);
3885
3911
  ri(X);
3886
- ni(X);
3887
- oi(X);
3888
- fi(X);
3889
- hi(X);
3912
+ ii(X);
3913
+ si(X);
3914
+ ai(X);
3915
+ ci(X);
3890
3916
  di(X);
3891
3917
  pi(X);
3892
- const yi = "fcFragment", Me = {
3893
- name: yi,
3918
+ mi(X);
3919
+ const $i = "fcFragment", Ne = {
3920
+ name: $i,
3894
3921
  functional: !0,
3895
3922
  props: ["vnode"],
3896
3923
  render(t, e) {
3897
3924
  return e.props.vnode ? e.props.vnode : e.children;
3898
3925
  }
3899
3926
  };
3900
- function $i(t) {
3927
+ function bi(t) {
3901
3928
  return h.String(t) ? { domProps: { innerHTML: t } } : t;
3902
3929
  }
3903
- function bi() {
3930
+ function vi() {
3904
3931
  const t = {};
3905
3932
  function e(r) {
3906
3933
  r && this.setVm(r);
@@ -3911,11 +3938,11 @@ function bi() {
3911
3938
  },
3912
3939
  make(r, i, s) {
3913
3940
  var n, o, a;
3914
- 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);
3941
+ return (be.isReservedTag ? be.isReservedTag(r) : (o = (n = be) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
3915
3942
  },
3916
3943
  makeComponent(r, i, s) {
3917
3944
  var o;
3918
- let n = this.$h(r, $i(i), s || []);
3945
+ let n = this.$h(r, bi(i), s || []);
3919
3946
  if ((o = n == null ? void 0 : n.componentOptions) != null && o.propsData && (i != null && i.props)) {
3920
3947
  const a = Object.keys(n.componentOptions.propsData);
3921
3948
  n.data.attrs || (n.data.attrs = {}), Object.keys(i.props).forEach((l) => {
@@ -3932,7 +3959,7 @@ function bi() {
3932
3959
  },
3933
3960
  use(r) {
3934
3961
  Object.keys(r).forEach((i) => {
3935
- const s = be(i), n = At(i).toLocaleLowerCase(), o = r[i];
3962
+ const s = ve(i), n = At(i).toLocaleLowerCase(), o = r[i];
3936
3963
  [i, s, n].forEach((a) => {
3937
3964
  e.alias(i, o), e.prototype[a] = function(l, u) {
3938
3965
  return this.make(o, l, u);
@@ -3942,12 +3969,12 @@ function bi() {
3942
3969
  }
3943
3970
  }), e;
3944
3971
  }
3945
- function vi(t) {
3946
- class e extends Ht {
3972
+ function _i(t) {
3973
+ class e extends Gt {
3947
3974
  }
3948
3975
  return Object.assign(e.prototype, t), e;
3949
3976
  }
3950
- function Ht(t) {
3977
+ function Gt(t) {
3951
3978
  _(this, {
3952
3979
  $handle: t,
3953
3980
  vm: t.vm,
@@ -3958,12 +3985,12 @@ function Ht(t) {
3958
3985
  }
3959
3986
  }), this.updateKey(), this.init();
3960
3987
  }
3961
- _(Ht.prototype, {
3988
+ _(Gt.prototype, {
3962
3989
  __init() {
3963
3990
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
3964
3991
  },
3965
3992
  updateKey() {
3966
- this.key = Ve();
3993
+ this.key = Ie();
3967
3994
  },
3968
3995
  //TODO interface
3969
3996
  init() {
@@ -4006,23 +4033,23 @@ _(Ht.prototype, {
4006
4033
  render(t) {
4007
4034
  }
4008
4035
  });
4009
- const _i = function(t) {
4036
+ const Ci = function(t) {
4010
4037
  const e = {
4011
4038
  name: "loadData",
4012
4039
  _fn: [],
4013
4040
  loaded(r, i, s) {
4014
- this.deleted(r), I(() => {
4041
+ this.deleted(r), P(() => {
4015
4042
  let n = H(r.getValue());
4016
4043
  const o = [];
4017
4044
  n.forEach((a) => {
4018
4045
  if (a && (a.attr || a.template)) {
4019
4046
  let l = (d) => {
4020
- let g;
4021
- i && i.__fc__ && (g = i.__fc__.getParentGroup());
4022
- let m;
4023
- a.template ? m = t.$handle.loadStrVar(a.template, d, g ? { rule: i, value: t.$handle.subRuleData[g.id] || {} } : null) : a.handler && h.Function(a.handler) ? m = a.handler(d, i, s) : m = t.$handle.loadStrVar(`{{${a.attr}}}`, d, g ? { rule: i, value: t.$handle.subRuleData[g.id] || {} } : null), (m == null || m === "") && a.default != null && (m = a.default), a.copy !== !1 && (m = K(m));
4024
- const y = a.modify ? i : r.getProp();
4025
- a.to === "child" ? y.children ? S(y.children, 0, m) : S(y, "children", [m]) : oe(y, a.to || "options", m), s.sync(i);
4047
+ let p;
4048
+ i && i.__fc__ && (p = i.__fc__.getParentGroup());
4049
+ let y;
4050
+ a.template ? y = t.$handle.loadStrVar(a.template, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null) : a.handler && h.Function(a.handler) ? y = a.handler(d, i, s) : y = t.$handle.loadStrVar(`{{${a.attr}}}`, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null), (y == null || y === "") && a.default != null && (y = a.default), a.copy !== !1 && (y = K(y));
4051
+ const g = a.modify ? i : r.getProp();
4052
+ a.to === "child" ? g.children ? k(g.children, 0, y) : k(g, "children", [y]) : oe(g, a.to || "options", y), s.sync(i);
4026
4053
  }, u = (d) => l(d);
4027
4054
  const f = t.watchLoadData(u);
4028
4055
  l = se(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
@@ -4037,7 +4064,7 @@ const _i = function(t) {
4037
4064
  }
4038
4065
  };
4039
4066
  return e.watch = e.loaded, e;
4040
- }, Ci = function(t) {
4067
+ }, wi = function(t) {
4041
4068
  const e = {
4042
4069
  name: "t",
4043
4070
  _fn: [],
@@ -4049,13 +4076,13 @@ const _i = function(t) {
4049
4076
  const l = n[a];
4050
4077
  if (l) {
4051
4078
  const u = typeof l == "object";
4052
- let f = (m) => {
4053
- let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4079
+ let f = (y) => {
4080
+ let g = t.t(u ? l.attr : l, u ? l.params : null, y);
4054
4081
  const w = u && l.modify ? i : r.getProp();
4055
- a === "child" ? w.children ? S(w.children, 0, y) : S(w, "children", [y]) : oe(w, a, y), s.sync(i);
4056
- }, d = (m) => f(m);
4057
- const g = t.watchLoadData(d);
4058
- f = se(f, l.wait || 300), l.watch !== !1 ? o.push(g) : g();
4082
+ a === "child" ? w.children ? k(w.children, 0, g) : k(w, "children", [g]) : oe(w, a, g), s.sync(i);
4083
+ }, d = (y) => f(y);
4084
+ const p = t.watchLoadData(d);
4085
+ f = se(f, l.wait || 300), l.watch !== !1 ? o.push(p) : p();
4059
4086
  }
4060
4087
  }), this._fn[r.id] = o;
4061
4088
  },
@@ -4066,7 +4093,7 @@ const _i = function(t) {
4066
4093
  }
4067
4094
  };
4068
4095
  return e.watch = e.loaded, e;
4069
- }, Gt = {
4096
+ }, Jt = {
4070
4097
  name: "componentValidate",
4071
4098
  load(t, e, r) {
4072
4099
  let i = t.getValue();
@@ -4089,9 +4116,9 @@ const _i = function(t) {
4089
4116
  }
4090
4117
  },
4091
4118
  watch(...t) {
4092
- Gt.load(...t);
4119
+ Jt.load(...t);
4093
4120
  }
4094
- }, wi = function(t) {
4121
+ }, Oi = function(t) {
4095
4122
  function e(s) {
4096
4123
  return h.String(s) && (s = {
4097
4124
  action: s,
@@ -4124,32 +4151,32 @@ const _i = function(t) {
4124
4151
  if (!s.getValue())
4125
4152
  return s.clearProp(), o.sync(n), !0;
4126
4153
  };
4127
- i._fn[s.id] = t.watchLoadData(se((d, g) => {
4128
- if (g && a.watch === !1)
4154
+ i._fn[s.id] = t.watchLoadData(se((d, p) => {
4155
+ if (p && a.watch === !1)
4129
4156
  return i._fn[s.id]();
4130
- const m = t.$handle.loadFetchVar(K(a), d, n), y = q(v({
4157
+ const y = t.$handle.loadFetchVar(K(a), d, n), g = q(v({
4131
4158
  headers: {}
4132
- }, m), {
4133
- onSuccess(w, O) {
4159
+ }, y), {
4160
+ onSuccess(w, F) {
4134
4161
  if (f()) return;
4135
- let G = (M) => O ? M : D(M, "data") ? M.data : M;
4136
- const T = x(m.parse);
4137
- h.Function(T) ? G = T : T && h.String(T) && (G = (M) => B(M, T)), l(G(w, n, o));
4162
+ let G = (N) => F ? N : D(N, "data") ? N.data : N;
4163
+ const V = x(y.parse);
4164
+ h.Function(V) ? G = V : V && h.String(V) && (G = (N) => B(N, V)), l(G(w, n, o));
4138
4165
  },
4139
4166
  onError(w) {
4140
- l(void 0), !f() && (u || ((O) => tt(O.message || "fetch fail " + m.action)))(w, n, o);
4167
+ l(void 0), !f() && (u || ((F) => tt(F.message || "fetch fail " + y.action)))(w, n, o);
4141
4168
  }
4142
4169
  });
4143
- t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4144
- if (h.Function(m.action)) {
4145
- m.action(n, o).then((w) => {
4146
- y.onSuccess(w, !0);
4170
+ t.$handle.beforeFetch(g, { rule: n, api: o }).then(() => {
4171
+ if (h.Function(y.action)) {
4172
+ y.action(n, o).then((w) => {
4173
+ g.onSuccess(w, !0);
4147
4174
  }).catch((w) => {
4148
- y.onError(w);
4175
+ g.onError(w);
4149
4176
  });
4150
4177
  return;
4151
4178
  }
4152
- F(() => t.create.fetch(y, { inject: s, rule: n, api: o }));
4179
+ O(() => t.create.fetch(g, { inject: s, rule: n, api: o }));
4153
4180
  }).catch((w) => {
4154
4181
  });
4155
4182
  }, a.wait || 600));
@@ -4169,12 +4196,12 @@ const _i = function(t) {
4169
4196
  };
4170
4197
  return i;
4171
4198
  }, Fi = {
4172
- fetch: wi,
4173
- loadData: _i,
4174
- t: Ci,
4175
- componentValidate: Gt
4199
+ fetch: Oi,
4200
+ loadData: Ci,
4201
+ t: wi,
4202
+ componentValidate: Jt
4176
4203
  };
4177
- function Oi(t) {
4204
+ function ki(t) {
4178
4205
  t = t || /* @__PURE__ */ new Map();
4179
4206
  const e = {
4180
4207
  $on(r, i) {
@@ -4198,8 +4225,8 @@ function Oi(t) {
4198
4225
  };
4199
4226
  return e;
4200
4227
  }
4201
- const ki = "html", Si = {
4202
- name: ki,
4228
+ const Ei = "html", Si = {
4229
+ name: Ei,
4203
4230
  loadChildren: !1,
4204
4231
  render(t, e) {
4205
4232
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
@@ -4208,7 +4235,7 @@ const ki = "html", Si = {
4208
4235
  return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
4209
4236
  }
4210
4237
  };
4211
- function Ei(t) {
4238
+ function Ri(t) {
4212
4239
  t = t + "=";
4213
4240
  const r = decodeURIComponent(document.cookie).split(";");
4214
4241
  for (let i = 0; i < r.length; i++) {
@@ -4226,7 +4253,7 @@ function Ei(t) {
4226
4253
  }
4227
4254
  return null;
4228
4255
  }
4229
- function Ri(t) {
4256
+ function Di(t) {
4230
4257
  const e = localStorage.getItem(t);
4231
4258
  if (e)
4232
4259
  try {
@@ -4236,7 +4263,7 @@ function Ri(t) {
4236
4263
  }
4237
4264
  return null;
4238
4265
  }
4239
- function Di(t) {
4266
+ function ji(t) {
4240
4267
  const e = sessionStorage.getItem(t);
4241
4268
  if (e)
4242
4269
  try {
@@ -4253,16 +4280,16 @@ function nt(t, e) {
4253
4280
  let i = t(r.shift());
4254
4281
  return r.length ? i == null ? null : B(i, r) : i;
4255
4282
  }
4256
- function ji(t) {
4257
- return nt(Ei, t);
4258
- }
4259
4283
  function Ai(t) {
4260
4284
  return nt(Ri, t);
4261
4285
  }
4262
4286
  function Vi(t) {
4263
4287
  return nt(Di, t);
4264
4288
  }
4265
- const Ii = {
4289
+ function Ii(t) {
4290
+ return nt(ji, t);
4291
+ }
4292
+ const Pi = {
4266
4293
  en: {
4267
4294
  required: "{title} is required",
4268
4295
  validate: {
@@ -4312,17 +4339,17 @@ const Ii = {
4312
4339
  }
4313
4340
  }
4314
4341
  };
4315
- function Pi(t, e) {
4342
+ function Ti(t, e) {
4316
4343
  let r;
4317
4344
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4318
4345
  }
4319
- function Ne() {
4320
- return Pi("name", ...arguments);
4346
+ function Me() {
4347
+ return Ti("name", ...arguments);
4321
4348
  }
4322
- function Ti(t) {
4349
+ function Bi(t) {
4323
4350
  return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
4324
4351
  }
4325
- function Bi(t, e) {
4352
+ function Li(t, e) {
4326
4353
  const r = new Vue({
4327
4354
  data() {
4328
4355
  return { rule: t, option: e || {} };
@@ -4333,81 +4360,81 @@ function Bi(t, e) {
4333
4360
  });
4334
4361
  return r.$mount(), r;
4335
4362
  }
4336
- function Li(t) {
4363
+ function Ni(t) {
4337
4364
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4338
- Rt.push(...e), Ye.push(...r), et.push(...i), Lt([...e, ...r, ...i]);
4365
+ Rt.push(...e), Ye.push(...r), et.push(...i), Nt([...e, ...r, ...i]);
4339
4366
  }
4340
4367
  let Mi = 1;
4341
- const U = {}, Re = Symbol("defValue");
4342
- function Jt(t) {
4368
+ const U = {}, De = Symbol("defValue");
4369
+ function Kt(t) {
4343
4370
  const e = {
4344
- [Me.name]: Me
4371
+ [Ne.name]: Ne
4345
4372
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4346
4373
  t.extendApi
4347
- ], u = v({}, Fi), f = xr();
4374
+ ], u = v({}, Fi), f = Xr();
4348
4375
  let d = { global: {} };
4349
- const g = t.isMobile === !0, m = ne({
4350
- $mobile: g
4351
- }), y = bi(), w = {}, O = {};
4352
- Li(t.attrs || {});
4376
+ const p = t.isMobile === !0, y = ne({
4377
+ $mobile: p
4378
+ }), g = vi(), w = {}, F = {};
4379
+ Ni(t.attrs || {});
4353
4380
  function G(c) {
4354
- const p = U[c];
4355
- if (Array.isArray(p))
4356
- return p.map(($) => $.api());
4357
- if (p)
4358
- return p.api();
4381
+ const m = U[c];
4382
+ if (Array.isArray(m))
4383
+ return m.map(($) => $.api());
4384
+ if (m)
4385
+ return m.api();
4359
4386
  }
4360
- function T(c) {
4387
+ function V(c) {
4361
4388
  o.push(c);
4362
4389
  }
4363
- function M() {
4364
- const c = Ne(...arguments);
4390
+ function N() {
4391
+ const c = Me(...arguments);
4365
4392
  c.id && c.prop && (i[c.id] = c.prop);
4366
4393
  }
4367
- function he() {
4368
- const c = Ne(...arguments);
4394
+ function de() {
4395
+ const c = Me(...arguments);
4369
4396
  c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(v({}, c.prop), {
4370
4397
  name: c.id
4371
4398
  }));
4372
4399
  }
4373
- function Ie(c) {
4374
- y.use(c);
4400
+ function Pe(c) {
4401
+ g.use(c);
4375
4402
  }
4376
- function de() {
4377
- const c = Ne(...arguments);
4378
- if (!c.id || !c.prop) return je;
4379
- const p = J(c.id), $ = c.prop, b = $.merge === !0 ? r[p] : void 0;
4380
- r[p] = Se($, b || je), f[p] = P(p), $.maker && _(f, $.maker);
4403
+ function pe() {
4404
+ const c = Me(...arguments);
4405
+ if (!c.id || !c.prop) return Ae;
4406
+ const m = J(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4407
+ r[m] = Se($, b || Ae), f[m] = T(m), $.maker && _(f, $.maker);
4381
4408
  }
4382
- function k(c, p) {
4409
+ function E(c, m) {
4383
4410
  let $;
4384
4411
  if (h.String(c)) {
4385
- if ($ = c, p === void 0)
4386
- return ["form-create", "formcreate"].indexOf($) > -1 ? E() : e[$];
4412
+ if ($ = c, m === void 0)
4413
+ return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
4387
4414
  } else
4388
- $ = J(c.name), p = c;
4389
- if (!$ || !p) return;
4415
+ $ = J(c.name), m = c;
4416
+ if (!$ || !m) return;
4390
4417
  const b = J($);
4391
- e[$] = p, e[b] = p, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], p.formCreateParser && de($, p.formCreateParser);
4418
+ e[$] = m, e[b] = m, delete g.aliasMap[$], delete g.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && pe($, m.formCreateParser);
4392
4419
  }
4393
- function E() {
4394
- return Wr(Te, e, i);
4420
+ function R() {
4421
+ return zr(Be, e, i);
4395
4422
  }
4396
- function N() {
4397
- return Me;
4423
+ function M() {
4424
+ return Ne;
4398
4425
  }
4399
- function pe(c, p) {
4400
- return h.Function(c.install) ? c.install(W, p) : h.Function(c) && c(W, p), this;
4426
+ function me(c, m) {
4427
+ return h.Function(c.install) ? c.install(W, m) : h.Function(c) && c(W, m), this;
4401
4428
  }
4402
- function W(c, p, $) {
4403
- let b = Bi(c, p || {});
4429
+ function W(c, m, $) {
4430
+ let b = Li(c, m || {});
4404
4431
  const C = b.$refs.fc.formCreate;
4405
- return C.$parent = $, Ti(C.options).appendChild(b.$el), C.api();
4432
+ return C.$parent = $, Bi(C.options).appendChild(b.$el), C.api();
4406
4433
  }
4407
- Se(W, O);
4408
- function Wt(c) {
4409
- let p = v({}, t);
4410
- return c ? p.inherit = {
4434
+ Se(W, F);
4435
+ function zt(c) {
4436
+ let m = v({}, t);
4437
+ return c ? m.inherit = {
4411
4438
  components: e,
4412
4439
  parsers: r,
4413
4440
  directives: i,
@@ -4416,67 +4443,67 @@ function Jt(t) {
4416
4443
  useApps: o,
4417
4444
  maker: f,
4418
4445
  formulas: w,
4419
- loadData: m
4420
- } : delete p.inherit, Jt(p);
4446
+ loadData: y
4447
+ } : delete m.inherit, Kt(m);
4421
4448
  }
4422
- function zt(c, p) {
4423
- s[c] = p;
4449
+ function xt(c, m) {
4450
+ s[c] = m;
4424
4451
  }
4425
- function xt(c, p) {
4426
- w[c] = p;
4452
+ function Xt(c, m) {
4453
+ w[c] = m;
4427
4454
  }
4428
- function Xt(c, p) {
4455
+ function Zt(c, m) {
4429
4456
  const $ = n[c] || {}, b = $.parsers || {};
4430
- p.parsers && Object.keys(p.parsers).forEach((C) => {
4431
- b[C] = Se(p.parsers[C], je);
4432
- }), p.name = c, n[c] = q(v(v({}, $), p), { parsers: b });
4457
+ m.parsers && Object.keys(m.parsers).forEach((C) => {
4458
+ b[C] = Se(m.parsers[C], Ae);
4459
+ }), m.name = c, n[c] = q(v(v({}, $), m), { parsers: b });
4433
4460
  }
4434
- function we(c) {
4435
- c && Object.keys(U).forEach((p) => {
4436
- (Array.isArray(U[p]) ? U[p] : [U[p]]).forEach((b) => {
4461
+ function Oe(c) {
4462
+ c && Object.keys(U).forEach((m) => {
4463
+ (Array.isArray(U[m]) ? U[m] : [U[m]]).forEach((b) => {
4437
4464
  b.bus.$emit("$loadData." + c);
4438
4465
  });
4439
4466
  });
4440
4467
  }
4441
- function Pe(c, p) {
4442
- oe(m, c, p), we(c);
4468
+ function Te(c, m) {
4469
+ oe(y, c, m), Oe(c);
4443
4470
  }
4444
- function Fe(c, p) {
4445
- const $ = (...b) => F(() => p(...b));
4446
- $._driver = !0, Pe(c, $);
4471
+ function Fe(c, m) {
4472
+ const $ = (...b) => O(() => m(...b));
4473
+ $._driver = !0, Te(c, $);
4447
4474
  }
4448
- function st(c, p) {
4475
+ function st(c, m) {
4449
4476
  const $ = (c || "").split(".");
4450
4477
  c = $.shift();
4451
4478
  const b = $.join(".");
4452
- if (D(m, c) || S(m, c, Re), m[c] !== Re) {
4453
- let C = m[c];
4454
- return C && C._driver ? C = C(b) : $.length && (C = B(C, $)), C == null || C === "" ? p : C;
4479
+ if (D(y, c) || k(y, c, De), y[c] !== De) {
4480
+ let C = y[c];
4481
+ return C && C._driver ? C = C(b) : $.length && (C = B(C, $)), C == null || C === "" ? m : C;
4455
4482
  } else
4456
- return p;
4483
+ return m;
4457
4484
  }
4458
- function Zt(c) {
4485
+ function Qt(c) {
4459
4486
  l.push(c);
4460
4487
  }
4461
- function Qt(c) {
4462
- delete m[c], we(c);
4488
+ function Yt(c) {
4489
+ delete y[c], Oe(c);
4463
4490
  }
4464
- function Yt(c, p) {
4465
- a.push({ name: c, callback: p });
4491
+ function er(c, m) {
4492
+ a.push({ name: c, callback: m });
4466
4493
  }
4467
- function Te(c) {
4494
+ function Be(c) {
4468
4495
  _(this, {
4469
4496
  id: Mi++,
4470
4497
  create: W,
4471
4498
  vm: c,
4472
- manager: vi(t.manager),
4499
+ manager: _i(t.manager),
4473
4500
  parsers: r,
4474
4501
  providers: u,
4475
4502
  modelFields: s,
4476
4503
  formulas: w,
4477
- isMobile: g,
4504
+ isMobile: p,
4478
4505
  rules: c.$options.propsData.rule,
4479
- name: c.$options.propsData.name || Ve(),
4506
+ name: c.$options.propsData.name || Ie(),
4480
4507
  inFor: c.$options.propsData.inFor,
4481
4508
  prop: {
4482
4509
  components: e,
@@ -4485,56 +4512,56 @@ function Jt(t) {
4485
4512
  get: null,
4486
4513
  drivers: n,
4487
4514
  renderDriver: null,
4488
- refreshData: we,
4489
- loadData: m,
4490
- CreateNode: y,
4491
- bus: new Oi(),
4515
+ refreshData: Oe,
4516
+ loadData: y,
4517
+ CreateNode: g,
4518
+ bus: new ki(),
4492
4519
  unwatch: [],
4493
- options: pr({}),
4520
+ options: mr({}),
4494
4521
  extendApiFn: l,
4495
4522
  fetchCache: /* @__PURE__ */ new WeakMap(),
4496
4523
  tmpData: ne({})
4497
- }), a.forEach((p) => {
4498
- this.bus.$on(p.name, p.callback);
4499
- }), I(() => {
4524
+ }), a.forEach((m) => {
4525
+ this.bus.$on(m.name, m.callback);
4526
+ }), P(() => {
4500
4527
  L(this.options, () => {
4501
4528
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4502
4529
  }, { deep: !0 });
4503
4530
  }), _(c.$options.components, e), _(c.$options.directives, i), this.$handle = new X(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
4504
4531
  }
4505
- Te.isMobile = g, _(Te.prototype, {
4532
+ Be.isMobile = p, _(Be.prototype, {
4506
4533
  init() {
4507
4534
  this.isSub() && this.unwatch.push(L(() => this.vm.parent.fc.options.value, () => {
4508
4535
  this.initOptions(), this.$handle.api.refresh();
4509
4536
  }, { 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();
4510
4537
  },
4511
- targetFormDriver(c, ...p) {
4538
+ targetFormDriver(c, ...m) {
4512
4539
  if (this.renderDriver && this.renderDriver[c])
4513
- return F(() => this.renderDriver[c](...p));
4540
+ return O(() => this.renderDriver[c](...m));
4514
4541
  },
4515
- t(c, p, $) {
4542
+ t(c, m, $) {
4516
4543
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4517
- return b == null && (b = ""), b && p && Object.keys(p).forEach((C) => {
4544
+ return b == null && (b = ""), b && m && Object.keys(m).forEach((C) => {
4518
4545
  const j = new RegExp(`{${C}}`, "g");
4519
- b = b.replace(j, p[C]);
4546
+ b = b.replace(j, m[C]);
4520
4547
  }), b;
4521
4548
  },
4522
4549
  globalDataDriver(c) {
4523
- let p = c.split(".");
4524
- const $ = p.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4550
+ let m = c.split(".");
4551
+ const $ = m.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4525
4552
  if (b) {
4526
4553
  if (b.type === "static")
4527
- return B(b.data, p);
4554
+ return B(b.data, m);
4528
4555
  {
4529
4556
  let C;
4530
4557
  const j = this.fetchCache.get(b);
4531
4558
  if (j) {
4532
- if (j.status && (C = B(j.data, p)), !j.loading)
4559
+ if (j.status && (C = B(j.data, m)), !j.loading)
4533
4560
  return C;
4534
4561
  j.loading = !1, this.fetchCache.set(b, j);
4535
4562
  } else
4536
4563
  this.fetchCache.set(b, { status: !1 });
4537
- const R = se(() => {
4564
+ const S = se(() => {
4538
4565
  le();
4539
4566
  const z = this.fetchCache.get(b);
4540
4567
  this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (z && (z.loading = !0, this.fetchCache.set(b, z)), this.bus.$emit("$loadData.$globalData." + $)) : this.fetchCache.delete(b);
@@ -4544,11 +4571,11 @@ function Jt(t) {
4544
4571
  if (ue && b.watch === !1)
4545
4572
  return le();
4546
4573
  if (ue) {
4547
- R();
4574
+ S();
4548
4575
  return;
4549
4576
  }
4550
- const me = this.$handle.loadFetchVar(Ke(b), z);
4551
- this.$handle.api.fetch(me).then((re) => {
4577
+ const ge = this.$handle.loadFetchVar(Ke(b), z);
4578
+ this.$handle.api.fetch(ge).then((re) => {
4552
4579
  ae(re);
4553
4580
  }).catch((re) => {
4554
4581
  ae(null);
@@ -4563,31 +4590,31 @@ function Jt(t) {
4563
4590
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4564
4591
  },
4565
4592
  globalLanguageDriver(c) {
4566
- let p = this.vm.top.$props.locale, $;
4567
- if (p && typeof p == "object" && ($ = B(p, c)), $ == null) {
4593
+ let m = this.vm.top.$props.locale, $;
4594
+ if (m && typeof m == "object" && ($ = B(m, c)), $ == null) {
4568
4595
  const b = this.options.value.language || {}, C = this.getLocale();
4569
- $ = B(b[C] || {}, c), $ == null && ($ = B(Ii[C] || {}, c));
4596
+ $ = B(b[C] || {}, c), $ == null && ($ = B(Pi[C] || {}, c));
4570
4597
  }
4571
4598
  return $;
4572
4599
  },
4573
4600
  globalVarDriver(c) {
4574
- let p = c.split(".");
4575
- const $ = p.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4601
+ let m = c.split(".");
4602
+ const $ = m.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4576
4603
  if (b) {
4577
4604
  const C = h.Function(b) ? b : x(b.handle);
4578
4605
  if (C) {
4579
4606
  let j;
4580
- const R = this.watchLoadData((ae, Z) => {
4581
- Z ? (this.bus.$emit("$loadData.$var." + $), R()) : j = C(ae, this.$handle.api);
4607
+ const S = this.watchLoadData((ae, Z) => {
4608
+ Z ? (this.bus.$emit("$loadData.$var." + $), S()) : j = C(ae, this.$handle.api);
4582
4609
  });
4583
- return this.unwatch.push(R), B(j, p);
4610
+ return this.unwatch.push(S), B(j, m);
4584
4611
  }
4585
4612
  }
4586
4613
  },
4587
- setData(c, p, $) {
4588
- $ ? Pe(c, p) : (oe(this.vm.top.fc.tmpData, c, p), this.bus.$emit("$loadData." + c));
4614
+ setData(c, m, $) {
4615
+ $ ? Te(c, m) : (oe(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
4589
4616
  },
4590
- getLoadData(c, p) {
4617
+ getLoadData(c, m) {
4591
4618
  let $ = null;
4592
4619
  if (c != null) {
4593
4620
  let b = c.split(".");
@@ -4613,41 +4640,41 @@ function Jt(t) {
4613
4640
  return this.$handle.preview;
4614
4641
  {
4615
4642
  const j = this.vm.top.fc.tmpData;
4616
- D(j, C) || S(j, C, Re), $ = j[C] !== Re ? B(j, c) : st(c), b = [];
4643
+ D(j, C) || k(j, C, De), $ = j[C] !== De ? B(j, c) : st(c), b = [];
4617
4644
  }
4618
4645
  }
4619
4646
  $ && b.length && ($ = B($, b));
4620
4647
  }
4621
- return $ == null || $ === "" ? p : $;
4648
+ return $ == null || $ === "" ? m : $;
4622
4649
  },
4623
- watchLoadData(c, p) {
4650
+ watchLoadData(c, m) {
4624
4651
  let $ = {};
4625
- const b = (R) => {
4626
- this.get || (this.get = C), F(() => {
4627
- c(C, R);
4652
+ const b = (S) => {
4653
+ this.get || (this.get = C), O(() => {
4654
+ c(C, S);
4628
4655
  }), this.get === C && (this.get = void 0);
4629
- }, C = (R, ae) => {
4656
+ }, C = (S, ae) => {
4630
4657
  let Z;
4631
- if (typeof R == "object" && (Z = R.getValue, R = R.id), $[R])
4632
- return $[R].val;
4633
- const le = ye(() => Z ? Z() : this.getLoadData(R, ae)), z = R.split("."), ue = z.shift(), me = z.shift() || "", re = se(() => {
4634
- const Be = Z ? Z() : this.getLoadData(R, ae);
4635
- if ($[R])
4636
- JSON.stringify(Be) !== JSON.stringify($[R].val) && ($[R].val = Be, b(!0));
4658
+ if (typeof S == "object" && (Z = S.getValue, S = S.id), $[S])
4659
+ return $[S].val;
4660
+ const le = $e(() => Z ? Z() : this.getLoadData(S, ae)), z = S.split("."), ue = z.shift(), ge = z.shift() || "", re = se(() => {
4661
+ const fe = Z ? Z() : this.getLoadData(S, ae);
4662
+ if ($[S])
4663
+ ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[S].val || JSON.stringify(fe) !== JSON.stringify($[S].val)) && ($[S].val = fe, b(!0));
4637
4664
  else return;
4638
- }, p || 0), tr = L(le, (Be) => {
4665
+ }, m || 0), rr = L(le, (fe) => {
4639
4666
  re();
4640
4667
  });
4641
- return this.bus.$on("$loadData." + ue, re), me && this.bus.$on("$loadData." + ue + "." + me, re), $[R] = {
4668
+ return this.bus.$on("$loadData." + ue, re), ge && this.bus.$on("$loadData." + ue + "." + ge, re), $[S] = {
4642
4669
  fn: () => {
4643
- this.bus.$off("$loadData." + ue, re), me && this.bus.$off("$loadData." + ue + "." + me, re), tr();
4670
+ this.bus.$off("$loadData." + ue, re), ge && this.bus.$off("$loadData." + ue + "." + ge, re), rr();
4644
4671
  },
4645
4672
  val: le.value
4646
4673
  }, le.value;
4647
4674
  };
4648
4675
  b(!1);
4649
4676
  const j = () => {
4650
- Object.keys($).forEach((R) => $[R].fn()), $ = {};
4677
+ Object.keys($).forEach((S) => $[S].fn()), $ = {};
4651
4678
  };
4652
4679
  return this.unwatch.push(j), j;
4653
4680
  },
@@ -4665,10 +4692,10 @@ function Jt(t) {
4665
4692
  }, K(d));
4666
4693
  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);
4667
4694
  },
4668
- mergeOptions(c, p, $) {
4669
- return p = v({}, p || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4670
- delete p[b];
4671
- }), p.global && (c.global = Gr(c.global, p.global), delete p.global), this.$handle.$manager.mergeOptions([p], c), c;
4695
+ mergeOptions(c, m, $) {
4696
+ return m = v({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4697
+ delete m[b];
4698
+ }), m.global && (c.global = Jr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4672
4699
  },
4673
4700
  updateOptions(c) {
4674
4701
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4701,70 +4728,70 @@ function Jt(t) {
4701
4728
  _(c, {
4702
4729
  version: t.version,
4703
4730
  ui: t.ui,
4704
- isMobile: g,
4705
- extendApi: Zt,
4731
+ isMobile: p,
4732
+ extendApi: Qt,
4706
4733
  getData: st,
4707
4734
  setDataDriver: Fe,
4708
- setData: Pe,
4709
- removeData: Qt,
4710
- refreshData: we,
4735
+ setData: Te,
4736
+ removeData: Yt,
4737
+ refreshData: Oe,
4711
4738
  maker: f,
4712
- component: k,
4713
- directive: M,
4714
- setModelField: zt,
4715
- setFormula: xt,
4716
- setDriver: Xt,
4717
- register: he,
4718
- $vnode: N,
4719
- parser: de,
4720
- use: pe,
4721
- factory: Wt,
4722
- componentAlias: Ie,
4739
+ component: E,
4740
+ directive: N,
4741
+ setModelField: xt,
4742
+ setFormula: Xt,
4743
+ setDriver: Zt,
4744
+ register: de,
4745
+ $vnode: M,
4746
+ parser: pe,
4747
+ use: me,
4748
+ factory: zt,
4749
+ componentAlias: Pe,
4723
4750
  copyRule: It,
4724
4751
  copyRules: Pt,
4725
4752
  mergeRule: te,
4726
- fetch: Nt,
4727
- $form: E,
4753
+ fetch: qt,
4754
+ $form: R,
4728
4755
  parseFn: x,
4729
4756
  parseJson: Vt,
4730
- toJson: _e,
4731
- useApp: T,
4757
+ toJson: Ce,
4758
+ useApp: V,
4732
4759
  getApi: G,
4733
- on: Yt
4760
+ on: er
4734
4761
  });
4735
4762
  }
4736
- function er(c) {
4763
+ function tr(c) {
4737
4764
  _(c, {
4738
4765
  create: W,
4739
- install(p, $) {
4740
- if (d = v(v({}, d), $ || {}), p._installedFormCreate === !0) return;
4741
- p._installedFormCreate = !0;
4742
- const b = function(j, R = {}) {
4743
- return W(j, R, this);
4766
+ install(m, $) {
4767
+ if (d = v(v({}, d), $ || {}), m._installedFormCreate === !0) return;
4768
+ m._installedFormCreate = !0;
4769
+ const b = function(j, S = {}) {
4770
+ return W(j, S, this);
4744
4771
  };
4745
- ot(b), p.prototype.$formCreate = b;
4746
- const C = E();
4747
- p.component(C.name, C), p.component("FcFragment", N()), o.forEach((j) => {
4748
- F(() => j(c, p));
4772
+ ot(b), m.prototype.$formCreate = b;
4773
+ const C = R();
4774
+ m.component(C.name, C), m.component("FcFragment", M()), o.forEach((j) => {
4775
+ O(() => j(c, m));
4749
4776
  });
4750
4777
  }
4751
4778
  });
4752
4779
  }
4753
- if (ot(O), er(O), Fe("$cookie", ji), Fe("$localStorage", Ai), Fe("$sessionStorage", Vi), y.use({ fragment: "fcFragment" }), t.install && W.use(t), de(Si), t.inherit) {
4780
+ if (ot(F), tr(F), Fe("$cookie", Ai), Fe("$localStorage", Vi), Fe("$sessionStorage", Ii), g.use({ fragment: "fcFragment" }), t.install && W.use(t), pe(Si), t.inherit) {
4754
4781
  const c = t.inherit;
4755
- c.components && _(e, c.components), c.parsers && _(r, c.parsers), c.directives && _(i, c.directives), c.modelFields && _(s, c.modelFields), c.providers && _(u, c.providers), c.useApps && _(o, c.useApps), c.maker && _(f, c.maker), c.loadData && _(m, c.loadData), c.formulas && _(w, c.formulas);
4782
+ c.components && _(e, c.components), c.parsers && _(r, c.parsers), c.directives && _(i, c.directives), c.modelFields && _(s, c.modelFields), c.providers && _(u, c.providers), c.useApps && _(o, c.useApps), c.maker && _(f, c.maker), c.loadData && _(y, c.loadData), c.formulas && _(w, c.formulas);
4756
4783
  }
4757
- const Oe = E();
4758
- return Se(Oe, O), Object.defineProperties(Oe, {
4784
+ const ke = R();
4785
+ return Se(ke, F), Object.defineProperties(ke, {
4759
4786
  fetch: {
4760
4787
  get() {
4761
- return O.fetch;
4788
+ return F.fetch;
4762
4789
  },
4763
4790
  set(c) {
4764
- O.fetch = c;
4791
+ F.fetch = c;
4765
4792
  }
4766
4793
  }
4767
- }), Oe.util = O, Oe;
4794
+ }), ke.util = F, ke;
4768
4795
  }
4769
4796
  const _t = {
4770
4797
  date: "yyyy-MM-dd",
@@ -4775,73 +4802,73 @@ const _t = {
4775
4802
  monthrange: "yyyy-MM",
4776
4803
  datetimerange: "yyyy-MM-dd HH:mm:ss",
4777
4804
  year: "yyyy"
4778
- }, Ct = "datePicker", Ni = {
4805
+ }, Ct = "datePicker", qi = {
4779
4806
  name: Ct,
4780
4807
  maker: function() {
4781
- return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = P(Ct, { type: e.toLowerCase() }), t), {});
4808
+ return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = T(Ct, { type: e.toLowerCase() }), t), {});
4782
4809
  }(),
4783
4810
  mergeProp(t) {
4784
4811
  const e = t.prop.props;
4785
4812
  e.valueFormat || (e.valueFormat = _t[e.type] || _t.date);
4786
4813
  }
4787
- }, qe = "hidden", qi = {
4814
+ }, qe = "hidden", Ui = {
4788
4815
  name: qe,
4789
4816
  maker: {
4790
- [qe]: (t, e) => P(qe)("", t, e)
4817
+ [qe]: (t, e) => T(qe)("", t, e)
4791
4818
  },
4792
4819
  render() {
4793
4820
  return [];
4794
4821
  }
4795
- }, Ue = "input", Ui = {
4822
+ }, Ue = "input", Hi = {
4796
4823
  name: Ue,
4797
4824
  maker: function() {
4798
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = P(Ue, { type: r }), e), {});
4799
- return t.idate = P(Ue, { type: "date" }), t;
4825
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = T(Ue, { type: r }), e), {});
4826
+ return t.idate = T(Ue, { type: "date" }), t;
4800
4827
  }(),
4801
4828
  mergeProp(t) {
4802
4829
  let { props: e } = t.prop;
4803
4830
  e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4804
4831
  }
4805
- }, wt = "slider", Hi = {
4832
+ }, wt = "slider", Gi = {
4806
4833
  name: wt,
4807
4834
  maker: {
4808
- sliderRange: P(wt, { range: !0 })
4835
+ sliderRange: T(wt, { range: !0 })
4809
4836
  },
4810
4837
  toFormValue(t, e) {
4811
4838
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4812
4839
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4813
4840
  }
4814
- }, He = "timePicker", Gi = {
4841
+ }, He = "timePicker", Ji = {
4815
4842
  name: He,
4816
4843
  maker: {
4817
- time: P(He, (t) => t.props.isRange = !1),
4818
- timeRange: P(He, (t) => t.props.isRange = !0)
4844
+ time: T(He, (t) => t.props.isRange = !1),
4845
+ timeRange: T(He, (t) => t.props.isRange = !0)
4819
4846
  },
4820
4847
  mergeProp(t) {
4821
4848
  const e = t.prop.props;
4822
4849
  e.valueFormat || (e.valueFormat = "HH:mm:ss");
4823
4850
  }
4824
- }, Ji = {
4851
+ }, Ki = {
4825
4852
  name: "FcRow",
4826
4853
  render(t, e) {
4827
4854
  return e.vNode.col({ props: { span: 24 } }, [
4828
4855
  e.vNode.row(e.prop, t)
4829
4856
  ]);
4830
4857
  }
4831
- }, Ki = "select", Wi = {
4832
- name: Ki,
4858
+ }, Wi = "select", zi = {
4859
+ name: Wi,
4833
4860
  toFormValue(t, e) {
4834
4861
  return e.prop.props.multiple && !Array.isArray(t) ? H(t) : t;
4835
4862
  }
4836
- }, zi = [
4837
- Ni,
4863
+ }, xi = [
4838
4864
  qi,
4839
4865
  Ui,
4840
4866
  Hi,
4841
4867
  Gi,
4842
4868
  Ji,
4843
- Wi
4844
- ], A = "el", xi = {
4869
+ Ki,
4870
+ zi
4871
+ ], A = "el", Xi = {
4845
4872
  button: A + "Button",
4846
4873
  icon: "i",
4847
4874
  slider: A + "Slider",
@@ -4874,7 +4901,7 @@ const _t = {
4874
4901
  object: "fcSubForm",
4875
4902
  subForm: "fcSubForm"
4876
4903
  };
4877
- function Xi() {
4904
+ function Zi() {
4878
4905
  return {
4879
4906
  form: {
4880
4907
  inline: !1,
@@ -4908,23 +4935,23 @@ function Xi() {
4908
4935
  }
4909
4936
  };
4910
4937
  }
4911
- function Zi(t) {
4938
+ function Qi(t) {
4912
4939
  return t.type === "tooltip";
4913
4940
  }
4914
- function Ft(t, e) {
4941
+ function Ot(t, e) {
4915
4942
  D(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4916
4943
  }
4917
4944
  function Q(t) {
4918
4945
  return t === !1;
4919
4946
  }
4920
- function Qi(t, e) {
4947
+ function Yi(t, e) {
4921
4948
  D(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4922
4949
  }
4923
4950
  function Ge(t) {
4924
4951
  const e = v({}, t);
4925
4952
  return delete e.children, e;
4926
4953
  }
4927
- const Yi = {
4954
+ const en = {
4928
4955
  validate() {
4929
4956
  const t = this.form();
4930
4957
  return t ? t.validate() : new Promise((e) => e());
@@ -4943,11 +4970,11 @@ const Yi = {
4943
4970
  },
4944
4971
  tidyOptions(t) {
4945
4972
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4946
- Qi(t, e);
4973
+ Yi(t, e);
4947
4974
  }), t;
4948
4975
  },
4949
4976
  tidyRule({ prop: t }) {
4950
- return Ft(t, "title"), Ft(t, "info"), t;
4977
+ return Ot(t, "title"), Ot(t, "info"), t;
4951
4978
  },
4952
4979
  mergeProp(t) {
4953
4980
  const e = {
@@ -4965,7 +4992,7 @@ const Yi = {
4965
4992
  });
4966
4993
  },
4967
4994
  getDefaultOptions() {
4968
- return Xi();
4995
+ return Zi();
4969
4996
  },
4970
4997
  update() {
4971
4998
  const t = this.options.form;
@@ -5013,22 +5040,22 @@ const Yi = {
5013
5040
  return !(!e.title && !e.native || Q(e.show));
5014
5041
  },
5015
5042
  makeInfo(t, e, r) {
5016
- var f, d, g, m, y, w;
5017
- const i = v({}, t.title), s = v({}, t.info), n = Zi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5043
+ var f, d, p, y, g, w;
5044
+ const i = v({}, t.title), s = v({}, t.info), n = Qi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5018
5045
  title: (d = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : d.value,
5019
5046
  rule: r.rule,
5020
5047
  options: this.options
5021
- }) : ((m = (g = r.refRule) == null ? void 0 : g.__$title) == null ? void 0 : m.value) + (o.labelSuffix || o["label-suffix"] || "")];
5048
+ }) : ((y = (p = r.refRule) == null ? void 0 : p.__$title) == null ? void 0 : y.value) + (o.labelSuffix || o["label-suffix"] || "")];
5022
5049
  if (!Q(s.show) && (s.info || s.native) && !Q(s.icon)) {
5023
- const O = {
5050
+ const F = {
5024
5051
  type: s.type || "popover",
5025
5052
  slot: "label",
5026
5053
  props: Ge(s),
5027
5054
  key: `${e}pop`
5028
5055
  };
5029
- delete O.props.icon, delete O.props.show, delete O.props.info, delete O.props.align, delete O.props.native;
5056
+ delete F.props.icon, delete F.props.show, delete F.props.info, delete F.props.align, delete F.props.native;
5030
5057
  const G = "content";
5031
- s.info && !D(O.props, G) && (O.props[G] = (w = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : w.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(ee([s, O]), [
5058
+ s.info && !D(F.props, G) && (F.props[G] = (w = (g = r.refRule) == null ? void 0 : g.__$info) == null ? void 0 : w.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(ee([s, F]), [
5032
5059
  this.$r({
5033
5060
  type: "i",
5034
5061
  slot: n ? "default" : "reference",
@@ -5113,35 +5140,35 @@ const Yi = {
5113
5140
  key: `${this.key}b1`
5114
5141
  }, [e]);
5115
5142
  }
5116
- }, ce = {};
5117
- en(ce);
5118
- tn(ce);
5119
- rn(ce);
5120
- nn(ce);
5121
- sn(ce);
5122
- function en(t) {
5143
+ }, he = {};
5144
+ tn(he);
5145
+ rn(he);
5146
+ nn(he);
5147
+ sn(he);
5148
+ on(he);
5149
+ function tn(t) {
5123
5150
  ["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "radio", "rate"].forEach((e) => {
5124
- t[e] = P(e);
5151
+ t[e] = T(e);
5125
5152
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
5126
5153
  }
5127
- function tn(t) {
5154
+ function rn(t) {
5128
5155
  const e = "select", r = "multiple";
5129
- t.selectMultiple = P(e, { [r]: !0 }), t.selectOne = P(e, { [r]: !1 });
5156
+ t.selectMultiple = T(e, { [r]: !0 }), t.selectOne = T(e, { [r]: !1 });
5130
5157
  }
5131
- function rn(t) {
5158
+ function nn(t) {
5132
5159
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
5133
- Object.keys(r).reduce((i, s) => (i[s] = P(e, { type: r[s] }), i), t);
5160
+ Object.keys(r).reduce((i, s) => (i[s] = T(e, { type: r[s] }), i), t);
5134
5161
  }
5135
- function nn(t) {
5162
+ function sn(t) {
5136
5163
  const e = "upload", r = {
5137
5164
  image: ["image", 0],
5138
5165
  file: ["file", 0],
5139
5166
  uploadFileOne: ["file", 1],
5140
5167
  uploadImageOne: ["image", 1]
5141
5168
  };
5142
- Object.keys(r).reduce((i, s) => (i[s] = P(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
5169
+ Object.keys(r).reduce((i, s) => (i[s] = T(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
5143
5170
  }
5144
- function sn(t) {
5171
+ function on(t) {
5145
5172
  const e = {
5146
5173
  frameInputs: ["input", 0],
5147
5174
  frameFiles: ["file", 0],
@@ -5150,12 +5177,12 @@ function sn(t) {
5150
5177
  frameFileOne: ["file", 1],
5151
5178
  frameImageOne: ["image", 1]
5152
5179
  };
5153
- return Object.keys(e).reduce((r, i) => (r[i] = P("frame", (s) => s.props({ type: e[i][0], maxLength: e[i][1] })), r), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages, t;
5180
+ return Object.keys(e).reduce((r, i) => (r[i] = T("frame", (s) => s.props({ type: e[i][0], maxLength: e[i][1] })), r), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages, t;
5154
5181
  }
5155
- function Ot(t, e) {
5182
+ function Ft(t, e) {
5156
5183
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5157
5184
  }
5158
- function on(t, e) {
5185
+ function an(t, e) {
5159
5186
  return {
5160
5187
  formEl() {
5161
5188
  return e.$manager.form();
@@ -5231,11 +5258,11 @@ function on(t, e) {
5231
5258
  }
5232
5259
  },
5233
5260
  submitBtnProps: (r = {}) => {
5234
- let i = Ot(e.options.submitBtn, !0);
5261
+ let i = Ft(e.options.submitBtn, !0);
5235
5262
  _(i, r), e.options.submitBtn = i, t.refreshOptions();
5236
5263
  },
5237
5264
  resetBtnProps: (r = {}) => {
5238
- let i = Ot(e.options.resetBtn, !1);
5265
+ let i = Ft(e.options.resetBtn, !1);
5239
5266
  _(i, r), e.options.resetBtn = i, t.refreshOptions();
5240
5267
  },
5241
5268
  submit(r, i) {
@@ -5243,21 +5270,21 @@ function on(t, e) {
5243
5270
  (e.options.validateOnSubmit === !1 ? Promise.resolve() : t.validate()).then(() => {
5244
5271
  let a = t.formData();
5245
5272
  e.beforeSubmit(a).then(() => {
5246
- h.Function(r) && F(() => r(a, t)), h.Function(e.options.onSubmit) && F(() => e.options.onSubmit(a, t)), e.vm.$emit("submit", a, t), s(a);
5273
+ h.Function(r) && O(() => r(a, t)), h.Function(e.options.onSubmit) && O(() => e.options.onSubmit(a, t)), e.vm.$emit("submit", a, t), s(a);
5247
5274
  }).catch((l) => {
5248
5275
  });
5249
5276
  }).catch((...a) => {
5250
- h.Function(i) && F(() => i(t, ...a)), n(...a);
5277
+ h.Function(i) && O(() => i(t, ...a)), n(...a);
5251
5278
  });
5252
5279
  });
5253
5280
  }
5254
5281
  };
5255
5282
  }
5256
- const Kt = {
5283
+ const Wt = {
5257
5284
  name: "required",
5258
5285
  load(t, e, r) {
5259
5286
  var s, n;
5260
- const i = an(t.getValue());
5287
+ const i = ln(t.getValue());
5261
5288
  if (i.required === !1)
5262
5289
  t.clearProp(), r.clearValidateState([e.field]);
5263
5290
  else {
@@ -5278,28 +5305,28 @@ const Kt = {
5278
5305
  r.sync(e);
5279
5306
  },
5280
5307
  watch(...t) {
5281
- Kt.load(...t);
5308
+ Wt.load(...t);
5282
5309
  }
5283
5310
  };
5284
- function an(t) {
5311
+ function ln(t) {
5285
5312
  return h.Boolean(t) ? { required: t } : h.String(t) ? { message: t } : h.Undef(t) ? { required: !1 } : h.Function(t) ? { validator: t } : h.Object(t) ? t : {};
5286
5313
  }
5287
- function ln(t) {
5288
- t.componentAlias(xi), Nr.forEach((e) => {
5314
+ function un(t) {
5315
+ t.componentAlias(Xi), qr.forEach((e) => {
5289
5316
  t.component(e.name, e);
5290
- }), t.register(Kt), zi.forEach((e) => {
5317
+ }), t.register(Wt), xi.forEach((e) => {
5291
5318
  t.parser(e);
5292
- }), Object.keys(ce).forEach((e) => {
5293
- t.maker[e] = ce[e];
5319
+ }), Object.keys(he).forEach((e) => {
5320
+ t.maker[e] = he[e];
5294
5321
  });
5295
5322
  }
5296
- function un() {
5297
- return Jt({
5323
+ function fn() {
5324
+ return Kt({
5298
5325
  ui: "element-ui",
5299
- version: "2.7.8",
5300
- manager: Yi,
5301
- extendApi: on,
5302
- install: ln,
5326
+ version: "2.7.9",
5327
+ manager: en,
5328
+ extendApi: an,
5329
+ install: un,
5303
5330
  attrs: {
5304
5331
  normal: ["col", "wrap"],
5305
5332
  array: ["className"],
@@ -5307,10 +5334,10 @@ function un() {
5307
5334
  }
5308
5335
  });
5309
5336
  }
5310
- const Ze = un();
5337
+ const Ze = fn();
5311
5338
  typeof window != "undefined" && (window.formCreate = Ze, window.Vue && Ze.install(window.Vue));
5312
- const hn = Ze.maker;
5339
+ const dn = Ze.maker;
5313
5340
  export {
5314
5341
  Ze as default,
5315
- hn as maker
5342
+ dn as maker
5316
5343
  };