@form-create/iview 2.7.10 → 2.7.12

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,38 +1,38 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/iview v2.7.10
3
+ * @form-create/iview v2.7.12
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
- (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}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
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
10
  var sr = Object.defineProperty, or = Object.defineProperties;
11
11
  var ar = Object.getOwnPropertyDescriptors;
12
- var at = Object.getOwnPropertySymbols;
12
+ var ot = Object.getOwnPropertySymbols;
13
13
  var lr = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
14
- var lt = (t, e, r) => e in t ? sr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
14
+ var at = (t, e, r) => e in t ? sr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
- lr.call(e, r) && lt(t, r, e[r]);
17
- if (at)
18
- for (var r of at(e))
19
- ur.call(e, r) && lt(t, r, e[r]);
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]);
20
20
  return t;
21
21
  }, U = (t, e) => or(t, ar(e));
22
- import $e, { getCurrentInstance as fr, provide as cr, inject as hr, toRefs as ut, reactive as ie, onBeforeMount as dr, watch as B, onMounted as pr, onBeforeUnmount as mr, onUpdated as gr, nextTick as V, markRaw as ge, computed as ye, toRef as Ae, ref as yr } from "vue";
22
+ import $e, { getCurrentInstance as fr, provide as cr, inject as hr, toRefs as lt, reactive as ie, onBeforeMount as dr, watch as B, onMounted as pr, onBeforeUnmount as mr, onUpdated as gr, nextTick as V, markRaw as ge, computed as ye, toRef as je, ref as yr } from "vue";
23
23
  function $r(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
- function Je() {
27
- return Je = Object.assign ? Object.assign.bind() : function(t) {
26
+ function ze() {
27
+ return ze = 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
- }, Je.apply(this, arguments);
30
+ }, ze.apply(this, arguments);
31
31
  }
32
32
  var br = ["attrs", "props", "domProps"], vr = ["class", "style", "directives"], _r = ["on", "nativeOn"], Cr = 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] = Je({}, e[i], r[i]);
35
+ else if (br.indexOf(i) !== -1) e[i] = ze({}, e[i], r[i]);
36
36
  else if (vr.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);
@@ -51,11 +51,11 @@ var br = ["attrs", "props", "domProps"], vr = ["class", "style", "directives"],
51
51
  };
52
52
  }, Or = Cr;
53
53
  const A = /* @__PURE__ */ $r(Or);
54
- function Ve(t, e) {
54
+ function Ie(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => ((!e || e.indexOf(i) === -1) && r.push(t[i]), r), []);
56
56
  }
57
- const kr = "fcCheckbox", Fr = {
58
- name: kr,
57
+ const Fr = "fcCheckbox", kr = {
58
+ name: Fr,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -117,7 +117,7 @@ const kr = "fcCheckbox", Fr = {
117
117
  }, {
118
118
  key: "" + r + "-" + e.value
119
119
  }]));
120
- }), Ve(this.$slots)]);
120
+ }), Ie(this.$slots)]);
121
121
  },
122
122
  mounted() {
123
123
  this.$emit("fc.el", this.$refs.el);
@@ -127,7 +127,7 @@ function H(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
129
  const Sr = "fcFrame";
130
- function kt(t) {
130
+ function Ft(t) {
131
131
  return {
132
132
  name: Sr,
133
133
  props: {
@@ -503,11 +503,11 @@ function kt(t) {
503
503
  }
504
504
  };
505
505
  }
506
- const Ft = kt({
506
+ const kt = Ft({
507
507
  fileIcon: "md-document",
508
508
  fileUpIcon: "ios-folder-open"
509
509
  });
510
- Ft.v2 = kt({
510
+ kt.v2 = Ft({
511
511
  fileIcon: "document-text",
512
512
  fileUpIcon: "folder"
513
513
  });
@@ -569,7 +569,7 @@ const Rr = "fcRadio", Er = {
569
569
  }, {
570
570
  key: "" + r + "-" + e.value
571
571
  }]));
572
- }), Ve(this.$slots)]);
572
+ }), Ie(this.$slots)]);
573
573
  },
574
574
  mounted() {
575
575
  this.$emit("fc.el", this.$refs.el);
@@ -604,7 +604,7 @@ const Rr = "fcRadio", Er = {
604
604
  return h.type(e, t);
605
605
  };
606
606
  });
607
- function E(t, e) {
607
+ function D(t, e) {
608
608
  return {}.hasOwnProperty.call(t, e);
609
609
  }
610
610
  const Dr = "fcSelect", jr = {
@@ -634,7 +634,7 @@ const Dr = "fcSelect", jr = {
634
634
  }, [h.trueArray(n.options) && n.options.map((a, l) => r(a, l))]), s = e.props.formCreateInject.options;
635
635
  return t("Select", A([{}, e.data, {
636
636
  ref: "el"
637
- }]), [(Array.isArray(s) ? s : []).map((n, o) => E(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
637
+ }]), [(Array.isArray(s) ? s : []).map((n, o) => D(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
638
638
  },
639
639
  mounted() {
640
640
  this.$emit("fc.el", this.$refs.el);
@@ -688,20 +688,20 @@ const Dr = "fcSelect", jr = {
688
688
  ref: "tree"
689
689
  }, {
690
690
  on: e
691
- }]), [Ve(this.$slots)]);
691
+ }]), [Ie(this.$slots)]);
692
692
  },
693
693
  mounted() {
694
694
  this.$emit("fc.el", this.$refs.tree);
695
695
  }
696
696
  };
697
- function ft(t) {
697
+ function ut(t) {
698
698
  return typeof t == "object" ? t : {
699
699
  url: t,
700
700
  is_string: !0,
701
701
  name: Vr(t)
702
702
  };
703
703
  }
704
- function ct(t) {
704
+ function ft(t) {
705
705
  return U(v({}, t), {
706
706
  file: t,
707
707
  value: t
@@ -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(ft).map(ct);
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);
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(ft).map(ct), 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(ut).map(ft), 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, Ve(this.$slots, ["default"])]);
867
+ }]))])]) : null, Ie(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);
@@ -915,7 +915,7 @@ Rt.v2 = St({
915
915
  fileIcon: "document-text",
916
916
  imgUpIcon: "image"
917
917
  });
918
- function k(t, e, r) {
918
+ function F(t, e, r) {
919
919
  $e.set(t, e, r);
920
920
  }
921
921
  function re(t, e) {
@@ -929,19 +929,19 @@ function Ce(t, e = {}, r) {
929
929
  if ((i = Array.isArray(n)) || h.Object(n)) {
930
930
  let o = t[s] === void 0;
931
931
  if (i)
932
- i = !1, o && k(t, s, []);
932
+ i = !1, o && F(t, s, []);
933
933
  else if (n._clone && r !== void 0)
934
934
  if (r)
935
- n = n.getRule(), o && k(t, s, {});
935
+ n = n.getRule(), o && F(t, s, {});
936
936
  else {
937
- k(t, s, n._clone());
937
+ F(t, s, n._clone());
938
938
  continue;
939
939
  }
940
940
  else
941
- o && k(t, s, {});
941
+ o && F(t, s, {});
942
942
  t[s] = Ce(t[s], n, r);
943
943
  } else
944
- k(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
944
+ F(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
945
945
  }
946
946
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
947
947
  }
@@ -951,13 +951,13 @@ function G(t) {
951
951
  const Lr = 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
- Object.prototype.hasOwnProperty.call(e, i) && k(t, i, e[i]);
954
+ Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
955
955
  return t;
956
956
  };
957
957
  function C() {
958
958
  return Lr.apply(this, arguments);
959
959
  }
960
- function We(t) {
960
+ function Je(t) {
961
961
  return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
962
962
  }
963
963
  const Br = "fcGroup", Tr = {
@@ -1082,7 +1082,7 @@ const Br = "fcGroup", Tr = {
1082
1082
  },
1083
1083
  methods: {
1084
1084
  _value(t) {
1085
- return t && E(t, this.field) ? t[this.field] : t;
1085
+ return t && D(t, this.field) ? t[this.field] : t;
1086
1086
  },
1087
1087
  cache(t, e) {
1088
1088
  this.cacheValue[t] = JSON.stringify(e);
@@ -1350,12 +1350,12 @@ const Br = "fcGroup", Tr = {
1350
1350
  }]));
1351
1351
  }
1352
1352
  }, Ur = [
1353
- Fr,
1353
+ kr,
1354
1354
  Er,
1355
1355
  jr,
1356
1356
  Ir,
1357
1357
  Mr,
1358
- Ft,
1358
+ kt,
1359
1359
  Rt,
1360
1360
  Tr
1361
1361
  ];
@@ -1402,23 +1402,23 @@ const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style"
1402
1402
  }, e);
1403
1403
  }, Gr = (t, e) => function() {
1404
1404
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1405
- }, At = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], xe = ["validate", "children", "control"], et = ["effect", "deep", "renderSlots"];
1405
+ }, At = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], Ye = ["validate", "children", "control"], xe = ["effect", "deep", "renderSlots"];
1406
1406
  function It() {
1407
- return [...At, ...Et, ...Dt, ...jt, ...xe, ...et];
1407
+ return [...At, ...Et, ...Dt, ...jt, ...Ye, ...xe];
1408
1408
  }
1409
1409
  function Vt(t, e, r) {
1410
1410
  return `[form-create ${t}]: ${e}`;
1411
1411
  }
