@form-create/view-design 2.6.2 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,61 +1,61 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/view-design v2.6.2
3
+ * @form-create/view-design v2.6.3
4
4
  * (c) 2018-2024 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
7
7
  * Released under the MIT License.
8
8
  */
9
9
  (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode('._fc-frame .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;transition:opacity .3s}._fc-frame .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-frame .fc-files:hover .fc-upload-cover{opacity:1}._fc-frame .ivu-upload-list{margin-top:0}._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn,._fc-frame .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:2px 2px 5px #0000001a;margin-right:4px;box-sizing:border-box}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;transition:opacity .3s}._fc-upload .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-upload .fc-files:hover .fc-upload-cover{opacity:1}._fc-upload .ivu-upload-list{margin-top:0}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-upload .fc-upload-btn,._fc-upload .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:2px 2px 5px #0000001a;margin-right:4px;box-sizing:border-box}._fc-group{display:flex;min-height:42px;justify-content:center;flex-direction:column}._fc-group-disabled ._fc-group-btn,._fc-group-disabled ._fc-group-add{cursor:not-allowed}._fc-group-handle{display:flex;flex-direction:row;position:absolute;bottom:-15px;right:30px;border-radius:15px;border:1px dashed #d9d9d9;padding:3px 8px;background-color:#fff}._fc-group-btn{cursor:pointer}._fc-group-idx{position:absolute;bottom:-15px;left:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#eee;border-radius:15px;font-weight:700}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{position:relative;display:flex;flex-direction:column;border:1px dashed #d9d9d9;padding:20px 20px 25px;margin:5px 5px 25px;border-radius:5px}._fc-group-arrow{position:relative;width:20px;height:20px}._fc-group-arrow:before{content:"";position:absolute;top:8px;left:5px;width:9px;height:9px;border-left:2px solid #999;border-top:2px solid #999}._fc-group-arrow:before{transform:rotate(45deg)}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{width:20px;height:20px;position:relative;cursor:pointer}._fc-group-plus-minus:before,._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:60%;height:2px;background-color:#409eff;transform:translate(-50%,-50%)}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{cursor:pointer;width:25px;height:25px;border:1px solid rgb(64 158 255 / 50%);border-radius:15px}._fc-group-add._fc-group-plus-minus:before,._fc-group-add._fc-group-plus-minus:after{width:50%}.form-create .form-create .ivu-form-item{margin-bottom:24px}.form-create .form-create .ivu-form-item .ivu-form-item{margin-bottom:0}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
10
- var $t = Object.defineProperty, vt = Object.defineProperties;
11
- var bt = Object.getOwnPropertyDescriptors;
12
- var we = Object.getOwnPropertySymbols;
13
- var Ct = Object.prototype.hasOwnProperty, _t = Object.prototype.propertyIsEnumerable;
14
- var Fe = (t, e, r) => e in t ? $t(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, y = (t, e) => {
10
+ var yt = Object.defineProperty, gt = Object.defineProperties;
11
+ var $t = Object.getOwnPropertyDescriptors;
12
+ var Se = Object.getOwnPropertySymbols;
13
+ var vt = Object.prototype.hasOwnProperty, bt = Object.prototype.propertyIsEnumerable;
14
+ var Ee = (t, e, r) => e in t ? yt(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
- Ct.call(e, r) && Fe(t, r, e[r]);
17
- if (we)
18
- for (var r of we(e))
19
- _t.call(e, r) && Fe(t, r, e[r]);
16
+ vt.call(e, r) && Ee(t, r, e[r]);
17
+ if (Se)
18
+ for (var r of Se(e))
19
+ bt.call(e, r) && Ee(t, r, e[r]);
20
20
  return t;
21
- }, q = (t, e) => vt(t, bt(e));
21
+ }, q = (t, e) => gt(t, $t(e));
22
22
  import P from "vue";
23
- function Ot(t) {
23
+ function Ct(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
- function oe() {
27
- return oe = Object.assign ? Object.assign.bind() : function(t) {
26
+ function ae() {
27
+ return ae = Object.assign ? Object.assign.bind() : function(t) {
28
28
  for (var e, r = 1; r < arguments.length; r++) for (var i in e = arguments[r], e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
29
29
  return t;
30
- }, oe.apply(this, arguments);
30
+ }, ae.apply(this, arguments);
31
31
  }
32
- var kt = ["attrs", "props", "domProps"], wt = ["class", "style", "directives"], Ft = ["on", "nativeOn"], St = function(t) {
32
+ var _t = ["attrs", "props", "domProps"], Ot = ["class", "style", "directives"], kt = ["on", "nativeOn"], wt = 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 (kt.indexOf(i) !== -1) e[i] = oe({}, e[i], r[i]);
36
- else if (wt.indexOf(i) !== -1) {
35
+ else if (_t.indexOf(i) !== -1) e[i] = ae({}, e[i], r[i]);
36
+ else if (Ot.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 (Ft.indexOf(i) !== -1)
39
+ } else if (kt.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] ? Ft(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
+ }, Ft = function(t, e) {
49
49
  return function() {
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
- }, Rt = St;
53
- const C = /* @__PURE__ */ Ot(Rt);
52
+ }, St = wt;
53
+ const C = /* @__PURE__ */ Ct(St);
54
54
  function Y(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 It = "fcCheckbox", jt = {
58
- name: It,
57
+ const Et = "fcCheckbox", Rt = {
58
+ name: Et,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -126,10 +126,10 @@ const It = "fcCheckbox", jt = {
126
126
  function I(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
- const At = "fcFrame";
130
- function We(t) {
129
+ const It = "fcFrame";
130
+ function ze(t) {
131
131
  return {
132
- name: At,
132
+ name: It,
133
133
  props: {
134
134
  formCreateInject: {
135
135
  type: Object,
@@ -503,16 +503,16 @@ function We(t) {
503
503
  }
504
504
  };
505
505
  }
506
- const xe = We({
506
+ const We = ze({
507
507
  fileIcon: "md-document",
508
508
  fileUpIcon: "ios-folder-open"
509
509
  });
510
- xe.v2 = We({
510
+ We.v2 = ze({
511
511
  fileIcon: "document-text",
512
512
  fileUpIcon: "folder"
513
513
  });
514
- const Vt = "fcRadio", Pt = {
515
- name: Vt,
514
+ const jt = "fcRadio", At = {
515
+ name: jt,
516
516
  props: {
517
517
  formCreateInject: {
518
518
  type: Object,
@@ -574,7 +574,7 @@ const Vt = "fcRadio", Pt = {
574
574
  mounted() {
575
575
  this.$emit("fc.el", this.$refs.el);
576
576
  }
577
- }, f = {
577
+ }, h = {
578
578
  type(t, e) {
579
579
  return Object.prototype.toString.call(t) === "[object " + e + "]";
580
580
  },
@@ -582,7 +582,7 @@ const Vt = "fcRadio", Pt = {
582
582
  return t == null;
583
583
  },
584
584
  Element(t) {
585
- return typeof t == "object" && t !== null && t.nodeType === 1 && !f.Object(t);
585
+ return typeof t == "object" && t !== null && t.nodeType === 1 && !h.Object(t);
586
586
  },
587
587
  trueArray(t) {
588
588
  return Array.isArray(t) && t.length > 0;
@@ -600,15 +600,15 @@ const Vt = "fcRadio", Pt = {
600
600
  }
601
601
  };
602
602
  ["Date", "Object", "String", "Boolean", "Array", "Number"].forEach((t) => {
603
- f[t] = function(e) {
604
- return f.type(e, t);
603
+ h[t] = function(e) {
604
+ return h.type(e, t);
605
605
  };
606
606
  });
607
607
  function k(t, e) {
608
608
  return {}.hasOwnProperty.call(t, e);
609
609
  }
610
- const Dt = "fcSelect", Tt = {
611
- name: Dt,
610
+ const Vt = "fcSelect", Pt = {
611
+ name: Vt,
612
612
  functional: !0,
613
613
  props: {
614
614
  formCreateInject: {
@@ -625,13 +625,13 @@ const Dt = "fcSelect", Tt = {
625
625
  key: "" + o + "-" + n.value
626
626
  }]), [a ? t("template", {
627
627
  slot: n.slotName || "default"
628
- }, [f.Function(a) ? n.slot(t) : a]) : null]);
628
+ }, [h.Function(a) ? n.slot(t) : a]) : null]);
629
629
  }, i = (n, o) => t("OptionGroup", {
630
630
  attrs: {
631
631
  label: n.label
632
632
  },
633
633
  key: "" + o + "-" + n.label
634
- }, [f.trueArray(n.options) && n.options.map((a, u) => r(a, u))]), s = e.props.formCreateInject.options;
634
+ }, [h.trueArray(n.options) && n.options.map((a, u) => r(a, u))]), s = e.props.formCreateInject.options;
635
635
  return t("Select", C([{}, e.data, {
636
636
  ref: "el"
637
637
  }]), [(Array.isArray(s) ? s : []).map((n, o) => k(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
@@ -639,8 +639,8 @@ const Dt = "fcSelect", Tt = {
639
639
  mounted() {
640
640
  this.$emit("fc.el", this.$refs.el);
641
641
  }
642
- }, Bt = "fcTree", Lt = {
643
- name: Bt,
642
+ }, Dt = "fcTree", Tt = {
643
+ name: Dt,
644
644
  props: {
645
645
  formCreateInject: {
646
646
  type: Object,
@@ -694,19 +694,19 @@ const Dt = "fcSelect", Tt = {
694
694
  this.$emit("fc.el", this.$refs.tree);
695
695
  }
696
696
  };
697
- function Se(t) {
697
+ function Re(t) {
698
698
  return {
699
699
  url: t,
700
- name: Nt(t)
700
+ name: Bt(t)
701
701
  };
702
702
  }
703
- function Nt(t) {
703
+ function Bt(t) {
704
704
  return ("" + t).split("/").pop();
705
705
  }
706
- const Mt = "fcUpload";
706
+ const Lt = "fcUpload";
707
707
  function Ge(t) {
708
708
  return {
709
- name: Mt,
709
+ name: Lt,
710
710
  props: {
711
711
  formCreateInject: {
712
712
  type: Object,
@@ -747,11 +747,11 @@ function Ge(t) {
747
747
  };
748
748
  },
749
749
  created() {
750
- this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = !1), this.formCreateInject.prop.props.defaultFileList = I(this.value).map(Se);
750
+ this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = !1), this.formCreateInject.prop.props.defaultFileList = I(this.value).map(Re);
751
751
  },
752
752
  watch: {
753
753
  value(e) {
754
- this.$refs.upload.fileList.every((r) => !r.status || r.status === "finished") && (this.$refs.upload.fileList = I(e).map(Se), this.uploadList = this.$refs.upload.fileList);
754
+ this.$refs.upload.fileList.every((r) => !r.status || r.status === "finished") && (this.$refs.upload.fileList = I(e).map(Re), this.uploadList = this.$refs.upload.fileList);
755
755
  },
756
756
  maxLength(e, r) {
757
757
  (r === 1 || e === 1) && this.update();
@@ -919,7 +919,7 @@ function z(t, e = {}, r) {
919
919
  for (let s in e)
920
920
  if (Object.prototype.hasOwnProperty.call(e, s)) {
921
921
  let n = e[s];
922
- if ((i = Array.isArray(n)) || f.Object(n)) {
922
+ if ((i = Array.isArray(n)) || h.Object(n)) {
923
923
  let o = t[s] === void 0;
924
924
  if (i)
925
925
  i = !1, o && w(t, s, []);
@@ -934,24 +934,24 @@ function z(t, e = {}, r) {
934
934
  o && w(t, s, {});
935
935
  t[s] = z(t[s], n, r);
936
936
  } else
937
- w(t, s, n), f.Undef(n) || (f.Undef(n.__json) || (t[s].__json = n.__json), f.Undef(n.__origin) || (t[s].__origin = n.__origin));
937
+ w(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
938
938
  }
939
939
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
940
940
  }
941
941
  function B(t) {
942
942
  return z({}, { value: t }).value;
943
943
  }
944
- const Ut = Object.assign || function(t) {
944
+ const Nt = Object.assign || function(t) {
945
945
  for (let e, r = 1; r < arguments.length; r++)
946
946
  for (let i in e = arguments[r], e)
947
947
  Object.prototype.hasOwnProperty.call(e, i) && w(t, i, e[i]);
948
948
  return t;
949
949
  };
950
950
  function p() {
951
- return Ut.apply(this, arguments);
951
+ return Nt.apply(this, arguments);
952
952
  }
953
- const qt = "fcGroup", Ht = {
954
- name: qt,
953
+ const Mt = "fcGroup", Ut = {
954
+ name: Mt,
955
955
  props: {
956
956
  field: String,
957
957
  rule: [Array, Object],
@@ -1250,8 +1250,8 @@ const qt = "fcGroup", Ht = {
1250
1250
  class: "_fc-group " + (s ? "_fc-group-disabled" : "")
1251
1251
  }, [n]);
1252
1252
  }
1253
- }, Jt = "fcSubForm", zt = {
1254
- name: Jt,
1253
+ }, qt = "fcSubForm", Ht = {
1254
+ name: qt,
1255
1255
  props: {
1256
1256
  rule: Array,
1257
1257
  options: Object,
@@ -1334,27 +1334,27 @@ const qt = "fcGroup", Ht = {
1334
1334
  }
1335
1335
  }]));
1336
1336
  }
1337
- }, Wt = [
1338
- jt,
1337
+ }, Jt = [
1338
+ Rt,
1339
+ At,
1339
1340
  Pt,
1340
1341
  Tt,
1341
- Lt,
1342
- zt,
1343
- xe,
1342
+ Ht,
1343
+ We,
1344
1344
  Ke,
1345
- Ht
1346
- ], Ee = "FormCreate", ae = (t, e) => {
1345
+ Ut
1346
+ ], Ie = "FormCreate", le = (t, e) => {
1347
1347
  if (!(!t || t === e)) {
1348
1348
  if (t.formCreateInject)
1349
1349
  return t.formCreateInject;
1350
1350
  if (t.$parent)
1351
- return ae(t.$parent, e);
1351
+ return le(t.$parent, e);
1352
1352
  }
1353
1353
  };
1354
- function xt(t, e, r) {
1354
+ function zt(t, e, r) {
1355
1355
  return {
1356
- name: Ee,
1357
- componentName: Ee,
1356
+ name: Ie,
1357
+ componentName: Ie,
1358
1358
  model: {
1359
1359
  prop: "api"
1360
1360
  },
@@ -1445,14 +1445,14 @@ function xt(t, e, r) {
1445
1445
  created() {
1446
1446
  const i = this, s = this.formCreate.api(), n = () => {
1447
1447
  if (i.$pfc) {
1448
- const a = ae(i, i.$pfc);
1448
+ const a = le(i, i.$pfc);
1449
1449
  if (a) {
1450
1450
  let u;
1451
1451
  i.isMore ? (u = I(a.getSubForm()), u.push(s)) : u = s, a.subForm(u);
1452
1452
  }
1453
1453
  }
1454
1454
  }, o = () => {
1455
- const a = ae(i, i.$pfc);
1455
+ const a = le(i, i.$pfc);
1456
1456
  if (a)
1457
1457
  if (i.isMore) {
1458
1458
  const u = I(a.getSubForm()), l = u.indexOf(s);
@@ -1468,8 +1468,8 @@ function xt(t, e, r) {
1468
1468
  }
1469
1469
  };
1470
1470
  }
1471
- const Xe = ["attrs", "props", "domProps", "scopedSlots"], Qe = ["class", "style", "directives"], Ze = ["on", "nativeOn"], D = (t, e = {}, r = {}) => {
1472
- const i = [...Xe, ...r.normal || []], s = [...Qe, ...r.array || []], n = [...Ze, ...r.functional || []], o = r.props || [];
1471
+ const xe = ["attrs", "props", "domProps", "scopedSlots"], Xe = ["class", "style", "directives"], Qe = ["on", "nativeOn"], D = (t, e = {}, r = {}) => {
1472
+ const i = [...xe, ...r.normal || []], s = [...Xe, ...r.array || []], n = [...Qe, ...r.functional || []], o = r.props || [];
1473
1473
  return t.reduce((a, u) => {
1474
1474
  for (const l in u)
1475
1475
  if (a[l])
@@ -1489,33 +1489,33 @@ const Xe = ["attrs", "props", "domProps", "scopedSlots"], Qe = ["class", "style"
1489
1489
  a[l][c] = u[l][c];
1490
1490
  else if (l === "hook")
1491
1491
  for (let c in u[l])
1492
- a[l][c] ? a[l][c] = Gt(a[l][c], u[l][c]) : a[l][c] = u[l][c];
1492
+ a[l][c] ? a[l][c] = Wt(a[l][c], u[l][c]) : a[l][c] = u[l][c];
1493
1493
  else
1494
1494
  a[l] = u[l];
1495
1495
  else
1496
1496
  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];
1497
1497
  return a;
1498
1498
  }, e);
1499
- }, Gt = (t, e) => function() {
1499
+ }, Wt = (t, e) => function() {
1500
1500
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1501
- }, Ye = ["type", "slot", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "preview", "component", "cache"], ce = ["validate", "children", "control"], de = ["effect", "deep"];
1502
- function Kt() {
1503
- return [...Ye, ...Xe, ...Qe, ...Ze, ...ce, ...de];
1501
+ }, Ze = ["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"];
1502
+ function Gt() {
1503
+ return [...Ze, ...xe, ...Xe, ...Qe, ...pe, ...me];
1504
1504
  }
1505
- function pe(t, e, r) {
1505
+ function ye(t, e, r) {
1506
1506
  return `[form-create ${t}]: ${e}`;
1507
1507
  }
1508
- function Xt(t, e) {
1509
- console.warn(pe("tip", t));
1508
+ function Kt(t, e) {
1509
+ console.warn(ye("tip", t));
1510
1510
  }
1511
- function me(t, e) {
1512
- console.error(pe("err", t));
1511
+ function ge(t, e) {
1512
+ console.error(ye("err", t));
1513
1513
  }
1514
- function Qt(t) {
1515
- me(t.toString()), console.error(t);
1514
+ function xt(t) {
1515
+ ge(t.toString()), console.error(t);
1516
1516
  }
1517
- const le = "[[FORM-CREATE-PREFIX-", ue = "-FORM-CREATE-SUFFIX]]", Re = "$FN:", Ie = "$FNX:";
1518
- function et(t, e) {
1517
+ const ue = "[[FORM-CREATE-PREFIX-", fe = "-FORM-CREATE-SUFFIX]]";
1518
+ function Ye(t, e) {
1519
1519
  return JSON.stringify(z(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1520
1520
  if (!(i && i._isVue === !0)) {
1521
1521
  if (typeof i != "function")
@@ -1523,31 +1523,45 @@ function et(t, e) {
1523
1523
  if (i.__json)
1524
1524
  return i.__json;
1525
1525
  if (i.__origin && (i = i.__origin), !i.__emit)
1526
- return le + i + ue;
1526
+ return ue + i + fe;
1527
1527
  }
1528
1528
  }, e);
1529
1529
  }
1530
- function je(t) {
1530
+ function te(t) {
1531
1531
  return new Function("return " + t)();
1532
1532
  }
1533
1533
  function M(t, e) {
1534
- if (t && f.String(t) && t.length > 4) {
1534
+ if (t && h.String(t) && t.length > 4) {
1535
1535
  let r = t.trim(), i = !1;
1536
1536
  try {
1537
- if (r.indexOf(ue) > 0 && r.indexOf(le) === 0)
1538
- r = r.replace(ue, "").replace(le, ""), i = !0;
1539
- else if (r.indexOf(Re) === 0)
1540
- r = r.replace(Re, ""), i = !0;
1541
- else {
1542
- if (r.indexOf(Ie) === 0)
1543
- return r = je("function($inject){" + r.replace(Ie, "") + "}"), r.__json = t, r.__inject = !0, r;
1544
- !e && r.indexOf("function ") === 0 && r !== "function " && (i = !0);
1537
+ if (r.indexOf(fe) > 0 && r.indexOf(ue) === 0)
1538
+ r = r.replace(fe, "").replace(ue, ""), i = !0;
1539
+ else if (r.indexOf("$FN:") === 0)
1540
+ r = r.substring(4), i = !0;
1541
+ else if (r.indexOf("$EXEC:") === 0)
1542
+ r = r.substring(6), i = !0;
1543
+ else if (r.indexOf("$GLOBAL:") === 0) {
1544
+ const n = r.substring(8);
1545
+ return r = function(...o) {
1546
+ const a = o[0].api.getGlobalEvent(n);
1547
+ if (a)
1548
+ return a.call(this, ...o);
1549
+ }, r.__json = t, r.__inject = !0, r;
1550
+ } else {
1551
+ if (r.indexOf("$FNX:") === 0)
1552
+ return r = te("function($inject){" + r.substring(5) + "}"), r.__json = t, r.__inject = !0, r;
1553
+ (!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
1545
1554
  }
1546
1555
  if (!i) return t;
1547
- const s = je(r.indexOf("function ") === -1 && r.indexOf("(") !== 0 ? "function " + r : r);
1556
+ let s;
1557
+ try {
1558
+ s = te(r);
1559
+ } catch (n) {
1560
+ s = te("function " + r);
1561
+ }
1548
1562
  return s.__json = t, s;
1549
1563
  } catch (s) {
1550
- me(`解析失败:${r}
1564
+ ge(`解析失败:${r}
1551
1565
 
1552
1566
  err: ${s}`);
1553
1567
  return;
@@ -1555,12 +1569,12 @@ err: ${s}`);
1555
1569
  }
1556
1570
  return t;
1557
1571
  }
1558
- function Zt(t, e) {
1572
+ function Xt(t, e) {
1559
1573
  return JSON.parse(t, function(r, i) {
1560
- return f.Undef(i) || !i.indexOf ? i : M(i, e);
1574
+ return h.Undef(i) || !i.indexOf ? i : M(i, e);
1561
1575
  });
1562
1576
  }
1563
- function tt(t, e) {
1577
+ function he(t, e) {
1564
1578
  return {
1565
1579
  value: t,
1566
1580
  enumerable: !1,
@@ -1568,51 +1582,51 @@ function tt(t, e) {
1568
1582
  writable: !!e
1569
1583
  };
1570
1584
  }
1571
- function ye(t) {
1572
- return rt([t])[0];
1585
+ function $e(t) {
1586
+ return et([t])[0];
1573
1587
  }
1574
- function rt(t, e) {
1588
+ function et(t, e) {
1575
1589
  return z([], [...t], e || !1);
1576
1590
  }
1577
1591
  function U(t, e) {
1578
- return D(Array.isArray(e) ? e : [e], t, { array: ce, normal: de }), t;
1592
+ return D(Array.isArray(e) ? e : [e], t, { array: pe, normal: me }), t;
1579
1593
  }
1580
- function Ae(t) {
1581
- const e = f.Function(t.getRule) ? t.getRule() : t;
1594
+ function je(t) {
1595
+ const e = h.Function(t.getRule) ? t.getRule() : t;
1582
1596
  return e.type || (e.type = "input"), e;
1583
1597
  }
1584
- function Yt(t, e) {
1598
+ function Qt(t, e) {
1585
1599
  return t ? (Object.keys(e || {}).forEach((r) => {
1586
1600
  e[r] && (t[r] = U(t[r] || {}, e[r]));
1587
1601
  }), t) : e;
1588
1602
  }
1589
- function it(t, e) {
1603
+ function tt(t, e) {
1590
1604
  Object.defineProperties(t, Object.keys(e).reduce((r, i) => (r[i] = {
1591
1605
  get() {
1592
1606
  return e[i]();
1593
1607
  }
1594
1608
  }, r), {}));
1595
1609
  }
1596
- function K(t) {
1610
+ function x(t) {
1597
1611
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1598
1612
  }
1599
1613
  function E(t, e) {
1600
1614
  try {
1601
1615
  e = t();
1602
1616
  } catch (r) {
1603
- Qt(r);
1617
+ xt(r);
1604
1618
  }
1605
1619
  return e;
1606
1620
  }
1607
- const Ve = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, J = {
1608
- "==": (t, e) => JSON.stringify(t) === JSON.stringify(Ve(t, e)),
1621
+ const Ae = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, J = {
1622
+ "==": (t, e) => JSON.stringify(t) === JSON.stringify(Ae(t, e)),
1609
1623
  "!=": (t, e) => !J["=="](t, e),
1610
1624
  ">": (t, e) => t > e,
1611
1625
  ">=": (t, e) => t >= e,
1612
1626
  "<": (t, e) => t < e,
1613
1627
  "<=": (t, e) => t <= e,
1614
1628
  on(t, e) {
1615
- return t && t.indexOf && t.indexOf(Ve(t[0], e)) > -1;
1629
+ return t && t.indexOf && t.indexOf(Ae(t[0], e)) > -1;
1616
1630
  },
1617
1631
  notOn(t, e) {
1618
1632
  return !J.on(t, e);
@@ -1630,16 +1644,16 @@ const Ve = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1630
1644
  return t < e[0] || t > e[1];
1631
1645
  },
1632
1646
  empty(t) {
1633
- return f.empty(t);
1647
+ return h.empty(t);
1634
1648
  },
1635
1649
  notEmpty(t) {
1636
- return !f.empty(t);
1650
+ return !h.empty(t);
1637
1651
  },
1638
1652
  pattern(t, e) {
1639
1653
  return new RegExp(e, "g").test(t);
1640
1654
  }
1641
1655
  };
1642
- function nt() {
1656
+ function rt() {
1643
1657
  return {
1644
1658
  props: {},
1645
1659
  on: {},
@@ -1653,14 +1667,14 @@ function nt() {
1653
1667
  }
1654
1668
  function F(t, e) {
1655
1669
  return (r, i, s, n = {}) => {
1656
- const o = new ge(t, r, i, s, n);
1657
- return e && (f.Function(e) ? e(o) : o.props(e)), o;
1670
+ const o = new ve(t, r, i, s, n);
1671
+ return e && (h.Function(e) ? e(o) : o.props(e)), o;
1658
1672
  };
1659
1673
  }
1660
- function ge(t, e, r, i, s) {
1661
- this._data = p(nt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1674
+ function ve(t, e, r, i, s) {
1675
+ this._data = p(rt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1662
1676
  }
1663
- p(ge.prototype, {
1677
+ p(ve.prototype, {
1664
1678
  getRule() {
1665
1679
  return this._data;
1666
1680
  },
@@ -1669,39 +1683,39 @@ p(ge.prototype, {
1669
1683
  },
1670
1684
  _clone() {
1671
1685
  const t = new this.constructor();
1672
- return t._data = ye(this._data), t;
1686
+ return t._data = $e(this._data), t;
1673
1687
  }
1674
1688
  });
1675
- function st(t) {
1689
+ function it(t) {
1676
1690
  t.forEach((e) => {
1677
- ge.prototype[e] = function(r) {
1691
+ ve.prototype[e] = function(r) {
1678
1692
  return U(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1679
1693
  };
1680
1694
  });
1681
1695
  }
1682
- st(Kt());
1683
- const ot = F("");
1684
- function er(t, e, r) {
1685
- let i = ot("", e);
1696
+ it(Gt());
1697
+ const nt = F("");
1698
+ function Zt(t, e, r) {
1699
+ let i = nt("", e);
1686
1700
  return i._data.type = t, i._data.title = r, i;
1687
1701
  }
1688
- function Pe(t, e, r, i) {
1689
- let s = ot("", r);
1702
+ function Ve(t, e, r, i) {
1703
+ let s = nt("", r);
1690
1704
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1691
1705
  }
1692
- function tr() {
1706
+ function Yt() {
1693
1707
  return {
1694
- create: er,
1695
- createTmp: Pe,
1696
- template: Pe,
1708
+ create: Zt,
1709
+ createTmp: Ve,
1710
+ template: Ve,
1697
1711
  factory: F
1698
1712
  };
1699
1713
  }
1700
- function rr(t, e, r) {
1714
+ function er(t, e, r) {
1701
1715
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1702
1716
  return s.status = r.status, s.url = t, s;
1703
1717
  }
1704
- function De(t) {
1718
+ function Pe(t) {
1705
1719
  const e = t.responseText || t.response;
1706
1720
  if (!e)
1707
1721
  return e;
@@ -1711,7 +1725,7 @@ function De(t) {
1711
1725
  return e;
1712
1726
  }
1713
1727
  }
1714
- function at(t) {
1728
+ function st(t) {
1715
1729
  if (typeof XMLHttpRequest == "undefined")
1716
1730
  return;
1717
1731
  const e = new XMLHttpRequest(), r = t.action;
@@ -1719,8 +1733,8 @@ function at(t) {
1719
1733
  t.onError(o);
1720
1734
  }, e.onload = function() {
1721
1735
  if (e.status < 200 || e.status >= 300)
1722
- return t.onError(rr(r, t, e), De(e));
1723
- t.onSuccess(De(e));
1736
+ return t.onError(er(r, t, e), Pe(e));
1737
+ t.onSuccess(Pe(e));
1724
1738
  }, e.open(t.method || "get", r, !0);
1725
1739
  let i;
1726
1740
  t.data && ((t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data).map((n) => {
@@ -1731,13 +1745,13 @@ function at(t) {
1731
1745
  s[n] !== null && e.setRequestHeader(n, s[n]);
1732
1746
  }), e.send(i);
1733
1747
  }
1734
- function ir(t) {
1748
+ function tr(t) {
1735
1749
  return new Promise((e, r) => {
1736
- at(q(y({}, t), {
1750
+ st(q(y({}, t), {
1737
1751
  onSuccess(i) {
1738
1752
  let s = (o) => o;
1739
1753
  const n = M(t.parse);
1740
- f.Function(n) ? s = n : n && f.String(n) && (s = (o) => (n.split(".").forEach((a) => {
1754
+ h.Function(n) ? s = n : n && h.String(n) && (s = (o) => (n.split(".").forEach((a) => {
1741
1755
  o && (o = o[a]);
1742
1756
  }), o)), e(s(i));
1743
1757
  },
@@ -1747,12 +1761,12 @@ function ir(t) {
1747
1761
  }));
1748
1762
  });
1749
1763
  }
1750
- function G(t) {
1764
+ function K(t) {
1751
1765
  return B(t);
1752
1766
  }
1753
- function nr(t) {
1767
+ function rr(t) {
1754
1768
  function e(n) {
1755
- return f.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1769
+ return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1756
1770
  }
1757
1771
  function r(n, o, a) {
1758
1772
  e(n).forEach((u) => {
@@ -1793,13 +1807,13 @@ function nr(t) {
1793
1807
  formData(n) {
1794
1808
  return e(n).reduce((o, a) => {
1795
1809
  const u = t.getFieldCtx(a);
1796
- return u && (o[u.field] = G(u.rule.value)), o;
1797
- }, t.options.appendValue !== !1 ? G(t.appendData) : {});
1810
+ return u && (o[u.field] = K(u.rule.value)), o;
1811
+ }, t.options.appendValue !== !1 ? K(t.appendData) : {});
1798
1812
  },
1799
1813
  getValue(n) {
1800
1814
  const o = t.getFieldCtx(n);
1801
1815
  if (o)
1802
- return G(o.rule.value);
1816
+ return K(o.rule.value);
1803
1817
  },
1804
1818
  coverValue(n) {
1805
1819
  const o = y({}, n || {});
@@ -1836,7 +1850,7 @@ function nr(t) {
1836
1850
  }, !0), o ? o.origin : void 0;
1837
1851
  },
1838
1852
  removeRule(n) {
1839
- const o = n && K(n);
1853
+ const o = n && x(n);
1840
1854
  if (o)
1841
1855
  return o.rm(), o.origin;
1842
1856
  },
@@ -1912,7 +1926,7 @@ function nr(t) {
1912
1926
  n.forEach((a) => s.sync(a));
1913
1927
  return;
1914
1928
  }
1915
- let o = f.Object(n) ? K(n) : t.getCtxs(n);
1929
+ let o = h.Object(n) ? x(n) : t.getCtxs(n);
1916
1930
  o && (o = Array.isArray(o) ? o : [o], o.forEach((a) => {
1917
1931
  if (!a.deleted) {
1918
1932
  const u = t.subForm[a.id];
@@ -1996,23 +2010,23 @@ function nr(t) {
1996
2010
  resetFields(n) {
1997
2011
  e(n).forEach((o) => {
1998
2012
  t.getCtxs(o).forEach((a) => {
1999
- t.$render.clearCache(a), a.rule.value = G(a.defaultValue);
2013
+ t.$render.clearCache(a), a.rule.value = K(a.defaultValue);
2000
2014
  });
2001
2015
  }), t.vm.$nextTick(() => {
2002
2016
  s.clearValidateState();
2003
- }), n == null && (f.Function(t.options.onReset) && E(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2017
+ }), n == null && (h.Function(t.options.onReset) && E(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2004
2018
  },
2005
2019
  method(n, o) {
2006
2020
  const a = s.el(n);
2007
2021
  if (!a || !a[o])
2008
- throw new Error(pe("err", `${o}方法不存在`));
2022
+ throw new Error(ye("err", `${o}方法不存在`));
2009
2023
  return (...u) => a[o](...u);
2010
2024
  },
2011
2025
  exec(n, o, ...a) {
2012
2026
  return E(() => s.method(n, o)(...a));
2013
2027
  },
2014
2028
  toJson(n) {
2015
- return et(s.rule, n);
2029
+ return Ye(s.rule, n);
2016
2030
  },
2017
2031
  trigger(n, o, ...a) {
2018
2032
  const u = s.el(n);
@@ -2044,7 +2058,7 @@ function nr(t) {
2044
2058
  },
2045
2059
  fetch(n) {
2046
2060
  return new Promise((o, a) => {
2047
- t.beforeFetch(n).then(() => ir(n).then(o).catch(a));
2061
+ t.beforeFetch(n).then(() => tr(n).then(o).catch(a));
2048
2062
  });
2049
2063
  },
2050
2064
  getData(n, o) {
@@ -2064,7 +2078,7 @@ function nr(t) {
2064
2078
  };
2065
2079
  }), s.changeValue = s.changeField = s.setValue, s;
2066
2080
  }
2067
- function sr(t) {
2081
+ function ir(t) {
2068
2082
  p(t.prototype, {
2069
2083
  initCache() {
2070
2084
  this.clearCacheAll();
@@ -2102,21 +2116,21 @@ function R(t) {
2102
2116
  const e = t.replace(/(-[a-z])/g, function(r) {
2103
2117
  return r.replace("-", "").toLocaleUpperCase();
2104
2118
  });
2105
- return lt(e);
2119
+ return ot(e);
2106
2120
  }
2107
- function lt(t) {
2121
+ function ot(t) {
2108
2122
  return t.replace(t[0], t[0].toLowerCase());
2109
2123
  }
2110
- function or(t) {
2124
+ function nr(t) {
2111
2125
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
2112
2126
  }
2113
2127
  function X(t) {
2114
2128
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
2115
2129
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
2116
2130
  }
2117
- let ar = 0;
2131
+ let sr = 0;
2118
2132
  function ee() {
2119
- const t = 370 + ++ar;
2133
+ const t = 370 + ++sr;
2120
2134
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
2121
2135
  }
2122
2136
  function Q(t, e, r) {
@@ -2125,7 +2139,7 @@ function Q(t, e, r) {
2125
2139
  s && ((!i[s] || typeof i[s] != "object") && (i[s] = {}), i = i[s]), s = n;
2126
2140
  }), i[s] = r, i;
2127
2141
  }
2128
- function lr(t) {
2142
+ function or(t) {
2129
2143
  p(t.prototype, {
2130
2144
  initRender() {
2131
2145
  this.tempList = {}, this.clearOrgChildren();
@@ -2135,7 +2149,7 @@ function lr(t) {
2135
2149
  this.orgChildren = Object.keys(e).reduce((r, i) => {
2136
2150
  if (e[i].parser.loadChildren !== !1) {
2137
2151
  const s = e[i].rule.children;
2138
- r[i] = f.trueArray(s) ? [...s] : [];
2152
+ r[i] = h.trueArray(s) ? [...s] : [];
2139
2153
  }
2140
2154
  return r;
2141
2155
  }, {});
@@ -2166,7 +2180,7 @@ function lr(t) {
2166
2180
  makeVm(e) {
2167
2181
  const r = e.vm;
2168
2182
  if (r) {
2169
- if (f.Function(r))
2183
+ if (h.Function(r))
2170
2184
  return E(() => e.vm(this.$handle.getInjectData(e)));
2171
2185
  if (!r._isVue)
2172
2186
  return new P(r);
@@ -2197,7 +2211,7 @@ function lr(t) {
2197
2211
  },
2198
2212
  renderTemp(e) {
2199
2213
  if (!P.compile)
2200
- return Xt("当前使用的Vue构建版本不支持compile,无法使用template功能"), [];
2214
+ return Kt("当前使用的Vue构建版本不支持compile,无法使用template功能"), [];
2201
2215
  const r = e.prop, { id: i, key: s } = e;
2202
2216
  if (!this.tempList[i]) {
2203
2217
  e.el || (e.el = this.makeVm(r), this.vm.$nextTick(() => e.parser.mounted(e)));
@@ -2212,10 +2226,10 @@ function lr(t) {
2212
2226
  const { vm: n, template: o } = this.tempList[i];
2213
2227
  this.setTempProps(n, e);
2214
2228
  const a = o.render.call(n);
2215
- return f.Undef(a.data) && (a.data = {}), a.key = s, a.data.ref = e.ref, a.data.key = s, a;
2229
+ return h.Undef(a.data) && (a.data = {}), a.key = s, a.data.ref = e.ref, a.data.key = s, a;
2216
2230
  },
2217
2231
  parseSide(e, r) {
2218
- return f.Object(e) ? U({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2232
+ return h.Object(e) ? U({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2219
2233
  },
2220
2234
  renderSides(e, r, i) {
2221
2235
  const s = r[i ? "rule" : "prop"];
@@ -2233,7 +2247,7 @@ function lr(t) {
2233
2247
  const i = e.rule;
2234
2248
  if (!this.cache[e.id] || this.cache[e.id].slot !== i.slot) {
2235
2249
  let s, n = i.cache !== !1;
2236
- const o = e.trueType, a = !(f.Undef(i.display) || i.display);
2250
+ const o = e.trueType, a = !(h.Undef(i.display) || i.display);
2237
2251
  if (o === "template" && !i.template)
2238
2252
  s = this.renderSides(this.renderChildren(e), e, !0), a && this.display(s), s = this.item(e, s);
2239
2253
  else if (o === "fcFragment")
@@ -2262,7 +2276,7 @@ function lr(t) {
2262
2276
  model: u.model || {}
2263
2277
  }) : s = l ? e.parser.preview(c, e) : e.parser.render(c, e);
2264
2278
  }
2265
- s = this.renderSides(s, e), !(!e.input && f.Undef(u.native)) && u.native !== !0 && (s = this.$manager.makeWrap(e, s)), a && (s = this.display(s)), s = this.item(e, s);
2279
+ 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);
2266
2280
  }
2267
2281
  return n && this.setCache(e, s, r), s;
2268
2282
  }
@@ -2280,7 +2294,7 @@ function lr(t) {
2280
2294
  },
2281
2295
  none(e) {
2282
2296
  if (e && e.data)
2283
- return Array.isArray(e.data.style) ? e.data.style.push({ display: "none" }) : f.String(e.data.style) ? e.data.style += ";display:none;" : e.data.style = [e.data.style, { display: "none" }], e;
2297
+ 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;
2284
2298
  },
2285
2299
  item(e, r) {
2286
2300
  return this.$h("fcFragment", {
@@ -2352,8 +2366,8 @@ function lr(t) {
2352
2366
  this.$handle.onInput(e, r);
2353
2367
  },
2354
2368
  renderChildren(e) {
2355
- const { children: r } = e.rule, i = this.orgChildren[e.id], s = (n) => !f.String(n) && n.__fc__ && !this.$handle.ctxs[n.__fc__.id];
2356
- return !f.trueArray(r) && i ? (this.$handle.deferSyncValue(() => {
2369
+ const { children: r } = e.rule, i = this.orgChildren[e.id], s = (n) => !h.String(n) && n.__fc__ && !this.$handle.ctxs[n.__fc__.id];
2370
+ return !h.trueArray(r) && i ? (this.$handle.deferSyncValue(() => {
2357
2371
  i.forEach((n) => {
2358
2372
  n && s(n) && this.$handle.rmCtx(n.__fc__);
2359
2373
  });
@@ -2363,7 +2377,7 @@ function lr(t) {
2363
2377
  });
2364
2378
  }), r.map((n) => {
2365
2379
  if (n) {
2366
- if (f.String(n)) return n;
2380
+ if (h.String(n)) return n;
2367
2381
  if (n.__fc__)
2368
2382
  return this.renderCtx(n.__fc__, e);
2369
2383
  n.type && this.vm.$nextTick(() => {
@@ -2374,11 +2388,11 @@ function lr(t) {
2374
2388
  },
2375
2389
  defaultRender(e, r) {
2376
2390
  const i = e.prop;
2377
- 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(lt(e.originType), i, r);
2391
+ 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(ot(e.originType), i, r);
2378
2392
  },
2379
2393
  renderRule(e, r, i) {
2380
2394
  if (!e) return;
2381
- if (f.String(e)) return e;
2395
+ if (h.String(e)) return e;
2382
2396
  let s;
2383
2397
  if (i)
2384
2398
  s = e.type;
@@ -2389,18 +2403,18 @@ function lr(t) {
2389
2403
  }
2390
2404
  if (!s) return;
2391
2405
  let n = [[r]];
2392
- return f.trueArray(e.children) && n.push(e.children.map((o) => this.renderRule(o))), this.$h(s, y({}, e), n);
2406
+ return h.trueArray(e.children) && n.push(e.children.map((o) => this.renderRule(o))), this.$h(s, y({}, e), n);
2393
2407
  }
2394
2408
  });
2395
2409
  }
2396
- function $e(t) {
2410
+ function be(t) {
2397
2411
  p(this, {
2398
2412
  $handle: t,
2399
2413
  fc: t.fc,
2400
2414
  vm: t.vm,
2401
2415
  $manager: t.$manager,
2402
2416
  vNode: new t.fc.CreateNode(t.vm)
2403
- }), it(this, {
2417
+ }), tt(this, {
2404
2418
  options() {
2405
2419
  return t.options;
2406
2420
  },
@@ -2409,9 +2423,9 @@ function $e(t) {
2409
2423
  }
2410
2424
  }), this.initCache(), this.initRender();
2411
2425
  }
2412
- sr($e);
2413
- lr($e);
2414
- function ur(t) {
2426
+ ir(be);
2427
+ or(be);
2428
+ function ar(t) {
2415
2429
  p(t.prototype, {
2416
2430
  parseInjectEvent(e, r) {
2417
2431
  const i = e.inject || this.options.injectEvent;
@@ -2424,11 +2438,11 @@ function ur(t) {
2424
2438
  }), r;
2425
2439
  },
2426
2440
  parseEvent(e, r, i, s) {
2427
- if (f.Function(r) && (i !== !1 && !f.Undef(i) || r.__inject))
2441
+ if (h.Function(r) && (i !== !1 && !h.Undef(i) || r.__inject))
2428
2442
  return this.inject(e, r, i);
2429
- if (!s && Array.isArray(r) && r[0] && (f.String(r[0]) || f.Function(r[0])))
2443
+ if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2430
2444
  return this.parseEventLst(e, r, i, !0);
2431
- if (f.String(r)) {
2445
+ if (h.String(r)) {
2432
2446
  const n = M(r);
2433
2447
  if (n && r !== n)
2434
2448
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
@@ -2436,10 +2450,10 @@ function ur(t) {
2436
2450
  },
2437
2451
  parseEmit(e, r) {
2438
2452
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: u } = s, l = s[r ? "emit" : "nativeEmit"] || [];
2439
- return f.trueArray(l) && l.forEach((c) => {
2453
+ return h.trueArray(l) && l.forEach((c) => {
2440
2454
  if (!c) return;
2441
2455
  let m, v = n || o || a;
2442
- if (f.Object(c) && (m = c.inject, c = c.name, v = c.prefix || v), v) {
2456
+ if (h.Object(c) && (m = c.inject, c = c.name, v = c.prefix || v), v) {
2443
2457
  r || (v = `native-${v}`);
2444
2458
  const _ = X(`${v}-${c}`), g = (...O) => {
2445
2459
  this.vm.$emit(_, ...O), this.vm.$emit("emit-event", _, ...O);
@@ -2448,7 +2462,7 @@ function ur(t) {
2448
2462
  i[c] = g;
2449
2463
  else {
2450
2464
  let O = m || u || this.options.injectEvent;
2451
- i[c] = f.Undef(O) ? g : this.inject(s, g, O);
2465
+ i[c] = h.Undef(O) ? g : this.inject(s, g, O);
2452
2466
  }
2453
2467
  }
2454
2468
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2478,14 +2492,14 @@ function ur(t) {
2478
2492
  }
2479
2493
  });
2480
2494
  }
2481
- const Te = ["hook:updated", "hook:mounted"];
2482
- function hr(t) {
2495
+ const De = ["hook:updated", "hook:mounted"];
2496
+ function lr(t) {
2483
2497
  p(t.prototype, {
2484
2498
  usePage() {
2485
2499
  const e = this.options.page;
2486
2500
  if (!e) return;
2487
- let r = 25, i = fr(this.rules);
2488
- f.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), p(this, {
2501
+ let r = 25, i = ur(this.rules);
2502
+ h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), p(this, {
2489
2503
  first: r,
2490
2504
  limit: i,
2491
2505
  pageEnd: this.rules.length <= r
@@ -2493,16 +2507,16 @@ function hr(t) {
2493
2507
  },
2494
2508
  pageLoad() {
2495
2509
  const e = () => {
2496
- this.pageEnd ? (this.vm.$off(Te, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2510
+ this.pageEnd ? (this.vm.$off(De, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2497
2511
  };
2498
- this.vm.$on(Te, e);
2512
+ this.vm.$on(De, e);
2499
2513
  }
2500
2514
  });
2501
2515
  }
2502
- function fr(t) {
2516
+ function ur(t) {
2503
2517
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2504
2518
  }
2505
- function cr(t) {
2519
+ function fr(t) {
2506
2520
  p(t.prototype, {
2507
2521
  clearNextTick() {
2508
2522
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
@@ -2517,12 +2531,14 @@ function cr(t) {
2517
2531
  }
2518
2532
  });
2519
2533
  }
2520
- function dr(t) {
2534
+ function hr(t) {
2521
2535
  Object.defineProperties(t.origin, {
2522
- __fc__: tt(t, !0)
2536
+ __fc__: he(t, !0)
2537
+ }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2538
+ __fc__: he(t, !0)
2523
2539
  });
2524
2540
  }
2525
- function ut(t, e, r) {
2541
+ function at(t, e, r) {
2526
2542
  const i = ee();
2527
2543
  p(this, {
2528
2544
  id: i,
@@ -2545,9 +2561,9 @@ function ut(t, e, r) {
2545
2561
  exportEl: void 0,
2546
2562
  defaultValue: e.field ? B(r) : void 0,
2547
2563
  field: e.field || void 0
2548
- }), this.updateKey(), dr(this), this.update(t, !0);
2564
+ }), this.updateKey(), hr(this), this.update(t, !0);
2549
2565
  }
2550
- p(ut.prototype, {
2566
+ p(at.prototype, {
2551
2567
  effectData(t) {
2552
2568
  return this.payload[t] || (this.payload[t] = {}), this.payload[t];
2553
2569
  },
@@ -2569,7 +2585,7 @@ p(ut.prototype, {
2569
2585
  },
2570
2586
  injectValidate() {
2571
2587
  return I(this.prop.validate).map((t) => {
2572
- if (f.Function(t.validator)) {
2588
+ if (h.Function(t.validator)) {
2573
2589
  const e = y({}, t), r = this;
2574
2590
  return e.validator = function(...i) {
2575
2591
  return t.validator.call({
@@ -2647,7 +2663,7 @@ p(ut.prototype, {
2647
2663
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
2648
2664
  }
2649
2665
  });
2650
- function pr(t) {
2666
+ function cr(t) {
2651
2667
  p(t.prototype, {
2652
2668
  nextRefresh(e) {
2653
2669
  const r = this.loadedId;
@@ -2656,10 +2672,10 @@ function pr(t) {
2656
2672
  });
2657
2673
  },
2658
2674
  parseRule(e) {
2659
- const r = Ae(e);
2675
+ const r = je(e);
2660
2676
  return Object.defineProperties(r, {
2661
- __origin__: tt(e, !0)
2662
- }), mr(r), this.appendValue(r), r.options = Array.isArray(r.options) ? r.options : [], [r, r.prefix, r.suffix].forEach((i) => {
2677
+ __origin__: he(e, !0)
2678
+ }), dr(r), this.appendValue(r), r.options = Array.isArray(r.options) ? r.options : [], [r, r.prefix, r.suffix].forEach((i) => {
2663
2679
  i && this.loadFn(i, r);
2664
2680
  }), this.loadCtrl(r), r.update && (r.update = M(r.update)), r;
2665
2681
  },
@@ -2675,7 +2691,7 @@ function pr(t) {
2675
2691
  },
2676
2692
  syncProp(e) {
2677
2693
  const r = e.rule;
2678
- f.trueArray(r.sync) && D([{
2694
+ h.trueArray(r.sync) && D([{
2679
2695
  on: r.sync.reduce((i, s) => (i[`update:${s}`] = (n) => {
2680
2696
  r.props[s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
2681
2697
  }, i), {})
@@ -2701,13 +2717,13 @@ function pr(t) {
2701
2717
  let a = this.sort.indexOf(o.__fc__.id);
2702
2718
  return a > -1 ? a : i(n - 1);
2703
2719
  }, s = (n, o) => {
2704
- f.trueArray(n) && this._loadRule(n, o);
2720
+ h.trueArray(n) && this._loadRule(n, o);
2705
2721
  };
2706
2722
  e.map((n, o) => {
2707
- if (r && !f.Object(n) || !this.pageEnd && !r && o >= this.first) return;
2723
+ if (r && !h.Object(n) || !this.pageEnd && !r && o >= this.first) return;
2708
2724
  if (n.__fc__ && n.__fc__.root === e && this.ctxs[n.__fc__.id])
2709
2725
  return s(n.__fc__.rule.children, n.__fc__), n.__fc__;
2710
- let a = Ae(n);
2726
+ let a = je(n);
2711
2727
  const u = () => !!(a.field && this.fieldCtx[a.field] && this.fieldCtx[a.field][0] !== n.__fc__);
2712
2728
  this.ruleEffect(a, "init", { repeat: u() }), u() && this.vm.$emit("repeat-field", n, this.api);
2713
2729
  let l, c = !1, m = !!n.__fc__, v = a.value;
@@ -2716,28 +2732,28 @@ function pr(t) {
2716
2732
  const g = !l.check(this);
2717
2733
  if (l.deleted) {
2718
2734
  if (g) {
2719
- if (Be(l))
2735
+ if (Te(l))
2720
2736
  return;
2721
2737
  l.update(this);
2722
2738
  }
2723
2739
  } else if (g) {
2724
- if (Be(l))
2740
+ if (Te(l))
2725
2741
  return;
2726
- e[o] = n = n._clone ? n._clone() : ye(n), l = null, c = !0;
2742
+ e[o] = n = n._clone ? n._clone() : $e(n), l = null, c = !0;
2727
2743
  }
2728
2744
  }
2729
2745
  if (l)
2730
2746
  l.originType !== l.rule.type && l.updateType(), this.bindParser(l), this.appendValue(l.rule);
2731
2747
  else {
2732
2748
  const g = this.parseRule(n);
2733
- l = new ut(this, g, v), this.bindParser(l);
2749
+ l = new at(this, g, v), this.bindParser(l);
2734
2750
  }
2735
2751
  if ([!1, !0].forEach((g) => this.parseEmit(l, g)), this.syncProp(l), l.parent = r || null, l.root = e, this.setCtx(l), !c && !m && this.effect(l, "load"), this.effect(l, "created"), l.parser.loadChildren === !1 || s(l.rule.children, l), !r) {
2736
2752
  const g = i(o);
2737
2753
  g > -1 || !o ? this.sort.splice(g + 1, 0, l.id) : this.sort.push(l.id);
2738
2754
  }
2739
2755
  const _ = l.rule;
2740
- return l.updated || (l.updated = !0, f.Function(_.update) && this.bus.$once("load-end", () => {
2756
+ return l.updated || (l.updated = !0, h.Function(_.update) && this.bus.$once("load-end", () => {
2741
2757
  this.refreshUpdate(l, _.value, "init");
2742
2758
  }), this.effect(l, "loaded")), l.input && Object.defineProperty(_, "value", this.valueHandle(l)), this.refreshControl(l) && (this.cycleLoad = !0), l;
2743
2759
  });
@@ -2746,17 +2762,17 @@ function pr(t) {
2746
2762
  return e.input && e.rule.control && this.useCtrl(e);
2747
2763
  },
2748
2764
  useCtrl(e) {
2749
- const r = yr(e), i = [], s = this.api;
2765
+ const r = pr(e), i = [], s = this.api;
2750
2766
  if (!r.length) return !1;
2751
2767
  for (let a = 0; a < r.length; a++) {
2752
2768
  const u = r[a], l = u.handle || function(m) {
2753
2769
  return (J[u.condition || "=="] || J["=="])(m, u.value);
2754
2770
  };
2755
- if (!f.trueArray(u.rule)) continue;
2771
+ if (!h.trueArray(u.rule)) continue;
2756
2772
  const c = q(y({}, u), {
2757
2773
  valid: E(() => l(e.rule.value, s)),
2758
- ctrl: gr(e, u.rule),
2759
- isHidden: f.String(u.rule[0])
2774
+ ctrl: mr(e, u.rule),
2775
+ isHidden: h.String(u.rule[0])
2760
2776
  });
2761
2777
  c.valid && c.ctrl || !c.valid && !c.ctrl && !c.isHidden || i.push(c);
2762
2778
  }
@@ -2790,7 +2806,7 @@ function pr(t) {
2790
2806
  });
2791
2807
  } else {
2792
2808
  e.ctrlRule.splice(e.ctrlRule.indexOf(_), 1);
2793
- const O = K(_);
2809
+ const O = x(_);
2794
2810
  O && O.rm();
2795
2811
  }
2796
2812
  });
@@ -2816,30 +2832,30 @@ function pr(t) {
2816
2832
  }
2817
2833
  });
2818
2834
  }
2819
- function mr(t) {
2820
- const e = nt();
2835
+ function dr(t) {
2836
+ const e = rt();
2821
2837
  return Object.keys(e).forEach((r) => {
2822
2838
  k(t, r) || w(t, r, e[r]);
2823
2839
  }), t;
2824
2840
  }
2825
- function yr(t) {
2841
+ function pr(t) {
2826
2842
  const e = t.rule.control || [];
2827
- return f.Object(e) ? [e] : e;
2843
+ return h.Object(e) ? [e] : e;
2828
2844
  }
2829
- function gr(t, e) {
2845
+ function mr(t, e) {
2830
2846
  for (let r = 0; r < t.ctrlRule.length; r++) {
2831
2847
  const i = t.ctrlRule[r];
2832
2848
  if (i.children === e)
2833
2849
  return i;
2834
2850
  }
2835
2851
  }
2836
- function Be(t) {
2852
+ function Te(t) {
2837
2853
  return !!t.rule.__ctrl;
2838
2854
  }
2839
- function $r(t) {
2855
+ function yr(t) {
2840
2856
  p(t.prototype, {
2841
2857
  getValue(e) {
2842
- return f.Undef(e.cacheValue) && (e.cacheValue = e.parser.toValue(this.getFormData(e), e)), e.cacheValue;
2858
+ return h.Undef(e.cacheValue) && (e.cacheValue = e.parser.toValue(this.getFormData(e), e)), e.cacheValue;
2843
2859
  },
2844
2860
  setValue(e, r, i, s) {
2845
2861
  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, {
@@ -2859,14 +2875,14 @@ function $r(t) {
2859
2875
  return this.formData[e.id];
2860
2876
  },
2861
2877
  validate() {
2862
- return Ne(this.vm.validate), this.fields().forEach((e) => {
2878
+ return Le(this.vm.validate), this.fields().forEach((e) => {
2863
2879
  this.fieldCtx[e].forEach((r) => {
2864
2880
  this.vm.validate[r.id] = I(r.rule.validate);
2865
2881
  });
2866
2882
  }), this.vm.validate;
2867
2883
  },
2868
2884
  syncForm() {
2869
- Ne(this.form), Object.defineProperties(this.form, this.fields().reduce((e, r) => {
2885
+ Le(this.form), Object.defineProperties(this.form, this.fields().reduce((e, r) => {
2870
2886
  const i = this.getFieldCtx(r), s = this.valueHandle(i);
2871
2887
  return s.configurable = !0, e[r] = s, e;
2872
2888
  }, this.options.appendValue !== !1 ? Object.keys(this.appendData).reduce((e, r) => (e[r] = {
@@ -2902,13 +2918,13 @@ function $r(t) {
2902
2918
  this.vm._updateValue(y(y({}, this.options.appendValue !== !1 ? this.appendData : {}), this.form));
2903
2919
  },
2904
2920
  isChange(e, r) {
2905
- return JSON.stringify(e.rule.value, Le) !== JSON.stringify(r === null ? void 0 : r, Le);
2921
+ return JSON.stringify(e.rule.value, Be) !== JSON.stringify(r === null ? void 0 : r, Be);
2906
2922
  },
2907
2923
  isQuote(e, r) {
2908
- return (f.Object(r) || Array.isArray(r)) && r === e.rule.value;
2924
+ return (h.Object(r) || Array.isArray(r)) && r === e.rule.value;
2909
2925
  },
2910
2926
  refreshUpdate(e, r, i, s) {
2911
- if (f.Function(e.rule.update)) {
2927
+ if (h.Function(e.rule.update)) {
2912
2928
  const n = E(() => e.rule.update(r, e.origin, this.api, {
2913
2929
  origin: i || "change",
2914
2930
  linkField: s
@@ -2925,7 +2941,7 @@ function $r(t) {
2925
2941
  },
2926
2942
  appendLink(e) {
2927
2943
  const r = e.rule.link;
2928
- f.trueArray(r) && r.forEach((i) => {
2944
+ h.trueArray(r) && r.forEach((i) => {
2929
2945
  const s = () => this.refreshRule(e, e.rule.value, "link", i);
2930
2946
  this.bus.$on("change-" + i, s), e.linkOn.push(() => this.bus.$off("change-" + i, s));
2931
2947
  });
@@ -2935,13 +2951,13 @@ function $r(t) {
2935
2951
  }
2936
2952
  });
2937
2953
  }
2938
- function Le(t, e) {
2954
+ function Be(t, e) {
2939
2955
  return typeof e == "function" ? "" + e : e;
2940
2956
  }
2941
- function Ne(t) {
2957
+ function Le(t) {
2942
2958
  Object.keys(t).forEach((e) => delete t[e]);
2943
2959
  }
2944
- const he = {
2960
+ const ce = {
2945
2961
  init(t) {
2946
2962
  },
2947
2963
  toFormValue(t, e) {
@@ -2960,8 +2976,8 @@ const he = {
2960
2976
  },
2961
2977
  mergeProp(t) {
2962
2978
  }
2963
- }, vr = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "component", "cache"];
2964
- function br(t) {
2979
+ }, gr = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "component", "cache"];
2980
+ function $r(t) {
2965
2981
  p(t.prototype, {
2966
2982
  getCtx(e) {
2967
2983
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
@@ -2991,7 +3007,7 @@ function br(t) {
2991
3007
  },
2992
3008
  getParser(e) {
2993
3009
  const r = this.fc.parsers;
2994
- return r[e.originType] || r[R(e.type)] || r[e.trueType] || he;
3010
+ return r[e.originType] || r[R(e.type)] || r[e.trueType] || ce;
2995
3011
  },
2996
3012
  bindParser(e) {
2997
3013
  e.setParser(this.getParser(e));
@@ -3005,7 +3021,7 @@ function br(t) {
3005
3021
  },
3006
3022
  watchCtx(e) {
3007
3023
  const r = this.vm;
3008
- Object.keys(e.rule).filter((i) => i[0] !== "_" && i[0] !== "$" && vr.indexOf(i) === -1).forEach((i) => {
3024
+ Object.keys(e.rule).filter((i) => i[0] !== "_" && i[0] !== "$" && gr.indexOf(i) === -1).forEach((i) => {
3009
3025
  const s = i === "children";
3010
3026
  e.watch.push(r.$watch(() => e.rule[i], (n, o) => {
3011
3027
  if (!(this.loading || this.noWatchFn || this.reloading)) {
@@ -3025,7 +3041,7 @@ function br(t) {
3025
3041
  else if (i === "type")
3026
3042
  e.updateType(), this.bindParser(e);
3027
3043
  else if (i === "children") {
3028
- const a = f.trueArray(n);
3044
+ const a = h.trueArray(n);
3029
3045
  this.deferSyncValue(() => {
3030
3046
  n !== o && (this.rmSub(o, e), this.$render.initOrgChildren()), a && this.loadChildren(n, e), this.vm.$emit("update", this.api);
3031
3047
  });
@@ -3036,7 +3052,7 @@ function br(t) {
3036
3052
  }), this.watchEffect(e);
3037
3053
  },
3038
3054
  rmSub(e, r) {
3039
- f.trueArray(e) && e.forEach((i) => {
3055
+ h.trueArray(e) && e.forEach((i) => {
3040
3056
  i && i.__fc__ && i.__fc__.parent === r && this.rmCtx(i.__fc__);
3041
3057
  });
3042
3058
  },
@@ -3047,14 +3063,14 @@ function br(t) {
3047
3063
  value: e.rule.value,
3048
3064
  writable: !0
3049
3065
  }), T(this.ctxs, r), T(this.$render.tempList, r), T(this.$render.orgChildren, r), T(this.vm.ctxInject, r), T(this.formData, r), T(this.subForm, r), T(e, "cacheValue"), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !k(this.fieldCtx, i) && T(this.form, i), this.deferSyncValue(() => {
3050
- this.reloading || (e.parser.loadChildren !== !1 && f.trueArray(e.rule.children) && e.rule.children.forEach((a) => a.__fc__ && this.rmCtx(a.__fc__)), e.root === this.rules && this.vm._renderRule());
3066
+ 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());
3051
3067
  }, s);
3052
3068
  const o = this.sort.indexOf(r);
3053
3069
  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;
3054
3070
  }
3055
3071
  });
3056
3072
  }
3057
- function Cr(t) {
3073
+ function vr(t) {
3058
3074
  p(t.prototype, {
3059
3075
  mounted() {
3060
3076
  const e = () => {
@@ -3072,19 +3088,19 @@ function Cr(t) {
3072
3088
  const i = this.options[e] || this.options[R("on-" + e)];
3073
3089
  if (i) {
3074
3090
  const s = M(i);
3075
- f.Function(s) && E(() => s(...r));
3091
+ h.Function(s) && E(() => s(...r));
3076
3092
  }
3077
3093
  this.bus.$emit(e, ...r);
3078
3094
  }
3079
3095
  });
3080
3096
  }
3081
- function _r(t) {
3097
+ function br(t) {
3082
3098
  p(t.prototype, {
3083
3099
  useProvider() {
3084
3100
  const e = this.fc.providers;
3085
3101
  Object.keys(e).forEach((r) => {
3086
3102
  let i = e[r];
3087
- f.Function(i) && (i = i(this.fc)), i._c = kr(i), this.onEffect(i), this.providers[r] = i;
3103
+ h.Function(i) && (i = i(this.fc)), i._c = _r(i), this.onEffect(i), this.providers[r] = i;
3088
3104
  });
3089
3105
  },
3090
3106
  onEffect(e) {
@@ -3155,17 +3171,17 @@ function _r(t) {
3155
3171
  }
3156
3172
  });
3157
3173
  }
3158
- function Or(t) {
3174
+ function Cr(t) {
3159
3175
  return t.filter(function(e, r, i) {
3160
3176
  return i.indexOf(e, 0) === r;
3161
3177
  });
3162
3178
  }
3163
- function kr(t) {
3179
+ function _r(t) {
3164
3180
  const e = t.components;
3165
3181
  if (Array.isArray(e)) {
3166
- const r = Or(e.filter((i) => i !== "*"));
3182
+ const r = Cr(e.filter((i) => i !== "*"));
3167
3183
  return r.length ? r : !1;
3168
- } else return f.String(e) ? [e] : !1;
3184
+ } else return h.String(e) ? [e] : !1;
3169
3185
  }
3170
3186
  function A(t) {
3171
3187
  p(this, {
@@ -3190,14 +3206,14 @@ function A(t) {
3190
3206
  nextReload: () => {
3191
3207
  this.lifecycle("reload");
3192
3208
  }
3193
- }), it(this, {
3209
+ }), tt(this, {
3194
3210
  options() {
3195
3211
  return t.options;
3196
3212
  },
3197
3213
  bus() {
3198
3214
  return t.bus;
3199
3215
  }
3200
- }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new $e(this), this.api = t.extendApi(nr(this), this);
3216
+ }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new be(this), this.api = t.extendApi(rr(this), this);
3201
3217
  }
3202
3218
  p(A.prototype, {
3203
3219
  initData(t) {
@@ -3215,30 +3231,30 @@ p(A.prototype, {
3215
3231
  beforeFetch(t) {
3216
3232
  return new Promise((e) => {
3217
3233
  const r = this.options.beforeFetch && E(() => this.options.beforeFetch(t, { api: this.api }));
3218
- r && f.Function(r.then) ? r.then(e) : e();
3234
+ r && h.Function(r.then) ? r.then(e) : e();
3219
3235
  });
3220
3236
  }
3221
3237
  });
3222
- ur(A);
3223
- hr(A);
3238
+ ar(A);
3239
+ lr(A);
3240
+ fr(A);
3224
3241
  cr(A);
3225
- pr(A);
3242
+ yr(A);
3226
3243
  $r(A);
3244
+ vr(A);
3227
3245
  br(A);
3228
- Cr(A);
3229
- _r(A);
3230
- const wr = "fcFragment", te = {
3231
- name: wr,
3246
+ const Or = "fcFragment", re = {
3247
+ name: Or,
3232
3248
  functional: !0,
3233
3249
  props: ["vnode"],
3234
3250
  render(t, e) {
3235
3251
  return e.props.vnode ? e.props.vnode : e.children;
3236
3252
  }
3237
3253
  };
3238
- function Fr(t) {
3239
- return f.String(t) ? { domProps: { innerHTML: t } } : t;
3254
+ function kr(t) {
3255
+ return h.String(t) ? { domProps: { innerHTML: t } } : t;
3240
3256
  }
3241
- function Sr() {
3257
+ function wr() {
3242
3258
  const t = {};
3243
3259
  function e(r) {
3244
3260
  r && this.setVm(r);
@@ -3251,7 +3267,7 @@ function Sr() {
3251
3267
  return P.config.isReservedTag(r) && i.nativeOn && delete i.nativeOn, this.makeComponent(r, i, s);
3252
3268
  },
3253
3269
  makeComponent(r, i, s) {
3254
- let n = this.$h(r, Fr(i), s || []);
3270
+ let n = this.$h(r, kr(i), s || []);
3255
3271
  return n.context = this.vm, n;
3256
3272
  },
3257
3273
  aliasMap: t
@@ -3262,7 +3278,7 @@ function Sr() {
3262
3278
  },
3263
3279
  use(r) {
3264
3280
  Object.keys(r).forEach((i) => {
3265
- const s = X(i), n = or(i).toLocaleLowerCase(), o = r[i];
3281
+ const s = X(i), n = nr(i).toLocaleLowerCase(), o = r[i];
3266
3282
  [i, s, n].forEach((a) => {
3267
3283
  e.alias(i, o), e.prototype[a] = function(u, l) {
3268
3284
  return this.make(o, u, l);
@@ -3272,12 +3288,12 @@ function Sr() {
3272
3288
  }
3273
3289
  }), e;
3274
3290
  }
3275
- function Er(t) {
3276
- class e extends ht {
3291
+ function Fr(t) {
3292
+ class e extends lt {
3277
3293
  }
3278
3294
  return Object.assign(e.prototype, t), e;
3279
3295
  }
3280
- function ht(t) {
3296
+ function lt(t) {
3281
3297
  p(this, {
3282
3298
  $handle: t,
3283
3299
  vm: t.vm,
@@ -3288,7 +3304,7 @@ function ht(t) {
3288
3304
  }
3289
3305
  }), this.updateKey(), this.init();
3290
3306
  }
3291
- p(ht.prototype, {
3307
+ p(lt.prototype, {
3292
3308
  __init() {
3293
3309
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
3294
3310
  },
@@ -3333,7 +3349,7 @@ p(ht.prototype, {
3333
3349
  render(t) {
3334
3350
  }
3335
3351
  });
3336
- const Rr = function(t) {
3352
+ const Sr = function(t) {
3337
3353
  const e = {
3338
3354
  name: "loadData",
3339
3355
  _fn: [],
@@ -3359,13 +3375,13 @@ const Rr = function(t) {
3359
3375
  }
3360
3376
  };
3361
3377
  return e.watch = e.created, e;
3362
- }, ft = {
3378
+ }, ut = {
3363
3379
  name: "componentValidate",
3364
3380
  load(t, e, r) {
3365
3381
  const i = t.getValue();
3366
3382
  i ? t.getProp().validate = [{
3367
3383
  validator(...s) {
3368
- const n = K(e);
3384
+ const n = x(e);
3369
3385
  if (n)
3370
3386
  return r.exec(n.id, i === !0 ? "formCreateValidate" : i, ...s, {
3371
3387
  attr: t,
@@ -3376,11 +3392,11 @@ const Rr = function(t) {
3376
3392
  }] : (t.clearProp(), r.clearValidateState([e.field]));
3377
3393
  },
3378
3394
  watch(...t) {
3379
- ft.load(...t);
3395
+ ut.load(...t);
3380
3396
  }
3381
- }, Ir = function(t) {
3397
+ }, Er = function(t) {
3382
3398
  function e(i) {
3383
- return f.String(i) && (i = {
3399
+ return h.String(i) && (i = {
3384
3400
  action: i,
3385
3401
  to: "options"
3386
3402
  }), i;
@@ -3390,7 +3406,7 @@ const Rr = function(t) {
3390
3406
  const a = (m) => {
3391
3407
  m === void 0 ? (i.clearProp(), n.sync(s)) : Q(i.getProp(), o.to || "options", m);
3392
3408
  };
3393
- if (f.Function(o) && (o = o(s, n)), o = e(o), !o || !o.action) {
3409
+ if (h.Function(o) && (o = o(s, n)), o = e(o), !o || !o.action) {
3394
3410
  a(void 0);
3395
3411
  return;
3396
3412
  }
@@ -3404,16 +3420,16 @@ const Rr = function(t) {
3404
3420
  onSuccess(m, v) {
3405
3421
  if (l()) return;
3406
3422
  let _ = (g) => v ? g : k(g, "data") ? g.data : g;
3407
- f.Function(o.parse) ? _ = o.parse : o.parse && f.String(o.parse) && (_ = (g) => (o.parse.split(".").forEach((O) => {
3423
+ h.Function(o.parse) ? _ = o.parse : o.parse && h.String(o.parse) && (_ = (g) => (o.parse.split(".").forEach((O) => {
3408
3424
  g && (g = g[O]);
3409
3425
  }), g)), a(_(m, s, n)), n.sync(s);
3410
3426
  },
3411
3427
  onError(m) {
3412
- a(void 0), !l() && (u || ((v) => me(v.message || "fetch fail " + o.action)))(m, s, n);
3428
+ a(void 0), !l() && (u || ((v) => ge(v.message || "fetch fail " + o.action)))(m, s, n);
3413
3429
  }
3414
3430
  });
3415
3431
  t.$handle.beforeFetch(c, { rule: s, api: n }).then(() => {
3416
- if (f.Function(o.action)) {
3432
+ if (h.Function(o.action)) {
3417
3433
  o.action(s, n).then((m) => {
3418
3434
  c.onSuccess(m, !0);
3419
3435
  }).catch((m) => {
@@ -3433,17 +3449,17 @@ const Rr = function(t) {
3433
3449
  r(...i);
3434
3450
  }
3435
3451
  };
3436
- }, ct = {
3452
+ }, ft = {
3437
3453
  name: "required",
3438
3454
  load(t, e, r) {
3439
- const i = jr(t.getValue());
3455
+ const i = Rr(t.getValue());
3440
3456
  if (i.required === !1)
3441
3457
  t.clearProp(), r.clearValidateState([e.field]);
3442
3458
  else {
3443
3459
  const s = y({
3444
3460
  required: !0,
3445
3461
  validator(n, o, a) {
3446
- f.empty(o) ? a(s.message) : a();
3462
+ h.empty(o) ? a(s.message) : a();
3447
3463
  }
3448
3464
  }, i);
3449
3465
  if (!s.message) {
@@ -3455,38 +3471,38 @@ const Rr = function(t) {
3455
3471
  r.sync(e);
3456
3472
  },
3457
3473
  watch(...t) {
3458
- ct.load(...t);
3474
+ ft.load(...t);
3459
3475
  }
3460
3476
  };
3461
- function jr(t) {
3462
- return f.Boolean(t) ? { required: t } : f.String(t) ? { message: t } : f.Undef(t) ? { required: !1 } : f.Function(t) ? { validator: t } : f.Object(t) ? t : {};
3477
+ function Rr(t) {
3478
+ 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 : {};
3463
3479
  }
3464
- const Ar = {
3465
- fetch: Ir,
3466
- loadData: Rr,
3467
- required: ct,
3468
- componentValidate: ft
3469
- }, Vr = "html", Pr = {
3470
- name: Vr,
3480
+ const Ir = {
3481
+ fetch: Er,
3482
+ loadData: Sr,
3483
+ required: ft,
3484
+ componentValidate: ut
3485
+ }, jr = "html", Ar = {
3486
+ name: jr,
3471
3487
  loadChildren: !1,
3472
3488
  render(t, e) {
3473
3489
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
3474
3490
  },
3475
3491
  renderChildren(t) {
3476
- return Array.isArray(t.rule.children) ? t.rule.children.filter((e) => f.String(e)).join("") : "";
3492
+ return Array.isArray(t.rule.children) ? t.rule.children.filter((e) => h.String(e)).join("") : "";
3477
3493
  }
3478
3494
  };
3479
- function Dr(t, e) {
3495
+ function Vr(t, e) {
3480
3496
  let r;
3481
3497
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
3482
3498
  }
3483
- function re() {
3484
- return Dr("name", ...arguments);
3499
+ function ie() {
3500
+ return Vr("name", ...arguments);
3485
3501
  }
3486
- function Me(t) {
3487
- return !t || !t.el ? window.document.body : f.Element(t.el) ? t.el : document.querySelector(t.el);
3502
+ function Ne(t) {
3503
+ return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
3488
3504
  }
3489
- function Ue(t, e) {
3505
+ function Me(t, e) {
3490
3506
  const r = new P({
3491
3507
  data() {
3492
3508
  return { rule: t, option: e || {} };
@@ -3497,116 +3513,116 @@ function Ue(t, e) {
3497
3513
  });
3498
3514
  return r.$mount(), r;
3499
3515
  }
3500
- function Tr(t) {
3516
+ function Pr(t) {
3501
3517
  const e = t.key || [], r = t.array || [], i = t.normal || [];
3502
- Ye.push(...e), ce.push(...r), de.push(...i), st([...e, ...r, ...i]);
3518
+ Ze.push(...e), pe.push(...r), me.push(...i), it([...e, ...r, ...i]);
3503
3519
  }
3504
- let Br = 1;
3520
+ let Dr = 1;
3505
3521
  const S = {};
3506
- function dt(t) {
3522
+ function ht(t) {
3507
3523
  const e = {
3508
- [te.name]: te
3509
- }, r = {}, i = {}, s = y({}, Ar), n = tr();
3524
+ [re.name]: re
3525
+ }, r = {}, i = {}, s = y({}, Ir), n = Yt();
3510
3526
  let o = { global: {} };
3511
- const a = {}, u = Sr(), l = {};
3512
- Tr(t.attrs || {});
3513
- function c(h) {
3514
- const d = S[h];
3527
+ const a = {}, u = wr(), l = {};
3528
+ Pr(t.attrs || {});
3529
+ function c(f) {
3530
+ const d = S[f];
3515
3531
  if (Array.isArray(d))
3516
3532
  return d.map(($) => $.api());
3517
3533
  if (d)
3518
3534
  return d.api();
3519
3535
  }
3520
3536
  function m() {
3521
- const h = re(...arguments);
3522
- h.id && h.prop && (i[h.id] = h.prop);
3537
+ const f = ie(...arguments);
3538
+ f.id && f.prop && (i[f.id] = f.prop);
3523
3539
  }
3524
3540
  function v() {
3525
- const h = re(...arguments);
3526
- h.id && h.prop && (s[h.id] = q(y({}, h.prop), { name: h.id }));
3541
+ const f = ie(...arguments);
3542
+ f.id && f.prop && (s[f.id] = q(y({}, f.prop), { name: f.id }));
3527
3543
  }
3528
- function _(h) {
3529
- u.use(h);
3544
+ function _(f) {
3545
+ u.use(f);
3530
3546
  }
3531
3547
  function g() {
3532
- const h = re(...arguments);
3533
- if (!h.id || !h.prop) return he;
3534
- const d = R(h.id), $ = h.prop, b = $.merge === !0 ? r[d] : void 0;
3535
- r[d] = $, Object.setPrototypeOf($, b || he), n[d] = F(d), $.maker && p(n, $.maker);
3548
+ const f = ie(...arguments);
3549
+ if (!f.id || !f.prop) return ce;
3550
+ const d = R(f.id), $ = f.prop, b = $.merge === !0 ? r[d] : void 0;
3551
+ r[d] = $, Object.setPrototypeOf($, b || ce), n[d] = F(d), $.maker && p(n, $.maker);
3536
3552
  }
3537
- function O(h, d) {
3553
+ function O(f, d) {
3538
3554
  let $;
3539
- if (f.String(h)) {
3540
- if ($ = R(h), ["form-create", "formcreate"].indexOf($) > -1)
3555
+ if (h.String(f)) {
3556
+ if ($ = R(f), ["form-create", "formcreate"].indexOf($) > -1)
3541
3557
  return W();
3542
3558
  if (d === void 0)
3543
3559
  return e[$];
3544
3560
  } else
3545
- $ = R(h.name), d = h;
3561
+ $ = R(f.name), d = f;
3546
3562
  if (!$ || !d) return;
3547
3563
  const b = R($);
3548
3564
  e[$] = d, e[b] = d, delete u.aliasMap[$], delete u.aliasMap[b], delete r[$], delete r[b], d.formCreateParser && g($, d.formCreateParser);
3549
3565
  }
3550
- function ve(h) {
3566
+ function Ce(f) {
3551
3567
  Object.keys(S).forEach((d) => {
3552
3568
  (Array.isArray(S[d]) ? S[d] : [S[d]]).forEach((b) => {
3553
- b.bus.$emit("p.loadData." + h);
3569
+ b.bus.$emit("p.loadData." + f);
3554
3570
  });
3555
3571
  });
3556
3572
  }
3557
- function be(h, d) {
3558
- a[h] = d, ve(h);
3573
+ function _e(f, d) {
3574
+ a[f] = d, Ce(f);
3559
3575
  }
3560
- function Ce(h, d) {
3561
- return k(a, h) ? a[h] : d;
3576
+ function Oe(f, d) {
3577
+ return k(a, f) ? a[f] : d;
3562
3578
  }
3563
- function pt(h) {
3564
- delete a[h], ve(h);
3579
+ function ct(f) {
3580
+ delete a[f], Ce(f);
3565
3581
  }
3566
3582
  function W() {
3567
- return xt(Oe, e, i);
3583
+ return zt(we, e, i);
3568
3584
  }
3569
- function _e() {
3570
- return te;
3585
+ function ke() {
3586
+ return re;
3571
3587
  }
3572
- function mt(h, d) {
3573
- return f.Function(h.install) ? h.install(N, d) : f.Function(h) && h(N, d), this;
3588
+ function dt(f, d) {
3589
+ return h.Function(f.install) ? f.install(N, d) : h.Function(f) && f(N, d), this;
3574
3590
  }
3575
- function N(h, d, $) {
3576
- let b = Ue(h, d || {});
3591
+ function N(f, d, $) {
3592
+ let b = Me(f, d || {});
3577
3593
  const j = b.$refs.fc.formCreate;
3578
- return j.$parent = $, Me(j.options).appendChild(b.$el), j.api();
3594
+ return j.$parent = $, Ne(j.options).appendChild(b.$el), j.api();
3579
3595
  }
3580
3596
  Object.setPrototypeOf(N, l);
3581
- function yt(h) {
3597
+ function pt(f) {
3582
3598
  let d = y({}, t);
3583
- return h ? d.inherit = {
3599
+ return f ? d.inherit = {
3584
3600
  components: e,
3585
3601
  parsers: r,
3586
3602
  directives: i,
3587
3603
  providers: s,
3588
3604
  maker: n,
3589
3605
  loadData: a
3590
- } : delete d.inherit, dt(d);
3606
+ } : delete d.inherit, ht(d);
3591
3607
  }
3592
- function Oe(h) {
3593
- const d = h.$options.propsData.rule;
3608
+ function we(f) {
3609
+ const d = f.$options.propsData.rule;
3594
3610
  p(this, {
3595
- id: Br++,
3596
- vm: h,
3611
+ id: Dr++,
3612
+ vm: f,
3597
3613
  create: N,
3598
- manager: Er(t.manager),
3614
+ manager: Fr(t.manager),
3599
3615
  parsers: r,
3600
3616
  providers: s,
3601
3617
  rules: Array.isArray(d) ? d : [],
3602
- name: h.$options.propsData.name || ee(),
3603
- inFor: h.$options.propsData.inFor,
3618
+ name: f.$options.propsData.name || ee(),
3619
+ inFor: f.$options.propsData.inFor,
3604
3620
  prop: {
3605
3621
  components: e,
3606
3622
  directives: i
3607
3623
  },
3608
- setData: be,
3609
- getData: Ce,
3624
+ setData: _e,
3625
+ getData: Oe,
3610
3626
  loadData: a,
3611
3627
  CreateNode: u,
3612
3628
  bus: new P(),
@@ -3615,23 +3631,23 @@ function dt(t) {
3615
3631
  extendApi: t.extendApi || (($) => $)
3616
3632
  }), this.init(), this.initOptions(), this.name && (this.inFor ? (S[this.name] || (S[this.name] = []), S[this.name].push(this)) : S[this.name] = this);
3617
3633
  }
3618
- p(Oe.prototype, {
3634
+ p(we.prototype, {
3619
3635
  init() {
3620
- const h = this.vm, d = new A(this);
3621
- this.$handle = d, h.$f = d.api, h.$emit("input", d.api), h.$on("hook:created", () => {
3622
- this.isSub() && (this.unwatch = h.$watch(() => h.$pfc.option, () => {
3623
- this.initOptions(), h.$f.refresh();
3636
+ const f = this.vm, d = new A(this);
3637
+ this.$handle = d, f.$f = d.api, f.$emit("input", d.api), f.$on("hook:created", () => {
3638
+ this.isSub() && (this.unwatch = f.$watch(() => f.$pfc.option, () => {
3639
+ this.initOptions(), f.$f.refresh();
3624
3640
  }, { deep: !0 }), this.initOptions()), this.created();
3625
- }), h.$on("hook:mounted", () => {
3641
+ }), f.$on("hook:mounted", () => {
3626
3642
  this.mounted();
3627
- }), h.$on("hook:beforeDestroy", () => {
3628
- if (h.destroyed = !0, this.unwatch && this.unwatch(), d.reloadRule([]), this.name)
3643
+ }), f.$on("hook:beforeDestroy", () => {
3644
+ if (f.destroyed = !0, this.unwatch && this.unwatch(), d.reloadRule([]), this.name)
3629
3645
  if (this.inFor) {
3630
3646
  const $ = S[this.name].indexOf(this);
3631
3647
  S[this.name].splice($, 1), S[this.name].length || delete S[this.name];
3632
3648
  } else
3633
3649
  delete S[this.name];
3634
- }), h.$on("hook:updated", () => {
3650
+ }), f.$on("hook:updated", () => {
3635
3651
  d.bindNextTick(() => this.bus.$emit("next-tick", d.api));
3636
3652
  });
3637
3653
  },
@@ -3640,16 +3656,16 @@ function dt(t) {
3640
3656
  },
3641
3657
  initOptions() {
3642
3658
  this.options = {};
3643
- let h = y({ formData: {}, submitBtn: {}, resetBtn: {} }, B(o));
3644
- this.isSub() && this.mergeOptions(this.options, this.vm.$pfc.$f.config || {}, !0), h = this.mergeOptions(h, this.vm.$options.propsData.option), this.updateOptions(h);
3659
+ let f = y({ formData: {}, submitBtn: {}, resetBtn: {} }, B(o));
3660
+ this.isSub() && this.mergeOptions(this.options, this.vm.$pfc.$f.config || {}, !0), f = this.mergeOptions(f, this.vm.$options.propsData.option), this.updateOptions(f);
3645
3661
  },
3646
- mergeOptions(h, d, $) {
3662
+ mergeOptions(f, d, $) {
3647
3663
  return d = B(d), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el"].forEach((b) => {
3648
3664
  delete d[b];
3649
- }), d.global && (h.global = Yt(h.global, d.global), delete d.global), this.$handle.$manager.mergeOptions([d], h), h;
3665
+ }), d.global && (f.global = Qt(f.global, d.global), delete d.global), this.$handle.$manager.mergeOptions([d], f), f;
3650
3666
  },
3651
- updateOptions(h) {
3652
- this.mergeOptions(this.options, h), this.$handle.$manager.updateOptions(this.options);
3667
+ updateOptions(f) {
3668
+ this.mergeOptions(this.options, f), this.$handle.$manager.updateOptions(this.options);
3653
3669
  },
3654
3670
  created() {
3655
3671
  this.$handle.init(), this.vm.$emit("created", this.api());
@@ -3664,35 +3680,35 @@ function dt(t) {
3664
3680
  this.$handle.mounted();
3665
3681
  }
3666
3682
  });
3667
- function ke(h) {
3668
- p(h, {
3683
+ function Fe(f) {
3684
+ p(f, {
3669
3685
  version: t.version,
3670
3686
  ui: t.ui,
3671
- setData: be,
3672
- getData: Ce,
3673
- removeData: pt,
3687
+ setData: _e,
3688
+ getData: Oe,
3689
+ removeData: ct,
3674
3690
  maker: n,
3675
3691
  component: O,
3676
3692
  directive: m,
3677
3693
  register: v,
3678
- $vnode: _e,
3694
+ $vnode: ke,
3679
3695
  parser: g,
3680
- use: mt,
3681
- factory: yt,
3696
+ use: dt,
3697
+ factory: pt,
3682
3698
  componentAlias: _,
3683
- copyRule: ye,
3684
- copyRules: rt,
3685
- fetch: at,
3699
+ copyRule: $e,
3700
+ copyRules: et,
3701
+ fetch: st,
3686
3702
  $form: W,
3687
3703
  parseFn: M,
3688
- parseJson: Zt,
3689
- toJson: et,
3704
+ parseJson: Xt,
3705
+ toJson: Ye,
3690
3706
  getApi: c,
3691
3707
  init(d, $ = {}) {
3692
- let b = Ue(d, $), j = b.$refs.fc.formCreate;
3708
+ let b = Me(d, $), j = b.$refs.fc.formCreate;
3693
3709
  return {
3694
3710
  mount(H) {
3695
- return H && f.Element(H) && (j.options.el = H), Me(j.options).appendChild(b.$el), j.api();
3711
+ return H && h.Element(H) && (j.options.el = H), Ne(j.options).appendChild(b.$el), j.api();
3696
3712
  },
3697
3713
  remove() {
3698
3714
  b.$el.parentNode && b.$el.parentNode.removeChild(b.$el);
@@ -3705,8 +3721,8 @@ function dt(t) {
3705
3721
  }
3706
3722
  });
3707
3723
  }
3708
- function gt(h) {
3709
- p(h, {
3724
+ function mt(f) {
3725
+ p(f, {
3710
3726
  create: N,
3711
3727
  install(d, $) {
3712
3728
  if (o = y(y({}, o), $ || {}), d._installedFormCreate === !0) return;
@@ -3714,42 +3730,42 @@ function dt(t) {
3714
3730
  const b = function(j, H = {}) {
3715
3731
  return N(j, H, this);
3716
3732
  };
3717
- ke(b), d.prototype.$formCreate = b, d.component("FormCreate", W()), d.component("FcFragment", _e());
3733
+ Fe(b), d.prototype.$formCreate = b, d.component("FormCreate", W()), d.component("FcFragment", ke());
3718
3734
  }
3719
3735
  });
3720
3736
  }
3721
- if (ke(l), gt(l), u.use({ fragment: "fcFragment" }), g(Pr), t.install && N.use(t), t.inherit) {
3722
- const h = t.inherit;
3723
- h.components && p(e, h.components), h.parsers && p(r, h.parsers), h.directives && p(i, h.directives), h.providers && p(s, h.providers), h.maker && p(n, h.maker), h.loadData && p(a, h.loadData);
3737
+ if (Fe(l), mt(l), u.use({ fragment: "fcFragment" }), g(Ar), t.install && N.use(t), t.inherit) {
3738
+ const f = t.inherit;
3739
+ f.components && p(e, f.components), f.parsers && p(r, f.parsers), f.directives && p(i, f.directives), f.providers && p(s, f.providers), f.maker && p(n, f.maker), f.loadData && p(a, f.loadData);
3724
3740
  }
3725
- const x = W();
3726
- return Object.setPrototypeOf(x, l), Object.defineProperties(x, {
3741
+ const G = W();
3742
+ return Object.setPrototypeOf(G, l), Object.defineProperties(G, {
3727
3743
  fetch: {
3728
3744
  get() {
3729
3745
  return l.fetch;
3730
3746
  },
3731
- set(h) {
3732
- l.fetch = h;
3747
+ set(f) {
3748
+ l.fetch = f;
3733
3749
  }
3734
3750
  }
3735
- }), x.util = l, x;
3751
+ }), G.util = l, G;
3736
3752
  }
3737
- function ie(t) {
3738
- if (f.Date(t))
3753
+ function ne(t) {
3754
+ if (h.Date(t))
3739
3755
  return t;
3740
3756
  {
3741
3757
  let e = new Date(t);
3742
3758
  return e.toString() === "Invalid Date" ? t : e;
3743
3759
  }
3744
3760
  }
3745
- const qe = "datePicker", Lr = {
3746
- name: qe,
3761
+ const Ue = "datePicker", Tr = {
3762
+ name: Ue,
3747
3763
  maker: function() {
3748
- return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = F(qe, { type: e.toLowerCase() }), t), {});
3764
+ return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = F(Ue, { type: e.toLowerCase() }), t), {});
3749
3765
  }(),
3750
3766
  mergeProp(t) {
3751
3767
  let e = t.prop.props;
3752
- e.startDate && (e.startDate = e.startDate && ie(e.startDate));
3768
+ e.startDate && (e.startDate = e.startDate && ne(e.startDate));
3753
3769
  },
3754
3770
  isRange(t) {
3755
3771
  return t.type.includes("range") || t.multiple;
@@ -3768,60 +3784,60 @@ const qe = "datePicker", Lr = {
3768
3784
  return this.isRange(e.el) ? r : r[0];
3769
3785
  } else {
3770
3786
  let r = Array.isArray(t), i = e.prop.props, s, n = i.type || "date";
3771
- return ["daterange", "datetimerange"].indexOf(n) !== -1 ? r ? s = t.map((o) => o ? ie(o) : "") : s = ["", ""] : n === "date" && i.multiple === !0 ? s = toString(t) : (s = r ? t[0] || "" : t, s = s ? ie(s) : ""), s;
3787
+ return ["daterange", "datetimerange"].indexOf(n) !== -1 ? r ? s = t.map((o) => o ? ne(o) : "") : s = ["", ""] : n === "date" && i.multiple === !0 ? s = toString(t) : (s = r ? t[0] || "" : t, s = s ? ne(s) : ""), s;
3772
3788
  }
3773
3789
  },
3774
3790
  mounted(t) {
3775
3791
  t.rule.value = this.toValue(t.$handle.getFormData(t), t);
3776
3792
  }
3777
- }, ne = "hidden", Nr = {
3778
- name: ne,
3793
+ }, se = "hidden", Br = {
3794
+ name: se,
3779
3795
  maker: {
3780
- [ne]: (t, e) => F(ne)("", t, e)
3796
+ [se]: (t, e) => F(se)("", t, e)
3781
3797
  },
3782
3798
  render() {
3783
3799
  return [];
3784
3800
  }
3785
- }, se = "input", Mr = {
3786
- name: se,
3801
+ }, oe = "input", Lr = {
3802
+ name: oe,
3787
3803
  maker: function() {
3788
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = F(se, { type: r }), e), {});
3789
- return t.idate = F(se, { type: "date" }), t;
3804
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = F(oe, { type: r }), e), {});
3805
+ return t.idate = F(oe, { type: "date" }), t;
3790
3806
  }(),
3791
3807
  mergeProp(t) {
3792
3808
  let { props: e } = t.prop;
3793
3809
  e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
3794
3810
  }
3795
- }, He = "slider", Ur = {
3796
- name: He,
3811
+ }, qe = "slider", Nr = {
3812
+ name: qe,
3797
3813
  maker: {
3798
- sliderRange: F(He, { range: !0 })
3814
+ sliderRange: F(qe, { range: !0 })
3799
3815
  },
3800
3816
  toFormValue(t, e) {
3801
3817
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
3802
3818
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
3803
3819
  }
3804
- }, qr = {
3820
+ }, Mr = {
3805
3821
  name: "switch",
3806
3822
  mergeProp(t) {
3807
3823
  const e = t.prop.props.slot || {}, r = t.prop.scopedSlots || {};
3808
3824
  e.open && (r.open = () => e.open), e.close && (r.close = () => e.close), t.prop.scopedSlots = r;
3809
3825
  }
3810
- }, Hr = {
3826
+ }, Ur = {
3811
3827
  name: "FcRow",
3812
3828
  render(t, e) {
3813
3829
  return e.vNode.col({ props: { span: 24 } }, [
3814
3830
  e.vNode.row(e.prop, t)
3815
3831
  ]);
3816
3832
  }
3817
- }, Jr = [
3833
+ }, qr = [
3834
+ Tr,
3835
+ Br,
3818
3836
  Lr,
3819
3837
  Nr,
3820
3838
  Mr,
3821
- Ur,
3822
- qr,
3823
- Hr
3824
- ], zr = {
3839
+ Ur
3840
+ ], Hr = {
3825
3841
  button: "iButton",
3826
3842
  icon: "Icon",
3827
3843
  slider: "Slider",
@@ -3852,7 +3868,7 @@ const qe = "datePicker", Lr = {
3852
3868
  resetBtnIcon: "md-refresh",
3853
3869
  infoIcon: "ios-information-circle-outline"
3854
3870
  };
3855
- function Wr() {
3871
+ function Jr() {
3856
3872
  return {
3857
3873
  type: "poptip",
3858
3874
  trigger: "hover",
@@ -3861,7 +3877,7 @@ function Wr() {
3861
3877
  icon: Z.infoIcon
3862
3878
  };
3863
3879
  }
3864
- function xr() {
3880
+ function zr() {
3865
3881
  return {
3866
3882
  form: {
3867
3883
  inline: !1,
@@ -3893,16 +3909,16 @@ function xr() {
3893
3909
  }
3894
3910
  };
3895
3911
  }
3896
- function Je(t, e) {
3897
- k(t, e) && f.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
3912
+ function He(t, e) {
3913
+ k(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
3898
3914
  }
3899
3915
  function V(t) {
3900
3916
  return t === !1;
3901
3917
  }
3902
- function Gr(t, e) {
3903
- k(t, e) && !f.Object(t[e]) && (t[e] = { show: !!t[e] });
3918
+ function Wr(t, e) {
3919
+ k(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
3904
3920
  }
3905
- const Kr = {
3921
+ const Gr = {
3906
3922
  validate() {
3907
3923
  const t = this.form();
3908
3924
  return t ? new Promise((e, r) => {
@@ -3925,11 +3941,11 @@ const Kr = {
3925
3941
  },
3926
3942
  tidyOptions(t) {
3927
3943
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
3928
- Gr(t, e);
3944
+ Wr(t, e);
3929
3945
  }), t;
3930
3946
  },
3931
3947
  tidyRule({ prop: t }) {
3932
- return Je(t, "title"), Je(t, "info"), t;
3948
+ return He(t, "title"), He(t, "info"), t;
3933
3949
  },
3934
3950
  mergeProp(t) {
3935
3951
  t.prop = D([{
@@ -3938,7 +3954,7 @@ const Kr = {
3938
3954
  col: this.options.col || {},
3939
3955
  title: this.options.title || {}
3940
3956
  }, t.prop], {
3941
- info: Wr(),
3957
+ info: Jr(),
3942
3958
  title: {},
3943
3959
  col: { span: 24 },
3944
3960
  wrap: {}
@@ -3948,7 +3964,7 @@ const Kr = {
3948
3964
  !t.size && this.options.form.size && (t.size = this.options.form.size);
3949
3965
  },
3950
3966
  getDefaultOptions() {
3951
- return xr();
3967
+ return zr();
3952
3968
  },
3953
3969
  update() {
3954
3970
  const t = this.options.form;
@@ -4081,13 +4097,13 @@ const Kr = {
4081
4097
  key: `${this.key}b1`
4082
4098
  }, [t.innerText]);
4083
4099
  }
4084
- }, L = {}, Xr = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
4085
- function Qr(t) {
4086
- Xr.forEach((e) => {
4100
+ }, L = {}, Kr = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
4101
+ function xr(t) {
4102
+ Kr.forEach((e) => {
4087
4103
  t[e] = F(e);
4088
4104
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
4089
4105
  }
4090
- function Zr(t) {
4106
+ function Xr(t) {
4091
4107
  const e = "upload", r = {
4092
4108
  image: ["image", 0],
4093
4109
  file: ["file", 0],
@@ -4096,19 +4112,19 @@ function Zr(t) {
4096
4112
  };
4097
4113
  Object.keys(r).reduce((i, s) => (i[s] = F(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
4098
4114
  }
4099
- function Yr(t) {
4115
+ function Qr(t) {
4100
4116
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
4101
4117
  Object.keys(r).reduce((i, s) => (i[s] = F(e, { type: r[s] }), i), t);
4102
4118
  }
4103
- function ei(t) {
4119
+ function Zr(t) {
4104
4120
  const e = "timePicker";
4105
4121
  t.time = F(e, { type: "time" }), t.timeRange = F(e, { type: "timerange" });
4106
4122
  }
4107
- function ti(t) {
4123
+ function Yr(t) {
4108
4124
  const e = "select";
4109
4125
  t.selectMultiple = F(e, { multiple: !0 }), t.selectOne = F(e, { multiple: !1 });
4110
4126
  }
4111
- function ri(t) {
4127
+ function ei(t) {
4112
4128
  const e = "frame", r = {
4113
4129
  frameInputs: ["input", 0],
4114
4130
  frameFiles: ["file", 0],
@@ -4119,16 +4135,16 @@ function ri(t) {
4119
4135
  };
4120
4136
  Object.keys(r).reduce((i, s) => (i[s] = F(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;
4121
4137
  }
4138
+ xr(L);
4139
+ Xr(L);
4122
4140
  Qr(L);
4123
- Zr(L);
4124
4141
  Yr(L);
4125
- ti(L);
4126
- ri(L);
4127
4142
  ei(L);
4128
- function ze(t, e) {
4129
- return f.Boolean(t) ? t = { show: t } : !f.Undef(t) && !f.Object(t) && (t = { show: e }), t;
4143
+ Zr(L);
4144
+ function Je(t, e) {
4145
+ return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
4130
4146
  }
4131
- function ii(t, e) {
4147
+ function ti(t, e) {
4132
4148
  return p(t, {
4133
4149
  formEl() {
4134
4150
  return e.$manager.form();
@@ -4202,41 +4218,41 @@ function ii(t, e) {
4202
4218
  }
4203
4219
  },
4204
4220
  submitBtnProps: (r = {}) => {
4205
- let i = ze(e.options.submitBtn, !0);
4221
+ let i = Je(e.options.submitBtn, !0);
4206
4222
  p(i, r), e.options.submitBtn = i, t.refreshOptions();
4207
4223
  },
4208
4224
  resetBtnProps: (r = {}) => {
4209
- let i = ze(e.options.resetBtn, !1);
4225
+ let i = Je(e.options.resetBtn, !1);
4210
4226
  p(i, r), e.options.resetBtn = i, t.refreshOptions();
4211
4227
  },
4212
4228
  submit(r, i) {
4213
4229
  t.validate((s) => {
4214
4230
  if (s) {
4215
4231
  let n = t.formData();
4216
- f.Function(r) ? E(() => r(n, this)) : (f.Function(e.options.onSubmit) && E(() => e.options.onSubmit(n, this)), e.vm.$emit("submit", n, this));
4232
+ h.Function(r) ? E(() => r(n, this)) : (h.Function(e.options.onSubmit) && E(() => e.options.onSubmit(n, this)), e.vm.$emit("submit", n, this));
4217
4233
  } else
4218
- f.Function(i) && E(() => i(this, ...arguments));
4234
+ h.Function(i) && E(() => i(this, ...arguments));
4219
4235
  }).catch((s) => {
4220
4236
  });
4221
4237
  }
4222
4238
  }), t;
4223
4239
  }
4224
- function ni(t) {
4225
- t.componentAlias(zr), Wt.forEach((e) => {
4240
+ function ri(t) {
4241
+ t.componentAlias(Hr), Jt.forEach((e) => {
4226
4242
  t.component(e.name, e);
4227
- }), Jr.forEach((e) => {
4243
+ }), qr.forEach((e) => {
4228
4244
  t.parser(e);
4229
4245
  }), Object.keys(L).forEach((e) => {
4230
4246
  t.maker[e] = L[e];
4231
4247
  });
4232
4248
  }
4233
- function si() {
4234
- return dt({
4249
+ function ii() {
4250
+ return ht({
4235
4251
  ui: "view-design",
4236
- version: "2.6.2",
4237
- manager: Kr,
4238
- install: ni,
4239
- extendApi: ii,
4252
+ version: "2.6.3",
4253
+ manager: Gr,
4254
+ install: ri,
4255
+ extendApi: ti,
4240
4256
  attrs: {
4241
4257
  normal: ["col", "wrap"],
4242
4258
  array: ["className"],
@@ -4244,10 +4260,10 @@ function si() {
4244
4260
  }
4245
4261
  });
4246
4262
  }
4247
- const fe = si();
4248
- typeof window != "undefined" && (window.formCreate = fe, window.Vue && fe.install(window.Vue));
4249
- const li = fe.maker;
4263
+ const de = ii();
4264
+ typeof window != "undefined" && (window.formCreate = de, window.Vue && de.install(window.Vue));
4265
+ const oi = de.maker;
4250
4266
  export {
4251
- fe as default,
4252
- li as maker
4267
+ de as default,
4268
+ oi as maker
4253
4269
  };