@form-create/element-ui 2.7.11 → 2.7.13

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,6 +1,6 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/element-ui v2.7.11
3
+ * @form-create/element-ui v2.7.13
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -9,30 +9,30 @@
9
9
  (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode('._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-frame .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-frame .fc-files:hover .fc-upload-cover{opacity:1}._fc-frame .el-upload{display:block}._fc-frame .fc-upload-btn,.fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-upload .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-upload .fc-files:hover .fc-upload-cover{opacity:1}._fc-upload .fc-upload-btn,._fc-upload .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-group{display:flex;min-height:42px;justify-content:center;flex-direction:column}._fc-group-disabled ._fc-group-btn,._fc-group-disabled ._fc-group-add{cursor:not-allowed}._fc-group-handle{display:flex;flex-direction:row;position:absolute;bottom:-15px;right:30px;border-radius:15px;border:1px dashed #d9d9d9;padding:3px 8px;background-color:#fff}._fc-group-btn{cursor:pointer}._fc-group-idx{position:absolute;bottom:-15px;left:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#eee;border-radius:15px;font-weight:700}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{position:relative;display:flex;flex-direction:column;border:1px dashed #d9d9d9;padding:20px 20px 25px;margin:5px 5px 25px;border-radius:5px}._fc-group-arrow{position:relative;width:20px;height:20px}._fc-group-arrow:before{content:"";position:absolute;top:8px;left:5px;width:9px;height:9px;border-left:2px solid #999;border-top:2px solid #999}._fc-group-arrow:before{transform:rotate(45deg)}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{width:20px;height:20px;position:relative;cursor:pointer}._fc-group-plus-minus:before,._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:60%;height:2px;background-color:#409eff;transform:translate(-50%,-50%)}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{cursor:pointer;width:25px;height:25px;border:1px solid rgb(64 158 255 / 50%);border-radius:15px}._fc-group-add._fc-group-plus-minus:before,._fc-group-add._fc-group-plus-minus:after{width:50%}.form-create .form-create .el-form-item{margin-bottom:22px}.form-create{width:100%}.fc-form-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.form-create.is-preview .fc-clock,.form-create .fc-none,.form-create.is-preview .el-form-item.is-required>.el-form-item__label-wrap>.el-form-item__label:before,.form-create.is-preview .el-form-item.is-required>.el-form-item__label:before{display:none!important}.fc-wrap-right>.el-form-item__label{display:flex;justify-content:flex-end}.fc-wrap-left>.el-form-item__label{display:flex;justify-content:flex-start}.fc-wrap-top.el-form-item{display:block}.fc-wrap-top.el-form-item>.el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.fc-wrap-top.el-form-item>.el-form-item__content{margin-left:0!important}.el-form--large .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small .fc-wrap-top.el-form-item>.el-form-item__label{line-height:20px;margin-bottom:4px}.fc-form-footer{margin-top:12px}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
10
  var ir = Object.defineProperty, nr = Object.defineProperties;
11
11
  var sr = Object.getOwnPropertyDescriptors;
12
- var at = Object.getOwnPropertySymbols;
12
+ var ot = Object.getOwnPropertySymbols;
13
13
  var or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable;
14
- var lt = (t, e, r) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
14
+ var at = (t, e, r) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
- or.call(e, r) && lt(t, r, e[r]);
17
- if (at)
18
- for (var r of at(e))
19
- ar.call(e, r) && lt(t, r, e[r]);
16
+ or.call(e, r) && at(t, r, e[r]);
17
+ if (ot)
18
+ for (var r of ot(e))
19
+ ar.call(e, r) && at(t, r, e[r]);
20
20
  return t;
21
21
  }, q = (t, e) => nr(t, sr(e));
22
- import be, { getCurrentInstance as lr, provide as ur, inject as fr, toRefs as ut, reactive as ne, onBeforeMount as cr, watch as L, onMounted as hr, onBeforeUnmount as dr, onUpdated as pr, nextTick as P, markRaw as ye, computed as $e, toRef as Ve, ref as mr } from "vue";
22
+ import be, { getCurrentInstance as lr, provide as ur, inject as fr, toRefs as lt, reactive as ne, onBeforeMount as cr, watch as L, onMounted as hr, onBeforeUnmount as dr, onUpdated as pr, nextTick as P, markRaw as ye, computed as $e, toRef as Ae, ref as mr } from "vue";
23
23
  function gr(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
- function Je() {
27
- return Je = Object.assign ? Object.assign.bind() : function(t) {
26
+ function Ge() {
27
+ return Ge = Object.assign ? Object.assign.bind() : function(t) {
28
28
  for (var e, r = 1; r < arguments.length; r++) for (var i in e = arguments[r], e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
29
29
  return t;
30
- }, Je.apply(this, arguments);
30
+ }, Ge.apply(this, arguments);
31
31
  }
32
32
  var yr = ["attrs", "props", "domProps"], $r = ["class", "style", "directives"], br = ["on", "nativeOn"], vr = 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 (yr.indexOf(i) !== -1) e[i] = Je({}, e[i], r[i]);
35
+ else if (yr.indexOf(i) !== -1) e[i] = Ge({}, e[i], r[i]);
36
36
  else if ($r.indexOf(i) !== -1) {
37
37
  var s = e[i] instanceof Array ? e[i] : [e[i]], n = r[i] instanceof Array ? r[i] : [r[i]];
38
38
  e[i] = [].concat(s, n);
@@ -51,7 +51,7 @@ var yr = ["attrs", "props", "domProps"], $r = ["class", "style", "directives"],
51
51
  };
52
52
  }, Cr = vr;
53
53
  const I = /* @__PURE__ */ gr(Cr);
54
- function Qe(t, e) {
54
+ function Ze(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => (r.push(t[i]), r), []);
56
56
  }
57
57
  const wr = "fcCheckbox", Or = {
@@ -117,7 +117,7 @@ const wr = "fcCheckbox", Or = {
117
117
  }, {
118
118
  key: s + r + "-" + e.value
119
119
  }]));
120
- }), Qe(this.$slots)]);
120
+ }), Ze(this.$slots)]);
121
121
  },
122
122
  mounted() {
123
123
  this.$emit("fc.el", this.$refs.el);
@@ -556,7 +556,7 @@ const Fr = "fcFrame", kr = {
556
556
  }, {
557
557
  key: s + r + "-" + e.value
558
558
  }]));
559
- }), Qe(this.$slots)]);
559
+ }), Ze(this.$slots)]);
560
560
  },
561
561
  mounted() {
562
562
  this.$emit("fc.el", this.$refs.el);
@@ -591,7 +591,7 @@ const Fr = "fcFrame", kr = {
591
591
  return h.type(e, t);
592
592
  };
593
593
  });
594
- function j(t, e) {
594
+ function D(t, e) {
595
595
  return {}.hasOwnProperty.call(t, e);
596
596
  }
597
597
  const Rr = "fcSelect", Dr = {
@@ -621,7 +621,7 @@ const Rr = "fcSelect", Dr = {
621
621
  }, [h.trueArray(n.options) && n.options.map((a, l) => r(a, l))]), s = e.props.formCreateInject.options;
622
622
  return t("ElSelect", I([{}, e.data, {
623
623
  ref: "el"
624
- }]), [(Array.isArray(s) ? s : []).map((n, o) => j(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
624
+ }]), [(Array.isArray(s) ? s : []).map((n, o) => D(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
625
625
  },
626
626
  mounted() {
627
627
  this.$emit("fc.el", this.$refs.el);
@@ -677,13 +677,13 @@ const Rr = "fcSelect", Dr = {
677
677
  check: () => this.updateValue(),
678
678
  "node-click": () => this.updateValue()
679
679
  }
680
- }]), [Qe(this.$slots)]);
680
+ }]), [Ze(this.$slots)]);
681
681
  },
682
682
  mounted() {
683
683
  this.setValue(), this.$emit("fc.el", this.$refs.tree);
684
684
  }
685
685
  };