1412
- function tt(t, e) {
1412
+ function et(t, e) {
1413
1413
  console.error(Vt("err", t));
1414
1414
  }
1415
1415
  function Hr(t) {
1416
- tt(t.toString()), console.error(t);
1416
+ et(t.toString()), console.error(t);
1417
1417
  }
1418
1418
  function zr(t) {
1419
1419
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1420
1420
  }
1421
- const Ke = "[[FORM-CREATE-PREFIX-", Xe = "-FORM-CREATE-SUFFIX]]";
1421
+ const We = "[[FORM-CREATE-PREFIX-", Ke = "-FORM-CREATE-SUFFIX]]";
1422
1422
  function _e(t, e) {
1423
1423
  return JSON.stringify(Ce(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1424
1424
  if (!(i && i._isVue === !0)) {
@@ -1427,19 +1427,19 @@ function _e(t, e) {
1427
1427
  if (i.__json)
1428
1428
  return i.__json;
1429
1429
  if (i.__origin && (i = i.__origin), !i.__emit)
1430
- return Ke + i + Xe;
1430
+ return We + i + Ke;
1431
1431
  }
1432
1432
  }, e);
1433
1433
  }
1434
- function Ne(t) {
1434
+ function Te(t) {
1435
1435
  return new Function("return " + t)();
1436
1436
  }
1437
1437
  function W(t, e) {
1438
1438
  if (t && h.String(t) && t.length > 4) {
1439
1439
  let r = t.trim(), i = !1;
1440
1440
  try {
1441
- if (r.indexOf(Xe) > 0 && r.indexOf(Ke) === 0)
1442
- r = r.replace(Xe, "").replace(Ke, ""), i = !0;
1441
+ if (r.indexOf(Ke) > 0 && r.indexOf(We) === 0)
1442
+ r = r.replace(Ke, "").replace(We, ""), i = !0;
1443
1443
  else if (r.indexOf("$FN:") === 0)
1444
1444
  r = r.substring(4), i = !0;
1445
1445
  else if (r.indexOf("$EXEC:") === 0)
@@ -1453,7 +1453,7 @@ function W(t, e) {
1453
1453
  }, r.__json = t, r.__inject = !0, r;
1454
1454
  } else {
1455
1455
  if (r.indexOf("$FNX:") === 0)
1456
- return r = Ne(`function($inject){
1456
+ return r = Te(`function($inject){
1457
1457
  ` + r.substring(5) + `
1458
1458
  }`), r.__json = t, r.__inject = !0, r;
1459
1459
  (!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
@@ -1461,13 +1461,13 @@ function W(t, e) {
1461
1461
  if (!i) return t;
1462
1462
  let s;
1463
1463
  try {
1464
- s = Ne(r);
1464
+ s = Te(r);
1465
1465
  } catch (n) {
1466
- s = Ne("function " + r);
1466
+ s = Te("function " + r);
1467
1467
  }
1468
1468
  return s.__json = t, s;
1469
1469
  } catch (s) {
1470
- tt(`解析失败:${r}
1470
+ et(`解析失败:${r}
1471
1471
 
1472
1472
  err: ${s}`);
1473
1473
  return;
@@ -1481,17 +1481,17 @@ function Pt(t, e) {
1481
1481
  });
1482
1482
  }
1483
1483
  let Jr = 0;
1484
- function Pe() {
1484
+ function Ve() {
1485
1485
  const t = 370 + ++Jr;
1486
1486
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1487
1487
  }
1488
1488
  function se(t, e, r) {
1489
1489
  let i = t, s;
1490
1490
  return (e || "").split(".").forEach((n) => {
1491
- s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1492
- }), k(i, s, r), i;
1491
+ s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
1492
+ }), F(i, s, r), i;
1493
1493
  }
1494
- function Ze(t, e) {
1494
+ function Xe(t, e) {
1495
1495
  return {
1496
1496
  value: t,
1497
1497
  enumerable: !1,
@@ -1506,9 +1506,9 @@ function Bt(t, e) {
1506
1506
  return Ce([], [...t], e || !1);
1507
1507
  }
1508
1508
  function x(t, e) {
1509
- return Y(Array.isArray(e) ? e : [e], t, { array: xe, normal: et }), t;
1509
+ return Y(Array.isArray(e) ? e : [e], t, { array: Ye, normal: xe }), t;
1510
1510
  }
1511
- function ht(t) {
1511
+ function ct(t) {
1512
1512
  const e = h.Function(t.getRule) ? t.getRule() : t;
1513
1513
  return e.type || (e.type = "input"), e;
1514
1514
  }
@@ -1535,9 +1535,9 @@ function O(t, e) {
1535
1535
  }
1536
1536
  return e;
1537
1537
  }
1538
- function Qe(t, e) {
1538
+ function Ze(t, e) {
1539
1539
  let r = null;
1540
- return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Qe(i, e)) : r = t, r && e && H(r).forEach((i) => {
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) => {
1541
1541
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1542
1542
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1543
1543
  });
@@ -1547,12 +1547,12 @@ function Kr(t, e) {
1547
1547
  if (h.Object(t)) {
1548
1548
  const r = {};
1549
1549
  return Object.keys(t).forEach((i) => {
1550
- r[i] = Qe(t[i], i);
1550
+ r[i] = Ze(t[i], i);
1551
1551
  }), r;
1552
1552
  } else
1553
- return Qe(t, e);
1553
+ return Ze(t, e);
1554
1554
  }
1555
- function Fe() {
1555
+ function ke() {
1556
1556
  const t = {}, e = (r) => r || "default";
1557
1557
  return {
1558
1558
  setSlot(r, i) {
@@ -1591,15 +1591,15 @@ function Fe() {
1591
1591
  function Se(t, e) {
1592
1592
  return Object.setPrototypeOf(t, e), t;
1593
1593
  }
1594
- const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1595
- "==": (t, e) => JSON.stringify(t) === JSON.stringify(dt(t, e)),
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)),
1596
1596
  "!=": (t, e) => !ce["=="](t, e),
1597
1597
  ">": (t, e) => t > e,
1598
1598
  ">=": (t, e) => t >= e,
1599
1599
  "<": (t, e) => t < e,
1600
1600
  "<=": (t, e) => t <= e,
1601
1601
  on(t, e) {
1602
- return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
1602
+ return t && t.indexOf && t.indexOf(ht(t[0], e)) > -1;
1603
1603
  },
1604
1604
  notOn(t, e) {
1605
1605
  return !ce.on(t, e);
@@ -1639,7 +1639,7 @@ function Xr(t) {
1639
1639
  r[1] && (i[r[1]] = !0);
1640
1640
  return Object.keys(i);
1641
1641
  }
1642
- function pt(t) {
1642
+ function dt(t) {
1643
1643
  let e = t.split("."), r = [], i = "";
1644
1644
  return e.forEach((s, n) => {
1645
1645
  n === 0 ? i = s : i += "." + s, r.push(i);
@@ -1657,12 +1657,12 @@ function Nt(t) {
1657
1657
  }
1658
1658
  return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
1659
1659
  }
1660
- const De = (t, e) => {
1660
+ const Ee = (t, e) => {
1661
1661
  if (!(!t || t === e || !t.$props)) {
1662
1662
  if (t.$props.formCreateInject)
1663
1663
  return t.$props.formCreateInject;
1664
1664
  if (t.$parent)
1665
- return De(t.$parent, e);
1665
+ return Ee(t.$parent, e);
1666
1666
  }
1667
1667
  };
1668
1668
  function Zr(t, e, r) {
@@ -1705,6 +1705,7 @@ function Zr(t, e, r) {
1705
1705
  index: [String, Number],
1706
1706
  api: Object,
1707
1707
  locale: [String, Object],
1708
+ t: Function,
1708
1709
  name: String,
1709
1710
  subForm: {
1710
1711
  type: Boolean,
@@ -1725,93 +1726,93 @@ function Zr(t, e, r) {
1725
1726
  a = a.parent;
1726
1727
  else
1727
1728
  a = n;
1728
- const { rule: l, value: u, subForm: f, inFor: p } = ut(s), d = ie({
1729
+ const { rule: l, value: u, subForm: f, inFor: p } = lt(s), d = ie({
1729
1730
  ctxInject: {},
1730
1731
  destroyed: !1,
1731
1732
  isShow: !0,
1732
1733
  unique: 1,
1733
1734
  renderRule: [...l.value || []],
1734
1735
  updateValue: JSON.stringify(u.value || {})
1735
- }), g = new t(n), y = g.api(), _ = p.value, D = () => {
1736
+ }), m = new t(n), y = m.api(), _ = p.value, E = () => {
1736
1737
  if (o) {
1737
- const F = De(n, o);
1738
- if (F) {
1738
+ const k = Ee(n, o);
1739
+ if (k) {
1739
1740
  let R;
1740
- _ ? (R = H(F.getSubForm()), R.push(y)) : R = y, F.subForm(R);
1741
+ _ ? (R = H(k.getSubForm()), R.push(y)) : R = y, k.subForm(R);
1741
1742
  }
1742
1743
  }
1743
1744
  }, ee = () => {
1744
- const F = De(n, o);
1745
- if (F)
1745
+ const k = Ee(n, o);
1746
+ if (k)
1746
1747
  if (_) {
1747
- const R = H(F.getSubForm()), N = R.indexOf(y);
1748
+ const R = H(k.getSubForm()), N = R.indexOf(y);
1748
1749
  N > -1 && R.splice(N, 1);
1749
1750
  } else
1750
- F.subForm();
1751
+ k.subForm();
1751
1752
  };
1752
1753
  let I = null;
1753
1754
  dr(() => {
1754
1755
  B(() => {
1755
- let F = "";
1756
+ let k = "";
1756
1757
  const R = s.option && s.option.globalClass || {};
1757
1758
  Object.keys(R).forEach((N) => {
1758
1759
  let pe = "";
1759
1760
  R[N].style && Object.keys(R[N].style).forEach((z) => {
1760
1761
  pe += be(z) + ":" + R[N].style[z] + ";";
1761
- }), R[N].content && (pe += R[N].content + ";"), pe && (F += `.${N}{${pe}}`);
1762
- }), s.option && s.option.style && (F += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = F || "";
1762
+ }), R[N].content && (pe += R[N].content + ";"), pe && (k += `.${N}{${pe}}`);
1763
+ }), s.option && s.option.style && (k += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = k || "";
1763
1764
  }, () => {
1764
1765
  });
1765
1766
  });
1766
1767
  const T = ne(() => {
1767
- g.bus.$emit("$loadData.$topForm");
1768
+ m.bus.$emit("$loadData.$topForm");
1768
1769
  }, 100), he = ne(function() {
1769
- g.bus.$emit("$loadData.$scopeForm");
1770
- }, 100), Le = ne(() => {
1771
- g.bus.$emit("$loadData.$form");
1772
- }, 100), de = (F) => {
1773
- g.bus.$emit("change-$form." + F);
1770
+ m.bus.$emit("$loadData.$scopeForm");
1771
+ }, 100), Pe = ne(() => {
1772
+ m.bus.$emit("$loadData.$form");
1773
+ }, 100), de = (k) => {
1774
+ m.bus.$emit("change-$form." + k);
1774
1775
  };
1775
1776
  return pr(() => {
1776
- 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();
1777
+ o && (y.top.bus.$on("$loadData.$form", T), y.top.bus.$on("change", de)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", he), m.mounted();
1777
1778
  }), mr(() => {
1778
- o && (y.top.bus.$off("$loadData.$form", T), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), ee(), d.destroyed = !0, g.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1779
+ o && (y.top.bus.$off("$loadData.$form", T), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), ee(), d.destroyed = !0, m.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1779
1780
  }), gr(() => {
1780
- g.updated();
1781
- }), B(f, (F) => {
1782
- F ? D() : ee();
1781
+ m.updated();
1782
+ }), B(f, (k) => {
1783
+ k ? E() : ee();
1783
1784
  }, { immediate: !0 }), B(() => s.option, () => {
1784
- g.initOptions(), y.refresh();
1785
- }, { deep: !0 }), B(() => [...l.value], (F) => {
1786
- g.$handle.isBreakWatch() || F.length === d.renderRule.length && F.every((R) => d.renderRule.indexOf(R) > -1) || (g.$handle.updateAppendData(), g.$handle.reloadRule(l.value), n.renderRule());
1785
+ m.initOptions(), y.refresh();
1786
+ }, { deep: !0 }), B(() => [...l.value], (k) => {
1787
+ m.$handle.isBreakWatch() || k.length === d.renderRule.length && k.every((R) => d.renderRule.indexOf(R) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1787
1788
  }), B(() => [s.disabled, s.preview], () => {
1788
1789
  y.refresh();
1789
- }), B(u, (F) => {
1790
- _e(F || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(F || {}) : y.setValue(F || {}));
1790
+ }), B(u, (k) => {
1791
+ _e(k || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(k || {}) : y.setValue(k || {}));
1791
1792
  }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1792
- y.coverValue({}), g.$handle.updateAppendData(), V(() => {
1793
+ y.coverValue({}), m.$handle.updateAppendData(), V(() => {
1793
1794
  V(() => {
1794
1795
  y.clearValidateState();
1795
1796
  });
1796
1797
  });
1797
1798
  }, { flush: "sync" }), U(v({
1798
- fc: ge(g),
1799
+ fc: ge(m),
1799
1800
  parent: o && ge(o),
1800
1801
  top: ge(a),
1801
1802
  fapi: ge(y)
1802
- }, ut(d)), {
1803
- getGroupInject: () => De(n, o),
1803
+ }, lt(d)), {
1804
+ getGroupInject: () => Ee(n, o),
1804
1805
  refresh() {
1805
1806
  ++d.unique;
1806
1807
  },
1807
1808
  renderRule() {
1808
1809
  d.renderRule = [...l.value || []];
1809
1810
  },
1810
- updateValue(F) {
1811
+ updateValue(k) {
1811
1812
  if (d.destroyed) return;
1812
- const R = _e(F);
1813
- d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", F), V(() => {
1814
- Le(), o ? f.value || he() : (T(), he());
1813
+ const R = _e(k);
1814
+ d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", k), V(() => {
1815
+ Pe(), o ? f.value || he() : (T(), he());
1815
1816
  }));
1816
1817
  }
1817
1818
  });
@@ -1835,19 +1836,19 @@ function Mt() {
1835
1836
  }
1836
1837
  function P(t, e) {
1837
1838
  return (r, i, s, n = {}) => {
1838
- const o = new rt(t, r, i, s, n);
1839
+ const o = new tt(t, r, i, s, n);
1839
1840
  return e && (h.Function(e) ? e(o) : o.props(e)), o;
1840
1841
  };
1841
1842
  }
1842
- function rt(t, e, r, i, s) {
1843
+ function tt(t, e, r, i, s) {
1843
1844
  this._data = C(Mt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1844
1845
  }
1845
- C(rt.prototype, {
1846
+ C(tt.prototype, {
1846
1847
  getRule() {
1847
1848
  return this._data;
1848
1849
  },
1849
1850
  setProp(t, e) {
1850
- return k(this._data, t, e), this;
1851
+ return F(this._data, t, e), this;
1851
1852
  },
1852
1853
  _clone() {
1853
1854
  const t = new this.constructor();
@@ -1856,7 +1857,7 @@ C(rt.prototype, {
1856
1857
  });
1857
1858
  function Ut(t) {
1858
1859
  t.forEach((e) => {
1859
- rt.prototype[e] = function(r) {
1860
+ tt.prototype[e] = function(r) {
1860
1861
  return x(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1861
1862
  };
1862
1863
  });
@@ -1867,15 +1868,15 @@ function Qr(t, e, r) {
1867
1868
  let i = qt("", e);
1868
1869
  return i._data.type = t, i._data.title = r, i;
1869
1870
  }
1870
- function mt(t, e, r, i) {
1871
+ function pt(t, e, r, i) {
1871
1872
  let s = qt("", r);
1872
1873
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1873
1874
  }
1874
1875
  function Yr() {
1875
1876
  return {
1876
1877
  create: Qr,
1877
- createTmp: mt,
1878
- template: mt,
1878
+ createTmp: pt,
1879
+ template: pt,
1879
1880
  factory: P
1880
1881
  };
1881
1882
  }
@@ -1883,7 +1884,7 @@ function xr(t, e, r) {
1883
1884
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1884
1885
  return s.status = r.status, s.url = t, s;
1885
1886
  }
1886
- function gt(t) {
1887
+ function mt(t) {
1887
1888
  const e = t.responseText || t.response;
1888
1889
  if (!e)
1889
1890
  return e;
@@ -1908,8 +1909,8 @@ function Gt(t) {
1908
1909
  t.onError(o);
1909
1910
  }, e.onload = function() {
1910
1911
  if (e.status < 200 || e.status >= 300)
1911
- return t.onError(xr(r, t, e), gt(e));
1912
- t.onSuccess(gt(e));
1912
+ return t.onError(xr(r, t, e), mt(e));
1913
+ t.onSuccess(mt(e));
1913
1914
  }, e.open(t.method || "get", r, !0);
1914
1915
  let i;
1915
1916
  (t.data || t.file) && (t.file || (t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data || {}).map((n) => {
@@ -1920,7 +1921,7 @@ function Gt(t) {
1920
1921
  s[n] != null && e.setRequestHeader(n, s[n]);
1921
1922
  }), e.send(i);
1922
1923
  }
1923
- function yt(t, e, r) {
1924
+ function gt(t, e, r) {
1924
1925
  return new Promise((i, s) => {
1925
1926
  (e || Gt)(U(v({}, t), {
1926
1927
  onSuccess(n) {
@@ -1945,7 +1946,7 @@ function ei(t) {
1945
1946
  h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1946
1947
  const u = t.fieldCtx[l] || t.nameCtx[l];
1947
1948
  u && u.forEach((f) => {
1948
- k(f.rule, o, a), t.$render.clearCache(f);
1949
+ F(f.rule, o, a), t.$render.clearCache(f);
1949
1950
  });
1950
1951
  });
1951
1952
  }
@@ -2028,7 +2029,7 @@ function ei(t) {
2028
2029
  },
2029
2030
  getValue(n) {
2030
2031
  const o = t.getFieldCtx(n);
2031
- return o ? ve(o.rule.value) : t.options.appendValue !== !1 && E(t.appendData, n) ? ve(t.appendData[n]) : void 0;
2032
+ return o ? ve(o.rule.value) : t.options.appendValue !== !1 && D(t.appendData, n) ? ve(t.appendData[n]) : void 0;
2032
2033
  },
2033
2034
  coverValue(n) {
2034
2035
  const o = v({}, n || {});
@@ -2036,9 +2037,9 @@ function ei(t) {
2036
2037
  t.appendData = {}, s.fields().forEach((a) => {
2037
2038
  const l = t.fieldCtx[a];
2038
2039
  if (l) {
2039
- const u = E(n, a);
2040
+ const u = D(n, a);
2040
2041
  l.forEach((f) => {
2041
- k(f.rule, "value", u ? n[a] : void 0);
2042
+ F(f.rule, "value", u ? n[a] : void 0);
2042
2043
  }), delete o[a];
2043
2044
  }
2044
2045
  }), C(t.appendData, o);
@@ -2051,7 +2052,7 @@ function ei(t) {
2051
2052
  const l = t.fieldCtx[a];
2052
2053
  if (!l) return t.appendData[a] = o[a];
2053
2054
  l.forEach((u) => {
2054
- k(u.rule, "value", o[a]);
2055
+ F(u.rule, "value", o[a]);
2055
2056
  });
2056
2057
  });
2057
2058
  }, !0);
@@ -2115,7 +2116,7 @@ function ei(t) {
2115
2116
  disabled(n, o) {
2116
2117
  e(o).forEach((a) => {
2117
2118
  t.getCtxs(a).forEach((l) => {
2118
- k(l.rule.props, "disabled", !!n);
2119
+ F(l.rule.props, "disabled", !!n);
2119
2120
  });
2120
2121
  }), t.refresh();
2121
2122
  },
@@ -2173,7 +2174,7 @@ function ei(t) {
2173
2174
  t.$manager.updateOptions(t.options), s.refresh();
2174
2175
  },
2175
2176
  hideForm: (n) => {
2176
- k(t.vm, "isShow", !n);
2177
+ F(t.vm, "isShow", !n);
2177
2178
  },
2178
2179
  changeStatus: () => t.changeStatus,
2179
2180
  clearChangeStatus: () => {
@@ -2218,7 +2219,7 @@ function ei(t) {
2218
2219
  },
2219
2220
  setEffect(n, o, a) {
2220
2221
  const l = t.getCtx(n);
2221
- l && o && (o[0] === "$" && (o = o.substr(1)), E(l.rule, "$" + o) && k(l.rule, "$" + o, a), E(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2222
+ l && o && (o[0] === "$" && (o = o.substr(1)), D(l.rule, "$" + o) && F(l.rule, "$" + o, a), D(l.rule, "effect") || F(l.rule, "effect", {}), F(l.rule.effect, o, a));
2222
2223
  },
2223
2224
  clearEffectData(n, o) {
2224
2225
  const a = t.getCtx(n);
@@ -2305,7 +2306,7 @@ function ei(t) {
2305
2306
  const l = s.getChildrenRuleList(n);
2306
2307
  t.deferSyncValue(() => {
2307
2308
  l.forEach((u) => {
2308
- E(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2309
+ D(o, u.field) ? F(u, "value", o[u.field]) : a && F(u, "value", void 0);
2309
2310
  });
2310
2311
  });
2311
2312
  },
@@ -2322,6 +2323,12 @@ function ei(t) {
2322
2323
  }).catch(a) : o(l.data) : o(t.fc.loadData[n]);
2323
2324
  });
2324
2325
  },
2326
+ setGlobalData(n, o) {
2327
+ s.setData("$globalData." + n, o);
2328
+ },
2329
+ setGlobalVar(n, o) {
2330
+ s.setData("$var." + n, o);
2331
+ },
2325
2332
  renderRule(n, o, a) {
2326
2333
  const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2327
2334
  return u ? t.$render.createRuleVnode(u, o, a) : void 0;
@@ -2345,7 +2352,7 @@ function ei(t) {
2345
2352
  bus: t.bus,
2346
2353
  fetch(n) {
2347
2354
  return new Promise((o, a) => {
2348
- n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((l) => {
2355
+ n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => gt(n, t.fc.create.fetch, s).then((l) => {
2349
2356
  O(() => n.onSuccess && n.onSuccess(l)), o(l);
2350
2357
  }).catch((l) => {
2351
2358
  O(() => n.onError && n.onError(l)), a(l);
@@ -2356,7 +2363,7 @@ function ei(t) {
2356
2363
  watchFetch(n, o, a, l) {
2357
2364
  return t.fc.watchLoadData((u, f) => {
2358
2365
  let p = G(n);
2359
- p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((d) => {
2366
+ p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => gt(p, t.fc.create.fetch, s).then((d) => {
2360
2367
  O(() => p.onSuccess && p.onSuccess(d)), o && o(d, f);
2361
2368
  }).catch((d) => {
2362
2369
  O(() => p.onError && p.onError(d)), a && a(d);
@@ -2449,7 +2456,7 @@ function ri(t) {
2449
2456
  if (!this.vm.isShow)
2450
2457
  return;
2451
2458
  this.$manager.beforeRender();
2452
- const e = Fe();
2459
+ const e = ke();
2453
2460
  return this.sort.forEach((r) => {
2454
2461
  this.renderSlot(e, this.$handle.ctxs[r]);
2455
2462
  }), this.$manager.render(e);
@@ -2525,8 +2532,8 @@ function ri(t) {
2525
2532
  })()));
2526
2533
  });
2527
2534
  const d = this.getTypeSlot(e);
2528
- let g;
2529
- 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;
2535
+ let m;
2536
+ return d ? (u.children = f, m = d(u)) : m = a ? e.parser.preview(Je(f), e) : e.parser.render(Je(f), e), m = this.renderSides(m, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((y) => !y || !y.tag ? y : this.none(y)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2530
2537
  }, this.setCache(e, s, r);
2531
2538
  }
2532
2539
  return (...s) => {
@@ -2576,6 +2583,7 @@ function ri(t) {
2576
2583
  },
2577
2584
  getSubForm: () => this.$handle.subForm[e.id],
2578
2585
  slots: () => this.vm.top.$scopedSlots,
2586
+ getWrap: () => this.vm.$refs[e.wrapRef],
2579
2587
  options: [],
2580
2588
  children: [],
2581
2589
  preview: !1,
@@ -2663,7 +2671,7 @@ function ri(t) {
2663
2671
  },
2664
2672
  renderChildren(e, r, i) {
2665
2673
  if (!h.trueArray(e)) return [];
2666
- const s = Fe();
2674
+ const s = ke();
2667
2675
  return e.map((n) => {
2668
2676
  if (n) {
2669
2677
  if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
@@ -2689,7 +2697,7 @@ function ri(t) {
2689
2697
  },
2690
2698
  createRuleVnode(e, r, i) {
2691
2699
  this.force = i !== !1, this.tmpInput = r;
2692
- const s = Fe();
2700
+ const s = ke();
2693
2701
  return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
2694
2702
  },
2695
2703
  renderRule(e, r, i) {
@@ -2704,7 +2712,7 @@ function ri(t) {
2704
2712
  a && (s = q(a));
2705
2713
  }
2706
2714
  if (!s) return;
2707
- const n = Fe();
2715
+ const n = ke();
2708
2716
  h.trueArray(e.children) && e.children.forEach((a) => {
2709
2717
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2710
2718
  });
@@ -2714,7 +2722,7 @@ function ri(t) {
2714
2722
  });
2715
2723
  }
2716
2724
  let ii = 1;
2717
- function it(t) {
2725
+ function rt(t) {
2718
2726
  C(this, {
2719
2727
  $handle: t,
2720
2728
  fc: t.fc,
@@ -2733,8 +2741,8 @@ function it(t) {
2733
2741
  }
2734
2742
  }), this.initCache(), this.initRender();
2735
2743
  }
2736
- ti(it);
2737
- ri(it);
2744
+ ti(rt);
2745
+ ri(rt);
2738
2746
  function ni(t) {
2739
2747
  C(t.prototype, {
2740
2748
  parseInjectEvent(e, r) {
@@ -2765,8 +2773,8 @@ function ni(t) {
2765
2773
  let p, d = n || o || a;
2766
2774
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2767
2775
  r || (d = `native-${d}`);
2768
- const g = be(`${d}-${f}`), y = (..._) => {
2769
- this.vm.$emit(g, ..._), this.vm.$emit("emit-event", g, ..._), this.bus.$emit(g, ..._);
2776
+ const m = be(`${d}-${f}`), y = (..._) => {
2777
+ this.vm.$emit(m, ..._), this.vm.$emit("emit-event", m, ..._), this.bus.$emit(m, ..._);
2770
2778
  };
2771
2779
  if (y.__emit = !0, !p && l === !1)
2772
2780
  i[f] = y;
@@ -2806,7 +2814,7 @@ function ni(t) {
2806
2814
  let f = !1, p;
2807
2815
  if (i && u.indexOf("$form.") === 0) {
2808
2816
  const d = u.split(".");
2809
- d.shift(), E(i.value, d[0]) && (f = !0, p = r ? r({
2817
+ d.shift(), D(i.value, d[0]) && (f = !0, p = r ? r({
2810
2818
  id: "$form." + d[0] + "_" + i.rule.__fc__.id,
2811
2819
  getValue: () => L(i.value, d)
2812
2820
  }) : L(i.value, d));
@@ -2818,16 +2826,16 @@ function ni(t) {
2818
2826
  d.key ? f.push(d.key) : d.children && f.push(a(d.children));
2819
2827
  });
2820
2828
  let p = !1;
2821
- return f.forEach((d, g) => {
2822
- d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[g] = d.slice(1, -1), p = !0);
2829
+ return f.forEach((d, m) => {
2830
+ d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[m] = d.slice(1, -1), p = !0);
2823
2831
  }), f.length === 1 && (p || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2824
2832
  };
2825
2833
  let l;
2826
2834
  if (n.forEach((u) => {
2827
2835
  const f = u.split("||"), p = f[0].trim();
2828
2836
  if (p) {
2829
- const d = (f[1] || "").trim(), g = Nt(p);
2830
- let y = O(() => a(g));
2837
+ const d = (f[1] || "").trim(), m = Nt(p);
2838
+ let y = O(() => a(m));
2831
2839
  (y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2832
2840
  }
2833
2841
  }), n.length === 1 && s === `{{${n[0]}}}`)
@@ -2850,7 +2858,7 @@ function ni(t) {
2850
2858
  }
2851
2859
  });
2852
2860
  }
2853
- const $t = ["hook:updated", "hook:mounted"];
2861
+ const yt = ["hook:updated", "hook:mounted"];
2854
2862
  function si(t) {
2855
2863
  C(t.prototype, {
2856
2864
  usePage() {
@@ -2865,9 +2873,9 @@ function si(t) {
2865
2873
  },
2866
2874
  pageLoad() {
2867
2875
  const e = () => {
2868
- 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());
2876
+ 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());
2869
2877
  };
2870
- this.vm.$on($t, e);
2878
+ this.vm.$on(yt, e);
2871
2879
  }
2872
2880
  });
2873
2881
  }
@@ -2891,13 +2899,13 @@ function ai(t) {
2891
2899
  }
2892
2900
  function li(t) {
2893
2901
  Object.defineProperties(t.origin, {
2894
- __fc__: Ze(ge(t), !0)
2902
+ __fc__: Xe(ge(t), !0)
2895
2903
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2896
- __fc__: Ze(ge(t), !0)
2904
+ __fc__: Xe(ge(t), !0)
2897
2905
  });
2898
2906
  }
2899
2907
  function zt(t, e, r) {
2900
- const i = Pe(), s = !!e.field;
2908
+ const i = Ve(), s = !!e.field;
2901
2909
  C(this, {
2902
2910
  id: i,
2903
2911
  ref: i,
@@ -2996,7 +3004,7 @@ C(zt.prototype, {
2996
3004
  t === void 0 ? this.payload = {} : delete this.payload[t];
2997
3005
  },
2998
3006
  updateKey(t) {
2999
- this.key = Pe(), t && this.parent && this.parent.updateKey(t);
3007
+ this.key = Ve(), t && this.parent && this.parent.updateKey(t);
3000
3008
  },
3001
3009
  updateType() {
3002
3010
  this.originType = this.rule.type, this.type = q(this.rule.type), this.trueType = this.$handle.getType(this.originType);
@@ -3085,9 +3093,9 @@ function ui(t) {
3085
3093
  });
3086
3094
  },
3087
3095
  parseRule(e) {
3088
- const r = ht(e);
3096
+ const r = ct(e);
3089
3097
  return Object.defineProperties(r, {
3090
- __origin__: Ze(e, !0)
3098
+ __origin__: Xe(e, !0)
3091
3099
  }), fi(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3092
3100
  i && this.loadFn(i, r);
3093
3101
  }), this.loadCtrl(r), r.update && (r.update = W(r.update)), r;
@@ -3135,17 +3143,17 @@ function ui(t) {
3135
3143
  if (r && !h.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3136
3144
  if (o.__fc__ && o.__fc__.root === e && this.ctxs[o.__fc__.id])
3137
3145
  return s(o.__fc__.loadChildrenPending(), o.__fc__), o.__fc__;
3138
- let l = ht(o);
3146
+ let l = ct(o);
3139
3147
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3140
3148
  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);
3141
- let f, p = !1, d = !!o.__fc__, g = l.value;
3149
+ let f, p = !1, d = !!o.__fc__, m = l.value;
3142
3150
  if (d) {
3143
- if (f = o.__fc__, g = f.defaultValue, f.deleted) {
3144
- if (bt(f))
3151
+ if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3152
+ if ($t(f))
3145
3153
  return;
3146
3154
  f.update(this);
3147
3155
  } else if (!f.check(this)) {
3148
- if (bt(f))
3156
+ if ($t(f))
3149
3157
  return;
3150
3158
  e[a] = o = o._clone ? o._clone() : Pt(_e(o)), f = null, p = !0;
3151
3159
  }
@@ -3153,14 +3161,14 @@ function ui(t) {
3153
3161
  if (f)
3154
3162
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3155
3163
  else {
3156
- const D = this.parseRule(o);
3157
- f = new zt(this, D, g), this.bindParser(f);
3164
+ const E = this.parseRule(o);
3165
+ f = new zt(this, E, m), this.bindParser(f);
3158
3166
  }
3159
- [!1, !0].forEach((D) => this.parseEmit(f, D)), 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");
3167
+ [!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");
3160
3168
  const y = f.loadChildrenPending();
3161
3169
  if (f.parser.loadChildren === !1 || s(y, f), !r) {
3162
- const D = i(a);
3163
- D > -1 || !a ? this.sort.splice(D + 1, 0, f.id) : this.sort.push(f.id);
3170
+ const E = i(a);
3171
+ E > -1 || !a ? this.sort.splice(E + 1, 0, f.id) : this.sort.push(f.id);
3164
3172
  }
3165
3173
  const _ = f.rule;
3166
3174
  return f.updated || (f.updated = !0, h.Function(_.update) && this.bus.$once("load-end", () => {
@@ -3191,13 +3199,13 @@ function ui(t) {
3191
3199
  const n = [];
3192
3200
  let o = !1;
3193
3201
  return this.deferSyncValue(() => {
3194
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: g, method: y }) => {
3202
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: m, method: y }) => {
3195
3203
  if (a) {
3196
3204
  l ? e.ctrlRule.push({
3197
3205
  __ctrl: !0,
3198
3206
  children: u,
3199
3207
  valid: l
3200
- }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3208
+ }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3201
3209
  y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((_) => {
3202
3210
  this.api.setEffect(_, "required", l);
3203
3211
  }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
@@ -3216,8 +3224,8 @@ function ui(t) {
3216
3224
  f ? s.prepend(_, f, d) : p || d ? s.append(_, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3217
3225
  });
3218
3226
  } else {
3219
- e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3220
- const _ = Q(g);
3227
+ e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3228
+ const _ = Q(m);
3221
3229
  _ && _.rm();
3222
3230
  }
3223
3231
  });
@@ -3248,7 +3256,7 @@ function ui(t) {
3248
3256
  function fi(t) {
3249
3257
  const e = Mt();
3250
3258
  return Object.keys(e).forEach((r) => {
3251
- E(t, r) || k(t, r, e[r]);
3259
+ D(t, r) || F(t, r, e[r]);
3252
3260
  }), t;
3253
3261
  }
3254
3262
  function ci(t) {
@@ -3262,7 +3270,7 @@ function hi(t, e) {
3262
3270
  return i;
3263
3271
  }
3264
3272
  }
3265
- function bt(t) {
3273
+ function $t(t) {
3266
3274
  return !!t.rule.__ctrl;
3267
3275
  }
3268
3276
  function di(t) {
@@ -3278,7 +3286,7 @@ function di(t) {
3278
3286
  this.api.clearValidateState(e.id);
3279
3287
  });
3280
3288
  });
3281
- }));
3289
+ }), this.$manager.fieldChange(e, r, i, s));
3282
3290
  },
3283
3291
  onInput(e, r) {
3284
3292
  let i;
@@ -3288,7 +3296,7 @@ function di(t) {
3288
3296
  this.deferSyncValue(() => {
3289
3297
  const i = e.getParentGroup(), s = i ? this.subRuleData[i.id] : null, n = {};
3290
3298
  Object.keys(r || {}).forEach((o) => {
3291
- s && E(s, o) ? n[o] = r[o] : E(this.api.form, o) ? this.api.form[o] = r[o] : this.api.top !== this.api && E(this.api.top.form, o) && (this.api.top.form[o] = r[o]);
3299
+ s && D(s, o) ? n[o] = r[o] : D(this.api.form, o) ? this.api.form[o] = r[o] : this.api.top !== this.api && D(this.api.top.form, o) && (this.api.top.form[o] = r[o]);
3292
3300
  }), Object.keys(n).length && this.api.setChildrenFormData(i.rule, n);
3293
3301
  });
3294
3302
  },
@@ -3298,7 +3306,7 @@ function di(t) {
3298
3306
  setFormData(e, r) {
3299
3307
  e.modelValue = r;
3300
3308
  const i = e.getParentGroup();
3301
- i && (this.subRuleData[i.id] || k(this.subRuleData, i.id, {}), k(this.subRuleData[i.id], e.field, e.rule.value)), k(this.formData, e.id, r);
3309
+ i && (this.subRuleData[i.id] || F(this.subRuleData, i.id, {}), F(this.subRuleData[i.id], e.field, e.rule.value)), F(this.formData, e.id, r);
3302
3310
  },
3303
3311
  rmSubRuleData(e) {
3304
3312
  const r = e.getParentGroup();
@@ -3309,16 +3317,16 @@ function di(t) {
3309
3317
  },
3310
3318
  syncForm() {
3311
3319
  const e = {}, r = this.fields(), i = [];
3312
- this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Ae(this.appendData, n)), s), e), r.reduce((s, n) => {
3320
+ this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = je(this.appendData, n)), s), e), r.reduce((s, n) => {
3313
3321
  let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
3314
- return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = Ae(o.rule, "value"), s;
3322
+ return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = je(o.rule, "value"), s;
3315
3323
  }, e), this.form = ie(e), this.ignoreFields = i, this.syncValue();
3316
3324
  },
3317
3325
  isIgnore(e) {
3318
3326
  return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
3319
3327
  },
3320
3328
  appendValue(e) {
3321
- (!e.field || !E(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
3329
+ (!e.field || !D(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
3322
3330
  },
3323
3331
  addSubForm(e, r) {
3324
3332
  this.subForm[e.id] = r;
@@ -3335,7 +3343,7 @@ function di(t) {
3335
3343
  }), this.vm.updateValue(e);
3336
3344
  },
3337
3345
  isChange(e, r) {
3338
- return JSON.stringify(this.getFormData(e), vt) !== JSON.stringify(r, vt);
3346
+ return JSON.stringify(this.getFormData(e), bt) !== JSON.stringify(r, bt);
3339
3347
  },
3340
3348
  isQuote(e, r) {
3341
3349
  return (r instanceof Function || h.Object(r) || Array.isArray(r)) && r === e.rule.value;
@@ -3368,10 +3376,10 @@ function di(t) {
3368
3376
  }
3369
3377
  });
3370
3378
  }
3371
- function vt(t, e) {
3379
+ function bt(t, e) {
3372
3380
  return typeof e == "function" ? "" + e : e;
3373
3381
  }
3374
- const je = {
3382
+ const De = {
3375
3383
  init(t) {
3376
3384
  },
3377
3385
  toFormValue(t, e) {
@@ -3426,7 +3434,7 @@ function mi(t) {
3426
3434
  if (n)
3427
3435
  return n;
3428
3436
  }
3429
- return r[e.originType] || r[q(e.type)] || r[e.trueType] || je;
3437
+ return r[e.originType] || r[q(e.type)] || r[e.trueType] || De;
3430
3438
  },
3431
3439
  bindParser(e) {
3432
3440
  e.setParser(this.getParser(e));
@@ -3440,7 +3448,7 @@ function mi(t) {
3440
3448
  },
3441
3449
  watchCtx(e) {
3442
3450
  if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && pi.indexOf(i) === -1).forEach((i) => {
3443
- const s = Ae(e.rule, i), n = i === "children";
3451
+ const s = je(e.rule, i), n = i === "children";
3444
3452
  e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3445
3453
  let l = s.value;
3446
3454
  if (!this.isBreakWatch()) {
@@ -3507,7 +3515,7 @@ function mi(t) {
3507
3515
  return n;
3508
3516
  });
3509
3517
  }), e.input) {
3510
- const i = Ae(e.rule, "value");
3518
+ const i = je(e.rule, "value");
3511
3519
  e.watch.push(B(() => i.value, () => {
3512
3520
  let s = e.parser.toFormValue(i.value, e);
3513
3521
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3655,15 +3663,15 @@ function mi(t) {
3655
3663
  let u = !0;
3656
3664
  for (let f = 0; f < a.group.length; f++) {
3657
3665
  const p = a.group[f];
3658
- let d, g = null;
3666
+ let d, m = null;
3659
3667
  if (p.variable)
3660
- g = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3668
+ m = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3661
3669
  else if (p.field)
3662
- g = pt(p.field || "");
3670
+ m = dt(p.field || "");
3663
3671
  else if (!p.mode)
3664
3672
  return !0;
3665
3673
  let y = p.compare;
3666
- 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)
3674
+ if (y && (y = dt(y || "")), p.mode ? d = n(p) : ce[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${m}, ${y || "$val"}); }}}}`).call(this.api.form, ce, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
3667
3675
  return !0;
3668
3676
  l || (u = u && d);
3669
3677
  }
@@ -3707,7 +3715,7 @@ function mi(t) {
3707
3715
  const { id: r, field: i, input: s, name: n } = e;
3708
3716
  re(this.ctxs, r), re(this.formData, r), re(this.subForm, r), re(this.vm.ctxInject, r);
3709
3717
  const o = e.getParentGroup();
3710
- o && this.subRuleData[o.id] && re(this.subRuleData[o.id], i), e.group && re(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !E(this.fieldCtx, i) && re(this.form, i), this.deferSyncValue(() => {
3718
+ o && this.subRuleData[o.id] && re(this.subRuleData[o.id], i), e.group && re(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !D(this.fieldCtx, i) && re(this.form, i), this.deferSyncValue(() => {
3711
3719
  if (!this.reloading) {
3712
3720
  if (e.parser.loadChildren !== !1) {
3713
3721
  const l = e.getPending("children", e.rule.children);
@@ -3742,12 +3750,12 @@ function gi(t) {
3742
3750
  },
3743
3751
  targetHook(e, r, i) {
3744
3752
  var l, u, f, p;
3745
- let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, g) => {
3753
+ let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, m) => {
3746
3754
  d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
3747
3755
  O(() => y(U(v({}, i || {}), {
3748
3756
  self: e.rule,
3749
3757
  rule: e.rule,
3750
- parent: g == null ? void 0 : g.rule,
3758
+ parent: m == null ? void 0 : m.rule,
3751
3759
  $f: this.api,
3752
3760
  api: this.api,
3753
3761
  option: this.vm.$props.option
@@ -3785,7 +3793,7 @@ function yi(t) {
3785
3793
  let r = {
3786
3794
  required: () => {
3787
3795
  var i, s;
3788
- return (E(e.rule, "$required") ? e.rule.$required : (s = (i = e.rule) == null ? void 0 : i.effect) == null ? void 0 : s.required) || !1;
3796
+ return (D(e.rule, "$required") ? e.rule.$required : (s = (i = e.rule) == null ? void 0 : i.effect) == null ? void 0 : s.required) || !1;
3789
3797
  }
3790
3798
  };
3791
3799
  Object.keys(e.rule.effect || {}).forEach((i) => {
@@ -3815,9 +3823,9 @@ function yi(t) {
3815
3823
  }, r);
3816
3824
  },
3817
3825
  getEffect(e, r) {
3818
- if (E(e, "$" + r))
3826
+ if (D(e, "$" + r))
3819
3827
  return e["$" + r];
3820
- if (E(e, "effect") && E(e.effect, r))
3828
+ if (D(e, "effect") && D(e.effect, r))
3821
3829
  return e.effect[r];
3822
3830
  },
3823
3831
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
@@ -3834,7 +3842,7 @@ function yi(t) {
3834
3842
  else
3835
3843
  return;
3836
3844
  const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3837
- e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (g) => x(d.getProp(), [g]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3845
+ e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (m) => x(d.getProp(), [m]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3838
3846
  });
3839
3847
  }
3840
3848
  });
@@ -3886,7 +3894,7 @@ function K(t) {
3886
3894
  nextReload: () => {
3887
3895
  this.lifecycle("reload");
3888
3896
  }
3889
- }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
3897
+ }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3890
3898
  const i = O(() => r(e, this));
3891
3899
  return i && i !== e && C(e, i), e;
3892
3900
  }, ei(this));
@@ -3937,7 +3945,7 @@ di(K);
3937
3945
  mi(K);
3938
3946
  gi(K);
3939
3947
  yi(K);
3940
- const vi = "fcFragment", Me = {
3948
+ const vi = "fcFragment", Ne = {
3941
3949
  name: vi,
3942
3950
  functional: !0,
3943
3951
  props: ["vnode"],
@@ -4011,7 +4019,7 @@ C(Jt.prototype, {
4011
4019
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
4012
4020
  },
4013
4021
  updateKey() {
4014
- this.key = Pe();
4022
+ this.key = Ve();
4015
4023
  },
4016
4024
  //TODO interface
4017
4025
  init() {
@@ -4051,6 +4059,8 @@ C(Jt.prototype, {
4051
4059
  getDefaultOptions() {
4052
4060
  return {};
4053
4061
  },
4062
+ fieldChange(t, e, r, i) {
4063
+ },
4054
4064
  render(t) {
4055
4065
  }
4056
4066
  });
@@ -4067,10 +4077,10 @@ const Oi = function(t) {
4067
4077
  let l = (p) => {
4068
4078
  let d;
4069
4079
  i && i.__fc__ && (d = i.__fc__.getParentGroup());
4070
- let g;
4071
- a.template ? g = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? g = a.handler(p, i, s) : g = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (g == null || g === "") && a.default != null && (g = a.default), a.copy !== !1 && (g = G(g));
4080
+ let m;
4081
+ a.template ? m = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? m = a.handler(p, i, s) : m = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (m == null || m === "") && a.default != null && (m = a.default), a.copy !== !1 && (m = G(m));
4072
4082
  const y = a.modify ? i : r.getProp();
4073
- a.to === "child" ? y.children ? k(y.children, 0, g) : k(y, "children", [g]) : se(y, a.to || "options", g), s.sync(i);
4083
+ a.to === "child" ? y.children ? F(y.children, 0, m) : F(y, "children", [m]) : se(y, a.to || "options", m), s.sync(i);
4074
4084
  }, u = (p) => l(p);
4075
4085
  const f = t.watchLoadData(u);
4076
4086
  l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
@@ -4085,7 +4095,7 @@ const Oi = function(t) {
4085
4095
  }
4086
4096
  };
4087
4097
  return e.watch = e.loaded, e;
4088
- }, ki = function(t) {
4098
+ }, Fi = function(t) {
4089
4099
  const e = {
4090
4100
  name: "t",
4091
4101
  _fn: [],
@@ -4097,11 +4107,11 @@ const Oi = function(t) {
4097
4107
  const l = n[a];
4098
4108
  if (l) {
4099
4109
  const u = typeof l == "object";
4100
- let f = (g) => {
4101
- let y = t.t(u ? l.attr : l, u ? l.params : null, g);
4110
+ let f = (m) => {
4111
+ let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4102
4112
  const _ = u && l.modify ? i : r.getProp();
4103
- a === "child" ? _.children ? k(_.children, 0, y) : k(_, "children", [y]) : se(_, a, y), s.sync(i);
4104
- }, p = (g) => f(g);
4113
+ a === "child" ? _.children ? F(_.children, 0, y) : F(_, "children", [y]) : se(_, a, y), s.sync(i);
4114
+ }, p = (m) => f(m);
4105
4115
  const d = t.watchLoadData(p);
4106
4116
  f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4107
4117
  }
@@ -4122,24 +4132,24 @@ const Oi = function(t) {
4122
4132
  t.clearProp(), r.clearValidateState([e.field]);
4123
4133
  else {
4124
4134
  h.Object(i) || (i = { method: i });
4125
- const s = i.method;
4126
- delete i.method, t.getProp().validate = [U(v({}, i), {
4127
- validator(...n) {
4128
- const o = Q(e);
4129
- if (o)
4130
- return r.exec(o.id, h.String(s) ? s : "formCreateValidate", ...n, {
4135
+ const s = i.method, n = U(v({}, i), {
4136
+ validator(...o) {
4137
+ const a = Q(e);
4138
+ if (a)
4139
+ return r.exec(a.id, h.String(s) ? s : "formCreateValidate", ...o, {
4131
4140
  attr: t,
4132
4141
  rule: e,
4133
4142
  api: r
4134
4143
  });
4135
4144
  }
4136
- })];
4145
+ });
4146
+ delete n.method, t.getProp().validate = [n];
4137
4147
  }
4138
4148
  },
4139
4149
  watch(...t) {
4140
4150
  Wt.load(...t);
4141
4151
  }
4142
- }, Fi = function(t) {
4152
+ }, ki = function(t) {
4143
4153
  function e(s) {
4144
4154
  return h.String(s) && (s = {
4145
4155
  action: s,
@@ -4175,22 +4185,22 @@ const Oi = function(t) {
4175
4185
  i._fn[s.id] = t.watchLoadData(ne((p, d) => {
4176
4186
  if (d && a.watch === !1)
4177
4187
  return i._fn[s.id]();
4178
- const g = t.$handle.loadFetchVar(G(a), p, n), y = U(v({
4188
+ const m = t.$handle.loadFetchVar(G(a), p, n), y = U(v({
4179
4189
  headers: {}
4180
- }, g), {
4181
- onSuccess(_, D) {
4190
+ }, m), {
4191
+ onSuccess(_, E) {
4182
4192
  if (f()) return;
4183
- let ee = (T) => D ? T : E(T, "data") ? T.data : T;
4184
- const I = W(g.parse);
4193
+ let ee = (T) => E ? T : D(T, "data") ? T.data : T;
4194
+ const I = W(m.parse);
4185
4195
  h.Function(I) ? ee = I : I && h.String(I) && (ee = (T) => L(T, I)), l(ee(_, n, o));
4186
4196
  },
4187
4197
  onError(_) {
4188
- l(void 0), !f() && (u || ((D) => tt(D.message || "fetch fail " + g.action)))(_, n, o);
4198
+ l(void 0), !f() && (u || ((E) => et(E.message || "fetch fail " + m.action)))(_, n, o);
4189
4199
  }
4190
4200
  });
4191
4201
  t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4192
- if (h.Function(g.action)) {
4193
- g.action(n, o).then((_) => {
4202
+ if (h.Function(m.action)) {
4203
+ m.action(n, o).then((_) => {
4194
4204
  y.onSuccess(_, !0);
4195
4205
  }).catch((_) => {
4196
4206
  y.onError(_);
@@ -4217,9 +4227,9 @@ const Oi = function(t) {
4217
4227
  };
4218
4228
  return i;
4219
4229
  }, Si = {
4220
- fetch: Fi,
4230
+ fetch: ki,
4221
4231
  loadData: Oi,
4222
- t: ki,
4232
+ t: Fi,
4223
4233
  componentValidate: Wt
4224
4234
  };
4225
4235
  function Ri(t) {
@@ -4294,7 +4304,7 @@ function Ii(t) {
4294
4304
  }
4295
4305
  return null;
4296
4306
  }
4297
- function nt(t, e) {
4307
+ function it(t, e) {
4298
4308
  if (!e)
4299
4309
  return null;
4300
4310
  const r = e.split(".");
@@ -4302,13 +4312,13 @@ function nt(t, e) {
4302
4312
  return r.length ? i == null ? null : L(i, r) : i;
4303
4313
  }
4304
4314
  function Vi(t) {
4305
- return nt(ji, t);
4315
+ return it(ji, t);
4306
4316
  }
4307
4317
  function Pi(t) {
4308
- return nt(Ai, t);
4318
+ return it(Ai, t);
4309
4319
  }
4310
4320
  function Li(t) {
4311
- return nt(Ii, t);
4321
+ return it(Ii, t);
4312
4322
  }
4313
4323
  const Bi = {
4314
4324
  en: {
@@ -4364,7 +4374,7 @@ function Ti(t, e) {
4364
4374
  let r;
4365
4375
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4366
4376
  }
4367
- function Ue() {
4377
+ function Me() {
4368
4378
  return Ti("name", ...arguments);
4369
4379
  }
4370
4380
  function Ni(t) {
@@ -4383,79 +4393,79 @@ function Mi(t, e) {
4383
4393
  }
4384
4394
  function Ui(t) {
4385
4395
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4386
- At.push(...e), xe.push(...r), et.push(...i), Ut([...e, ...r, ...i]);
4396
+ At.push(...e), Ye.push(...r), xe.push(...i), Ut([...e, ...r, ...i]);
4387
4397
  }
4388
4398
  let qi = 1;
4389
- const M = {}, Ee = Symbol("defValue");
4399
+ const M = {}, vt = Symbol("defValue");
4390
4400
  function Kt(t) {
4391
4401
  const e = {
4392
- [Me.name]: Me
4402
+ [Ne.name]: Ne
4393
4403
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4394
4404
  t.extendApi
4395
4405
  ], u = v({}, Si), f = Yr();
4396
4406
  let p = { global: {} };
4397
- const d = t.isMobile === !0, g = ie({
4407
+ const d = t.isMobile === !0, m = ie({
4398
4408
  $mobile: d
4399
- }), y = Ci(), _ = {}, D = {};
4409
+ }), y = Ci(), _ = {}, E = {};
4400
4410
  Ui(t.attrs || {});
4401
4411
  function ee(c) {
4402
- const m = M[c];
4403
- if (Array.isArray(m))
4404
- return m.map(($) => $.api());
4405
- if (m)
4406
- return m.api();
4412
+ const g = M[c];
4413
+ if (Array.isArray(g))
4414
+ return g.map(($) => $.api());
4415
+ if (g)
4416
+ return g.api();
4407
4417
  }
4408
4418
  function I(c) {
4409
4419
  o.push(c);
4410
4420
  }
4411
4421
  function T() {
4412
- const c = Ue(...arguments);
4422
+ const c = Me(...arguments);
4413
4423
  c.id && c.prop && (i[c.id] = c.prop);
4414
4424
  }
4415
4425
  function he() {
4416
- const c = Ue(...arguments);
4426
+ const c = Me(...arguments);
4417
4427
  c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(v({}, c.prop), {
4418
4428
  name: c.id
4419
4429
  }));
4420
4430
  }
4421
- function Le(c) {
4431
+ function Pe(c) {
4422
4432
  y.use(c);
4423
4433
  }
4424
4434
  function de() {
4425
- const c = Ue(...arguments);
4426
- if (!c.id || !c.prop) return je;
4427
- const m = q(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4428
- r[m] = Se($, b || je), f[m] = P(m), $.maker && C(f, $.maker);
4435
+ const c = Me(...arguments);
4436
+ if (!c.id || !c.prop) return De;
4437
+ const g = q(c.id), $ = c.prop, b = $.merge === !0 ? r[g] : void 0;
4438
+ r[g] = Se($, b || De), f[g] = P(g), $.maker && C(f, $.maker);
4429
4439
  }
4430
- function F(c, m) {
4440
+ function k(c, g) {
4431
4441
  let $;
4432
4442
  if (h.String(c)) {
4433
- if ($ = c, m === void 0)
4443
+ if ($ = c, g === void 0)
4434
4444
  return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
4435
4445
  } else
4436
- $ = q(c.name), m = c;
4437
- if (!$ || !m) return;
4446
+ $ = q(c.name), g = c;
4447
+ if (!$ || !g) return;
4438
4448
  const b = q($);
4439
- e[$] = m, e[b] = m, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && de($, m.formCreateParser);
4449
+ e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && de($, g.formCreateParser);
4440
4450
  }
4441
4451
  function R() {
4442
- return Zr(Te, e, i);
4452
+ return Zr(Be, e, i);
4443
4453
  }
4444
4454
  function N() {
4445
- return Me;
4455
+ return Ne;
4446
4456
  }
4447
- function pe(c, m) {
4448
- return h.Function(c.install) ? c.install(z, m) : h.Function(c) && c(z, m), this;
4457
+ function pe(c, g) {
4458
+ return h.Function(c.install) ? c.install(z, g) : h.Function(c) && c(z, g), this;
4449
4459
  }
4450
- function z(c, m, $) {
4451
- let b = Mi(c, m || {});
4460
+ function z(c, g, $) {
4461
+ let b = Mi(c, g || {});
4452
4462
  const w = b.$refs.fc.formCreate;
4453
4463
  return w.$parent = $, Ni(w.options).appendChild(b.$el), w.api();
4454
4464
  }
4455
- Se(z, D);
4465
+ Se(z, E);
4456
4466
  function Zt(c) {
4457
- let m = v({}, t);
4458
- return c ? m.inherit = {
4467
+ let g = v({}, t);
4468
+ return c ? g.inherit = {
4459
4469
  components: e,
4460
4470
  parsers: r,
4461
4471
  directives: i,
@@ -4464,55 +4474,55 @@ function Kt(t) {
4464
4474
  useApps: o,
4465
4475
  maker: f,
4466
4476
  formulas: _,
4467
- loadData: g
4468
- } : delete m.inherit, Kt(m);
4477
+ loadData: m
4478
+ } : delete g.inherit, Kt(g);
4469
4479
  }
4470
- function Qt(c, m) {
4471
- s[c] = m;
4480
+ function Qt(c, g) {
4481
+ s[c] = g;
4472
4482
  }
4473
- function Yt(c, m) {
4474
- _[c] = m;
4483
+ function Yt(c, g) {
4484
+ _[c] = g;
4475
4485
  }
4476
- function xt(c, m) {
4486
+ function xt(c, g) {
4477
4487
  const $ = n[c] || {}, b = $.parsers || {};
4478
- m.parsers && Object.keys(m.parsers).forEach((w) => {
4479
- b[w] = Se(m.parsers[w], je);
4480
- }), m.name = c, n[c] = U(v(v({}, $), m), { parsers: b });
4488
+ g.parsers && Object.keys(g.parsers).forEach((w) => {
4489
+ b[w] = Se(g.parsers[w], De);
4490
+ }), g.name = c, n[c] = U(v(v({}, $), g), { parsers: b });
4481
4491
  }
4482
4492
  function we(c) {
4483
- c && Object.keys(M).forEach((m) => {
4484
- (Array.isArray(M[m]) ? M[m] : [M[m]]).forEach((b) => {
4493
+ c && Object.keys(M).forEach((g) => {
4494
+ (Array.isArray(M[g]) ? M[g] : [M[g]]).forEach((b) => {
4485
4495
  b.bus.$emit("$loadData." + c);
4486
4496
  });
4487
4497
  });
4488
4498
  }
4489
- function Be(c, m) {
4490
- se(g, c, m), we(c);
4499
+ function Le(c, g) {
4500
+ se(m, c, g), we(c);
4491
4501
  }
4492
- function Oe(c, m) {
4493
- const $ = (...b) => O(() => m(...b));
4494
- $._driver = !0, Be(c, $);
4502
+ function Oe(c, g) {
4503
+ const $ = (...b) => O(() => g(...b));
4504
+ $._driver = !0, Le(c, $);
4495
4505
  }
4496
- function st(c, m) {
4506
+ function nt(c, g) {
4497
4507
  const $ = (c || "").split(".");
4498
4508
  c = $.shift();
4499
4509
  const b = $.join(".");
4500
- if (E(g, c) || k(g, c, Ee), g[c] !== Ee) {
4501
- let w = g[c];
4502
- return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? m : w;
4510
+ if (D(m, c) || F(m, c, vt), m[c] !== vt) {
4511
+ let w = m[c];
4512
+ return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? g : w;
4503
4513
  } else
4504
- return m;
4514
+ return g;
4505
4515
  }
4506
4516
  function er(c) {
4507
4517
  l.push(c);
4508
4518
  }
4509
4519
  function tr(c) {
4510
- delete g[c], we(c);
4520
+ delete m[c], we(c);
4511
4521
  }
4512
- function rr(c, m) {
4513
- a.push({ name: c, callback: m });
4522
+ function rr(c, g) {
4523
+ a.push({ name: c, callback: g });
4514
4524
  }
4515
- function Te(c) {
4525
+ function Be(c) {
4516
4526
  C(this, {
4517
4527
  id: qi++,
4518
4528
  create: z,
@@ -4524,7 +4534,7 @@ function Kt(t) {
4524
4534
  formulas: _,
4525
4535
  isMobile: d,
4526
4536
  rules: c.$options.propsData.rule,
4527
- name: c.$options.propsData.name || Pe(),
4537
+ name: c.$options.propsData.name || Ve(),
4528
4538
  inFor: c.$options.propsData.inFor,
4529
4539
  prop: {
4530
4540
  components: e,
@@ -4534,7 +4544,7 @@ function Kt(t) {
4534
4544
  drivers: n,
4535
4545
  renderDriver: null,
4536
4546
  refreshData: we,
4537
- loadData: g,
4547
+ loadData: m,
4538
4548
  CreateNode: y,
4539
4549
  bus: new Ri(),
4540
4550
  unwatch: [],
@@ -4542,42 +4552,42 @@ function Kt(t) {
4542
4552
  extendApiFn: l,
4543
4553
  fetchCache: /* @__PURE__ */ new WeakMap(),
4544
4554
  tmpData: ie({})
4545
- }), a.forEach((m) => {
4546
- this.bus.$on(m.name, m.callback);
4555
+ }), a.forEach((g) => {
4556
+ this.bus.$on(g.name, g.callback);
4547
4557
  }), V(() => {
4548
4558
  B(this.options, () => {
4549
4559
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4550
4560
  }, { deep: !0 });
4551
4561
  }), 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);
4552
4562
  }
4553
- Te.isMobile = d, C(Te.prototype, {
4563
+ Be.isMobile = d, C(Be.prototype, {
4554
4564
  init() {
4555
4565
  this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4556
4566
  this.initOptions(), this.$handle.api.refresh();
4557
4567
  }, { deep: !0 })), this.vm.$options.propsData.driver && (this.renderDriver = typeof this.vm.$options.propsData.driver == "object" ? this.vm.$options.propsData.driver : this.drivers[this.vm.$options.propsData.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.fc.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4558
4568
  },
4559
- targetFormDriver(c, ...m) {
4569
+ targetFormDriver(c, ...g) {
4560
4570
  if (this.renderDriver && this.renderDriver[c])
4561
- return O(() => this.renderDriver[c](...m));
4571
+ return O(() => this.renderDriver[c](...g));
4562
4572
  },
4563
- t(c, m, $) {
4573
+ t(c, g, $) {
4564
4574
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4565
- return b == null && (b = ""), b && m && Object.keys(m).forEach((w) => {
4575
+ return b == null && (b = ""), b && g && Object.keys(g).forEach((w) => {
4566
4576
  const j = new RegExp(`{${w}}`, "g");
4567
- b = b.replace(j, m[w]);
4577
+ b = b.replace(j, g[w]);
4568
4578
  }), b;
4569
4579
  },
4570
4580
  globalDataDriver(c) {
4571
- let m = c.split(".");
4572
- const $ = m.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4581
+ let g = c.split(".");
4582
+ const $ = g.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4573
4583
  if (b) {
4574
4584
  if (b.type === "static")
4575
- return L(b.data, m);
4585
+ return L(b.data, g);
4576
4586
  {
4577
4587
  let w;
4578
4588
  const j = this.fetchCache.get(b);
4579
4589
  if (j) {
4580
- if (j.status && (w = L(j.data, m)), !j.loading)
4590
+ if (j.status && (w = L(j.data, g)), !j.loading)
4581
4591
  return w;
4582
4592
  j.loading = !1, this.fetchCache.set(b, j);
4583
4593
  } else
@@ -4595,7 +4605,7 @@ function Kt(t) {
4595
4605
  S();
4596
4606
  return;
4597
4607
  }
4598
- const me = this.$handle.loadFetchVar(We(b), J);
4608
+ const me = this.$handle.loadFetchVar(Je(b), J);
4599
4609
  this.$handle.api.fetch(me).then((te) => {
4600
4610
  ae(te);
4601
4611
  }).catch((te) => {
@@ -4611,16 +4621,16 @@ function Kt(t) {
4611
4621
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4612
4622
  },
4613
4623
  globalLanguageDriver(c) {
4614
- let m = this.vm.top.$props.locale, $;
4615
- if (m && typeof m == "object" && ($ = L(m, c)), $ == null) {
4616
- const b = this.options.value.language || {}, w = this.getLocale();
4617
- $ = L(b[w] || {}, c), $ == null && ($ = L(Bi[w] || {}, c));
4624
+ let g = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4625
+ if (g && (b = O(() => g(c))), b == null && $ && typeof $ == "object" && (b = L($, c)), b == null) {
4626
+ const w = this.options.value.language || {}, j = this.getLocale();
4627
+ b = L(w[j] || {}, c), b == null && (b = L(Bi[j] || {}, c));
4618
4628
  }
4619
- return $;
4629
+ return b;
4620
4630
  },
4621
4631
  globalVarDriver(c) {
4622
- let m = c.split(".");
4623
- const $ = m.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4632
+ let g = c.split(".");
4633
+ const $ = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4624
4634
  if (b) {
4625
4635
  const w = h.Function(b) ? b : W(b.handle);
4626
4636
  if (w) {
@@ -4628,18 +4638,20 @@ function Kt(t) {
4628
4638
  const S = this.watchLoadData((ae, X) => {
4629
4639
  X ? (this.bus.$emit("$loadData.$var." + $), S()) : j = w(ae, this.$handle.api);
4630
4640
  });
4631
- return this.unwatch.push(S), L(j, m);
4641
+ return this.unwatch.push(S), L(j, g);
4632
4642
  }
4633
4643
  }
4634
4644
  },
4635
- setData(c, m, $) {
4636
- $ ? Be(c, m) : (se(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
4645
+ setData(c, g, $) {
4646
+ $ ? Le(c, g) : (se(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4637
4647
  },
4638
- getLoadData(c, m) {
4648
+ getLoadData(c, g) {
4639
4649
  let $ = null;
4640
4650
  if (c != null) {
4641
4651
  let b = c.split(".");
4642
4652
  const w = b.shift();
4653
+ if ($ = L(this.vm.top.fc.tmpData, c), $ != null)
4654
+ return $;
4643
4655
  if (w === "$topForm")
4644
4656
  $ = this.$handle.api.top.formData(!0);
4645
4657
  else if (w === "$scopeForm")
@@ -4659,16 +4671,13 @@ function Kt(t) {
4659
4671
  else {
4660
4672
  if (w === "$preview")
4661
4673
  return this.$handle.preview;
4662
- {
4663
- const j = this.vm.top.fc.tmpData;
4664
- E(j, w) || k(j, w, Ee), $ = j[w] !== Ee ? L(j, c) : st(c), b = [];
4665
- }
4674
+ $ = nt(c), b = [];
4666
4675
  }
4667
4676
  $ && b.length && ($ = L($, b));
4668
4677
  }
4669
- return $ == null || $ === "" ? m : $;
4678
+ return $ == null || $ === "" ? g : $;
4670
4679
  },
4671
- watchLoadData(c, m) {
4680
+ watchLoadData(c, g) {
4672
4681
  let $ = {};
4673
4682
  const b = (S) => {
4674
4683
  this.get || (this.get = w), O(() => {
@@ -4683,7 +4692,7 @@ function Kt(t) {
4683
4692
  if ($[S])
4684
4693
  ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[S].val || JSON.stringify(fe) !== JSON.stringify($[S].val)) && ($[S].val = fe, b(!0));
4685
4694
  else return;
4686
- }, m || 0), nr = B(le, (fe) => {
4695
+ }, g || 0), nr = B(le, (fe) => {
4687
4696
  te();
4688
4697
  });
4689
4698
  return this.bus.$on("$loadData." + ue, te), me && this.bus.$on("$loadData." + ue + "." + me, te), $[S] = {
@@ -4713,10 +4722,10 @@ function Kt(t) {
4713
4722
  }, G(p));
4714
4723
  this.isSub() && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$options.propsData.option || {}), this.updateOptions(c);
4715
4724
  },
4716
- mergeOptions(c, m, $) {
4717
- return m = v({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4718
- delete m[b];
4719
- }), m.global && (c.global = Wr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4725
+ mergeOptions(c, g, $) {
4726
+ return g = v({}, g || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4727
+ delete g[b];
4728
+ }), g.global && (c.global = Wr(c.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], c), c;
4720
4729
  },
4721
4730
  updateOptions(c) {
4722
4731
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4745,19 +4754,19 @@ function Kt(t) {
4745
4754
  this.$handle.bindNextTick(() => this.bus.$emit("next-tick", this.$handle.api));
4746
4755
  }
4747
4756
  });
4748
- function ot(c) {
4757
+ function st(c) {
4749
4758
  C(c, {
4750
4759
  version: t.version,
4751
4760
  ui: t.ui,
4752
4761
  isMobile: d,
4753
4762
  extendApi: er,
4754
- getData: st,
4763
+ getData: nt,
4755
4764
  setDataDriver: Oe,
4756
- setData: Be,
4765
+ setData: Le,
4757
4766
  removeData: tr,
4758
4767
  refreshData: we,
4759
4768
  maker: f,
4760
- component: F,
4769
+ component: k,
4761
4770
  directive: T,
4762
4771
  setModelField: Qt,
4763
4772
  setFormula: Yt,
@@ -4767,7 +4776,7 @@ function Kt(t) {
4767
4776
  parser: de,
4768
4777
  use: pe,
4769
4778
  factory: Zt,
4770
- componentAlias: Le,
4779
+ componentAlias: Pe,
4771
4780
  copyRule: Lt,
4772
4781
  copyRules: Bt,
4773
4782
  mergeRule: x,
@@ -4784,37 +4793,37 @@ function Kt(t) {
4784
4793
  function ir(c) {
4785
4794
  C(c, {
4786
4795
  create: z,
4787
- install(m, $) {
4788
- if (p = v(v({}, p), $ || {}), m._installedFormCreate === !0) return;
4789
- m._installedFormCreate = !0;
4796
+ install(g, $) {
4797
+ if (p = v(v({}, p), $ || {}), g._installedFormCreate === !0) return;
4798
+ g._installedFormCreate = !0;
4790
4799
  const b = function(j, S = {}) {
4791
4800
  return z(j, S, this);
4792
4801
  };
4793
- ot(b), m.prototype.$formCreate = b;
4802
+ st(b), g.prototype.$formCreate = b;
4794
4803
  const w = R();
4795
- m.component(w.name, w), m.component("FcFragment", N()), o.forEach((j) => {
4796
- O(() => j(c, m));
4804
+ g.component(w.name, w), g.component("FcFragment", N()), o.forEach((j) => {
4805
+ O(() => j(c, g));
4797
4806
  });
4798
4807
  }
4799
4808
  });
4800
4809
  }
4801
- if (ot(D), ir(D), Oe("$cookie", Vi), Oe("$localStorage", Pi), Oe("$sessionStorage", Li), y.use({ fragment: "fcFragment" }), t.install && z.use(t), de(Di), t.inherit) {
4810
+ if (st(E), ir(E), Oe("$cookie", Vi), Oe("$localStorage", Pi), Oe("$sessionStorage", Li), y.use({ fragment: "fcFragment" }), t.install && z.use(t), de(Di), t.inherit) {
4802
4811
  const c = t.inherit;
4803
- 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);
4812
+ c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(m, c.loadData), c.formulas && C(_, c.formulas);
4804
4813
  }
4805
- const ke = R();
4806
- return Se(ke, D), Object.defineProperties(ke, {
4814
+ const Fe = R();
4815
+ return Se(Fe, E), Object.defineProperties(Fe, {
4807
4816
  fetch: {
4808
4817
  get() {
4809
- return D.fetch;
4818
+ return E.fetch;
4810
4819
  },
4811
4820
  set(c) {
4812
- D.fetch = c;
4821
+ E.fetch = c;
4813
4822
  }
4814
4823
  }
4815
- }), ke.util = D, ke;
4824
+ }), Fe.util = E, Fe;
4816
4825
  }
4817
- function qe(t) {
4826
+ function Ue(t) {
4818
4827
  if (h.Date(t))
4819
4828
  return t;
4820
4829
  {
@@ -4829,7 +4838,7 @@ const _t = "datePicker", Gi = {
4829
4838
  }(),
4830
4839
  mergeProp(t) {
4831
4840
  let e = t.prop.props;
4832
- e.startDate && (e.startDate = e.startDate && qe(e.startDate));
4841
+ e.startDate && (e.startDate = e.startDate && Ue(e.startDate));
4833
4842
  },
4834
4843
  isRange(t) {
4835
4844
  return t.type.includes("range") || t.multiple;
@@ -4848,25 +4857,25 @@ const _t = "datePicker", Gi = {
4848
4857
  return this.isRange(e.el) ? r : r[0];
4849
4858
  } else {
4850
4859
  let r = Array.isArray(t), i = e.prop.props, s, n = i.type || "date";
4851
- return ["daterange", "datetimerange"].indexOf(n) !== -1 ? r ? s = t.map((o) => o ? qe(o) : "") : s = ["", ""] : n === "date" && i.multiple === !0 ? s = toString(t) : (s = r ? t[0] || "" : t, s = s ? qe(s) : ""), s;
4860
+ return ["daterange", "datetimerange"].indexOf(n) !== -1 ? r ? s = t.map((o) => o ? Ue(o) : "") : s = ["", ""] : n === "date" && i.multiple === !0 ? s = toString(t) : (s = r ? t[0] || "" : t, s = s ? Ue(s) : ""), s;
4852
4861
  }
4853
4862
  },
4854
4863
  mounted(t) {
4855
4864
  t.rule.value = this.toValue(t.$handle.getFormData(t), t);
4856
4865
  }
4857
- }, Ge = "hidden", Hi = {
4858
- name: Ge,
4866
+ }, qe = "hidden", Hi = {
4867
+ name: qe,
4859
4868
  maker: {
4860
- [Ge]: (t, e) => P(Ge)("", t, e)
4869
+ [qe]: (t, e) => P(qe)("", t, e)
4861
4870
  },
4862
4871
  render() {
4863
4872
  return [];
4864
4873
  }
4865
- }, He = "input", zi = {
4866
- name: He,
4874
+ }, Ge = "input", zi = {
4875
+ name: Ge,
4867
4876
  maker: function() {
4868
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = P(He, { type: r }), e), {});
4869
- return t.idate = P(He, { type: "date" }), t;
4877
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = P(Ge, { type: r }), e), {});
4878
+ return t.idate = P(Ge, { type: "date" }), t;
4870
4879
  }(),
4871
4880
  mergeProp(t) {
4872
4881
  let { props: e } = t.prop;
@@ -4928,7 +4937,7 @@ const _t = "datePicker", Gi = {
4928
4937
  array: "fcGroup",
4929
4938
  subForm: "fcSubForm",
4930
4939
  object: "fcSubForm"
4931
- }, Ie = {
4940
+ }, Ae = {
4932
4941
  resetBtnType: "default",
4933
4942
  resetBtnIcon: "md-refresh",
4934
4943
  infoIcon: "ios-information-circle-outline"
@@ -4939,7 +4948,7 @@ function Qi() {
4939
4948
  trigger: "hover",
4940
4949
  placement: "top-start",
4941
4950
  wordWrap: !0,
4942
- icon: Ie.infoIcon
4951
+ icon: Ae.infoIcon
4943
4952
  };
4944
4953
  }
4945
4954
  function Yi() {
@@ -4964,9 +4973,9 @@ function Yi() {
4964
4973
  click: void 0
4965
4974
  },
4966
4975
  resetBtn: {
4967
- type: Ie.resetBtnType,
4976
+ type: Ae.resetBtnType,
4968
4977
  disabled: !1,
4969
- icon: Ie.resetBtnIcon,
4978
+ icon: Ae.resetBtnIcon,
4970
4979
  innerText: "",
4971
4980
  loading: !1,
4972
4981
  show: !1,
@@ -4975,15 +4984,15 @@ function Yi() {
4975
4984
  };
4976
4985
  }
4977
4986
  function wt(t, e) {
4978
- E(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4987
+ D(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4979
4988
  }
4980
4989
  function Z(t) {
4981
4990
  return t === !1;
4982
4991
  }
4983
4992
  function xi(t, e) {
4984
- E(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4993
+ D(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4985
4994
  }
4986
- function ze(t) {
4995
+ function He(t) {
4987
4996
  const e = v({}, t);
4988
4997
  return delete e.children, e;
4989
4998
  }
@@ -5052,21 +5061,21 @@ const en = {
5052
5061
  return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, Z(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
5053
5062
  },
5054
5063
  makeWrap(t, e) {
5055
- 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;
5056
- delete r.wrap.title;
5057
- const u = Z(r.wrap.show) ? e : this.$r(Y([r.wrap, {
5064
+ const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r) && r.wrap.title !== !1, o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: l } = this.rule.props, u = r.wrap.class;
5065
+ delete r.wrap.class, delete r.wrap.title;
5066
+ const f = Z(r.wrap.show) ? e : this.$r(Y([r.wrap, {
5058
5067
  props: U(v({
5059
5068
  labelWidth: o
5060
- }, ze(r.wrap || {})), {
5069
+ }, He(r.wrap || {})), {
5061
5070
  prop: t.id,
5062
5071
  rules: t.injectValidate()
5063
5072
  }),
5064
- class: this.$render.mergeClass(r.className, "fc-form-item"),
5073
+ class: this.$render.mergeClass(u || r.className, "fc-form-item"),
5065
5074
  key: `${i}fi`,
5066
5075
  ref: t.wrapRef,
5067
5076
  type: "formItem"
5068
5077
  }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5069
- return a === !0 || Z(l) || Z(s.show) ? u : this.makeCol(r, i, [u]);
5078
+ return a === !0 || Z(l) || Z(s.show) ? f : this.makeCol(r, i, [f]);
5070
5079
  },
5071
5080
  isTitle(t) {
5072
5081
  if (this.options.form.title === !1) return !1;
@@ -5074,7 +5083,7 @@ const en = {
5074
5083
  return !(!e.title && !e.native || Z(e.show));
5075
5084
  },
5076
5085
  makeInfo(t, e, r) {
5077
- var u, f, p, d, g, y;
5086
+ var u, f, p, d, m, y;
5078
5087
  const i = v({}, t.title), s = v({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5079
5088
  title: (f = (u = r.refRule) == null ? void 0 : u.__$title) == null ? void 0 : f.value,
5080
5089
  rule: r.rule,
@@ -5083,23 +5092,23 @@ const en = {
5083
5092
  if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
5084
5093
  const _ = {
5085
5094
  type: s.type || "poptip",
5086
- props: ze(s),
5095
+ props: He(s),
5087
5096
  key: `${e}pop`,
5088
5097
  slot: "label"
5089
5098
  };
5090
5099
  delete _.props.icon, delete _.props.show, delete _.props.info, delete _.props.align, delete _.props.native;
5091
- const D = "content";
5092
- s.info && !E(_.props, D) && (_.props[D] = (y = (g = r.refRule) == null ? void 0 : g.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, _]), [
5100
+ const E = "content";
5101
+ s.info && !D(_.props, E) && (_.props[E] = (y = (m = r.refRule) == null ? void 0 : m.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, _]), [
5093
5102
  this.$r({
5094
5103
  type: "icon",
5095
- props: { type: s.icon === !0 ? Ie.infoIcon : s.icon, size: 16 },
5104
+ props: { type: s.icon === !0 ? Ae.infoIcon : s.icon, size: 16 },
5096
5105
  style: "margin-top: -1px",
5097
5106
  key: `${e}i`
5098
5107
  })
5099
5108
  ]));
5100
5109
  }
5101
5110
  const l = Y([i, {
5102
- props: ze(i),
5111
+ props: He(i),
5103
5112
  key: `${e}tit`,
5104
5113
  class: "fc-form-title",
5105
5114
  slot: i.slot || "label",
@@ -5362,7 +5371,7 @@ function cn(t) {
5362
5371
  function hn() {
5363
5372
  return Kt({
5364
5373
  ui: "iview",
5365
- version: "2.7.10",
5374
+ version: "2.7.12",
5366
5375
  manager: en,
5367
5376
  install: cn,
5368
5377
  extendApi: un,
@@ -5373,10 +5382,10 @@ function hn() {
5373
5382
  }
5374
5383
  });
5375
5384
  }
5376
- const Ye = hn();
5377
- typeof window != "undefined" && (window.formCreate = Ye, window.Vue && Ye.install(window.Vue));
5378
- const mn = Ye.maker;
5385
+ const Qe = hn();
5386
+ typeof window != "undefined" && (window.formCreate = Qe, window.Vue && Qe.install(window.Vue));
5387
+ const mn = Qe.maker;
5379
5388
  export {
5380
- Ye as default,
5389
+ Qe as default,
5381
5390
  mn as maker
5382
5391
  };