@form-create/element-ui 2.7.7 → 2.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,61 +1,61 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/element-ui v2.7.7
3
+ * @form-create/element-ui v2.7.8
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
7
7
  * Released under the MIT License.
8
8
  */
9
9
  (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode('._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-frame .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-frame .fc-files:hover .fc-upload-cover{opacity:1}._fc-frame .el-upload{display:block}._fc-frame .fc-upload-btn,.fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-upload .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-upload .fc-files:hover .fc-upload-cover{opacity:1}._fc-upload .fc-upload-btn,._fc-upload .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-group{display:flex;min-height:42px;justify-content:center;flex-direction:column}._fc-group-disabled ._fc-group-btn,._fc-group-disabled ._fc-group-add{cursor:not-allowed}._fc-group-handle{display:flex;flex-direction:row;position:absolute;bottom:-15px;right:30px;border-radius:15px;border:1px dashed #d9d9d9;padding:3px 8px;background-color:#fff}._fc-group-btn{cursor:pointer}._fc-group-idx{position:absolute;bottom:-15px;left:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#eee;border-radius:15px;font-weight:700}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{position:relative;display:flex;flex-direction:column;border:1px dashed #d9d9d9;padding:20px 20px 25px;margin:5px 5px 25px;border-radius:5px}._fc-group-arrow{position:relative;width:20px;height:20px}._fc-group-arrow:before{content:"";position:absolute;top:8px;left:5px;width:9px;height:9px;border-left:2px solid #999;border-top:2px solid #999}._fc-group-arrow:before{transform:rotate(45deg)}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{width:20px;height:20px;position:relative;cursor:pointer}._fc-group-plus-minus:before,._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:60%;height:2px;background-color:#409eff;transform:translate(-50%,-50%)}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{cursor:pointer;width:25px;height:25px;border:1px solid rgb(64 158 255 / 50%);border-radius:15px}._fc-group-add._fc-group-plus-minus:before,._fc-group-add._fc-group-plus-minus:after{width:50%}.form-create .form-create .el-form-item{margin-bottom:22px}.form-create{width:100%}.fc-form-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.form-create.is-preview .fc-clock,.form-create .fc-none,.form-create.is-preview .el-form-item.is-required>.el-form-item__label-wrap>.el-form-item__label:before,.form-create.is-preview .el-form-item.is-required>.el-form-item__label:before{display:none!important}.fc-wrap-right>.el-form-item__label{display:flex;justify-content:flex-end}.fc-wrap-left>.el-form-item__label{display:flex;justify-content:flex-start}.fc-wrap-top.el-form-item{display:block}.fc-wrap-top.el-form-item>.el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.fc-wrap-top.el-form-item>.el-form-item__content{margin-left:0!important}.el-form--large .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small .fc-wrap-top.el-form-item>.el-form-item__label{line-height:20px;margin-bottom:4px}.fc-form-footer{margin-top:12px}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
- var tr = Object.defineProperty, rr = Object.defineProperties;
11
- var ir = Object.getOwnPropertyDescriptors;
12
- var ot = Object.getOwnPropertySymbols;
13
- var nr = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
14
- var at = (t, e, r) => e in t ? tr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
10
+ var rr = Object.defineProperty, ir = Object.defineProperties;
11
+ var nr = Object.getOwnPropertyDescriptors;
12
+ var at = Object.getOwnPropertySymbols;
13
+ var sr = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable;
14
+ var lt = (t, e, r) => e in t ? rr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
- nr.call(e, r) && at(t, r, e[r]);
17
- if (ot)
18
- for (var r of ot(e))
19
- sr.call(e, r) && at(t, r, e[r]);
16
+ sr.call(e, r) && lt(t, r, e[r]);
17
+ if (at)
18
+ for (var r of at(e))
19
+ or.call(e, r) && lt(t, r, e[r]);
20
20
  return t;
21
- }, q = (t, e) => rr(t, ir(e));
22
- import $e, { getCurrentInstance as or, provide as ar, inject as lr, toRefs as lt, reactive as ne, onBeforeMount as ur, watch as L, onMounted as fr, onBeforeUnmount as cr, onUpdated as hr, nextTick as I, markRaw as ge, computed as ye, toRef as je, ref as dr } from "vue";
23
- function pr(t) {
21
+ }, q = (t, e) => ir(t, nr(e));
22
+ import $e, { getCurrentInstance as ar, provide as lr, inject as ur, toRefs as ut, reactive as ne, onBeforeMount as fr, watch as L, onMounted as cr, onBeforeUnmount as hr, onUpdated as dr, nextTick as I, markRaw as ge, computed as ye, toRef as Ae, ref as pr } from "vue";
23
+ function mr(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
- function Ge() {
27
- return Ge = Object.assign ? Object.assign.bind() : function(t) {
26
+ function Je() {
27
+ return Je = Object.assign ? Object.assign.bind() : function(t) {
28
28
  for (var e, r = 1; r < arguments.length; r++) for (var i in e = arguments[r], e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
29
29
  return t;
30
- }, Ge.apply(this, arguments);
30
+ }, Je.apply(this, arguments);
31
31
  }
32
- var mr = ["attrs", "props", "domProps"], gr = ["class", "style", "directives"], yr = ["on", "nativeOn"], $r = function(t) {
32
+ var gr = ["attrs", "props", "domProps"], yr = ["class", "style", "directives"], $r = ["on", "nativeOn"], br = 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 (mr.indexOf(i) !== -1) e[i] = Ge({}, e[i], r[i]);
36
- else if (gr.indexOf(i) !== -1) {
35
+ else if (gr.indexOf(i) !== -1) e[i] = Je({}, e[i], r[i]);
36
+ else if (yr.indexOf(i) !== -1) {
37
37
  var s = e[i] instanceof Array ? e[i] : [e[i]], n = r[i] instanceof Array ? r[i] : [r[i]];
38
38
  e[i] = [].concat(s, n);
39
- } else if (yr.indexOf(i) !== -1)
39
+ } else if ($r.indexOf(i) !== -1)
40
40
  for (var o in r[i]) if (e[i][o]) {
41
41
  var a = e[i][o] instanceof Array ? e[i][o] : [e[i][o]], l = r[i][o] instanceof Array ? r[i][o] : [r[i][o]];
42
42
  e[i][o] = [].concat(a, l);
43
43
  } else e[i][o] = r[i][o];
44
- else if (i === "hook") for (var u in r[i]) e[i][u] = e[i][u] ? br(e[i][u], r[i][u]) : r[i][u];
44
+ else if (i === "hook") for (var u in r[i]) e[i][u] = e[i][u] ? vr(e[i][u], r[i][u]) : r[i][u];
45
45
  else e[i] = r[i];
46
46
  return e;
47
47
  }, {});
48
- }, br = function(t, e) {
48
+ }, vr = function(t, e) {
49
49
  return function() {
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
- }, vr = $r;
53
- const V = /* @__PURE__ */ pr(vr);
54
- function Ze(t, e) {
52
+ }, _r = br;
53
+ const V = /* @__PURE__ */ mr(_r);
54
+ function Qe(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => (r.push(t[i]), r), []);
56
56
  }
57
- const _r = "fcCheckbox", Cr = {
58
- name: _r,
57
+ const Cr = "fcCheckbox", wr = {
58
+ name: Cr,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -117,7 +117,7 @@ const _r = "fcCheckbox", Cr = {
117
117
  }, {
118
118
  key: s + r + "-" + e.value
119
119
  }]));
120
- }), Ze(this.$slots)]);
120
+ }), Qe(this.$slots)]);
121
121
  },
122
122
  mounted() {
123
123
  this.$emit("fc.el", this.$refs.el);
@@ -126,8 +126,8 @@ const _r = "fcCheckbox", Cr = {
126
126
  function H(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
- const wr = "fcFrame", Fr = {
130
- name: wr,
129
+ const Fr = "fcFrame", Or = {
130
+ name: Fr,
131
131
  props: {
132
132
  formCreateInject: {
133
133
  type: Object,
@@ -496,8 +496,8 @@ const wr = "fcFrame", Fr = {
496
496
  mounted() {
497
497
  this.$on("fc.closeModal", this.closeModal);
498
498
  }
499
- }, Or = "fcRadio", kr = {
500
- name: Or,
499
+ }, kr = "fcRadio", Sr = {
500
+ name: kr,
501
501
  props: {
502
502
  formCreateInject: {
503
503
  type: Object,
@@ -556,7 +556,7 @@ const wr = "fcFrame", Fr = {
556
556
  }, {
557
557
  key: s + r + "-" + e.value
558
558
  }]));
559
- }), Ze(this.$slots)]);
559
+ }), Qe(this.$slots)]);
560
560
  },
561
561
  mounted() {
562
562
  this.$emit("fc.el", this.$refs.el);
@@ -594,7 +594,7 @@ const wr = "fcFrame", Fr = {
594
594
  function D(t, e) {
595
595
  return {}.hasOwnProperty.call(t, e);
596
596
  }
597
- const Er = "fcSelect", Sr = {
597
+ const Er = "fcSelect", Rr = {
598
598
  name: Er,
599
599
  functional: !0,
600
600
  props: {
@@ -626,8 +626,8 @@ const Er = "fcSelect", Sr = {
626
626
  mounted() {
627
627
  this.$emit("fc.el", this.$refs.el);
628
628
  }
629
- }, Rr = "fcTree", Dr = {
630
- name: Rr,
629
+ }, Dr = "fcTree", jr = {
630
+ name: Dr,
631
631
  formCreateParser: {
632
632
  mergeProp(t) {
633
633
  const e = t.prop.props;
@@ -677,31 +677,31 @@ const Er = "fcSelect", Sr = {
677
677
  check: () => this.updateValue(),
678
678
  "node-click": () => this.updateValue()
679
679
  }
680
- }]), [Ze(this.$slots)]);
680
+ }]), [Qe(this.$slots)]);
681
681
  },
682
682
  mounted() {
683
683
  this.setValue(), this.$emit("fc.el", this.$refs.tree);
684
684
  }
685
685
  };
