@form-create/iview 2.6.0-alpha.0 → 2.6.0

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.
@@ -7,20 +7,20 @@
7
7
  * Released under the MIT License.
8
8
  */
9
9
  (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode('._fc-frame .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;transition:opacity .3s}._fc-frame .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-frame .fc-files:hover .fc-upload-cover{opacity:1}._fc-frame .ivu-upload-list{margin-top:0}._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn,._fc-frame .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:2px 2px 5px #0000001a;margin-right:4px;box-sizing:border-box}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;transition:opacity .3s}._fc-upload .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-upload .fc-files:hover .fc-upload-cover{opacity:1}._fc-upload .ivu-upload-list{margin-top:0}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-upload .fc-upload-btn,._fc-upload .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:2px 2px 5px #0000001a;margin-right:4px;box-sizing:border-box}._fc-group{display:flex;min-height:42px;justify-content:center;flex-direction:column}._fc-group-disabled ._fc-group-btn,._fc-group-disabled ._fc-group-add{cursor:not-allowed}._fc-group-handle{display:flex;flex-direction:row;position:absolute;bottom:-15px;right:30px;border-radius:15px;border:1px dashed #d9d9d9;padding:3px 8px;background-color:#fff}._fc-group-btn{cursor:pointer}._fc-group-idx{position:absolute;bottom:-15px;left:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#eee;border-radius:15px;font-weight:700}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{position:relative;display:flex;flex-direction:column;border:1px dashed #d9d9d9;padding:20px 20px 25px;margin:5px 5px 25px;border-radius:5px}._fc-group-arrow{position:relative;width:20px;height:20px}._fc-group-arrow:before{content:"";position:absolute;top:8px;left:5px;width:9px;height:9px;border-left:2px solid #999;border-top:2px solid #999}._fc-group-arrow:before{transform:rotate(45deg)}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{width:20px;height:20px;position:relative;cursor:pointer}._fc-group-plus-minus:before,._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:60%;height:2px;background-color:#409eff;transform:translate(-50%,-50%)}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{cursor:pointer;width:25px;height:25px;border:1px solid rgb(64 158 255 / 50%);border-radius:15px}._fc-group-add._fc-group-plus-minus:before,._fc-group-add._fc-group-plus-minus:after{width:50%}.form-create .form-create .ivu-form-item{margin-bottom:24px}.form-create .form-create .ivu-form-item .ivu-form-item{margin-bottom:0}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
10
- var vt = Object.defineProperty, bt = Object.defineProperties;
11
- var Ct = Object.getOwnPropertyDescriptors;
12
- var Fe = Object.getOwnPropertySymbols;
13
- var _t = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable;
14
- var Se = (t, e, r) => e in t ? vt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, y = (t, e) => {
10
+ var bt = Object.defineProperty, Ct = Object.defineProperties;
11
+ var _t = Object.getOwnPropertyDescriptors;
12
+ var Se = Object.getOwnPropertySymbols;
13
+ var Ot = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable;
14
+ var Re = (t, e, r) => e in t ? bt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, y = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
- _t.call(e, r) && Se(t, r, e[r]);
17
- if (Fe)
18
- for (var r of Fe(e))
19
- kt.call(e, r) && Se(t, r, e[r]);
16
+ Ot.call(e, r) && Re(t, r, e[r]);
17
+ if (Se)
18
+ for (var r of Se(e))
19
+ kt.call(e, r) && Re(t, r, e[r]);
20
20
  return t;
21
- }, H = (t, e) => bt(t, Ct(e));
22
- import Y, { h as p } from "vue";
23
- function Ot(t) {
21
+ }, H = (t, e) => Ct(t, _t(e));
22
+ import D, { h as p } from "vue";
23
+ function wt(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
26
  function le() {
@@ -29,33 +29,33 @@ function le() {
29
29
  return t;
30
30
  }, le.apply(this, arguments);
31
31
  }
32
- var wt = ["attrs", "props", "domProps"], Ft = ["class", "style", "directives"], St = ["on", "nativeOn"], Rt = function(t) {
32
+ var Ft = ["attrs", "props", "domProps"], St = ["class", "style", "directives"], Rt = ["on", "nativeOn"], Et = 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 (wt.indexOf(i) !== -1) e[i] = le({}, e[i], r[i]);
36
- else if (Ft.indexOf(i) !== -1) {
35
+ else if (Ft.indexOf(i) !== -1) e[i] = le({}, e[i], r[i]);
36
+ else if (St.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 (St.indexOf(i) !== -1)
39
+ } else if (Rt.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]], u = r[i][o] instanceof Array ? r[i][o] : [r[i][o]];
42
42
  e[i][o] = [].concat(a, u);
43
43
  } else e[i][o] = r[i][o];
44
- else if (i === "hook") for (var l in r[i]) e[i][l] = e[i][l] ? Et(e[i][l], r[i][l]) : r[i][l];
44
+ else if (i === "hook") for (var l in r[i]) e[i][l] = e[i][l] ? It(e[i][l], r[i][l]) : r[i][l];
45
45
  else e[i] = r[i];
46
46
  return e;
47
47
  }, {});
48
- }, Et = function(t, e) {
48
+ }, It = function(t, e) {
49
49
  return function() {
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
- }, It = Rt;
53
- const _ = /* @__PURE__ */ Ot(It);
54
- function ee(t, e) {
52
+ }, jt = Et;
53
+ const _ = /* @__PURE__ */ wt(jt);
54
+ function te(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => ((!e || e.indexOf(i) === -1) && r.push(t[i]), r), []);
56
56
  }
57
- const jt = "fcCheckbox", At = {
58
- name: jt,
57
+ const At = "fcCheckbox", Vt = {
58
+ name: At,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -116,7 +116,7 @@ const jt = "fcCheckbox", At = {
116
116
  }, {
117
117
  key: "" + e + "-" + t.value
118
118
  }]));
119
- }), ee(this.$slots)]);
119
+ }), te(this.$slots)]);
120
120
  },
121
121
  mounted() {
122
122
  this.$emit("fc.el", this.$refs.el);
@@ -125,10 +125,10 @@ const jt = "fcCheckbox", At = {
125
125
  function j(t) {
126
126
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
127
127
  }
128
- const Vt = "fcFrame";
129
- function xe(t) {
128
+ const Pt = "fcFrame";
129
+ function Ge(t) {
130
130
  return {
131
- name: Vt,
131
+ name: Pt,
132
132
  props: {
133
133
  formCreateInject: {
134
134
  type: Object,
@@ -494,16 +494,16 @@ function xe(t) {
494
494
  }
495
495
  };
496
496
  }
497
- const Ge = xe({
497
+ const Ke = Ge({
498
498
  fileIcon: "md-document",
499
499
  fileUpIcon: "ios-folder-open"
500
500
  });
501
- Ge.v2 = xe({
501
+ Ke.v2 = Ge({
502
502
  fileIcon: "document-text",
503
503
  fileUpIcon: "folder"
504
504
  });
505
- const Pt = "fcRadio", Dt = {
506
- name: Pt,
505
+ const Dt = "fcRadio", Tt = {
506
+ name: Dt,
507
507
  props: {
508
508
  formCreateInject: {
509
509
  type: Object,
@@ -559,12 +559,12 @@ const Pt = "fcRadio", Dt = {
559
559
  }, {
560
560
  key: "" + e + "-" + t.value
561
561
  }]));
562
- }), ee(this.$slots)]);
562
+ }), te(this.$slots)]);
563
563
  },
564
564
  mounted() {
565
565
  this.$emit("fc.el", this.$refs.el);
566
566
  }
567
- }, c = {
567
+ }, h = {
568
568
  type(t, e) {
569
569
  return Object.prototype.toString.call(t) === "[object " + e + "]";
570
570
  },
@@ -572,7 +572,7 @@ const Pt = "fcRadio", Dt = {
572
572
  return t == null;
573
573
  },
574
574
  Element(t) {
575
- return typeof t == "object" && t !== null && t.nodeType === 1 && !c.Object(t);
575
+ return typeof t == "object" && t !== null && t.nodeType === 1 && !h.Object(t);
576
576
  },
577
577
  trueArray(t) {
578
578
  return Array.isArray(t) && t.length > 0;
@@ -590,15 +590,15 @@ const Pt = "fcRadio", Dt = {
590
590
  }
591
591
  };
592
592
  ["Date", "Object", "String", "Boolean", "Array", "Number"].forEach((t) => {
593
- c[t] = function(e) {
594
- return c.type(e, t);
593
+ h[t] = function(e) {
594
+ return h.type(e, t);
595
595
  };
596
596
  });
597
597
  function w(t, e) {
598
598
  return {}.hasOwnProperty.call(t, e);
599
599
  }
600
- const Tt = "fcSelect", Bt = {
601
- name: Tt,
600
+ const Bt = "fcSelect", Lt = {
601
+ name: Bt,
602
602
  functional: !0,
603
603
  props: {
604
604
  formCreateInject: {
@@ -615,13 +615,13 @@ const Tt = "fcSelect", Bt = {
615
615
  key: "" + o + "-" + n.value
616
616
  }]), [a ? t("template", {
617
617
  slot: n.slotName || "default"
618
- }, [c.Function(a) ? n.slot(t) : a]) : null]);
618
+ }, [h.Function(a) ? n.slot(t) : a]) : null]);
619
619
  }, i = (n, o) => t("OptionGroup", {
620
620
  attrs: {
621
621
  label: n.label
622
622
  },
623
623
  key: "" + o + "-" + n.label
624
- }, [c.trueArray(n.options) && n.options.map((a, u) => r(a, u))]), s = e.props.formCreateInject.options;
624
+ }, [h.trueArray(n.options) && n.options.map((a, u) => r(a, u))]), s = e.props.formCreateInject.options;
625
625
  return t("Select", _([{}, e.data, {
626
626
  ref: "el"
627
627
  }]), [(Array.isArray(s) ? s : []).map((n, o) => w(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
@@ -629,8 +629,8 @@ const Tt = "fcSelect", Bt = {
629
629
  mounted() {
630
630
  this.$emit("fc.el", this.$refs.el);
631
631
  }
632
- }, Lt = "fcTree", Nt = {
633
- name: Lt,
632
+ }, Nt = "fcTree", Mt = {
633
+ name: Nt,
634
634
  props: {
635
635
  formCreateInject: {
636
636
  type: Object,
@@ -678,25 +678,25 @@ const Tt = "fcSelect", Bt = {
678
678
  ref: "tree"
679
679
  }, {
680
680
  on: t
681
- }]), [ee(this.$slots)]);
681
+ }]), [te(this.$slots)]);
682
682
  },
683
683
  mounted() {
684
684
  this.$emit("fc.el", this.$refs.tree);
685
685
  }
686
686
  };
687
- function Re(t) {
687
+ function Ee(t) {
688
688
  return {
689
689
  url: t,
690
- name: Mt(t)
690
+ name: Ut(t)
691
691
  };
692
692
  }
693
- function Mt(t) {
693
+ function Ut(t) {
694
694
  return ("" + t).split("/").pop();
695
695
  }
696
- const Ut = "fcUpload";
697
- function Ke(t) {
696
+ const qt = "fcUpload";
697
+ function Xe(t) {
698
698
  return {
699
- name: Ut,
699
+ name: qt,
700
700
  props: {
701
701
  formCreateInject: {
702
702
  type: Object,
@@ -737,11 +737,11 @@ function Ke(t) {
737
737
  };
738
738
  },
739
739
  created() {
740
- this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = !1), this.formCreateInject.prop.props.defaultFileList = j(this.value).map(Re);
740
+ this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = !1), this.formCreateInject.prop.props.defaultFileList = j(this.value).map(Ee);
741
741
  },
742
742
  watch: {
743
743
  value(e) {
744
- this.$refs.upload.fileList.every((r) => !r.status || r.status === "finished") && (this.$refs.upload.fileList = j(e).map(Re), this.uploadList = this.$refs.upload.fileList);
744
+ this.$refs.upload.fileList.every((r) => !r.status || r.status === "finished") && (this.$refs.upload.fileList = j(e).map(Ee), this.uploadList = this.$refs.upload.fileList);
745
745
  },
746
746
  maxLength(e, r) {
747
747
  (r === 1 || e === 1) && this.update();
@@ -842,7 +842,7 @@ function Ke(t) {
842
842
  type: this.uploadType === "file" ? "ios-cloud-upload-outline" : t.imgUpIcon,
843
843
  size: 20
844
844
  }
845
- }]))])]) : null, ee(this.$slots, ["default"])]);
845
+ }]))])]) : null, te(this.$slots, ["default"])]);
846
846
  },
847
847
  update() {
848
848
  let e = this.$refs.upload.fileList.map((r) => r.url).filter((r) => r !== void 0);
@@ -884,26 +884,26 @@ function Ke(t) {
884
884
  }
885
885
  };
886
886
  }
