@form-create/view-design 2.7.16 → 2.7.18

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,61 +1,61 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/view-design v2.7.16
3
+ * @form-create/view-design v2.7.17
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-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;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 .ivu-upload-list{margin-top:0}._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn,._fc-frame .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;box-shadow:2px 2px 5px #0000001a;margin-right:4px;box-sizing:border-box}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;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 .ivu-upload-list{margin-top:0}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._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;box-shadow:2px 2px 5px #0000001a;margin-right:4px;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 .ivu-form-item{margin-bottom:24px}.form-create .form-create .ivu-form-item .ivu-form-item{margin-bottom:0}.form-create.is-preview .fc-clock,.form-create .fc-none{display:none!important}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
10
- var sr = Object.defineProperty, or = Object.defineProperties;
11
- var ar = Object.getOwnPropertyDescriptors;
12
- var ot = Object.getOwnPropertySymbols;
13
- var lr = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
14
- var at = (t, e, r) => e in t ? sr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, _ = (t, e) => {
10
+ var or = Object.defineProperty, ar = Object.defineProperties;
11
+ var lr = Object.getOwnPropertyDescriptors;
12
+ var at = Object.getOwnPropertySymbols;
13
+ var ur = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable;
14
+ var lt = (t, e, r) => e in t ? or(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
- lr.call(e, r) && at(t, r, e[r]);
17
- if (ot)
18
- for (var r of ot(e))
19
- ur.call(e, r) && at(t, r, e[r]);
16
+ ur.call(e, r) && lt(t, r, e[r]);
17
+ if (at)
18
+ for (var r of at(e))
19
+ fr.call(e, r) && lt(t, r, e[r]);
20
20
  return t;
21
- }, U = (t, e) => or(t, ar(e));
22
- import ye, { getCurrentInstance as fr, provide as cr, inject as hr, toRefs as lt, reactive as ie, onBeforeMount as dr, watch as B, onMounted as pr, onBeforeUnmount as mr, onUpdated as gr, nextTick as V, markRaw as me, computed as ge, toRef as De, ref as yr } from "vue";
23
- function $r(t) {
21
+ }, q = (t, e) => ar(t, lr(e));
22
+ import ye, { getCurrentInstance as cr, provide as hr, inject as dr, toRefs as ut, reactive as ie, onBeforeMount as pr, watch as T, onMounted as mr, onBeforeUnmount as gr, onUpdated as yr, nextTick as V, markRaw as me, computed as ge, toRef as De, ref as $r } from "vue";
23
+ function br(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
- function ze() {
27
- return ze = Object.assign ? Object.assign.bind() : function(t) {
26
+ function Je() {
27
+ return Je = Object.assign ? Object.assign.bind() : function(t) {
28
28
  for (var e, r = 1; r < arguments.length; r++) for (var i in e = arguments[r], e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
29
29
  return t;
30
- }, ze.apply(this, arguments);
30
+ }, Je.apply(this, arguments);
31
31
  }
32
- var br = ["attrs", "props", "domProps"], vr = ["class", "style", "directives"], _r = ["on", "nativeOn"], Cr = function(t) {
32
+ var vr = ["attrs", "props", "domProps"], _r = ["class", "style", "directives"], Cr = ["on", "nativeOn"], wr = 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 (br.indexOf(i) !== -1) e[i] = ze({}, e[i], r[i]);
36
- else if (vr.indexOf(i) !== -1) {
35
+ else if (vr.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 (Cr.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] ? wr(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] ? Or(e[i][u], r[i][u]) : r[i][u];
45
45
  else e[i] = r[i];
46
46
  return e;
47
47
  }, {});
48
- }, wr = function(t, e) {
48
+ }, Or = function(t, e) {
49
49
  return function() {
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
- }, Or = Cr;
53
- const D = /* @__PURE__ */ $r(Or);
54
- function Ie(t, e) {
52
+ }, Fr = wr;
53
+ const D = /* @__PURE__ */ br(Fr);
54
+ function Ve(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => ((!e || e.indexOf(i) === -1) && r.push(t[i]), r), []);
56
56
  }
57
- const Fr = "fcCheckbox", kr = {
58
- name: Fr,
57
+ const kr = "fcCheckbox", Sr = {
58
+ name: kr,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -111,13 +111,13 @@ const Fr = "fcCheckbox", kr = {
111
111
  input: this.onInput
112
112
  }
113
113
  }]), [this.options().map((e, r) => {
114
- const i = _({}, e);
114
+ const i = v({}, e);
115
115
  return delete i.value, t("Checkbox", D([{}, {
116
116
  props: i
117
117
  }, {
118
118
  key: "" + r + "-" + e.value
119
119
  }]));
120
- }), Ie(this.$slots)]);
120
+ }), Ve(this.$slots)]);
121
121
  },
122
122
  mounted() {
123
123
  this.$emit("fc.el", this.$refs.el);
@@ -126,10 +126,10 @@ const Fr = "fcCheckbox", kr = {
126
126
  function H(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
- const Sr = "fcFrame";
130
- function Ft(t) {
129
+ const Rr = "fcFrame";
130
+ function kt(t) {
131
131
  return {
132
- name: Sr,
132
+ name: Rr,
133
133
  props: {
134
134
  formCreateInject: {
135
135
  type: Object,
@@ -469,7 +469,7 @@ function Ft(t) {
469
469
  src: this.previewImage
470
470
  }
471
471
  })]), e("Modal", D([{}, {
472
- props: _({
472
+ props: v({
473
473
  width: s,
474
474
  title: a
475
475
  }, this.modal)
@@ -503,16 +503,16 @@ function Ft(t) {
503
503
  }
504
504
  };
505
505
  }
506
- const kt = Ft({
506
+ const St = kt({
507
507
  fileIcon: "md-document",
508
508
  fileUpIcon: "ios-folder-open"
509
509
  });
510
- kt.v2 = Ft({
510
+ St.v2 = kt({
511
511
  fileIcon: "document-text",
512
512
  fileUpIcon: "folder"
513
513
  });
514
- const Rr = "fcRadio", Er = {
515
- name: Rr,
514
+ const Er = "fcRadio", jr = {
515
+ name: Er,
516
516
  props: {
517
517
  formCreateInject: {
518
518
  type: Object,
@@ -563,13 +563,13 @@ const Rr = "fcRadio", Er = {
563
563
  input: this.onInput
564
564
  }
565
565
  }]), [this.options().map((e, r) => {
566
- const i = _({}, e);
566
+ const i = v({}, e);
567
567
  return delete i.value, t("Radio", D([{}, {
568
568
  props: i
569
569
  }, {
570
570
  key: "" + r + "-" + e.value
571
571
  }]));
572
- }), Ie(this.$slots)]);
572
+ }), Ve(this.$slots)]);
573
573
  },
574
574
  mounted() {
575
575
  this.$emit("fc.el", this.$refs.el);
@@ -607,8 +607,8 @@ const Rr = "fcRadio", Er = {
607
607
  function j(t, e) {
608
608
  return {}.hasOwnProperty.call(t, e);
609
609
  }
610
- const jr = "fcSelect", Dr = {
611
- name: jr,
610
+ const Dr = "fcSelect", Ar = {
611
+ name: Dr,
612
612
  functional: !0,
613
613
  props: {
614
614
  formCreateInject: {
@@ -639,8 +639,8 @@ const jr = "fcSelect", Dr = {
639
639
  mounted() {
640
640
  this.$emit("fc.el", this.$refs.el);
641
641
  }
642
- }, Ar = "fcTree", Ir = {
643
- name: Ar,
642
+ }, Ir = "fcTree", Vr = {
643
+ name: Ir,
644
644
  props: {
645
645
  formCreateInject: {
646
646
  type: Object,
@@ -688,32 +688,32 @@ const jr = "fcSelect", Dr = {
688
688
  ref: "tree"
689
689
  }, {
690
690
  on: e
691
- }]), [Ie(this.$slots)]);
691
+ }]), [Ve(this.$slots)]);
692
692
  },
693
693
  mounted() {
694
694
  this.$emit("fc.el", this.$refs.tree);
695
695
  }
696
696
  };
697
- function ut(t) {
697
+ function ft(t) {
698
698
  return typeof t == "object" ? t : {
699
699
  url: t,
700
700
  is_string: !0,
701
- name: Vr(t)
701
+ name: Pr(t)
702
702
  };
703
703
  }
704
- function ft(t) {
705
- return U(_({}, t), {
704
+ function ct(t) {
705
+ return q(v({}, t), {
706
706
  file: t,
707
707
  value: t
708
708
  });
709
709
  }
710
- function Vr(t) {
710
+ function Pr(t) {
711
711
  return ("" + t).split("/").pop();
712
712
  }
713
- const Pr = "fcUpload";
714
- function St(t) {
713
+ const Lr = "fcUpload";
714
+ function Rt(t) {
715
715
  return {
716
- name: Pr,
716
+ name: Lr,
717
717
  props: {
718
718
  formCreateInject: {
719
719
  type: Object,
@@ -754,11 +754,11 @@ function St(t) {
754
754
  };
755
755
  },
756
756
  created() {
757
- this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = !1), this.formCreateInject.prop.props.defaultFileList = H(this.value).map(ut).map(ft);
757
+ this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = !1), this.formCreateInject.prop.props.defaultFileList = H(this.value).map(ft).map(ct);
758
758
  },
759
759
  watch: {
760
760
  value(e) {
761
- this.$refs.upload.fileList.every((r) => !r.status || r.status === "finished") && (this.$refs.upload.fileList = H(e).map(ut).map(ft), this.uploadList = this.$refs.upload.fileList);
761
+ this.$refs.upload.fileList.every((r) => !r.status || r.status === "finished") && (this.$refs.upload.fileList = H(e).map(ft).map(ct), this.uploadList = this.$refs.upload.fileList);
762
762
  },
763
763
  maxLength(e, r) {
764
764
  (r === 1 || e === 1) && this.update();
@@ -864,7 +864,7 @@ function St(t) {
864
864
  type: this.uploadType === "file" ? "ios-cloud-upload-outline" : t.imgUpIcon,
865
865
  size: 20
866
866
  }
867
- }]))])]) : null, Ie(this.$slots, ["default"])]);
867
+ }]))])]) : null, Ve(this.$slots, ["default"])]);
868
868
  },
869
869
  update() {
870
870
  let e = this.$refs.upload.fileList.map((r) => r.is_string ? r.url : r.value || r.url).filter((r) => r !== void 0);
@@ -907,11 +907,11 @@ function St(t) {
907
907
  }
908
908
  };
909
909
  }