686
- function ft(t, e) {
686
+ function ut(t, e) {
687
687
  return typeof t == "object" ? t : {
688
688
  url: t,
689
689
  is_string: !0,
@@ -691,7 +691,7 @@ function ft(t, e) {
691
691
  uid: e
692
692
  };
693
693
  }
694
- function ct(t) {
694
+ function ft(t) {
695
695
  return q(v({}, t), {
696
696
  file: t,
697
697
  value: t
@@ -750,11 +750,11 @@ const Ir = "fcUpload", Pr = {
750
750
  };
751
751
  },
752
752
  created() {
753
- this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = H(this.value).map(ft).map(ct);
753
+ this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = H(this.value).map(ut).map(ft);
754
754
  },
755
755
  watch: {
756
756
  value(t) {
757
- this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = H(t).map(ft).map(ct), this.uploadList = this.$refs.upload.uploadFiles);
757
+ this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = H(t).map(ut).map(ft), this.uploadList = this.$refs.upload.uploadFiles);
758
758
  },
759
759
  limit(t, e) {
760
760
  (e === 1 || t === 1) && this.update();
@@ -954,7 +954,7 @@ const Tr = Object.assign || function(t) {
954
954
  function _() {
955
955
  return Tr.apply(this, arguments);
956
956
  }
957
- function Ke(t) {
957
+ function Je(t) {
958
958
  return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
959
959
  }
960
960
  const Br = "fcGroup", Lr = {
@@ -1079,7 +1079,7 @@ const Br = "fcGroup", Lr = {
1079
1079
  },
1080
1080
  methods: {
1081
1081
  _value(t) {
1082
- return t && j(t, this.field) ? t[this.field] : t;
1082
+ return t && D(t, this.field) ? t[this.field] : t;
1083
1083
  },
1084
1084
  cache(t, e) {
1085
1085
  this.cacheValue[t] = JSON.stringify(e);
@@ -1399,23 +1399,23 @@ const kt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style"
1399
1399
  }, e);
1400
1400
  }, Hr = (t, e) => function() {
1401
1401
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1402
- }, Rt = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], Ye = ["validate", "children", "control"], et = ["effect", "deep", "renderSlots"];
1402
+ }, Rt = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], Qe = ["validate", "children", "control"], Ye = ["effect", "deep", "renderSlots"];
1403
1403
  function Dt() {
1404
- return [...Rt, ...kt, ...Et, ...St, ...Ye, ...et];
1404
+ return [...Rt, ...kt, ...Et, ...St, ...Qe, ...Ye];
1405
1405
  }
1406
1406
  function jt(t, e, r) {
1407
1407
  return `[form-create ${t}]: ${e}`;
1408
1408
  }
1409
- function tt(t, e) {
1409
+ function et(t, e) {
1410
1410
  console.error(jt("err", t));
1411
1411
  }
1412
1412
  function Gr(t) {
1413
- tt(t.toString()), console.error(t);
1413
+ et(t.toString()), console.error(t);
1414
1414
  }
1415
1415
  function At(t) {
1416
1416
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1417
1417
  }
1418
- const We = "[[FORM-CREATE-PREFIX-", ze = "-FORM-CREATE-SUFFIX]]";
1418
+ const Ke = "[[FORM-CREATE-PREFIX-", We = "-FORM-CREATE-SUFFIX]]";
1419
1419
  function Ce(t, e) {
1420
1420
  return JSON.stringify(we(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1421
1421
  if (!(i && i._isVue === !0)) {
@@ -1424,19 +1424,19 @@ function Ce(t, e) {
1424
1424
  if (i.__json)
1425
1425
  return i.__json;
1426
1426
  if (i.__origin && (i = i.__origin), !i.__emit)
1427
- return We + i + ze;
1427
+ return Ke + i + We;
1428
1428
  }
1429
1429
  }, e);
1430
1430
  }
1431
- function Le(t) {
1431
+ function Be(t) {
1432
1432
  return new Function("return " + t)();
1433
1433
  }
1434
1434
  function x(t, e) {
1435
1435
  if (t && h.String(t) && t.length > 4) {
1436
1436
  let r = t.trim(), i = !1;
1437
1437
  try {
1438
- if (r.indexOf(ze) > 0 && r.indexOf(We) === 0)
1439
- r = r.replace(ze, "").replace(We, ""), i = !0;
1438
+ if (r.indexOf(We) > 0 && r.indexOf(Ke) === 0)
1439
+ r = r.replace(We, "").replace(Ke, ""), i = !0;
1440
1440
  else if (r.indexOf("$FN:") === 0)
1441
1441
  r = r.substring(4), i = !0;
1442
1442
  else if (r.indexOf("$EXEC:") === 0)
@@ -1450,7 +1450,7 @@ function x(t, e) {
1450
1450
  }, r.__json = t, r.__inject = !0, r;
1451
1451
  } else {
1452
1452
  if (r.indexOf("$FNX:") === 0)
1453
- return r = Le(`function($inject){
1453
+ return r = Be(`function($inject){
1454
1454
  ` + r.substring(5) + `
1455
1455
  }`), r.__json = t, r.__inject = !0, r;
1456
1456
  (!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
@@ -1458,13 +1458,13 @@ function x(t, e) {
1458
1458
  if (!i) return t;
1459
1459
  let s;
1460
1460
  try {
1461
- s = Le(r);
1461
+ s = Be(r);
1462
1462
  } catch (n) {
1463
- s = Le("function " + r);
1463
+ s = Be("function " + r);
1464
1464
  }
1465
1465
  return s.__json = t, s;
1466
1466
  } catch (s) {
1467
- tt(`解析失败:${r}
1467
+ et(`解析失败:${r}
1468
1468
 
1469
1469
  err: ${s}`);
1470
1470
  return;
@@ -1478,7 +1478,7 @@ function Vt(t, e) {
1478
1478
  });
1479
1479
  }
1480
1480
  let Jr = 0;
1481
- function Ie() {
1481
+ function Ve() {
1482
1482
  const t = 370 + ++Jr;
1483
1483
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1484
1484
  }
@@ -1488,7 +1488,7 @@ function oe(t, e, r) {
1488
1488
  s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1489
1489
  }), k(i, s, r), i;
1490
1490
  }
1491
- function xe(t, e) {
1491
+ function ze(t, e) {
1492
1492
  return {
1493
1493
  value: t,
1494
1494
  enumerable: !1,
@@ -1503,9 +1503,9 @@ function Pt(t, e) {
1503
1503
  return we([], [...t], e || !1);
1504
1504
  }
1505
1505
  function te(t, e) {
1506
- return ee(Array.isArray(e) ? e : [e], t, { array: Ye, normal: et }), t;
1506
+ return ee(Array.isArray(e) ? e : [e], t, { array: Qe, normal: Ye }), t;
1507
1507
  }
1508
- function ht(t) {
1508
+ function ct(t) {
1509
1509
  const e = h.Function(t.getRule) ? t.getRule() : t;
1510
1510
  return e.type || (e.type = "input"), e;
1511
1511
  }
@@ -1532,9 +1532,9 @@ function O(t, e) {
1532
1532
  }
1533
1533
  return e;
1534
1534
  }
1535
- function Xe(t, e) {
1535
+ function xe(t, e) {
1536
1536
  let r = null;
1537
- return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Xe(i, e)) : r = t, r && e && H(r).forEach((i) => {
1537
+ return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => xe(i, e)) : r = t, r && e && H(r).forEach((i) => {
1538
1538
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1539
1539
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1540
1540
  });
@@ -1544,10 +1544,10 @@ function Wr(t, e) {
1544
1544
  if (h.Object(t)) {
1545
1545
  const r = {};
1546
1546
  return Object.keys(t).forEach((i) => {
1547
- r[i] = Xe(t[i], i);
1547
+ r[i] = xe(t[i], i);
1548
1548
  }), r;
1549
1549
  } else
1550
- return Xe(t, e);
1550
+ return xe(t, e);
1551
1551
  }
1552
1552
  function Ee() {
1553
1553
  const t = {}, e = (r) => r || "default";
@@ -1588,15 +1588,15 @@ function Ee() {
1588
1588
  function Se(t, e) {
1589
1589
  return Object.setPrototypeOf(t, e), t;
1590
1590
  }
1591
- const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1592
- "==": (t, e) => JSON.stringify(t) === JSON.stringify(dt(t, e)),
1591
+ const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1592
+ "==": (t, e) => JSON.stringify(t) === JSON.stringify(ht(t, e)),
1593
1593
  "!=": (t, e) => !ce["=="](t, e),
1594
1594
  ">": (t, e) => t > e,
1595
1595
  ">=": (t, e) => t >= e,
1596
1596
  "<": (t, e) => t < e,
1597
1597
  "<=": (t, e) => t <= e,
1598
1598
  on(t, e) {
1599
- return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
1599
+ return t && t.indexOf && t.indexOf(ht(t[0], e)) > -1;
1600
1600
  },
1601
1601
  notOn(t, e) {
1602
1602
  return !ce.on(t, e);
@@ -1636,7 +1636,7 @@ function zr(t) {
1636
1636
  r[1] && (i[r[1]] = !0);
1637
1637
  return Object.keys(i);
1638
1638
  }
1639
- function pt(t) {
1639
+ function dt(t) {
1640
1640
  let e = t.split("."), r = [], i = "";
1641
1641
  return e.forEach((s, n) => {
1642
1642
  n === 0 ? i = s : i += "." + s, r.push(i);
@@ -1654,12 +1654,12 @@ function Bt(t) {
1654
1654
  }
1655
1655
  return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
1656
1656
  }
1657
- const je = (t, e) => {
1657
+ const De = (t, e) => {
1658
1658
  if (!(!t || t === e || !t.$props)) {
1659
1659
  if (t.$props.formCreateInject)
1660
1660
  return t.$props.formCreateInject;
1661
1661
  if (t.$parent)
1662
- return je(t.$parent, e);
1662
+ return De(t.$parent, e);
1663
1663
  }
1664
1664
  };
1665
1665
  function xr(t, e, r) {
@@ -1723,27 +1723,27 @@ function xr(t, e, r) {
1723
1723
  a = a.parent;
1724
1724
  else
1725
1725
  a = n;
1726
- const { rule: l, value: u, subForm: f, inFor: p } = ut(s), d = ne({
1726
+ const { rule: l, value: u, subForm: f, inFor: p } = lt(s), d = ne({
1727
1727
  ctxInject: {},
1728
1728
  destroyed: !1,
1729
1729
  isShow: !0,
1730
1730
  unique: 1,
1731
1731
  renderRule: [...l.value || []],
1732
1732
  updateValue: JSON.stringify(u.value || {})
1733
- }), m = new t(n), y = m.api(), w = p.value, F = () => {
1733
+ }), m = new t(n), y = m.api(), C = p.value, F = () => {
1734
1734
  if (o) {
1735
- const E = je(n, o);
1735
+ const E = De(n, o);
1736
1736
  if (E) {
1737
- let D;
1738
- w ? (D = H(E.getSubForm()), D.push(y)) : D = y, E.subForm(D);
1737
+ let R;
1738
+ C ? (R = H(E.getSubForm()), R.push(y)) : R = y, E.subForm(R);
1739
1739
  }
1740
1740
  }
1741
1741
  }, G = () => {
1742
- const E = je(n, o);
1742
+ const E = De(n, o);
1743
1743
  if (E)
1744
- if (w) {
1745
- const D = H(E.getSubForm()), M = D.indexOf(y);
1746
- M > -1 && D.splice(M, 1);
1744
+ if (C) {
1745
+ const R = H(E.getSubForm()), M = R.indexOf(y);
1746
+ M > -1 && R.splice(M, 1);
1747
1747
  } else
1748
1748
  E.subForm();
1749
1749
  };
@@ -1751,12 +1751,12 @@ function xr(t, e, r) {
1751
1751
  cr(() => {
1752
1752
  L(() => {
1753
1753
  let E = "";
1754
- const D = s.option && s.option.globalClass || {};
1755
- Object.keys(D).forEach((M) => {
1754
+ const R = s.option && s.option.globalClass || {};
1755
+ Object.keys(R).forEach((M) => {
1756
1756
  let me = "";
1757
- D[M].style && Object.keys(D[M].style).forEach((W) => {
1758
- me += ve(W) + ":" + D[M].style[W] + ";";
1759
- }), D[M].content && (me += D[M].content + ";"), me && (E += `.${M}{${me}}`);
1757
+ R[M].style && Object.keys(R[M].style).forEach((W) => {
1758
+ me += ve(W) + ":" + R[M].style[W] + ";";
1759
+ }), R[M].content && (me += R[M].content + ";"), me && (E += `.${M}{${me}}`);
1760
1760
  }), s.option && s.option.style && (E += s.option.style), V || (V = document.createElement("style"), V.type = "text/css", document.head.appendChild(V)), V.innerHTML = E || "";
1761
1761
  }, () => {
1762
1762
  });
@@ -1765,7 +1765,7 @@ function xr(t, e, r) {
1765
1765
  m.bus.$emit("$loadData.$topForm");
1766
1766
  }, 100), de = se(function() {
1767
1767
  m.bus.$emit("$loadData.$scopeForm");
1768
- }, 100), Pe = se(() => {
1768
+ }, 100), Ie = se(() => {
1769
1769
  m.bus.$emit("$loadData.$form");
1770
1770
  }, 100), pe = (E) => {
1771
1771
  m.bus.$emit("change-$form." + E);
@@ -1781,7 +1781,7 @@ function xr(t, e, r) {
1781
1781
  }, { immediate: !0 }), L(() => s.option, () => {
1782
1782
  m.initOptions(), y.refresh();
1783
1783
  }, { deep: !0 }), L(() => [...l.value], (E) => {
1784
- m.$handle.isBreakWatch() || E.length === d.renderRule.length && E.every((D) => d.renderRule.indexOf(D) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1784
+ m.$handle.isBreakWatch() || E.length === d.renderRule.length && E.every((R) => d.renderRule.indexOf(R) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1785
1785
  }), L(() => [s.disabled, s.preview], () => {
1786
1786
  y.refresh();
1787
1787
  }), L(u, (E) => {
@@ -1797,8 +1797,8 @@ function xr(t, e, r) {
1797
1797
  parent: o && ye(o),
1798
1798
  top: ye(a),
1799
1799
  fapi: ye(y)
1800
- }, ut(d)), {
1801
- getGroupInject: () => je(n, o),
1800
+ }, lt(d)), {
1801
+ getGroupInject: () => De(n, o),
1802
1802
  refresh() {
1803
1803
  ++d.unique;
1804
1804
  },
@@ -1807,9 +1807,9 @@ function xr(t, e, r) {
1807
1807
  },
1808
1808
  updateValue(E) {
1809
1809
  if (d.destroyed) return;
1810
- const D = Ce(E);
1811
- d.updateValue !== D && (d.updateValue = D, n.$emit("update:value", E), P(() => {
1812
- Pe(), o ? f.value || de() : (N(), de());
1810
+ const R = Ce(E);
1811
+ d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", E), P(() => {
1812
+ Ie(), o ? f.value || de() : (N(), de());
1813
1813
  }));
1814
1814
  }
1815
1815
  });
@@ -1833,14 +1833,14 @@ function Lt() {
1833
1833
  }
1834
1834
  function T(t, e) {
1835
1835
  return (r, i, s, n = {}) => {
1836
- const o = new rt(t, r, i, s, n);
1836
+ const o = new tt(t, r, i, s, n);
1837
1837
  return e && (h.Function(e) ? e(o) : o.props(e)), o;
1838
1838
  };
1839
1839
  }
1840
- function rt(t, e, r, i, s) {
1840
+ function tt(t, e, r, i, s) {
1841
1841
  this._data = _(Lt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1842
1842
  }
1843
- _(rt.prototype, {
1843
+ _(tt.prototype, {
1844
1844
  getRule() {
1845
1845
  return this._data;
1846
1846
  },
@@ -1854,7 +1854,7 @@ _(rt.prototype, {
1854
1854
  });
1855
1855
  function Nt(t) {
1856
1856
  t.forEach((e) => {
1857
- rt.prototype[e] = function(r) {
1857
+ tt.prototype[e] = function(r) {
1858
1858
  return te(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1859
1859
  };
1860
1860
  });
@@ -1865,15 +1865,15 @@ function Xr(t, e, r) {
1865
1865
  let i = Mt("", e);
1866
1866
  return i._data.type = t, i._data.title = r, i;
1867
1867
  }
1868
- function mt(t, e, r, i) {
1868
+ function pt(t, e, r, i) {
1869
1869
  let s = Mt("", r);
1870
1870
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1871
1871
  }
1872
1872
  function Zr() {
1873
1873
  return {
1874
1874
  create: Xr,
1875
- createTmp: mt,
1876
- template: mt,
1875
+ createTmp: pt,
1876
+ template: pt,
1877
1877
  factory: T
1878
1878
  };
1879
1879
  }
@@ -1881,7 +1881,7 @@ function Qr(t, e, r) {
1881
1881
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1882
1882
  return s.status = r.status, s.url = t, s;
1883
1883
  }
1884
- function gt(t) {
1884
+ function mt(t) {
1885
1885
  const e = t.responseText || t.response;
1886
1886
  if (!e)
1887
1887
  return e;
@@ -1906,8 +1906,8 @@ function qt(t) {
1906
1906
  t.onError(o);
1907
1907
  }, e.onload = function() {
1908
1908
  if (e.status < 200 || e.status >= 300)
1909
- return t.onError(Qr(r, t, e), gt(e));
1910
- t.onSuccess(gt(e));
1909
+ return t.onError(Qr(r, t, e), mt(e));
1910
+ t.onSuccess(mt(e));
1911
1911
  }, e.open(t.method || "get", r, !0);
1912
1912
  let i;
1913
1913
  (t.data || t.file) && (t.file || (t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data || {}).map((n) => {
@@ -1918,7 +1918,7 @@ function qt(t) {
1918
1918
  s[n] != null && e.setRequestHeader(n, s[n]);
1919
1919
  }), e.send(i);
1920
1920
  }
1921
- function yt(t, e, r) {
1921
+ function gt(t, e, r) {
1922
1922
  return new Promise((i, s) => {
1923
1923
  (e || qt)(q(v({}, t), {
1924
1924
  onSuccess(n) {
@@ -2026,7 +2026,7 @@ function Yr(t) {
2026
2026
  },
2027
2027
  getValue(n) {
2028
2028
  const o = t.getFieldCtx(n);
2029
- return o ? _e(o.rule.value) : t.options.appendValue !== !1 && j(t.appendData, n) ? _e(t.appendData[n]) : void 0;
2029
+ return o ? _e(o.rule.value) : t.options.appendValue !== !1 && D(t.appendData, n) ? _e(t.appendData[n]) : void 0;
2030
2030
  },
2031
2031
  coverValue(n) {
2032
2032
  const o = v({}, n || {});
@@ -2034,7 +2034,7 @@ function Yr(t) {
2034
2034
  t.appendData = {}, s.fields().forEach((a) => {
2035
2035
  const l = t.fieldCtx[a];
2036
2036
  if (l) {
2037
- const u = j(n, a);
2037
+ const u = D(n, a);
2038
2038
  l.forEach((f) => {
2039
2039
  k(f.rule, "value", u ? n[a] : void 0);
2040
2040
  }), delete o[a];
@@ -2216,7 +2216,7 @@ function Yr(t) {
2216
2216
  },
2217
2217
  setEffect(n, o, a) {
2218
2218
  const l = t.getCtx(n);
2219
- l && o && (o[0] === "$" && (o = o.substr(1)), j(l.rule, "$" + o) && k(l.rule, "$" + o, a), j(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2219
+ l && o && (o[0] === "$" && (o = o.substr(1)), D(l.rule, "$" + o) && k(l.rule, "$" + o, a), D(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2220
2220
  },
2221
2221
  clearEffectData(n, o) {
2222
2222
  const a = t.getCtx(n);
@@ -2303,7 +2303,7 @@ function Yr(t) {
2303
2303
  const l = s.getChildrenRuleList(n);
2304
2304
  t.deferSyncValue(() => {
2305
2305
  l.forEach((u) => {
2306
- j(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2306
+ D(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2307
2307
  });
2308
2308
  });
2309
2309
  },
@@ -2320,6 +2320,12 @@ function Yr(t) {
2320
2320
  }).catch(a) : o(l.data) : o(t.fc.loadData[n]);
2321
2321
  });
2322
2322
  },
2323
+ setGlobalData(n, o) {
2324
+ s.setData("$globalData." + n, o);
2325
+ },
2326
+ setGlobalVar(n, o) {
2327
+ s.setData("$var." + n, o);
2328
+ },
2323
2329
  renderRule(n, o, a) {
2324
2330
  const u = typeof n == "object" ? Y(n) : t.getCtx(n);
2325
2331
  return u ? t.$render.createRuleVnode(u, o, a) : void 0;
@@ -2343,7 +2349,7 @@ function Yr(t) {
2343
2349
  bus: t.bus,
2344
2350
  fetch(n) {
2345
2351
  return new Promise((o, a) => {
2346
- n = K(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((l) => {
2352
+ n = K(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => gt(n, t.fc.create.fetch, s).then((l) => {
2347
2353
  O(() => n.onSuccess && n.onSuccess(l)), o(l);
2348
2354
  }).catch((l) => {
2349
2355
  O(() => n.onError && n.onError(l)), a(l);
@@ -2354,7 +2360,7 @@ function Yr(t) {
2354
2360
  watchFetch(n, o, a, l) {
2355
2361
  return t.fc.watchLoadData((u, f) => {
2356
2362
  let p = K(n);
2357
- p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((d) => {
2363
+ p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => gt(p, t.fc.create.fetch, s).then((d) => {
2358
2364
  O(() => p.onSuccess && p.onSuccess(d)), o && o(d, f);
2359
2365
  }).catch((d) => {
2360
2366
  O(() => p.onError && p.onError(d)), a && a(d);
@@ -2518,13 +2524,13 @@ function ti(t) {
2518
2524
  }, (() => {
2519
2525
  if (h.Function(n.renderSlots[y]))
2520
2526
  return O(() => n.renderSlots[y]());
2521
- const w = this.parseSide(n.renderSlots[y], e);
2522
- return this.renderRule(w);
2527
+ const C = this.parseSide(n.renderSlots[y], e);
2528
+ return this.renderRule(C);
2523
2529
  })()));
2524
2530
  });
2525
2531
  const d = this.getTypeSlot(e);
2526
2532
  let m;
2527
- return d ? (u.children = f, m = d(u)) : m = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), m = this.renderSides(m, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((y) => !y || !y.tag ? y : this.none(y)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2533
+ return d ? (u.children = f, m = d(u)) : m = a ? e.parser.preview(Je(f), e) : e.parser.render(Je(f), e), m = this.renderSides(m, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((y) => !y || !y.tag ? y : this.none(y)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2528
2534
  }, this.setCache(e, s, r);
2529
2535
  }
2530
2536
  return (...s) => {
@@ -2574,6 +2580,7 @@ function ti(t) {
2574
2580
  },
2575
2581
  getSubForm: () => this.$handle.subForm[e.id],
2576
2582
  slots: () => this.vm.top.$scopedSlots,
2583
+ getWrap: () => this.vm.$refs[e.wrapRef],
2577
2584
  options: [],
2578
2585
  children: [],
2579
2586
  preview: !1,
@@ -2712,7 +2719,7 @@ function ti(t) {
2712
2719
  });
2713
2720
  }
2714
2721
  let ri = 1;
2715
- function it(t) {
2722
+ function rt(t) {
2716
2723
  _(this, {
2717
2724
  $handle: t,
2718
2725
  fc: t.fc,
@@ -2731,8 +2738,8 @@ function it(t) {
2731
2738
  }
2732
2739
  }), this.initCache(), this.initRender();
2733
2740
  }
2734
- ei(it);
2735
- ti(it);
2741
+ ei(rt);
2742
+ ti(rt);
2736
2743
  function ii(t) {
2737
2744
  _(t.prototype, {
2738
2745
  parseInjectEvent(e, r) {
@@ -2763,14 +2770,14 @@ function ii(t) {
2763
2770
  let p, d = n || o || a;
2764
2771
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2765
2772
  r || (d = `native-${d}`);
2766
- const m = ve(`${d}-${f}`), y = (...w) => {
2767
- this.vm.$emit(m, ...w), this.vm.$emit("emit-event", m, ...w), this.bus.$emit(m, ...w);
2773
+ const m = ve(`${d}-${f}`), y = (...C) => {
2774
+ this.vm.$emit(m, ...C), this.vm.$emit("emit-event", m, ...C), this.bus.$emit(m, ...C);
2768
2775
  };
2769
2776
  if (y.__emit = !0, !p && l === !1)
2770
2777
  i[f] = y;
2771
2778
  else {
2772
- let w = p || l || this.options.injectEvent;
2773
- i[f] = h.Undef(w) ? y : this.inject(s, y, w);
2779
+ let C = p || l || this.options.injectEvent;
2780
+ i[f] = h.Undef(C) ? y : this.inject(s, y, C);
2774
2781
  }
2775
2782
  }
2776
2783
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2804,7 +2811,7 @@ function ii(t) {
2804
2811
  let f = !1, p;
2805
2812
  if (i && u.indexOf("$form.") === 0) {
2806
2813
  const d = u.split(".");
2807
- d.shift(), j(i.value, d[0]) && (f = !0, p = r ? r({
2814
+ d.shift(), D(i.value, d[0]) && (f = !0, p = r ? r({
2808
2815
  id: "$form." + d[0] + "_" + i.rule.__fc__.id,
2809
2816
  getValue: () => B(i.value, d)
2810
2817
  }) : B(i.value, d));
@@ -2848,7 +2855,7 @@ function ii(t) {
2848
2855
  }
2849
2856
  });
2850
2857
  }
2851
- const $t = ["hook:updated", "hook:mounted"];
2858
+ const yt = ["hook:updated", "hook:mounted"];
2852
2859
  function ni(t) {
2853
2860
  _(t.prototype, {
2854
2861
  usePage() {
@@ -2863,9 +2870,9 @@ function ni(t) {
2863
2870
  },
2864
2871
  pageLoad() {
2865
2872
  const e = () => {
2866
- this.pageEnd ? (this.vm.$off($t, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2873
+ this.pageEnd ? (this.vm.$off(yt, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2867
2874
  };
2868
- this.vm.$on($t, e);
2875
+ this.vm.$on(yt, e);
2869
2876
  }
2870
2877
  });
2871
2878
  }
@@ -2889,13 +2896,13 @@ function oi(t) {
2889
2896
  }
2890
2897
  function ai(t) {
2891
2898
  Object.defineProperties(t.origin, {
2892
- __fc__: xe(ye(t), !0)
2899
+ __fc__: ze(ye(t), !0)
2893
2900
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2894
- __fc__: xe(ye(t), !0)
2901
+ __fc__: ze(ye(t), !0)
2895
2902
  });
2896
2903
  }
2897
2904
  function Ht(t, e, r) {
2898
- const i = Ie(), s = !!e.field;
2905
+ const i = Ve(), s = !!e.field;
2899
2906
  _(this, {
2900
2907
  id: i,
2901
2908
  ref: i,
@@ -2994,7 +3001,7 @@ _(Ht.prototype, {
2994
3001
  t === void 0 ? this.payload = {} : delete this.payload[t];
2995
3002
  },
2996
3003
  updateKey(t) {
2997
- this.key = Ie(), t && this.parent && this.parent.updateKey(t);
3004
+ this.key = Ve(), t && this.parent && this.parent.updateKey(t);
2998
3005
  },
2999
3006
  updateType() {
3000
3007
  this.originType = this.rule.type, this.type = J(this.rule.type), this.trueType = this.$handle.getType(this.originType);
@@ -3083,9 +3090,9 @@ function li(t) {
3083
3090
  });
3084
3091
  },
3085
3092
  parseRule(e) {
3086
- const r = ht(e);
3093
+ const r = ct(e);
3087
3094
  return Object.defineProperties(r, {
3088
- __origin__: xe(e, !0)
3095
+ __origin__: ze(e, !0)
3089
3096
  }), ui(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3090
3097
  i && this.loadFn(i, r);
3091
3098
  }), this.loadCtrl(r), r.update && (r.update = x(r.update)), r;
@@ -3133,17 +3140,17 @@ function li(t) {
3133
3140
  if (r && !h.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3134
3141
  if (o.__fc__ && o.__fc__.root === e && this.ctxs[o.__fc__.id])
3135
3142
  return s(o.__fc__.loadChildrenPending(), o.__fc__), o.__fc__;
3136
- let l = ht(o);
3143
+ let l = ct(o);
3137
3144
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3138
3145
  this.fc.targetFormDriver("loadRule", { rule: l, api: this.api }, this.fc), this.ruleEffect(l, "init", { repeat: u() }), u() && this.vm.$emit("repeat-field", o, this.api);
3139
3146
  let f, p = !1, d = !!o.__fc__, m = l.value;
3140
3147
  if (d) {
3141
3148
  if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3142
- if (bt(f))
3149
+ if ($t(f))
3143
3150
  return;
3144
3151
  f.update(this);
3145
3152
  } else if (!f.check(this)) {
3146
- if (bt(f))
3153
+ if ($t(f))
3147
3154
  return;
3148
3155
  e[a] = o = o._clone ? o._clone() : Vt(Ce(o)), f = null, p = !0;
3149
3156
  }
@@ -3160,9 +3167,9 @@ function li(t) {
3160
3167
  const F = i(a);
3161
3168
  F > -1 || !a ? this.sort.splice(F + 1, 0, f.id) : this.sort.push(f.id);
3162
3169
  }
3163
- const w = f.rule;
3164
- return f.updated || (f.updated = !0, h.Function(w.update) && this.bus.$once("load-end", () => {
3165
- this.refreshUpdate(f, w.value, "init");
3170
+ const C = f.rule;
3171
+ return f.updated || (f.updated = !0, h.Function(C.update) && this.bus.$once("load-end", () => {
3172
+ this.refreshUpdate(f, C.value, "init");
3166
3173
  }), this.effect(f, "loaded")), this.refreshControl(f) && (this.cycleLoad = !0), f;
3167
3174
  }).filter((o) => !!o);
3168
3175
  r && (r.children = n);
@@ -3196,27 +3203,27 @@ function li(t) {
3196
3203
  children: u,
3197
3204
  valid: l
3198
3205
  }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3199
- y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((w) => {
3200
- this.api.setEffect(w, "required", l);
3206
+ y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((C) => {
3207
+ this.api.setEffect(C, "required", l);
3201
3208
  }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3202
3209
  });
3203
3210
  return;
3204
3211
  }
3205
3212
  if (l) {
3206
3213
  o = !0;
3207
- const w = {
3214
+ const C = {
3208
3215
  type: "fragment",
3209
3216
  native: !0,
3210
3217
  __ctrl: !0,
3211
3218
  children: u
3212
3219
  };
3213
- e.ctrlRule.push(w), this.bus.$once("load-start", () => {
3214
- f ? s.prepend(w, f, d) : p || d ? s.append(w, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, w);
3220
+ e.ctrlRule.push(C), this.bus.$once("load-start", () => {
3221
+ f ? s.prepend(C, f, d) : p || d ? s.append(C, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, C);
3215
3222
  });
3216
3223
  } else {
3217
3224
  e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3218
- const w = Y(m);
3219
- w && w.rm();
3225
+ const C = Y(m);
3226
+ C && C.rm();
3220
3227
  }
3221
3228
  });
3222
3229
  }), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
@@ -3246,7 +3253,7 @@ function li(t) {
3246
3253
  function ui(t) {
3247
3254
  const e = Lt();
3248
3255
  return Object.keys(e).forEach((r) => {
3249
- j(t, r) || k(t, r, e[r]);
3256
+ D(t, r) || k(t, r, e[r]);
3250
3257
  }), t;
3251
3258
  }
3252
3259
  function fi(t) {
@@ -3260,7 +3267,7 @@ function ci(t, e) {
3260
3267
  return i;
3261
3268
  }
3262
3269
  }
3263
- function bt(t) {
3270
+ function $t(t) {
3264
3271
  return !!t.rule.__ctrl;
3265
3272
  }
3266
3273
  function hi(t) {
@@ -3276,7 +3283,7 @@ function hi(t) {
3276
3283
  this.api.clearValidateState(e.id);
3277
3284
  });
3278
3285
  });
3279
- }));
3286
+ }), this.$manager.fieldChange(e, r, i, s));
3280
3287
  },
3281
3288
  onInput(e, r) {
3282
3289
  let i;
@@ -3286,7 +3293,7 @@ function hi(t) {
3286
3293
  this.deferSyncValue(() => {
3287
3294
  const i = e.getParentGroup(), s = i ? this.subRuleData[i.id] : null, n = {};
3288
3295
  Object.keys(r || {}).forEach((o) => {
3289
- s && j(s, o) ? n[o] = r[o] : j(this.api.form, o) ? this.api.form[o] = r[o] : this.api.top !== this.api && j(this.api.top.form, o) && (this.api.top.form[o] = r[o]);
3296
+ s && D(s, o) ? n[o] = r[o] : D(this.api.form, o) ? this.api.form[o] = r[o] : this.api.top !== this.api && D(this.api.top.form, o) && (this.api.top.form[o] = r[o]);
3290
3297
  }), Object.keys(n).length && this.api.setChildrenFormData(i.rule, n);
3291
3298
  });
3292
3299
  },
@@ -3307,16 +3314,16 @@ function hi(t) {
3307
3314
  },
3308
3315
  syncForm() {
3309
3316
  const e = {}, r = this.fields(), i = [];
3310
- this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Ve(this.appendData, n)), s), e), r.reduce((s, n) => {
3317
+ this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Ae(this.appendData, n)), s), e), r.reduce((s, n) => {
3311
3318
  let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
3312
- return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = Ve(o.rule, "value"), s;
3319
+ return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = Ae(o.rule, "value"), s;
3313
3320
  }, e), this.form = ne(e), this.ignoreFields = i, this.syncValue();
3314
3321
  },
3315
3322
  isIgnore(e) {
3316
3323
  return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
3317
3324
  },
3318
3325
  appendValue(e) {
3319
- (!e.field || !j(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
3326
+ (!e.field || !D(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
3320
3327
  },
3321
3328
  addSubForm(e, r) {
3322
3329
  this.subForm[e.id] = r;
@@ -3333,7 +3340,7 @@ function hi(t) {
3333
3340
  }), this.vm.updateValue(e);
3334
3341
  },
3335
3342
  isChange(e, r) {
3336
- return JSON.stringify(this.getFormData(e), vt) !== JSON.stringify(r, vt);
3343
+ return JSON.stringify(this.getFormData(e), bt) !== JSON.stringify(r, bt);
3337
3344
  },
3338
3345
  isQuote(e, r) {
3339
3346
  return (r instanceof Function || h.Object(r) || Array.isArray(r)) && r === e.rule.value;
@@ -3366,10 +3373,10 @@ function hi(t) {
3366
3373
  }
3367
3374
  });
3368
3375
  }
3369
- function vt(t, e) {
3376
+ function bt(t, e) {
3370
3377
  return typeof e == "function" ? "" + e : e;
3371
3378
  }
3372
- const Ae = {
3379
+ const je = {
3373
3380
  init(t) {
3374
3381
  },
3375
3382
  toFormValue(t, e) {
@@ -3424,7 +3431,7 @@ function pi(t) {
3424
3431
  if (n)
3425
3432
  return n;
3426
3433
  }
3427
- return r[e.originType] || r[J(e.type)] || r[e.trueType] || Ae;
3434
+ return r[e.originType] || r[J(e.type)] || r[e.trueType] || je;
3428
3435
  },
3429
3436
  bindParser(e) {
3430
3437
  e.setParser(this.getParser(e));
@@ -3438,7 +3445,7 @@ function pi(t) {
3438
3445
  },
3439
3446
  watchCtx(e) {
3440
3447
  if (Dt().filter((i) => i[0] !== "_" && i[0] !== "$" && di.indexOf(i) === -1).forEach((i) => {
3441
- const s = Ve(e.rule, i), n = i === "children";
3448
+ const s = Ae(e.rule, i), n = i === "children";
3442
3449
  e.refRule[i] = s, e.watch.push(L(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3443
3450
  let l = s.value;
3444
3451
  if (!this.isBreakWatch()) {
@@ -3505,7 +3512,7 @@ function pi(t) {
3505
3512
  return n;
3506
3513
  });
3507
3514
  }), e.input) {
3508
- const i = Ve(e.rule, "value");
3515
+ const i = Ae(e.rule, "value");
3509
3516
  e.watch.push(L(() => i.value, () => {
3510
3517
  let s = e.parser.toFormValue(i.value, e);
3511
3518
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3657,11 +3664,11 @@ function pi(t) {
3657
3664
  if (p.variable)
3658
3665
  m = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3659
3666
  else if (p.field)
3660
- m = pt(p.field || "");
3667
+ m = dt(p.field || "");
3661
3668
  else if (!p.mode)
3662
3669
  return !0;
3663
3670
  let y = p.compare;
3664
- if (y && (y = pt(y || "")), p.mode ? d = n(p) : ce[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${m}, ${y || "$val"}); }}}}`).call(this.api.form, ce, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
3671
+ if (y && (y = dt(y || "")), p.mode ? d = n(p) : ce[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${m}, ${y || "$val"}); }}}}`).call(this.api.form, ce, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
3665
3672
  return !0;
3666
3673
  l || (u = u && d);
3667
3674
  }
@@ -3705,7 +3712,7 @@ function pi(t) {
3705
3712
  const { id: r, field: i, input: s, name: n } = e;
3706
3713
  ie(this.ctxs, r), ie(this.formData, r), ie(this.subForm, r), ie(this.vm.ctxInject, r);
3707
3714
  const o = e.getParentGroup();
3708
- o && this.subRuleData[o.id] && ie(this.subRuleData[o.id], i), e.group && ie(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !j(this.fieldCtx, i) && ie(this.form, i), this.deferSyncValue(() => {
3715
+ o && this.subRuleData[o.id] && ie(this.subRuleData[o.id], i), e.group && ie(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !D(this.fieldCtx, i) && ie(this.form, i), this.deferSyncValue(() => {
3709
3716
  if (!this.reloading) {
3710
3717
  if (e.parser.loadChildren !== !1) {
3711
3718
  const l = e.getPending("children", e.rule.children);
@@ -3783,7 +3790,7 @@ function gi(t) {
3783
3790
  let r = {
3784
3791
  required: () => {
3785
3792
  var i, s;
3786
- return (j(e.rule, "$required") ? e.rule.$required : (s = (i = e.rule) == null ? void 0 : i.effect) == null ? void 0 : s.required) || !1;
3793
+ return (D(e.rule, "$required") ? e.rule.$required : (s = (i = e.rule) == null ? void 0 : i.effect) == null ? void 0 : s.required) || !1;
3787
3794
  }
3788
3795
  };
3789
3796
  Object.keys(e.rule.effect || {}).forEach((i) => {
@@ -3813,9 +3820,9 @@ function gi(t) {
3813
3820
  }, r);
3814
3821
  },
3815
3822
  getEffect(e, r) {
3816
- if (j(e, "$" + r))
3823
+ if (D(e, "$" + r))
3817
3824
  return e["$" + r];
3818
- if (j(e, "effect") && j(e.effect, r))
3825
+ if (D(e, "effect") && D(e.effect, r))
3819
3826
  return e.effect[r];
3820
3827
  },
3821
3828
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
@@ -3884,7 +3891,7 @@ function X(t) {
3884
3891
  nextReload: () => {
3885
3892
  this.lifecycle("reload");
3886
3893
  }
3887
- }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
3894
+ }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3888
3895
  const i = O(() => r(e, this));
3889
3896
  return i && i !== e && _(e, i), e;
3890
3897
  }, Yr(this));
@@ -3935,7 +3942,7 @@ hi(X);
3935
3942
  pi(X);
3936
3943
  mi(X);
3937
3944
  gi(X);
3938
- const bi = "fcFragment", Ne = {
3945
+ const bi = "fcFragment", Le = {
3939
3946
  name: bi,
3940
3947
  functional: !0,
3941
3948
  props: ["vnode"],
@@ -4009,7 +4016,7 @@ _(Gt.prototype, {
4009
4016
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
4010
4017
  },
4011
4018
  updateKey() {
4012
- this.key = Ie();
4019
+ this.key = Ve();
4013
4020
  },
4014
4021
  //TODO interface
4015
4022
  init() {
@@ -4049,6 +4056,8 @@ _(Gt.prototype, {
4049
4056
  getDefaultOptions() {
4050
4057
  return {};
4051
4058
  },
4059
+ fieldChange(t, e, r, i) {
4060
+ },
4052
4061
  render(t) {
4053
4062
  }
4054
4063
  });
@@ -4097,8 +4106,8 @@ const wi = function(t) {
4097
4106
  const u = typeof l == "object";
4098
4107
  let f = (m) => {
4099
4108
  let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4100
- const w = u && l.modify ? i : r.getProp();
4101
- a === "child" ? w.children ? k(w.children, 0, y) : k(w, "children", [y]) : oe(w, a, y), s.sync(i);
4109
+ const C = u && l.modify ? i : r.getProp();
4110
+ a === "child" ? C.children ? k(C.children, 0, y) : k(C, "children", [y]) : oe(C, a, y), s.sync(i);
4102
4111
  }, p = (m) => f(m);
4103
4112
  const d = t.watchLoadData(p);
4104
4113
  f = se(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
@@ -4176,27 +4185,27 @@ const wi = function(t) {
4176
4185
  const m = t.$handle.loadFetchVar(K(a), p, n), y = q(v({
4177
4186
  headers: {}
4178
4187
  }, m), {
4179
- onSuccess(w, F) {
4188
+ onSuccess(C, F) {
4180
4189
  if (f()) return;
4181
- let G = (N) => F ? N : j(N, "data") ? N.data : N;
4190
+ let G = (N) => F ? N : D(N, "data") ? N.data : N;
4182
4191
  const V = x(m.parse);
4183
- h.Function(V) ? G = V : V && h.String(V) && (G = (N) => B(N, V)), l(G(w, n, o));
4192
+ h.Function(V) ? G = V : V && h.String(V) && (G = (N) => B(N, V)), l(G(C, n, o));
4184
4193
  },
4185
- onError(w) {
4186
- l(void 0), !f() && (u || ((F) => tt(F.message || "fetch fail " + m.action)))(w, n, o);
4194
+ onError(C) {
4195
+ l(void 0), !f() && (u || ((F) => et(F.message || "fetch fail " + m.action)))(C, n, o);
4187
4196
  }
4188
4197
  });
4189
4198
  t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4190
4199
  if (h.Function(m.action)) {
4191
- m.action(n, o).then((w) => {
4192
- y.onSuccess(w, !0);
4193
- }).catch((w) => {
4194
- y.onError(w);
4200
+ m.action(n, o).then((C) => {
4201
+ y.onSuccess(C, !0);
4202
+ }).catch((C) => {
4203
+ y.onError(C);
4195
4204
  });
4196
4205
  return;
4197
4206
  }
4198
4207
  O(() => t.create.fetch(y, { inject: s, rule: n, api: o }));
4199
- }).catch((w) => {
4208
+ }).catch((C) => {
4200
4209
  });
4201
4210
  }, a.wait || 600));
4202
4211
  }
@@ -4292,7 +4301,7 @@ function Ai(t) {
4292
4301
  }
4293
4302
  return null;
4294
4303
  }
4295
- function nt(t, e) {
4304
+ function it(t, e) {
4296
4305
  if (!e)
4297
4306
  return null;
4298
4307
  const r = e.split(".");
@@ -4300,13 +4309,13 @@ function nt(t, e) {
4300
4309
  return r.length ? i == null ? null : B(i, r) : i;
4301
4310
  }
4302
4311
  function Vi(t) {
4303
- return nt(Di, t);
4312
+ return it(Di, t);
4304
4313
  }
4305
4314
  function Ii(t) {
4306
- return nt(ji, t);
4315
+ return it(ji, t);
4307
4316
  }
4308
4317
  function Pi(t) {
4309
- return nt(Ai, t);
4318
+ return it(Ai, t);
4310
4319
  }
4311
4320
  const Ti = {
4312
4321
  en: {
@@ -4362,7 +4371,7 @@ function Bi(t, e) {
4362
4371
  let r;
4363
4372
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4364
4373
  }
4365
- function Me() {
4374
+ function Ne() {
4366
4375
  return Bi("name", ...arguments);
4367
4376
  }
4368
4377
  function Li(t) {
@@ -4381,20 +4390,20 @@ function Ni(t, e) {
4381
4390
  }
4382
4391
  function Mi(t) {
4383
4392
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4384
- Rt.push(...e), Ye.push(...r), et.push(...i), Nt([...e, ...r, ...i]);
4393
+ Rt.push(...e), Qe.push(...r), Ye.push(...i), Nt([...e, ...r, ...i]);
4385
4394
  }
4386
4395
  let qi = 1;
4387
- const U = {}, De = Symbol("defValue");
4396
+ const U = {}, vt = Symbol("defValue");
4388
4397
  function Kt(t) {
4389
4398
  const e = {
4390
- [Ne.name]: Ne
4399
+ [Le.name]: Le
4391
4400
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4392
4401
  t.extendApi
4393
4402
  ], u = v({}, ki), f = Zr();
4394
4403
  let p = { global: {} };
4395
4404
  const d = t.isMobile === !0, m = ne({
4396
4405
  $mobile: d
4397
- }), y = _i(), w = {}, F = {};
4406
+ }), y = _i(), C = {}, F = {};
4398
4407
  Mi(t.attrs || {});
4399
4408
  function G(c) {
4400
4409
  const g = U[c];
@@ -4407,48 +4416,48 @@ function Kt(t) {
4407
4416
  o.push(c);
4408
4417
  }
4409
4418
  function N() {
4410
- const c = Me(...arguments);
4419
+ const c = Ne(...arguments);
4411
4420
  c.id && c.prop && (i[c.id] = c.prop);
4412
4421
  }
4413
4422
  function de() {
4414
- const c = Me(...arguments);
4423
+ const c = Ne(...arguments);
4415
4424
  c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(v({}, c.prop), {
4416
4425
  name: c.id
4417
4426
  }));
4418
4427
  }
4419
- function Pe(c) {
4428
+ function Ie(c) {
4420
4429
  y.use(c);
4421
4430
  }
4422
4431
  function pe() {
4423
- const c = Me(...arguments);
4424
- if (!c.id || !c.prop) return Ae;
4432
+ const c = Ne(...arguments);
4433
+ if (!c.id || !c.prop) return je;
4425
4434
  const g = J(c.id), $ = c.prop, b = $.merge === !0 ? r[g] : void 0;
4426
- r[g] = Se($, b || Ae), f[g] = T(g), $.maker && _(f, $.maker);
4435
+ r[g] = Se($, b || je), f[g] = T(g), $.maker && _(f, $.maker);
4427
4436
  }
4428
4437
  function E(c, g) {
4429
4438
  let $;
4430
4439
  if (h.String(c)) {
4431
4440
  if ($ = c, g === void 0)
4432
- return ["form-create", "formcreate"].indexOf($) > -1 ? D() : e[$];
4441
+ return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
4433
4442
  } else
4434
4443
  $ = J(c.name), g = c;
4435
4444
  if (!$ || !g) return;
4436
4445
  const b = J($);
4437
4446
  e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && pe($, g.formCreateParser);
4438
4447
  }
4439
- function D() {
4440
- return xr(Be, e, i);
4448
+ function R() {
4449
+ return xr(Te, e, i);
4441
4450
  }
4442
4451
  function M() {
4443
- return Ne;
4452
+ return Le;
4444
4453
  }
4445
4454
  function me(c, g) {
4446
4455
  return h.Function(c.install) ? c.install(W, g) : h.Function(c) && c(W, g), this;
4447
4456
  }
4448
4457
  function W(c, g, $) {
4449
4458
  let b = Ni(c, g || {});
4450
- const C = b.$refs.fc.formCreate;
4451
- return C.$parent = $, Li(C.options).appendChild(b.$el), C.api();
4459
+ const w = b.$refs.fc.formCreate;
4460
+ return w.$parent = $, Li(w.options).appendChild(b.$el), w.api();
4452
4461
  }
4453
4462
  Se(W, F);
4454
4463
  function zt(c) {
@@ -4461,7 +4470,7 @@ function Kt(t) {
4461
4470
  providers: u,
4462
4471
  useApps: o,
4463
4472
  maker: f,
4464
- formulas: w,
4473
+ formulas: C,
4465
4474
  loadData: m
4466
4475
  } : delete g.inherit, Kt(g);
4467
4476
  }
@@ -4469,12 +4478,12 @@ function Kt(t) {
4469
4478
  s[c] = g;
4470
4479
  }
4471
4480
  function Xt(c, g) {
4472
- w[c] = g;
4481
+ C[c] = g;
4473
4482
  }
4474
4483
  function Zt(c, g) {
4475
4484
  const $ = n[c] || {}, b = $.parsers || {};
4476
- g.parsers && Object.keys(g.parsers).forEach((C) => {
4477
- b[C] = Se(g.parsers[C], Ae);
4485
+ g.parsers && Object.keys(g.parsers).forEach((w) => {
4486
+ b[w] = Se(g.parsers[w], je);
4478
4487
  }), g.name = c, n[c] = q(v(v({}, $), g), { parsers: b });
4479
4488
  }
4480
4489
  function Oe(c) {
@@ -4484,20 +4493,20 @@ function Kt(t) {
4484
4493
  });
4485
4494
  });
4486
4495
  }
4487
- function Te(c, g) {
4496
+ function Pe(c, g) {
4488
4497
  oe(m, c, g), Oe(c);
4489
4498
  }
4490
4499
  function Fe(c, g) {
4491
4500
  const $ = (...b) => O(() => g(...b));
4492
- $._driver = !0, Te(c, $);
4501
+ $._driver = !0, Pe(c, $);
4493
4502
  }
4494
- function st(c, g) {
4503
+ function nt(c, g) {
4495
4504
  const $ = (c || "").split(".");
4496
4505
  c = $.shift();
4497
4506
  const b = $.join(".");
4498
- if (j(m, c) || k(m, c, De), m[c] !== De) {
4499
- let C = m[c];
4500
- return C && C._driver ? C = C(b) : $.length && (C = B(C, $)), C == null || C === "" ? g : C;
4507
+ if (D(m, c) || k(m, c, vt), m[c] !== vt) {
4508
+ let w = m[c];
4509
+ return w && w._driver ? w = w(b) : $.length && (w = B(w, $)), w == null || w === "" ? g : w;
4501
4510
  } else
4502
4511
  return g;
4503
4512
  }
@@ -4510,7 +4519,7 @@ function Kt(t) {
4510
4519
  function er(c, g) {
4511
4520
  a.push({ name: c, callback: g });
4512
4521
  }
4513
- function Be(c) {
4522
+ function Te(c) {
4514
4523
  _(this, {
4515
4524
  id: qi++,
4516
4525
  create: W,
@@ -4519,10 +4528,10 @@ function Kt(t) {
4519
4528
  parsers: r,
4520
4529
  providers: u,
4521
4530
  modelFields: s,
4522
- formulas: w,
4531
+ formulas: C,
4523
4532
  isMobile: d,
4524
4533
  rules: c.$options.propsData.rule,
4525
- name: c.$options.propsData.name || Ie(),
4534
+ name: c.$options.propsData.name || Ve(),
4526
4535
  inFor: c.$options.propsData.inFor,
4527
4536
  prop: {
4528
4537
  components: e,
@@ -4548,7 +4557,7 @@ function Kt(t) {
4548
4557
  }, { deep: !0 });
4549
4558
  }), _(c.$options.components, e), _(c.$options.directives, i), this.$handle = new X(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
4550
4559
  }
4551
- Be.isMobile = d, _(Be.prototype, {
4560
+ Te.isMobile = d, _(Te.prototype, {
4552
4561
  init() {
4553
4562
  this.isSub() && this.unwatch.push(L(() => this.vm.parent.fc.options.value, () => {
4554
4563
  this.initOptions(), this.$handle.api.refresh();
@@ -4560,9 +4569,9 @@ function Kt(t) {
4560
4569
  },
4561
4570
  t(c, g, $) {
4562
4571
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4563
- return b == null && (b = ""), b && g && Object.keys(g).forEach((C) => {
4564
- const S = new RegExp(`{${C}}`, "g");
4565
- b = b.replace(S, g[C]);
4572
+ return b == null && (b = ""), b && g && Object.keys(g).forEach((w) => {
4573
+ const j = new RegExp(`{${w}}`, "g");
4574
+ b = b.replace(j, g[w]);
4566
4575
  }), b;
4567
4576
  },
4568
4577
  globalDataDriver(c) {
@@ -4572,15 +4581,15 @@ function Kt(t) {
4572
4581
  if (b.type === "static")
4573
4582
  return B(b.data, g);
4574
4583
  {
4575
- let C;
4576
- const S = this.fetchCache.get(b);
4577
- if (S) {
4578
- if (S.status && (C = B(S.data, g)), !S.loading)
4579
- return C;
4580
- S.loading = !1, this.fetchCache.set(b, S);
4584
+ let w;
4585
+ const j = this.fetchCache.get(b);
4586
+ if (j) {
4587
+ if (j.status && (w = B(j.data, g)), !j.loading)
4588
+ return w;
4589
+ j.loading = !1, this.fetchCache.set(b, j);
4581
4590
  } else
4582
4591
  this.fetchCache.set(b, { status: !1 });
4583
- const R = se(() => {
4592
+ const S = se(() => {
4584
4593
  le();
4585
4594
  const z = this.fetchCache.get(b);
4586
4595
  this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (z && (z.loading = !0, this.fetchCache.set(b, z)), this.bus.$emit("$loadData.$globalData." + $)) : this.fetchCache.delete(b);
@@ -4590,17 +4599,17 @@ function Kt(t) {
4590
4599
  if (ue && b.watch === !1)
4591
4600
  return le();
4592
4601
  if (ue) {
4593
- R();
4602
+ S();
4594
4603
  return;
4595
4604
  }
4596
- const ge = this.$handle.loadFetchVar(Ke(b), z);
4605
+ const ge = this.$handle.loadFetchVar(Je(b), z);
4597
4606
  this.$handle.api.fetch(ge).then((re) => {
4598
4607
  ae(re);
4599
4608
  }).catch((re) => {
4600
4609
  ae(null);
4601
4610
  });
4602
4611
  }, le = this.watchLoadData(Z);
4603
- return this.unwatch.push(le), C;
4612
+ return this.unwatch.push(le), w;
4604
4613
  }
4605
4614
  }
4606
4615
  },
@@ -4611,8 +4620,8 @@ function Kt(t) {
4611
4620
  globalLanguageDriver(c) {
4612
4621
  let g = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4613
4622
  if (g && (b = O(() => g(c))), b == null && $ && typeof $ == "object" && (b = B($, c)), b == null) {
4614
- const C = this.options.value.language || {}, S = this.getLocale();
4615
- b = B(C[S] || {}, c), b == null && (b = B(Ti[S] || {}, c));
4623
+ const w = this.options.value.language || {}, j = this.getLocale();
4624
+ b = B(w[j] || {}, c), b == null && (b = B(Ti[j] || {}, c));
4616
4625
  }
4617
4626
  return b;
4618
4627
  },
@@ -4620,47 +4629,46 @@ function Kt(t) {
4620
4629
  let g = c.split(".");
4621
4630
  const $ = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4622
4631
  if (b) {
4623
- const C = h.Function(b) ? b : x(b.handle);
4624
- if (C) {
4625
- let S;
4626
- const R = this.watchLoadData((ae, Z) => {
4627
- Z ? (this.bus.$emit("$loadData.$var." + $), R()) : S = C(ae, this.$handle.api);
4632
+ const w = h.Function(b) ? b : x(b.handle);
4633
+ if (w) {
4634
+ let j;
4635
+ const S = this.watchLoadData((ae, Z) => {
4636
+ Z ? (this.bus.$emit("$loadData.$var." + $), S()) : j = w(ae, this.$handle.api);
4628
4637
  });
4629
- return this.unwatch.push(R), B(S, g);
4638
+ return this.unwatch.push(S), B(j, g);
4630
4639
  }
4631
4640
  }
4632
4641
  },
4633
4642
  setData(c, g, $) {
4634
- $ ? Te(c, g) : (oe(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4643
+ $ ? Pe(c, g) : (oe(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4635
4644
  },
4636
4645
  getLoadData(c, g) {
4637
4646
  let $ = null;
4638
4647
  if (c != null) {
4639
4648
  let b = c.split(".");
4640
- const C = b.shift();
4641
- if (C === "$topForm")
4649
+ const w = b.shift();
4650
+ if ($ = B(this.vm.top.fc.tmpData, c), $ != null)
4651
+ return $;
4652
+ if (w === "$topForm")
4642
4653
  $ = this.$handle.api.top.formData(!0);
4643
- else if (C === "$scopeForm")
4654
+ else if (w === "$scopeForm")
4644
4655
  $ = this.$handle.api.scope.formData(!0);
4645
- else if (C === "$form")
4656
+ else if (w === "$form")
4646
4657
  $ = this.$handle.api.formData(!0);
4647
- else if (C === "$options")
4658
+ else if (w === "$options")
4648
4659
  $ = this.options.value;
4649
- else if (C === "$globalData")
4660
+ else if (w === "$globalData")
4650
4661
  $ = this.globalDataDriver(b.join(".")), b = [];
4651
- else if (C === "$var")
4662
+ else if (w === "$var")
4652
4663
  $ = this.globalVarDriver(b.join(".")), b = [];
4653
- else if (C === "$locale")
4664
+ else if (w === "$locale")
4654
4665
  $ = this.getLocale(), b = [];
4655
- else if (C === "$t")
4666
+ else if (w === "$t")
4656
4667
  $ = this.globalLanguageDriver(b.join(".")), b = [];
4657
4668
  else {
4658
- if (C === "$preview")
4669
+ if (w === "$preview")
4659
4670
  return this.$handle.preview;
4660
- {
4661
- const S = this.vm.top.fc.tmpData;
4662
- j(S, C) || k(S, C, De), $ = S[C] !== De ? B(S, c) : st(c), b = [];
4663
- }
4671
+ $ = nt(c), b = [];
4664
4672
  }
4665
4673
  $ && b.length && ($ = B($, b));
4666
4674
  }
@@ -4668,23 +4676,23 @@ function Kt(t) {
4668
4676
  },
4669
4677
  watchLoadData(c, g) {
4670
4678
  let $ = {};
4671
- const b = (R) => {
4672
- this.get || (this.get = C), O(() => {
4673
- c(C, R);
4674
- }), this.get === C && (this.get = void 0);
4675
- }, C = (R, ae) => {
4679
+ const b = (S) => {
4680
+ this.get || (this.get = w), O(() => {
4681
+ c(w, S);
4682
+ }), this.get === w && (this.get = void 0);
4683
+ }, w = (S, ae) => {
4676
4684
  let Z;
4677
- if (typeof R == "object" && (Z = R.getValue, R = R.id), $[R])
4678
- return $[R].val;
4679
- const le = $e(() => Z ? Z() : this.getLoadData(R, ae)), z = R.split("."), ue = z.shift(), ge = z.shift() || "", re = se(() => {
4680
- const fe = Z ? Z() : this.getLoadData(R, ae);
4681
- if ($[R])
4682
- ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[R].val || JSON.stringify(fe) !== JSON.stringify($[R].val)) && ($[R].val = fe, b(!0));
4685
+ if (typeof S == "object" && (Z = S.getValue, S = S.id), $[S])
4686
+ return $[S].val;
4687
+ const le = $e(() => Z ? Z() : this.getLoadData(S, ae)), z = S.split("."), ue = z.shift(), ge = z.shift() || "", re = se(() => {
4688
+ const fe = Z ? Z() : this.getLoadData(S, ae);
4689
+ if ($[S])
4690
+ ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[S].val || JSON.stringify(fe) !== JSON.stringify($[S].val)) && ($[S].val = fe, b(!0));
4683
4691
  else return;
4684
4692
  }, g || 0), rr = L(le, (fe) => {
4685
4693
  re();
4686
4694
  });
4687
- return this.bus.$on("$loadData." + ue, re), ge && this.bus.$on("$loadData." + ue + "." + ge, re), $[R] = {
4695
+ return this.bus.$on("$loadData." + ue, re), ge && this.bus.$on("$loadData." + ue + "." + ge, re), $[S] = {
4688
4696
  fn: () => {
4689
4697
  this.bus.$off("$loadData." + ue, re), ge && this.bus.$off("$loadData." + ue + "." + ge, re), rr();
4690
4698
  },
@@ -4692,10 +4700,10 @@ function Kt(t) {
4692
4700
  }, le.value;
4693
4701
  };
4694
4702
  b(!1);
4695
- const S = () => {
4696
- Object.keys($).forEach((R) => $[R].fn()), $ = {};
4703
+ const j = () => {
4704
+ Object.keys($).forEach((S) => $[S].fn()), $ = {};
4697
4705
  };
4698
- return this.unwatch.push(S), S;
4706
+ return this.unwatch.push(j), j;
4699
4707
  },
4700
4708
  isSub() {
4701
4709
  return this.vm.parent && this.vm.extendOption;
@@ -4743,15 +4751,15 @@ function Kt(t) {
4743
4751
  this.$handle.bindNextTick(() => this.bus.$emit("next-tick", this.$handle.api));
4744
4752
  }
4745
4753
  });
4746
- function ot(c) {
4754
+ function st(c) {
4747
4755
  _(c, {
4748
4756
  version: t.version,
4749
4757
  ui: t.ui,
4750
4758
  isMobile: d,
4751
4759
  extendApi: Qt,
4752
- getData: st,
4760
+ getData: nt,
4753
4761
  setDataDriver: Fe,
4754
- setData: Te,
4762
+ setData: Pe,
4755
4763
  removeData: Yt,
4756
4764
  refreshData: Oe,
4757
4765
  maker: f,
@@ -4765,12 +4773,12 @@ function Kt(t) {
4765
4773
  parser: pe,
4766
4774
  use: me,
4767
4775
  factory: zt,
4768
- componentAlias: Pe,
4776
+ componentAlias: Ie,
4769
4777
  copyRule: It,
4770
4778
  copyRules: Pt,
4771
4779
  mergeRule: te,
4772
4780
  fetch: qt,
4773
- $form: D,
4781
+ $form: R,
4774
4782
  parseFn: x,
4775
4783
  parseJson: Vt,
4776
4784
  toJson: Ce,
@@ -4785,22 +4793,22 @@ function Kt(t) {
4785
4793
  install(g, $) {
4786
4794
  if (p = v(v({}, p), $ || {}), g._installedFormCreate === !0) return;
4787
4795
  g._installedFormCreate = !0;
4788
- const b = function(S, R = {}) {
4789
- return W(S, R, this);
4796
+ const b = function(j, S = {}) {
4797
+ return W(j, S, this);
4790
4798
  };
4791
- ot(b), g.prototype.$formCreate = b;
4792
- const C = D();
4793
- g.component(C.name, C), g.component("FcFragment", M()), o.forEach((S) => {
4794
- O(() => S(c, g));
4799
+ st(b), g.prototype.$formCreate = b;
4800
+ const w = R();
4801
+ g.component(w.name, w), g.component("FcFragment", M()), o.forEach((j) => {
4802
+ O(() => j(c, g));
4795
4803
  });
4796
4804
  }
4797
4805
  });
4798
4806
  }
4799
- if (ot(F), tr(F), Fe("$cookie", Vi), Fe("$localStorage", Ii), Fe("$sessionStorage", Pi), y.use({ fragment: "fcFragment" }), t.install && W.use(t), pe(Ri), t.inherit) {
4807
+ if (st(F), tr(F), Fe("$cookie", Vi), Fe("$localStorage", Ii), Fe("$sessionStorage", Pi), y.use({ fragment: "fcFragment" }), t.install && W.use(t), pe(Ri), t.inherit) {
4800
4808
  const c = t.inherit;
4801
- c.components && _(e, c.components), c.parsers && _(r, c.parsers), c.directives && _(i, c.directives), c.modelFields && _(s, c.modelFields), c.providers && _(u, c.providers), c.useApps && _(o, c.useApps), c.maker && _(f, c.maker), c.loadData && _(m, c.loadData), c.formulas && _(w, c.formulas);
4809
+ c.components && _(e, c.components), c.parsers && _(r, c.parsers), c.directives && _(i, c.directives), c.modelFields && _(s, c.modelFields), c.providers && _(u, c.providers), c.useApps && _(o, c.useApps), c.maker && _(f, c.maker), c.loadData && _(m, c.loadData), c.formulas && _(C, c.formulas);
4802
4810
  }
4803
- const ke = D();
4811
+ const ke = R();
4804
4812
  return Se(ke, F), Object.defineProperties(ke, {
4805
4813
  fetch: {
4806
4814
  get() {
@@ -4830,19 +4838,19 @@ const _t = {
4830
4838
  const e = t.prop.props;
4831
4839
  e.valueFormat || (e.valueFormat = _t[e.type] || _t.date);
4832
4840
  }
4833
- }, qe = "hidden", Hi = {
4834
- name: qe,
4841
+ }, Me = "hidden", Hi = {
4842
+ name: Me,
4835
4843
  maker: {
4836
- [qe]: (t, e) => T(qe)("", t, e)
4844
+ [Me]: (t, e) => T(Me)("", t, e)
4837
4845
  },
4838
4846
  render() {
4839
4847
  return [];
4840
4848
  }
4841
- }, Ue = "input", Gi = {
4842
- name: Ue,
4849
+ }, qe = "input", Gi = {
4850
+ name: qe,
4843
4851
  maker: function() {
4844
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = T(Ue, { type: r }), e), {});
4845
- return t.idate = T(Ue, { type: "date" }), t;
4852
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = T(qe, { type: r }), e), {});
4853
+ return t.idate = T(qe, { type: "date" }), t;
4846
4854
  }(),
4847
4855
  mergeProp(t) {
4848
4856
  let { props: e } = t.prop;
@@ -4857,11 +4865,11 @@ const _t = {
4857
4865
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4858
4866
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4859
4867
  }
4860
- }, He = "timePicker", Ki = {
4861
- name: He,
4868
+ }, Ue = "timePicker", Ki = {
4869
+ name: Ue,
4862
4870
  maker: {
4863
- time: T(He, (t) => t.props.isRange = !1),
4864
- timeRange: T(He, (t) => t.props.isRange = !0)
4871
+ time: T(Ue, (t) => t.props.isRange = !1),
4872
+ timeRange: T(Ue, (t) => t.props.isRange = !0)
4865
4873
  },
4866
4874
  mergeProp(t) {
4867
4875
  const e = t.prop.props;
@@ -4958,15 +4966,15 @@ function Yi(t) {
4958
4966
  return t.type === "tooltip";
4959
4967
  }
4960
4968
  function Ot(t, e) {
4961
- j(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4969
+ D(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4962
4970
  }
4963
4971
  function Q(t) {
4964
4972
  return t === !1;
4965
4973
  }
4966
4974
  function en(t, e) {
4967
- j(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4975
+ D(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4968
4976
  }
4969
- function Ge(t) {
4977
+ function He(t) {
4970
4978
  const e = v({}, t);
4971
4979
  return delete e.children, e;
4972
4980
  }
@@ -4987,6 +4995,10 @@ const tn = {
4987
4995
  const e = this.vm.$refs[t.wrapRef];
4988
4996
  e && e.clearValidate();
4989
4997
  },
4998
+ fieldChange(t, e, r, i) {
4999
+ var s;
5000
+ i || (s = this.vm.$refs[t.wrapRef]) == null || s.validate("change");
5001
+ },
4990
5002
  tidyOptions(t) {
4991
5003
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4992
5004
  en(t, e);
@@ -5042,7 +5054,7 @@ const tn = {
5042
5054
  props: q(v({
5043
5055
  labelWidth: o === void 0 ? o : At(o),
5044
5056
  label: n ? r.title.title : void 0
5045
- }, Ge(r.wrap || {})), {
5057
+ }, He(r.wrap || {})), {
5046
5058
  prop: t.id,
5047
5059
  rules: t.injectValidate()
5048
5060
  }),
@@ -5059,7 +5071,7 @@ const tn = {
5059
5071
  return !(!e.title && !e.native || Q(e.show));
5060
5072
  },
5061
5073
  makeInfo(t, e, r) {
5062
- var f, p, d, m, y, w;
5074
+ var f, p, d, m, y, C;
5063
5075
  const i = v({}, t.title), s = v({}, t.info), n = Yi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5064
5076
  title: (p = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : p.value,
5065
5077
  rule: r.rule,
@@ -5069,12 +5081,12 @@ const tn = {
5069
5081
  const F = {
5070
5082
  type: s.type || "popover",
5071
5083
  slot: "label",
5072
- props: Ge(s),
5084
+ props: He(s),
5073
5085
  key: `${e}pop`
5074
5086
  };
5075
5087
  delete F.props.icon, delete F.props.show, delete F.props.info, delete F.props.align, delete F.props.native;
5076
5088
  const G = "content";
5077
- s.info && !j(F.props, G) && (F.props[G] = (w = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : w.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(ee([s, F]), [
5089
+ s.info && !D(F.props, G) && (F.props[G] = (C = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : C.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(ee([s, F]), [
5078
5090
  this.$r({
5079
5091
  type: "i",
5080
5092
  slot: n ? "default" : "reference",
@@ -5084,7 +5096,7 @@ const tn = {
5084
5096
  ]));
5085
5097
  }
5086
5098
  const u = ee([i, {
5087
- props: Ge(i),
5099
+ props: He(i),
5088
5100
  key: `${e}tit`,
5089
5101
  class: "fc-form-title",
5090
5102
  slot: i.slot || "label",
@@ -5342,7 +5354,7 @@ function fn(t) {
5342
5354
  function cn() {
5343
5355
  return Kt({
5344
5356
  ui: "element-ui",
5345
- version: "2.7.11",
5357
+ version: "2.7.13",
5346
5358
  manager: tn,
5347
5359
  extendApi: ln,
5348
5360
  install: fn,
@@ -5353,10 +5365,10 @@ function cn() {
5353
5365
  }
5354
5366
  });
5355
5367
  }
5356
- const Ze = cn();
5357
- typeof window != "undefined" && (window.formCreate = Ze, window.Vue && Ze.install(window.Vue));
5358
- const pn = Ze.maker;
5368
+ const Xe = cn();
5369
+ typeof window != "undefined" && (window.formCreate = Xe, window.Vue && Xe.install(window.Vue));
5370
+ const pn = Xe.maker;
5359
5371
  export {
5360
- Ze as default,
5372
+ Xe as default,
5361
5373
  pn as maker
5362
5374
  };