887
- const Xe = Ke({
887
+ const Qe = Xe({
888
888
  fileIcon: "md-document",
889
889
  imgUpIcon: "md-images"
890
890
  });
891
- Xe.v2 = Ke({
891
+ Qe.v2 = Xe({
892
892
  fileIcon: "document-text",
893
893
  imgUpIcon: "image"
894
894
  });
895
895
  function F(t, e, r) {
896
- Y.set(t, e, r);
896
+ D.set(t, e, r);
897
897
  }
898
- function L(t, e) {
899
- Y.delete(t, e);
898
+ function B(t, e) {
899
+ D.delete(t, e);
900
900
  }
901
901
  function x(t, e = {}, r) {
902
902
  let i = !1;
903
903
  for (let s in e)
904
904
  if (Object.prototype.hasOwnProperty.call(e, s)) {
905
905
  let n = e[s];
906
- if ((i = Array.isArray(n)) || c.Object(n)) {
906
+ if ((i = Array.isArray(n)) || h.Object(n)) {
907
907
  let o = t[s] === void 0;
908
908
  if (i)
909
909
  i = !1, o && F(t, s, []);
@@ -918,24 +918,24 @@ function x(t, e = {}, r) {
918
918
  o && F(t, s, {});
919
919
  t[s] = x(t[s], n, r);
920
920
  } else
921
- F(t, s, n), c.Undef(n) || (c.Undef(n.__json) || (t[s].__json = n.__json), c.Undef(n.__origin) || (t[s].__origin = n.__origin));
921
+ F(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
922
922
  }
923
923
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
924
924
  }
925
- function N(t) {
925
+ function L(t) {
926
926
  return x({}, { value: t }).value;
927
927
  }
928
- const qt = Object.assign || function(t) {
928
+ const Ht = Object.assign || function(t) {
929
929
  for (let e, r = 1; r < arguments.length; r++)
930
930
  for (let i in e = arguments[r], e)
931
931
  Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
932
932
  return t;
933
933
  };
934
934
  function m() {
935
- return qt.apply(this, arguments);
935
+ return Ht.apply(this, arguments);
936
936
  }
937
- const Ht = "fcGroup", Jt = {
938
- name: Ht,
937
+ const Jt = "fcGroup", zt = {
938
+ name: Jt,
939
939
  props: {
940
940
  field: String,
941
941
  rule: [Array, Object],
@@ -1022,7 +1022,7 @@ const Ht = "fcGroup", Jt = {
1022
1022
  const n = i.$f.formData();
1023
1023
  i.$f.once("reloading", () => {
1024
1024
  i.$f.setValue(n);
1025
- }), i.rule = N(t);
1025
+ }), i.rule = L(t);
1026
1026
  }
1027
1027
  }
1028
1028
  });
@@ -1085,7 +1085,7 @@ const Ht = "fcGroup", Jt = {
1085
1085
  };
1086
1086
  if (this.defaultValue) {
1087
1087
  i.formData || (i.formData = {});
1088
- const s = N(this.defaultValue);
1088
+ const s = L(this.defaultValue);
1089
1089
  m(i.formData, this.field ? {
1090
1090
  [this.field]: s
1091
1091
  } : s);
@@ -1204,9 +1204,9 @@ const Ht = "fcGroup", Jt = {
1204
1204
  key: n
1205
1205
  }, {
1206
1206
  on: {
1207
- "update:value": (h) => this.formData(n, h),
1208
- "emit-event": (h, ...g) => this.emitEvent(h, g, o, n),
1209
- input: (h) => this.add$f(o, n, h)
1207
+ "update:value": (c) => this.formData(n, c),
1208
+ "emit-event": (c, ...g) => this.emitEvent(c, g, o, n),
1209
+ input: (c) => this.add$f(o, n, c)
1210
1210
  }
1211
1211
  }, {}, {
1212
1212
  props: {
@@ -1230,8 +1230,8 @@ const Ht = "fcGroup", Jt = {
1230
1230
  class: "_fc-group " + (i ? "_fc-group-disabled" : "")
1231
1231
  }, [s]);
1232
1232
  }
1233
- }, zt = "fcSubForm", Wt = {
1234
- name: zt,
1233
+ }, Wt = "fcSubForm", xt = {
1234
+ name: Wt,
1235
1235
  props: {
1236
1236
  rule: Array,
1237
1237
  options: Object,
@@ -1314,16 +1314,16 @@ const Ht = "fcGroup", Jt = {
1314
1314
  }
1315
1315
  }]));
1316
1316
  }
1317
- }, xt = [
1318
- At,
1319
- Dt,
1320
- Bt,
1321
- Nt,
1322
- Wt,
1323
- Ge,
1324
- Xe,
1325
- Jt
1326
- ], Ee = "FormCreate", ue = (t, e) => {
1317
+ }, Gt = [
1318
+ Vt,
1319
+ Tt,
1320
+ Lt,
1321
+ Mt,
1322
+ xt,
1323
+ Ke,
1324
+ Qe,
1325
+ zt
1326
+ ], Ie = "FormCreate", ue = (t, e) => {
1327
1327
  if (!(!t || t === e)) {
1328
1328
  if (t.formCreateInject)
1329
1329
  return t.formCreateInject;
@@ -1331,13 +1331,15 @@ const Ht = "fcGroup", Jt = {
1331
1331
  return ue(t.$parent, e);
1332
1332
  }
1333
1333
  };
1334
- function Gt(t) {
1334
+ function Kt(t, e, r) {
1335
1335
  return {
1336
- name: Ee,
1337
- componentName: Ee,
1336
+ name: Ie,
1337
+ componentName: Ie,
1338
1338
  model: {
1339
1339
  prop: "api"
1340
1340
  },
1341
+ components: e,
1342
+ directives: r,
1341
1343
  provide() {
1342
1344
  return {
1343
1345
  $pfc: this
@@ -1391,14 +1393,14 @@ function Gt(t) {
1391
1393
  _renderRule() {
1392
1394
  this.renderRule = [...this.rule || []];
1393
1395
  },
1394
- _updateValue(e) {
1395
- this.destroyed || (this.updateValue = JSON.stringify(e), this.$emit("update:value", e));
1396
+ _updateValue(i) {
1397
+ this.destroyed || (this.updateValue = JSON.stringify(i), this.$emit("update:value", i));
1396
1398
  }
1397
1399
  },
1398
1400
  watch: {
1399
1401
  value: {
1400
- handler(e) {
1401
- JSON.stringify(e || {}) !== this.updateValue && (this.$f.config.forceCoverValue ? this.$f.coverValue(e || {}) : this.$f.setValue(e || {}));
1402
+ handler(i) {
1403
+ JSON.stringify(i || {}) !== this.updateValue && (this.$f.config.forceCoverValue ? this.$f.coverValue(i || {}) : this.$f.setValue(i || {}));
1402
1404
  },
1403
1405
  deep: !0
1404
1406
  },
@@ -1408,46 +1410,46 @@ function Gt(t) {
1408
1410
  },
1409
1411
  deep: !0
1410
1412
  },
1411
- rule(e) {
1412
- e.length === this.renderRule.length && e.every((r) => this.renderRule.indexOf(r) > -1) || (this.formCreate.$handle.reloadRule(e), this._renderRule());
1413
+ rule(i) {
1414
+ i.length === this.renderRule.length && i.every((s) => this.renderRule.indexOf(s) > -1) || (this.formCreate.$handle.reloadRule(i), this._renderRule());
1413
1415
  },
1414
1416
  disabled() {
1415
1417
  this.$f.refresh();
1416
1418
  }
1417
1419
  },
1418
1420
  beforeCreate() {
1419
- this.formCreate = new t(this), Object.keys(this.formCreate.prop).forEach((e) => {
1420
- m(this.$options[e], this.formCreate.prop[e]);
1421
+ this.formCreate = new t(this), Object.keys(this.formCreate.prop).forEach((i) => {
1422
+ m(this.$options[i], this.formCreate.prop[i]);
1421
1423
  }), this.$emit("beforeCreate", this.formCreate.api());
1422
1424
  },
1423
1425
  created() {
1424
- const e = this, r = this.formCreate.api(), i = () => {
1425
- if (e.$pfc) {
1426
- const n = ue(e, e.$pfc);
1427
- if (n) {
1428
- let o;
1429
- e.isMore ? (o = j(n.getSubForm()), o.push(r)) : o = r, n.subForm(o);
1426
+ const i = this, s = this.formCreate.api(), n = () => {
1427
+ if (i.$pfc) {
1428
+ const a = ue(i, i.$pfc);
1429
+ if (a) {
1430
+ let u;
1431
+ i.isMore ? (u = j(a.getSubForm()), u.push(s)) : u = s, a.subForm(u);
1430
1432
  }
1431
1433
  }
1432
- }, s = () => {
1433
- const n = ue(e, e.$pfc);
1434
- if (n)
1435
- if (e.isMore) {
1436
- const o = j(n.getSubForm()), a = o.indexOf(r);
1437
- a > -1 && o.splice(a, 1);
1434
+ }, o = () => {
1435
+ const a = ue(i, i.$pfc);
1436
+ if (a)
1437
+ if (i.isMore) {
1438
+ const u = j(a.getSubForm()), l = u.indexOf(s);
1439
+ l > -1 && u.splice(l, 1);
1438
1440
  } else
1439
- n.subForm();
1441
+ a.subForm();
1440
1442
  };
1441
- e.$on("hook:beforeDestroy", () => {
1442
- s();
1443
- }), this.$watch(() => this.subForm, (n) => {
1444
- n ? i() : s();
1443
+ i.$on("hook:beforeDestroy", () => {
1444
+ o();
1445
+ }), this.$watch(() => this.subForm, (a) => {
1446
+ a ? n() : o();
1445
1447
  }, { immediate: !0 });
1446
1448
  }
1447
1449
  };
1448
1450
  }
1449
- const Qe = ["attrs", "props", "domProps", "scopedSlots"], Ze = ["class", "style", "directives"], Ye = ["on", "nativeOn"], T = (t, e = {}, r = {}) => {
1450
- const i = [...Qe, ...r.normal || []], s = [...Ze, ...r.array || []], n = [...Ye, ...r.functional || []], o = r.props || [];
1451
+ const Ze = ["attrs", "props", "domProps", "scopedSlots"], Ye = ["class", "style", "directives"], et = ["on", "nativeOn"], T = (t, e = {}, r = {}) => {
1452
+ const i = [...Ze, ...r.normal || []], s = [...Ye, ...r.array || []], n = [...et, ...r.functional || []], o = r.props || [];
1451
1453
  return t.reduce((a, u) => {
1452
1454
  for (const l in u)
1453
1455
  if (a[l])
@@ -1456,44 +1458,44 @@ const Qe = ["attrs", "props", "domProps", "scopedSlots"], Ze = ["class", "style"
1456
1458
  else if (i.indexOf(l) > -1)
1457
1459
  a[l] = y(y({}, a[l]), u[l]);
1458
1460
  else if (s.indexOf(l) > -1) {
1459
- const h = a[l] instanceof Array ? a[l] : [a[l]], g = u[l] instanceof Array ? u[l] : [u[l]];
1460
- a[l] = [...h, ...g];
1461
+ const c = a[l] instanceof Array ? a[l] : [a[l]], g = u[l] instanceof Array ? u[l] : [u[l]];
1462
+ a[l] = [...c, ...g];
1461
1463
  } else if (n.indexOf(l) > -1)
1462
- for (const h in u[l])
1463
- if (a[l][h]) {
1464
- const g = a[l][h] instanceof Array ? a[l][h] : [a[l][h]], b = u[l][h] instanceof Array ? u[l][h] : [u[l][h]];
1465
- a[l][h] = [...g, ...b];
1464
+ for (const c in u[l])
1465
+ if (a[l][c]) {
1466
+ const g = a[l][c] instanceof Array ? a[l][c] : [a[l][c]], b = u[l][c] instanceof Array ? u[l][c] : [u[l][c]];
1467
+ a[l][c] = [...g, ...b];
1466
1468
  } else
1467
- a[l][h] = u[l][h];
1469
+ a[l][c] = u[l][c];
1468
1470
  else if (l === "hook")
1469
- for (let h in u[l])
1470
- a[l][h] ? a[l][h] = Kt(a[l][h], u[l][h]) : a[l][h] = u[l][h];
1471
+ for (let c in u[l])
1472
+ a[l][c] ? a[l][c] = Xt(a[l][c], u[l][c]) : a[l][c] = u[l][c];
1471
1473
  else
1472
1474
  a[l] = u[l];
1473
1475
  else
1474
1476
  i.indexOf(l) > -1 || n.indexOf(l) > -1 || o.indexOf(l) > -1 ? a[l] = y({}, u[l]) : s.indexOf(l) > -1 ? a[l] = u[l] instanceof Array ? [...u[l]] : typeof u[l] == "object" ? y({}, u[l]) : u[l] : a[l] = u[l];
1475
1477
  return a;
1476
1478
  }, e);
1477
- }, Kt = (t, e) => function() {
1479
+ }, Xt = (t, e) => function() {
1478
1480
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1479
- }, et = ["type", "slot", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "preview", "component", "cache"], pe = ["validate", "children", "control"], me = ["effect", "deep"];
1480
- function Xt() {
1481
- return [...et, ...Qe, ...Ze, ...Ye, ...pe, ...me];
1481
+ }, tt = ["type", "slot", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "preview", "component", "cache"], pe = ["validate", "children", "control"], me = ["effect", "deep"];
1482
+ function Qt() {
1483
+ return [...tt, ...Ze, ...Ye, ...et, ...pe, ...me];
1482
1484
  }
1483
1485
  function ye(t, e, r) {
1484
1486
  return `[form-create ${t}]: ${e}`;
1485
1487
  }
1486
- function Qt(t, e) {
1488
+ function Zt(t, e) {
1487
1489
  console.warn(ye("tip", t));
1488
1490
  }
1489
1491
  function ge(t, e) {
1490
1492
  console.error(ye("err", t));
1491
1493
  }
1492
- function Zt(t) {
1494
+ function Yt(t) {
1493
1495
  ge(t.toString()), console.error(t);
1494
1496
  }
1495
- const fe = "[[FORM-CREATE-PREFIX-", he = "-FORM-CREATE-SUFFIX]]", Ie = "$FN:", je = "$FNX:", z = "function";
1496
- function tt(t, e) {
1497
+ const fe = "[[FORM-CREATE-PREFIX-", he = "-FORM-CREATE-SUFFIX]]", je = "$FN:", Ae = "$FNX:", z = "function";
1498
+ function rt(t, e) {
1497
1499
  return JSON.stringify(x(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1498
1500
  if (!(i && i._isVue === !0)) {
1499
1501
  if (typeof i !== z)
@@ -1505,24 +1507,24 @@ function tt(t, e) {
1505
1507
  }
1506
1508
  }, e);
1507
1509
  }
1508
- function Ae(t) {
1510
+ function Ve(t) {
1509
1511
  return new Function("return " + t)();
1510
1512
  }
1511
1513
  function U(t, e) {
1512
- if (t && c.String(t) && t.length > 4) {
1514
+ if (t && h.String(t) && t.length > 4) {
1513
1515
  let r = t.trim(), i = !1;
1514
1516
  try {
1515
1517
  if (r.indexOf(he) > 0 && r.indexOf(fe) === 0)
1516
1518
  r = r.replace(he, "").replace(fe, ""), i = !0;
1517
- else if (r.indexOf(Ie) === 0)
1518
- r = r.replace(Ie, ""), i = !0;
1519
+ else if (r.indexOf(je) === 0)
1520
+ r = r.replace(je, ""), i = !0;
1519
1521
  else {
1520
- if (r.indexOf(je) === 0)
1521
- return r = Ae("function($inject){" + r.replace(je, "") + "}"), r.__json = t, r.__inject = !0, r;
1522
+ if (r.indexOf(Ae) === 0)
1523
+ return r = Ve("function($inject){" + r.replace(Ae, "") + "}"), r.__json = t, r.__inject = !0, r;
1522
1524
  !e && r.indexOf(z) === 0 && r !== z && (i = !0);
1523
1525
  }
1524
1526
  if (!i) return t;
1525
- const s = Ae(r.indexOf(z) === -1 && r.indexOf("(") !== 0 ? z + " " + r : r);
1527
+ const s = Ve(r.indexOf(z) === -1 && r.indexOf("(") !== 0 ? z + " " + r : r);
1526
1528
  return s.__json = t, s;
1527
1529
  } catch (s) {
1528
1530
  ge(`解析失败:${r}
@@ -1533,12 +1535,12 @@ err: ${s}`);
1533
1535
  }
1534
1536
  return t;
1535
1537
  }
1536
- function Yt(t, e) {
1538
+ function er(t, e) {
1537
1539
  return JSON.parse(t, function(r, i) {
1538
- return c.Undef(i) || !i.indexOf ? i : U(i, e);
1540
+ return h.Undef(i) || !i.indexOf ? i : U(i, e);
1539
1541
  });
1540
1542
  }
1541
- function rt(t, e) {
1543
+ function it(t, e) {
1542
1544
  return {
1543
1545
  value: t,
1544
1546
  enumerable: !1,
@@ -1547,50 +1549,50 @@ function rt(t, e) {
1547
1549
  };
1548
1550
  }
1549
1551
  function $e(t) {
1550
- return it([t])[0];
1552
+ return nt([t])[0];
1551
1553
  }
1552
- function it(t, e) {
1554
+ function nt(t, e) {
1553
1555
  return x([], [...t], e || !1);
1554
1556
  }
1555
1557
  function q(t, e) {
1556
1558
  return T(Array.isArray(e) ? e : [e], t, { array: pe, normal: me }), t;
1557
1559
  }
1558
- function Ve(t) {
1559
- const e = c.Function(t.getRule) ? t.getRule() : t;
1560
+ function Pe(t) {
1561
+ const e = h.Function(t.getRule) ? t.getRule() : t;
1560
1562
  return e.type || (e.type = "input"), e;
1561
1563
  }
1562
- function er(t, e) {
1564
+ function tr(t, e) {
1563
1565
  return t ? (Object.keys(e || {}).forEach((r) => {
1564
1566
  e[r] && (t[r] = q(t[r] || {}, e[r]));
1565
1567
  }), t) : e;
1566
1568
  }
1567
- function nt(t, e) {
1569
+ function st(t, e) {
1568
1570
  Object.defineProperties(t, Object.keys(e).reduce((r, i) => (r[i] = {
1569
1571
  get() {
1570
1572
  return e[i]();
1571
1573
  }
1572
1574
  }, r), {}));
1573
1575
  }
1574
- function K(t) {
1576
+ function Q(t) {
1575
1577
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1576
1578
  }
1577
1579
  function E(t, e) {
1578
1580
  try {
1579
1581
  e = t();
1580
1582
  } catch (r) {
1581
- Zt(r);
1583
+ Yt(r);
1582
1584
  }
1583
1585
  return e;
1584
1586
  }
1585
- const Pe = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, W = {
1586
- "==": (t, e) => JSON.stringify(t) === JSON.stringify(Pe(t, e)),
1587
+ const De = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, W = {
1588
+ "==": (t, e) => JSON.stringify(t) === JSON.stringify(De(t, e)),
1587
1589
  "!=": (t, e) => !W["=="](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(Pe(t[0], e)) > -1;
1595
+ return t && t.indexOf && t.indexOf(De(t[0], e)) > -1;
1594
1596
  },
1595
1597
  notOn(t, e) {
1596
1598
  return !W.on(t, e);
@@ -1608,16 +1610,16 @@ const Pe = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1608
1610
  return t < e[0] || t > e[1];
1609
1611
  },
1610
1612
  empty(t) {
1611
- return c.empty(t);
1613
+ return h.empty(t);
1612
1614
  },
1613
1615
  notEmpty(t) {
1614
- return !c.empty(t);
1616
+ return !h.empty(t);
1615
1617
  },
1616
1618
  pattern(t, e) {
1617
1619
  return new RegExp(e, "g").test(t);
1618
1620
  }
1619
1621
  };
1620
- function st() {
1622
+ function ot() {
1621
1623
  return {
1622
1624
  props: {},
1623
1625
  on: {},
@@ -1632,11 +1634,11 @@ function st() {
1632
1634
  function S(t, e) {
1633
1635
  return (r, i, s, n = {}) => {
1634
1636
  const o = new ve(t, r, i, s, n);
1635
- return e && (c.Function(e) ? e(o) : o.props(e)), o;
1637
+ return e && (h.Function(e) ? e(o) : o.props(e)), o;
1636
1638
  };
1637
1639
  }
1638
1640
  function ve(t, e, r, i, s) {
1639
- this._data = m(st(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1641
+ this._data = m(ot(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1640
1642
  }
1641
1643
  m(ve.prototype, {
1642
1644
  getRule() {
@@ -1650,36 +1652,36 @@ m(ve.prototype, {
1650
1652
  return t._data = $e(this._data), t;
1651
1653
  }
1652
1654
  });
1653
- function ot(t) {
1655
+ function at(t) {
1654
1656
  t.forEach((e) => {
1655
1657
  ve.prototype[e] = function(r) {
1656
1658
  return q(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1657
1659
  };
1658
1660
  });
1659
1661
  }
1660
- ot(Xt());
1661
- const at = S("");
1662
- function tr(t, e, r) {
1663
- let i = at("", e);
1662
+ at(Qt());
1663
+ const lt = S("");
1664
+ function rr(t, e, r) {
1665
+ let i = lt("", e);
1664
1666
  return i._data.type = t, i._data.title = r, i;
1665
1667
  }
1666
- function De(t, e, r, i) {
1667
- let s = at("", r);
1668
+ function Te(t, e, r, i) {
1669
+ let s = lt("", r);
1668
1670
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1669
1671
  }
1670
- function rr() {
1672
+ function ir() {
1671
1673
  return {
1672
- create: tr,
1673
- createTmp: De,
1674
- template: De,
1674
+ create: rr,
1675
+ createTmp: Te,
1676
+ template: Te,
1675
1677
  factory: S
1676
1678
  };
1677
1679
  }
1678
- function ir(t, e, r) {
1680
+ function nr(t, e, r) {
1679
1681
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1680
1682
  return s.status = r.status, s.url = t, s;
1681
1683
  }
1682
- function Te(t) {
1684
+ function Be(t) {
1683
1685
  const e = t.responseText || t.response;
1684
1686
  if (!e)
1685
1687
  return e;
@@ -1689,7 +1691,7 @@ function Te(t) {
1689
1691
  return e;
1690
1692
  }
1691
1693
  }
1692
- function lt(t) {
1694
+ function ut(t) {
1693
1695
  if (typeof XMLHttpRequest == "undefined")
1694
1696
  return;
1695
1697
  const e = new XMLHttpRequest(), r = t.action;
@@ -1697,8 +1699,8 @@ function lt(t) {
1697
1699
  t.onError(o);
1698
1700
  }, e.onload = function() {
1699
1701
  if (e.status < 200 || e.status >= 300)
1700
- return t.onError(ir(r, t, e), Te(e));
1701
- t.onSuccess(Te(e));
1702
+ return t.onError(nr(r, t, e), Be(e));
1703
+ t.onSuccess(Be(e));
1702
1704
  }, e.open(t.method || "get", r, !0);
1703
1705
  let i;
1704
1706
  t.data && ((t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data).map((n) => {
@@ -1709,13 +1711,13 @@ function lt(t) {
1709
1711
  s[n] !== null && e.setRequestHeader(n, s[n]);
1710
1712
  }), e.send(i);
1711
1713
  }
1712
- function nr(t) {
1714
+ function sr(t) {
1713
1715
  return new Promise((e, r) => {
1714
- lt(H(y({}, t), {
1716
+ ut(H(y({}, t), {
1715
1717
  onSuccess(i) {
1716
1718
  let s = (o) => o;
1717
1719
  const n = U(t.parse);
1718
- c.Function(n) ? s = n : n && c.String(n) && (s = (o) => (n.split(".").forEach((a) => {
1720
+ h.Function(n) ? s = n : n && h.String(n) && (s = (o) => (n.split(".").forEach((a) => {
1719
1721
  o && (o = o[a]);
1720
1722
  }), o)), e(s(i));
1721
1723
  },
@@ -1725,12 +1727,12 @@ function nr(t) {
1725
1727
  }));
1726
1728
  });
1727
1729
  }
1728
- function G(t) {
1729
- return N(t);
1730
+ function X(t) {
1731
+ return L(t);
1730
1732
  }
1731
- function sr(t) {
1733
+ function or(t) {
1732
1734
  function e(n) {
1733
- return c.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1735
+ return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1734
1736
  }
1735
1737
  function r(n, o, a) {
1736
1738
  e(n).forEach((u) => {
@@ -1771,13 +1773,13 @@ function sr(t) {
1771
1773
  formData(n) {
1772
1774
  return e(n).reduce((o, a) => {
1773
1775
  const u = t.getFieldCtx(a);
1774
- return u && (o[u.field] = G(u.rule.value)), o;
1775
- }, t.options.appendValue !== !1 ? G(t.appendData) : {});
1776
+ return u && (o[u.field] = X(u.rule.value)), o;
1777
+ }, t.options.appendValue !== !1 ? X(t.appendData) : {});
1776
1778
  },
1777
1779
  getValue(n) {
1778
1780
  const o = t.getFieldCtx(n);
1779
1781
  if (o)
1780
- return G(o.rule.value);
1782
+ return X(o.rule.value);
1781
1783
  },
1782
1784
  coverValue(n) {
1783
1785
  const o = y({}, n || {});
@@ -1786,8 +1788,8 @@ function sr(t) {
1786
1788
  const u = t.fieldCtx[a];
1787
1789
  if (u) {
1788
1790
  const l = w(o, a);
1789
- u.forEach((h) => {
1790
- h.rule.value = l ? o[a] : void 0;
1791
+ u.forEach((c) => {
1792
+ c.rule.value = l ? o[a] : void 0;
1791
1793
  }), delete o[a];
1792
1794
  }
1793
1795
  }), m(t.appendData, o);
@@ -1814,7 +1816,7 @@ function sr(t) {
1814
1816
  }, !0), o ? o.origin : void 0;
1815
1817
  },
1816
1818
  removeRule(n) {
1817
- const o = n && K(n);
1819
+ const o = n && Q(n);
1818
1820
  if (o)
1819
1821
  return o.rm(), o.origin;
1820
1822
  },
@@ -1824,13 +1826,13 @@ function sr(t) {
1824
1826
  fields: () => t.fields(),
1825
1827
  append: (n, o, a) => {
1826
1828
  let u = t.sort.length - 1, l;
1827
- const h = t.getCtx(o);
1828
- h ? a ? (l = h.rule.children, u = h.rule.children.length - 1) : (u = h.root.indexOf(h.origin), l = h.root) : l = t.rules, l.splice(u + 1, 0, n);
1829
+ const c = t.getCtx(o);
1830
+ c ? a ? (l = c.rule.children, u = c.rule.children.length - 1) : (u = c.root.indexOf(c.origin), l = c.root) : l = t.rules, l.splice(u + 1, 0, n);
1829
1831
  },
1830
1832
  prepend: (n, o, a) => {
1831
1833
  let u = 0, l;
1832
- const h = t.getCtx(o);
1833
- h ? a ? l = h.rule.children : (u = h.root.indexOf(h.origin), l = h.root) : l = t.rules, l.splice(u, 0, n);
1834
+ const c = t.getCtx(o);
1835
+ c ? a ? l = c.rule.children : (u = c.root.indexOf(c.origin), l = c.root) : l = t.rules, l.splice(u, 0, n);
1834
1836
  },
1835
1837
  hidden(n, o) {
1836
1838
  r(o, "hidden", !!n), t.refresh();
@@ -1890,7 +1892,7 @@ function sr(t) {
1890
1892
  n.forEach((a) => s.sync(a));
1891
1893
  return;
1892
1894
  }
1893
- let o = c.Object(n) ? K(n) : t.getCtxs(n);
1895
+ let o = h.Object(n) ? Q(n) : t.getCtxs(n);
1894
1896
  o && (o = Array.isArray(o) ? o : [o], o.forEach((a) => {
1895
1897
  if (!a.deleted) {
1896
1898
  const u = t.subForm[a.id];
@@ -1974,9 +1976,11 @@ function sr(t) {
1974
1976
  resetFields(n) {
1975
1977
  e(n).forEach((o) => {
1976
1978
  t.getCtxs(o).forEach((a) => {
1977
- t.$render.clearCache(a), a.rule.value = G(a.defaultValue);
1979
+ t.$render.clearCache(a), a.rule.value = X(a.defaultValue);
1978
1980
  });
1979
- });
1981
+ }), t.vm.$nextTick(() => {
1982
+ s.clearValidateState();
1983
+ }), n == null && (h.Function(t.options.onReset) && E(() => t.options.onReset(s)), t.vm.$emit("reset", s));
1980
1984
  },
1981
1985
  method(n, o) {
1982
1986
  const a = s.el(n);
@@ -1988,7 +1992,7 @@ function sr(t) {
1988
1992
  return E(() => s.method(n, o)(...a));
1989
1993
  },
1990
1994
  toJson(n) {
1991
- return tt(s.rule, n);
1995
+ return rt(s.rule, n);
1992
1996
  },
1993
1997
  trigger(n, o, ...a) {
1994
1998
  const u = s.el(n);
@@ -2020,7 +2024,7 @@ function sr(t) {
2020
2024
  },
2021
2025
  fetch(n) {
2022
2026
  return new Promise((o, a) => {
2023
- t.beforeFetch(n).then(() => nr(n).then(o).catch(a));
2027
+ t.beforeFetch(n).then(() => sr(n).then(o).catch(a));
2024
2028
  });
2025
2029
  },
2026
2030
  getData(n, o) {
@@ -2040,7 +2044,7 @@ function sr(t) {
2040
2044
  };
2041
2045
  }), s.changeValue = s.changeField = s.setValue, s;
2042
2046
  }
2043
- function or(t) {
2047
+ function ar(t) {
2044
2048
  m(t.prototype, {
2045
2049
  initCache() {
2046
2050
  this.clearCacheAll();
@@ -2078,30 +2082,30 @@ function I(t) {
2078
2082
  const e = t.replace(/(-[a-z])/g, function(r) {
2079
2083
  return r.replace("-", "").toLocaleUpperCase();
2080
2084
  });
2081
- return ut(e);
2085
+ return ft(e);
2082
2086
  }
2083
- function ut(t) {
2087
+ function ft(t) {
2084
2088
  return t.replace(t[0], t[0].toLowerCase());
2085
2089
  }
2086
- function ar(t) {
2090
+ function lr(t) {
2087
2091
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
2088
2092
  }
2089
- function X(t) {
2093
+ function Z(t) {
2090
2094
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
2091
2095
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
2092
2096
  }
2093
- let lr = 0;
2094
- function te() {
2095
- const t = 370 + ++lr;
2097
+ let ur = 0;
2098
+ function re() {
2099
+ const t = 370 + ++ur;
2096
2100
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
2097
2101
  }
2098
- function Q(t, e, r) {
2102
+ function Y(t, e, r) {
2099
2103
  let i = t, s;
2100
2104
  return (e || "").split(".").forEach((n) => {
2101
2105
  s && ((!i[s] || typeof i[s] != "object") && (i[s] = {}), i = i[s]), s = n;
2102
2106
  }), i[s] = r, i;
2103
2107
  }
2104
- function ur(t) {
2108
+ function fr(t) {
2105
2109
  m(t.prototype, {
2106
2110
  initRender() {
2107
2111
  this.tempList = {}, this.clearOrgChildren();
@@ -2111,7 +2115,7 @@ function ur(t) {
2111
2115
  this.orgChildren = Object.keys(e).reduce((r, i) => {
2112
2116
  if (e[i].parser.loadChildren !== !1) {
2113
2117
  const s = e[i].rule.children;
2114
- r[i] = c.trueArray(s) ? [...s] : [];
2118
+ r[i] = h.trueArray(s) ? [...s] : [];
2115
2119
  }
2116
2120
  return r;
2117
2121
  }, {});
@@ -2123,7 +2127,7 @@ function ur(t) {
2123
2127
  const r = (i) => {
2124
2128
  if (i) {
2125
2129
  let s;
2126
- return e.rule.field && (s = i.$scopedSlots["field-" + X(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + X(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2130
+ return e.rule.field && (s = i.$scopedSlots["field-" + Z(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + Z(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2127
2131
  }
2128
2132
  };
2129
2133
  return r(this.vm);
@@ -2142,11 +2146,11 @@ function ur(t) {
2142
2146
  makeVm(e) {
2143
2147
  const r = e.vm;
2144
2148
  if (r) {
2145
- if (c.Function(r))
2149
+ if (h.Function(r))
2146
2150
  return E(() => e.vm(this.$handle.getInjectData(e)));
2147
2151
  if (!r._isVue)
2148
- return new B(r);
2149
- } else return new B();
2152
+ return new D(r);
2153
+ } else return new D();
2150
2154
  return r;
2151
2155
  },
2152
2156
  mergeGlobal(e) {
@@ -2154,12 +2158,12 @@ function ur(t) {
2154
2158
  r && (e.cacheConfig || (e.cacheConfig = r[e.originType] || r[e.type] || r[e.trueType] || {}), e.prop = q({}, [r["*"], e.cacheConfig, e.prop]));
2155
2159
  },
2156
2160
  setOptions(e) {
2157
- e.prop.optionsTo && e.prop.options && Q(e.prop, e.prop.optionsTo, e.prop.options);
2161
+ e.prop.optionsTo && e.prop.options && Y(e.prop, e.prop.optionsTo, e.prop.options);
2158
2162
  },
2159
2163
  deepSet(e) {
2160
2164
  const r = e.rule.deep;
2161
2165
  r && Object.keys(r).sort((i, s) => i.length < s.length ? -1 : 1).forEach((i) => {
2162
- Q(e.prop, i, r[i]);
2166
+ Y(e.prop, i, r[i]);
2163
2167
  });
2164
2168
  },
2165
2169
  setTempProps(e, r) {
@@ -2172,8 +2176,8 @@ function ur(t) {
2172
2176
  s.indexOf(a) > -1 && (e.$props[a] = i.value);
2173
2177
  },
2174
2178
  renderTemp(e) {
2175
- if (!B.compile)
2176
- return Qt("当前使用的Vue构建版本不支持compile,无法使用template功能"), [];
2179
+ if (!D.compile)
2180
+ return Zt("当前使用的Vue构建版本不支持compile,无法使用template功能"), [];
2177
2181
  const r = e.prop, { id: i, key: s } = e;
2178
2182
  if (!this.tempList[i]) {
2179
2183
  e.el || (e.el = this.makeVm(r), this.vm.$nextTick(() => e.parser.mounted(e)));
@@ -2182,16 +2186,16 @@ function ur(t) {
2182
2186
  this.onInput(e, l);
2183
2187
  }), this.tempList[i] = {
2184
2188
  vm: u,
2185
- template: B.compile(r.template)
2189
+ template: D.compile(r.template)
2186
2190
  };
2187
2191
  }
2188
2192
  const { vm: n, template: o } = this.tempList[i];
2189
2193
  this.setTempProps(n, e);
2190
2194
  const a = o.render.call(n);
2191
- return c.Undef(a.data) && (a.data = {}), a.key = s, a.data.ref = e.ref, a.data.key = s, a;
2195
+ return h.Undef(a.data) && (a.data = {}), a.key = s, a.data.ref = e.ref, a.data.key = s, a;
2192
2196
  },
2193
2197
  parseSide(e, r) {
2194
- return c.Object(e) ? q({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2198
+ return h.Object(e) ? q({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2195
2199
  },
2196
2200
  renderSides(e, r, i) {
2197
2201
  const s = r[i ? "rule" : "prop"];
@@ -2209,7 +2213,7 @@ function ur(t) {
2209
2213
  const i = e.rule;
2210
2214
  if (!this.cache[e.id] || this.cache[e.id].slot !== i.slot) {
2211
2215
  let s, n = i.cache !== !1;
2212
- const o = e.trueType, a = !(c.Undef(i.display) || i.display);
2216
+ const o = e.trueType, a = !(h.Undef(i.display) || i.display);
2213
2217
  if (o === "template" && !i.template)
2214
2218
  s = this.renderSides(this.renderChildren(e), e, !0), a && this.display(s), s = this.item(e, s);
2215
2219
  else if (o === "fcFragment")
@@ -2226,19 +2230,19 @@ function ur(t) {
2226
2230
  if (o === "template" && u.template)
2227
2231
  s = this.renderTemp(e), n = !1;
2228
2232
  else {
2229
- let h = [];
2230
- e.parser.renderChildren ? h = e.parser.renderChildren(e) : e.parser.loadChildren !== !1 && (h = this.renderChildren(e));
2233
+ let c = [];
2234
+ e.parser.renderChildren ? c = e.parser.renderChildren(e) : e.parser.loadChildren !== !1 && (c = this.renderChildren(e));
2231
2235
  const g = this.getTypeSlot(e);
2232
2236
  g ? s = g({
2233
2237
  rule: i,
2234
2238
  prop: u,
2235
2239
  preview: l,
2236
- children: h,
2240
+ children: c,
2237
2241
  api: this.$handle.api,
2238
2242
  model: u.model || {}
2239
- }) : s = l ? e.parser.preview(h, e) : e.parser.render(h, e);
2243
+ }) : s = l ? e.parser.preview(c, e) : e.parser.render(c, e);
2240
2244
  }
2241
- s = this.renderSides(s, e), !(!e.input && c.Undef(u.native)) && u.native !== !0 && (s = this.$manager.makeWrap(e, s)), a && (s = this.display(s)), s = this.item(e, s);
2245
+ s = this.renderSides(s, e), !(!e.input && h.Undef(u.native)) && u.native !== !0 && (s = this.$manager.makeWrap(e, s)), a && (s = this.display(s)), s = this.item(e, s);
2242
2246
  }
2243
2247
  return n && this.setCache(e, s, r), s;
2244
2248
  }
@@ -2256,7 +2260,7 @@ function ur(t) {
2256
2260
  },
2257
2261
  none(e) {
2258
2262
  if (e && e.data)
2259
- return Array.isArray(e.data.style) ? e.data.style.push({ display: "none" }) : c.String(e.data.style) ? e.data.style += ";display:none;" : e.data.style = [e.data.style, { display: "none" }], e;
2263
+ return Array.isArray(e.data.style) ? e.data.style.push({ display: "none" }) : h.String(e.data.style) ? e.data.style += ";display:none;" : e.data.style = [e.data.style, { display: "none" }], e;
2260
2264
  },
2261
2265
  item(e, r) {
2262
2266
  return this.$h("fcFragment", {
@@ -2328,8 +2332,8 @@ function ur(t) {
2328
2332
  this.$handle.onInput(e, r);
2329
2333
  },
2330
2334
  renderChildren(e) {
2331
- const { children: r } = e.rule, i = this.orgChildren[e.id], s = (n) => !c.String(n) && n.__fc__ && !this.$handle.ctxs[n.__fc__.id];
2332
- return !c.trueArray(r) && i ? (this.$handle.deferSyncValue(() => {
2335
+ const { children: r } = e.rule, i = this.orgChildren[e.id], s = (n) => !h.String(n) && n.__fc__ && !this.$handle.ctxs[n.__fc__.id];
2336
+ return !h.trueArray(r) && i ? (this.$handle.deferSyncValue(() => {
2333
2337
  i.forEach((n) => {
2334
2338
  n && s(n) && this.$handle.rmCtx(n.__fc__);
2335
2339
  });
@@ -2339,7 +2343,7 @@ function ur(t) {
2339
2343
  });
2340
2344
  }), r.map((n) => {
2341
2345
  if (n) {
2342
- if (c.String(n)) return n;
2346
+ if (h.String(n)) return n;
2343
2347
  if (n.__fc__)
2344
2348
  return this.renderCtx(n.__fc__, e);
2345
2349
  n.type && this.vm.$nextTick(() => {
@@ -2350,11 +2354,11 @@ function ur(t) {
2350
2354
  },
2351
2355
  defaultRender(e, r) {
2352
2356
  const i = e.prop;
2353
- return i.component ? this.vNode.makeComponent(i.component, i, r) : this.vNode[e.type] ? this.vNode[e.type](i, r) : this.vNode[e.originType] ? this.vNode[e.originType](i, r) : this.vNode.make(ut(e.originType), i, r);
2357
+ return i.component ? 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(ft(e.originType), i, r);
2354
2358
  },
2355
2359
  renderRule(e, r, i) {
2356
2360
  if (!e) return;
2357
- if (c.String(e)) return e;
2361
+ if (h.String(e)) return e;
2358
2362
  let s;
2359
2363
  if (i)
2360
2364
  s = e.type;
@@ -2365,7 +2369,7 @@ function ur(t) {
2365
2369
  }
2366
2370
  if (!s) return;
2367
2371
  let n = [[r]];
2368
- return c.trueArray(e.children) && n.push(e.children.map((o) => this.renderRule(o))), this.$h(s, y({}, e), n);
2372
+ return h.trueArray(e.children) && n.push(e.children.map((o) => this.renderRule(o))), this.$h(s, y({}, e), n);
2369
2373
  }
2370
2374
  });
2371
2375
  }
@@ -2376,7 +2380,7 @@ function be(t) {
2376
2380
  vm: t.vm,
2377
2381
  $manager: t.$manager,
2378
2382
  vNode: new t.fc.CreateNode(t.vm)
2379
- }), nt(this, {
2383
+ }), st(this, {
2380
2384
  options() {
2381
2385
  return t.options;
2382
2386
  },
@@ -2385,9 +2389,9 @@ function be(t) {
2385
2389
  }
2386
2390
  }), this.initCache(), this.initRender();
2387
2391
  }
2388
- or(be);
2389
- ur(be);
2390
- function fr(t) {
2392
+ ar(be);
2393
+ fr(be);
2394
+ function hr(t) {
2391
2395
  m(t.prototype, {
2392
2396
  parseInjectEvent(e, r) {
2393
2397
  const i = e.inject || this.options.injectEvent;
@@ -2400,11 +2404,11 @@ function fr(t) {
2400
2404
  }), r;
2401
2405
  },
2402
2406
  parseEvent(e, r, i, s) {
2403
- if (c.Function(r) && (i !== !1 && !c.Undef(i) || r.__inject))
2407
+ if (h.Function(r) && (i !== !1 && !h.Undef(i) || r.__inject))
2404
2408
  return this.inject(e, r, i);
2405
- if (!s && Array.isArray(r) && r[0] && (c.String(r[0]) || c.Function(r[0])))
2409
+ if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2406
2410
  return this.parseEventLst(e, r, i, !0);
2407
- if (c.String(r)) {
2411
+ if (h.String(r)) {
2408
2412
  const n = U(r);
2409
2413
  if (n && r !== n)
2410
2414
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
@@ -2412,19 +2416,19 @@ function fr(t) {
2412
2416
  },
2413
2417
  parseEmit(e, r) {
2414
2418
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: u } = s, l = s[r ? "emit" : "nativeEmit"] || [];
2415
- return c.trueArray(l) && l.forEach((h) => {
2416
- if (!h) return;
2419
+ return h.trueArray(l) && l.forEach((c) => {
2420
+ if (!c) return;
2417
2421
  let g, b = n || o || a;
2418
- if (c.Object(h) && (g = h.inject, h = h.name, b = h.prefix || b), b) {
2422
+ if (h.Object(c) && (g = c.inject, c = c.name, b = c.prefix || b), b) {
2419
2423
  r || (b = `native-${b}`);
2420
- const k = X(`${b}-${h}`), v = (...O) => {
2421
- this.vm.$emit(k, ...O), this.vm.$emit("emit-event", k, ...O);
2424
+ const O = Z(`${b}-${c}`), $ = (...k) => {
2425
+ this.vm.$emit(O, ...k), this.vm.$emit("emit-event", O, ...k);
2422
2426
  };
2423
- if (v.__emit = !0, !g && u === !1)
2424
- i[h] = v;
2427
+ if ($.__emit = !0, !g && u === !1)
2428
+ i[c] = $;
2425
2429
  else {
2426
- let O = g || u || this.options.injectEvent;
2427
- i[h] = c.Undef(O) ? v : this.inject(s, v, O);
2430
+ let k = g || u || this.options.injectEvent;
2431
+ i[c] = h.Undef(k) ? $ : this.inject(s, $, k);
2428
2432
  }
2429
2433
  }
2430
2434
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2454,14 +2458,14 @@ function fr(t) {
2454
2458
  }
2455
2459
  });
2456
2460
  }
2457
- const Be = ["hook:updated", "hook:mounted"];
2458
- function hr(t) {
2461
+ const Le = ["hook:updated", "hook:mounted"];
2462
+ function cr(t) {
2459
2463
  m(t.prototype, {
2460
2464
  usePage() {
2461
2465
  const e = this.options.page;
2462
2466
  if (!e) return;
2463
- let r = 25, i = cr(this.rules);
2464
- c.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), m(this, {
2467
+ let r = 25, i = dr(this.rules);
2468
+ h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), m(this, {
2465
2469
  first: r,
2466
2470
  limit: i,
2467
2471
  pageEnd: this.rules.length <= r
@@ -2469,16 +2473,16 @@ function hr(t) {
2469
2473
  },
2470
2474
  pageLoad() {
2471
2475
  const e = () => {
2472
- this.pageEnd ? (this.vm.$off(Be, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2476
+ this.pageEnd ? (this.vm.$off(Le, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2473
2477
  };
2474
- this.vm.$on(Be, e);
2478
+ this.vm.$on(Le, e);
2475
2479
  }
2476
2480
  });
2477
2481
  }
2478
- function cr(t) {
2482
+ function dr(t) {
2479
2483
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2480
2484
  }
2481
- function dr(t) {
2485
+ function pr(t) {
2482
2486
  m(t.prototype, {
2483
2487
  clearNextTick() {
2484
2488
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
@@ -2493,13 +2497,13 @@ function dr(t) {
2493
2497
  }
2494
2498
  });
2495
2499
  }
2496
- function pr(t) {
2500
+ function mr(t) {
2497
2501
  Object.defineProperties(t.origin, {
2498
- __fc__: rt(t, !0)
2502
+ __fc__: it(t, !0)
2499
2503
  });
2500
2504
  }
2501
- function ft(t, e, r) {
2502
- const i = te();
2505
+ function ht(t, e, r) {
2506
+ const i = re();
2503
2507
  m(this, {
2504
2508
  id: i,
2505
2509
  ref: i,
@@ -2519,11 +2523,11 @@ function ft(t, e, r) {
2519
2523
  input: !!e.field,
2520
2524
  el: void 0,
2521
2525
  exportEl: void 0,
2522
- defaultValue: e.field ? N(r) : void 0,
2526
+ defaultValue: e.field ? L(r) : void 0,
2523
2527
  field: e.field || void 0
2524
- }), this.updateType(), this.updateKey(), pr(this), this.update(t, !0);
2528
+ }), this.updateType(), this.updateKey(), mr(this), this.update(t, !0);
2525
2529
  }
2526
- m(ft.prototype, {
2530
+ m(ht.prototype, {
2527
2531
  effectData(t) {
2528
2532
  return this.payload[t] || (this.payload[t] = {}), this.payload[t];
2529
2533
  },
@@ -2531,7 +2535,7 @@ m(ft.prototype, {
2531
2535
  t === void 0 ? this.payload = {} : delete this.payload[t];
2532
2536
  },
2533
2537
  updateKey(t) {
2534
- this.key = te(), t && this.parent && this.parent.updateKey(t);
2538
+ this.key = re(), t && this.parent && this.parent.updateKey(t);
2535
2539
  },
2536
2540
  updateType() {
2537
2541
  this.originType = this.rule.type, this.type = I(this.rule.type);
@@ -2545,7 +2549,7 @@ m(ft.prototype, {
2545
2549
  },
2546
2550
  injectValidate() {
2547
2551
  return j(this.prop.validate).map((t) => {
2548
- if (c.Function(t.validator)) {
2552
+ if (h.Function(t.validator)) {
2549
2553
  const e = y({}, t), r = this;
2550
2554
  return e.validator = function(...i) {
2551
2555
  return t.validator.call({
@@ -2624,7 +2628,7 @@ m(ft.prototype, {
2624
2628
  }), !e && this.unwatch(), this.watchTo(), this.link();
2625
2629
  }
2626
2630
  });
2627
- function mr(t) {
2631
+ function yr(t) {
2628
2632
  m(t.prototype, {
2629
2633
  nextRefresh(e) {
2630
2634
  const r = this.loadedId;
@@ -2633,10 +2637,10 @@ function mr(t) {
2633
2637
  });
2634
2638
  },
2635
2639
  parseRule(e) {
2636
- const r = Ve(e);
2640
+ const r = Pe(e);
2637
2641
  return Object.defineProperties(r, {
2638
- __origin__: rt(e, !0)
2639
- }), yr(r), this.appendValue(r), r.options = Array.isArray(r.options) ? r.options : [], [r, r.prefix, r.suffix].forEach((i) => {
2642
+ __origin__: it(e, !0)
2643
+ }), gr(r), this.appendValue(r), r.options = Array.isArray(r.options) ? r.options : [], [r, r.prefix, r.suffix].forEach((i) => {
2640
2644
  i && this.loadFn(i, r);
2641
2645
  }), this.loadCtrl(r), r.update && (r.update = U(r.update)), r;
2642
2646
  },
@@ -2652,7 +2656,7 @@ function mr(t) {
2652
2656
  },
2653
2657
  syncProp(e) {
2654
2658
  const r = e.rule;
2655
- c.trueArray(r.sync) && T([{
2659
+ h.trueArray(r.sync) && T([{
2656
2660
  on: r.sync.reduce((i, s) => (i[`update:${s}`] = (n) => {
2657
2661
  r.props[s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
2658
2662
  }, i), {})
@@ -2678,97 +2682,97 @@ function mr(t) {
2678
2682
  let a = this.sort.indexOf(o.__fc__.id);
2679
2683
  return a > -1 ? a : i(n - 1);
2680
2684
  }, s = (n, o) => {
2681
- c.trueArray(n) && this._loadRule(n, o);
2685
+ h.trueArray(n) && this._loadRule(n, o);
2682
2686
  };
2683
2687
  e.map((n, o) => {
2684
- if (r && !c.Object(n) || !this.pageEnd && !r && o >= this.first) return;
2688
+ if (r && !h.Object(n) || !this.pageEnd && !r && o >= this.first) return;
2685
2689
  if (n.__fc__ && n.__fc__.root === e && this.ctxs[n.__fc__.id])
2686
2690
  return s(n.__fc__.rule.children, n.__fc__), n.__fc__;
2687
- let a = Ve(n);
2691
+ let a = Pe(n);
2688
2692
  const u = () => !!(a.field && this.fieldCtx[a.field] && this.fieldCtx[a.field][0] !== n.__fc__);
2689
2693
  this.ruleEffect(a, "init", { repeat: u() }), u() && this.vm.$emit("repeat-field", n, this.api);
2690
- let l, h = !1, g = !!n.__fc__, b = a.value;
2694
+ let l, c = !1, g = !!n.__fc__, b = a.value;
2691
2695
  if (g) {
2692
2696
  l = n.__fc__, b = l.defaultValue;
2693
- const v = !l.check(this);
2697
+ const $ = !l.check(this);
2694
2698
  if (l.deleted) {
2695
- if (v) {
2696
- if (Le(l))
2699
+ if ($) {
2700
+ if (Ne(l))
2697
2701
  return;
2698
2702
  l.update(this);
2699
2703
  }
2700
- } else if (v) {
2701
- if (Le(l))
2704
+ } else if ($) {
2705
+ if (Ne(l))
2702
2706
  return;
2703
- e[o] = n = n._clone ? n._clone() : $e(n), l = null, h = !0;
2707
+ e[o] = n = n._clone ? n._clone() : $e(n), l = null, c = !0;
2704
2708
  }
2705
2709
  }
2706
2710
  if (l)
2707
- l.originType !== l.rule.type && (l.updateType(), this.bindParser(l)), this.appendValue(l.rule);
2711
+ l.originType !== l.rule.type && l.updateType(), this.bindParser(l), this.appendValue(l.rule);
2708
2712
  else {
2709
- const v = this.parseRule(n);
2710
- l = new ft(this, v, b), this.bindParser(l);
2713
+ const $ = this.parseRule(n);
2714
+ l = new ht(this, $, b), this.bindParser(l);
2711
2715
  }
2712
- if ([!1, !0].forEach((v) => this.parseEmit(l, v)), this.syncProp(l), l.parent = r || null, l.root = e, this.setCtx(l), !h && !g && this.effect(l, "load"), this.effect(l, "created"), l.parser.loadChildren === !1 || s(l.rule.children, l), !r) {
2713
- const v = i(o);
2714
- v > -1 || !o ? this.sort.splice(v + 1, 0, l.id) : this.sort.push(l.id);
2716
+ if ([!1, !0].forEach(($) => this.parseEmit(l, $)), this.syncProp(l), l.parent = r || null, l.root = e, this.setCtx(l), !c && !g && this.effect(l, "load"), this.effect(l, "created"), l.parser.loadChildren === !1 || s(l.rule.children, l), !r) {
2717
+ const $ = i(o);
2718
+ $ > -1 || !o ? this.sort.splice($ + 1, 0, l.id) : this.sort.push(l.id);
2715
2719
  }
2716
- const k = l.rule;
2717
- return l.updated || (l.updated = !0, c.Function(k.update) && this.bus.$once("load-end", () => {
2718
- this.refreshUpdate(l, k.value, "init");
2719
- }), this.effect(l, "loaded")), l.input && Object.defineProperty(k, "value", this.valueHandle(l)), this.refreshControl(l) && (this.cycleLoad = !0), l;
2720
+ const O = l.rule;
2721
+ return l.updated || (l.updated = !0, h.Function(O.update) && this.bus.$once("load-end", () => {
2722
+ this.refreshUpdate(l, O.value, "init");
2723
+ }), this.effect(l, "loaded")), l.input && Object.defineProperty(O, "value", this.valueHandle(l)), this.refreshControl(l) && (this.cycleLoad = !0), l;
2720
2724
  });
2721
2725
  },
2722
2726
  refreshControl(e) {
2723
2727
  return e.input && e.rule.control && this.useCtrl(e);
2724
2728
  },
2725
2729
  useCtrl(e) {
2726
- const r = gr(e), i = [], s = this.api;
2730
+ const r = $r(e), i = [], s = this.api;
2727
2731
  if (!r.length) return !1;
2728
2732
  for (let a = 0; a < r.length; a++) {
2729
2733
  const u = r[a], l = u.handle || function(g) {
2730
2734
  return (W[u.condition || "=="] || W["=="])(g, u.value);
2731
2735
  };
2732
- if (!c.trueArray(u.rule)) continue;
2733
- const h = H(y({}, u), {
2736
+ if (!h.trueArray(u.rule)) continue;
2737
+ const c = H(y({}, u), {
2734
2738
  valid: E(() => l(e.rule.value, s)),
2735
- ctrl: $r(e, u.rule),
2736
- isHidden: c.String(u.rule[0])
2739
+ ctrl: vr(e, u.rule),
2740
+ isHidden: h.String(u.rule[0])
2737
2741
  });
2738
- h.valid && h.ctrl || !h.valid && !h.ctrl && !h.isHidden || i.push(h);
2742
+ c.valid && c.ctrl || !c.valid && !c.ctrl && !c.isHidden || i.push(c);
2739
2743
  }
2740
2744
  if (!i.length) return !1;
2741
2745
  const n = [];
2742
2746
  let o = !1;
2743
2747
  return this.deferSyncValue(() => {
2744
- i.reverse().forEach(({ isHidden: a, valid: u, rule: l, prepend: h, append: g, child: b, ctrl: k, method: v }) => {
2748
+ i.reverse().forEach(({ isHidden: a, valid: u, rule: l, prepend: c, append: g, child: b, ctrl: O, method: $ }) => {
2745
2749
  if (a) {
2746
2750
  u ? e.ctrlRule.push({
2747
2751
  __ctrl: !0,
2748
2752
  children: l,
2749
2753
  valid: u
2750
- }) : e.ctrlRule.splice(e.ctrlRule.indexOf(k), 1), n[u ? "push" : "unshift"](() => {
2751
- v === "disabled" ? this.api.disabled(!u, l) : v === "display" ? this.api.display(u, l) : v === "required" ? (l.forEach((O) => {
2752
- this.api.setEffect(O, "required", u);
2754
+ }) : O && e.ctrlRule.splice(e.ctrlRule.indexOf(O) >>> 0, 1), n[u ? "push" : "unshift"](() => {
2755
+ $ === "disabled" || $ === "enabled" ? this.api.disabled(!u, l) : $ === "display" ? this.api.display(u, l) : $ === "required" ? (l.forEach((k) => {
2756
+ this.api.setEffect(k, "required", u);
2753
2757
  }), u || this.api.clearValidateState(l)) : this.api.hidden(!u, l);
2754
2758
  });
2755
2759
  return;
2756
2760
  }
2757
2761
  if (u) {
2758
2762
  o = !0;
2759
- const O = {
2763
+ const k = {
2760
2764
  type: "fcFragment",
2761
2765
  native: !0,
2762
2766
  __ctrl: !0,
2763
2767
  children: l
2764
2768
  };
2765
- e.ctrlRule.push(O), this.bus.$once("load-start", () => {
2766
- h ? s.prepend(O, h, b) : g || b ? s.append(O, g || e.id, b) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, O);
2769
+ e.ctrlRule.push(k), this.bus.$once("load-start", () => {
2770
+ c ? s.prepend(k, c, b) : g || b ? s.append(k, g || e.id, b) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, k);
2767
2771
  });
2768
2772
  } else {
2769
- e.ctrlRule.splice(e.ctrlRule.indexOf(k), 1);
2770
- const O = K(k);
2771
- O && O.rm();
2773
+ e.ctrlRule.splice(e.ctrlRule.indexOf(O), 1);
2774
+ const k = Q(O);
2775
+ k && k.rm();
2772
2776
  }
2773
2777
  });
2774
2778
  }), n.length && this.vm.$nextTick(() => {
@@ -2793,30 +2797,30 @@ function mr(t) {
2793
2797
  }
2794
2798
  });
2795
2799
  }
2796
- function yr(t) {
2797
- const e = st();
2800
+ function gr(t) {
2801
+ const e = ot();
2798
2802
  return Object.keys(e).forEach((r) => {
2799
2803
  w(t, r) || F(t, r, e[r]);
2800
2804
  }), t;
2801
2805
  }
2802
- function gr(t) {
2806
+ function $r(t) {
2803
2807
  const e = t.rule.control || [];
2804
- return c.Object(e) ? [e] : e;
2808
+ return h.Object(e) ? [e] : e;
2805
2809
  }
2806
- function $r(t, e) {
2810
+ function vr(t, e) {
2807
2811
  for (let r = 0; r < t.ctrlRule.length; r++) {
2808
2812
  const i = t.ctrlRule[r];
2809
2813
  if (i.children === e)
2810
2814
  return i;
2811
2815
  }
2812
2816
  }
2813
- function Le(t) {
2817
+ function Ne(t) {
2814
2818
  return !!t.rule.__ctrl;
2815
2819
  }
2816
- function vr(t) {
2820
+ function br(t) {
2817
2821
  m(t.prototype, {
2818
2822
  getValue(e) {
2819
- return c.Undef(e.cacheValue) && (e.cacheValue = e.parser.toValue(this.getFormData(e), e)), e.cacheValue;
2823
+ return h.Undef(e.cacheValue) && (e.cacheValue = e.parser.toValue(this.getFormData(e), e)), e.cacheValue;
2820
2824
  },
2821
2825
  setValue(e, r, i, s) {
2822
2826
  e.deleted || (e.cacheValue = 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.emitEvent("change", e.field, r, {
@@ -2836,14 +2840,14 @@ function vr(t) {
2836
2840
  return this.formData[e.id];
2837
2841
  },
2838
2842
  validate() {
2839
- return Me(this.vm.validate), this.fields().forEach((e) => {
2843
+ return Ue(this.vm.validate), this.fields().forEach((e) => {
2840
2844
  this.fieldCtx[e].forEach((r) => {
2841
2845
  this.vm.validate[r.id] = j(r.rule.validate);
2842
2846
  });
2843
2847
  }), this.vm.validate;
2844
2848
  },
2845
2849
  syncForm() {
2846
- Me(this.form), Object.defineProperties(this.form, this.fields().reduce((e, r) => {
2850
+ Ue(this.form), Object.defineProperties(this.form, this.fields().reduce((e, r) => {
2847
2851
  const i = this.getFieldCtx(r), s = this.valueHandle(i);
2848
2852
  return s.configurable = !0, e[r] = s, e;
2849
2853
  }, this.options.appendValue !== !1 ? Object.keys(this.appendData).reduce((e, r) => (e[r] = {
@@ -2879,13 +2883,13 @@ function vr(t) {
2879
2883
  this.vm._updateValue(y(y({}, this.options.appendValue !== !1 ? this.appendData : {}), this.form));
2880
2884
  },
2881
2885
  isChange(e, r) {
2882
- return JSON.stringify(e.rule.value, Ne) !== JSON.stringify(r === null ? void 0 : r, Ne);
2886
+ return JSON.stringify(e.rule.value, Me) !== JSON.stringify(r === null ? void 0 : r, Me);
2883
2887
  },
2884
2888
  isQuote(e, r) {
2885
- return (c.Object(r) || Array.isArray(r)) && r === e.rule.value;
2889
+ return (h.Object(r) || Array.isArray(r)) && r === e.rule.value;
2886
2890
  },
2887
2891
  refreshUpdate(e, r, i, s) {
2888
- if (c.Function(e.rule.update)) {
2892
+ if (h.Function(e.rule.update)) {
2889
2893
  const n = E(() => e.rule.update(r, e.origin, this.api, {
2890
2894
  origin: i || "change",
2891
2895
  linkField: s
@@ -2902,7 +2906,7 @@ function vr(t) {
2902
2906
  },
2903
2907
  appendLink(e) {
2904
2908
  const r = e.rule.link;
2905
- c.trueArray(r) && r.forEach((i) => {
2909
+ h.trueArray(r) && r.forEach((i) => {
2906
2910
  const s = () => this.refreshRule(e, e.rule.value, "link", i);
2907
2911
  this.bus.$on("change-" + i, s), e.linkOn.push(() => this.bus.$off("change-" + i, s));
2908
2912
  });
@@ -2912,10 +2916,10 @@ function vr(t) {
2912
2916
  }
2913
2917
  });
2914
2918
  }
2915
- function Ne(t, e) {
2919
+ function Me(t, e) {
2916
2920
  return typeof e == "function" ? "" + e : e;
2917
2921
  }
2918
- function Me(t) {
2922
+ function Ue(t) {
2919
2923
  Object.keys(t).forEach((e) => delete t[e]);
2920
2924
  }
2921
2925
  const ce = {
@@ -2937,8 +2941,8 @@ const ce = {
2937
2941
  },
2938
2942
  mergeProp(t) {
2939
2943
  }
2940
- }, br = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "component", "cache"];
2941
- function Cr(t) {
2944
+ }, Cr = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "component", "cache"];
2945
+ function _r(t) {
2942
2946
  m(t.prototype, {
2943
2947
  getCtx(e) {
2944
2948
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
@@ -2982,7 +2986,7 @@ function Cr(t) {
2982
2986
  },
2983
2987
  watchCtx(e) {
2984
2988
  const r = this.vm;
2985
- Object.keys(e.rule).filter((i) => i[0] !== "_" && i[0] !== "$" && br.indexOf(i) === -1).forEach((i) => {
2989
+ Object.keys(e.rule).filter((i) => i[0] !== "_" && i[0] !== "$" && Cr.indexOf(i) === -1).forEach((i) => {
2986
2990
  const s = i === "children";
2987
2991
  e.watch.push(r.$watch(() => e.rule[i], (n, o) => {
2988
2992
  if (!(this.loading || this.noWatchFn || this.reloading)) {
@@ -3002,7 +3006,7 @@ function Cr(t) {
3002
3006
  else if (i === "type")
3003
3007
  e.updateType(), this.bindParser(e);
3004
3008
  else if (i === "children") {
3005
- const a = c.trueArray(n);
3009
+ const a = h.trueArray(n);
3006
3010
  this.deferSyncValue(() => {
3007
3011
  n !== o && (this.rmSub(o, e), this.$render.initOrgChildren()), a && this.loadChildren(n, e), this.vm.$emit("update", this.api);
3008
3012
  });
@@ -3013,7 +3017,7 @@ function Cr(t) {
3013
3017
  }), this.watchEffect(e);
3014
3018
  },
3015
3019
  rmSub(e, r) {
3016
- c.trueArray(e) && e.forEach((i) => {
3020
+ h.trueArray(e) && e.forEach((i) => {
3017
3021
  i && i.__fc__ && i.__fc__.parent === r && this.rmCtx(i.__fc__);
3018
3022
  });
3019
3023
  },
@@ -3023,15 +3027,15 @@ function Cr(t) {
3023
3027
  e.input && Object.defineProperty(e.rule, "value", {
3024
3028
  value: e.rule.value,
3025
3029
  writable: !0
3026
- }), L(this.ctxs, r), L(this.$render.tempList, r), L(this.$render.orgChildren, r), L(this.vm.ctxInject, r), L(this.formData, r), L(this.subForm, r), L(e, "cacheValue"), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !w(this.fieldCtx, i) && L(this.form, i), this.deferSyncValue(() => {
3027
- this.reloading || (e.parser.loadChildren !== !1 && c.trueArray(e.rule.children) && e.rule.children.forEach((a) => a.__fc__ && this.rmCtx(a.__fc__)), e.root === this.rules && this.vm._renderRule());
3030
+ }), B(this.ctxs, r), B(this.$render.tempList, r), B(this.$render.orgChildren, r), B(this.vm.ctxInject, r), B(this.formData, r), B(this.subForm, r), B(e, "cacheValue"), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !w(this.fieldCtx, i) && B(this.form, i), this.deferSyncValue(() => {
3031
+ this.reloading || (e.parser.loadChildren !== !1 && h.trueArray(e.rule.children) && e.rule.children.forEach((a) => a.__fc__ && this.rmCtx(a.__fc__)), e.root === this.rules && this.vm._renderRule());
3028
3032
  }, s);
3029
3033
  const o = this.sort.indexOf(r);
3030
3034
  return o > -1 && this.sort.splice(o, 1), this.$render.clearCache(e), e.delete(), this.effect(e, "deleted"), s && !this.fieldCtx[i] && this.vm.$emit("removeField", i, e.rule, this.api), e.rule.__ctrl || this.vm.$emit("removeRule", e.rule, this.api), e;
3031
3035
  }
3032
3036
  });
3033
3037
  }
3034
- function _r(t) {
3038
+ function Or(t) {
3035
3039
  m(t.prototype, {
3036
3040
  mounted() {
3037
3041
  const e = () => {
@@ -3046,7 +3050,7 @@ function _r(t) {
3046
3050
  const i = this.options[e] || this.options[I("on-" + e)];
3047
3051
  if (i) {
3048
3052
  const s = U(i);
3049
- c.Function(s) && E(() => s(...r));
3053
+ h.Function(s) && E(() => s(...r));
3050
3054
  }
3051
3055
  this.bus.$emit(e, ...r);
3052
3056
  }
@@ -3058,7 +3062,7 @@ function kr(t) {
3058
3062
  const e = this.fc.providers;
3059
3063
  Object.keys(e).forEach((r) => {
3060
3064
  let i = e[r];
3061
- c.Function(i) && (i = i(this.fc)), i._c = wr(i), this.onEffect(i), this.providers[r] = i;
3065
+ h.Function(i) && (i = i(this.fc)), i._c = Fr(i), this.onEffect(i), this.providers[r] = i;
3062
3066
  });
3063
3067
  },
3064
3068
  onEffect(e) {
@@ -3112,34 +3116,34 @@ function kr(t) {
3112
3116
  },
3113
3117
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
3114
3118
  if (!s || s === "fcFragment") return;
3115
- const u = n || Object.keys(r).reduce((l, h) => (h[0] === "$" && (l[h.substr(1)] = r[h]), l), y({}, r.effect || {}));
3119
+ const u = n || Object.keys(r).reduce((l, c) => (c[0] === "$" && (l[c.substr(1)] = r[c]), l), y({}, r.effect || {}));
3116
3120
  Object.keys(u).forEach((l) => {
3117
- const h = this.providers[l];
3118
- if (!h || h.input && !i) return;
3121
+ const c = this.providers[l];
3122
+ if (!c || c.input && !i) return;
3119
3123
  let g;
3120
- if (!h._c)
3124
+ if (!c._c)
3121
3125
  g = "*";
3122
- else if (h._used.indexOf(s) > -1)
3126
+ else if (c._used.indexOf(s) > -1)
3123
3127
  g = s;
3124
3128
  else
3125
3129
  return;
3126
3130
  const b = y({ value: u[l], getValue: () => this.getEffect(r, l) }, a || {});
3127
- e && (b.getProp = () => e.effectData(l), b.clearProp = () => e.clearEffectData(l), b.mergeProp = (k) => q(b.getProp(), [k]), b.id = e.id), this.bus.$emit(`p:${l}:${g}:${h.input ? 1 : 0}`, o, [b, r, this.api]);
3131
+ e && (b.getProp = () => e.effectData(l), b.clearProp = () => e.clearEffectData(l), b.mergeProp = (O) => q(b.getProp(), [O]), b.id = e.id), this.bus.$emit(`p:${l}:${g}:${c.input ? 1 : 0}`, o, [b, r, this.api]);
3128
3132
  });
3129
3133
  }
3130
3134
  });
3131
3135
  }
3132
- function Or(t) {
3136
+ function wr(t) {
3133
3137
  return t.filter(function(e, r, i) {
3134
3138
  return i.indexOf(e, 0) === r;
3135
3139
  });
3136
3140
  }
3137
- function wr(t) {
3141
+ function Fr(t) {
3138
3142
  const e = t.components;
3139
3143
  if (Array.isArray(e)) {
3140
- const r = Or(e.filter((i) => i !== "*"));
3144
+ const r = wr(e.filter((i) => i !== "*"));
3141
3145
  return r.length ? r : !1;
3142
- } else return c.String(e) ? [e] : !1;
3146
+ } else return h.String(e) ? [e] : !1;
3143
3147
  }
3144
3148
  function V(t) {
3145
3149
  m(this, {
@@ -3164,14 +3168,14 @@ function V(t) {
3164
3168
  nextReload: () => {
3165
3169
  this.lifecycle("reload");
3166
3170
  }
3167
- }), nt(this, {
3171
+ }), st(this, {
3168
3172
  options() {
3169
3173
  return t.options;
3170
3174
  },
3171
3175
  bus() {
3172
3176
  return t.bus;
3173
3177
  }
3174
- }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new be(this), this.api = t.extendApi(sr(this), this);
3178
+ }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new be(this), this.api = t.extendApi(or(this), this);
3175
3179
  }
3176
3180
  m(V.prototype, {
3177
3181
  initData(t) {
@@ -3189,30 +3193,30 @@ m(V.prototype, {
3189
3193
  beforeFetch(t) {
3190
3194
  return new Promise((e) => {
3191
3195
  const r = this.options.beforeFetch && E(() => this.options.beforeFetch(t, { api: this.api }));
3192
- r && c.Function(r.then) ? r.then(e) : e();
3196
+ r && h.Function(r.then) ? r.then(e) : e();
3193
3197
  });
3194
3198
  }
3195
3199
  });
3196
- fr(V);
3197
3200
  hr(V);
3198
- dr(V);
3199
- mr(V);
3200
- vr(V);
3201
- Cr(V);
3201
+ cr(V);
3202
+ pr(V);
3203
+ yr(V);
3204
+ br(V);
3202
3205
  _r(V);
3206
+ Or(V);
3203
3207
  kr(V);
3204
- const Fr = "fcFragment", ie = {
3205
- name: Fr,
3208
+ const Sr = "fcFragment", ie = {
3209
+ name: Sr,
3206
3210
  functional: !0,
3207
3211
  props: ["vnode"],
3208
3212
  render(t, e) {
3209
3213
  return e.props.vnode ? e.props.vnode : e.children;
3210
3214
  }
3211
3215
  };
3212
- function Sr(t) {
3213
- return c.String(t) ? { domProps: { innerHTML: t } } : t;
3216
+ function Rr(t) {
3217
+ return h.String(t) ? { domProps: { innerHTML: t } } : t;
3214
3218
  }
3215
- function Rr() {
3219
+ function Er() {
3216
3220
  const t = {};
3217
3221
  function e(r) {
3218
3222
  r && this.setVm(r);
@@ -3222,10 +3226,10 @@ function Rr() {
3222
3226
  this.vm = r, this.$h = r.$createElement;
3223
3227
  },
3224
3228
  make(r, i, s) {
3225
- return Y.config.isReservedTag(r) && i.nativeOn && delete i.nativeOn, this.makeComponent(r, i, s);
3229
+ return D.config.isReservedTag(r) && i.nativeOn && delete i.nativeOn, this.makeComponent(r, i, s);
3226
3230
  },
3227
3231
  makeComponent(r, i, s) {
3228
- let n = this.$h(r, Sr(i), s || []);
3232
+ let n = this.$h(r, Rr(i), s || []);
3229
3233
  return n.context = this.vm, n;
3230
3234
  },
3231
3235
  aliasMap: t
@@ -3236,7 +3240,7 @@ function Rr() {
3236
3240
  },
3237
3241
  use(r) {
3238
3242
  Object.keys(r).forEach((i) => {
3239
- const s = X(i), n = ar(i).toLocaleLowerCase(), o = r[i];
3243
+ const s = Z(i), n = lr(i).toLocaleLowerCase(), o = r[i];
3240
3244
  [i, s, n].forEach((a) => {
3241
3245
  e.alias(i, o), e.prototype[a] = function(u, l) {
3242
3246
  return this.make(o, u, l);
@@ -3246,12 +3250,12 @@ function Rr() {
3246
3250
  }
3247
3251
  }), e;
3248
3252
  }
3249
- function Er(t) {
3250
- class e extends ht {
3253
+ function Ir(t) {
3254
+ class e extends ct {
3251
3255
  }
3252
3256
  return Object.assign(e.prototype, t), e;
3253
3257
  }
3254
- function ht(t) {
3258
+ function ct(t) {
3255
3259
  m(this, {
3256
3260
  $handle: t,
3257
3261
  vm: t.vm,
@@ -3262,12 +3266,12 @@ function ht(t) {
3262
3266
  }
3263
3267
  }), this.updateKey(), this.init();
3264
3268
  }
3265
- m(ht.prototype, {
3269
+ m(ct.prototype, {
3266
3270
  __init() {
3267
3271
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
3268
3272
  },
3269
3273
  updateKey() {
3270
- this.key = te();
3274
+ this.key = re();
3271
3275
  },
3272
3276
  //TODO interface
3273
3277
  init() {
@@ -3307,7 +3311,7 @@ m(ht.prototype, {
3307
3311
  render(t) {
3308
3312
  }
3309
3313
  });
3310
- const Ir = function(t) {
3314
+ const jr = function(t) {
3311
3315
  const e = {
3312
3316
  name: "loadData",
3313
3317
  _fn: [],
@@ -3320,7 +3324,7 @@ const Ir = function(t) {
3320
3324
  const u = () => {
3321
3325
  a.watch !== !1 && (t.bus.$off("p.loadData." + a.attr, u), t.bus.$once("p.loadData." + a.attr, u));
3322
3326
  let l;
3323
- a.attr && (l = t.loadData[a.attr] || a.default, a.copy !== !1 && (l = N(l))), Q(r.getProp(), a.to || "options", l), s.sync(i);
3327
+ a.attr && (l = t.loadData[a.attr] || a.default, a.copy !== !1 && (l = L(l))), Y(r.getProp(), a.to || "options", l), s.sync(i);
3324
3328
  };
3325
3329
  o.push(() => t.bus.$off("p.loadData." + a.attr, u)), u();
3326
3330
  }
@@ -3333,13 +3337,13 @@ const Ir = function(t) {
3333
3337
  }
3334
3338
  };
3335
3339
  return e.watch = e.created, e;
3336
- }, ct = {
3340
+ }, dt = {
3337
3341
  name: "componentValidate",
3338
3342
  load(t, e, r) {
3339
3343
  const i = t.getValue();
3340
3344
  i ? t.getProp().validate = [{
3341
3345
  validator(...s) {
3342
- const n = K(e);
3346
+ const n = Q(e);
3343
3347
  if (n)
3344
3348
  return r.exec(n.id, i === !0 ? "formCreateValidate" : i, ...s, {
3345
3349
  attr: t,
@@ -3350,11 +3354,11 @@ const Ir = function(t) {
3350
3354
  }] : (t.clearProp(), r.clearValidateState([e.field]));
3351
3355
  },
3352
3356
  watch(...t) {
3353
- ct.load(...t);
3357
+ dt.load(...t);
3354
3358
  }
3355
- }, jr = function(t) {
3359
+ }, Ar = function(t) {
3356
3360
  function e(i) {
3357
- return c.String(i) && (i = {
3361
+ return h.String(i) && (i = {
3358
3362
  action: i,
3359
3363
  to: "options"
3360
3364
  }), i;
@@ -3362,40 +3366,40 @@ const Ir = function(t) {
3362
3366
  function r(i, s, n) {
3363
3367
  let o = i.value;
3364
3368
  const a = (g) => {
3365
- g === void 0 ? (i.clearProp(), n.sync(s)) : Q(i.getProp(), o.to || "options", g);
3369
+ g === void 0 ? (i.clearProp(), n.sync(s)) : Y(i.getProp(), o.to || "options", g);
3366
3370
  };
3367
- if (c.Function(o) && (o = o(s, n)), o = e(o), !o || !o.action) {
3371
+ if (h.Function(o) && (o = o(s, n)), o = e(o), !o || !o.action) {
3368
3372
  a(void 0);
3369
3373
  return;
3370
3374
  }
3371
- o = N(o), o.to || (o.to = "options");
3375
+ o = L(o), o.to || (o.to = "options");
3372
3376
  const u = o.onError, l = () => {
3373
3377
  if (!i.getValue())
3374
3378
  return i.clearProp(), n.sync(s), !0;
3375
- }, h = H(y({
3379
+ }, c = H(y({
3376
3380
  headers: {}
3377
3381
  }, o), {
3378
3382
  onSuccess(g, b) {
3379
3383
  if (l()) return;
3380
- let k = (v) => b ? v : w(v, "data") ? v.data : v;
3381
- c.Function(o.parse) ? k = o.parse : o.parse && c.String(o.parse) && (k = (v) => (o.parse.split(".").forEach((O) => {
3382
- v && (v = v[O]);
3383
- }), v)), a(k(g, s, n)), n.sync(s);
3384
+ let O = ($) => b ? $ : w($, "data") ? $.data : $;
3385
+ h.Function(o.parse) ? O = o.parse : o.parse && h.String(o.parse) && (O = ($) => (o.parse.split(".").forEach((k) => {
3386
+ $ && ($ = $[k]);
3387
+ }), $)), a(O(g, s, n)), n.sync(s);
3384
3388
  },
3385
3389
  onError(g) {
3386
3390
  a(void 0), !l() && (u || ((b) => ge(b.message || "fetch fail " + o.action)))(g, s, n);
3387
3391
  }
3388
3392
  });
3389
- t.$handle.beforeFetch(h, { rule: s, api: n }).then(() => {
3390
- if (c.Function(o.action)) {
3393
+ t.$handle.beforeFetch(c, { rule: s, api: n }).then(() => {
3394
+ if (h.Function(o.action)) {
3391
3395
  o.action(s, n).then((g) => {
3392
- h.onSuccess(g, !0);
3396
+ c.onSuccess(g, !0);
3393
3397
  }).catch((g) => {
3394
- h.onError(g);
3398
+ c.onError(g);
3395
3399
  });
3396
3400
  return;
3397
3401
  }
3398
- E(() => t.create.fetch(h, { inject: i, rule: s, api: n }));
3402
+ E(() => t.create.fetch(c, { inject: i, rule: s, api: n }));
3399
3403
  });
3400
3404
  }
3401
3405
  return {
@@ -3407,17 +3411,17 @@ const Ir = function(t) {
3407
3411
  r(...i);
3408
3412
  }
3409
3413
  };
3410
- }, dt = {
3414
+ }, pt = {
3411
3415
  name: "required",
3412
3416
  load(t, e, r) {
3413
- const i = Ar(t.getValue());
3417
+ const i = Vr(t.getValue());
3414
3418
  if (i.required === !1)
3415
3419
  t.clearProp(), r.clearValidateState([e.field]);
3416
3420
  else {
3417
3421
  const s = y({
3418
3422
  required: !0,
3419
3423
  validator(n, o, a) {
3420
- c.empty(o) ? a(s.message) : a();
3424
+ h.empty(o) ? a(s.message) : a();
3421
3425
  }
3422
3426
  }, i);
3423
3427
  if (!s.message) {
@@ -3429,40 +3433,39 @@ const Ir = function(t) {
3429
3433
  r.sync(e);
3430
3434
  },
3431
3435
  watch(...t) {
3432
- dt.load(...t);
3436
+ pt.load(...t);
3433
3437
  }
3434
3438
  };
3435
- function Ar(t) {
3436
- return c.Boolean(t) ? { required: t } : c.String(t) ? { message: t } : c.Undef(t) ? { required: !1 } : c.Function(t) ? { validator: t } : c.Object(t) ? t : {};
3439
+ function Vr(t) {
3440
+ 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 : {};
3437
3441
  }
3438
- const Vr = {
3439
- fetch: jr,
3440
- loadData: Ir,
3441
- required: dt,
3442
- componentValidate: ct
3443
- }, Pr = "html", Dr = {
3444
- name: Pr,
3442
+ const Pr = {
3443
+ fetch: Ar,
3444
+ loadData: jr,
3445
+ required: pt,
3446
+ componentValidate: dt
3447
+ }, Dr = "html", Tr = {
3448
+ name: Dr,
3445
3449
  loadChildren: !1,
3446
3450
  render(t, e) {
3447
3451
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
3448
3452
  },
3449
3453
  renderChildren(t) {
3450
- return Array.isArray(t.rule.children) ? t.rule.children.filter((e) => c.String(e)).join("") : "";
3454
+ return Array.isArray(t.rule.children) ? t.rule.children.filter((e) => h.String(e)).join("") : "";
3451
3455
  }
3452
3456
  };
3453
- let B = typeof window != "undefined" && window.Vue ? window.Vue : Y;
3454
- function Tr(t, e) {
3457
+ function Br(t, e) {
3455
3458
  let r;
3456
3459
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
3457
3460
  }
3458
3461
  function ne() {
3459
- return Tr("name", ...arguments);
3462
+ return Br("name", ...arguments);
3460
3463
  }
3461
- function Ue(t) {
3462
- return !t || !t.el ? window.document.body : c.Element(t.el) ? t.el : document.querySelector(t.el);
3464
+ function qe(t) {
3465
+ return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
3463
3466
  }
3464
- function qe(t, e) {
3465
- const r = new B({
3467
+ function He(t, e) {
3468
+ const r = new D({
3466
3469
  data() {
3467
3470
  return { rule: t, option: e || {} };
3468
3471
  },
@@ -3472,87 +3475,88 @@ function qe(t, e) {
3472
3475
  });
3473
3476
  return r.$mount(), r;
3474
3477
  }
3475
- function Br(t) {
3478
+ function Lr(t) {
3476
3479
  const e = t.key || [], r = t.array || [], i = t.normal || [];
3477
- et.push(...e), pe.push(...r), me.push(...i), ot([...e, ...r, ...i]);
3480
+ tt.push(...e), pe.push(...r), me.push(...i), at([...e, ...r, ...i]);
3478
3481
  }
3479
- let Lr = 1;
3482
+ let Nr = 1;
3480
3483
  const R = {};
3481
- function pt(t) {
3484
+ function mt(t) {
3482
3485
  const e = {
3483
3486
  [ie.name]: ie
3484
- }, r = {}, i = {}, s = y({}, Vr), n = rr();
3487
+ }, r = {}, i = {}, s = y({}, Pr), n = ir();
3485
3488
  let o = { global: {} };
3486
- const a = {}, u = Rr();
3487
- Br(t.attrs || {});
3488
- function l(f) {
3489
+ const a = {}, u = Er(), l = {};
3490
+ Lr(t.attrs || {});
3491
+ function c(f) {
3489
3492
  const d = R[f];
3490
3493
  if (Array.isArray(d))
3491
- return d.map(($) => $.api());
3494
+ return d.map((v) => v.api());
3492
3495
  if (d)
3493
3496
  return d.api();
3494
3497
  }
3495
- function h() {
3498
+ function g() {
3496
3499
  const f = ne(...arguments);
3497
3500
  f.id && f.prop && (i[f.id] = f.prop);
3498
3501
  }
3499
- function g() {
3502
+ function b() {
3500
3503
  const f = ne(...arguments);
3501
3504
  f.id && f.prop && (s[f.id] = H(y({}, f.prop), { name: f.id }));
3502
3505
  }
3503
- function b(f) {
3506
+ function O(f) {
3504
3507
  u.use(f);
3505
3508
  }
3506
- function k() {
3509
+ function $() {
3507
3510
  const f = ne(...arguments);
3508
3511
  if (!f.id || !f.prop) return ce;
3509
- const d = I(f.id), $ = f.prop, C = $.merge === !0 ? r[d] : void 0;
3510
- r[d] = $, Object.setPrototypeOf($, C || ce), n[d] = S(d), $.maker && m(n, $.maker);
3512
+ const d = I(f.id), v = f.prop, C = v.merge === !0 ? r[d] : void 0;
3513
+ r[d] = v, Object.setPrototypeOf(v, C || ce), n[d] = S(d), v.maker && m(n, v.maker);
3511
3514
  }
3512
- function v(f, d) {
3513
- let $;
3514
- if (c.String(f)) {
3515
- if ($ = I(f), ["form-create", "formcreate"].indexOf($) > -1)
3516
- return re();
3515
+ function k(f, d) {
3516
+ let v;
3517
+ if (h.String(f)) {
3518
+ if (v = I(f), ["form-create", "formcreate"].indexOf(v) > -1)
3519
+ return G();
3517
3520
  if (d === void 0)
3518
- return e[$];
3521
+ return e[v];
3519
3522
  } else
3520
- $ = I(f.name), d = f;
3521
- if (!$ || !d) return;
3522
- const C = I($);
3523
- e[$] = d, e[C] = d, delete u.aliasMap[$], delete u.aliasMap[C], delete r[$], delete r[C], d.formCreateParser && k($, d.formCreateParser);
3523
+ v = I(f.name), d = f;
3524
+ if (!v || !d) return;
3525
+ const C = I(v);
3526
+ e[v] = d, e[C] = d, delete u.aliasMap[v], delete u.aliasMap[C], delete r[v], delete r[C], d.formCreateParser && $(v, d.formCreateParser);
3524
3527
  }
3525
- function O(f) {
3528
+ function Ce(f) {
3526
3529
  Object.keys(R).forEach((d) => {
3527
3530
  (Array.isArray(R[d]) ? R[d] : [R[d]]).forEach((C) => {
3528
3531
  C.bus.$emit("p.loadData." + f);
3529
3532
  });
3530
3533
  });
3531
3534
  }
3532
- function Ce(f, d) {
3533
- a[f] = d, O(f);
3534
- }
3535
3535
  function _e(f, d) {
3536
+ a[f] = d, Ce(f);
3537
+ }
3538
+ function Oe(f, d) {
3536
3539
  return w(a, f) ? a[f] : d;
3537
3540
  }
3538
- function mt(f) {
3539
- delete a[f], O(f);
3541
+ function yt(f) {
3542
+ delete a[f], Ce(f);
3540
3543
  }
3541
- function re() {
3542
- return B.extend(Gt(Oe));
3544
+ function G() {
3545
+ return Kt(we, e, i);
3543
3546
  }
3544
3547
  function ke() {
3545
- return B.extend(ie);
3548
+ return ie;
3546
3549
  }
3547
- function yt(f, d) {
3548
- return c.Function(f.install) ? f.install(P, d) : c.Function(f) && f(P, d), this;
3550
+ function gt(f, d) {
3551
+ return h.Function(f.install) ? f.install(M, d) : h.Function(f) && f(M, d), this;
3549
3552
  }
3550
- function P(f, d, $) {
3551
- let C = qe(f, d || {});
3553
+ function M(f, d, v) {
3554
+ let C = He(f, d || {});
3552
3555
  const A = C.$refs.fc.formCreate;
3553
- return A.$parent = $, Ue(A.options).appendChild(C.$el), A.api();
3556
+ return A.$parent = v, qe(A.options).appendChild(C.$el), A.api();
3554
3557
  }
3555
- function gt(f) {
3558
+ Object.setPrototypeOf(M, l);
3559
+ function $t(f) {
3556
3560
  let d = y({}, t);
3557
3561
  return f ? d.inherit = {
3558
3562
  components: e,
@@ -3561,35 +3565,35 @@ function pt(t) {
3561
3565
  providers: s,
3562
3566
  maker: n,
3563
3567
  loadData: a
3564
- } : delete d.inherit, pt(d);
3568
+ } : delete d.inherit, mt(d);
3565
3569
  }
3566
- function Oe(f) {
3570
+ function we(f) {
3567
3571
  const d = f.$options.propsData.rule;
3568
3572
  m(this, {
3569
- id: Lr++,
3573
+ id: Nr++,
3570
3574
  vm: f,
3571
- create: P,
3572
- manager: Er(t.manager),
3575
+ create: M,
3576
+ manager: Ir(t.manager),
3573
3577
  parsers: r,
3574
3578
  providers: s,
3575
3579
  rules: Array.isArray(d) ? d : [],
3576
- name: f.$options.propsData.name || te(),
3580
+ name: f.$options.propsData.name || re(),
3577
3581
  inFor: f.$options.propsData.inFor,
3578
3582
  prop: {
3579
3583
  components: e,
3580
3584
  directives: i
3581
3585
  },
3582
- setData: Ce,
3583
- getData: _e,
3586
+ setData: _e,
3587
+ getData: Oe,
3584
3588
  loadData: a,
3585
3589
  CreateNode: u,
3586
- bus: new B(),
3590
+ bus: new D(),
3587
3591
  unwatch: null,
3588
3592
  options: {},
3589
- extendApi: t.extendApi || (($) => $)
3593
+ extendApi: t.extendApi || ((v) => v)
3590
3594
  }), this.init(), this.initOptions(), this.name && (this.inFor ? (R[this.name] || (R[this.name] = []), R[this.name].push(this)) : R[this.name] = this);
3591
3595
  }
3592
- m(Oe.prototype, {
3596
+ m(we.prototype, {
3593
3597
  init() {
3594
3598
  const f = this.vm, d = new V(this);
3595
3599
  this.$handle = d, f.$f = d.api, f.$emit("input", d.api), f.$on("hook:created", () => {
@@ -3601,8 +3605,8 @@ function pt(t) {
3601
3605
  }), f.$on("hook:beforeDestroy", () => {
3602
3606
  if (f.destroyed = !0, this.unwatch && this.unwatch(), d.reloadRule([]), this.name)
3603
3607
  if (this.inFor) {
3604
- const $ = R[this.name].indexOf(this);
3605
- R[this.name].splice($, 1), R[this.name].length || delete R[this.name];
3608
+ const v = R[this.name].indexOf(this);
3609
+ R[this.name].splice(v, 1), R[this.name].length || delete R[this.name];
3606
3610
  } else
3607
3611
  delete R[this.name];
3608
3612
  }), f.$on("hook:updated", () => {
@@ -3614,13 +3618,13 @@ function pt(t) {
3614
3618
  },
3615
3619
  initOptions() {
3616
3620
  this.options = {};
3617
- let f = y({ formData: {}, submitBtn: {}, resetBtn: {} }, N(o));
3621
+ let f = y({ formData: {}, submitBtn: {}, resetBtn: {} }, L(o));
3618
3622
  this.isSub() && this.mergeOptions(this.options, this.vm.$pfc.$f.config || {}, !0), f = this.mergeOptions(f, this.vm.$options.propsData.option), this.updateOptions(f);
3619
3623
  },
3620
- mergeOptions(f, d, $) {
3621
- return d = N(d), $ && ["page", "onSubmit", "mounted", "reload", "formData", "el"].forEach((C) => {
3624
+ mergeOptions(f, d, v) {
3625
+ return d = L(d), v && ["page", "onSubmit", "mounted", "reload", "formData", "el"].forEach((C) => {
3622
3626
  delete d[C];
3623
- }), d.global && (f.global = er(f.global, d.global), delete d.global), this.$handle.$manager.mergeOptions([d], f), f;
3627
+ }), d.global && (f.global = tr(f.global, d.global), delete d.global), this.$handle.$manager.mergeOptions([d], f), f;
3624
3628
  },
3625
3629
  updateOptions(f) {
3626
3630
  this.mergeOptions(this.options, f), this.$handle.$manager.updateOptions(this.options);
@@ -3638,35 +3642,35 @@ function pt(t) {
3638
3642
  this.$handle.mounted();
3639
3643
  }
3640
3644
  });
3641
- function we(f) {
3645
+ function Fe(f) {
3642
3646
  m(f, {
3643
3647
  version: t.version,
3644
3648
  ui: t.ui,
3645
- setData: Ce,
3646
- getData: _e,
3647
- removeData: mt,
3649
+ setData: _e,
3650
+ getData: Oe,
3651
+ removeData: yt,
3648
3652
  maker: n,
3649
- component: v,
3650
- directive: h,
3651
- register: g,
3653
+ component: k,
3654
+ directive: g,
3655
+ register: b,
3652
3656
  $vnode: ke,
3653
- parser: k,
3654
- use: yt,
3655
- factory: gt,
3656
- componentAlias: b,
3657
+ parser: $,
3658
+ use: gt,
3659
+ factory: $t,
3660
+ componentAlias: O,
3657
3661
  copyRule: $e,
3658
- copyRules: it,
3659
- fetch: lt,
3660
- $form: re,
3662
+ copyRules: nt,
3663
+ fetch: ut,
3664
+ $form: G,
3661
3665
  parseFn: U,
3662
- parseJson: Yt,
3663
- toJson: tt,
3664
- getApi: l,
3665
- init(d, $ = {}) {
3666
- let C = qe(d, $), A = C.$refs.fc.formCreate;
3666
+ parseJson: er,
3667
+ toJson: rt,
3668
+ getApi: c,
3669
+ init(d, v = {}) {
3670
+ let C = He(d, v), A = C.$refs.fc.formCreate;
3667
3671
  return {
3668
3672
  mount(J) {
3669
- return J && c.Element(J) && (A.options.el = J), Ue(A.options).appendChild(C.$el), A.api();
3673
+ return J && h.Element(J) && (A.options.el = J), qe(A.options).appendChild(C.$el), A.api();
3670
3674
  },
3671
3675
  remove() {
3672
3676
  C.$el.parentNode && C.$el.parentNode.removeChild(C.$el);
@@ -3679,37 +3683,47 @@ function pt(t) {
3679
3683
  }
3680
3684
  });
3681
3685
  }
3682
- function $t(f) {
3686
+ function vt(f) {
3683
3687
  m(f, {
3684
- create: P,
3685
- install(d, $) {
3686
- if (o = y(y({}, o), $ || {}), d._installedFormCreate === !0) return;
3687
- d._installedFormCreate = !0, B = d;
3688
+ create: M,
3689
+ install(d, v) {
3690
+ if (o = y(y({}, o), v || {}), d._installedFormCreate === !0) return;
3691
+ d._installedFormCreate = !0;
3688
3692
  const C = function(A, J = {}) {
3689
- return P(A, J, this);
3693
+ return M(A, J, this);
3690
3694
  };
3691
- we(C), d.prototype.$formCreate = C, d.component("FormCreate", re()), d.component("FcFragment", ke());
3695
+ Fe(C), d.prototype.$formCreate = C, d.component("FormCreate", G()), d.component("FcFragment", ke());
3692
3696
  }
3693
3697
  });
3694
3698
  }
3695
- if (we(P), $t(P), u.use({ fragment: "fcFragment" }), k(Dr), t.install && P.use(t), t.inherit) {
3699
+ if (Fe(l), vt(l), u.use({ fragment: "fcFragment" }), $(Tr), t.install && M.use(t), t.inherit) {
3696
3700
  const f = t.inherit;
3697
3701
  f.components && m(e, f.components), f.parsers && m(r, f.parsers), f.directives && m(i, f.directives), f.providers && m(s, f.providers), f.maker && m(n, f.maker), f.loadData && m(a, f.loadData);
3698
3702
  }
3699
- return P;
3703
+ const K = G();
3704
+ return Object.setPrototypeOf(K, l), Object.defineProperties(K, {
3705
+ fetch: {
3706
+ get() {
3707
+ return l.fetch;
3708
+ },
3709
+ set(f) {
3710
+ l.fetch = f;
3711
+ }
3712
+ }
3713
+ }), K.util = l, K;
3700
3714
  }
3701
3715
  function se(t) {
3702
- if (c.Date(t))
3716
+ if (h.Date(t))
3703
3717
  return t;
3704
3718
  {
3705
3719
  let e = new Date(t);
3706
3720
  return e.toString() === "Invalid Date" ? t : e;
3707
3721
  }
3708
3722
  }
3709
- const He = "datePicker", Nr = {
3710
- name: He,
3723
+ const Je = "datePicker", Mr = {
3724
+ name: Je,
3711
3725
  maker: function() {
3712
- return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = S(He, { type: e.toLowerCase() }), t), {});
3726
+ return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = S(Je, { type: e.toLowerCase() }), t), {});
3713
3727
  }(),
3714
3728
  mergeProp(t) {
3715
3729
  let e = t.prop.props;
@@ -3738,7 +3752,7 @@ const He = "datePicker", Nr = {
3738
3752
  mounted(t) {
3739
3753
  t.rule.value = this.toValue(t.$handle.getFormData(t), t);
3740
3754
  }
3741
- }, oe = "hidden", Mr = {
3755
+ }, oe = "hidden", Ur = {
3742
3756
  name: oe,
3743
3757
  maker: {
3744
3758
  [oe]: (t, e) => S(oe)("", t, e)
@@ -3746,7 +3760,7 @@ const He = "datePicker", Nr = {
3746
3760
  render() {
3747
3761
  return [];
3748
3762
  }
3749
- }, ae = "input", Ur = {
3763
+ }, ae = "input", qr = {
3750
3764
  name: ae,
3751
3765
  maker: function() {
3752
3766
  const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = S(ae, { type: r }), e), {});
@@ -3756,36 +3770,36 @@ const He = "datePicker", Nr = {
3756
3770
  let { props: e } = t.prop;
3757
3771
  e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
3758
3772
  }
3759
- }, Je = "slider", qr = {
3760
- name: Je,
3773
+ }, ze = "slider", Hr = {
3774
+ name: ze,
3761
3775
  maker: {
3762
- sliderRange: S(Je, { range: !0 })
3776
+ sliderRange: S(ze, { range: !0 })
3763
3777
  },
3764
3778
  toFormValue(t, e) {
3765
3779
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
3766
3780
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
3767
3781
  }
3768
- }, Hr = {
3782
+ }, Jr = {
3769
3783
  name: "switch",
3770
3784
  mergeProp(t) {
3771
3785
  const e = t.prop.props.slot || {}, r = t.prop.scopedSlots || {};
3772
3786
  e.open && (r.open = () => e.open), e.close && (r.close = () => e.close), t.prop.scopedSlots = r;
3773
3787
  }
3774
- }, Jr = {
3788
+ }, zr = {
3775
3789
  name: "FcRow",
3776
3790
  render(t, e) {
3777
3791
  return e.vNode.col({ props: { span: 24 } }, [
3778
3792
  e.vNode.row(e.prop, t)
3779
3793
  ]);
3780
3794
  }
3781
- }, zr = [
3782
- Nr,
3795
+ }, Wr = [
3783
3796
  Mr,
3784
3797
  Ur,
3785
3798
  qr,
3786
3799
  Hr,
3787
- Jr
3788
- ], Wr = {
3800
+ Jr,
3801
+ zr
3802
+ ], xr = {
3789
3803
  button: "iButton",
3790
3804
  icon: "Icon",
3791
3805
  slider: "Slider",
@@ -3811,21 +3825,21 @@ const He = "datePicker", Nr = {
3811
3825
  group: "fcGroup",
3812
3826
  subForm: "fcSubForm",
3813
3827
  object: "fcSubForm"
3814
- }, Z = {
3828
+ }, ee = {
3815
3829
  resetBtnType: "default",
3816
3830
  resetBtnIcon: "md-refresh",
3817
3831
  infoIcon: "ios-information-circle-outline"
3818
3832
  };
3819
- function xr() {
3833
+ function Gr() {
3820
3834
  return {
3821
3835
  type: "poptip",
3822
3836
  trigger: "hover",
3823
3837
  placement: "top-start",
3824
3838
  wordWrap: !0,
3825
- icon: Z.infoIcon
3839
+ icon: ee.infoIcon
3826
3840
  };
3827
3841
  }
3828
- function Gr() {
3842
+ function Kr() {
3829
3843
  return {
3830
3844
  form: {
3831
3845
  inline: !1,
@@ -3847,9 +3861,9 @@ function Gr() {
3847
3861
  click: void 0
3848
3862
  },
3849
3863
  resetBtn: {
3850
- type: Z.resetBtnType,
3864
+ type: ee.resetBtnType,
3851
3865
  disabled: !1,
3852
- icon: Z.resetBtnIcon,
3866
+ icon: ee.resetBtnIcon,
3853
3867
  innerText: "重置",
3854
3868
  loading: !1,
3855
3869
  show: !1,
@@ -3857,16 +3871,16 @@ function Gr() {
3857
3871
  }
3858
3872
  };
3859
3873
  }
3860
- function ze(t, e) {
3861
- w(t, e) && c.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
3874
+ function We(t, e) {
3875
+ w(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
3862
3876
  }
3863
- function D(t) {
3877
+ function P(t) {
3864
3878
  return t === !1;
3865
3879
  }
3866
- function Kr(t, e) {
3867
- w(t, e) && !c.Object(t[e]) && (t[e] = { show: !!t[e] });
3880
+ function Xr(t, e) {
3881
+ w(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
3868
3882
  }
3869
- const Xr = {
3883
+ const Qr = {
3870
3884
  validate() {
3871
3885
  const t = this.form();
3872
3886
  return t ? new Promise((e, r) => {
@@ -3889,11 +3903,11 @@ const Xr = {
3889
3903
  },
3890
3904
  tidyOptions(t) {
3891
3905
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
3892
- Kr(t, e);
3906
+ Xr(t, e);
3893
3907
  }), t;
3894
3908
  },
3895
3909
  tidyRule({ prop: t }) {
3896
- return ze(t, "title"), ze(t, "info"), t;
3910
+ return We(t, "title"), We(t, "info"), t;
3897
3911
  },
3898
3912
  mergeProp(t) {
3899
3913
  t.prop = T([{
@@ -3902,7 +3916,7 @@ const Xr = {
3902
3916
  col: this.options.col || {},
3903
3917
  title: this.options.title || {}
3904
3918
  }, t.prop], {
3905
- info: xr(),
3919
+ info: Gr(),
3906
3920
  title: {},
3907
3921
  col: { span: 24 },
3908
3922
  wrap: {}
@@ -3912,7 +3926,7 @@ const Xr = {
3912
3926
  !t.size && this.options.form.size && (t.size = this.options.form.size);
3913
3927
  },
3914
3928
  getDefaultOptions() {
3915
- return Gr();
3929
+ return Kr();
3916
3930
  },
3917
3931
  update() {
3918
3932
  const t = this.options.form;
@@ -3936,10 +3950,10 @@ const Xr = {
3936
3950
  });
3937
3951
  },
3938
3952
  render(t) {
3939
- return t.length && t.push(this.makeFormBtn()), this.$r(this.rule, D(this.options.row.show) ? t : [this.makeRow(t)]);
3953
+ return t.length && t.push(this.makeFormBtn()), this.$r(this.rule, P(this.options.row.show) ? t : [this.makeRow(t)]);
3940
3954
  },
3941
3955
  makeWrap(t, e) {
3942
- const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r), o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: u } = this.rule.props, l = D(r.wrap.show) ? e : this.$r(T([r.wrap, {
3956
+ const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r), o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: u } = this.rule.props, l = P(r.wrap.show) ? e : this.$r(T([r.wrap, {
3943
3957
  props: H(y({
3944
3958
  labelWidth: o
3945
3959
  }, r.wrap || {}), {
@@ -3951,16 +3965,16 @@ const Xr = {
3951
3965
  ref: t.wrapRef,
3952
3966
  type: "formItem"
3953
3967
  }]), [e, n ? this.makeInfo(r, i, t) : null]);
3954
- return a === !0 || D(u) || D(s.show) ? l : this.makeCol(r, i, [l]);
3968
+ return a === !0 || P(u) || P(s.show) ? l : this.makeCol(r, i, [l]);
3955
3969
  },
3956
3970
  isTitle(t) {
3957
3971
  if (this.options.form.title === !1) return !1;
3958
3972
  const e = t.title;
3959
- return !(!e.title && !e.native || D(e.show));
3973
+ return !(!e.title && !e.native || P(e.show));
3960
3974
  },
3961
3975
  makeInfo(t, e, r) {
3962
3976
  const i = t.title, s = t.info, n = this.getSlot("title"), o = [n ? n({ title: i.title || "", rule: r.rule, options: this.options }) : i.title];
3963
- if (!D(s.show) && (s.info || s.native) && !D(s.icon)) {
3977
+ if (!P(s.show) && (s.info || s.native) && !P(s.icon)) {
3964
3978
  const a = {
3965
3979
  type: s.type || "poptip",
3966
3980
  props: y({}, s),
@@ -3970,7 +3984,7 @@ const Xr = {
3970
3984
  s.info && !w(a.props, u) && (a.props[u] = s.info), o[s.align !== "left" ? "unshift" : "push"](this.$r(T([s, a]), [
3971
3985
  this.$r({
3972
3986
  type: "icon",
3973
- props: { type: s.icon === !0 ? Z.infoIcon : s.icon, size: 16 },
3987
+ props: { type: s.icon === !0 ? ee.infoIcon : s.icon, size: 16 },
3974
3988
  style: "margin-top: -1px",
3975
3989
  key: `${e}i`
3976
3990
  })
@@ -4003,7 +4017,7 @@ const Xr = {
4003
4017
  },
4004
4018
  makeFormBtn() {
4005
4019
  let t = [];
4006
- if (D(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), D(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
4020
+ if (P(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), P(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
4007
4021
  return;
4008
4022
  const e = this.$r({
4009
4023
  type: "formItem",
@@ -4045,13 +4059,13 @@ const Xr = {
4045
4059
  key: `${this.key}b1`
4046
4060
  }, [t.innerText]);
4047
4061
  }
4048
- }, M = {}, Qr = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
4049
- function Zr(t) {
4050
- Qr.forEach((e) => {
4062
+ }, N = {}, Zr = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
4063
+ function Yr(t) {
4064
+ Zr.forEach((e) => {
4051
4065
  t[e] = S(e);
4052
4066
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
4053
4067
  }
4054
- function Yr(t) {
4068
+ function ei(t) {
4055
4069
  const e = "upload", r = {
4056
4070
  image: ["image", 0],
4057
4071
  file: ["file", 0],
@@ -4060,19 +4074,19 @@ function Yr(t) {
4060
4074
  };
4061
4075
  Object.keys(r).reduce((i, s) => (i[s] = S(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
4062
4076
  }
4063
- function ei(t) {
4077
+ function ti(t) {
4064
4078
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
4065
4079
  Object.keys(r).reduce((i, s) => (i[s] = S(e, { type: r[s] }), i), t);
4066
4080
  }
4067
- function ti(t) {
4081
+ function ri(t) {
4068
4082
  const e = "timePicker";
4069
4083
  t.time = S(e, { type: "time" }), t.timeRange = S(e, { type: "timerange" });
4070
4084
  }
4071
- function ri(t) {
4085
+ function ii(t) {
4072
4086
  const e = "select";
4073
4087
  t.selectMultiple = S(e, { multiple: !0 }), t.selectOne = S(e, { multiple: !1 });
4074
4088
  }
4075
- function ii(t) {
4089
+ function ni(t) {
4076
4090
  const e = "frame", r = {
4077
4091
  frameInputs: ["input", 0],
4078
4092
  frameFiles: ["file", 0],
@@ -4083,16 +4097,16 @@ function ii(t) {
4083
4097
  };
4084
4098
  Object.keys(r).reduce((i, s) => (i[s] = S(e, (n) => n.props({ type: r[s][0], maxLength: r[s][1] })), i), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages;
4085
4099
  }
4086
- Zr(M);
4087
- Yr(M);
4088
- ei(M);
4089
- ri(M);
4090
- ii(M);
4091
- ti(M);
4092
- function We(t, e) {
4093
- return c.Boolean(t) ? t = { show: t } : !c.Undef(t) && !c.Object(t) && (t = { show: e }), t;
4100
+ Yr(N);
4101
+ ei(N);
4102
+ ti(N);
4103
+ ii(N);
4104
+ ni(N);
4105
+ ri(N);
4106
+ function xe(t, e) {
4107
+ return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
4094
4108
  }
4095
- function ni(t, e) {
4109
+ function si(t, e) {
4096
4110
  return m(t, {
4097
4111
  formEl() {
4098
4112
  return e.$manager.form();
@@ -4166,40 +4180,41 @@ function ni(t, e) {
4166
4180
  }
4167
4181
  },
4168
4182
  submitBtnProps: (r = {}) => {
4169
- let i = We(e.options.submitBtn, !0);
4183
+ let i = xe(e.options.submitBtn, !0);
4170
4184
  m(i, r), e.options.submitBtn = i, t.refreshOptions();
4171
4185
  },
4172
4186
  resetBtnProps: (r = {}) => {
4173
- let i = We(e.options.resetBtn, !1);
4187
+ let i = xe(e.options.resetBtn, !1);
4174
4188
  m(i, r), e.options.resetBtn = i, t.refreshOptions();
4175
4189
  },
4176
4190
  submit(r, i) {
4177
4191
  t.validate((s) => {
4178
4192
  if (s) {
4179
4193
  let n = t.formData();
4180
- c.Function(r) ? E(() => r(n, this)) : (c.Function(e.options.onSubmit) && E(() => e.options.onSubmit(n, this)), e.vm.$emit("submit", n, this));
4194
+ h.Function(r) ? E(() => r(n, this)) : (h.Function(e.options.onSubmit) && E(() => e.options.onSubmit(n, this)), e.vm.$emit("submit", n, this));
4181
4195
  } else
4182
- c.Function(i) && E(() => i(this, ...arguments));
4196
+ h.Function(i) && E(() => i(this, ...arguments));
4197
+ }).catch((s) => {
4183
4198
  });
4184
4199
  }
4185
4200
  }), t;
4186
4201
  }
4187
- function si(t) {
4188
- t.componentAlias(Wr), xt.forEach((e) => {
4202
+ function oi(t) {
4203
+ t.componentAlias(xr), Gt.forEach((e) => {
4189
4204
  t.component(e.name, e);
4190
- }), zr.forEach((e) => {
4205
+ }), Wr.forEach((e) => {
4191
4206
  t.parser(e);
4192
- }), Object.keys(M).forEach((e) => {
4193
- t.maker[e] = M[e];
4207
+ }), Object.keys(N).forEach((e) => {
4208
+ t.maker[e] = N[e];
4194
4209
  });
4195
4210
  }
4196
- function oi() {
4197
- return pt({
4211
+ function ai() {
4212
+ return mt({
4198
4213
  ui: "iview",
4199
4214
  version: "2.6.0",
4200
- manager: Xr,
4201
- install: si,
4202
- extendApi: ni,
4215
+ manager: Qr,
4216
+ install: oi,
4217
+ extendApi: si,
4203
4218
  attrs: {
4204
4219
  normal: ["col", "wrap"],
4205
4220
  array: ["className"],
@@ -4207,10 +4222,10 @@ function oi() {
4207
4222
  }
4208
4223
  });
4209
4224
  }
4210
- const de = oi();
4225
+ const de = ai();
4211
4226
  typeof window != "undefined" && (window.formCreate = de, window.Vue && de.install(window.Vue));
4212
- const ui = de.maker;
4227
+ const fi = de.maker;
4213
4228
  export {
4214
4229
  de as default,
4215
- ui as maker
4230
+ fi as maker
4216
4231
  };