910
- const Rt = St({
910
+ const Et = Rt({
911
911
  fileIcon: "md-document",
912
912
  imgUpIcon: "md-images"
913
913
  });
914
- Rt.v2 = St({
914
+ Et.v2 = Rt({
915
915
  fileIcon: "document-text",
916
916
  imgUpIcon: "image"
917
917
  });
@@ -948,20 +948,124 @@ function we(t, e = {}, r) {
948
948
  function G(t) {
949
949
  return we({}, { value: t }).value;
950
950
  }
951
- const Lr = Object.assign || function(t) {
951
+ const Br = Object.assign || function(t) {
952
952
  for (let e, r = 1; r < arguments.length; r++)
953
953
  for (let i in e = arguments[r], e)
954
954
  Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
955
955
  return t;
956
956
  };
957
957
  function C() {
958
- return Lr.apply(this, arguments);
958
+ return Br.apply(this, arguments);
959
+ }
960
+ function We(t) {
961
+ return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
962
+ }
963
+ function ne(t, e) {
964
+ var r = null;
965
+ return function(...i) {
966
+ r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
967
+ };
968
+ }
969
+ function Tr(t) {
970
+ return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
971
+ }
972
+ function Nr(t) {
973
+ return t && typeof t == "object" && typeof t.then == "function";
974
+ }
975
+ function Ae(t) {
976
+ return Nr(t) ? t : Promise.resolve(t);
977
+ }
978
+ function $e(t) {
979
+ let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
980
+ return e.indexOf("-") === 0 && (e = e.substr(1)), e;
981
+ }
982
+ function Mr(t) {
983
+ return t.replace(t[0], t[0].toLocaleUpperCase());
984
+ }
985
+ function jt(t, e, r) {
986
+ return `[form-create ${t}]: ${e}`;
987
+ }
988
+ function Ye(t, e) {
989
+ console.error(jt("err", t));
990
+ }
991
+ function qr(t) {
992
+ Ye(t.toString()), console.error(t);
993
+ }
994
+ const Ke = "[[FORM-CREATE-PREFIX-", Xe = "-FORM-CREATE-SUFFIX]]";
995
+ function Ce(t, e) {
996
+ return JSON.stringify(we(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
997
+ if (!(i && i._isVue === !0)) {
998
+ if (typeof i != "function")
999
+ return i;
1000
+ if (i.__json)
1001
+ return i.__json;
1002
+ if (i.__origin && (i = i.__origin), !i.__emit)
1003
+ return Ke + i + Xe;
1004
+ }
1005
+ }, e);
959
1006
  }
960
- function Je(t) {
961
- return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : _({}, t);
1007
+ function Ne(t) {
1008
+ return new Function("return " + t)();
962
1009
  }
963
- const Br = "fcGroup", Tr = {
964
- name: Br,
1010
+ function W(t, e) {
1011
+ if (t && h.String(t) && t.length > 4) {
1012
+ let r = t.trim(), i = !1;
1013
+ try {
1014
+ if (r.indexOf(Xe) > 0 && r.indexOf(Ke) === 0)
1015
+ r = r.replace(Xe, "").replace(Ke, ""), i = !0;
1016
+ else if (r.indexOf("$FN:") === 0)
1017
+ r = r.substring(4), i = !0;
1018
+ else if (r.indexOf("$EXEC:") === 0)
1019
+ r = r.substring(6), i = !0;
1020
+ else if (r.indexOf("$GLOBAL:") === 0) {
1021
+ const n = r.substring(8);
1022
+ return r = function(...o) {
1023
+ const a = o[0].api.getGlobalEvent(n);
1024
+ if (a)
1025
+ return a.call(this, ...o);
1026
+ }, r.__json = t, r.__inject = !0, r;
1027
+ } else {
1028
+ if (r.indexOf("$FNX:") === 0)
1029
+ return r = Ne(`function($inject){
1030
+ ` + r.substring(5) + `
1031
+ }`), r.__json = t, r.__inject = !0, r;
1032
+ (!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
1033
+ }
1034
+ if (!i) return t;
1035
+ let s;
1036
+ try {
1037
+ s = Ne(r);
1038
+ } catch (n) {
1039
+ s = Ne("function " + r);
1040
+ }
1041
+ return s.__json = t, s;
1042
+ } catch (s) {
1043
+ Ye(`解析失败:${r}
1044
+
1045
+ err: ${s}`);
1046
+ return;
1047
+ }
1048
+ }
1049
+ return t;
1050
+ }
1051
+ function Dt(t, e) {
1052
+ return JSON.parse(t, function(r, i) {
1053
+ return h.Undef(i) || !i.indexOf ? i : W(i, e);
1054
+ });
1055
+ }
1056
+ let Ur = 0;
1057
+ function Pe() {
1058
+ const t = 370 + ++Ur;
1059
+ return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1060
+ }
1061
+ function se(t, e, r) {
1062
+ let i = t, s;
1063
+ return (e || "").split(".").forEach((n) => {
1064
+ s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
1065
+ }), F(i, s, r), i;
1066
+ }
1067
+ const Gr = "fcGroup", Hr = {
1068
+ name: Gr,
965
1069
  props: {
966
1070
  field: String,
967
1071
  rule: [Array, Object],
@@ -1095,7 +1199,7 @@ const Br = "fcGroup", Tr = {
1095
1199
  if (i.filter((n) => r[n].$f).length !== i.length)
1096
1200
  return;
1097
1201
  const s = i.map((n) => {
1098
- const o = t === n ? e : _({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1202
+ const o = t === n ? e : v({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1099
1203
  return this.cache(n, a), a;
1100
1204
  });
1101
1205
  this.input(s);
@@ -1107,7 +1211,7 @@ const Br = "fcGroup", Tr = {
1107
1211
  }), this.cacheValue[t] !== JSON.stringify(r ? e[r] : e) && (this.cache(t, e), i && i.coverValue(e || {}));
1108
1212
  },
1109
1213
  addRule(t, e) {
1110
- const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? _({}, this.options) : {
1214
+ const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? v({}, this.options) : {
1111
1215
  submitBtn: !1,
1112
1216
  resetBtn: !1
1113
1217
  };
@@ -1143,11 +1247,16 @@ const Br = "fcGroup", Tr = {
1143
1247
  e.push(this.defaultValue ? G(this.defaultValue) : this.field ? null : {}), this.input(e);
1144
1248
  },
1145
1249
  del(t, e) {
1146
- if (this.disabled || this.onBeforeRemove(this.value, t) === !1)
1250
+ if (this.disabled)
1147
1251
  return;
1148
- this.removeRule(e, !0);
1149
- const r = [...this.value];
1150
- r.splice(t, 1), this.input(r);
1252
+ const r = () => {
1253
+ this.removeRule(e, !0);
1254
+ const i = [...this.value];
1255
+ i.splice(t, 1), this.input(i);
1256
+ };
1257
+ Ae(this.onBeforeRemove(this.modelValue, t)).then((i) => {
1258
+ i !== !1 && r();
1259
+ });
1151
1260
  },
1152
1261
  addIcon(t) {
1153
1262
  const e = this.$createElement;
@@ -1265,8 +1374,8 @@ const Br = "fcGroup", Tr = {
1265
1374
  class: "_fc-group " + (s ? "_fc-group-disabled" : "")
1266
1375
  }, [n]);
1267
1376
  }
1268
- }, Nr = "fcSubForm", Mr = {
1269
- name: Nr,
1377
+ }, zr = "fcSubForm", Jr = {
1378
+ name: zr,
1270
1379
  props: {
1271
1380
  rule: Array,
1272
1381
  options: Object,
@@ -1312,7 +1421,7 @@ const Br = "fcGroup", Tr = {
1312
1421
  submitBtn: !1,
1313
1422
  resetBtn: !1
1314
1423
  };
1315
- t.formData = _({}, this.value || {}), this.cacheRule = {
1424
+ t.formData = v({}, this.value || {}), this.cacheRule = {
1316
1425
  rule: this.rule,
1317
1426
  options: t
1318
1427
  };
@@ -1349,38 +1458,24 @@ const Br = "fcGroup", Tr = {
1349
1458
  }
1350
1459
  }]));
1351
1460
  }
1352
- }, Ur = [
1353
- kr,
1354
- Er,
1355
- Dr,
1356
- Ir,
1357
- Mr,
1358
- kt,
1359
- Rt,
1360
- Tr
1361
- ];
1362
- function ne(t, e) {
1363
- var r = null;
1364
- return function(...i) {
1365
- r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
1366
- };
1367
- }
1368
- function $e(t) {
1369
- let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1370
- return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1371
- }
1372
- function qr(t) {
1373
- return t.replace(t[0], t[0].toLocaleUpperCase());
1374
- }
1375
- const Et = ["attrs", "props", "domProps", "scopedSlots"], jt = ["class", "style", "directives"], Dt = ["on", "nativeOn", "hook"], x = (t, e = {}, r = {}) => {
1376
- const i = [...Et, ...r.normal || []], s = [...jt, ...r.array || []], n = [...Dt, ...r.functional || []], o = r.props || [];
1461
+ }, Wr = [
1462
+ Sr,
1463
+ jr,
1464
+ Ar,
1465
+ Vr,
1466
+ Jr,
1467
+ St,
1468
+ Et,
1469
+ Hr
1470
+ ], At = ["attrs", "props", "domProps", "scopedSlots"], It = ["class", "style", "directives"], Vt = ["on", "nativeOn", "hook"], x = (t, e = {}, r = {}) => {
1471
+ const i = [...At, ...r.normal || []], s = [...It, ...r.array || []], n = [...Vt, ...r.functional || []], o = r.props || [];
1377
1472
  return t.reduce((a, l) => {
1378
1473
  for (const u in l)
1379
1474
  if (a[u])
1380
1475
  if (o.indexOf(u) > -1)
1381
1476
  a[u] = x([l[u]], a[u]);
1382
1477
  else if (i.indexOf(u) > -1)
1383
- a[u] = _(_({}, a[u]), l[u]);
1478
+ a[u] = v(v({}, a[u]), l[u]);
1384
1479
  else if (s.indexOf(u) > -1) {
1385
1480
  const f = a[u] instanceof Array ? a[u] : [a[u]], p = l[u] instanceof Array ? l[u] : [l[u]];
1386
1481
  a[u] = [...f, ...p];
@@ -1393,105 +1488,20 @@ const Et = ["attrs", "props", "domProps", "scopedSlots"], jt = ["class", "style"
1393
1488
  a[u][f] = l[u][f];
1394
1489
  else if (u === "hook")
1395
1490
  for (let f in l[u])
1396
- a[u][f] ? a[u][f] = Gr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1491
+ a[u][f] ? a[u][f] = Kr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1397
1492
  else
1398
1493
  a[u] = l[u];
1399
1494
  else
1400
- i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = _({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? _({}, l[u]) : l[u] : a[u] = l[u];
1495
+ 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];
1401
1496
  return a;
1402
1497
  }, e);
1403
- }, Gr = (t, e) => function() {
1498
+ }, Kr = (t, e) => function() {
1404
1499
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1405
- }, At = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], Qe = ["validate", "children", "control"], Ye = ["effect", "deep", "renderSlots"];
1406
- function It() {
1407
- return [...At, ...Et, ...jt, ...Dt, ...Qe, ...Ye];
1408
- }
1409
- function Vt(t, e, r) {
1410
- return `[form-create ${t}]: ${e}`;
1411
- }
1412
- function et(t, e) {
1413
- console.error(Vt("err", t));
1414
- }
1415
- function Hr(t) {
1416
- et(t.toString()), console.error(t);
1417
- }
1418
- function zr(t) {
1419
- return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1420
- }
1421
- const We = "[[FORM-CREATE-PREFIX-", Ke = "-FORM-CREATE-SUFFIX]]";
1422
- function Ce(t, e) {
1423
- return JSON.stringify(we(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1424
- if (!(i && i._isVue === !0)) {
1425
- if (typeof i != "function")
1426
- return i;
1427
- if (i.__json)
1428
- return i.__json;
1429
- if (i.__origin && (i = i.__origin), !i.__emit)
1430
- return We + i + Ke;
1431
- }
1432
- }, e);
1433
- }
1434
- function Te(t) {
1435
- return new Function("return " + t)();
1436
- }
1437
- function W(t, e) {
1438
- if (t && h.String(t) && t.length > 4) {
1439
- let r = t.trim(), i = !1;
1440
- try {
1441
- if (r.indexOf(Ke) > 0 && r.indexOf(We) === 0)
1442
- r = r.replace(Ke, "").replace(We, ""), i = !0;
1443
- else if (r.indexOf("$FN:") === 0)
1444
- r = r.substring(4), i = !0;
1445
- else if (r.indexOf("$EXEC:") === 0)
1446
- r = r.substring(6), i = !0;
1447
- else if (r.indexOf("$GLOBAL:") === 0) {
1448
- const n = r.substring(8);
1449
- return r = function(...o) {
1450
- const a = o[0].api.getGlobalEvent(n);
1451
- if (a)
1452
- return a.call(this, ...o);
1453
- }, r.__json = t, r.__inject = !0, r;
1454
- } else {
1455
- if (r.indexOf("$FNX:") === 0)
1456
- return r = Te(`function($inject){
1457
- ` + r.substring(5) + `
1458
- }`), r.__json = t, r.__inject = !0, r;
1459
- (!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
1460
- }
1461
- if (!i) return t;
1462
- let s;
1463
- try {
1464
- s = Te(r);
1465
- } catch (n) {
1466
- s = Te("function " + r);
1467
- }
1468
- return s.__json = t, s;
1469
- } catch (s) {
1470
- et(`解析失败:${r}
1471
-
1472
- err: ${s}`);
1473
- return;
1474
- }
1475
- }
1476
- return t;
1477
- }
1478
- function Pt(t, e) {
1479
- return JSON.parse(t, function(r, i) {
1480
- return h.Undef(i) || !i.indexOf ? i : W(i, e);
1481
- });
1482
- }
1483
- let Jr = 0;
1484
- function Ve() {
1485
- const t = 370 + ++Jr;
1486
- return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1500
+ }, Pt = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], et = ["validate", "children", "control"], tt = ["effect", "deep", "renderSlots"];
1501
+ function Lt() {
1502
+ return [...Pt, ...At, ...It, ...Vt, ...et, ...tt];
1487
1503
  }
1488
- function se(t, e, r) {
1489
- let i = t, s;
1490
- return (e || "").split(".").forEach((n) => {
1491
- s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
1492
- }), F(i, s, r), i;
1493
- }
1494
- function Xe(t, e) {
1504
+ function Ze(t, e) {
1495
1505
  return {
1496
1506
  value: t,
1497
1507
  enumerable: !1,
@@ -1499,25 +1509,25 @@ function Xe(t, e) {
1499
1509
  writable: !!e
1500
1510
  };
1501
1511
  }
1502
- function Lt(t, e) {
1503
- return Bt([t], e || !1)[0];
1504
- }
1505
1512
  function Bt(t, e) {
1513
+ return Tt([t], e || !1)[0];
1514
+ }
1515
+ function Tt(t, e) {
1506
1516
  return we([], [...t], e || !1);
1507
1517
  }
1508
1518
  function Q(t, e) {
1509
- return x(Array.isArray(e) ? e : [e], t, { array: Qe, normal: Ye }), t;
1519
+ return x(Array.isArray(e) ? e : [e], t, { array: et, normal: tt }), t;
1510
1520
  }
1511
- function ct(t) {
1521
+ function ht(t) {
1512
1522
  const e = h.Function(t.getRule) ? t.getRule() : t;
1513
1523
  return e.type || (e.type = "input"), e;
1514
1524
  }
1515
- function Wr(t, e) {
1525
+ function Xr(t, e) {
1516
1526
  return t ? (Object.keys(e || {}).forEach((r) => {
1517
1527
  e[r] && (t[r] = Q(t[r] || {}, e[r]));
1518
1528
  }), t) : e;
1519
1529
  }
1520
- function Tt(t, e) {
1530
+ function Nt(t, e) {
1521
1531
  Object.defineProperties(t, Object.keys(e).reduce((r, i) => (r[i] = {
1522
1532
  get() {
1523
1533
  return e[i]();
@@ -1531,26 +1541,26 @@ function O(t, e) {
1531
1541
  try {
1532
1542
  e = t();
1533
1543
  } catch (r) {
1534
- Hr(r);
1544
+ qr(r);
1535
1545
  }
1536
1546
  return e;
1537
1547
  }
1538
- function Ze(t, e) {
1548
+ function xe(t, e) {
1539
1549
  let r = null;
1540
- return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Ze(i, e)) : r = t, r && e && H(r).forEach((i) => {
1550
+ return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => xe(i, e)) : r = t, r && e && H(r).forEach((i) => {
1541
1551
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1542
1552
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1543
1553
  });
1544
1554
  }), r;
1545
1555
  }
1546
- function Kr(t, e) {
1556
+ function Zr(t, e) {
1547
1557
  if (h.Object(t)) {
1548
1558
  const r = {};
1549
1559
  return Object.keys(t).forEach((i) => {
1550
- r[i] = Ze(t[i], i);
1560
+ r[i] = xe(t[i], i);
1551
1561
  }), r;
1552
1562
  } else
1553
- return Ze(t, e);
1563
+ return xe(t, e);
1554
1564
  }
1555
1565
  function Se() {
1556
1566
  const t = {}, e = (r) => r || "default";
@@ -1568,7 +1578,7 @@ function Se() {
1568
1578
  const n = s();
1569
1579
  Array.isArray(n) ? i.push(...n) : i.push(n);
1570
1580
  } else h.Undef(s) || i.push(s);
1571
- }), Kr(i, r);
1581
+ }), Zr(i, r);
1572
1582
  },
1573
1583
  getSlots() {
1574
1584
  let r = [];
@@ -1591,15 +1601,15 @@ function Se() {
1591
1601
  function Re(t, e) {
1592
1602
  return Object.setPrototypeOf(t, e), t;
1593
1603
  }
1594
- const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1595
- "==": (t, e) => JSON.stringify(t) === JSON.stringify(ht(t, e)),
1604
+ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1605
+ "==": (t, e) => JSON.stringify(t) === JSON.stringify(dt(t, e)),
1596
1606
  "!=": (t, e) => !ce["=="](t, e),
1597
1607
  ">": (t, e) => t > e,
1598
1608
  ">=": (t, e) => t >= e,
1599
1609
  "<": (t, e) => t < e,
1600
1610
  "<=": (t, e) => t <= e,
1601
1611
  on(t, e) {
1602
- return t && t.indexOf && t.indexOf(ht(t[0], e)) > -1;
1612
+ return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
1603
1613
  },
1604
1614
  notOn(t, e) {
1605
1615
  return !ce.on(t, e);
@@ -1631,7 +1641,7 @@ function L(t, e) {
1631
1641
  t != null && (t = t[r]);
1632
1642
  }), t;
1633
1643
  }
1634
- function Xr(t) {
1644
+ function xr(t) {
1635
1645
  const e = /{{\s*(.*?)\s*}}/g;
1636
1646
  let r;
1637
1647
  const i = {};
@@ -1639,20 +1649,20 @@ function Xr(t) {
1639
1649
  r[1] && (i[r[1]] = !0);
1640
1650
  return Object.keys(i);
1641
1651
  }
1642
- function dt(t) {
1652
+ function pt(t) {
1643
1653
  let e = t.split("."), r = [], i = "";
1644
1654
  return e.forEach((s, n) => {
1645
1655
  n === 0 ? i = s : i += "." + s, r.push(i);
1646
1656
  }), r.join(" && ");
1647
1657
  }
1648
- function Nt(t) {
1658
+ function Mt(t) {
1649
1659
  const e = [];
1650
1660
  let r = "", i = 0;
1651
1661
  for (let s = 0; s < t.length; s++) {
1652
1662
  const n = t[s];
1653
1663
  n === "[" ? (i === 0 && r && (e.push({ type: "key", value: r }), r = ""), i++, r += n) : n === "]" ? (i--, r += n, i === 0 && (e.push({
1654
1664
  type: "bracket",
1655
- value: Nt(r.slice(1, -1))
1665
+ value: Mt(r.slice(1, -1))
1656
1666
  }), r = "")) : n === "." && i === 0 ? r && (e.push({ type: "key", value: r }), r = "") : r += n;
1657
1667
  }
1658
1668
  return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
@@ -1665,7 +1675,7 @@ const Ee = (t, e) => {
1665
1675
  return Ee(t.$parent, e);
1666
1676
  }
1667
1677
  };
1668
- function Zr(t, e, r) {
1678
+ function Qr(t, e, r) {
1669
1679
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1670
1680
  return {
1671
1681
  name: i,
@@ -1717,42 +1727,42 @@ function Zr(t, e, r) {
1717
1727
  return this.fc.render();
1718
1728
  },
1719
1729
  setup(s) {
1720
- const n = fr().proxy;
1721
- cr("parentFC", n);
1722
- const o = hr("parentFC", null);
1730
+ const n = cr().proxy;
1731
+ hr("parentFC", n);
1732
+ const o = dr("parentFC", null);
1723
1733
  let a = o;
1724
1734
  if (o)
1725
1735
  for (; a.parent; )
1726
1736
  a = a.parent;
1727
1737
  else
1728
1738
  a = n;
1729
- const { rule: l, value: u, subForm: f, inFor: p } = lt(s), d = ie({
1739
+ const { rule: l, value: u, subForm: f, inFor: p } = ut(s), d = ie({
1730
1740
  ctxInject: {},
1731
1741
  destroyed: !1,
1732
1742
  isShow: !0,
1733
1743
  unique: 1,
1734
1744
  renderRule: [...l.value || []],
1735
1745
  updateValue: JSON.stringify(u.value || {})
1736
- }), g = new t(n), y = g.api(), v = p.value, E = () => {
1746
+ }), g = new t(n), y = g.api(), _ = p.value, E = () => {
1737
1747
  if (o) {
1738
1748
  const k = Ee(n, o);
1739
1749
  if (k) {
1740
1750
  let S;
1741
- v ? (S = H(k.getSubForm()), S.push(y)) : S = y, k.subForm(S);
1751
+ _ ? (S = H(k.getSubForm()), S.push(y)) : S = y, k.subForm(S);
1742
1752
  }
1743
1753
  }
1744
1754
  }, Y = () => {
1745
1755
  const k = Ee(n, o);
1746
1756
  if (k)
1747
- if (v) {
1757
+ if (_) {
1748
1758
  const S = H(k.getSubForm()), N = S.indexOf(y);
1749
1759
  N > -1 && S.splice(N, 1);
1750
1760
  } else
1751
1761
  k.subForm();
1752
1762
  };
1753
1763
  let I = null;
1754
- dr(() => {
1755
- B(() => {
1764
+ pr(() => {
1765
+ T(() => {
1756
1766
  let k = "";
1757
1767
  const S = s.option && s.option.globalClass || {};
1758
1768
  Object.keys(S).forEach((N) => {
@@ -1764,43 +1774,43 @@ function Zr(t, e, r) {
1764
1774
  }, () => {
1765
1775
  });
1766
1776
  });
1767
- const T = ne(() => {
1777
+ const B = ne(() => {
1768
1778
  g.bus.$emit("$loadData.$topForm");
1769
1779
  }, 100), he = ne(function() {
1770
1780
  g.bus.$emit("$loadData.$scopeForm");
1771
- }, 100), Pe = ne(() => {
1781
+ }, 100), Le = ne(() => {
1772
1782
  g.bus.$emit("$loadData.$form");
1773
1783
  }, 100), de = (k) => {
1774
1784
  g.bus.$emit("change-$form." + k);
1775
1785
  };
1776
- return pr(() => {
1777
- o && (y.top.bus.$on("$loadData.$form", T), y.top.bus.$on("change", de)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", he), g.mounted();
1778
- }), mr(() => {
1779
- o && (y.top.bus.$off("$loadData.$form", T), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), Y(), d.destroyed = !0, g.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1786
+ return mr(() => {
1787
+ o && (y.top.bus.$on("$loadData.$form", B), y.top.bus.$on("change", de)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", he), g.mounted();
1780
1788
  }), gr(() => {
1789
+ o && (y.top.bus.$off("$loadData.$form", B), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), Y(), d.destroyed = !0, g.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1790
+ }), yr(() => {
1781
1791
  g.updated();
1782
- }), B(f, (k) => {
1792
+ }), T(f, (k) => {
1783
1793
  k ? E() : Y();
1784
- }, { immediate: !0 }), B(() => s.option, () => {
1794
+ }, { immediate: !0 }), T(() => s.option, () => {
1785
1795
  g.initOptions(), y.refresh();
1786
- }, { deep: !0, flush: "sync" }), B(() => [...l.value], (k) => {
1796
+ }, { deep: !0, flush: "sync" }), T(() => [...l.value], (k) => {
1787
1797
  g.$handle.isBreakWatch() || k.length === d.renderRule.length && k.every((S) => d.renderRule.indexOf(S) > -1) || (g.$handle.updateAppendData(), g.$handle.reloadRule(l.value), n.renderRule());
1788
- }), B(() => [s.disabled, s.preview], () => {
1798
+ }), T(() => [s.disabled, s.preview], () => {
1789
1799
  y.refresh();
1790
- }), B(u, (k) => {
1800
+ }), T(u, (k) => {
1791
1801
  Ce(k || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(k || {}) : y.setValue(k || {}));
1792
- }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1802
+ }, { deep: !0, flush: "post" }), T(() => s.index, () => {
1793
1803
  y.coverValue({}), g.$handle.updateAppendData(), V(() => {
1794
1804
  V(() => {
1795
1805
  y.clearValidateState();
1796
1806
  });
1797
1807
  });
1798
- }, { flush: "sync" }), U(_({
1808
+ }, { flush: "sync" }), q(v({
1799
1809
  fc: me(g),
1800
1810
  parent: o && me(o),
1801
1811
  top: me(a),
1802
1812
  fapi: me(y)
1803
- }, lt(d)), {
1813
+ }, ut(d)), {
1804
1814
  getGroupInject: () => Ee(n, o),
1805
1815
  refresh() {
1806
1816
  ++d.unique;
@@ -1812,7 +1822,7 @@ function Zr(t, e, r) {
1812
1822
  if (d.destroyed) return;
1813
1823
  const S = Ce(k);
1814
1824
  d.updateValue !== S && (d.updateValue = S, n.$emit("update:value", k), V(() => {
1815
- Pe(), o ? f.value || he() : (T(), he());
1825
+ Le(), o ? f.value || he() : (B(), he());
1816
1826
  }));
1817
1827
  }
1818
1828
  });
@@ -1822,7 +1832,7 @@ function Zr(t, e, r) {
1822
1832
  }
1823
1833
  };
1824
1834
  }
1825
- function Mt() {
1835
+ function qt() {
1826
1836
  return {
1827
1837
  props: {},
1828
1838
  on: {},
@@ -1836,14 +1846,14 @@ function Mt() {
1836
1846
  }
1837
1847
  function P(t, e) {
1838
1848
  return (r, i, s, n = {}) => {
1839
- const o = new tt(t, r, i, s, n);
1849
+ const o = new rt(t, r, i, s, n);
1840
1850
  return e && (h.Function(e) ? e(o) : o.props(e)), o;
1841
1851
  };
1842
1852
  }
1843
- function tt(t, e, r, i, s) {
1844
- this._data = C(Mt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1853
+ function rt(t, e, r, i, s) {
1854
+ this._data = C(qt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1845
1855
  }
1846
- C(tt.prototype, {
1856
+ C(rt.prototype, {
1847
1857
  getRule() {
1848
1858
  return this._data;
1849
1859
  },
@@ -1852,39 +1862,39 @@ C(tt.prototype, {
1852
1862
  },
1853
1863
  _clone() {
1854
1864
  const t = new this.constructor();
1855
- return t._data = Lt(this._data), t;
1865
+ return t._data = Bt(this._data), t;
1856
1866
  }
1857
1867
  });
1858
1868
  function Ut(t) {
1859
1869
  t.forEach((e) => {
1860
- tt.prototype[e] = function(r) {
1870
+ rt.prototype[e] = function(r) {
1861
1871
  return Q(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1862
1872
  };
1863
1873
  });
1864
1874
  }
1865
- Ut(It());
1866
- const qt = P("");
1867
- function xr(t, e, r) {
1868
- let i = qt("", e);
1875
+ Ut(Lt());
1876
+ const Gt = P("");
1877
+ function Yr(t, e, r) {
1878
+ let i = Gt("", e);
1869
1879
  return i._data.type = t, i._data.title = r, i;
1870
1880
  }
1871
- function pt(t, e, r, i) {
1872
- let s = qt("", r);
1881
+ function mt(t, e, r, i) {
1882
+ let s = Gt("", r);
1873
1883
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1874
1884
  }
1875
- function Qr() {
1885
+ function ei() {
1876
1886
  return {
1877
- create: xr,
1878
- createTmp: pt,
1879
- template: pt,
1887
+ create: Yr,
1888
+ createTmp: mt,
1889
+ template: mt,
1880
1890
  factory: P
1881
1891
  };
1882
1892
  }
1883
- function Yr(t, e, r) {
1893
+ function ti(t, e, r) {
1884
1894
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1885
1895
  return s.status = r.status, s.url = t, s;
1886
1896
  }
1887
- function mt(t) {
1897
+ function gt(t) {
1888
1898
  const e = t.responseText || t.response;
1889
1899
  if (!e)
1890
1900
  return e;
@@ -1894,7 +1904,7 @@ function mt(t) {
1894
1904
  return e;
1895
1905
  }
1896
1906
  }
1897
- function Gt(t) {
1907
+ function Ht(t) {
1898
1908
  if (typeof XMLHttpRequest == "undefined")
1899
1909
  return;
1900
1910
  const e = new XMLHttpRequest();
@@ -1902,15 +1912,15 @@ function Gt(t) {
1902
1912
  if (e.upload && t.onProgress && e.upload.addEventListener("progress", (n) => {
1903
1913
  n.percent = n.total > 0 ? n.loaded / n.total * 100 : 0, t.onProgress(n);
1904
1914
  }), t.query) {
1905
- const n = new URLSearchParams(t.query).toString();
1906
- n && (r.includes("?") ? r += `&${n}` : r += `?${n}`);
1915
+ const n = h.String(t.query) ? t.query : Object.keys(t.query).reduce((a, l) => (a[l] = t.query[l] === null || t.query[l] === void 0 ? "" : t.query[l], a), {}), o = new URLSearchParams(n).toString();
1916
+ o && (r.includes("?") ? r += `&${o}` : r += `?${o}`);
1907
1917
  }
1908
1918
  e.onerror = function(o) {
1909
1919
  t.onError(o);
1910
1920
  }, e.onload = function() {
1911
1921
  if (e.status < 200 || e.status >= 300)
1912
- return t.onError(Yr(r, t, e), mt(e));
1913
- t.onSuccess(mt(e));
1922
+ return t.onError(ti(r, t, e), gt(e));
1923
+ t.onSuccess(gt(e));
1914
1924
  }, e.open(t.method || "get", r, !0);
1915
1925
  let i;
1916
1926
  (t.data || t.file) && (t.file || (t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data || {}).map((n) => {
@@ -1921,13 +1931,15 @@ function Gt(t) {
1921
1931
  s[n] != null && e.setRequestHeader(n, s[n]);
1922
1932
  }), e.send(i);
1923
1933
  }
1924
- function gt(t, e, r) {
1934
+ function yt(t, e, r) {
1925
1935
  return new Promise((i, s) => {
1926
- (e || Gt)(U(_({}, t), {
1936
+ (e || Ht)(q(v({}, t), {
1927
1937
  onSuccess(n) {
1928
1938
  let o = (l) => l;
1929
1939
  const a = W(t.parse);
1930
- h.Function(a) ? o = a : a && h.String(a) && (o = (l) => L(l, a)), i(o(n, t.targetRule, r));
1940
+ h.Function(a) ? o = a : a && h.String(a) && (o = (l) => L(l, a)), Ae(o(n, t.targetRule, r)).then((l) => {
1941
+ i(l);
1942
+ });
1931
1943
  },
1932
1944
  onError(n) {
1933
1945
  s(n);
@@ -1938,12 +1950,12 @@ function gt(t, e, r) {
1938
1950
  function ve(t) {
1939
1951
  return G(t);
1940
1952
  }
1941
- function ei(t) {
1953
+ function ri(t) {
1942
1954
  function e(n) {
1943
1955
  return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1944
1956
  }
1945
1957
  function r(n, o, a) {
1946
- h.Undef(n) ? n = Object.keys(_(_({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1958
+ h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1947
1959
  const u = t.fieldCtx[l] || t.nameCtx[l];
1948
1960
  u && u.forEach((f) => {
1949
1961
  F(f.rule, o, a), t.$render.clearCache(f);
@@ -2016,7 +2028,7 @@ function ei(t) {
2016
2028
  }
2017
2029
  },
2018
2030
  get formulas() {
2019
- return _({}, t.fc.formulas);
2031
+ return v({}, t.fc.formulas);
2020
2032
  },
2021
2033
  formData(n) {
2022
2034
  if (n == null || typeof n == "boolean") {
@@ -2032,7 +2044,7 @@ function ei(t) {
2032
2044
  return o ? ve(o.rule.value) : t.options.appendValue !== !1 && j(t.appendData, n) ? ve(t.appendData[n]) : void 0;
2033
2045
  },
2034
2046
  coverValue(n) {
2035
- const o = _({}, n || {});
2047
+ const o = v({}, n || {});
2036
2048
  t.deferSyncValue(() => {
2037
2049
  t.appendData = {}, s.fields().forEach((a) => {
2038
2050
  const l = t.fieldCtx[a];
@@ -2266,7 +2278,7 @@ function ei(t) {
2266
2278
  method(n, o) {
2267
2279
  const a = s.el(n);
2268
2280
  if (!a || !a[o])
2269
- throw new Error(Vt("err", `${o} 方法不存在`));
2281
+ throw new Error(jt("err", `${o} 方法不存在`));
2270
2282
  return (...l) => a[o](...l);
2271
2283
  },
2272
2284
  exec(n, o, ...a) {
@@ -2370,7 +2382,7 @@ function ei(t) {
2370
2382
  },
2371
2383
  fetch(n) {
2372
2384
  return new Promise((o, a) => {
2373
- n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => gt(n, t.fc.create.fetch, s).then((l) => {
2385
+ n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((l) => {
2374
2386
  O(() => n.onSuccess && n.onSuccess(l)), o(l);
2375
2387
  }).catch((l) => {
2376
2388
  O(() => n.onError && n.onError(l)), a(l);
@@ -2381,7 +2393,7 @@ function ei(t) {
2381
2393
  watchFetch(n, o, a, l) {
2382
2394
  return t.fc.watchLoadData((u, f) => {
2383
2395
  let p = G(n);
2384
- p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => gt(p, t.fc.create.fetch, s).then((d) => {
2396
+ p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((d) => {
2385
2397
  O(() => p.onSuccess && p.onSuccess(d)), o && o(d, f);
2386
2398
  }).catch((d) => {
2387
2399
  O(() => p.onError && p.onError(d)), a && a(d);
@@ -2415,7 +2427,7 @@ function ei(t) {
2415
2427
  };
2416
2428
  }), s.changeValue = s.changeField = s.setValue, s;
2417
2429
  }
2418
- function ti(t) {
2430
+ function ii(t) {
2419
2431
  C(t.prototype, {
2420
2432
  initCache() {
2421
2433
  this.clearCacheAll();
@@ -2447,16 +2459,16 @@ function ti(t) {
2447
2459
  }
2448
2460
  });
2449
2461
  }
2450
- function q(t) {
2462
+ function U(t) {
2451
2463
  const e = t.replace(/(-[a-z])/g, function(r) {
2452
2464
  return r.replace("-", "").toLocaleUpperCase();
2453
2465
  });
2454
- return Ht(e);
2466
+ return zt(e);
2455
2467
  }
2456
- function Ht(t) {
2468
+ function zt(t) {
2457
2469
  return t.replace(t[0], t[0].toLowerCase());
2458
2470
  }
2459
- function ri(t) {
2471
+ function ni(t) {
2460
2472
  C(t.prototype, {
2461
2473
  initRender() {
2462
2474
  this.cacheConfig = {};
@@ -2545,13 +2557,13 @@ function ri(t) {
2545
2557
  }, (() => {
2546
2558
  if (h.Function(n.renderSlots[y]))
2547
2559
  return O(() => n.renderSlots[y]());
2548
- const v = this.parseSide(n.renderSlots[y], e);
2549
- return this.renderRule(v);
2560
+ const _ = this.parseSide(n.renderSlots[y], e);
2561
+ return this.renderRule(_);
2550
2562
  })()));
2551
2563
  });
2552
2564
  const d = this.getTypeSlot(e);
2553
2565
  let g;
2554
- return d ? (u.children = f, g = d(u)) : g = a ? e.parser.preview(Je(f), e) : e.parser.render(Je(f), e), g = this.renderSides(g, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), g = this.$manager.makeWrap(e, g)), e.none && (Array.isArray(g) ? g = g.map((y) => !y || !y.tag ? y : this.none(y)) : g = this.none(g)), o && this.setCache(e, () => this.stable(g), r), g;
2566
+ return d ? (u.children = f, g = d(u)) : g = a ? e.parser.preview(We(f), e) : e.parser.render(We(f), e), g = this.renderSides(g, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), g = this.$manager.makeWrap(e, g)), e.none && (Array.isArray(g) ? g = g.map((y) => !y || !y.tag ? y : this.none(y)) : g = this.none(g)), o && this.setCache(e, () => this.stable(g), r), g;
2555
2567
  }, this.setCache(e, s, r);
2556
2568
  }
2557
2569
  return (...s) => {
@@ -2618,8 +2630,8 @@ function ri(t) {
2618
2630
  preview: e.prop.preview,
2619
2631
  options: e.prop.options,
2620
2632
  prop: function() {
2621
- const n = _({}, e.prop);
2622
- return n.on = n.on ? _({}, n.on) : {}, delete n.model, n;
2633
+ const n = v({}, e.prop);
2634
+ return n.on = n.on ? v({}, n.on) : {}, delete n.model, n;
2623
2635
  }(),
2624
2636
  children: e.loadChildrenPending()
2625
2637
  };
@@ -2630,7 +2642,7 @@ function ri(t) {
2630
2642
  ctxProp(e) {
2631
2643
  const { ref: r, key: i, rule: s } = e;
2632
2644
  this.$manager.mergeProp(e), e.parser.mergeProp(e);
2633
- const n = _({}, e.prop.on || {}), o = {};
2645
+ const n = v({}, e.prop.on || {}), o = {};
2634
2646
  Object.keys(n).forEach((l) => {
2635
2647
  if (l.indexOf("native.") === 0)
2636
2648
  o[l.replace("native.", "")] = n[l], delete n[l];
@@ -2708,7 +2720,7 @@ function ri(t) {
2708
2720
  },
2709
2721
  defaultRender(e, r) {
2710
2722
  const i = e.prop;
2711
- 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(Ht(i.type), i, r);
2723
+ 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(zt(i.type), i, r);
2712
2724
  },
2713
2725
  createChildrenVnodes(e, r, i) {
2714
2726
  this.force = i !== !1, this.tmpInput = r;
@@ -2727,22 +2739,22 @@ function ri(t) {
2727
2739
  if (i)
2728
2740
  s = e.type;
2729
2741
  else if (s = e.is, e.type) {
2730
- s = q(e.type);
2742
+ s = U(e.type);
2731
2743
  const a = this.vNode.aliasMap[s];
2732
- a && (s = q(a));
2744
+ a && (s = U(a));
2733
2745
  }
2734
2746
  if (!s) return;
2735
2747
  const n = Se();
2736
2748
  h.trueArray(e.children) && e.children.forEach((a) => {
2737
2749
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2738
2750
  });
2739
- const o = _({}, e);
2751
+ const o = v({}, e);
2740
2752
  return delete o.type, delete o.is, this.vNode.make(s, o, n.mergeBag(r).getSlots());
2741
2753
  }
2742
2754
  });
2743
2755
  }
2744
- let ii = 1;
2745
- function rt(t) {
2756
+ let si = 1;
2757
+ function it(t) {
2746
2758
  C(this, {
2747
2759
  $handle: t,
2748
2760
  fc: t.fc,
@@ -2751,8 +2763,8 @@ function rt(t) {
2751
2763
  vNode: new t.fc.CreateNode(t),
2752
2764
  force: !1,
2753
2765
  tmpInput: null,
2754
- id: ii++
2755
- }), Tt(this, {
2766
+ id: si++
2767
+ }), Nt(this, {
2756
2768
  options() {
2757
2769
  return t.options;
2758
2770
  },
@@ -2761,9 +2773,9 @@ function rt(t) {
2761
2773
  }
2762
2774
  }), this.initCache(), this.initRender();
2763
2775
  }
2764
- ti(rt);
2765
- ri(rt);
2766
- function ni(t) {
2776
+ ii(it);
2777
+ ni(it);
2778
+ function oi(t) {
2767
2779
  C(t.prototype, {
2768
2780
  parseInjectEvent(e, r) {
2769
2781
  const i = e.inject || this.options.injectEvent;
@@ -2793,14 +2805,14 @@ function ni(t) {
2793
2805
  let p, d = n || o || a;
2794
2806
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2795
2807
  r || (d = `native-${d}`);
2796
- const g = $e(`${d}-${f}`), y = (...v) => {
2797
- this.vm.$emit(g, ...v), this.vm.$emit("emit-event", g, ...v), this.bus.$emit(g, ...v);
2808
+ const g = $e(`${d}-${f}`), y = (..._) => {
2809
+ this.vm.$emit(g, ..._), this.vm.$emit("emit-event", g, ..._), this.bus.$emit(g, ..._);
2798
2810
  };
2799
2811
  if (y.__emit = !0, !p && l === !1)
2800
2812
  i[f] = y;
2801
2813
  else {
2802
- let v = p || l || this.options.injectEvent;
2803
- i[f] = h.Undef(v) ? y : this.inject(s, y, v);
2814
+ let _ = p || l || this.options.injectEvent;
2815
+ i[f] = h.Undef(_) ? y : this.inject(s, y, _);
2804
2816
  }
2805
2817
  }
2806
2818
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2830,7 +2842,7 @@ function ni(t) {
2830
2842
  },
2831
2843
  loadStrVar(e, r, i) {
2832
2844
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2833
- const s = e, n = Xr(e), o = (u) => {
2845
+ const s = e, n = xr(e), o = (u) => {
2834
2846
  let f = !1, p;
2835
2847
  if (i && u.indexOf("$form.") === 0) {
2836
2848
  const d = u.split(".");
@@ -2854,7 +2866,7 @@ function ni(t) {
2854
2866
  if (n.forEach((u) => {
2855
2867
  const f = u.split("||"), p = f[0].trim();
2856
2868
  if (p) {
2857
- const d = (f[1] || "").trim(), g = Nt(p);
2869
+ const d = (f[1] || "").trim(), g = Mt(p);
2858
2870
  let y = O(() => a(g));
2859
2871
  (y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2860
2872
  }
@@ -2869,7 +2881,7 @@ function ni(t) {
2869
2881
  const n = (o) => this.loadStrVar(o, r, s ? { rule: i, value: this.subRuleData[s.id] || {} } : null);
2870
2882
  return e.action = n(e.action || ""), ["headers", "data", "query"].forEach((o) => {
2871
2883
  if (e[o]) {
2872
- const a = {};
2884
+ const a = Array.isArray(e[o]) ? [] : {};
2873
2885
  Object.keys(e[o]).forEach((l) => {
2874
2886
  a[n(l)] = n(e[o][l]);
2875
2887
  }), e[o] = a;
@@ -2878,13 +2890,13 @@ function ni(t) {
2878
2890
  }
2879
2891
  });
2880
2892
  }
2881
- const yt = ["hook:updated", "hook:mounted"];
2882
- function si(t) {
2893
+ const $t = ["hook:updated", "hook:mounted"];
2894
+ function ai(t) {
2883
2895
  C(t.prototype, {
2884
2896
  usePage() {
2885
2897
  const e = this.options.page;
2886
2898
  if (!e) return;
2887
- let r = 25, i = oi(this.rules);
2899
+ let r = 25, i = li(this.rules);
2888
2900
  h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), C(this, {
2889
2901
  first: r,
2890
2902
  limit: i,
@@ -2893,16 +2905,16 @@ function si(t) {
2893
2905
  },
2894
2906
  pageLoad() {
2895
2907
  const e = () => {
2896
- this.pageEnd ? (this.vm.$off(yt, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2908
+ this.pageEnd ? (this.vm.$off($t, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2897
2909
  };
2898
- this.vm.$on(yt, e);
2910
+ this.vm.$on($t, e);
2899
2911
  }
2900
2912
  });
2901
2913
  }
2902
- function oi(t) {
2914
+ function li(t) {
2903
2915
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2904
2916
  }
2905
- function ai(t) {
2917
+ function ui(t) {
2906
2918
  C(t.prototype, {
2907
2919
  clearNextTick() {
2908
2920
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
@@ -2917,15 +2929,15 @@ function ai(t) {
2917
2929
  }
2918
2930
  });
2919
2931
  }
2920
- function li(t) {
2932
+ function fi(t) {
2921
2933
  Object.defineProperties(t.origin, {
2922
- __fc__: Xe(me(t), !0)
2934
+ __fc__: Ze(me(t), !0)
2923
2935
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2924
- __fc__: Xe(me(t), !0)
2936
+ __fc__: Ze(me(t), !0)
2925
2937
  });
2926
2938
  }
2927
- function zt(t, e, r) {
2928
- const i = Ve(), s = !!e.field;
2939
+ function Jt(t, e, r) {
2940
+ const i = Pe(), s = !!e.field;
2929
2941
  C(this, {
2930
2942
  id: i,
2931
2943
  ref: i,
@@ -2943,7 +2955,7 @@ function zt(t, e, r) {
2943
2955
  parent: null,
2944
2956
  group: e.subRule ? this : null,
2945
2957
  cacheConfig: null,
2946
- prop: _({}, e),
2958
+ prop: v({}, e),
2947
2959
  computed: {},
2948
2960
  payload: {},
2949
2961
  refRule: {},
@@ -2952,9 +2964,9 @@ function zt(t, e, r) {
2952
2964
  exportEl: void 0,
2953
2965
  defaultValue: s ? G(r) : void 0,
2954
2966
  field: e.field || void 0
2955
- }), this.updateKey(), li(this), this.update(t, !0);
2967
+ }), this.updateKey(), fi(this), this.update(t, !0);
2956
2968
  }
2957
- C(zt.prototype, {
2969
+ C(Jt.prototype, {
2958
2970
  getParentGroup() {
2959
2971
  let t = this.parent;
2960
2972
  for (; t; ) {
@@ -3024,17 +3036,17 @@ C(zt.prototype, {
3024
3036
  t === void 0 ? this.payload = {} : delete this.payload[t];
3025
3037
  },
3026
3038
  updateKey(t) {
3027
- this.key = Ve(), t && this.parent && this.parent.updateKey(t);
3039
+ this.key = Pe(), t && this.parent && this.parent.updateKey(t);
3028
3040
  },
3029
3041
  updateType() {
3030
- this.originType = this.rule.type, this.type = q(this.rule.type), this.trueType = this.$handle.getType(this.originType);
3042
+ this.originType = this.rule.type, this.type = U(this.rule.type), this.trueType = this.$handle.getType(this.originType);
3031
3043
  },
3032
3044
  setParser(t) {
3033
3045
  this.parser = t, t.init(this);
3034
3046
  },
3035
3047
  initProp() {
3036
3048
  var e, r;
3037
- const t = _({}, this.rule);
3049
+ const t = v({}, this.rule);
3038
3050
  delete t.children, delete t.validate, this.prop = Q({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
3039
3051
  },
3040
3052
  initNone() {
@@ -3050,7 +3062,9 @@ C(zt.prototype, {
3050
3062
  return this.vm === t.vm;
3051
3063
  },
3052
3064
  unwatch() {
3053
- this.watch.forEach((t) => t()), this.watch = [], this.refRule = {};
3065
+ this.watch.forEach((t) => t()), this.watch = [], Object.keys(this.refRule).forEach((t) => {
3066
+ t.indexOf("__$") !== 0 && delete this.refRule[t];
3067
+ });
3054
3068
  },
3055
3069
  unlink() {
3056
3070
  this.linkOn.forEach((t) => t()), this.linkOn = [];
@@ -3104,7 +3118,7 @@ C(zt.prototype, {
3104
3118
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
3105
3119
  }
3106
3120
  });
3107
- function ui(t) {
3121
+ function ci(t) {
3108
3122
  C(t.prototype, {
3109
3123
  nextRefresh(e) {
3110
3124
  const r = this.loadedId;
@@ -3113,10 +3127,10 @@ function ui(t) {
3113
3127
  });
3114
3128
  },
3115
3129
  parseRule(e) {
3116
- const r = ct(e);
3130
+ const r = ht(e);
3117
3131
  return Object.defineProperties(r, {
3118
- __origin__: Xe(e, !0)
3119
- }), fi(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3132
+ __origin__: Ze(e, !0)
3133
+ }), hi(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3120
3134
  i && this.loadFn(i, r);
3121
3135
  }), this.loadCtrl(r), r.update && (r.update = W(r.update)), r;
3122
3136
  },
@@ -3163,26 +3177,26 @@ function ui(t) {
3163
3177
  if (r && !h.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3164
3178
  if (o.__fc__ && o.__fc__.root === e && this.ctxs[o.__fc__.id])
3165
3179
  return s(o.__fc__.loadChildrenPending(), o.__fc__), o.__fc__;
3166
- let l = ct(o);
3180
+ let l = ht(o);
3167
3181
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3168
3182
  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);
3169
3183
  let f, p = !1, d = !!o.__fc__, g = l.value;
3170
3184
  if (d) {
3171
3185
  if (f = o.__fc__, g = f.defaultValue, f.deleted) {
3172
- if ($t(f))
3186
+ if (bt(f))
3173
3187
  return;
3174
3188
  f.update(this);
3175
3189
  } else if (!f.check(this)) {
3176
- if ($t(f))
3190
+ if (bt(f))
3177
3191
  return;
3178
- e[a] = o = o._clone ? o._clone() : Pt(Ce(o)), f = null, p = !0;
3192
+ e[a] = o = o._clone ? o._clone() : Dt(Ce(o)), f = null, p = !0;
3179
3193
  }
3180
3194
  }
3181
3195
  if (f)
3182
3196
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3183
3197
  else {
3184
3198
  const E = this.parseRule(o);
3185
- f = new zt(this, E, g), this.bindParser(f);
3199
+ f = new Jt(this, E, g), this.bindParser(f);
3186
3200
  }
3187
3201
  [!1, !0].forEach((E) => this.parseEmit(f, E)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !p && !d && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3188
3202
  const y = f.loadChildrenPending();
@@ -3190,9 +3204,9 @@ function ui(t) {
3190
3204
  const E = i(a);
3191
3205
  E > -1 || !a ? this.sort.splice(E + 1, 0, f.id) : this.sort.push(f.id);
3192
3206
  }
3193
- const v = f.rule;
3194
- return f.updated || (f.updated = !0, h.Function(v.update) && this.bus.$once("load-end", () => {
3195
- this.refreshUpdate(f, v.value, "init");
3207
+ const _ = f.rule;
3208
+ return f.updated || (f.updated = !0, h.Function(_.update) && this.bus.$once("load-end", () => {
3209
+ this.refreshUpdate(f, _.value, "init");
3196
3210
  }), this.effect(f, "loaded")), this.refreshControl(f) && (this.cycleLoad = !0), f;
3197
3211
  }).filter((o) => !!o);
3198
3212
  r && (r.children = n);
@@ -3201,16 +3215,16 @@ function ui(t) {
3201
3215
  return e.input && e.rule.control && this.useCtrl(e);
3202
3216
  },
3203
3217
  useCtrl(e) {
3204
- const r = ci(e), i = [], s = this.api;
3218
+ const r = di(e), i = [], s = this.api;
3205
3219
  if (!r.length) return !1;
3206
3220
  for (let a = 0; a < r.length; a++) {
3207
3221
  const l = r[a], u = l.handle || function(p) {
3208
3222
  return (ce[l.condition || "=="] || ce["=="])(p, l.value);
3209
3223
  };
3210
3224
  if (!h.trueArray(l.rule)) continue;
3211
- const f = U(_({}, l), {
3225
+ const f = q(v({}, l), {
3212
3226
  valid: O(() => u(e.rule.value, s)),
3213
- ctrl: hi(e, l.rule),
3227
+ ctrl: pi(e, l.rule),
3214
3228
  isHidden: h.String(l.rule[0])
3215
3229
  });
3216
3230
  f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || i.push(f);
@@ -3226,27 +3240,27 @@ function ui(t) {
3226
3240
  children: u,
3227
3241
  valid: l
3228
3242
  }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3229
- y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((v) => {
3230
- this.api.setEffect(v, "required", l);
3243
+ y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((_) => {
3244
+ this.api.setEffect(_, "required", l);
3231
3245
  }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3232
3246
  });
3233
3247
  return;
3234
3248
  }
3235
3249
  if (l) {
3236
3250
  o = !0;
3237
- const v = {
3251
+ const _ = {
3238
3252
  type: "fragment",
3239
3253
  native: !0,
3240
3254
  __ctrl: !0,
3241
3255
  children: u
3242
3256
  };
3243
- e.ctrlRule.push(v), this.bus.$once("load-start", () => {
3244
- f ? s.prepend(v, f, d) : p || d ? s.append(v, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, v);
3257
+ e.ctrlRule.push(_), this.bus.$once("load-start", () => {
3258
+ f ? s.prepend(_, f, d) : p || d ? s.append(_, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3245
3259
  });
3246
3260
  } else {
3247
3261
  e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3248
- const v = Z(g);
3249
- v && v.rm();
3262
+ const _ = Z(g);
3263
+ _ && _.rm();
3250
3264
  }
3251
3265
  });
3252
3266
  }), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
@@ -3260,7 +3274,7 @@ function ui(t) {
3260
3274
  },
3261
3275
  _reloadRule(e) {
3262
3276
  e || (e = this.rules);
3263
- const r = _({}, this.ctxs);
3277
+ const r = v({}, this.ctxs);
3264
3278
  this.clearNextTick(), this.initData(e), this.fc.rules = e, this.deferSyncValue(() => {
3265
3279
  this.bus.$once("load-end", () => {
3266
3280
  Object.keys(r).filter((i) => this.ctxs[i] === void 0).forEach((i) => this.rmCtx(r[i])), this.$render.clearCacheAll();
@@ -3273,27 +3287,27 @@ function ui(t) {
3273
3287
  }
3274
3288
  });
3275
3289
  }
3276
- function fi(t) {
3277
- const e = Mt();
3290
+ function hi(t) {
3291
+ const e = qt();
3278
3292
  return Object.keys(e).forEach((r) => {
3279
3293
  j(t, r) || F(t, r, e[r]);
3280
3294
  }), t;
3281
3295
  }
3282
- function ci(t) {
3296
+ function di(t) {
3283
3297
  const e = t.rule.control || [];
3284
3298
  return h.Object(e) ? [e] : e;
3285
3299
  }
3286
- function hi(t, e) {
3300
+ function pi(t, e) {
3287
3301
  for (let r = 0; r < t.ctrlRule.length; r++) {
3288
3302
  const i = t.ctrlRule[r];
3289
3303
  if (i.children === e)
3290
3304
  return i;
3291
3305
  }
3292
3306
  }
3293
- function $t(t) {
3307
+ function bt(t) {
3294
3308
  return !!t.rule.__ctrl;
3295
3309
  }
3296
- function di(t) {
3310
+ function mi(t) {
3297
3311
  C(t.prototype, {
3298
3312
  setValue(e, r, i, s) {
3299
3313
  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, {
@@ -3346,7 +3360,7 @@ function di(t) {
3346
3360
  return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
3347
3361
  },
3348
3362
  appendValue(e) {
3349
- (!e.field || !j(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
3363
+ (!e.field || !j(this.appendData, e.field)) && (!h.Undef(e.value) || !this.options.forceCoverValue) || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
3350
3364
  },
3351
3365
  addSubForm(e, r) {
3352
3366
  this.subForm[e.id] = r;
@@ -3363,7 +3377,7 @@ function di(t) {
3363
3377
  }), this.vm.updateValue(e);
3364
3378
  },
3365
3379
  isChange(e, r) {
3366
- return JSON.stringify(this.getFormData(e), bt) !== JSON.stringify(r, bt);
3380
+ return JSON.stringify(this.getFormData(e), vt) !== JSON.stringify(r, vt);
3367
3381
  },
3368
3382
  isQuote(e, r) {
3369
3383
  return (r instanceof Function || h.Object(r) || Array.isArray(r)) && r === e.rule.value;
@@ -3396,7 +3410,7 @@ function di(t) {
3396
3410
  }
3397
3411
  });
3398
3412
  }
3399
- function bt(t, e) {
3413
+ function vt(t, e) {
3400
3414
  return typeof e == "function" ? "" + e : e;
3401
3415
  }
3402
3416
  const je = {
@@ -3418,8 +3432,8 @@ const je = {
3418
3432
  },
3419
3433
  mergeProp(t) {
3420
3434
  }
3421
- }, pi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], _e = Symbol("oldValue");
3422
- function mi(t) {
3435
+ }, gi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], _e = Symbol("oldValue");
3436
+ function yi(t) {
3423
3437
  C(t.prototype, {
3424
3438
  getCtx(e) {
3425
3439
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
@@ -3450,26 +3464,26 @@ function mi(t) {
3450
3464
  getParser(e) {
3451
3465
  const r = this.fc.parsers, i = this.fc.renderDriver;
3452
3466
  if (i) {
3453
- const s = i.parsers || {}, n = s[e.originType] || s[q(e.type)] || s[e.trueType];
3467
+ const s = i.parsers || {}, n = s[e.originType] || s[U(e.type)] || s[e.trueType];
3454
3468
  if (n)
3455
3469
  return n;
3456
3470
  }
3457
- return r[e.originType] || r[q(e.type)] || r[e.trueType] || je;
3471
+ return r[e.originType] || r[U(e.type)] || r[e.trueType] || je;
3458
3472
  },
3459
3473
  bindParser(e) {
3460
3474
  e.setParser(this.getParser(e));
3461
3475
  },
3462
3476
  getType(e) {
3463
- const r = this.fc.CreateNode.aliasMap, i = r[e] || r[q(e)] || e;
3464
- return q(i);
3477
+ const r = this.fc.CreateNode.aliasMap, i = r[e] || r[U(e)] || e;
3478
+ return U(i);
3465
3479
  },
3466
3480
  noWatch(e) {
3467
3481
  this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
3468
3482
  },
3469
3483
  watchCtx(e) {
3470
- if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && pi.indexOf(i) === -1).forEach((i) => {
3484
+ if (Lt().filter((i) => i[0] !== "_" && i[0] !== "$" && gi.indexOf(i) === -1).forEach((i) => {
3471
3485
  const s = De(e.rule, i), n = i === "children";
3472
- e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3486
+ e.refRule[i] = s, e.watch.push(T(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3473
3487
  let l = s.value;
3474
3488
  if (!this.isBreakWatch()) {
3475
3489
  if (n && e.parser.loadChildren === !1) {
@@ -3510,7 +3524,7 @@ function mi(t) {
3510
3524
  return n ? this.api.t(n[1], { title: (a = (o = e.refRule) == null ? void 0 : o.__$title) == null ? void 0 : a.value }) : s;
3511
3525
  };
3512
3526
  return H(e.rule.validate).map((s) => {
3513
- const n = _({}, s);
3527
+ const n = v({}, s);
3514
3528
  if (n.message && (n.message = i(n.message)), h.Function(n.validator)) {
3515
3529
  const o = e;
3516
3530
  n.validator = function(...a) {
@@ -3525,7 +3539,7 @@ function mi(t) {
3525
3539
  }
3526
3540
  if (n.adapter) {
3527
3541
  if (typeof n.error == "object") {
3528
- const o = _({}, n.error);
3542
+ const o = v({}, n.error);
3529
3543
  Object.keys(o).forEach((a) => {
3530
3544
  o[a] = i(o[a]);
3531
3545
  }), n.error = o;
@@ -3536,7 +3550,7 @@ function mi(t) {
3536
3550
  });
3537
3551
  }), e.input) {
3538
3552
  const i = De(e.rule, "value");
3539
- e.watch.push(B(() => i.value, () => {
3553
+ e.watch.push(T(() => i.value, () => {
3540
3554
  let s = e.parser.toFormValue(i.value, e);
3541
3555
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
3542
3556
  }));
@@ -3552,7 +3566,7 @@ function mi(t) {
3552
3566
  }), o = (a) => {
3553
3567
  s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : se(e.rule, s, a);
3554
3568
  };
3555
- (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : n.value !== L(e.rule, s)) && o(n.value), e.watch.push(B(n, (a, l) => {
3569
+ (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : n.value !== L(e.rule, s)) && o(n.value), e.watch.push(T(n, (a, l) => {
3556
3570
  a === _e || a === l || setTimeout(() => {
3557
3571
  o(a);
3558
3572
  });
@@ -3687,11 +3701,11 @@ function mi(t) {
3687
3701
  if (p.variable)
3688
3702
  g = JSON.stringify(this.fc.getLoadData(p.variable)) || "";
3689
3703
  else if (p.field)
3690
- g = dt(p.field || "");
3704
+ g = pt(p.field || "");
3691
3705
  else if (!p.mode)
3692
3706
  return !0;
3693
3707
  let y = p.compare;
3694
- if (y && (y = dt(y || "")), p.mode ? d = n(p) : ce[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${g}, ${y || "$val"}); }}}}`).call(this.api.form, ce, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
3708
+ if (y && (y = pt(y || "")), p.mode ? d = n(p) : ce[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${g}, ${y || "$val"}); }}}}`).call(this.api.form, ce, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
3695
3709
  return !0;
3696
3710
  l || (u = u && d);
3697
3711
  }
@@ -3700,7 +3714,7 @@ function mi(t) {
3700
3714
  let o = n(r);
3701
3715
  return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : _e : r.linkageVariable ? o ? O(() => this.fc.getLoadData(r.linkageVariable), void 0) : _e : o;
3702
3716
  } else if (h.Function(r))
3703
- i = () => r(this.api.form, this.api);
3717
+ i = () => r(this.api.form, this.api, e.rule);
3704
3718
  else {
3705
3719
  const s = e.getParentGroup();
3706
3720
  i = () => this.computeValue(r, e, s);
@@ -3749,7 +3763,7 @@ function mi(t) {
3749
3763
  }
3750
3764
  });
3751
3765
  }
3752
- function gi(t) {
3766
+ function $i(t) {
3753
3767
  C(t.prototype, {
3754
3768
  mounted() {
3755
3769
  const e = () => {
@@ -3761,7 +3775,7 @@ function gi(t) {
3761
3775
  this.fc.targetFormDriver(e, this.api, this.fc), this.vm.$emit(e, this.api), this.emitEvent(e, this.api);
3762
3776
  },
3763
3777
  emitEvent(e, ...r) {
3764
- const i = this.options[e] || this.options[q("on-" + e)];
3778
+ const i = this.options[e] || this.options[U("on-" + e)];
3765
3779
  if (i) {
3766
3780
  const s = W(i);
3767
3781
  h.Function(s) && O(() => s(...r));
@@ -3772,7 +3786,7 @@ function gi(t) {
3772
3786
  var l, u, f, p;
3773
3787
  let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, g) => {
3774
3788
  d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
3775
- O(() => y(U(_({}, i || {}), {
3789
+ O(() => y(q(v({}, i || {}), {
3776
3790
  self: e.rule,
3777
3791
  rule: e.rule,
3778
3792
  parent: g == null ? void 0 : g.rule,
@@ -3783,7 +3797,7 @@ function gi(t) {
3783
3797
  }));
3784
3798
  };
3785
3799
  n(s);
3786
- let o = "deep" + qr(r), a = e.parent;
3800
+ let o = "deep" + Mr(r), a = e.parent;
3787
3801
  for (; a; ) {
3788
3802
  let d = (p = (f = a.prop) == null ? void 0 : f.hook) == null ? void 0 : p[o];
3789
3803
  n(d, a), a = a.parent;
@@ -3791,13 +3805,13 @@ function gi(t) {
3791
3805
  }
3792
3806
  });
3793
3807
  }
3794
- function yi(t) {
3808
+ function bi(t) {
3795
3809
  C(t.prototype, {
3796
3810
  useProvider() {
3797
3811
  const e = this.fc.providers;
3798
3812
  Object.keys(e).forEach((r) => {
3799
3813
  let i = e[r];
3800
- h.Function(i) && (i = i(this.fc)), i._c = bi(i), this.onEffect(i, r), this.providers[r] = i;
3814
+ h.Function(i) && (i = i(this.fc)), i._c = _i(i), this.onEffect(i, r), this.providers[r] = i;
3801
3815
  });
3802
3816
  },
3803
3817
  onEffect(e, r) {
@@ -3821,7 +3835,7 @@ function yi(t) {
3821
3835
  }), Object.keys(e.rule).forEach((i) => {
3822
3836
  i[0] === "$" && (r[i.substr(1)] = () => e.rule[i]);
3823
3837
  }), Object.keys(r).forEach((i) => {
3824
- e.watch.push(B(r[i], (s) => {
3838
+ e.watch.push(T(r[i], (s) => {
3825
3839
  this.effect(e, "watch", { [i]: s });
3826
3840
  }, { deep: !0 }));
3827
3841
  });
@@ -3850,7 +3864,7 @@ function yi(t) {
3850
3864
  },
3851
3865
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
3852
3866
  if (!s || ["fcFragment", "fragment"].indexOf(s) > -1) return;
3853
- const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), _({}, r.effect || {}));
3867
+ const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), v({}, r.effect || {}));
3854
3868
  Object.keys(l).forEach((u) => {
3855
3869
  const f = this.providers[u];
3856
3870
  if (!f || f.input && !i) return;
@@ -3861,26 +3875,26 @@ function yi(t) {
3861
3875
  p = s;
3862
3876
  else
3863
3877
  return;
3864
- const d = _({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3878
+ const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3865
3879
  e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (g) => Q(d.getProp(), [g]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3866
3880
  });
3867
3881
  }
3868
3882
  });
3869
3883
  }
3870
- function $i(t) {
3884
+ function vi(t) {
3871
3885
  return t.filter(function(e, r, i) {
3872
3886
  return i.indexOf(e, 0) === r;
3873
3887
  });
3874
3888
  }
3875
- function bi(t) {
3889
+ function _i(t) {
3876
3890
  const e = t.components;
3877
3891
  if (Array.isArray(e)) {
3878
- const r = $i(e.filter((i) => i !== "*"));
3892
+ const r = vi(e.filter((i) => i !== "*"));
3879
3893
  return r.length ? r : !1;
3880
3894
  } else return h.String(e) ? [e] : !1;
3881
3895
  }
3882
3896
  function K(t) {
3883
- Tt(this, {
3897
+ Nt(this, {
3884
3898
  options() {
3885
3899
  return t.options.value || {};
3886
3900
  },
@@ -3914,10 +3928,10 @@ function K(t) {
3914
3928
  nextReload: () => {
3915
3929
  this.lifecycle("reload");
3916
3930
  }
3917
- }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3931
+ }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
3918
3932
  const i = O(() => r(e, this));
3919
3933
  return i && i !== e && C(e, i), e;
3920
- }, ei(this));
3934
+ }, ri(this));
3921
3935
  }
3922
3936
  C(K.prototype, {
3923
3937
  initData(t) {
@@ -3933,7 +3947,7 @@ C(K.prototype, {
3933
3947
  this.updateAppendData(), this.useProvider(), this.usePage(), this.loadRule(), this.$manager.__init(), this.lifecycle("created");
3934
3948
  },
3935
3949
  updateAppendData() {
3936
- this.appendData = _(_(_({}, this.options.formData || {}), this.fc.vm.$props.value || {}), this.appendData);
3950
+ this.appendData = v(v(v({}, this.options.formData || {}), this.fc.vm.$props.value || {}), this.appendData);
3937
3951
  },
3938
3952
  isBreakWatch() {
3939
3953
  return this.loading || this.noWatchFn || this.reloading;
@@ -3957,26 +3971,26 @@ C(K.prototype, {
3957
3971
  });
3958
3972
  }
3959
3973
  });
3960
- ni(K);
3961
- si(K);
3974
+ oi(K);
3962
3975
  ai(K);
3963
3976
  ui(K);
3964
- di(K);
3977
+ ci(K);
3965
3978
  mi(K);
3966
- gi(K);
3967
3979
  yi(K);
3968
- const vi = "fcFragment", Ne = {
3969
- name: vi,
3980
+ $i(K);
3981
+ bi(K);
3982
+ const Ci = "fcFragment", Me = {
3983
+ name: Ci,
3970
3984
  functional: !0,
3971
3985
  props: ["vnode"],
3972
3986
  render(t, e) {
3973
3987
  return e.props.vnode ? e.props.vnode : e.children;
3974
3988
  }
3975
3989
  };
3976
- function _i(t) {
3990
+ function wi(t) {
3977
3991
  return h.String(t) ? { domProps: { innerHTML: t } } : t;
3978
3992
  }
3979
- function Ci() {
3993
+ function Oi() {
3980
3994
  const t = {};
3981
3995
  function e(r) {
3982
3996
  r && this.setVm(r);
@@ -3993,7 +4007,7 @@ function Ci() {
3993
4007
  var a;
3994
4008
  const n = this.handle.fc.prop.components[r];
3995
4009
  n && (r = n);
3996
- let o = this.$h(r, _i(i), s || []);
4010
+ let o = this.$h(r, wi(i), s || []);
3997
4011
  if ((a = o == null ? void 0 : o.componentOptions) != null && a.propsData && (i != null && i.props)) {
3998
4012
  const l = Object.keys(o.componentOptions.propsData);
3999
4013
  o.data.attrs || (o.data.attrs = {}), Object.keys(i.props).forEach((u) => {
@@ -4010,7 +4024,7 @@ function Ci() {
4010
4024
  },
4011
4025
  use(r) {
4012
4026
  Object.keys(r).forEach((i) => {
4013
- const s = $e(i), n = zr(i).toLocaleLowerCase(), o = r[i];
4027
+ const s = $e(i), n = Tr(i).toLocaleLowerCase(), o = r[i];
4014
4028
  e.alias(i, o), [i, s, n].forEach((a) => {
4015
4029
  e.prototype[a] = function(l, u) {
4016
4030
  return this.make(t[i] || a, l, u);
@@ -4020,12 +4034,12 @@ function Ci() {
4020
4034
  }
4021
4035
  }), e;
4022
4036
  }
4023
- function wi(t) {
4024
- class e extends Jt {
4037
+ function Fi(t) {
4038
+ class e extends Wt {
4025
4039
  }
4026
4040
  return Object.assign(e.prototype, t), e;
4027
4041
  }
4028
- function Jt(t) {
4042
+ function Wt(t) {
4029
4043
  C(this, {
4030
4044
  $handle: t,
4031
4045
  vm: t.vm,
@@ -4036,12 +4050,12 @@ function Jt(t) {
4036
4050
  }
4037
4051
  }), this.updateKey(), this.init();
4038
4052
  }
4039
- C(Jt.prototype, {
4053
+ C(Wt.prototype, {
4040
4054
  __init() {
4041
4055
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
4042
4056
  },
4043
4057
  updateKey() {
4044
- this.key = Ve();
4058
+ this.key = Pe();
4045
4059
  },
4046
4060
  //TODO interface
4047
4061
  init() {
@@ -4086,7 +4100,7 @@ C(Jt.prototype, {
4086
4100
  render(t) {
4087
4101
  }
4088
4102
  });
4089
- const Oi = function(t) {
4103
+ const ki = function(t) {
4090
4104
  const e = {
4091
4105
  name: "loadData",
4092
4106
  _fn: [],
@@ -4117,7 +4131,7 @@ const Oi = function(t) {
4117
4131
  }
4118
4132
  };
4119
4133
  return e.watch = e.loaded, e;
4120
- }, Fi = function(t) {
4134
+ }, Si = function(t) {
4121
4135
  const e = {
4122
4136
  name: "t",
4123
4137
  _fn: [],
@@ -4131,8 +4145,8 @@ const Oi = function(t) {
4131
4145
  const u = typeof l == "object";
4132
4146
  let f = (g) => {
4133
4147
  let y = t.t(u ? l.attr : l, u ? l.params : null, g);
4134
- const v = u && l.modify ? i : r.getProp();
4135
- a === "child" ? v.children ? F(v.children, 0, y) : F(v, "children", [y]) : se(v, a, y), s.sync(i);
4148
+ const _ = u && l.modify ? i : r.getProp();
4149
+ a === "child" ? _.children ? F(_.children, 0, y) : F(_, "children", [y]) : se(_, a, y), s.sync(i);
4136
4150
  }, p = (g) => f(g);
4137
4151
  const d = t.watchLoadData(p);
4138
4152
  f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
@@ -4146,7 +4160,7 @@ const Oi = function(t) {
4146
4160
  }
4147
4161
  };
4148
4162
  return e.watch = e.loaded, e;
4149
- }, Wt = {
4163
+ }, Kt = {
4150
4164
  name: "componentValidate",
4151
4165
  load(t, e, r) {
4152
4166
  let i = t.getValue();
@@ -4154,7 +4168,7 @@ const Oi = function(t) {
4154
4168
  t.clearProp(), r.clearValidateState([e.field]);
4155
4169
  else {
4156
4170
  h.Object(i) || (i = { method: i });
4157
- const s = i.method, n = U(_({}, i), {
4171
+ const s = i.method, n = q(v({}, i), {
4158
4172
  validator(...o) {
4159
4173
  const a = Z(e);
4160
4174
  if (a)
@@ -4169,9 +4183,9 @@ const Oi = function(t) {
4169
4183
  }
4170
4184
  },
4171
4185
  watch(...t) {
4172
- Wt.load(...t);
4186
+ Kt.load(...t);
4173
4187
  }
4174
- }, ki = function(t) {
4188
+ }, Ri = function(t) {
4175
4189
  function e(s) {
4176
4190
  return h.String(s) && (s = {
4177
4191
  action: s,
@@ -4188,7 +4202,18 @@ const Oi = function(t) {
4188
4202
  l(void 0);
4189
4203
  return;
4190
4204
  }
4191
- a = G(a), a.to || (a.to = "options");
4205
+ if (a = G(a), a.to || (a.to = "options"), a.key) {
4206
+ const p = t.$handle.options.globalData[a.key];
4207
+ if (!p) {
4208
+ l(void 0);
4209
+ return;
4210
+ }
4211
+ if (p.type === "static") {
4212
+ l(p.data);
4213
+ return;
4214
+ } else
4215
+ a = v(v({}, a), p);
4216
+ }
4192
4217
  const u = a.onError, f = () => {
4193
4218
  if (!s.getValue())
4194
4219
  return s.clearProp(), o.sync(n), !0;
@@ -4196,39 +4221,32 @@ const Oi = function(t) {
4196
4221
  i._fn[s.id] = t.watchLoadData(ne((p, d) => {
4197
4222
  if (d && a.watch === !1)
4198
4223
  return i._fn[s.id]();
4199
- if (a.key) {
4200
- t.targetRule = n;
4201
- const v = p("$globalData." + a.key);
4202
- if (delete t.targetRule, v) {
4203
- if (f()) return;
4204
- l(v);
4205
- }
4206
- return;
4207
- }
4208
- const g = t.$handle.loadFetchVar(G(a), p, n), y = U(_({
4224
+ const g = t.$handle.loadFetchVar(G(a), p, n), y = q(v({
4209
4225
  headers: {}
4210
4226
  }, g), {
4211
- onSuccess(v, E) {
4227
+ onSuccess(_, E) {
4212
4228
  if (f()) return;
4213
- let Y = (T) => E ? T : j(T, "data") ? T.data : T;
4229
+ let Y = (B) => E ? B : j(B, "data") ? B.data : B;
4214
4230
  const I = W(g.parse);
4215
- h.Function(I) ? Y = I : I && h.String(I) && (Y = (T) => L(T, I)), l(Y(v, n, o));
4231
+ h.Function(I) ? Y = I : I && h.String(I) && (Y = (B) => L(B, I)), Ae(Y(_, n, o)).then((B) => {
4232
+ l(B);
4233
+ });
4216
4234
  },
4217
- onError(v) {
4218
- l(void 0), !f() && (u || ((E) => et(E.message || "fetch fail " + g.action)))(v, n, o);
4235
+ onError(_) {
4236
+ l(void 0), !f() && (u || ((E) => Ye(E.message || "fetch fail " + g.action)))(_, n, o);
4219
4237
  }
4220
4238
  });
4221
4239
  t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4222
4240
  if (h.Function(g.action)) {
4223
- g.action(n, o).then((v) => {
4224
- y.onSuccess(v, !0);
4225
- }).catch((v) => {
4226
- y.onError(v);
4241
+ Ae(g.action(n, o)).then((_) => {
4242
+ y.onSuccess(_, !0);
4243
+ }).catch((_) => {
4244
+ y.onError(_);
4227
4245
  });
4228
4246
  return;
4229
4247
  }
4230
4248
  O(() => t.create.fetch(y, { inject: s, rule: n, api: o }));
4231
- }).catch((v) => {
4249
+ }).catch((_) => {
4232
4250
  });
4233
4251
  }, a.wait || 600));
4234
4252
  }
@@ -4246,13 +4264,13 @@ const Oi = function(t) {
4246
4264
  }
4247
4265
  };
4248
4266
  return i;
4249
- }, Si = {
4250
- fetch: ki,
4251
- loadData: Oi,
4252
- t: Fi,
4253
- componentValidate: Wt
4267
+ }, Ei = {
4268
+ fetch: Ri,
4269
+ loadData: ki,
4270
+ t: Si,
4271
+ componentValidate: Kt
4254
4272
  };
4255
- function Ri(t) {
4273
+ function ji(t) {
4256
4274
  t = t || /* @__PURE__ */ new Map();
4257
4275
  const e = {
4258
4276
  $on(r, i) {
@@ -4276,8 +4294,8 @@ function Ri(t) {
4276
4294
  };
4277
4295
  return e;
4278
4296
  }
4279
- const Ei = "html", ji = {
4280
- name: Ei,
4297
+ const Di = "html", Ai = {
4298
+ name: Di,
4281
4299
  loadChildren: !1,
4282
4300
  render(t, e) {
4283
4301
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
@@ -4286,7 +4304,7 @@ const Ei = "html", ji = {
4286
4304
  return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
4287
4305
  }
4288
4306
  };
4289
- function Di(t) {
4307
+ function Ii(t) {
4290
4308
  t = t + "=";
4291
4309
  const r = decodeURIComponent(document.cookie).split(";");
4292
4310
  for (let i = 0; i < r.length; i++) {
@@ -4304,7 +4322,7 @@ function Di(t) {
4304
4322
  }
4305
4323
  return null;
4306
4324
  }
4307
- function Ai(t) {
4325
+ function Vi(t) {
4308
4326
  const e = localStorage.getItem(t);
4309
4327
  if (e)
4310
4328
  try {
@@ -4314,7 +4332,7 @@ function Ai(t) {
4314
4332
  }
4315
4333
  return null;
4316
4334
  }
4317
- function Ii(t) {
4335
+ function Pi(t) {
4318
4336
  const e = sessionStorage.getItem(t);
4319
4337
  if (e)
4320
4338
  try {
@@ -4324,23 +4342,23 @@ function Ii(t) {
4324
4342
  }
4325
4343
  return null;
4326
4344
  }
4327
- function it(t, e) {
4345
+ function nt(t, e) {
4328
4346
  if (!e)
4329
4347
  return null;
4330
4348
  const r = e.split(".");
4331
4349
  let i = t(r.shift());
4332
4350
  return r.length ? i == null ? null : L(i, r) : i;
4333
4351
  }
4334
- function Vi(t) {
4335
- return it(Di, t);
4352
+ function Li(t) {
4353
+ return nt(Ii, t);
4336
4354
  }
4337
- function Pi(t) {
4338
- return it(Ai, t);
4355
+ function Bi(t) {
4356
+ return nt(Vi, t);
4339
4357
  }
4340
- function Li(t) {
4341
- return it(Ii, t);
4358
+ function Ti(t) {
4359
+ return nt(Pi, t);
4342
4360
  }
4343
- const Bi = {
4361
+ const Ni = {
4344
4362
  en: {
4345
4363
  required: "{title} is required",
4346
4364
  validate: {
@@ -4390,17 +4408,17 @@ const Bi = {
4390
4408
  }
4391
4409
  }
4392
4410
  };
4393
- function Ti(t, e) {
4411
+ function Mi(t, e) {
4394
4412
  let r;
4395
4413
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4396
4414
  }
4397
- function Me() {
4398
- return Ti("name", ...arguments);
4415
+ function qe() {
4416
+ return Mi("name", ...arguments);
4399
4417
  }
4400
- function Ni(t) {
4418
+ function qi(t) {
4401
4419
  return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
4402
4420
  }
4403
- function Mi(t, e) {
4421
+ function Ui(t, e) {
4404
4422
  const r = new Vue({
4405
4423
  data() {
4406
4424
  return { rule: t, option: e || {} };
@@ -4411,23 +4429,23 @@ function Mi(t, e) {
4411
4429
  });
4412
4430
  return r.$mount(), r;
4413
4431
  }
4414
- function Ui(t) {
4432
+ function Gi(t) {
4415
4433
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4416
- At.push(...e), Qe.push(...r), Ye.push(...i), Ut([...e, ...r, ...i]);
4434
+ Pt.push(...e), et.push(...r), tt.push(...i), Ut([...e, ...r, ...i]);
4417
4435
  }
4418
- let qi = 1;
4419
- const M = {}, vt = Symbol("defValue");
4420
- function Kt(t) {
4436
+ let Hi = 1;
4437
+ const M = {}, _t = Symbol("defValue");
4438
+ function Xt(t) {
4421
4439
  const e = {
4422
- [Ne.name]: Ne
4440
+ [Me.name]: Me
4423
4441
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4424
4442
  t.extendApi
4425
- ], u = _({}, Si), f = Qr();
4443
+ ], u = v({}, Ei), f = ei();
4426
4444
  let p = { global: {} };
4427
4445
  const d = t.isMobile === !0, g = ie({
4428
4446
  $mobile: d
4429
- }), y = Ci(), v = {}, E = {};
4430
- Ui(t.attrs || {});
4447
+ }), y = Oi(), _ = {}, E = {};
4448
+ Gi(t.attrs || {});
4431
4449
  function Y(c) {
4432
4450
  const m = M[c];
4433
4451
  if (Array.isArray(m))
@@ -4438,23 +4456,23 @@ function Kt(t) {
4438
4456
  function I(c) {
4439
4457
  o.push(c);
4440
4458
  }
4441
- function T() {
4442
- const c = Me(...arguments);
4459
+ function B() {
4460
+ const c = qe(...arguments);
4443
4461
  c.id && c.prop && (i[c.id] = c.prop);
4444
4462
  }
4445
4463
  function he() {
4446
- const c = Me(...arguments);
4447
- c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(_({}, c.prop), {
4464
+ const c = qe(...arguments);
4465
+ c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(v({}, c.prop), {
4448
4466
  name: c.id
4449
4467
  }));
4450
4468
  }
4451
- function Pe(c) {
4469
+ function Le(c) {
4452
4470
  y.use(c);
4453
4471
  }
4454
4472
  function de() {
4455
- const c = Me(...arguments);
4473
+ const c = qe(...arguments);
4456
4474
  if (!c.id || !c.prop) return je;
4457
- const m = q(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4475
+ const m = U(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4458
4476
  r[m] = Re($, b || je), f[m] = P(m), $.maker && C(f, $.maker);
4459
4477
  }
4460
4478
  function k(c, m) {
@@ -4463,28 +4481,28 @@ function Kt(t) {
4463
4481
  if ($ = c, m === void 0)
4464
4482
  return ["form-create", "formcreate"].indexOf($) > -1 ? S() : e[$];
4465
4483
  } else
4466
- $ = q(c.name), m = c;
4484
+ $ = U(c.name), m = c;
4467
4485
  if (!$ || !m) return;
4468
- const b = q($);
4486
+ const b = U($);
4469
4487
  e[$] = m, e[b] = m, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && de($, m.formCreateParser);
4470
4488
  }
4471
4489
  function S() {
4472
- return Zr(Be, e, i);
4490
+ return Qr(Te, e, i);
4473
4491
  }
4474
4492
  function N() {
4475
- return Ne;
4493
+ return Me;
4476
4494
  }
4477
4495
  function pe(c, m) {
4478
4496
  return h.Function(c.install) ? c.install(z, m) : h.Function(c) && c(z, m), this;
4479
4497
  }
4480
4498
  function z(c, m, $) {
4481
- let b = Mi(c, m || {});
4499
+ let b = Ui(c, m || {});
4482
4500
  const w = b.$refs.fc.formCreate;
4483
- return w.$parent = $, Ni(w.options).appendChild(b.$el), w.api();
4501
+ return w.$parent = $, qi(w.options).appendChild(b.$el), w.api();
4484
4502
  }
4485
4503
  Re(z, E);
4486
- function Zt(c) {
4487
- let m = _({}, t);
4504
+ function xt(c) {
4505
+ let m = v({}, t);
4488
4506
  return c ? m.inherit = {
4489
4507
  components: e,
4490
4508
  parsers: r,
@@ -4493,21 +4511,21 @@ function Kt(t) {
4493
4511
  providers: u,
4494
4512
  useApps: o,
4495
4513
  maker: f,
4496
- formulas: v,
4514
+ formulas: _,
4497
4515
  loadData: g
4498
- } : delete m.inherit, Kt(m);
4499
- }
4500
- function xt(c, m) {
4501
- s[c] = m;
4516
+ } : delete m.inherit, Xt(m);
4502
4517
  }
4503
4518
  function Qt(c, m) {
4504
- v[c] = m;
4519
+ s[c] = m;
4505
4520
  }
4506
4521
  function Yt(c, m) {
4522
+ _[c] = m;
4523
+ }
4524
+ function er(c, m) {
4507
4525
  const $ = n[c] || {}, b = $.parsers || {};
4508
4526
  m.parsers && Object.keys(m.parsers).forEach((w) => {
4509
4527
  b[w] = Re(m.parsers[w], je);
4510
- }), m.name = c, n[c] = U(_(_({}, $), m), { parsers: b });
4528
+ }), m.name = c, n[c] = q(v(v({}, $), m), { parsers: b });
4511
4529
  }
4512
4530
  function Oe(c) {
4513
4531
  c && Object.keys(M).forEach((m) => {
@@ -4516,45 +4534,45 @@ function Kt(t) {
4516
4534
  });
4517
4535
  });
4518
4536
  }
4519
- function Le(c, m) {
4537
+ function Be(c, m) {
4520
4538
  se(g, c, m), Oe(c);
4521
4539
  }
4522
4540
  function Fe(c, m) {
4523
4541
  const $ = (...b) => O(() => m(...b));
4524
- $._driver = !0, Le(c, $);
4542
+ $._driver = !0, Be(c, $);
4525
4543
  }
4526
- function nt(c, m) {
4544
+ function st(c, m) {
4527
4545
  const $ = (c || "").split(".");
4528
4546
  c = $.shift();
4529
4547
  const b = $.join(".");
4530
- if (j(g, c) || F(g, c, vt), g[c] !== vt) {
4548
+ if (j(g, c) || F(g, c, _t), g[c] !== _t) {
4531
4549
  let w = g[c];
4532
4550
  return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? m : w;
4533
4551
  } else
4534
4552
  return m;
4535
4553
  }
4536
- function er(c) {
4554
+ function tr(c) {
4537
4555
  l.push(c);
4538
4556
  }
4539
- function tr(c) {
4557
+ function rr(c) {
4540
4558
  delete g[c], Oe(c);
4541
4559
  }
4542
- function rr(c, m) {
4560
+ function ir(c, m) {
4543
4561
  a.push({ name: c, callback: m });
4544
4562
  }
4545
- function Be(c) {
4563
+ function Te(c) {
4546
4564
  C(this, {
4547
- id: qi++,
4565
+ id: Hi++,
4548
4566
  create: z,
4549
4567
  vm: c,
4550
- manager: wi(t.manager),
4568
+ manager: Fi(t.manager),
4551
4569
  parsers: r,
4552
4570
  providers: u,
4553
4571
  modelFields: s,
4554
- formulas: v,
4572
+ formulas: _,
4555
4573
  isMobile: d,
4556
4574
  rules: c.$props.rule,
4557
- name: c.$props.name || Ve(),
4575
+ name: c.$props.name || Pe(),
4558
4576
  inFor: c.$props.inFor,
4559
4577
  prop: {
4560
4578
  components: e,
@@ -4566,23 +4584,23 @@ function Kt(t) {
4566
4584
  refreshData: Oe,
4567
4585
  loadData: g,
4568
4586
  CreateNode: y,
4569
- bus: new Ri(),
4587
+ bus: new ji(),
4570
4588
  unwatch: [],
4571
- options: yr({}),
4589
+ options: $r({}),
4572
4590
  extendApiFn: l,
4573
4591
  fetchCache: /* @__PURE__ */ new WeakMap(),
4574
4592
  tmpData: ie({})
4575
4593
  }), a.forEach((m) => {
4576
4594
  this.bus.$on(m.name, m.callback);
4577
4595
  }), V(() => {
4578
- B(this.options, () => {
4596
+ T(this.options, () => {
4579
4597
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4580
4598
  }, { deep: !0 });
4581
4599
  }), C(c.$options.components, e), C(c.$options.directives, i), this.$handle = new K(this), this.name && (this.inFor ? (M[this.name] || (M[this.name] = []), M[this.name].push(this)) : M[this.name] = this);
4582
4600
  }
4583
- Be.isMobile = d, C(Be.prototype, {
4601
+ Te.isMobile = d, C(Te.prototype, {
4584
4602
  init() {
4585
- this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4603
+ this.isSub() && this.unwatch.push(T(() => this.vm.parent.fc.options.value, () => {
4586
4604
  this.initOptions(), this.$handle.api.refresh();
4587
4605
  }, { deep: !0, flush: "sync" })), this.vm.$props.driver && (this.renderDriver = typeof this.vm.$props.driver == "object" ? this.vm.$props.driver : this.drivers[this.vm.$props.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.fc.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4588
4606
  },
@@ -4625,7 +4643,7 @@ function Kt(t) {
4625
4643
  R();
4626
4644
  return;
4627
4645
  }
4628
- const ue = this.$handle.loadFetchVar(Je(b), J);
4646
+ const ue = this.$handle.loadFetchVar(We(b), J);
4629
4647
  ue.targetRule = this.targetRule, this.$handle.api.fetch(ue).then((te) => {
4630
4648
  be(te);
4631
4649
  }).catch((te) => {
@@ -4644,7 +4662,7 @@ function Kt(t) {
4644
4662
  let m = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4645
4663
  if (m && (b = O(() => m(c))), b == null && $ && typeof $ == "object" && (b = L($, c)), b == null) {
4646
4664
  const w = this.options.value.language || {}, A = this.getLocale();
4647
- b = L(w[A] || {}, c), b == null && (b = L(Bi[A] || {}, c));
4665
+ b = L(w[A] || {}, c), b == null && (b = L(Ni[A] || {}, c));
4648
4666
  }
4649
4667
  return b;
4650
4668
  },
@@ -4660,7 +4678,7 @@ function Kt(t) {
4660
4678
  }
4661
4679
  },
4662
4680
  setData(c, m, $) {
4663
- $ ? Le(c, m) : (se(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
4681
+ $ ? Be(c, m) : (se(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
4664
4682
  },
4665
4683
  getLoadData(c, m) {
4666
4684
  let $ = null;
@@ -4688,7 +4706,7 @@ function Kt(t) {
4688
4706
  else {
4689
4707
  if (w === "$preview")
4690
4708
  return this.$handle.preview;
4691
- $ = nt(c), b = [];
4709
+ $ = st(c), b = [];
4692
4710
  }
4693
4711
  $ && b.length && ($ = L($, b));
4694
4712
  }
@@ -4709,12 +4727,12 @@ function Kt(t) {
4709
4727
  if ($[R])
4710
4728
  ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[R].val || JSON.stringify(fe) !== JSON.stringify($[R].val)) && ($[R].val = fe, b(!0));
4711
4729
  else return;
4712
- }, m || 0), nr = B(ee, (fe) => {
4730
+ }, m || 0), sr = T(ee, (fe) => {
4713
4731
  te();
4714
4732
  });
4715
4733
  return this.bus.$on("$loadData." + le, te), ue && this.bus.$on("$loadData." + le + "." + ue, te), $[R] = {
4716
4734
  fn: () => {
4717
- this.bus.$off("$loadData." + le, te), ue && this.bus.$off("$loadData." + le + "." + ue, te), nr();
4735
+ this.bus.$off("$loadData." + le, te), ue && this.bus.$off("$loadData." + le + "." + ue, te), sr();
4718
4736
  },
4719
4737
  val: ee.value
4720
4738
  }, ee.value;
@@ -4730,7 +4748,7 @@ function Kt(t) {
4730
4748
  },
4731
4749
  initOptions() {
4732
4750
  this.options.value = {};
4733
- let c = _({
4751
+ let c = v({
4734
4752
  formData: {},
4735
4753
  submitBtn: {},
4736
4754
  resetBtn: {},
@@ -4743,9 +4761,9 @@ function Kt(t) {
4743
4761
  this.targetFormDriver("initOptions", c, { api: $, isSubForm: m }), this.updateOptions(c);
4744
4762
  },
4745
4763
  mergeOptions(c, m, $) {
4746
- return m = _({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4764
+ return m = v({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4747
4765
  delete m[b];
4748
- }), m.global && (c.global = Wr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4766
+ }), m.global && (c.global = Xr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4749
4767
  },
4750
4768
  updateOptions(c) {
4751
4769
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4774,52 +4792,52 @@ function Kt(t) {
4774
4792
  this.$handle.bindNextTick(() => this.bus.$emit("next-tick", this.$handle.api));
4775
4793
  }
4776
4794
  });
4777
- function st(c) {
4795
+ function ot(c) {
4778
4796
  C(c, {
4779
4797
  version: t.version,
4780
4798
  ui: t.ui,
4781
4799
  isMobile: d,
4782
- extendApi: er,
4783
- getData: nt,
4800
+ extendApi: tr,
4801
+ getData: st,
4784
4802
  setDataDriver: Fe,
4785
- setData: Le,
4786
- removeData: tr,
4803
+ setData: Be,
4804
+ removeData: rr,
4787
4805
  refreshData: Oe,
4788
4806
  maker: f,
4789
4807
  component: k,
4790
- directive: T,
4791
- setModelField: xt,
4792
- setFormula: Qt,
4793
- setDriver: Yt,
4808
+ directive: B,
4809
+ setModelField: Qt,
4810
+ setFormula: Yt,
4811
+ setDriver: er,
4794
4812
  register: he,
4795
4813
  $vnode: N,
4796
4814
  parser: de,
4797
4815
  use: pe,
4798
- factory: Zt,
4799
- componentAlias: Pe,
4800
- copyRule: Lt,
4801
- copyRules: Bt,
4816
+ factory: xt,
4817
+ componentAlias: Le,
4818
+ copyRule: Bt,
4819
+ copyRules: Tt,
4802
4820
  mergeRule: Q,
4803
- fetch: Gt,
4821
+ fetch: Ht,
4804
4822
  $form: S,
4805
4823
  parseFn: W,
4806
- parseJson: Pt,
4824
+ parseJson: Dt,
4807
4825
  toJson: Ce,
4808
4826
  useApp: I,
4809
4827
  getApi: Y,
4810
- on: rr
4828
+ on: ir
4811
4829
  });
4812
4830
  }
4813
- function ir(c) {
4831
+ function nr(c) {
4814
4832
  C(c, {
4815
4833
  create: z,
4816
4834
  install(m, $) {
4817
- if (p = _(_({}, p), $ || {}), m._installedFormCreate === !0) return;
4835
+ if (p = v(v({}, p), $ || {}), m._installedFormCreate === !0) return;
4818
4836
  m._installedFormCreate = !0;
4819
4837
  const b = function(A, R = {}) {
4820
4838
  return z(A, R, this);
4821
4839
  };
4822
- st(b), m.prototype.$formCreate = b;
4840
+ ot(b), m.prototype.$formCreate = b;
4823
4841
  const w = S();
4824
4842
  m.component(w.name, w), m.component("FcFragment", N()), o.forEach((A) => {
4825
4843
  O(() => A(c, m));
@@ -4827,9 +4845,9 @@ function Kt(t) {
4827
4845
  }
4828
4846
  });
4829
4847
  }
4830
- if (st(E), ir(E), Fe("$cookie", Vi), Fe("$localStorage", Pi), Fe("$sessionStorage", Li), y.use({ fragment: "fcFragment" }), t.install && z.use(t), de(ji), t.inherit) {
4848
+ if (ot(E), nr(E), Fe("$cookie", Li), Fe("$localStorage", Bi), Fe("$sessionStorage", Ti), y.use({ fragment: "fcFragment" }), t.install && z.use(t), de(Ai), t.inherit) {
4831
4849
  const c = t.inherit;
4832
- c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(g, c.loadData), c.formulas && C(v, c.formulas);
4850
+ c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(g, c.loadData), c.formulas && C(_, c.formulas);
4833
4851
  }
4834
4852
  const ke = S();
4835
4853
  return Re(ke, E), Object.defineProperties(ke, {
@@ -4851,10 +4869,10 @@ function Ue(t) {
4851
4869
  return e.toString() === "Invalid Date" ? t : e;
4852
4870
  }
4853
4871
  }
4854
- const _t = "datePicker", Gi = {
4855
- name: _t,
4872
+ const Ct = "datePicker", zi = {
4873
+ name: Ct,
4856
4874
  maker: function() {
4857
- return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = P(_t, { type: e.toLowerCase() }), t), {});
4875
+ return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = P(Ct, { type: e.toLowerCase() }), t), {});
4858
4876
  }(),
4859
4877
  mergeProp(t) {
4860
4878
  let e = t.prop.props;
@@ -4883,54 +4901,54 @@ const _t = "datePicker", Gi = {
4883
4901
  mounted(t) {
4884
4902
  t.rule.value = this.toValue(t.$handle.getFormData(t), t);
4885
4903
  }
4886
- }, qe = "hidden", Hi = {
4887
- name: qe,
4904
+ }, Ge = "hidden", Ji = {
4905
+ name: Ge,
4888
4906
  maker: {
4889
- [qe]: (t, e) => P(qe)("", t, e)
4907
+ [Ge]: (t, e) => P(Ge)("", t, e)
4890
4908
  },
4891
4909
  render() {
4892
4910
  return [];
4893
4911
  }
4894
- }, Ge = "input", zi = {
4895
- name: Ge,
4912
+ }, He = "input", Wi = {
4913
+ name: He,
4896
4914
  maker: function() {
4897
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = P(Ge, { type: r }), e), {});
4898
- return t.idate = P(Ge, { type: "date" }), t;
4915
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = P(He, { type: r }), e), {});
4916
+ return t.idate = P(He, { type: "date" }), t;
4899
4917
  }(),
4900
4918
  mergeProp(t) {
4901
4919
  let { props: e } = t.prop;
4902
4920
  e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4903
4921
  }
4904
- }, Ct = "slider", Ji = {
4905
- name: Ct,
4922
+ }, wt = "slider", Ki = {
4923
+ name: wt,
4906
4924
  maker: {
4907
- sliderRange: P(Ct, { range: !0 })
4925
+ sliderRange: P(wt, { range: !0 })
4908
4926
  },
4909
4927
  toFormValue(t, e) {
4910
4928
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4911
4929
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4912
4930
  }
4913
- }, Wi = {
4931
+ }, Xi = {
4914
4932
  name: "switch",
4915
4933
  mergeProp(t) {
4916
4934
  const e = t.prop.props.slot || {}, r = t.prop.scopedSlots || {};
4917
4935
  e.open && (r.open = () => e.open), e.close && (r.close = () => e.close), t.prop.scopedSlots = r;
4918
4936
  }
4919
- }, Ki = {
4937
+ }, Zi = {
4920
4938
  name: "FcRow",
4921
4939
  render(t, e) {
4922
4940
  return e.vNode.col({ props: { span: 24 } }, [
4923
4941
  e.vNode.row(e.prop, t)
4924
4942
  ]);
4925
4943
  }
4926
- }, Xi = [
4927
- Gi,
4928
- Hi,
4944
+ }, xi = [
4929
4945
  zi,
4930
4946
  Ji,
4931
4947
  Wi,
4932
- Ki
4933
- ], Zi = {
4948
+ Ki,
4949
+ Xi,
4950
+ Zi
4951
+ ], Qi = {
4934
4952
  button: "iButton",
4935
4953
  icon: "Icon",
4936
4954
  slider: "Slider",
@@ -4957,21 +4975,21 @@ const _t = "datePicker", Gi = {
4957
4975
  array: "fcGroup",
4958
4976
  subForm: "fcSubForm",
4959
4977
  object: "fcSubForm"
4960
- }, Ae = {
4978
+ }, Ie = {
4961
4979
  resetBtnType: "default",
4962
4980
  resetBtnIcon: "md-refresh",
4963
4981
  infoIcon: "ios-information-circle-outline"
4964
4982
  };
4965
- function xi() {
4983
+ function Yi() {
4966
4984
  return {
4967
4985
  type: "poptip",
4968
4986
  trigger: "hover",
4969
4987
  placement: "top-start",
4970
4988
  wordWrap: !0,
4971
- icon: Ae.infoIcon
4989
+ icon: Ie.infoIcon
4972
4990
  };
4973
4991
  }
4974
- function Qi() {
4992
+ function en() {
4975
4993
  return {
4976
4994
  form: {
4977
4995
  inline: !1,
@@ -4993,9 +5011,9 @@ function Qi() {
4993
5011
  click: void 0
4994
5012
  },
4995
5013
  resetBtn: {
4996
- type: Ae.resetBtnType,
5014
+ type: Ie.resetBtnType,
4997
5015
  disabled: !1,
4998
- icon: Ae.resetBtnIcon,
5016
+ icon: Ie.resetBtnIcon,
4999
5017
  innerText: "",
5000
5018
  loading: !1,
5001
5019
  show: !1,
@@ -5003,20 +5021,20 @@ function Qi() {
5003
5021
  }
5004
5022
  };
5005
5023
  }
5006
- function wt(t, e) {
5024
+ function Ot(t, e) {
5007
5025
  j(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
5008
5026
  }
5009
5027
  function X(t) {
5010
5028
  return t === !1;
5011
5029
  }
5012
- function Yi(t, e) {
5030
+ function tn(t, e) {
5013
5031
  j(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
5014
5032
  }
5015
- function He(t) {
5016
- const e = _({}, t);
5033
+ function ze(t) {
5034
+ const e = v({}, t);
5017
5035
  return delete e.children, e;
5018
5036
  }
5019
- const en = {
5037
+ const rn = {
5020
5038
  validate() {
5021
5039
  const t = this.form();
5022
5040
  return t ? t.validate() : new Promise((e) => e());
@@ -5035,15 +5053,15 @@ const en = {
5035
5053
  },
5036
5054
  tidyOptions(t) {
5037
5055
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
5038
- Yi(t, e);
5056
+ tn(t, e);
5039
5057
  }), t;
5040
5058
  },
5041
5059
  tidyRule({ prop: t }) {
5042
- return wt(t, "title"), wt(t, "info"), t;
5060
+ return Ot(t, "title"), Ot(t, "info"), t;
5043
5061
  },
5044
5062
  mergeProp(t) {
5045
5063
  const e = {
5046
- info: xi(),
5064
+ info: Yi(),
5047
5065
  title: {},
5048
5066
  col: { span: 24 },
5049
5067
  wrap: {}
@@ -5056,12 +5074,12 @@ const en = {
5056
5074
  !t.size && this.options.form.size && (t.size = this.options.form.size);
5057
5075
  },
5058
5076
  getDefaultOptions() {
5059
- return Qi();
5077
+ return en();
5060
5078
  },
5061
5079
  update() {
5062
5080
  const t = this.options.form;
5063
5081
  this.rule = {
5064
- props: _({}, t),
5082
+ props: v({}, t),
5065
5083
  nativeOn: {
5066
5084
  submit: (e) => {
5067
5085
  e.preventDefault();
@@ -5084,9 +5102,9 @@ const en = {
5084
5102
  const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r) && r.wrap.title !== !1, o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: l } = this.rule.props, u = r.wrap.class;
5085
5103
  delete r.wrap.class, delete r.wrap.title;
5086
5104
  const f = X(r.wrap.show) ? e : this.$r(x([r.wrap, {
5087
- props: U(_({
5105
+ props: q(v({
5088
5106
  labelWidth: o
5089
- }, He(r.wrap || {})), {
5107
+ }, ze(r.wrap || {})), {
5090
5108
  prop: t.id,
5091
5109
  rules: t.injectValidate()
5092
5110
  }),
@@ -5094,7 +5112,7 @@ const en = {
5094
5112
  key: `${i}fi`,
5095
5113
  ref: t.wrapRef,
5096
5114
  type: "formItem"
5097
- }]), _({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5115
+ }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5098
5116
  return a === !0 || X(l) || X(s.show) ? f : this.makeCol(r, i, [f]);
5099
5117
  },
5100
5118
  isTitle(t) {
@@ -5104,31 +5122,31 @@ const en = {
5104
5122
  },
5105
5123
  makeInfo(t, e, r) {
5106
5124
  var u, f, p, d, g, y;
5107
- const i = _({}, t.title), s = _({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5125
+ const i = v({}, t.title), s = v({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5108
5126
  title: (f = (u = r.refRule) == null ? void 0 : u.__$title) == null ? void 0 : f.value,
5109
5127
  rule: r.rule,
5110
5128
  options: this.options
5111
5129
  }) : ((d = (p = r.refRule) == null ? void 0 : p.__$title) == null ? void 0 : d.value) + (n.labelSuffix || n["label-suffix"] || "")];
5112
5130
  if (!X(s.show) && (s.info || s.native) && !X(s.icon)) {
5113
- const v = {
5131
+ const _ = {
5114
5132
  type: s.type || "poptip",
5115
- props: He(s),
5133
+ props: ze(s),
5116
5134
  key: `${e}pop`,
5117
5135
  slot: "label"
5118
5136
  };
5119
- delete v.props.icon, delete v.props.show, delete v.props.info, delete v.props.align, delete v.props.native;
5137
+ delete _.props.icon, delete _.props.show, delete _.props.info, delete _.props.align, delete _.props.native;
5120
5138
  const E = "content";
5121
- s.info && !j(v.props, E) && (v.props[E] = (y = (g = r.refRule) == null ? void 0 : g.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(x([s, v]), [
5139
+ s.info && !j(_.props, E) && (_.props[E] = (y = (g = r.refRule) == null ? void 0 : g.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(x([s, _]), [
5122
5140
  this.$r({
5123
5141
  type: "icon",
5124
- props: { type: s.icon === !0 ? Ae.infoIcon : s.icon, size: 16 },
5142
+ props: { type: s.icon === !0 ? Ie.infoIcon : s.icon, size: 16 },
5125
5143
  style: "margin-top: -1px",
5126
5144
  key: `${e}i`
5127
5145
  })
5128
5146
  ]));
5129
5147
  }
5130
5148
  const l = x([i, {
5131
- props: He(i),
5149
+ props: ze(i),
5132
5150
  key: `${e}tit`,
5133
5151
  class: "fc-form-title",
5134
5152
  slot: i.slot || "label",
@@ -5171,7 +5189,7 @@ const en = {
5171
5189
  }, [e]);
5172
5190
  },
5173
5191
  makeResetBtn() {
5174
- const t = _({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5192
+ const t = v({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5175
5193
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
5176
5194
  type: "button",
5177
5195
  props: t,
@@ -5187,7 +5205,7 @@ const en = {
5187
5205
  }, [e]);
5188
5206
  },
5189
5207
  makeSubmitBtn() {
5190
- const t = _({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5208
+ const t = v({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5191
5209
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
5192
5210
  type: "button",
5193
5211
  props: t,
@@ -5203,13 +5221,13 @@ const en = {
5203
5221
  key: `${this.key}b1`
5204
5222
  }, [e]);
5205
5223
  }
5206
- }, oe = {}, tn = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5207
- function rn(t) {
5208
- tn.forEach((e) => {
5224
+ }, oe = {}, nn = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5225
+ function sn(t) {
5226
+ nn.forEach((e) => {
5209
5227
  t[e] = P(e);
5210
5228
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
5211
5229
  }
5212
- function nn(t) {
5230
+ function on(t) {
5213
5231
  const e = "upload", r = {
5214
5232
  image: ["image", 0],
5215
5233
  file: ["file", 0],
@@ -5218,19 +5236,19 @@ function nn(t) {
5218
5236
  };
5219
5237
  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;
5220
5238
  }
5221
- function sn(t) {
5239
+ function an(t) {
5222
5240
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
5223
5241
  Object.keys(r).reduce((i, s) => (i[s] = P(e, { type: r[s] }), i), t);
5224
5242
  }
5225
- function on(t) {
5243
+ function ln(t) {
5226
5244
  const e = "timePicker";
5227
5245
  t.time = P(e, { type: "time" }), t.timeRange = P(e, { type: "timerange" });
5228
5246
  }
5229
- function an(t) {
5247
+ function un(t) {
5230
5248
  const e = "select";
5231
5249
  t.selectMultiple = P(e, { multiple: !0 }), t.selectOne = P(e, { multiple: !1 });
5232
5250
  }
5233
- function ln(t) {
5251
+ function fn(t) {
5234
5252
  const e = "frame", r = {
5235
5253
  frameInputs: ["input", 0],
5236
5254
  frameFiles: ["file", 0],
@@ -5241,16 +5259,16 @@ function ln(t) {
5241
5259
  };
5242
5260
  Object.keys(r).reduce((i, s) => (i[s] = P(e, (n) => n.props({ type: r[s][0], maxLength: r[s][1] })), i), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages;
5243
5261
  }
5244
- rn(oe);
5245
- nn(oe);
5246
5262
  sn(oe);
5263
+ on(oe);
5247
5264
  an(oe);
5265
+ un(oe);
5266
+ fn(oe);
5248
5267
  ln(oe);
5249
- on(oe);
5250
- function Ot(t, e) {
5268
+ function Ft(t, e) {
5251
5269
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5252
5270
  }
5253
- function un(t, e) {
5271
+ function cn(t, e) {
5254
5272
  return {
5255
5273
  formEl() {
5256
5274
  return e.$manager.form();
@@ -5326,11 +5344,11 @@ function un(t, e) {
5326
5344
  }
5327
5345
  },
5328
5346
  submitBtnProps: (r = {}) => {
5329
- let i = Ot(e.options.submitBtn, !0);
5347
+ let i = Ft(e.options.submitBtn, !0);
5330
5348
  C(i, r), e.options.submitBtn = i, t.refreshOptions();
5331
5349
  },
5332
5350
  resetBtnProps: (r = {}) => {
5333
- let i = Ot(e.options.resetBtn, !1);
5351
+ let i = Ft(e.options.resetBtn, !1);
5334
5352
  C(i, r), e.options.resetBtn = i, t.refreshOptions();
5335
5353
  },
5336
5354
  submit(r, i) {
@@ -5348,15 +5366,15 @@ function un(t, e) {
5348
5366
  }
5349
5367
  };
5350
5368
  }
5351
- const Xt = {
5369
+ const Zt = {
5352
5370
  name: "required",
5353
5371
  load(t, e, r) {
5354
5372
  var s, n;
5355
- const i = fn(t.getValue());
5373
+ const i = hn(t.getValue());
5356
5374
  if (i.required === !1)
5357
5375
  t.clearProp(), r.clearValidateState([e.field]);
5358
5376
  else {
5359
- const o = _({
5377
+ const o = v({
5360
5378
  required: !0,
5361
5379
  validator(l, u, f) {
5362
5380
  h.empty(u) ? f(o.message) : f();
@@ -5373,28 +5391,28 @@ const Xt = {
5373
5391
  r.sync(e);
5374
5392
  },
5375
5393
  watch(...t) {
5376
- Xt.load(...t);
5394
+ Zt.load(...t);
5377
5395
  }
5378
5396
  };
5379
- function fn(t) {
5397
+ function hn(t) {
5380
5398
  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 : {};
5381
5399
  }
5382
- function cn(t) {
5383
- t.componentAlias(Zi), Ur.forEach((e) => {
5400
+ function dn(t) {
5401
+ t.componentAlias(Qi), Wr.forEach((e) => {
5384
5402
  t.component(e.name, e);
5385
- }), t.register(Xt), Xi.forEach((e) => {
5403
+ }), t.register(Zt), xi.forEach((e) => {
5386
5404
  t.parser(e);
5387
5405
  }), Object.keys(oe).forEach((e) => {
5388
5406
  t.maker[e] = oe[e];
5389
5407
  });
5390
5408
  }
5391
- function hn() {
5392
- return Kt({
5409
+ function pn() {
5410
+ return Xt({
5393
5411
  ui: "view-design",
5394
- version: "2.7.16",
5395
- manager: en,
5396
- install: cn,
5397
- extendApi: un,
5412
+ version: "2.7.17",
5413
+ manager: rn,
5414
+ install: dn,
5415
+ extendApi: cn,
5398
5416
  attrs: {
5399
5417
  normal: ["col", "wrap"],
5400
5418
  array: ["className"],
@@ -5402,10 +5420,10 @@ function hn() {
5402
5420
  }
5403
5421
  });
5404
5422
  }
5405
- const xe = hn();
5406
- typeof window != "undefined" && (window.formCreate = xe, window.Vue && xe.install(window.Vue));
5407
- const mn = xe.maker;
5423
+ const Qe = pn();
5424
+ typeof window != "undefined" && (window.formCreate = Qe, window.Vue && Qe.install(window.Vue));
5425
+ const yn = Qe.maker;
5408
5426
  export {
5409
- xe as default,
5410
- mn as maker
5427
+ Qe as default,
5428
+ yn as maker
5411
5429
  };