686
- function ut(t, e) {
686
+ function ft(t, e) {
687
687
  return typeof t == "object" ? t : {
688
688
  url: t,
689
689
  is_string: !0,
690
- name: jr(t),
690
+ name: Ar(t),
691
691
  uid: e
692
692
  };
693
693
  }
694
- function ft(t) {
694
+ function ct(t) {
695
695
  return q(v({}, t), {
696
696
  file: t,
697
697
  value: t
698
698
  });
699
699
  }
700
- function jr(t) {
700
+ function Ar(t) {
701
701
  return ("" + t).split("/").pop();
702
702
  }
703
- const Ar = "fcUpload", Vr = {
704
- name: Ar,
703
+ const Vr = "fcUpload", Ir = {
704
+ name: Vr,
705
705
  props: {
706
706
  formCreateInject: {
707
707
  type: Object,
@@ -749,11 +749,11 @@ const Ar = "fcUpload", Vr = {
749
749
  };
750
750
  },
751
751
  created() {
752
- this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = H(this.value).map(ut).map(ft);
752
+ this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = H(this.value).map(ft).map(ct);
753
753
  },
754
754
  watch: {
755
755
  value(t) {
756
- this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = H(t).map(ut).map(ft), this.uploadList = this.$refs.upload.uploadFiles);
756
+ this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = H(t).map(ft).map(ct), this.uploadList = this.$refs.upload.uploadFiles);
757
757
  },
758
758
  limit(t, e) {
759
759
  (e === 1 || t === 1) && this.update();
@@ -911,7 +911,7 @@ const Ar = "fcUpload", Vr = {
911
911
  }), this.$emit("fc.el", this.$refs.upload);
912
912
  }
913
913
  };
914
- function E(t, e, r) {
914
+ function S(t, e, r) {
915
915
  $e.set(t, e, r);
916
916
  }
917
917
  function ie(t, e) {
@@ -925,39 +925,39 @@ function Ce(t, e = {}, r) {
925
925
  if ((i = Array.isArray(n)) || h.Object(n)) {
926
926
  let o = t[s] === void 0;
927
927
  if (i)
928
- i = !1, o && E(t, s, []);
928
+ i = !1, o && S(t, s, []);
929
929
  else if (n._clone && r !== void 0)
930
930
  if (r)
931
- n = n.getRule(), o && E(t, s, {});
931
+ n = n.getRule(), o && S(t, s, {});
932
932
  else {
933
- E(t, s, n._clone());
933
+ S(t, s, n._clone());
934
934
  continue;
935
935
  }
936
936
  else
937
- o && E(t, s, {});
937
+ o && S(t, s, {});
938
938
  t[s] = Ce(t[s], n, r);
939
939
  } else
940
- E(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
940
+ S(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
941
941
  }
942
942
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
943
943
  }
944
944
  function K(t) {
945
945
  return Ce({}, { value: t }).value;
946
946
  }
947
- const Ir = Object.assign || function(t) {
947
+ const Pr = Object.assign || function(t) {
948
948
  for (let e, r = 1; r < arguments.length; r++)
949
949
  for (let i in e = arguments[r], e)
950
- Object.prototype.hasOwnProperty.call(e, i) && E(t, i, e[i]);
950
+ Object.prototype.hasOwnProperty.call(e, i) && S(t, i, e[i]);
951
951
  return t;
952
952
  };
953
953
  function _() {
954
- return Ir.apply(this, arguments);
954
+ return Pr.apply(this, arguments);
955
955
  }
956
- function Je(t) {
956
+ function Ke(t) {
957
957
  return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
958
958
  }
959
- const Pr = "fcGroup", Tr = {
960
- name: Pr,
959
+ const Tr = "fcGroup", Br = {
960
+ name: Tr,
961
961
  props: {
962
962
  field: String,
963
963
  rule: [Array, Object],
@@ -1261,8 +1261,8 @@ const Pr = "fcGroup", Tr = {
1261
1261
  class: "_fc-group " + (s ? "_fc-group-disabled" : "")
1262
1262
  }, [n]);
1263
1263
  }
1264
- }, Br = "fcSubForm", Lr = {
1265
- name: Br,
1264
+ }, Lr = "fcSubForm", Mr = {
1265
+ name: Lr,
1266
1266
  props: {
1267
1267
  rule: Array,
1268
1268
  options: Object,
@@ -1345,15 +1345,15 @@ const Pr = "fcGroup", Tr = {
1345
1345
  }
1346
1346
  }]));
1347
1347
  }
1348
- }, Mr = [
1349
- Cr,
1350
- Fr,
1351
- kr,
1348
+ }, Nr = [
1349
+ wr,
1350
+ Or,
1352
1351
  Sr,
1353
- Dr,
1354
- Vr,
1355
- Tr,
1356
- Lr
1352
+ Rr,
1353
+ jr,
1354
+ Ir,
1355
+ Br,
1356
+ Mr
1357
1357
  ];
1358
1358
  function se(t, e) {
1359
1359
  var r = null;
@@ -1365,8 +1365,8 @@ function be(t) {
1365
1365
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1366
1366
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1367
1367
  }
1368
- const Ot = ["attrs", "props", "domProps", "scopedSlots"], kt = ["class", "style", "directives"], Et = ["on", "nativeOn", "hook"], ee = (t, e = {}, r = {}) => {
1369
- const i = [...Ot, ...r.normal || []], s = [...kt, ...r.array || []], n = [...Et, ...r.functional || []], o = r.props || [];
1368
+ const kt = ["attrs", "props", "domProps", "scopedSlots"], St = ["class", "style", "directives"], Et = ["on", "nativeOn", "hook"], ee = (t, e = {}, r = {}) => {
1369
+ const i = [...kt, ...r.normal || []], s = [...St, ...r.array || []], n = [...Et, ...r.functional || []], o = r.props || [];
1370
1370
  return t.reduce((a, l) => {
1371
1371
  for (const u in l)
1372
1372
  if (a[u])
@@ -1386,32 +1386,32 @@ const Ot = ["attrs", "props", "domProps", "scopedSlots"], kt = ["class", "style"
1386
1386
  a[u][f] = l[u][f];
1387
1387
  else if (u === "hook")
1388
1388
  for (let f in l[u])
1389
- a[u][f] ? a[u][f] = Nr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1389
+ a[u][f] ? a[u][f] = qr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1390
1390
  else
1391
1391
  a[u] = l[u];
1392
1392
  else
1393
1393
  i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = v({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? v({}, l[u]) : l[u] : a[u] = l[u];
1394
1394
  return a;
1395
1395
  }, e);
1396
- }, Nr = (t, e) => function() {
1396
+ }, qr = (t, e) => function() {
1397
1397
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1398
- }, St = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], Qe = ["validate", "children", "control"], Ye = ["effect", "deep", "renderSlots"];
1399
- function Rt() {
1400
- return [...St, ...Ot, ...kt, ...Et, ...Qe, ...Ye];
1398
+ }, Rt = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], Ye = ["validate", "children", "control"], et = ["effect", "deep", "renderSlots"];
1399
+ function Dt() {
1400
+ return [...Rt, ...kt, ...St, ...Et, ...Ye, ...et];
1401
1401
  }
1402
- function Dt(t, e, r) {
1402
+ function jt(t, e, r) {
1403
1403
  return `[form-create ${t}]: ${e}`;
1404
1404
  }
1405
- function et(t, e) {
1406
- console.error(Dt("err", t));
1405
+ function tt(t, e) {
1406
+ console.error(jt("err", t));
1407
1407
  }
1408
- function qr(t) {
1409
- et(t.toString()), console.error(t);
1408
+ function Ur(t) {
1409
+ tt(t.toString()), console.error(t);
1410
1410
  }
1411
- function jt(t) {
1411
+ function At(t) {
1412
1412
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1413
1413
  }
1414
- const Ke = "[[FORM-CREATE-PREFIX-", We = "-FORM-CREATE-SUFFIX]]";
1414
+ const We = "[[FORM-CREATE-PREFIX-", ze = "-FORM-CREATE-SUFFIX]]";
1415
1415
  function _e(t, e) {
1416
1416
  return JSON.stringify(Ce(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1417
1417
  if (!(i && i._isVue === !0)) {
@@ -1420,19 +1420,19 @@ function _e(t, e) {
1420
1420
  if (i.__json)
1421
1421
  return i.__json;
1422
1422
  if (i.__origin && (i = i.__origin), !i.__emit)
1423
- return Ke + i + We;
1423
+ return We + i + ze;
1424
1424
  }
1425
1425
  }, e);
1426
1426
  }
1427
- function Be(t) {
1427
+ function Le(t) {
1428
1428
  return new Function("return " + t)();
1429
1429
  }
1430
1430
  function x(t, e) {
1431
1431
  if (t && h.String(t) && t.length > 4) {
1432
1432
  let r = t.trim(), i = !1;
1433
1433
  try {
1434
- if (r.indexOf(We) > 0 && r.indexOf(Ke) === 0)
1435
- r = r.replace(We, "").replace(Ke, ""), i = !0;
1434
+ if (r.indexOf(ze) > 0 && r.indexOf(We) === 0)
1435
+ r = r.replace(ze, "").replace(We, ""), i = !0;
1436
1436
  else if (r.indexOf("$FN:") === 0)
1437
1437
  r = r.substring(4), i = !0;
1438
1438
  else if (r.indexOf("$EXEC:") === 0)
@@ -1446,19 +1446,21 @@ function x(t, e) {
1446
1446
  }, r.__json = t, r.__inject = !0, r;
1447
1447
  } else {
1448
1448
  if (r.indexOf("$FNX:") === 0)
1449
- return r = Be("function($inject){" + r.substring(5) + "}"), r.__json = t, r.__inject = !0, r;
1449
+ return r = Le(`function($inject){
1450
+ ` + r.substring(5) + `
1451
+ }`), r.__json = t, r.__inject = !0, r;
1450
1452
  (!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
1451
1453
  }
1452
1454
  if (!i) return t;
1453
1455
  let s;
1454
1456
  try {
1455
- s = Be(r);
1457
+ s = Le(r);
1456
1458
  } catch (n) {
1457
- s = Be("function " + r);
1459
+ s = Le("function " + r);
1458
1460
  }
1459
1461
  return s.__json = t, s;
1460
1462
  } catch (s) {
1461
- et(`解析失败:${r}
1463
+ tt(`解析失败:${r}
1462
1464
 
1463
1465
  err: ${s}`);
1464
1466
  return;
@@ -1466,23 +1468,23 @@ err: ${s}`);
1466
1468
  }
1467
1469
  return t;
1468
1470
  }
1469
- function At(t, e) {
1471
+ function Vt(t, e) {
1470
1472
  return JSON.parse(t, function(r, i) {
1471
1473
  return h.Undef(i) || !i.indexOf ? i : x(i, e);
1472
1474
  });
1473
1475
  }
1474
- let Ur = 0;
1475
- function Ae() {
1476
- const t = 370 + ++Ur;
1476
+ let Hr = 0;
1477
+ function Ve() {
1478
+ const t = 370 + ++Hr;
1477
1479
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1478
1480
  }
1479
1481
  function oe(t, e, r) {
1480
1482
  let i = t, s;
1481
1483
  return (e || "").split(".").forEach((n) => {
1482
- s && ((!i[s] || typeof i[s] != "object") && E(i, s, {}), i = i[s]), s = n;
1483
- }), E(i, s, r), i;
1484
+ s && ((!i[s] || typeof i[s] != "object") && S(i, s, {}), i = i[s]), s = n;
1485
+ }), S(i, s, r), i;
1484
1486
  }
1485
- function ze(t, e) {
1487
+ function xe(t, e) {
1486
1488
  return {
1487
1489
  value: t,
1488
1490
  enumerable: !1,
@@ -1490,25 +1492,25 @@ function ze(t, e) {
1490
1492
  writable: !!e
1491
1493
  };
1492
1494
  }
1493
- function Vt(t, e) {
1494
- return It([t], e || !1)[0];
1495
- }
1496
1495
  function It(t, e) {
1496
+ return Pt([t], e || !1)[0];
1497
+ }
1498
+ function Pt(t, e) {
1497
1499
  return Ce([], [...t], e || !1);
1498
1500
  }
1499
1501
  function te(t, e) {
1500
- return ee(Array.isArray(e) ? e : [e], t, { array: Qe, normal: Ye }), t;
1502
+ return ee(Array.isArray(e) ? e : [e], t, { array: Ye, normal: et }), t;
1501
1503
  }
1502
- function ct(t) {
1504
+ function ht(t) {
1503
1505
  const e = h.Function(t.getRule) ? t.getRule() : t;
1504
1506
  return e.type || (e.type = "input"), e;
1505
1507
  }
1506
- function Hr(t, e) {
1508
+ function Gr(t, e) {
1507
1509
  return t ? (Object.keys(e || {}).forEach((r) => {
1508
1510
  e[r] && (t[r] = te(t[r] || {}, e[r]));
1509
1511
  }), t) : e;
1510
1512
  }
1511
- function Pt(t, e) {
1513
+ function Tt(t, e) {
1512
1514
  Object.defineProperties(t, Object.keys(e).reduce((r, i) => (r[i] = {
1513
1515
  get() {
1514
1516
  return e[i]();
@@ -1522,26 +1524,26 @@ function F(t, e) {
1522
1524
  try {
1523
1525
  e = t();
1524
1526
  } catch (r) {
1525
- qr(r);
1527
+ Ur(r);
1526
1528
  }
1527
1529
  return e;
1528
1530
  }
1529
- function xe(t, e) {
1531
+ function Xe(t, e) {
1530
1532
  let r = null;
1531
- return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => xe(i, e)) : r = t, r && e && H(r).forEach((i) => {
1533
+ return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Xe(i, e)) : r = t, r && e && H(r).forEach((i) => {
1532
1534
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1533
1535
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1534
1536
  });
1535
1537
  }), r;
1536
1538
  }
1537
- function Gr(t, e) {
1539
+ function Jr(t, e) {
1538
1540
  if (h.Object(t)) {
1539
1541
  const r = {};
1540
1542
  return Object.keys(t).forEach((i) => {
1541
- r[i] = xe(t[i], i);
1543
+ r[i] = Xe(t[i], i);
1542
1544
  }), r;
1543
1545
  } else
1544
- return xe(t, e);
1546
+ return Xe(t, e);
1545
1547
  }
1546
1548
  function ke() {
1547
1549
  const t = {}, e = (r) => r || "default";
@@ -1559,7 +1561,7 @@ function ke() {
1559
1561
  const n = s();
1560
1562
  Array.isArray(n) ? i.push(...n) : i.push(n);
1561
1563
  } else h.Undef(s) || i.push(s);
1562
- }), Gr(i, r);
1564
+ }), Jr(i, r);
1563
1565
  },
1564
1566
  getSlots() {
1565
1567
  let r = [];
@@ -1579,18 +1581,18 @@ function ke() {
1579
1581
  }
1580
1582
  };
1581
1583
  }
1582
- function Ee(t, e) {
1584
+ function Se(t, e) {
1583
1585
  return Object.setPrototypeOf(t, e), t;
1584
1586
  }
1585
- const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, fe = {
1586
- "==": (t, e) => JSON.stringify(t) === JSON.stringify(ht(t, e)),
1587
+ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, fe = {
1588
+ "==": (t, e) => JSON.stringify(t) === JSON.stringify(dt(t, e)),
1587
1589
  "!=": (t, e) => !fe["=="](t, e),
1588
1590
  ">": (t, e) => t > e,
1589
1591
  ">=": (t, e) => t >= e,
1590
1592
  "<": (t, e) => t < e,
1591
1593
  "<=": (t, e) => t <= e,
1592
1594
  on(t, e) {
1593
- return t && t.indexOf && t.indexOf(ht(t[0], e)) > -1;
1595
+ return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
1594
1596
  },
1595
1597
  notOn(t, e) {
1596
1598
  return !fe.on(t, e);
@@ -1622,7 +1624,7 @@ function B(t, e) {
1622
1624
  t != null && (t = t[r]);
1623
1625
  }), t;
1624
1626
  }
1625
- function Jr(t) {
1627
+ function Kr(t) {
1626
1628
  const e = /{{\s*(.*?)\s*}}/g;
1627
1629
  let r;
1628
1630
  const i = {};
@@ -1630,21 +1632,21 @@ function Jr(t) {
1630
1632
  r[1] && (i[r[1]] = !0);
1631
1633
  return Object.keys(i);
1632
1634
  }
1633
- function dt(t) {
1635
+ function pt(t) {
1634
1636
  let e = t.split("."), r = [], i = "";
1635
1637
  return e.forEach((s, n) => {
1636
1638
  n === 0 ? i = s : i += "." + s, r.push(i);
1637
1639
  }), r.join(" && ");
1638
1640
  }
1639
- const Re = (t, e) => {
1641
+ const De = (t, e) => {
1640
1642
  if (!(!t || t === e || !t.$props)) {
1641
1643
  if (t.$props.formCreateInject)
1642
1644
  return t.$props.formCreateInject;
1643
1645
  if (t.$parent)
1644
- return Re(t.$parent, e);
1646
+ return De(t.$parent, e);
1645
1647
  }
1646
1648
  };
1647
- function Kr(t, e, r) {
1649
+ function Wr(t, e, r) {
1648
1650
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1649
1651
  return {
1650
1652
  name: i,
@@ -1695,49 +1697,49 @@ function Kr(t, e, r) {
1695
1697
  return this.fc.render();
1696
1698
  },
1697
1699
  setup(s) {
1698
- const n = or().proxy;
1699
- ar("parentFC", n);
1700
- const o = lr("parentFC", null);
1700
+ const n = ar().proxy;
1701
+ lr("parentFC", n);
1702
+ const o = ur("parentFC", null);
1701
1703
  let a = o;
1702
1704
  if (o)
1703
1705
  for (; a.parent; )
1704
1706
  a = a.parent;
1705
1707
  else
1706
1708
  a = n;
1707
- const { rule: l, value: u, subForm: f, inFor: d } = lt(s), g = ne({
1709
+ const { rule: l, value: u, subForm: f, inFor: d } = ut(s), g = ne({
1708
1710
  ctxInject: {},
1709
1711
  destroyed: !1,
1710
1712
  isShow: !0,
1711
1713
  unique: 1,
1712
1714
  renderRule: [...l.value || []],
1713
1715
  updateValue: JSON.stringify(u.value || {})
1714
- }), m = new t(n), $ = m.api(), w = d.value, O = () => {
1716
+ }), m = new t(n), y = m.api(), w = d.value, O = () => {
1715
1717
  if (o) {
1716
- const k = Re(n, o);
1718
+ const k = De(n, o);
1717
1719
  if (k) {
1718
- let S;
1719
- w ? (S = H(k.getSubForm()), S.push($)) : S = $, k.subForm(S);
1720
+ let E;
1721
+ w ? (E = H(k.getSubForm()), E.push(y)) : E = y, k.subForm(E);
1720
1722
  }
1721
1723
  }
1722
1724
  }, G = () => {
1723
- const k = Re(n, o);
1725
+ const k = De(n, o);
1724
1726
  if (k)
1725
1727
  if (w) {
1726
- const S = H(k.getSubForm()), N = S.indexOf($);
1727
- N > -1 && S.splice(N, 1);
1728
+ const E = H(k.getSubForm()), N = E.indexOf(y);
1729
+ N > -1 && E.splice(N, 1);
1728
1730
  } else
1729
1731
  k.subForm();
1730
1732
  };
1731
1733
  let T = null;
1732
- ur(() => {
1734
+ fr(() => {
1733
1735
  L(() => {
1734
1736
  let k = "";
1735
- const S = s.option && s.option.globalClass || {};
1736
- Object.keys(S).forEach((N) => {
1737
+ const E = s.option && s.option.globalClass || {};
1738
+ Object.keys(E).forEach((N) => {
1737
1739
  let pe = "";
1738
- S[N].style && Object.keys(S[N].style).forEach((W) => {
1739
- pe += be(W) + ":" + S[N].style[W] + ";";
1740
- }), S[N].content && (pe += S[N].content + ";"), pe && (k += `.${N}{${pe}}`);
1740
+ E[N].style && Object.keys(E[N].style).forEach((W) => {
1741
+ pe += be(W) + ":" + E[N].style[W] + ";";
1742
+ }), E[N].content && (pe += E[N].content + ";"), pe && (k += `.${N}{${pe}}`);
1741
1743
  }), s.option && s.option.style && (k += s.option.style), T || (T = document.createElement("style"), T.type = "text/css", document.head.appendChild(T)), T.innerHTML = k || "";
1742
1744
  }, () => {
1743
1745
  });
@@ -1746,40 +1748,40 @@ function Kr(t, e, r) {
1746
1748
  m.bus.$emit("$loadData.$topForm");
1747
1749
  }, 100), he = se(function() {
1748
1750
  m.bus.$emit("$loadData.$scopeForm");
1749
- }, 100), Ve = se(() => {
1751
+ }, 100), Ie = se(() => {
1750
1752
  m.bus.$emit("$loadData.$form");
1751
1753
  }, 100), de = (k) => {
1752
1754
  m.bus.$emit("change-$form." + k);
1753
1755
  };
1754
- return fr(() => {
1755
- o && ($.top.bus.$on("$loadData.$form", M), $.top.bus.$on("change", de)), $ !== $.scope && $.scope.bus.$on("$loadData.$scopeForm", he), m.mounted();
1756
- }), cr(() => {
1757
- o && ($.top.bus.$off("$loadData.$form", M), $.top.bus.$off("change", de)), $ !== $.scope && $.scope.bus.$off("$loadData.$scopeForm", he), T && document.head.removeChild(T), G(), g.destroyed = !0, m.unmount();
1756
+ return cr(() => {
1757
+ o && (y.top.bus.$on("$loadData.$form", M), y.top.bus.$on("change", de)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", he), m.mounted();
1758
1758
  }), hr(() => {
1759
+ o && (y.top.bus.$off("$loadData.$form", M), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), T && document.head.removeChild(T), G(), g.destroyed = !0, m.unmount();
1760
+ }), dr(() => {
1759
1761
  m.updated();
1760
1762
  }), L(f, (k) => {
1761
1763
  k ? O() : G();
1762
1764
  }, { immediate: !0 }), L(() => s.option, () => {
1763
- m.initOptions(), $.refresh();
1765
+ m.initOptions(), y.refresh();
1764
1766
  }, { deep: !0 }), L(() => [...l.value], (k) => {
1765
- m.$handle.isBreakWatch() || k.length === g.renderRule.length && k.every((S) => g.renderRule.indexOf(S) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1767
+ m.$handle.isBreakWatch() || k.length === g.renderRule.length && k.every((E) => g.renderRule.indexOf(E) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1766
1768
  }), L(() => [s.disabled, s.preview], () => {
1767
- $.refresh();
1769
+ y.refresh();
1768
1770
  }), L(u, (k) => {
1769
- _e(k || {}) !== g.updateValue && ($.config.forceCoverValue ? $.coverValue(k || {}) : $.setValue(k || {}));
1771
+ _e(k || {}) !== g.updateValue && (y.config.forceCoverValue ? y.coverValue(k || {}) : y.setValue(k || {}));
1770
1772
  }, { deep: !0, flush: "post" }), L(() => s.index, () => {
1771
- $.coverValue({}), m.$handle.updateAppendData(), I(() => {
1773
+ y.coverValue({}), m.$handle.updateAppendData(), I(() => {
1772
1774
  I(() => {
1773
- $.clearValidateState();
1775
+ y.clearValidateState();
1774
1776
  });
1775
1777
  });
1776
1778
  }, { flush: "sync" }), q(v({
1777
1779
  fc: ge(m),
1778
1780
  parent: o && ge(o),
1779
1781
  top: ge(a),
1780
- fapi: ge($)
1781
- }, lt(g)), {
1782
- getGroupInject: () => Re(n, o),
1782
+ fapi: ge(y)
1783
+ }, ut(g)), {
1784
+ getGroupInject: () => De(n, o),
1783
1785
  refresh() {
1784
1786
  ++g.unique;
1785
1787
  },
@@ -1788,9 +1790,9 @@ function Kr(t, e, r) {
1788
1790
  },
1789
1791
  updateValue(k) {
1790
1792
  if (g.destroyed) return;
1791
- const S = _e(k);
1792
- g.updateValue !== S && (g.updateValue = S, n.$emit("update:value", k), I(() => {
1793
- Ve(), o ? f.value || he() : (M(), he());
1793
+ const E = _e(k);
1794
+ g.updateValue !== E && (g.updateValue = E, n.$emit("update:value", k), I(() => {
1795
+ Ie(), o ? f.value || he() : (M(), he());
1794
1796
  }));
1795
1797
  }
1796
1798
  });
@@ -1800,7 +1802,7 @@ function Kr(t, e, r) {
1800
1802
  }
1801
1803
  };
1802
1804
  }
1803
- function Tt() {
1805
+ function Bt() {
1804
1806
  return {
1805
1807
  props: {},
1806
1808
  on: {},
@@ -1814,55 +1816,55 @@ function Tt() {
1814
1816
  }
1815
1817
  function P(t, e) {
1816
1818
  return (r, i, s, n = {}) => {
1817
- const o = new tt(t, r, i, s, n);
1819
+ const o = new rt(t, r, i, s, n);
1818
1820
  return e && (h.Function(e) ? e(o) : o.props(e)), o;
1819
1821
  };
1820
1822
  }
1821
- function tt(t, e, r, i, s) {
1822
- this._data = _(Tt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1823
+ function rt(t, e, r, i, s) {
1824
+ this._data = _(Bt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1823
1825
  }
1824
- _(tt.prototype, {
1826
+ _(rt.prototype, {
1825
1827
  getRule() {
1826
1828
  return this._data;
1827
1829
  },
1828
1830
  setProp(t, e) {
1829
- return E(this._data, t, e), this;
1831
+ return S(this._data, t, e), this;
1830
1832
  },
1831
1833
  _clone() {
1832
1834
  const t = new this.constructor();
1833
- return t._data = Vt(this._data), t;
1835
+ return t._data = It(this._data), t;
1834
1836
  }
1835
1837
  });
1836
- function Bt(t) {
1838
+ function Lt(t) {
1837
1839
  t.forEach((e) => {
1838
- tt.prototype[e] = function(r) {
1840
+ rt.prototype[e] = function(r) {
1839
1841
  return te(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1840
1842
  };
1841
1843
  });
1842
1844
  }
1843
- Bt(Rt());
1844
- const Lt = P("");
1845
- function Wr(t, e, r) {
1846
- let i = Lt("", e);
1845
+ Lt(Dt());
1846
+ const Mt = P("");
1847
+ function zr(t, e, r) {
1848
+ let i = Mt("", e);
1847
1849
  return i._data.type = t, i._data.title = r, i;
1848
1850
  }
1849
- function pt(t, e, r, i) {
1850
- let s = Lt("", r);
1851
+ function mt(t, e, r, i) {
1852
+ let s = Mt("", r);
1851
1853
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1852
1854
  }
1853
- function zr() {
1855
+ function xr() {
1854
1856
  return {
1855
- create: Wr,
1856
- createTmp: pt,
1857
- template: pt,
1857
+ create: zr,
1858
+ createTmp: mt,
1859
+ template: mt,
1858
1860
  factory: P
1859
1861
  };
1860
1862
  }
1861
- function xr(t, e, r) {
1863
+ function Xr(t, e, r) {
1862
1864
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1863
1865
  return s.status = r.status, s.url = t, s;
1864
1866
  }
1865
- function mt(t) {
1867
+ function gt(t) {
1866
1868
  const e = t.responseText || t.response;
1867
1869
  if (!e)
1868
1870
  return e;
@@ -1872,7 +1874,7 @@ function mt(t) {
1872
1874
  return e;
1873
1875
  }
1874
1876
  }
1875
- function Mt(t) {
1877
+ function Nt(t) {
1876
1878
  if (typeof XMLHttpRequest == "undefined")
1877
1879
  return;
1878
1880
  const e = new XMLHttpRequest();
@@ -1887,8 +1889,8 @@ function Mt(t) {
1887
1889
  t.onError(o);
1888
1890
  }, e.onload = function() {
1889
1891
  if (e.status < 200 || e.status >= 300)
1890
- return t.onError(xr(r, t, e), mt(e));
1891
- t.onSuccess(mt(e));
1892
+ return t.onError(Xr(r, t, e), gt(e));
1893
+ t.onSuccess(gt(e));
1892
1894
  }, e.open(t.method || "get", r, !0);
1893
1895
  let i;
1894
1896
  (t.data || t.file) && (t.file || (t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data || {}).map((n) => {
@@ -1899,9 +1901,9 @@ function Mt(t) {
1899
1901
  s[n] != null && e.setRequestHeader(n, s[n]);
1900
1902
  }), e.send(i);
1901
1903
  }
1902
- function gt(t, e, r) {
1904
+ function yt(t, e, r) {
1903
1905
  return new Promise((i, s) => {
1904
- (e || Mt)(q(v({}, t), {
1906
+ (e || Nt)(q(v({}, t), {
1905
1907
  onSuccess(n) {
1906
1908
  let o = (l) => l;
1907
1909
  const a = x(t.parse);
@@ -1916,7 +1918,7 @@ function gt(t, e, r) {
1916
1918
  function ve(t) {
1917
1919
  return K(t);
1918
1920
  }
1919
- function Xr(t) {
1921
+ function Zr(t) {
1920
1922
  function e(n) {
1921
1923
  return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1922
1924
  }
@@ -1924,7 +1926,7 @@ function Xr(t) {
1924
1926
  h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1925
1927
  const u = t.fieldCtx[l] || t.nameCtx[l];
1926
1928
  u && u.forEach((f) => {
1927
- E(f.rule, o, a), t.$render.clearCache(f);
1929
+ S(f.rule, o, a), t.$render.clearCache(f);
1928
1930
  });
1929
1931
  });
1930
1932
  }
@@ -2094,7 +2096,7 @@ function Xr(t) {
2094
2096
  disabled(n, o) {
2095
2097
  e(o).forEach((a) => {
2096
2098
  t.getCtxs(a).forEach((l) => {
2097
- E(l.rule.props, "disabled", !!n);
2099
+ S(l.rule.props, "disabled", !!n);
2098
2100
  });
2099
2101
  }), t.refresh();
2100
2102
  },
@@ -2152,7 +2154,7 @@ function Xr(t) {
2152
2154
  t.$manager.updateOptions(t.options), s.refresh();
2153
2155
  },
2154
2156
  hideForm: (n) => {
2155
- E(t.vm, "isShow", !n);
2157
+ S(t.vm, "isShow", !n);
2156
2158
  },
2157
2159
  changeStatus: () => t.changeStatus,
2158
2160
  clearChangeStatus: () => {
@@ -2197,7 +2199,7 @@ function Xr(t) {
2197
2199
  },
2198
2200
  setEffect(n, o, a) {
2199
2201
  const l = t.getCtx(n);
2200
- l && o && (o[0] === "$" && (o = o.substr(1)), D(l.rule, "$" + o) && E(l.rule, "$" + o, a), D(l.rule, "effect") || E(l.rule, "effect", {}), E(l.rule.effect, o, a));
2202
+ l && o && (o[0] === "$" && (o = o.substr(1)), D(l.rule, "$" + o) && S(l.rule, "$" + o, a), D(l.rule, "effect") || S(l.rule, "effect", {}), S(l.rule.effect, o, a));
2201
2203
  },
2202
2204
  clearEffectData(n, o) {
2203
2205
  const a = t.getCtx(n);
@@ -2230,7 +2232,7 @@ function Xr(t) {
2230
2232
  method(n, o) {
2231
2233
  const a = s.el(n);
2232
2234
  if (!a || !a[o])
2233
- throw new Error(Dt("err", `${o} 方法不存在`));
2235
+ throw new Error(jt("err", `${o} 方法不存在`));
2234
2236
  return (...l) => a[o](...l);
2235
2237
  },
2236
2238
  exec(n, o, ...a) {
@@ -2324,7 +2326,7 @@ function Xr(t) {
2324
2326
  bus: t.bus,
2325
2327
  fetch(n) {
2326
2328
  return new Promise((o, a) => {
2327
- n = K(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => gt(n, t.fc.create.fetch, s).then((l) => {
2329
+ n = K(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((l) => {
2328
2330
  F(() => n.onSuccess && n.onSuccess(l)), o(l);
2329
2331
  }).catch((l) => {
2330
2332
  F(() => n.onError && n.onError(l)), a(l);
@@ -2335,7 +2337,7 @@ function Xr(t) {
2335
2337
  watchFetch(n, o, a, l) {
2336
2338
  return t.fc.watchLoadData((u, f) => {
2337
2339
  let d = K(n);
2338
- d = t.loadFetchVar(d, u), !(l && l(d, f) === !1) && t.beforeFetch(d).then(() => gt(d, t.fc.create.fetch, s).then((g) => {
2340
+ d = t.loadFetchVar(d, u), !(l && l(d, f) === !1) && t.beforeFetch(d).then(() => yt(d, t.fc.create.fetch, s).then((g) => {
2339
2341
  F(() => d.onSuccess && d.onSuccess(g)), o && o(g, f);
2340
2342
  }).catch((g) => {
2341
2343
  F(() => d.onError && d.onError(g)), a && a(g);
@@ -2369,7 +2371,7 @@ function Xr(t) {
2369
2371
  };
2370
2372
  }), s.changeValue = s.changeField = s.setValue, s;
2371
2373
  }
2372
- function Zr(t) {
2374
+ function Qr(t) {
2373
2375
  _(t.prototype, {
2374
2376
  initCache() {
2375
2377
  this.clearCacheAll();
@@ -2405,12 +2407,12 @@ function J(t) {
2405
2407
  const e = t.replace(/(-[a-z])/g, function(r) {
2406
2408
  return r.replace("-", "").toLocaleUpperCase();
2407
2409
  });
2408
- return Nt(e);
2410
+ return qt(e);
2409
2411
  }
2410
- function Nt(t) {
2412
+ function qt(t) {
2411
2413
  return t.replace(t[0], t[0].toLowerCase());
2412
2414
  }
2413
- function Qr(t) {
2415
+ function Yr(t) {
2414
2416
  _(t.prototype, {
2415
2417
  initRender() {
2416
2418
  this.cacheConfig = {};
@@ -2492,20 +2494,20 @@ function Qr(t) {
2492
2494
  l.length && i.slotUpdate && F(() => i.slotUpdate(u));
2493
2495
  let f = [];
2494
2496
  const d = e.loadChildrenPending();
2495
- e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach(($) => {
2497
+ e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach((y) => {
2496
2498
  f.push(this.renderRule({
2497
2499
  type: "template",
2498
- slot: $
2500
+ slot: y
2499
2501
  }, (() => {
2500
- if (h.Function(n.renderSlots[$]))
2501
- return F(() => n.renderSlots[$]());
2502
- const w = this.parseSide(n.renderSlots[$], e);
2502
+ if (h.Function(n.renderSlots[y]))
2503
+ return F(() => n.renderSlots[y]());
2504
+ const w = this.parseSide(n.renderSlots[y], e);
2503
2505
  return this.renderRule(w);
2504
2506
  })()));
2505
2507
  });
2506
2508
  const g = this.getTypeSlot(e);
2507
2509
  let m;
2508
- return g ? (u.children = f, m = g(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(($) => !$ || !$.tag ? $ : this.none($)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2510
+ return g ? (u.children = f, m = g(u)) : m = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), m = this.renderSides(m, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((y) => !y || !y.tag ? y : this.none(y)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2509
2511
  }, this.setCache(e, s, r);
2510
2512
  }
2511
2513
  return (...s) => {
@@ -2659,7 +2661,7 @@ function Qr(t) {
2659
2661
  },
2660
2662
  defaultRender(e, r) {
2661
2663
  const i = e.prop;
2662
- return i.component ? typeof i.component == "string" ? this.vNode.make(i.component, i, r) : this.vNode.makeComponent(i.component, i, r) : this.vNode[e.type] ? this.vNode[e.type](i, r) : this.vNode[e.originType] ? this.vNode[e.originType](i, r) : this.vNode.make(Nt(i.type), i, r);
2664
+ return i.component ? typeof i.component == "string" ? this.vNode.make(i.component, i, r) : this.vNode.makeComponent(i.component, i, r) : this.vNode[e.type] ? this.vNode[e.type](i, r) : this.vNode[e.originType] ? this.vNode[e.originType](i, r) : this.vNode.make(qt(i.type), i, r);
2663
2665
  },
2664
2666
  createChildrenVnodes(e, r, i) {
2665
2667
  this.force = i !== !1, this.tmpInput = r;
@@ -2692,8 +2694,8 @@ function Qr(t) {
2692
2694
  }
2693
2695
  });
2694
2696
  }
2695
- let Yr = 1;
2696
- function rt(t) {
2697
+ let ei = 1;
2698
+ function it(t) {
2697
2699
  _(this, {
2698
2700
  $handle: t,
2699
2701
  fc: t.fc,
@@ -2702,8 +2704,8 @@ function rt(t) {
2702
2704
  vNode: new t.fc.CreateNode(t.vm),
2703
2705
  force: !1,
2704
2706
  tmpInput: null,
2705
- id: Yr++
2706
- }), Pt(this, {
2707
+ id: ei++
2708
+ }), Tt(this, {
2707
2709
  options() {
2708
2710
  return t.options;
2709
2711
  },
@@ -2712,9 +2714,9 @@ function rt(t) {
2712
2714
  }
2713
2715
  }), this.initCache(), this.initRender();
2714
2716
  }
2715
- Zr(rt);
2716
- Qr(rt);
2717
- function ei(t) {
2717
+ Qr(it);
2718
+ Yr(it);
2719
+ function ti(t) {
2718
2720
  _(t.prototype, {
2719
2721
  parseInjectEvent(e, r) {
2720
2722
  const i = e.inject || this.options.injectEvent;
@@ -2744,14 +2746,14 @@ function ei(t) {
2744
2746
  let d, g = n || o || a;
2745
2747
  if (h.Object(f) && (d = f.inject, f = f.name, g = f.prefix || g), g) {
2746
2748
  r || (g = `native-${g}`);
2747
- const m = be(`${g}-${f}`), $ = (...w) => {
2749
+ const m = be(`${g}-${f}`), y = (...w) => {
2748
2750
  this.vm.$emit(m, ...w), this.vm.$emit("emit-event", m, ...w), this.bus.$emit(m, ...w);
2749
2751
  };
2750
- if ($.__emit = !0, !d && l === !1)
2751
- i[f] = $;
2752
+ if (y.__emit = !0, !d && l === !1)
2753
+ i[f] = y;
2752
2754
  else {
2753
2755
  let w = d || l || this.options.injectEvent;
2754
- i[f] = h.Undef(w) ? $ : this.inject(s, $, w);
2756
+ i[f] = h.Undef(w) ? y : this.inject(s, y, w);
2755
2757
  }
2756
2758
  }
2757
2759
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2781,7 +2783,7 @@ function ei(t) {
2781
2783
  },
2782
2784
  loadStrVar(e, r, i) {
2783
2785
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2784
- const s = e, n = Jr(e);
2786
+ const s = e, n = Kr(e);
2785
2787
  let o;
2786
2788
  if (n.forEach((a) => {
2787
2789
  const l = a.split("||"), u = l[0].trim();
@@ -2817,13 +2819,13 @@ function ei(t) {
2817
2819
  }
2818
2820
  });
2819
2821
  }
2820
- const yt = ["hook:updated", "hook:mounted"];
2821
- function ti(t) {
2822
+ const $t = ["hook:updated", "hook:mounted"];
2823
+ function ri(t) {
2822
2824
  _(t.prototype, {
2823
2825
  usePage() {
2824
2826
  const e = this.options.page;
2825
2827
  if (!e) return;
2826
- let r = 25, i = ri(this.rules);
2828
+ let r = 25, i = ii(this.rules);
2827
2829
  h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), _(this, {
2828
2830
  first: r,
2829
2831
  limit: i,
@@ -2832,16 +2834,16 @@ function ti(t) {
2832
2834
  },
2833
2835
  pageLoad() {
2834
2836
  const e = () => {
2835
- 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());
2837
+ 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());
2836
2838
  };
2837
- this.vm.$on(yt, e);
2839
+ this.vm.$on($t, e);
2838
2840
  }
2839
2841
  });
2840
2842
  }
2841
- function ri(t) {
2843
+ function ii(t) {
2842
2844
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2843
2845
  }
2844
- function ii(t) {
2846
+ function ni(t) {
2845
2847
  _(t.prototype, {
2846
2848
  clearNextTick() {
2847
2849
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
@@ -2856,15 +2858,15 @@ function ii(t) {
2856
2858
  }
2857
2859
  });
2858
2860
  }
2859
- function ni(t) {
2861
+ function si(t) {
2860
2862
  Object.defineProperties(t.origin, {
2861
- __fc__: ze(ge(t), !0)
2863
+ __fc__: xe(ge(t), !0)
2862
2864
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2863
- __fc__: ze(ge(t), !0)
2865
+ __fc__: xe(ge(t), !0)
2864
2866
  });
2865
2867
  }
2866
- function qt(t, e, r) {
2867
- const i = Ae(), s = !!e.field;
2868
+ function Ut(t, e, r) {
2869
+ const i = Ve(), s = !!e.field;
2868
2870
  _(this, {
2869
2871
  id: i,
2870
2872
  ref: i,
@@ -2891,9 +2893,9 @@ function qt(t, e, r) {
2891
2893
  exportEl: void 0,
2892
2894
  defaultValue: s ? K(r) : void 0,
2893
2895
  field: e.field || void 0
2894
- }), this.updateKey(), ni(this), this.update(t, !0);
2896
+ }), this.updateKey(), si(this), this.update(t, !0);
2895
2897
  }
2896
- _(qt.prototype, {
2898
+ _(Ut.prototype, {
2897
2899
  getParentGroup() {
2898
2900
  let t = this.parent;
2899
2901
  for (; t; ) {
@@ -2963,7 +2965,7 @@ _(qt.prototype, {
2963
2965
  t === void 0 ? this.payload = {} : delete this.payload[t];
2964
2966
  },
2965
2967
  updateKey(t) {
2966
- this.key = Ae(), t && this.parent && this.parent.updateKey(t);
2968
+ this.key = Ve(), t && this.parent && this.parent.updateKey(t);
2967
2969
  },
2968
2970
  updateType() {
2969
2971
  this.originType = this.rule.type, this.type = J(this.rule.type), this.trueType = this.$handle.getType(this.originType);
@@ -3040,7 +3042,7 @@ _(qt.prototype, {
3040
3042
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
3041
3043
  }
3042
3044
  });
3043
- function si(t) {
3045
+ function oi(t) {
3044
3046
  _(t.prototype, {
3045
3047
  nextRefresh(e) {
3046
3048
  const r = this.loadedId;
@@ -3049,10 +3051,10 @@ function si(t) {
3049
3051
  });
3050
3052
  },
3051
3053
  parseRule(e) {
3052
- const r = ct(e);
3054
+ const r = ht(e);
3053
3055
  return Object.defineProperties(r, {
3054
- __origin__: ze(e, !0)
3055
- }), oi(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3056
+ __origin__: xe(e, !0)
3057
+ }), ai(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3056
3058
  i && this.loadFn(i, r);
3057
3059
  }), this.loadCtrl(r), r.update && (r.update = x(r.update)), r;
3058
3060
  },
@@ -3099,30 +3101,30 @@ function si(t) {
3099
3101
  if (r && !h.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3100
3102
  if (o.__fc__ && o.__fc__.root === e && this.ctxs[o.__fc__.id])
3101
3103
  return s(o.__fc__.loadChildrenPending(), o.__fc__), o.__fc__;
3102
- let l = ct(o);
3104
+ let l = ht(o);
3103
3105
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3104
3106
  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);
3105
3107
  let f, d = !1, g = !!o.__fc__, m = l.value;
3106
3108
  if (g) {
3107
3109
  if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3108
- if ($t(f))
3110
+ if (bt(f))
3109
3111
  return;
3110
3112
  f.update(this);
3111
3113
  } else if (!f.check(this)) {
3112
- if ($t(f))
3114
+ if (bt(f))
3113
3115
  return;
3114
- e[a] = o = o._clone ? o._clone() : At(_e(o)), f = null, d = !0;
3116
+ e[a] = o = o._clone ? o._clone() : Vt(_e(o)), f = null, d = !0;
3115
3117
  }
3116
3118
  }
3117
3119
  if (f)
3118
3120
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3119
3121
  else {
3120
3122
  const O = this.parseRule(o);
3121
- f = new qt(this, O, m), this.bindParser(f);
3123
+ f = new Ut(this, O, m), this.bindParser(f);
3122
3124
  }
3123
3125
  [!1, !0].forEach((O) => this.parseEmit(f, O)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !d && !g && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3124
- const $ = f.loadChildrenPending();
3125
- if (f.parser.loadChildren === !1 || s($, f), !r) {
3126
+ const y = f.loadChildrenPending();
3127
+ if (f.parser.loadChildren === !1 || s(y, f), !r) {
3126
3128
  const O = i(a);
3127
3129
  O > -1 || !a ? this.sort.splice(O + 1, 0, f.id) : this.sort.push(f.id);
3128
3130
  }
@@ -3137,7 +3139,7 @@ function si(t) {
3137
3139
  return e.input && e.rule.control && this.useCtrl(e);
3138
3140
  },
3139
3141
  useCtrl(e) {
3140
- const r = ai(e), i = [], s = this.api;
3142
+ const r = li(e), i = [], s = this.api;
3141
3143
  if (!r.length) return !1;
3142
3144
  for (let a = 0; a < r.length; a++) {
3143
3145
  const l = r[a], u = l.handle || function(d) {
@@ -3146,7 +3148,7 @@ function si(t) {
3146
3148
  if (!h.trueArray(l.rule)) continue;
3147
3149
  const f = q(v({}, l), {
3148
3150
  valid: F(() => u(e.rule.value, s)),
3149
- ctrl: li(e, l.rule),
3151
+ ctrl: ui(e, l.rule),
3150
3152
  isHidden: h.String(l.rule[0])
3151
3153
  });
3152
3154
  f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || i.push(f);
@@ -3155,16 +3157,16 @@ function si(t) {
3155
3157
  const n = [];
3156
3158
  let o = !1;
3157
3159
  return this.deferSyncValue(() => {
3158
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: g, ctrl: m, method: $ }) => {
3160
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: g, ctrl: m, method: y }) => {
3159
3161
  if (a) {
3160
3162
  l ? e.ctrlRule.push({
3161
3163
  __ctrl: !0,
3162
3164
  children: u,
3163
3165
  valid: l
3164
3166
  }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3165
- $ === "disabled" || $ === "enabled" ? this.api.disabled(!l, u) : $ === "display" || $ === "show" ? this.api.display(l, u) : $ === "required" ? (u.forEach((w) => {
3167
+ y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((w) => {
3166
3168
  this.api.setEffect(w, "required", l);
3167
- }), l || this.api.clearValidateState(u)) : $ === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3169
+ }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3168
3170
  });
3169
3171
  return;
3170
3172
  }
@@ -3209,27 +3211,27 @@ function si(t) {
3209
3211
  }
3210
3212
  });
3211
3213
  }
3212
- function oi(t) {
3213
- const e = Tt();
3214
+ function ai(t) {
3215
+ const e = Bt();
3214
3216
  return Object.keys(e).forEach((r) => {
3215
- D(t, r) || E(t, r, e[r]);
3217
+ D(t, r) || S(t, r, e[r]);
3216
3218
  }), t;
3217
3219
  }
3218
- function ai(t) {
3220
+ function li(t) {
3219
3221
  const e = t.rule.control || [];
3220
3222
  return h.Object(e) ? [e] : e;
3221
3223
  }
3222
- function li(t, e) {
3224
+ function ui(t, e) {
3223
3225
  for (let r = 0; r < t.ctrlRule.length; r++) {
3224
3226
  const i = t.ctrlRule[r];
3225
3227
  if (i.children === e)
3226
3228
  return i;
3227
3229
  }
3228
3230
  }
3229
- function $t(t) {
3231
+ function bt(t) {
3230
3232
  return !!t.rule.__ctrl;
3231
3233
  }
3232
- function ui(t) {
3234
+ function fi(t) {
3233
3235
  _(t.prototype, {
3234
3236
  setValue(e, r, i, s) {
3235
3237
  e.deleted || (e.rule.value = r, this.changeStatus = !0, this.nextRefresh(), this.$render.clearCache(e), this.setFormData(e, i), this.syncValue(), this.valueChange(e, r), this.vm.$emit("change", e.field, r, e.origin, this.api, s || !1), this.effect(e, "value"), this.targetHook(e, "value", { value: r }), this.emitEvent("change", e.field, r, {
@@ -3262,7 +3264,7 @@ function ui(t) {
3262
3264
  setFormData(e, r) {
3263
3265
  e.modelValue = r;
3264
3266
  const i = e.getParentGroup();
3265
- i && (this.subRuleData[i.id] || E(this.subRuleData, i.id, {}), E(this.subRuleData[i.id], e.field, e.rule.value)), E(this.formData, e.id, r);
3267
+ i && (this.subRuleData[i.id] || S(this.subRuleData, i.id, {}), S(this.subRuleData[i.id], e.field, e.rule.value)), S(this.formData, e.id, r);
3266
3268
  },
3267
3269
  rmSubRuleData(e) {
3268
3270
  const r = e.getParentGroup();
@@ -3273,9 +3275,9 @@ function ui(t) {
3273
3275
  },
3274
3276
  syncForm() {
3275
3277
  const e = {}, r = this.fields(), i = [];
3276
- 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) => {
3278
+ this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Ae(this.appendData, n)), s), e), r.reduce((s, n) => {
3277
3279
  const o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a.rule))[0] || this.fieldCtx[n][0];
3278
- return this.isIgnore(o.rule) && i.push(n), s[n] = je(o.rule, "value"), s;
3280
+ return this.isIgnore(o.rule) && i.push(n), s[n] = Ae(o.rule, "value"), s;
3279
3281
  }, e), this.form = ne(e), this.ignoreFields = i, this.syncValue();
3280
3282
  },
3281
3283
  isIgnore(e) {
@@ -3299,7 +3301,7 @@ function ui(t) {
3299
3301
  }), this.vm.updateValue(e);
3300
3302
  },
3301
3303
  isChange(e, r) {
3302
- return JSON.stringify(this.getFormData(e), bt) !== JSON.stringify(r, bt);
3304
+ return JSON.stringify(this.getFormData(e), vt) !== JSON.stringify(r, vt);
3303
3305
  },
3304
3306
  isQuote(e, r) {
3305
3307
  return (r instanceof Function || h.Object(r) || Array.isArray(r)) && r === e.rule.value;
@@ -3332,10 +3334,10 @@ function ui(t) {
3332
3334
  }
3333
3335
  });
3334
3336
  }
3335
- function bt(t, e) {
3337
+ function vt(t, e) {
3336
3338
  return typeof e == "function" ? "" + e : e;
3337
3339
  }
3338
- const De = {
3340
+ const je = {
3339
3341
  init(t) {
3340
3342
  },
3341
3343
  toFormValue(t, e) {
@@ -3354,8 +3356,8 @@ const De = {
3354
3356
  },
3355
3357
  mergeProp(t) {
3356
3358
  }
3357
- }, fi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"];
3358
- function ci(t) {
3359
+ }, ci = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Ee = Symbol("oldValue");
3360
+ function hi(t) {
3359
3361
  _(t.prototype, {
3360
3362
  getCtx(e) {
3361
3363
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
@@ -3390,7 +3392,7 @@ function ci(t) {
3390
3392
  if (n)
3391
3393
  return n;
3392
3394
  }
3393
- return r[e.originType] || r[J(e.type)] || r[e.trueType] || De;
3395
+ return r[e.originType] || r[J(e.type)] || r[e.trueType] || je;
3394
3396
  },
3395
3397
  bindParser(e) {
3396
3398
  e.setParser(this.getParser(e));
@@ -3403,8 +3405,8 @@ function ci(t) {
3403
3405
  this.noWatchFn || (this.noWatchFn = e), F(e), this.noWatchFn === e && (this.noWatchFn = null);
3404
3406
  },
3405
3407
  watchCtx(e) {
3406
- if (Rt().filter((i) => i[0] !== "_" && i[0] !== "$" && fi.indexOf(i) === -1).forEach((i) => {
3407
- const s = je(e.rule, i), n = i === "children";
3408
+ if (Dt().filter((i) => i[0] !== "_" && i[0] !== "$" && ci.indexOf(i) === -1).forEach((i) => {
3409
+ const s = Ae(e.rule, i), n = i === "children";
3408
3410
  e.refRule[i] = s, e.watch.push(L(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3409
3411
  let l = s.value;
3410
3412
  if (!this.isBreakWatch()) {
@@ -3471,7 +3473,7 @@ function ci(t) {
3471
3473
  return n;
3472
3474
  });
3473
3475
  }), e.input) {
3474
- const i = je(e.rule, "value");
3476
+ const i = Ae(e.rule, "value");
3475
3477
  e.watch.push(L(() => i.value, () => {
3476
3478
  let s = e.parser.toFormValue(i.value, e);
3477
3479
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3480,20 +3482,19 @@ function ci(t) {
3480
3482
  this.bus.$once("load-end", () => {
3481
3483
  let i = e.rule.computed;
3482
3484
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3483
- let n;
3484
- const o = ye(() => {
3485
- const l = i[s];
3486
- if (!l) return;
3487
- const u = this.compute(e, l);
3488
- return l.linkage && u === void 0 ? n : u;
3489
- }), a = (l) => {
3490
- s === "value" ? this.onInput(e, l) : s[0] === "$" ? this.api.setEffect(e.id, s, l) : oe(e.rule, s, l);
3485
+ const n = ye(() => {
3486
+ const a = i[s];
3487
+ if (!a) return;
3488
+ const l = this.compute(e, a);
3489
+ return a.linkage && l === Ee ? Ee : l;
3490
+ }), o = (a) => {
3491
+ s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : oe(e.rule, s, a);
3491
3492
  };
3492
- (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : o.value !== B(e.rule, s)) && a(o.value), e.watch.push(L(o, (l) => {
3493
- n = l, setTimeout(() => {
3494
- a(l);
3493
+ (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : n.value !== B(e.rule, s)) && o(n.value), e.watch.push(L(n, (a, l) => {
3494
+ a === Ee || a === l || setTimeout(() => {
3495
+ o(a);
3495
3496
  });
3496
- }));
3497
+ }, { deep: !0 }));
3497
3498
  }));
3498
3499
  }), this.watchEffect(e);
3499
3500
  },
@@ -3507,7 +3508,7 @@ function ci(t) {
3507
3508
  }))) === !1)
3508
3509
  n();
3509
3510
  else {
3510
- const a = this.validator(s, e);
3511
+ const a = this.validator(r, s, e);
3511
3512
  if (a) {
3512
3513
  let l = "";
3513
3514
  typeof e.error == "object" && (l = e.error[a] || e.error.default), !l && typeof e.message == "string" && (l = e.message), l || (l = this.getValidateMessage(r, { key: a, rule: e[a] })), n(l);
@@ -3532,36 +3533,36 @@ function ci(t) {
3532
3533
  title: (n = (s = e.refRule) == null ? void 0 : s.__$title) == null ? void 0 : n.value
3533
3534
  });
3534
3535
  },
3535
- validator(e, r) {
3536
- if (h.empty(e))
3537
- return r.required ? "required" : void 0;
3538
- for (const [s, n] of Object.entries(r))
3539
- switch (s) {
3536
+ validator(e, r, i) {
3537
+ if (h.empty(r))
3538
+ return i.required ? "required" : void 0;
3539
+ for (const [n, o] of Object.entries(i))
3540
+ switch (n) {
3540
3541
  case "len":
3541
3542
  case "maxLen":
3542
3543
  case "minLen":
3543
- const o = (m) => s === "len" ? m === n : s === "maxLen" ? m <= n : m >= n;
3544
- if (Array.isArray(e)) {
3545
- if (!o(e.length))
3546
- return s;
3544
+ const a = (y) => n === "len" ? y === o : n === "maxLen" ? y <= o : y >= o;
3545
+ if (Array.isArray(r)) {
3546
+ if (!a(r.length))
3547
+ return n;
3547
3548
  } else {
3548
- if (typeof e == "object")
3549
- return s;
3550
- if (!o(("" + e).length))
3551
- return s;
3549
+ if (typeof r == "object")
3550
+ return n;
3551
+ if (!a(("" + r).length))
3552
+ return n;
3552
3553
  }
3553
3554
  break;
3554
3555
  case "pattern":
3555
- if (!(typeof n == "string" ? new RegExp(n) : n).test("" + e))
3556
- return s;
3556
+ if (!(typeof o == "string" ? new RegExp(o) : o).test("" + r))
3557
+ return n;
3557
3558
  break;
3558
3559
  case "uppercase":
3559
- if (n && (typeof e != "string" || !/^[A-Z]*$/.test(e)))
3560
- return s;
3560
+ if (o && (typeof r != "string" || !/^[A-Z]*$/.test(r)))
3561
+ return n;
3561
3562
  break;
3562
3563
  case "lowercase":
3563
- if (n && (typeof e != "string" || !/^[a-z]*$/.test(e)))
3564
- return s;
3564
+ if (o && (typeof r != "string" || !/^[a-z]*$/.test(r)))
3565
+ return n;
3565
3566
  break;
3566
3567
  case "min":
3567
3568
  case "max":
@@ -3569,40 +3570,44 @@ function ci(t) {
3569
3570
  case "negative":
3570
3571
  case "integer":
3571
3572
  case "number":
3572
- const l = Number(e);
3573
- if (Number.isNaN(l) || s === "min" && l < n || s === "max" && l > n || s === "positive" && l <= 0 || s === "negative" && l >= 0 || s === "integer" && !Number.isInteger(l))
3574
- return s;
3573
+ const u = Number(r);
3574
+ if (Number.isNaN(u) || n === "min" && u < o || n === "max" && u > o || n === "positive" && u <= 0 || n === "negative" && u >= 0 || n === "integer" && !Number.isInteger(u))
3575
+ return n;
3575
3576
  break;
3576
3577
  case "equal":
3577
- if (e !== n)
3578
- return s;
3578
+ if (r !== o)
3579
+ return n;
3579
3580
  break;
3580
3581
  case "enum":
3581
- if (Array.isArray(n) && !n.includes(e))
3582
- return s;
3582
+ if (Array.isArray(o) && !o.includes(r))
3583
+ return n;
3583
3584
  break;
3584
3585
  case "hasKeys":
3585
- if (typeof e != "object" || Array.isArray(n) && n.some((m) => !(m in e)))
3586
- return s;
3586
+ if (typeof r != "object" || Array.isArray(o) && o.some((y) => !(y in r)))
3587
+ return n;
3587
3588
  break;
3588
3589
  case "email":
3589
- if (!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test("" + e))
3590
- return s;
3590
+ if (!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test("" + r))
3591
+ return n;
3591
3592
  break;
3592
3593
  case "url":
3593
3594
  if (!new RegExp(
3594
3595
  "^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
3595
3596
  "i"
3596
- ).test("" + e))
3597
- return s;
3597
+ ).test("" + r))
3598
+ return n;
3598
3599
  break;
3599
3600
  case "ip":
3600
- if (!/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/.test("" + e))
3601
- return s;
3601
+ if (!/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/.test("" + r))
3602
+ return n;
3602
3603
  break;
3603
3604
  case "phone":
3604
- if (!/^(?:(?:\+|00)86)?1[3-9]\d{9}$/.test("" + e))
3605
- return s;
3605
+ if (!/^(?:(?:\+|00)86)?1[3-9]\d{9}$/.test("" + r))
3606
+ return n;
3607
+ break;
3608
+ case "computed":
3609
+ if (!this.compute(e, o))
3610
+ return n;
3606
3611
  break;
3607
3612
  }
3608
3613
  },
@@ -3620,18 +3625,18 @@ function ci(t) {
3620
3625
  if (d.variable)
3621
3626
  m = JSON.stringify(this.fc.getLoadData(d.variable) || "");
3622
3627
  else if (d.field)
3623
- m = dt(d.field || "");
3628
+ m = pt(d.field || "");
3624
3629
  else if (!d.mode)
3625
3630
  return !0;
3626
- let $ = d.compare;
3627
- if ($ && ($ = dt($ || "")), d.mode ? g = n(d) : fe[d.condition] ? h.Function(d.handler) ? g = F(() => d.handler(this.api, e.rule)) : g = F(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${m}, ${$ || "$val"}); }}}}`).call(this.api.form, fe, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : g = !1, l && g)
3631
+ let y = d.compare;
3632
+ if (y && (y = pt(y || "")), d.mode ? g = n(d) : fe[d.condition] ? h.Function(d.handler) ? g = F(() => d.handler(this.api, e.rule)) : g = F(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${m}, ${y || "$val"}); }}}}`).call(this.api.form, fe, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : g = !1, l && g)
3628
3633
  return !0;
3629
3634
  l || (u = u && g);
3630
3635
  }
3631
3636
  return l ? !1 : u;
3632
3637
  };
3633
3638
  let o = n(r);
3634
- return o = r.invert === !0 ? !o : o, r.linkage ? o ? F(() => this.computeValue(r.linkage, e, s), void 0) : void 0 : o;
3639
+ return o = r.invert === !0 ? !o : o, r.linkage ? o ? F(() => this.computeValue(r.linkage, e, s), void 0) : Ee : o;
3635
3640
  } else if (h.Function(r))
3636
3641
  i = () => r(this.api.form, this.api);
3637
3642
  else {
@@ -3682,7 +3687,7 @@ function ci(t) {
3682
3687
  }
3683
3688
  });
3684
3689
  }
3685
- function hi(t) {
3690
+ function di(t) {
3686
3691
  _(t.prototype, {
3687
3692
  mounted() {
3688
3693
  const e = () => {
@@ -3710,13 +3715,13 @@ function hi(t) {
3710
3715
  }
3711
3716
  });
3712
3717
  }
3713
- function di(t) {
3718
+ function pi(t) {
3714
3719
  _(t.prototype, {
3715
3720
  useProvider() {
3716
3721
  const e = this.fc.providers;
3717
3722
  Object.keys(e).forEach((r) => {
3718
3723
  let i = e[r];
3719
- h.Function(i) && (i = i(this.fc)), i._c = mi(i), this.onEffect(i), this.providers[r] = i;
3724
+ h.Function(i) && (i = i(this.fc)), i._c = gi(i), this.onEffect(i), this.providers[r] = i;
3720
3725
  });
3721
3726
  },
3722
3727
  onEffect(e) {
@@ -3786,20 +3791,20 @@ function di(t) {
3786
3791
  }
3787
3792
  });
3788
3793
  }
3789
- function pi(t) {
3794
+ function mi(t) {
3790
3795
  return t.filter(function(e, r, i) {
3791
3796
  return i.indexOf(e, 0) === r;
3792
3797
  });
3793
3798
  }
3794
- function mi(t) {
3799
+ function gi(t) {
3795
3800
  const e = t.components;
3796
3801
  if (Array.isArray(e)) {
3797
- const r = pi(e.filter((i) => i !== "*"));
3802
+ const r = mi(e.filter((i) => i !== "*"));
3798
3803
  return r.length ? r : !1;
3799
3804
  } else return h.String(e) ? [e] : !1;
3800
3805
  }
3801
3806
  function X(t) {
3802
- Pt(this, {
3807
+ Tt(this, {
3803
3808
  options() {
3804
3809
  return t.options.value || {};
3805
3810
  },
@@ -3833,10 +3838,10 @@ function X(t) {
3833
3838
  nextReload: () => {
3834
3839
  this.lifecycle("reload");
3835
3840
  }
3836
- }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3841
+ }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
3837
3842
  const i = F(() => r(e, this));
3838
3843
  return i && i !== e && _(e, i), e;
3839
- }, Xr(this));
3844
+ }, Zr(this));
3840
3845
  }
3841
3846
  _(X.prototype, {
3842
3847
  initData(t) {
@@ -3876,26 +3881,26 @@ _(X.prototype, {
3876
3881
  });
3877
3882
  }
3878
3883
  });
3879
- ei(X);
3880
3884
  ti(X);
3881
- ii(X);
3882
- si(X);
3883
- ui(X);
3884
- ci(X);
3885
+ ri(X);
3886
+ ni(X);
3887
+ oi(X);
3888
+ fi(X);
3885
3889
  hi(X);
3886
3890
  di(X);
3887
- const gi = "fcFragment", Le = {
3888
- name: gi,
3891
+ pi(X);
3892
+ const yi = "fcFragment", Me = {
3893
+ name: yi,
3889
3894
  functional: !0,
3890
3895
  props: ["vnode"],
3891
3896
  render(t, e) {
3892
3897
  return e.props.vnode ? e.props.vnode : e.children;
3893
3898
  }
3894
3899
  };
3895
- function yi(t) {
3900
+ function $i(t) {
3896
3901
  return h.String(t) ? { domProps: { innerHTML: t } } : t;
3897
3902
  }
3898
- function $i() {
3903
+ function bi() {
3899
3904
  const t = {};
3900
3905
  function e(r) {
3901
3906
  r && this.setVm(r);
@@ -3910,7 +3915,7 @@ function $i() {
3910
3915
  },
3911
3916
  makeComponent(r, i, s) {
3912
3917
  var o;
3913
- let n = this.$h(r, yi(i), s || []);
3918
+ let n = this.$h(r, $i(i), s || []);
3914
3919
  if ((o = n == null ? void 0 : n.componentOptions) != null && o.propsData && (i != null && i.props)) {
3915
3920
  const a = Object.keys(n.componentOptions.propsData);
3916
3921
  n.data.attrs || (n.data.attrs = {}), Object.keys(i.props).forEach((l) => {
@@ -3927,7 +3932,7 @@ function $i() {
3927
3932
  },
3928
3933
  use(r) {
3929
3934
  Object.keys(r).forEach((i) => {
3930
- const s = be(i), n = jt(i).toLocaleLowerCase(), o = r[i];
3935
+ const s = be(i), n = At(i).toLocaleLowerCase(), o = r[i];
3931
3936
  [i, s, n].forEach((a) => {
3932
3937
  e.alias(i, o), e.prototype[a] = function(l, u) {
3933
3938
  return this.make(o, l, u);
@@ -3937,12 +3942,12 @@ function $i() {
3937
3942
  }
3938
3943
  }), e;
3939
3944
  }
3940
- function bi(t) {
3941
- class e extends Ut {
3945
+ function vi(t) {
3946
+ class e extends Ht {
3942
3947
  }
3943
3948
  return Object.assign(e.prototype, t), e;
3944
3949
  }
3945
- function Ut(t) {
3950
+ function Ht(t) {
3946
3951
  _(this, {
3947
3952
  $handle: t,
3948
3953
  vm: t.vm,
@@ -3953,12 +3958,12 @@ function Ut(t) {
3953
3958
  }
3954
3959
  }), this.updateKey(), this.init();
3955
3960
  }
3956
- _(Ut.prototype, {
3961
+ _(Ht.prototype, {
3957
3962
  __init() {
3958
3963
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
3959
3964
  },
3960
3965
  updateKey() {
3961
- this.key = Ae();
3966
+ this.key = Ve();
3962
3967
  },
3963
3968
  //TODO interface
3964
3969
  init() {
@@ -4001,7 +4006,7 @@ _(Ut.prototype, {
4001
4006
  render(t) {
4002
4007
  }
4003
4008
  });
4004
- const vi = function(t) {
4009
+ const _i = function(t) {
4005
4010
  const e = {
4006
4011
  name: "loadData",
4007
4012
  _fn: [],
@@ -4013,9 +4018,11 @@ const vi = function(t) {
4013
4018
  if (a && (a.attr || a.template)) {
4014
4019
  let l = (d) => {
4015
4020
  let g;
4016
- a.template ? g = t.$handle.loadStrVar(a.template, d) : a.handler && h.Function(a.handler) ? g = a.handler(d, i, s) : g = d(a.attr, a.default), a.copy !== !1 && (g = K(g));
4017
- const m = a.modify ? i : r.getProp();
4018
- a.to === "child" ? m.children ? E(m.children, 0, g) : E(m, "children", [g]) : oe(m, a.to || "options", g), s.sync(i);
4021
+ i && i.__fc__ && (g = i.__fc__.getParentGroup());
4022
+ let m;
4023
+ a.template ? m = t.$handle.loadStrVar(a.template, d, g ? { rule: i, value: t.$handle.subRuleData[g.id] || {} } : null) : a.handler && h.Function(a.handler) ? m = a.handler(d, i, s) : m = t.$handle.loadStrVar(`{{${a.attr}}}`, d, g ? { rule: i, value: t.$handle.subRuleData[g.id] || {} } : null), (m == null || m === "") && a.default != null && (m = a.default), a.copy !== !1 && (m = K(m));
4024
+ const y = a.modify ? i : r.getProp();
4025
+ a.to === "child" ? y.children ? S(y.children, 0, m) : S(y, "children", [m]) : oe(y, a.to || "options", m), s.sync(i);
4019
4026
  }, u = (d) => l(d);
4020
4027
  const f = t.watchLoadData(u);
4021
4028
  l = se(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
@@ -4030,7 +4037,7 @@ const vi = function(t) {
4030
4037
  }
4031
4038
  };
4032
4039
  return e.watch = e.loaded, e;
4033
- }, _i = function(t) {
4040
+ }, Ci = function(t) {
4034
4041
  const e = {
4035
4042
  name: "t",
4036
4043
  _fn: [],
@@ -4043,9 +4050,9 @@ const vi = function(t) {
4043
4050
  if (l) {
4044
4051
  const u = typeof l == "object";
4045
4052
  let f = (m) => {
4046
- let $ = t.t(u ? l.attr : l, u ? l.params : null, m);
4053
+ let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4047
4054
  const w = u && l.modify ? i : r.getProp();
4048
- a === "child" ? w.children ? E(w.children, 0, $) : E(w, "children", [$]) : oe(w, a, $), s.sync(i);
4055
+ a === "child" ? w.children ? S(w.children, 0, y) : S(w, "children", [y]) : oe(w, a, y), s.sync(i);
4049
4056
  }, d = (m) => f(m);
4050
4057
  const g = t.watchLoadData(d);
4051
4058
  f = se(f, l.wait || 300), l.watch !== !1 ? o.push(g) : g();
@@ -4059,7 +4066,7 @@ const vi = function(t) {
4059
4066
  }
4060
4067
  };
4061
4068
  return e.watch = e.loaded, e;
4062
- }, Ht = {
4069
+ }, Gt = {
4063
4070
  name: "componentValidate",
4064
4071
  load(t, e, r) {
4065
4072
  let i = t.getValue();
@@ -4082,9 +4089,9 @@ const vi = function(t) {
4082
4089
  }
4083
4090
  },
4084
4091
  watch(...t) {
4085
- Ht.load(...t);
4092
+ Gt.load(...t);
4086
4093
  }
4087
- }, Ci = function(t) {
4094
+ }, wi = function(t) {
4088
4095
  function e(s) {
4089
4096
  return h.String(s) && (s = {
4090
4097
  action: s,
@@ -4120,7 +4127,7 @@ const vi = function(t) {
4120
4127
  i._fn[s.id] = t.watchLoadData(se((d, g) => {
4121
4128
  if (g && a.watch === !1)
4122
4129
  return i._fn[s.id]();
4123
- const m = t.$handle.loadFetchVar(K(a), d, n), $ = q(v({
4130
+ const m = t.$handle.loadFetchVar(K(a), d, n), y = q(v({
4124
4131
  headers: {}
4125
4132
  }, m), {
4126
4133
  onSuccess(w, O) {
@@ -4130,19 +4137,19 @@ const vi = function(t) {
4130
4137
  h.Function(T) ? G = T : T && h.String(T) && (G = (M) => B(M, T)), l(G(w, n, o));
4131
4138
  },
4132
4139
  onError(w) {
4133
- l(void 0), !f() && (u || ((O) => et(O.message || "fetch fail " + m.action)))(w, n, o);
4140
+ l(void 0), !f() && (u || ((O) => tt(O.message || "fetch fail " + m.action)))(w, n, o);
4134
4141
  }
4135
4142
  });
4136
- t.$handle.beforeFetch($, { rule: n, api: o }).then(() => {
4143
+ t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4137
4144
  if (h.Function(m.action)) {
4138
4145
  m.action(n, o).then((w) => {
4139
- $.onSuccess(w, !0);
4146
+ y.onSuccess(w, !0);
4140
4147
  }).catch((w) => {
4141
- $.onError(w);
4148
+ y.onError(w);
4142
4149
  });
4143
4150
  return;
4144
4151
  }
4145
- F(() => t.create.fetch($, { inject: s, rule: n, api: o }));
4152
+ F(() => t.create.fetch(y, { inject: s, rule: n, api: o }));
4146
4153
  }).catch((w) => {
4147
4154
  });
4148
4155
  }, a.wait || 600));
@@ -4161,13 +4168,13 @@ const vi = function(t) {
4161
4168
  }
4162
4169
  };
4163
4170
  return i;
4164
- }, wi = {
4165
- fetch: Ci,
4166
- loadData: vi,
4167
- t: _i,
4168
- componentValidate: Ht
4171
+ }, Fi = {
4172
+ fetch: wi,
4173
+ loadData: _i,
4174
+ t: Ci,
4175
+ componentValidate: Gt
4169
4176
  };
4170
- function Fi(t) {
4177
+ function Oi(t) {
4171
4178
  t = t || /* @__PURE__ */ new Map();
4172
4179
  const e = {
4173
4180
  $on(r, i) {
@@ -4191,8 +4198,8 @@ function Fi(t) {
4191
4198
  };
4192
4199
  return e;
4193
4200
  }
4194
- const Oi = "html", ki = {
4195
- name: Oi,
4201
+ const ki = "html", Si = {
4202
+ name: ki,
4196
4203
  loadChildren: !1,
4197
4204
  render(t, e) {
4198
4205
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
@@ -4219,7 +4226,7 @@ function Ei(t) {
4219
4226
  }
4220
4227
  return null;
4221
4228
  }
4222
- function Si(t) {
4229
+ function Ri(t) {
4223
4230
  const e = localStorage.getItem(t);
4224
4231
  if (e)
4225
4232
  try {
@@ -4229,7 +4236,7 @@ function Si(t) {
4229
4236
  }
4230
4237
  return null;
4231
4238
  }
4232
- function Ri(t) {
4239
+ function Di(t) {
4233
4240
  const e = sessionStorage.getItem(t);
4234
4241
  if (e)
4235
4242
  try {
@@ -4239,23 +4246,23 @@ function Ri(t) {
4239
4246
  }
4240
4247
  return null;
4241
4248
  }
4242
- function it(t, e) {
4249
+ function nt(t, e) {
4243
4250
  if (!e)
4244
4251
  return null;
4245
4252
  const r = e.split(".");
4246
4253
  let i = t(r.shift());
4247
4254
  return r.length ? i == null ? null : B(i, r) : i;
4248
4255
  }
4249
- function Di(t) {
4250
- return it(Ei, t);
4251
- }
4252
4256
  function ji(t) {
4253
- return it(Si, t);
4257
+ return nt(Ei, t);
4254
4258
  }
4255
4259
  function Ai(t) {
4256
- return it(Ri, t);
4260
+ return nt(Ri, t);
4261
+ }
4262
+ function Vi(t) {
4263
+ return nt(Di, t);
4257
4264
  }
4258
- const Vi = {
4265
+ const Ii = {
4259
4266
  en: {
4260
4267
  required: "{title} is required",
4261
4268
  validate: {
@@ -4305,17 +4312,17 @@ const Vi = {
4305
4312
  }
4306
4313
  }
4307
4314
  };
4308
- function Ii(t, e) {
4315
+ function Pi(t, e) {
4309
4316
  let r;
4310
4317
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4311
4318
  }
4312
- function Me() {
4313
- return Ii("name", ...arguments);
4319
+ function Ne() {
4320
+ return Pi("name", ...arguments);
4314
4321
  }
4315
- function Pi(t) {
4322
+ function Ti(t) {
4316
4323
  return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
4317
4324
  }
4318
- function Ti(t, e) {
4325
+ function Bi(t, e) {
4319
4326
  const r = new Vue({
4320
4327
  data() {
4321
4328
  return { rule: t, option: e || {} };
@@ -4326,27 +4333,27 @@ function Ti(t, e) {
4326
4333
  });
4327
4334
  return r.$mount(), r;
4328
4335
  }
4329
- function Bi(t) {
4336
+ function Li(t) {
4330
4337
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4331
- St.push(...e), Qe.push(...r), Ye.push(...i), Bt([...e, ...r, ...i]);
4338
+ Rt.push(...e), Ye.push(...r), et.push(...i), Lt([...e, ...r, ...i]);
4332
4339
  }
4333
- let Li = 1;
4334
- const U = {}, Se = Symbol("defValue");
4335
- function Gt(t) {
4340
+ let Mi = 1;
4341
+ const U = {}, Re = Symbol("defValue");
4342
+ function Jt(t) {
4336
4343
  const e = {
4337
- [Le.name]: Le
4344
+ [Me.name]: Me
4338
4345
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4339
4346
  t.extendApi
4340
- ], u = v({}, wi), f = zr();
4347
+ ], u = v({}, Fi), f = xr();
4341
4348
  let d = { global: {} };
4342
4349
  const g = t.isMobile === !0, m = ne({
4343
4350
  $mobile: g
4344
- }), $ = $i(), w = {}, O = {};
4345
- Bi(t.attrs || {});
4351
+ }), y = bi(), w = {}, O = {};
4352
+ Li(t.attrs || {});
4346
4353
  function G(c) {
4347
4354
  const p = U[c];
4348
4355
  if (Array.isArray(p))
4349
- return p.map((y) => y.api());
4356
+ return p.map(($) => $.api());
4350
4357
  if (p)
4351
4358
  return p.api();
4352
4359
  }
@@ -4354,51 +4361,51 @@ function Gt(t) {
4354
4361
  o.push(c);
4355
4362
  }
4356
4363
  function M() {
4357
- const c = Me(...arguments);
4364
+ const c = Ne(...arguments);
4358
4365
  c.id && c.prop && (i[c.id] = c.prop);
4359
4366
  }
4360
4367
  function he() {
4361
- const c = Me(...arguments);
4368
+ const c = Ne(...arguments);
4362
4369
  c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(v({}, c.prop), {
4363
4370
  name: c.id
4364
4371
  }));
4365
4372
  }
4366
- function Ve(c) {
4367
- $.use(c);
4373
+ function Ie(c) {
4374
+ y.use(c);
4368
4375
  }
4369
4376
  function de() {
4370
- const c = Me(...arguments);
4371
- if (!c.id || !c.prop) return De;
4372
- const p = J(c.id), y = c.prop, b = y.merge === !0 ? r[p] : void 0;
4373
- r[p] = Ee(y, b || De), f[p] = P(p), y.maker && _(f, y.maker);
4377
+ const c = Ne(...arguments);
4378
+ if (!c.id || !c.prop) return je;
4379
+ const p = J(c.id), $ = c.prop, b = $.merge === !0 ? r[p] : void 0;
4380
+ r[p] = Se($, b || je), f[p] = P(p), $.maker && _(f, $.maker);
4374
4381
  }
4375
4382
  function k(c, p) {
4376
- let y;
4383
+ let $;
4377
4384
  if (h.String(c)) {
4378
- if (y = c, p === void 0)
4379
- return ["form-create", "formcreate"].indexOf(y) > -1 ? S() : e[y];
4385
+ if ($ = c, p === void 0)
4386
+ return ["form-create", "formcreate"].indexOf($) > -1 ? E() : e[$];
4380
4387
  } else
4381
- y = J(c.name), p = c;
4382
- if (!y || !p) return;
4383
- const b = J(y);
4384
- e[y] = p, e[b] = p, delete $.aliasMap[y], delete $.aliasMap[b], delete r[y], delete r[b], p.formCreateParser && de(y, p.formCreateParser);
4388
+ $ = J(c.name), p = c;
4389
+ if (!$ || !p) return;
4390
+ const b = J($);
4391
+ e[$] = p, e[b] = p, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], p.formCreateParser && de($, p.formCreateParser);
4385
4392
  }
4386
- function S() {
4387
- return Kr(Pe, e, i);
4393
+ function E() {
4394
+ return Wr(Te, e, i);
4388
4395
  }
4389
4396
  function N() {
4390
- return Le;
4397
+ return Me;
4391
4398
  }
4392
4399
  function pe(c, p) {
4393
4400
  return h.Function(c.install) ? c.install(W, p) : h.Function(c) && c(W, p), this;
4394
4401
  }
4395
- function W(c, p, y) {
4396
- let b = Ti(c, p || {});
4402
+ function W(c, p, $) {
4403
+ let b = Bi(c, p || {});
4397
4404
  const C = b.$refs.fc.formCreate;
4398
- return C.$parent = y, Pi(C.options).appendChild(b.$el), C.api();
4405
+ return C.$parent = $, Ti(C.options).appendChild(b.$el), C.api();
4399
4406
  }
4400
- Ee(W, O);
4401
- function Kt(c) {
4407
+ Se(W, O);
4408
+ function Wt(c) {
4402
4409
  let p = v({}, t);
4403
4410
  return c ? p.inherit = {
4404
4411
  components: e,
@@ -4410,19 +4417,19 @@ function Gt(t) {
4410
4417
  maker: f,
4411
4418
  formulas: w,
4412
4419
  loadData: m
4413
- } : delete p.inherit, Gt(p);
4420
+ } : delete p.inherit, Jt(p);
4414
4421
  }
4415
- function Wt(c, p) {
4422
+ function zt(c, p) {
4416
4423
  s[c] = p;
4417
4424
  }
4418
- function zt(c, p) {
4425
+ function xt(c, p) {
4419
4426
  w[c] = p;
4420
4427
  }
4421
- function xt(c, p) {
4422
- const y = n[c] || {}, b = y.parsers || {};
4428
+ function Xt(c, p) {
4429
+ const $ = n[c] || {}, b = $.parsers || {};
4423
4430
  p.parsers && Object.keys(p.parsers).forEach((C) => {
4424
- b[C] = Ee(p.parsers[C], De);
4425
- }), p.name = c, n[c] = q(v(v({}, y), p), { parsers: b });
4431
+ b[C] = Se(p.parsers[C], je);
4432
+ }), p.name = c, n[c] = q(v(v({}, $), p), { parsers: b });
4426
4433
  }
4427
4434
  function we(c) {
4428
4435
  c && Object.keys(U).forEach((p) => {
@@ -4431,45 +4438,45 @@ function Gt(t) {
4431
4438
  });
4432
4439
  });
4433
4440
  }
4434
- function Ie(c, p) {
4441
+ function Pe(c, p) {
4435
4442
  oe(m, c, p), we(c);
4436
4443
  }
4437
4444
  function Fe(c, p) {
4438
- const y = (...b) => F(() => p(...b));
4439
- y._driver = !0, Ie(c, y);
4445
+ const $ = (...b) => F(() => p(...b));
4446
+ $._driver = !0, Pe(c, $);
4440
4447
  }
4441
- function nt(c, p) {
4442
- const y = (c || "").split(".");
4443
- c = y.shift();
4444
- const b = y.join(".");
4445
- if (D(m, c) || E(m, c, Se), m[c] !== Se) {
4448
+ function st(c, p) {
4449
+ const $ = (c || "").split(".");
4450
+ c = $.shift();
4451
+ const b = $.join(".");
4452
+ if (D(m, c) || S(m, c, Re), m[c] !== Re) {
4446
4453
  let C = m[c];
4447
- return C && C._driver ? C = C(b) : y.length && (C = B(C, y)), C == null || C === "" ? p : C;
4454
+ return C && C._driver ? C = C(b) : $.length && (C = B(C, $)), C == null || C === "" ? p : C;
4448
4455
  } else
4449
4456
  return p;
4450
4457
  }
4451
- function Xt(c) {
4458
+ function Zt(c) {
4452
4459
  l.push(c);
4453
4460
  }
4454
- function Zt(c) {
4461
+ function Qt(c) {
4455
4462
  delete m[c], we(c);
4456
4463
  }
4457
- function Qt(c, p) {
4464
+ function Yt(c, p) {
4458
4465
  a.push({ name: c, callback: p });
4459
4466
  }
4460
- function Pe(c) {
4467
+ function Te(c) {
4461
4468
  _(this, {
4462
- id: Li++,
4469
+ id: Mi++,
4463
4470
  create: W,
4464
4471
  vm: c,
4465
- manager: bi(t.manager),
4472
+ manager: vi(t.manager),
4466
4473
  parsers: r,
4467
4474
  providers: u,
4468
4475
  modelFields: s,
4469
4476
  formulas: w,
4470
4477
  isMobile: g,
4471
4478
  rules: c.$options.propsData.rule,
4472
- name: c.$options.propsData.name || Ae(),
4479
+ name: c.$options.propsData.name || Ve(),
4473
4480
  inFor: c.$options.propsData.inFor,
4474
4481
  prop: {
4475
4482
  components: e,
@@ -4480,10 +4487,10 @@ function Gt(t) {
4480
4487
  renderDriver: null,
4481
4488
  refreshData: we,
4482
4489
  loadData: m,
4483
- CreateNode: $,
4484
- bus: new Fi(),
4490
+ CreateNode: y,
4491
+ bus: new Oi(),
4485
4492
  unwatch: [],
4486
- options: dr({}),
4493
+ options: pr({}),
4487
4494
  extendApiFn: l,
4488
4495
  fetchCache: /* @__PURE__ */ new WeakMap(),
4489
4496
  tmpData: ne({})
@@ -4495,7 +4502,7 @@ function Gt(t) {
4495
4502
  }, { deep: !0 });
4496
4503
  }), _(c.$options.components, e), _(c.$options.directives, i), this.$handle = new X(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
4497
4504
  }
4498
- Pe.isMobile = g, _(Pe.prototype, {
4505
+ Te.isMobile = g, _(Te.prototype, {
4499
4506
  init() {
4500
4507
  this.isSub() && this.unwatch.push(L(() => this.vm.parent.fc.options.value, () => {
4501
4508
  this.initOptions(), this.$handle.api.refresh();
@@ -4505,8 +4512,8 @@ function Gt(t) {
4505
4512
  if (this.renderDriver && this.renderDriver[c])
4506
4513
  return F(() => this.renderDriver[c](...p));
4507
4514
  },
4508
- t(c, p, y) {
4509
- let b = y ? y("$t." + c) : this.globalLanguageDriver(c);
4515
+ t(c, p, $) {
4516
+ let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4510
4517
  return b == null && (b = ""), b && p && Object.keys(p).forEach((C) => {
4511
4518
  const j = new RegExp(`{${C}}`, "g");
4512
4519
  b = b.replace(j, p[C]);
@@ -4514,7 +4521,7 @@ function Gt(t) {
4514
4521
  },
4515
4522
  globalDataDriver(c) {
4516
4523
  let p = c.split(".");
4517
- const y = p.shift(), b = this.options.value.globalData && this.options.value.globalData[y];
4524
+ const $ = p.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4518
4525
  if (b) {
4519
4526
  if (b.type === "static")
4520
4527
  return B(b.data, p);
@@ -4530,9 +4537,9 @@ function Gt(t) {
4530
4537
  const R = se(() => {
4531
4538
  le();
4532
4539
  const z = this.fetchCache.get(b);
4533
- this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (z && (z.loading = !0, this.fetchCache.set(b, z)), this.bus.$emit("$loadData.$globalData." + y)) : this.fetchCache.delete(b);
4540
+ this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (z && (z.loading = !0, this.fetchCache.set(b, z)), this.bus.$emit("$loadData.$globalData." + $)) : this.fetchCache.delete(b);
4534
4541
  }, b.wait || 600), ae = (z) => {
4535
- this.fetchCache.set(b, { status: !0, data: z }), this.bus.$emit("$loadData.$globalData." + y);
4542
+ this.fetchCache.set(b, { status: !0, data: z }), this.bus.$emit("$loadData.$globalData." + $);
4536
4543
  }, Z = (z, ue) => {
4537
4544
  if (ue && b.watch === !1)
4538
4545
  return le();
@@ -4540,7 +4547,7 @@ function Gt(t) {
4540
4547
  R();
4541
4548
  return;
4542
4549
  }
4543
- const me = this.$handle.loadFetchVar(Je(b), z);
4550
+ const me = this.$handle.loadFetchVar(Ke(b), z);
4544
4551
  this.$handle.api.fetch(me).then((re) => {
4545
4552
  ae(re);
4546
4553
  }).catch((re) => {
@@ -4556,91 +4563,91 @@ function Gt(t) {
4556
4563
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4557
4564
  },
4558
4565
  globalLanguageDriver(c) {
4559
- let p = this.vm.top.$props.locale, y;
4560
- if (p && typeof p == "object" && (y = B(p, c)), y == null) {
4566
+ let p = this.vm.top.$props.locale, $;
4567
+ if (p && typeof p == "object" && ($ = B(p, c)), $ == null) {
4561
4568
  const b = this.options.value.language || {}, C = this.getLocale();
4562
- y = B(b[C] || {}, c), y == null && (y = B(Vi[C] || {}, c));
4569
+ $ = B(b[C] || {}, c), $ == null && ($ = B(Ii[C] || {}, c));
4563
4570
  }
4564
- return y;
4571
+ return $;
4565
4572
  },
4566
4573
  globalVarDriver(c) {
4567
4574
  let p = c.split(".");
4568
- const y = p.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[y];
4575
+ const $ = p.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4569
4576
  if (b) {
4570
4577
  const C = h.Function(b) ? b : x(b.handle);
4571
4578
  if (C) {
4572
4579
  let j;
4573
4580
  const R = this.watchLoadData((ae, Z) => {
4574
- Z ? (this.bus.$emit("$loadData.$var." + y), R()) : j = C(ae, this.$handle.api);
4581
+ Z ? (this.bus.$emit("$loadData.$var." + $), R()) : j = C(ae, this.$handle.api);
4575
4582
  });
4576
4583
  return this.unwatch.push(R), B(j, p);
4577
4584
  }
4578
4585
  }
4579
4586
  },
4580
- setData(c, p, y) {
4581
- y ? Ie(c, p) : (oe(this.vm.top.fc.tmpData, c, p), this.bus.$emit("$loadData." + c));
4587
+ setData(c, p, $) {
4588
+ $ ? Pe(c, p) : (oe(this.vm.top.fc.tmpData, c, p), this.bus.$emit("$loadData." + c));
4582
4589
  },
4583
4590
  getLoadData(c, p) {
4584
- let y = null;
4591
+ let $ = null;
4585
4592
  if (c != null) {
4586
4593
  let b = c.split(".");
4587
4594
  const C = b.shift();
4588
4595
  if (C === "$topForm")
4589
- y = this.$handle.api.top.formData(!0);
4596
+ $ = this.$handle.api.top.formData(!0);
4590
4597
  else if (C === "$scopeForm")
4591
- y = this.$handle.api.scope.formData(!0);
4598
+ $ = this.$handle.api.scope.formData(!0);
4592
4599
  else if (C === "$form")
4593
- y = this.$handle.api.formData(!0);
4600
+ $ = this.$handle.api.formData(!0);
4594
4601
  else if (C === "$options")
4595
- y = this.options.value;
4602
+ $ = this.options.value;
4596
4603
  else if (C === "$globalData")
4597
- y = this.globalDataDriver(b.join(".")), b = [];
4604
+ $ = this.globalDataDriver(b.join(".")), b = [];
4598
4605
  else if (C === "$var")
4599
- y = this.globalVarDriver(b.join(".")), b = [];
4606
+ $ = this.globalVarDriver(b.join(".")), b = [];
4600
4607
  else if (C === "$locale")
4601
- y = this.getLocale(), b = [];
4608
+ $ = this.getLocale(), b = [];
4602
4609
  else if (C === "$t")
4603
- y = this.globalLanguageDriver(b.join(".")), b = [];
4610
+ $ = this.globalLanguageDriver(b.join(".")), b = [];
4604
4611
  else {
4605
4612
  if (C === "$preview")
4606
4613
  return this.$handle.preview;
4607
4614
  {
4608
4615
  const j = this.vm.top.fc.tmpData;
4609
- D(j, C) || E(j, C, Se), y = j[C] !== Se ? B(j, c) : nt(c), b = [];
4616
+ D(j, C) || S(j, C, Re), $ = j[C] !== Re ? B(j, c) : st(c), b = [];
4610
4617
  }
4611
4618
  }
4612
- y && b.length && (y = B(y, b));
4619
+ $ && b.length && ($ = B($, b));
4613
4620
  }
4614
- return y == null || y === "" ? p : y;
4621
+ return $ == null || $ === "" ? p : $;
4615
4622
  },
4616
4623
  watchLoadData(c, p) {
4617
- let y = {};
4624
+ let $ = {};
4618
4625
  const b = (R) => {
4619
4626
  this.get || (this.get = C), F(() => {
4620
4627
  c(C, R);
4621
4628
  }), this.get === C && (this.get = void 0);
4622
4629
  }, C = (R, ae) => {
4623
4630
  let Z;
4624
- if (typeof R == "object" && (Z = R.getValue, R = R.id), y[R])
4625
- return y[R].val;
4631
+ if (typeof R == "object" && (Z = R.getValue, R = R.id), $[R])
4632
+ return $[R].val;
4626
4633
  const le = ye(() => Z ? Z() : this.getLoadData(R, ae)), z = R.split("."), ue = z.shift(), me = z.shift() || "", re = se(() => {
4627
- const Te = Z ? Z() : this.getLoadData(R, ae);
4628
- if (y[R])
4629
- JSON.stringify(Te) !== JSON.stringify(y[R].val) && (y[R].val = Te, b(!0));
4634
+ const Be = Z ? Z() : this.getLoadData(R, ae);
4635
+ if ($[R])
4636
+ JSON.stringify(Be) !== JSON.stringify($[R].val) && ($[R].val = Be, b(!0));
4630
4637
  else return;
4631
- }, p || 0), er = L(le, (Te) => {
4638
+ }, p || 0), tr = L(le, (Be) => {
4632
4639
  re();
4633
4640
  });
4634
- return this.bus.$on("$loadData." + ue, re), me && this.bus.$on("$loadData." + ue + "." + me, re), y[R] = {
4641
+ return this.bus.$on("$loadData." + ue, re), me && this.bus.$on("$loadData." + ue + "." + me, re), $[R] = {
4635
4642
  fn: () => {
4636
- this.bus.$off("$loadData." + ue, re), me && this.bus.$off("$loadData." + ue + "." + me, re), er();
4643
+ this.bus.$off("$loadData." + ue, re), me && this.bus.$off("$loadData." + ue + "." + me, re), tr();
4637
4644
  },
4638
4645
  val: le.value
4639
4646
  }, le.value;
4640
4647
  };
4641
4648
  b(!1);
4642
4649
  const j = () => {
4643
- Object.keys(y).forEach((R) => y[R].fn()), y = {};
4650
+ Object.keys($).forEach((R) => $[R].fn()), $ = {};
4644
4651
  };
4645
4652
  return this.unwatch.push(j), j;
4646
4653
  },
@@ -4658,10 +4665,10 @@ function Gt(t) {
4658
4665
  }, K(d));
4659
4666
  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);
4660
4667
  },
4661
- mergeOptions(c, p, y) {
4662
- return p = v({}, p || {}), y && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4668
+ mergeOptions(c, p, $) {
4669
+ return p = v({}, p || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4663
4670
  delete p[b];
4664
- }), p.global && (c.global = Hr(c.global, p.global), delete p.global), this.$handle.$manager.mergeOptions([p], c), c;
4671
+ }), p.global && (c.global = Gr(c.global, p.global), delete p.global), this.$handle.$manager.mergeOptions([p], c), c;
4665
4672
  },
4666
4673
  updateOptions(c) {
4667
4674
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4690,65 +4697,65 @@ function Gt(t) {
4690
4697
  this.$handle.bindNextTick(() => this.bus.$emit("next-tick", this.$handle.api));
4691
4698
  }
4692
4699
  });
4693
- function st(c) {
4700
+ function ot(c) {
4694
4701
  _(c, {
4695
4702
  version: t.version,
4696
4703
  ui: t.ui,
4697
4704
  isMobile: g,
4698
- extendApi: Xt,
4699
- getData: nt,
4705
+ extendApi: Zt,
4706
+ getData: st,
4700
4707
  setDataDriver: Fe,
4701
- setData: Ie,
4702
- removeData: Zt,
4708
+ setData: Pe,
4709
+ removeData: Qt,
4703
4710
  refreshData: we,
4704
4711
  maker: f,
4705
4712
  component: k,
4706
4713
  directive: M,
4707
- setModelField: Wt,
4708
- setFormula: zt,
4709
- setDriver: xt,
4714
+ setModelField: zt,
4715
+ setFormula: xt,
4716
+ setDriver: Xt,
4710
4717
  register: he,
4711
4718
  $vnode: N,
4712
4719
  parser: de,
4713
4720
  use: pe,
4714
- factory: Kt,
4715
- componentAlias: Ve,
4716
- copyRule: Vt,
4717
- copyRules: It,
4721
+ factory: Wt,
4722
+ componentAlias: Ie,
4723
+ copyRule: It,
4724
+ copyRules: Pt,
4718
4725
  mergeRule: te,
4719
- fetch: Mt,
4720
- $form: S,
4726
+ fetch: Nt,
4727
+ $form: E,
4721
4728
  parseFn: x,
4722
- parseJson: At,
4729
+ parseJson: Vt,
4723
4730
  toJson: _e,
4724
4731
  useApp: T,
4725
4732
  getApi: G,
4726
- on: Qt
4733
+ on: Yt
4727
4734
  });
4728
4735
  }
4729
- function Yt(c) {
4736
+ function er(c) {
4730
4737
  _(c, {
4731
4738
  create: W,
4732
- install(p, y) {
4733
- if (d = v(v({}, d), y || {}), p._installedFormCreate === !0) return;
4739
+ install(p, $) {
4740
+ if (d = v(v({}, d), $ || {}), p._installedFormCreate === !0) return;
4734
4741
  p._installedFormCreate = !0;
4735
4742
  const b = function(j, R = {}) {
4736
4743
  return W(j, R, this);
4737
4744
  };
4738
- st(b), p.prototype.$formCreate = b;
4739
- const C = S();
4745
+ ot(b), p.prototype.$formCreate = b;
4746
+ const C = E();
4740
4747
  p.component(C.name, C), p.component("FcFragment", N()), o.forEach((j) => {
4741
4748
  F(() => j(c, p));
4742
4749
  });
4743
4750
  }
4744
4751
  });
4745
4752
  }
4746
- if (st(O), Yt(O), Fe("$cookie", Di), Fe("$localStorage", ji), Fe("$sessionStorage", Ai), $.use({ fragment: "fcFragment" }), t.install && W.use(t), de(ki), t.inherit) {
4753
+ if (ot(O), er(O), Fe("$cookie", ji), Fe("$localStorage", Ai), Fe("$sessionStorage", Vi), y.use({ fragment: "fcFragment" }), t.install && W.use(t), de(Si), t.inherit) {
4747
4754
  const c = t.inherit;
4748
4755
  c.components && _(e, c.components), c.parsers && _(r, c.parsers), c.directives && _(i, c.directives), c.modelFields && _(s, c.modelFields), c.providers && _(u, c.providers), c.useApps && _(o, c.useApps), c.maker && _(f, c.maker), c.loadData && _(m, c.loadData), c.formulas && _(w, c.formulas);
4749
4756
  }
4750
- const Oe = S();
4751
- return Ee(Oe, O), Object.defineProperties(Oe, {
4757
+ const Oe = E();
4758
+ return Se(Oe, O), Object.defineProperties(Oe, {
4752
4759
  fetch: {
4753
4760
  get() {
4754
4761
  return O.fetch;
@@ -4759,7 +4766,7 @@ function Gt(t) {
4759
4766
  }
4760
4767
  }), Oe.util = O, Oe;
4761
4768
  }
4762
- const vt = {
4769
+ const _t = {
4763
4770
  date: "yyyy-MM-dd",
4764
4771
  month: "yyyy-MM",
4765
4772
  datetime: "yyyy-MM-dd HH:mm:ss",
@@ -4768,73 +4775,73 @@ const vt = {
4768
4775
  monthrange: "yyyy-MM",
4769
4776
  datetimerange: "yyyy-MM-dd HH:mm:ss",
4770
4777
  year: "yyyy"
4771
- }, _t = "datePicker", Mi = {
4772
- name: _t,
4778
+ }, Ct = "datePicker", Ni = {
4779
+ name: Ct,
4773
4780
  maker: function() {
4774
- return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = P(_t, { type: e.toLowerCase() }), t), {});
4781
+ return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = P(Ct, { type: e.toLowerCase() }), t), {});
4775
4782
  }(),
4776
4783
  mergeProp(t) {
4777
4784
  const e = t.prop.props;
4778
- e.valueFormat || (e.valueFormat = vt[e.type] || vt.date);
4785
+ e.valueFormat || (e.valueFormat = _t[e.type] || _t.date);
4779
4786
  }
4780
- }, Ne = "hidden", Ni = {
4781
- name: Ne,
4787
+ }, qe = "hidden", qi = {
4788
+ name: qe,
4782
4789
  maker: {
4783
- [Ne]: (t, e) => P(Ne)("", t, e)
4790
+ [qe]: (t, e) => P(qe)("", t, e)
4784
4791
  },
4785
4792
  render() {
4786
4793
  return [];
4787
4794
  }
4788
- }, qe = "input", qi = {
4789
- name: qe,
4795
+ }, Ue = "input", Ui = {
4796
+ name: Ue,
4790
4797
  maker: function() {
4791
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = P(qe, { type: r }), e), {});
4792
- return t.idate = P(qe, { type: "date" }), t;
4798
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = P(Ue, { type: r }), e), {});
4799
+ return t.idate = P(Ue, { type: "date" }), t;
4793
4800
  }(),
4794
4801
  mergeProp(t) {
4795
4802
  let { props: e } = t.prop;
4796
4803
  e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4797
4804
  }
4798
- }, Ct = "slider", Ui = {
4799
- name: Ct,
4805
+ }, wt = "slider", Hi = {
4806
+ name: wt,
4800
4807
  maker: {
4801
- sliderRange: P(Ct, { range: !0 })
4808
+ sliderRange: P(wt, { range: !0 })
4802
4809
  },
4803
4810
  toFormValue(t, e) {
4804
4811
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4805
4812
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4806
4813
  }
4807
- }, Ue = "timePicker", Hi = {
4808
- name: Ue,
4814
+ }, He = "timePicker", Gi = {
4815
+ name: He,
4809
4816
  maker: {
4810
- time: P(Ue, (t) => t.props.isRange = !1),
4811
- timeRange: P(Ue, (t) => t.props.isRange = !0)
4817
+ time: P(He, (t) => t.props.isRange = !1),
4818
+ timeRange: P(He, (t) => t.props.isRange = !0)
4812
4819
  },
4813
4820
  mergeProp(t) {
4814
4821
  const e = t.prop.props;
4815
4822
  e.valueFormat || (e.valueFormat = "HH:mm:ss");
4816
4823
  }
4817
- }, Gi = {
4824
+ }, Ji = {
4818
4825
  name: "FcRow",
4819
4826
  render(t, e) {
4820
4827
  return e.vNode.col({ props: { span: 24 } }, [
4821
4828
  e.vNode.row(e.prop, t)
4822
4829
  ]);
4823
4830
  }
4824
- }, Ji = "select", Ki = {
4825
- name: Ji,
4831
+ }, Ki = "select", Wi = {
4832
+ name: Ki,
4826
4833
  toFormValue(t, e) {
4827
4834
  return e.prop.props.multiple && !Array.isArray(t) ? H(t) : t;
4828
4835
  }
4829
- }, Wi = [
4830
- Mi,
4836
+ }, zi = [
4831
4837
  Ni,
4832
4838
  qi,
4833
4839
  Ui,
4834
4840
  Hi,
4835
4841
  Gi,
4836
- Ki
4837
- ], A = "el", zi = {
4842
+ Ji,
4843
+ Wi
4844
+ ], A = "el", xi = {
4838
4845
  button: A + "Button",
4839
4846
  icon: "i",
4840
4847
  slider: A + "Slider",
@@ -4867,7 +4874,7 @@ const vt = {
4867
4874
  object: "fcSubForm",
4868
4875
  subForm: "fcSubForm"
4869
4876
  };
4870
- function xi() {
4877
+ function Xi() {
4871
4878
  return {
4872
4879
  form: {
4873
4880
  inline: !1,
@@ -4901,23 +4908,23 @@ function xi() {
4901
4908
  }
4902
4909
  };
4903
4910
  }
4904
- function Xi(t) {
4911
+ function Zi(t) {
4905
4912
  return t.type === "tooltip";
4906
4913
  }
4907
- function wt(t, e) {
4914
+ function Ft(t, e) {
4908
4915
  D(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4909
4916
  }
4910
4917
  function Q(t) {
4911
4918
  return t === !1;
4912
4919
  }
4913
- function Zi(t, e) {
4920
+ function Qi(t, e) {
4914
4921
  D(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4915
4922
  }
4916
- function He(t) {
4923
+ function Ge(t) {
4917
4924
  const e = v({}, t);
4918
4925
  return delete e.children, e;
4919
4926
  }
4920
- const Qi = {
4927
+ const Yi = {
4921
4928
  validate() {
4922
4929
  const t = this.form();
4923
4930
  return t ? t.validate() : new Promise((e) => e());
@@ -4936,11 +4943,11 @@ const Qi = {
4936
4943
  },
4937
4944
  tidyOptions(t) {
4938
4945
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4939
- Zi(t, e);
4946
+ Qi(t, e);
4940
4947
  }), t;
4941
4948
  },
4942
4949
  tidyRule({ prop: t }) {
4943
- return wt(t, "title"), wt(t, "info"), t;
4950
+ return Ft(t, "title"), Ft(t, "info"), t;
4944
4951
  },
4945
4952
  mergeProp(t) {
4946
4953
  const e = {
@@ -4958,7 +4965,7 @@ const Qi = {
4958
4965
  });
4959
4966
  },
4960
4967
  getDefaultOptions() {
4961
- return xi();
4968
+ return Xi();
4962
4969
  },
4963
4970
  update() {
4964
4971
  const t = this.options.form;
@@ -4987,9 +4994,9 @@ const Qi = {
4987
4994
  delete r.wrap.title;
4988
4995
  const u = Q(r.wrap.show) ? e : this.$r(ee([r.wrap, {
4989
4996
  props: q(v({
4990
- labelWidth: o === void 0 ? o : jt(o),
4997
+ labelWidth: o === void 0 ? o : At(o),
4991
4998
  label: n ? r.title.title : void 0
4992
- }, He(r.wrap || {})), {
4999
+ }, Ge(r.wrap || {})), {
4993
5000
  prop: t.id,
4994
5001
  rules: t.injectValidate()
4995
5002
  }),
@@ -5006,8 +5013,8 @@ const Qi = {
5006
5013
  return !(!e.title && !e.native || Q(e.show));
5007
5014
  },
5008
5015
  makeInfo(t, e, r) {
5009
- var f, d, g, m, $, w;
5010
- const i = v({}, t.title), s = v({}, t.info), n = Xi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5016
+ var f, d, g, m, y, w;
5017
+ const i = v({}, t.title), s = v({}, t.info), n = Zi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5011
5018
  title: (d = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : d.value,
5012
5019
  rule: r.rule,
5013
5020
  options: this.options
@@ -5016,12 +5023,12 @@ const Qi = {
5016
5023
  const O = {
5017
5024
  type: s.type || "popover",
5018
5025
  slot: "label",
5019
- props: He(s),
5026
+ props: Ge(s),
5020
5027
  key: `${e}pop`
5021
5028
  };
5022
5029
  delete O.props.icon, delete O.props.show, delete O.props.info, delete O.props.align, delete O.props.native;
5023
5030
  const G = "content";
5024
- s.info && !D(O.props, G) && (O.props[G] = (w = ($ = r.refRule) == null ? void 0 : $.__$info) == null ? void 0 : w.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(ee([s, O]), [
5031
+ s.info && !D(O.props, G) && (O.props[G] = (w = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : w.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(ee([s, O]), [
5025
5032
  this.$r({
5026
5033
  type: "i",
5027
5034
  slot: n ? "default" : "reference",
@@ -5031,7 +5038,7 @@ const Qi = {
5031
5038
  ]));
5032
5039
  }
5033
5040
  const u = ee([i, {
5034
- props: He(i),
5041
+ props: Ge(i),
5035
5042
  key: `${e}tit`,
5036
5043
  class: "fc-form-title",
5037
5044
  slot: i.slot || "label",
@@ -5107,25 +5114,25 @@ const Qi = {
5107
5114
  }, [e]);
5108
5115
  }
5109
5116
  }, ce = {};
5110
- Yi(ce);
5111
5117
  en(ce);
5112
5118
  tn(ce);
5113
5119
  rn(ce);
5114
5120
  nn(ce);
5115
- function Yi(t) {
5121
+ sn(ce);
5122
+ function en(t) {
5116
5123
  ["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "radio", "rate"].forEach((e) => {
5117
5124
  t[e] = P(e);
5118
5125
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
5119
5126
  }
5120
- function en(t) {
5127
+ function tn(t) {
5121
5128
  const e = "select", r = "multiple";
5122
5129
  t.selectMultiple = P(e, { [r]: !0 }), t.selectOne = P(e, { [r]: !1 });
5123
5130
  }
5124
- function tn(t) {
5131
+ function rn(t) {
5125
5132
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
5126
5133
  Object.keys(r).reduce((i, s) => (i[s] = P(e, { type: r[s] }), i), t);
5127
5134
  }
5128
- function rn(t) {
5135
+ function nn(t) {
5129
5136
  const e = "upload", r = {
5130
5137
  image: ["image", 0],
5131
5138
  file: ["file", 0],
@@ -5134,7 +5141,7 @@ function rn(t) {
5134
5141
  };
5135
5142
  Object.keys(r).reduce((i, s) => (i[s] = P(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
5136
5143
  }
5137
- function nn(t) {
5144
+ function sn(t) {
5138
5145
  const e = {
5139
5146
  frameInputs: ["input", 0],
5140
5147
  frameFiles: ["file", 0],
@@ -5145,10 +5152,10 @@ function nn(t) {
5145
5152
  };
5146
5153
  return Object.keys(e).reduce((r, i) => (r[i] = P("frame", (s) => s.props({ type: e[i][0], maxLength: e[i][1] })), r), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages, t;
5147
5154
  }
5148
- function Ft(t, e) {
5155
+ function Ot(t, e) {
5149
5156
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5150
5157
  }
5151
- function sn(t, e) {
5158
+ function on(t, e) {
5152
5159
  return {
5153
5160
  formEl() {
5154
5161
  return e.$manager.form();
@@ -5224,11 +5231,11 @@ function sn(t, e) {
5224
5231
  }
5225
5232
  },
5226
5233
  submitBtnProps: (r = {}) => {
5227
- let i = Ft(e.options.submitBtn, !0);
5234
+ let i = Ot(e.options.submitBtn, !0);
5228
5235
  _(i, r), e.options.submitBtn = i, t.refreshOptions();
5229
5236
  },
5230
5237
  resetBtnProps: (r = {}) => {
5231
- let i = Ft(e.options.resetBtn, !1);
5238
+ let i = Ot(e.options.resetBtn, !1);
5232
5239
  _(i, r), e.options.resetBtn = i, t.refreshOptions();
5233
5240
  },
5234
5241
  submit(r, i) {
@@ -5246,11 +5253,11 @@ function sn(t, e) {
5246
5253
  }
5247
5254
  };
5248
5255
  }
5249
- const Jt = {
5256
+ const Kt = {
5250
5257
  name: "required",
5251
5258
  load(t, e, r) {
5252
5259
  var s, n;
5253
- const i = on(t.getValue());
5260
+ const i = an(t.getValue());
5254
5261
  if (i.required === !1)
5255
5262
  t.clearProp(), r.clearValidateState([e.field]);
5256
5263
  else {
@@ -5271,28 +5278,28 @@ const Jt = {
5271
5278
  r.sync(e);
5272
5279
  },
5273
5280
  watch(...t) {
5274
- Jt.load(...t);
5281
+ Kt.load(...t);
5275
5282
  }
5276
5283
  };
5277
- function on(t) {
5284
+ function an(t) {
5278
5285
  return h.Boolean(t) ? { required: t } : h.String(t) ? { message: t } : h.Undef(t) ? { required: !1 } : h.Function(t) ? { validator: t } : h.Object(t) ? t : {};
5279
5286
  }
5280
- function an(t) {
5281
- t.componentAlias(zi), Mr.forEach((e) => {
5287
+ function ln(t) {
5288
+ t.componentAlias(xi), Nr.forEach((e) => {
5282
5289
  t.component(e.name, e);
5283
- }), t.register(Jt), Wi.forEach((e) => {
5290
+ }), t.register(Kt), zi.forEach((e) => {
5284
5291
  t.parser(e);
5285
5292
  }), Object.keys(ce).forEach((e) => {
5286
5293
  t.maker[e] = ce[e];
5287
5294
  });
5288
5295
  }
5289
- function ln() {
5290
- return Gt({
5296
+ function un() {
5297
+ return Jt({
5291
5298
  ui: "element-ui",
5292
- version: "2.7.7",
5293
- manager: Qi,
5294
- extendApi: sn,
5295
- install: an,
5299
+ version: "2.7.8",
5300
+ manager: Yi,
5301
+ extendApi: on,
5302
+ install: ln,
5296
5303
  attrs: {
5297
5304
  normal: ["col", "wrap"],
5298
5305
  array: ["className"],
@@ -5300,10 +5307,10 @@ function ln() {
5300
5307
  }
5301
5308
  });
5302
5309
  }
5303
- const Xe = ln();
5304
- typeof window != "undefined" && (window.formCreate = Xe, window.Vue && Xe.install(window.Vue));
5305
- const cn = Xe.maker;
5310
+ const Ze = un();
5311
+ typeof window != "undefined" && (window.formCreate = Ze, window.Vue && Ze.install(window.Vue));
5312
+ const hn = Ze.maker;
5306
5313
  export {
5307
- Xe as default,
5308
- cn as maker
5314
+ Ze as default,
5315
+ hn as maker
5309
5316
  };