@form-create/element-ui 2.7.10 → 2.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/element-ui v2.7.10
3
+ * @form-create/element-ui v2.7.12
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -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);
@@ -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
@@ -738,6 +738,7 @@ const Ir = "fcUpload", Pr = {
738
738
  default: () => {
739
739
  }
740
740
  },
741
+ uploadText: String,
741
742
  value: [Array, String]
742
743
  },
743
744
  data() {
@@ -749,11 +750,11 @@ const Ir = "fcUpload", Pr = {
749
750
  };
750
751
  },
751
752
  created() {
752
- this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = H(this.value).map(ft).map(ct);
753
+ 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);
753
754
  },
754
755
  watch: {
755
756
  value(t) {
756
- this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = H(t).map(ft).map(ct), this.uploadList = this.$refs.upload.uploadFiles);
757
+ 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);
757
758
  },
758
759
  limit(t, e) {
759
760
  (e === 1 || t === 1) && this.update();
@@ -846,7 +847,7 @@ const Ir = "fcUpload", Pr = {
846
847
  attrs: {
847
848
  type: "primary"
848
849
  }
849
- }, [this.formCreateInject.t("clickToUpload") || "点击上传"]) : t("i", {
850
+ }, [this.formCreateInject.t("clickToUpload") || this.uploadText || "点击上传"]) : t("i", {
850
851
  class: "el-icon-upload2"
851
852
  });
852
853
  },
@@ -953,7 +954,7 @@ const Tr = Object.assign || function(t) {
953
954
  function _() {
954
955
  return Tr.apply(this, arguments);
955
956
  }
956
- function Ke(t) {
957
+ function Je(t) {
957
958
  return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
958
959
  }
959
960
  const Br = "fcGroup", Lr = {
@@ -1398,23 +1399,23 @@ const kt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style"
1398
1399
  }, e);
1399
1400
  }, Hr = (t, e) => function() {
1400
1401
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1401
- }, 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"];
1402
1403
  function Dt() {
1403
- return [...Rt, ...kt, ...Et, ...St, ...Ye, ...et];
1404
+ return [...Rt, ...kt, ...Et, ...St, ...Qe, ...Ye];
1404
1405
  }
1405
1406
  function jt(t, e, r) {
1406
1407
  return `[form-create ${t}]: ${e}`;
1407
1408
  }
1408
- function tt(t, e) {
1409
+ function et(t, e) {
1409
1410
  console.error(jt("err", t));
1410
1411
  }
1411
1412
  function Gr(t) {
1412
- tt(t.toString()), console.error(t);
1413
+ et(t.toString()), console.error(t);
1413
1414
  }
1414
1415
  function At(t) {
1415
1416
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1416
1417
  }
1417
- const We = "[[FORM-CREATE-PREFIX-", ze = "-FORM-CREATE-SUFFIX]]";
1418
+ const Ke = "[[FORM-CREATE-PREFIX-", We = "-FORM-CREATE-SUFFIX]]";
1418
1419
  function Ce(t, e) {
1419
1420
  return JSON.stringify(we(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1420
1421
  if (!(i && i._isVue === !0)) {
@@ -1423,19 +1424,19 @@ function Ce(t, e) {
1423
1424
  if (i.__json)
1424
1425
  return i.__json;
1425
1426
  if (i.__origin && (i = i.__origin), !i.__emit)
1426
- return We + i + ze;
1427
+ return Ke + i + We;
1427
1428
  }
1428
1429
  }, e);
1429
1430
  }
1430
- function Le(t) {
1431
+ function Be(t) {
1431
1432
  return new Function("return " + t)();
1432
1433
  }
1433
- function X(t, e) {
1434
+ function x(t, e) {
1434
1435
  if (t && h.String(t) && t.length > 4) {
1435
1436
  let r = t.trim(), i = !1;
1436
1437
  try {
1437
- if (r.indexOf(ze) > 0 && r.indexOf(We) === 0)
1438
- 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;
1439
1440
  else if (r.indexOf("$FN:") === 0)
1440
1441
  r = r.substring(4), i = !0;
1441
1442
  else if (r.indexOf("$EXEC:") === 0)
@@ -1449,7 +1450,7 @@ function X(t, e) {
1449
1450
  }, r.__json = t, r.__inject = !0, r;
1450
1451
  } else {
1451
1452
  if (r.indexOf("$FNX:") === 0)
1452
- return r = Le(`function($inject){
1453
+ return r = Be(`function($inject){
1453
1454
  ` + r.substring(5) + `
1454
1455
  }`), r.__json = t, r.__inject = !0, r;
1455
1456
  (!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
@@ -1457,13 +1458,13 @@ function X(t, e) {
1457
1458
  if (!i) return t;
1458
1459
  let s;
1459
1460
  try {
1460
- s = Le(r);
1461
+ s = Be(r);
1461
1462
  } catch (n) {
1462
- s = Le("function " + r);
1463
+ s = Be("function " + r);
1463
1464
  }
1464
1465
  return s.__json = t, s;
1465
1466
  } catch (s) {
1466
- tt(`解析失败:${r}
1467
+ et(`解析失败:${r}
1467
1468
 
1468
1469
  err: ${s}`);
1469
1470
  return;
@@ -1473,11 +1474,11 @@ err: ${s}`);
1473
1474
  }
1474
1475
  function Vt(t, e) {
1475
1476
  return JSON.parse(t, function(r, i) {
1476
- return h.Undef(i) || !i.indexOf ? i : X(i, e);
1477
+ return h.Undef(i) || !i.indexOf ? i : x(i, e);
1477
1478
  });
1478
1479
  }
1479
1480
  let Jr = 0;
1480
- function Ie() {
1481
+ function Ve() {
1481
1482
  const t = 370 + ++Jr;
1482
1483
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1483
1484
  }
@@ -1487,7 +1488,7 @@ function oe(t, e, r) {
1487
1488
  s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1488
1489
  }), k(i, s, r), i;
1489
1490
  }
1490
- function Xe(t, e) {
1491
+ function ze(t, e) {
1491
1492
  return {
1492
1493
  value: t,
1493
1494
  enumerable: !1,
@@ -1502,9 +1503,9 @@ function Pt(t, e) {
1502
1503
  return we([], [...t], e || !1);
1503
1504
  }
1504
1505
  function te(t, e) {
1505
- 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;
1506
1507
  }
1507
- function ht(t) {
1508
+ function ct(t) {
1508
1509
  const e = h.Function(t.getRule) ? t.getRule() : t;
1509
1510
  return e.type || (e.type = "input"), e;
1510
1511
  }
@@ -1587,15 +1588,15 @@ function Ee() {
1587
1588
  function Se(t, e) {
1588
1589
  return Object.setPrototypeOf(t, e), t;
1589
1590
  }
1590
- const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1591
- "==": (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)),
1592
1593
  "!=": (t, e) => !ce["=="](t, e),
1593
1594
  ">": (t, e) => t > e,
1594
1595
  ">=": (t, e) => t >= e,
1595
1596
  "<": (t, e) => t < e,
1596
1597
  "<=": (t, e) => t <= e,
1597
1598
  on(t, e) {
1598
- return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
1599
+ return t && t.indexOf && t.indexOf(ht(t[0], e)) > -1;
1599
1600
  },
1600
1601
  notOn(t, e) {
1601
1602
  return !ce.on(t, e);
@@ -1635,7 +1636,7 @@ function zr(t) {
1635
1636
  r[1] && (i[r[1]] = !0);
1636
1637
  return Object.keys(i);
1637
1638
  }
1638
- function pt(t) {
1639
+ function dt(t) {
1639
1640
  let e = t.split("."), r = [], i = "";
1640
1641
  return e.forEach((s, n) => {
1641
1642
  n === 0 ? i = s : i += "." + s, r.push(i);
@@ -1653,15 +1654,15 @@ function Bt(t) {
1653
1654
  }
1654
1655
  return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
1655
1656
  }
1656
- const je = (t, e) => {
1657
+ const De = (t, e) => {
1657
1658
  if (!(!t || t === e || !t.$props)) {
1658
1659
  if (t.$props.formCreateInject)
1659
1660
  return t.$props.formCreateInject;
1660
1661
  if (t.$parent)
1661
- return je(t.$parent, e);
1662
+ return De(t.$parent, e);
1662
1663
  }
1663
1664
  };
1664
- function Xr(t, e, r) {
1665
+ function xr(t, e, r) {
1665
1666
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1666
1667
  return {
1667
1668
  name: i,
@@ -1701,6 +1702,7 @@ function Xr(t, e, r) {
1701
1702
  index: [String, Number],
1702
1703
  api: Object,
1703
1704
  locale: [String, Object],
1705
+ t: Function,
1704
1706
  name: String,
1705
1707
  subForm: {
1706
1708
  type: Boolean,
@@ -1721,25 +1723,25 @@ function Xr(t, e, r) {
1721
1723
  a = a.parent;
1722
1724
  else
1723
1725
  a = n;
1724
- 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({
1725
1727
  ctxInject: {},
1726
1728
  destroyed: !1,
1727
1729
  isShow: !0,
1728
1730
  unique: 1,
1729
1731
  renderRule: [...l.value || []],
1730
1732
  updateValue: JSON.stringify(u.value || {})
1731
- }), g = new t(n), y = g.api(), w = p.value, F = () => {
1733
+ }), m = new t(n), y = m.api(), C = p.value, F = () => {
1732
1734
  if (o) {
1733
- const E = je(n, o);
1735
+ const E = De(n, o);
1734
1736
  if (E) {
1735
1737
  let R;
1736
- w ? (R = H(E.getSubForm()), R.push(y)) : R = y, E.subForm(R);
1738
+ C ? (R = H(E.getSubForm()), R.push(y)) : R = y, E.subForm(R);
1737
1739
  }
1738
1740
  }
1739
1741
  }, G = () => {
1740
- const E = je(n, o);
1742
+ const E = De(n, o);
1741
1743
  if (E)
1742
- if (w) {
1744
+ if (C) {
1743
1745
  const R = H(E.getSubForm()), M = R.indexOf(y);
1744
1746
  M > -1 && R.splice(M, 1);
1745
1747
  } else
@@ -1760,43 +1762,43 @@ function Xr(t, e, r) {
1760
1762
  });
1761
1763
  });
1762
1764
  const N = se(() => {
1763
- g.bus.$emit("$loadData.$topForm");
1765
+ m.bus.$emit("$loadData.$topForm");
1764
1766
  }, 100), de = se(function() {
1765
- g.bus.$emit("$loadData.$scopeForm");
1766
- }, 100), Pe = se(() => {
1767
- g.bus.$emit("$loadData.$form");
1767
+ m.bus.$emit("$loadData.$scopeForm");
1768
+ }, 100), Ie = se(() => {
1769
+ m.bus.$emit("$loadData.$form");
1768
1770
  }, 100), pe = (E) => {
1769
- g.bus.$emit("change-$form." + E);
1771
+ m.bus.$emit("change-$form." + E);
1770
1772
  };
1771
1773
  return hr(() => {
1772
- o && (y.top.bus.$on("$loadData.$form", N), y.top.bus.$on("change", pe)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", de), g.mounted();
1774
+ o && (y.top.bus.$on("$loadData.$form", N), y.top.bus.$on("change", pe)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", de), m.mounted();
1773
1775
  }), dr(() => {
1774
- o && (y.top.bus.$off("$loadData.$form", N), y.top.bus.$off("change", pe)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", de), G(), d.destroyed = !0, g.unmount(), V && (V.parentNode || V.parentElement) && document.head.removeChild(V);
1776
+ o && (y.top.bus.$off("$loadData.$form", N), y.top.bus.$off("change", pe)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", de), G(), d.destroyed = !0, m.unmount(), V && (V.parentNode || V.parentElement) && document.head.removeChild(V);
1775
1777
  }), pr(() => {
1776
- g.updated();
1778
+ m.updated();
1777
1779
  }), L(f, (E) => {
1778
1780
  E ? F() : G();
1779
1781
  }, { immediate: !0 }), L(() => s.option, () => {
1780
- g.initOptions(), y.refresh();
1782
+ m.initOptions(), y.refresh();
1781
1783
  }, { deep: !0 }), L(() => [...l.value], (E) => {
1782
- g.$handle.isBreakWatch() || E.length === d.renderRule.length && E.every((R) => d.renderRule.indexOf(R) > -1) || (g.$handle.updateAppendData(), g.$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());
1783
1785
  }), L(() => [s.disabled, s.preview], () => {
1784
1786
  y.refresh();
1785
1787
  }), L(u, (E) => {
1786
1788
  Ce(E || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(E || {}) : y.setValue(E || {}));
1787
1789
  }, { deep: !0, flush: "post" }), L(() => s.index, () => {
1788
- y.coverValue({}), g.$handle.updateAppendData(), P(() => {
1790
+ y.coverValue({}), m.$handle.updateAppendData(), P(() => {
1789
1791
  P(() => {
1790
1792
  y.clearValidateState();
1791
1793
  });
1792
1794
  });
1793
1795
  }, { flush: "sync" }), q(v({
1794
- fc: ye(g),
1796
+ fc: ye(m),
1795
1797
  parent: o && ye(o),
1796
1798
  top: ye(a),
1797
1799
  fapi: ye(y)
1798
- }, ut(d)), {
1799
- getGroupInject: () => je(n, o),
1800
+ }, lt(d)), {
1801
+ getGroupInject: () => De(n, o),
1800
1802
  refresh() {
1801
1803
  ++d.unique;
1802
1804
  },
@@ -1807,7 +1809,7 @@ function Xr(t, e, r) {
1807
1809
  if (d.destroyed) return;
1808
1810
  const R = Ce(E);
1809
1811
  d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", E), P(() => {
1810
- Pe(), o ? f.value || de() : (N(), de());
1812
+ Ie(), o ? f.value || de() : (N(), de());
1811
1813
  }));
1812
1814
  }
1813
1815
  });
@@ -1831,14 +1833,14 @@ function Lt() {
1831
1833
  }
1832
1834
  function T(t, e) {
1833
1835
  return (r, i, s, n = {}) => {
1834
- const o = new rt(t, r, i, s, n);
1836
+ const o = new tt(t, r, i, s, n);
1835
1837
  return e && (h.Function(e) ? e(o) : o.props(e)), o;
1836
1838
  };
1837
1839
  }
1838
- function rt(t, e, r, i, s) {
1840
+ function tt(t, e, r, i, s) {
1839
1841
  this._data = _(Lt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1840
1842
  }
1841
- _(rt.prototype, {
1843
+ _(tt.prototype, {
1842
1844
  getRule() {
1843
1845
  return this._data;
1844
1846
  },
@@ -1852,26 +1854,26 @@ _(rt.prototype, {
1852
1854
  });
1853
1855
  function Nt(t) {
1854
1856
  t.forEach((e) => {
1855
- rt.prototype[e] = function(r) {
1857
+ tt.prototype[e] = function(r) {
1856
1858
  return te(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1857
1859
  };
1858
1860
  });
1859
1861
  }
1860
1862
  Nt(Dt());
1861
1863
  const Mt = T("");
1862
- function xr(t, e, r) {
1864
+ function Xr(t, e, r) {
1863
1865
  let i = Mt("", e);
1864
1866
  return i._data.type = t, i._data.title = r, i;
1865
1867
  }
1866
- function mt(t, e, r, i) {
1868
+ function pt(t, e, r, i) {
1867
1869
  let s = Mt("", r);
1868
1870
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1869
1871
  }
1870
1872
  function Zr() {
1871
1873
  return {
1872
- create: xr,
1873
- createTmp: mt,
1874
- template: mt,
1874
+ create: Xr,
1875
+ createTmp: pt,
1876
+ template: pt,
1875
1877
  factory: T
1876
1878
  };
1877
1879
  }
@@ -1879,7 +1881,7 @@ function Qr(t, e, r) {
1879
1881
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1880
1882
  return s.status = r.status, s.url = t, s;
1881
1883
  }
1882
- function gt(t) {
1884
+ function mt(t) {
1883
1885
  const e = t.responseText || t.response;
1884
1886
  if (!e)
1885
1887
  return e;
@@ -1904,8 +1906,8 @@ function qt(t) {
1904
1906
  t.onError(o);
1905
1907
  }, e.onload = function() {
1906
1908
  if (e.status < 200 || e.status >= 300)
1907
- return t.onError(Qr(r, t, e), gt(e));
1908
- t.onSuccess(gt(e));
1909
+ return t.onError(Qr(r, t, e), mt(e));
1910
+ t.onSuccess(mt(e));
1909
1911
  }, e.open(t.method || "get", r, !0);
1910
1912
  let i;
1911
1913
  (t.data || t.file) && (t.file || (t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data || {}).map((n) => {
@@ -1916,12 +1918,12 @@ function qt(t) {
1916
1918
  s[n] != null && e.setRequestHeader(n, s[n]);
1917
1919
  }), e.send(i);
1918
1920
  }
1919
- function yt(t, e, r) {
1921
+ function gt(t, e, r) {
1920
1922
  return new Promise((i, s) => {
1921
1923
  (e || qt)(q(v({}, t), {
1922
1924
  onSuccess(n) {
1923
1925
  let o = (l) => l;
1924
- const a = X(t.parse);
1926
+ const a = x(t.parse);
1925
1927
  h.Function(a) ? o = a : a && h.String(a) && (o = (l) => B(l, a)), i(o(n, void 0, r));
1926
1928
  },
1927
1929
  onError(n) {
@@ -2308,7 +2310,7 @@ function Yr(t) {
2308
2310
  getGlobalEvent(n) {
2309
2311
  let o = s.options.globalEvent[n];
2310
2312
  if (o)
2311
- return typeof o == "object" && (o = o.handle), X(o);
2313
+ return typeof o == "object" && (o = o.handle), x(o);
2312
2314
  },
2313
2315
  getGlobalData(n) {
2314
2316
  return new Promise((o, a) => {
@@ -2318,6 +2320,12 @@ function Yr(t) {
2318
2320
  }).catch(a) : o(l.data) : o(t.fc.loadData[n]);
2319
2321
  });
2320
2322
  },
2323
+ setGlobalData(n, o) {
2324
+ s.setData("$globalData." + n, o);
2325
+ },
2326
+ setGlobalVar(n, o) {
2327
+ s.setData("$var." + n, o);
2328
+ },
2321
2329
  renderRule(n, o, a) {
2322
2330
  const u = typeof n == "object" ? Y(n) : t.getCtx(n);
2323
2331
  return u ? t.$render.createRuleVnode(u, o, a) : void 0;
@@ -2341,7 +2349,7 @@ function Yr(t) {
2341
2349
  bus: t.bus,
2342
2350
  fetch(n) {
2343
2351
  return new Promise((o, a) => {
2344
- 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) => {
2345
2353
  O(() => n.onSuccess && n.onSuccess(l)), o(l);
2346
2354
  }).catch((l) => {
2347
2355
  O(() => n.onError && n.onError(l)), a(l);
@@ -2352,7 +2360,7 @@ function Yr(t) {
2352
2360
  watchFetch(n, o, a, l) {
2353
2361
  return t.fc.watchLoadData((u, f) => {
2354
2362
  let p = K(n);
2355
- 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) => {
2356
2364
  O(() => p.onSuccess && p.onSuccess(d)), o && o(d, f);
2357
2365
  }).catch((d) => {
2358
2366
  O(() => p.onError && p.onError(d)), a && a(d);
@@ -2516,13 +2524,13 @@ function ti(t) {
2516
2524
  }, (() => {
2517
2525
  if (h.Function(n.renderSlots[y]))
2518
2526
  return O(() => n.renderSlots[y]());
2519
- const w = this.parseSide(n.renderSlots[y], e);
2520
- return this.renderRule(w);
2527
+ const C = this.parseSide(n.renderSlots[y], e);
2528
+ return this.renderRule(C);
2521
2529
  })()));
2522
2530
  });
2523
2531
  const d = this.getTypeSlot(e);
2524
- let g;
2525
- return d ? (u.children = f, g = d(u)) : g = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), g = this.renderSides(g, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), g = this.$manager.makeWrap(e, g)), e.none && (Array.isArray(g) ? g = g.map((y) => !y || !y.tag ? y : this.none(y)) : g = this.none(g)), o && this.setCache(e, () => this.stable(g), r), g;
2532
+ let 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;
2526
2534
  }, this.setCache(e, s, r);
2527
2535
  }
2528
2536
  return (...s) => {
@@ -2572,6 +2580,7 @@ function ti(t) {
2572
2580
  },
2573
2581
  getSubForm: () => this.$handle.subForm[e.id],
2574
2582
  slots: () => this.vm.top.$scopedSlots,
2583
+ getWrap: () => this.vm.$refs[e.wrapRef],
2575
2584
  options: [],
2576
2585
  children: [],
2577
2586
  preview: !1,
@@ -2710,7 +2719,7 @@ function ti(t) {
2710
2719
  });
2711
2720
  }
2712
2721
  let ri = 1;
2713
- function it(t) {
2722
+ function rt(t) {
2714
2723
  _(this, {
2715
2724
  $handle: t,
2716
2725
  fc: t.fc,
@@ -2729,8 +2738,8 @@ function it(t) {
2729
2738
  }
2730
2739
  }), this.initCache(), this.initRender();
2731
2740
  }
2732
- ei(it);
2733
- ti(it);
2741
+ ei(rt);
2742
+ ti(rt);
2734
2743
  function ii(t) {
2735
2744
  _(t.prototype, {
2736
2745
  parseInjectEvent(e, r) {
@@ -2749,7 +2758,7 @@ function ii(t) {
2749
2758
  if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2750
2759
  return this.parseEventLst(e, r, i, !0);
2751
2760
  if (h.String(r)) {
2752
- const n = X(r);
2761
+ const n = x(r);
2753
2762
  if (n && r !== n)
2754
2763
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2755
2764
  }
@@ -2761,14 +2770,14 @@ function ii(t) {
2761
2770
  let p, d = n || o || a;
2762
2771
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2763
2772
  r || (d = `native-${d}`);
2764
- const g = ve(`${d}-${f}`), y = (...w) => {
2765
- this.vm.$emit(g, ...w), this.vm.$emit("emit-event", g, ...w), this.bus.$emit(g, ...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);
2766
2775
  };
2767
2776
  if (y.__emit = !0, !p && l === !1)
2768
2777
  i[f] = y;
2769
2778
  else {
2770
- let w = p || l || this.options.injectEvent;
2771
- 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);
2772
2781
  }
2773
2782
  }
2774
2783
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2814,16 +2823,16 @@ function ii(t) {
2814
2823
  d.key ? f.push(d.key) : d.children && f.push(a(d.children));
2815
2824
  });
2816
2825
  let p = !1;
2817
- return f.forEach((d, g) => {
2818
- d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[g] = d.slice(1, -1), p = !0);
2826
+ return f.forEach((d, m) => {
2827
+ d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[m] = d.slice(1, -1), p = !0);
2819
2828
  }), f.length === 1 && (p || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2820
2829
  };
2821
2830
  let l;
2822
2831
  if (n.forEach((u) => {
2823
2832
  const f = u.split("||"), p = f[0].trim();
2824
2833
  if (p) {
2825
- const d = (f[1] || "").trim(), g = Bt(p);
2826
- let y = O(() => a(g));
2834
+ const d = (f[1] || "").trim(), m = Bt(p);
2835
+ let y = O(() => a(m));
2827
2836
  (y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2828
2837
  }
2829
2838
  }), n.length === 1 && s === `{{${n[0]}}}`)
@@ -2846,7 +2855,7 @@ function ii(t) {
2846
2855
  }
2847
2856
  });
2848
2857
  }
2849
- const $t = ["hook:updated", "hook:mounted"];
2858
+ const yt = ["hook:updated", "hook:mounted"];
2850
2859
  function ni(t) {
2851
2860
  _(t.prototype, {
2852
2861
  usePage() {
@@ -2861,9 +2870,9 @@ function ni(t) {
2861
2870
  },
2862
2871
  pageLoad() {
2863
2872
  const e = () => {
2864
- 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());
2865
2874
  };
2866
- this.vm.$on($t, e);
2875
+ this.vm.$on(yt, e);
2867
2876
  }
2868
2877
  });
2869
2878
  }
@@ -2887,13 +2896,13 @@ function oi(t) {
2887
2896
  }
2888
2897
  function ai(t) {
2889
2898
  Object.defineProperties(t.origin, {
2890
- __fc__: Xe(ye(t), !0)
2899
+ __fc__: ze(ye(t), !0)
2891
2900
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2892
- __fc__: Xe(ye(t), !0)
2901
+ __fc__: ze(ye(t), !0)
2893
2902
  });
2894
2903
  }
2895
2904
  function Ht(t, e, r) {
2896
- const i = Ie(), s = !!e.field;
2905
+ const i = Ve(), s = !!e.field;
2897
2906
  _(this, {
2898
2907
  id: i,
2899
2908
  ref: i,
@@ -2992,7 +3001,7 @@ _(Ht.prototype, {
2992
3001
  t === void 0 ? this.payload = {} : delete this.payload[t];
2993
3002
  },
2994
3003
  updateKey(t) {
2995
- this.key = Ie(), t && this.parent && this.parent.updateKey(t);
3004
+ this.key = Ve(), t && this.parent && this.parent.updateKey(t);
2996
3005
  },
2997
3006
  updateType() {
2998
3007
  this.originType = this.rule.type, this.type = J(this.rule.type), this.trueType = this.$handle.getType(this.originType);
@@ -3081,12 +3090,12 @@ function li(t) {
3081
3090
  });
3082
3091
  },
3083
3092
  parseRule(e) {
3084
- const r = ht(e);
3093
+ const r = ct(e);
3085
3094
  return Object.defineProperties(r, {
3086
- __origin__: Xe(e, !0)
3095
+ __origin__: ze(e, !0)
3087
3096
  }), ui(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3088
3097
  i && this.loadFn(i, r);
3089
- }), this.loadCtrl(r), r.update && (r.update = X(r.update)), r;
3098
+ }), this.loadCtrl(r), r.update && (r.update = x(r.update)), r;
3090
3099
  },
3091
3100
  loadFn(e, r) {
3092
3101
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -3095,7 +3104,7 @@ function li(t) {
3095
3104
  },
3096
3105
  loadCtrl(e) {
3097
3106
  e.control && e.control.forEach((r) => {
3098
- r.handle && (r.handle = X(r.handle));
3107
+ r.handle && (r.handle = x(r.handle));
3099
3108
  });
3100
3109
  },
3101
3110
  syncProp(e) {
@@ -3131,17 +3140,17 @@ function li(t) {
3131
3140
  if (r && !h.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3132
3141
  if (o.__fc__ && o.__fc__.root === e && this.ctxs[o.__fc__.id])
3133
3142
  return s(o.__fc__.loadChildrenPending(), o.__fc__), o.__fc__;
3134
- let l = ht(o);
3143
+ let l = ct(o);
3135
3144
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3136
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);
3137
- let f, p = !1, d = !!o.__fc__, g = l.value;
3146
+ let f, p = !1, d = !!o.__fc__, m = l.value;
3138
3147
  if (d) {
3139
- if (f = o.__fc__, g = f.defaultValue, f.deleted) {
3140
- if (bt(f))
3148
+ if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3149
+ if ($t(f))
3141
3150
  return;
3142
3151
  f.update(this);
3143
3152
  } else if (!f.check(this)) {
3144
- if (bt(f))
3153
+ if ($t(f))
3145
3154
  return;
3146
3155
  e[a] = o = o._clone ? o._clone() : Vt(Ce(o)), f = null, p = !0;
3147
3156
  }
@@ -3150,7 +3159,7 @@ function li(t) {
3150
3159
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3151
3160
  else {
3152
3161
  const F = this.parseRule(o);
3153
- f = new Ht(this, F, g), this.bindParser(f);
3162
+ f = new Ht(this, F, m), this.bindParser(f);
3154
3163
  }
3155
3164
  [!1, !0].forEach((F) => this.parseEmit(f, F)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !p && !d && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3156
3165
  const y = f.loadChildrenPending();
@@ -3158,9 +3167,9 @@ function li(t) {
3158
3167
  const F = i(a);
3159
3168
  F > -1 || !a ? this.sort.splice(F + 1, 0, f.id) : this.sort.push(f.id);
3160
3169
  }
3161
- const w = f.rule;
3162
- return f.updated || (f.updated = !0, h.Function(w.update) && this.bus.$once("load-end", () => {
3163
- 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");
3164
3173
  }), this.effect(f, "loaded")), this.refreshControl(f) && (this.cycleLoad = !0), f;
3165
3174
  }).filter((o) => !!o);
3166
3175
  r && (r.children = n);
@@ -3187,34 +3196,34 @@ function li(t) {
3187
3196
  const n = [];
3188
3197
  let o = !1;
3189
3198
  return this.deferSyncValue(() => {
3190
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: g, method: y }) => {
3199
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: m, method: y }) => {
3191
3200
  if (a) {
3192
3201
  l ? e.ctrlRule.push({
3193
3202
  __ctrl: !0,
3194
3203
  children: u,
3195
3204
  valid: l
3196
- }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3197
- y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((w) => {
3198
- this.api.setEffect(w, "required", l);
3205
+ }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
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);
3199
3208
  }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3200
3209
  });
3201
3210
  return;
3202
3211
  }
3203
3212
  if (l) {
3204
3213
  o = !0;
3205
- const w = {
3214
+ const C = {
3206
3215
  type: "fragment",
3207
3216
  native: !0,
3208
3217
  __ctrl: !0,
3209
3218
  children: u
3210
3219
  };
3211
- e.ctrlRule.push(w), this.bus.$once("load-start", () => {
3212
- 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);
3213
3222
  });
3214
3223
  } else {
3215
- e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3216
- const w = Y(g);
3217
- w && w.rm();
3224
+ e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3225
+ const C = Y(m);
3226
+ C && C.rm();
3218
3227
  }
3219
3228
  });
3220
3229
  }), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
@@ -3258,7 +3267,7 @@ function ci(t, e) {
3258
3267
  return i;
3259
3268
  }
3260
3269
  }
3261
- function bt(t) {
3270
+ function $t(t) {
3262
3271
  return !!t.rule.__ctrl;
3263
3272
  }
3264
3273
  function hi(t) {
@@ -3274,7 +3283,7 @@ function hi(t) {
3274
3283
  this.api.clearValidateState(e.id);
3275
3284
  });
3276
3285
  });
3277
- }));
3286
+ }), this.$manager.fieldChange(e, r, i, s));
3278
3287
  },
3279
3288
  onInput(e, r) {
3280
3289
  let i;
@@ -3305,9 +3314,9 @@ function hi(t) {
3305
3314
  },
3306
3315
  syncForm() {
3307
3316
  const e = {}, r = this.fields(), i = [];
3308
- 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) => {
3309
3318
  let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
3310
- 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;
3311
3320
  }, e), this.form = ne(e), this.ignoreFields = i, this.syncValue();
3312
3321
  },
3313
3322
  isIgnore(e) {
@@ -3331,7 +3340,7 @@ function hi(t) {
3331
3340
  }), this.vm.updateValue(e);
3332
3341
  },
3333
3342
  isChange(e, r) {
3334
- return JSON.stringify(this.getFormData(e), vt) !== JSON.stringify(r, vt);
3343
+ return JSON.stringify(this.getFormData(e), bt) !== JSON.stringify(r, bt);
3335
3344
  },
3336
3345
  isQuote(e, r) {
3337
3346
  return (r instanceof Function || h.Object(r) || Array.isArray(r)) && r === e.rule.value;
@@ -3364,10 +3373,10 @@ function hi(t) {
3364
3373
  }
3365
3374
  });
3366
3375
  }
3367
- function vt(t, e) {
3376
+ function bt(t, e) {
3368
3377
  return typeof e == "function" ? "" + e : e;
3369
3378
  }
3370
- const Ae = {
3379
+ const je = {
3371
3380
  init(t) {
3372
3381
  },
3373
3382
  toFormValue(t, e) {
@@ -3422,7 +3431,7 @@ function pi(t) {
3422
3431
  if (n)
3423
3432
  return n;
3424
3433
  }
3425
- 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;
3426
3435
  },
3427
3436
  bindParser(e) {
3428
3437
  e.setParser(this.getParser(e));
@@ -3436,7 +3445,7 @@ function pi(t) {
3436
3445
  },
3437
3446
  watchCtx(e) {
3438
3447
  if (Dt().filter((i) => i[0] !== "_" && i[0] !== "$" && di.indexOf(i) === -1).forEach((i) => {
3439
- const s = Ve(e.rule, i), n = i === "children";
3448
+ const s = Ae(e.rule, i), n = i === "children";
3440
3449
  e.refRule[i] = s, e.watch.push(L(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3441
3450
  let l = s.value;
3442
3451
  if (!this.isBreakWatch()) {
@@ -3503,7 +3512,7 @@ function pi(t) {
3503
3512
  return n;
3504
3513
  });
3505
3514
  }), e.input) {
3506
- const i = Ve(e.rule, "value");
3515
+ const i = Ae(e.rule, "value");
3507
3516
  e.watch.push(L(() => i.value, () => {
3508
3517
  let s = e.parser.toFormValue(i.value, e);
3509
3518
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3651,15 +3660,15 @@ function pi(t) {
3651
3660
  let u = !0;
3652
3661
  for (let f = 0; f < a.group.length; f++) {
3653
3662
  const p = a.group[f];
3654
- let d, g = null;
3663
+ let d, m = null;
3655
3664
  if (p.variable)
3656
- g = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3665
+ m = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3657
3666
  else if (p.field)
3658
- g = pt(p.field || "");
3667
+ m = dt(p.field || "");
3659
3668
  else if (!p.mode)
3660
3669
  return !0;
3661
3670
  let y = p.compare;
3662
- if (y && (y = pt(y || "")), p.mode ? d = n(p) : ce[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${g}, ${y || "$val"}); }}}}`).call(this.api.form, ce, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
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)
3663
3672
  return !0;
3664
3673
  l || (u = u && d);
3665
3674
  }
@@ -3731,19 +3740,19 @@ function mi(t) {
3731
3740
  emitEvent(e, ...r) {
3732
3741
  const i = this.options[e] || this.options[J("on-" + e)];
3733
3742
  if (i) {
3734
- const s = X(i);
3743
+ const s = x(i);
3735
3744
  h.Function(s) && O(() => s(...r));
3736
3745
  }
3737
3746
  this.bus.$emit(e, ...r);
3738
3747
  },
3739
3748
  targetHook(e, r, i) {
3740
3749
  var l, u, f, p;
3741
- let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, g) => {
3750
+ let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, m) => {
3742
3751
  d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
3743
3752
  O(() => y(q(v({}, i || {}), {
3744
3753
  self: e.rule,
3745
3754
  rule: e.rule,
3746
- parent: g == null ? void 0 : g.rule,
3755
+ parent: m == null ? void 0 : m.rule,
3747
3756
  $f: this.api,
3748
3757
  api: this.api,
3749
3758
  option: this.vm.$props.option
@@ -3830,7 +3839,7 @@ function gi(t) {
3830
3839
  else
3831
3840
  return;
3832
3841
  const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3833
- e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (g) => te(d.getProp(), [g]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3842
+ e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (m) => te(d.getProp(), [m]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3834
3843
  });
3835
3844
  }
3836
3845
  });
@@ -3847,7 +3856,7 @@ function $i(t) {
3847
3856
  return r.length ? r : !1;
3848
3857
  } else return h.String(e) ? [e] : !1;
3849
3858
  }
3850
- function x(t) {
3859
+ function X(t) {
3851
3860
  Tt(this, {
3852
3861
  options() {
3853
3862
  return t.options.value || {};
@@ -3882,12 +3891,12 @@ function x(t) {
3882
3891
  nextReload: () => {
3883
3892
  this.lifecycle("reload");
3884
3893
  }
3885
- }), 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) => {
3886
3895
  const i = O(() => r(e, this));
3887
3896
  return i && i !== e && _(e, i), e;
3888
3897
  }, Yr(this));
3889
3898
  }
3890
- _(x.prototype, {
3899
+ _(X.prototype, {
3891
3900
  initData(t) {
3892
3901
  _(this, {
3893
3902
  ctxs: {},
@@ -3925,15 +3934,15 @@ _(x.prototype, {
3925
3934
  });
3926
3935
  }
3927
3936
  });
3928
- ii(x);
3929
- ni(x);
3930
- oi(x);
3931
- li(x);
3932
- hi(x);
3933
- pi(x);
3934
- mi(x);
3935
- gi(x);
3936
- const bi = "fcFragment", Ne = {
3937
+ ii(X);
3938
+ ni(X);
3939
+ oi(X);
3940
+ li(X);
3941
+ hi(X);
3942
+ pi(X);
3943
+ mi(X);
3944
+ gi(X);
3945
+ const bi = "fcFragment", Le = {
3937
3946
  name: bi,
3938
3947
  functional: !0,
3939
3948
  props: ["vnode"],
@@ -4007,7 +4016,7 @@ _(Gt.prototype, {
4007
4016
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
4008
4017
  },
4009
4018
  updateKey() {
4010
- this.key = Ie();
4019
+ this.key = Ve();
4011
4020
  },
4012
4021
  //TODO interface
4013
4022
  init() {
@@ -4047,6 +4056,8 @@ _(Gt.prototype, {
4047
4056
  getDefaultOptions() {
4048
4057
  return {};
4049
4058
  },
4059
+ fieldChange(t, e, r, i) {
4060
+ },
4050
4061
  render(t) {
4051
4062
  }
4052
4063
  });
@@ -4063,10 +4074,10 @@ const wi = function(t) {
4063
4074
  let l = (p) => {
4064
4075
  let d;
4065
4076
  i && i.__fc__ && (d = i.__fc__.getParentGroup());
4066
- let g;
4067
- a.template ? g = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? g = a.handler(p, i, s) : g = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (g == null || g === "") && a.default != null && (g = a.default), a.copy !== !1 && (g = K(g));
4077
+ let m;
4078
+ a.template ? m = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? m = a.handler(p, i, s) : m = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (m == null || m === "") && a.default != null && (m = a.default), a.copy !== !1 && (m = K(m));
4068
4079
  const y = a.modify ? i : r.getProp();
4069
- a.to === "child" ? y.children ? k(y.children, 0, g) : k(y, "children", [g]) : oe(y, a.to || "options", g), s.sync(i);
4080
+ a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : oe(y, a.to || "options", m), s.sync(i);
4070
4081
  }, u = (p) => l(p);
4071
4082
  const f = t.watchLoadData(u);
4072
4083
  l = se(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
@@ -4093,11 +4104,11 @@ const wi = function(t) {
4093
4104
  const l = n[a];
4094
4105
  if (l) {
4095
4106
  const u = typeof l == "object";
4096
- let f = (g) => {
4097
- let y = t.t(u ? l.attr : l, u ? l.params : null, g);
4098
- const w = u && l.modify ? i : r.getProp();
4099
- a === "child" ? w.children ? k(w.children, 0, y) : k(w, "children", [y]) : oe(w, a, y), s.sync(i);
4100
- }, p = (g) => f(g);
4107
+ let f = (m) => {
4108
+ let y = t.t(u ? l.attr : l, u ? l.params : null, m);
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);
4111
+ }, p = (m) => f(m);
4101
4112
  const d = t.watchLoadData(p);
4102
4113
  f = se(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4103
4114
  }
@@ -4118,18 +4129,18 @@ const wi = function(t) {
4118
4129
  t.clearProp(), r.clearValidateState([e.field]);
4119
4130
  else {
4120
4131
  h.Object(i) || (i = { method: i });
4121
- const s = i.method;
4122
- delete i.method, t.getProp().validate = [q(v({}, i), {
4123
- validator(...n) {
4124
- const o = Y(e);
4125
- if (o)
4126
- return r.exec(o.id, h.String(s) ? s : "formCreateValidate", ...n, {
4132
+ const s = i.method, n = q(v({}, i), {
4133
+ validator(...o) {
4134
+ const a = Y(e);
4135
+ if (a)
4136
+ return r.exec(a.id, h.String(s) ? s : "formCreateValidate", ...o, {
4127
4137
  attr: t,
4128
4138
  rule: e,
4129
4139
  api: r
4130
4140
  });
4131
4141
  }
4132
- })];
4142
+ });
4143
+ delete n.method, t.getProp().validate = [n];
4133
4144
  }
4134
4145
  },
4135
4146
  watch(...t) {
@@ -4171,30 +4182,30 @@ const wi = function(t) {
4171
4182
  i._fn[s.id] = t.watchLoadData(se((p, d) => {
4172
4183
  if (d && a.watch === !1)
4173
4184
  return i._fn[s.id]();
4174
- const g = t.$handle.loadFetchVar(K(a), p, n), y = q(v({
4185
+ const m = t.$handle.loadFetchVar(K(a), p, n), y = q(v({
4175
4186
  headers: {}
4176
- }, g), {
4177
- onSuccess(w, F) {
4187
+ }, m), {
4188
+ onSuccess(C, F) {
4178
4189
  if (f()) return;
4179
4190
  let G = (N) => F ? N : D(N, "data") ? N.data : N;
4180
- const V = X(g.parse);
4181
- h.Function(V) ? G = V : V && h.String(V) && (G = (N) => B(N, V)), l(G(w, n, o));
4191
+ const V = x(m.parse);
4192
+ h.Function(V) ? G = V : V && h.String(V) && (G = (N) => B(N, V)), l(G(C, n, o));
4182
4193
  },
4183
- onError(w) {
4184
- l(void 0), !f() && (u || ((F) => tt(F.message || "fetch fail " + g.action)))(w, n, o);
4194
+ onError(C) {
4195
+ l(void 0), !f() && (u || ((F) => et(F.message || "fetch fail " + m.action)))(C, n, o);
4185
4196
  }
4186
4197
  });
4187
4198
  t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4188
- if (h.Function(g.action)) {
4189
- g.action(n, o).then((w) => {
4190
- y.onSuccess(w, !0);
4191
- }).catch((w) => {
4192
- y.onError(w);
4199
+ if (h.Function(m.action)) {
4200
+ m.action(n, o).then((C) => {
4201
+ y.onSuccess(C, !0);
4202
+ }).catch((C) => {
4203
+ y.onError(C);
4193
4204
  });
4194
4205
  return;
4195
4206
  }
4196
4207
  O(() => t.create.fetch(y, { inject: s, rule: n, api: o }));
4197
- }).catch((w) => {
4208
+ }).catch((C) => {
4198
4209
  });
4199
4210
  }, a.wait || 600));
4200
4211
  }
@@ -4290,7 +4301,7 @@ function Ai(t) {
4290
4301
  }
4291
4302
  return null;
4292
4303
  }
4293
- function nt(t, e) {
4304
+ function it(t, e) {
4294
4305
  if (!e)
4295
4306
  return null;
4296
4307
  const r = e.split(".");
@@ -4298,13 +4309,13 @@ function nt(t, e) {
4298
4309
  return r.length ? i == null ? null : B(i, r) : i;
4299
4310
  }
4300
4311
  function Vi(t) {
4301
- return nt(Di, t);
4312
+ return it(Di, t);
4302
4313
  }
4303
4314
  function Ii(t) {
4304
- return nt(ji, t);
4315
+ return it(ji, t);
4305
4316
  }
4306
4317
  function Pi(t) {
4307
- return nt(Ai, t);
4318
+ return it(Ai, t);
4308
4319
  }
4309
4320
  const Ti = {
4310
4321
  en: {
@@ -4360,7 +4371,7 @@ function Bi(t, e) {
4360
4371
  let r;
4361
4372
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4362
4373
  }
4363
- function Me() {
4374
+ function Ne() {
4364
4375
  return Bi("name", ...arguments);
4365
4376
  }
4366
4377
  function Li(t) {
@@ -4379,79 +4390,79 @@ function Ni(t, e) {
4379
4390
  }
4380
4391
  function Mi(t) {
4381
4392
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4382
- 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]);
4383
4394
  }
4384
4395
  let qi = 1;
4385
- const U = {}, De = Symbol("defValue");
4396
+ const U = {}, vt = Symbol("defValue");
4386
4397
  function Kt(t) {
4387
4398
  const e = {
4388
- [Ne.name]: Ne
4399
+ [Le.name]: Le
4389
4400
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4390
4401
  t.extendApi
4391
4402
  ], u = v({}, ki), f = Zr();
4392
4403
  let p = { global: {} };
4393
- const d = t.isMobile === !0, g = ne({
4404
+ const d = t.isMobile === !0, m = ne({
4394
4405
  $mobile: d
4395
- }), y = _i(), w = {}, F = {};
4406
+ }), y = _i(), C = {}, F = {};
4396
4407
  Mi(t.attrs || {});
4397
4408
  function G(c) {
4398
- const m = U[c];
4399
- if (Array.isArray(m))
4400
- return m.map(($) => $.api());
4401
- if (m)
4402
- return m.api();
4409
+ const g = U[c];
4410
+ if (Array.isArray(g))
4411
+ return g.map(($) => $.api());
4412
+ if (g)
4413
+ return g.api();
4403
4414
  }
4404
4415
  function V(c) {
4405
4416
  o.push(c);
4406
4417
  }
4407
4418
  function N() {
4408
- const c = Me(...arguments);
4419
+ const c = Ne(...arguments);
4409
4420
  c.id && c.prop && (i[c.id] = c.prop);
4410
4421
  }
4411
4422
  function de() {
4412
- const c = Me(...arguments);
4423
+ const c = Ne(...arguments);
4413
4424
  c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(v({}, c.prop), {
4414
4425
  name: c.id
4415
4426
  }));
4416
4427
  }
4417
- function Pe(c) {
4428
+ function Ie(c) {
4418
4429
  y.use(c);
4419
4430
  }
4420
4431
  function pe() {
4421
- const c = Me(...arguments);
4422
- if (!c.id || !c.prop) return Ae;
4423
- const m = J(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4424
- r[m] = Se($, b || Ae), f[m] = T(m), $.maker && _(f, $.maker);
4432
+ const c = Ne(...arguments);
4433
+ if (!c.id || !c.prop) return je;
4434
+ const g = J(c.id), $ = c.prop, b = $.merge === !0 ? r[g] : void 0;
4435
+ r[g] = Se($, b || je), f[g] = T(g), $.maker && _(f, $.maker);
4425
4436
  }
4426
- function E(c, m) {
4437
+ function E(c, g) {
4427
4438
  let $;
4428
4439
  if (h.String(c)) {
4429
- if ($ = c, m === void 0)
4440
+ if ($ = c, g === void 0)
4430
4441
  return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
4431
4442
  } else
4432
- $ = J(c.name), m = c;
4433
- if (!$ || !m) return;
4443
+ $ = J(c.name), g = c;
4444
+ if (!$ || !g) return;
4434
4445
  const b = J($);
4435
- e[$] = m, e[b] = m, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && pe($, m.formCreateParser);
4446
+ e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && pe($, g.formCreateParser);
4436
4447
  }
4437
4448
  function R() {
4438
- return Xr(Be, e, i);
4449
+ return xr(Te, e, i);
4439
4450
  }
4440
4451
  function M() {
4441
- return Ne;
4452
+ return Le;
4442
4453
  }
4443
- function me(c, m) {
4444
- return h.Function(c.install) ? c.install(W, m) : h.Function(c) && c(W, m), this;
4454
+ function me(c, g) {
4455
+ return h.Function(c.install) ? c.install(W, g) : h.Function(c) && c(W, g), this;
4445
4456
  }
4446
- function W(c, m, $) {
4447
- let b = Ni(c, m || {});
4448
- const C = b.$refs.fc.formCreate;
4449
- return C.$parent = $, Li(C.options).appendChild(b.$el), C.api();
4457
+ function W(c, g, $) {
4458
+ let b = Ni(c, g || {});
4459
+ const w = b.$refs.fc.formCreate;
4460
+ return w.$parent = $, Li(w.options).appendChild(b.$el), w.api();
4450
4461
  }
4451
4462
  Se(W, F);
4452
4463
  function zt(c) {
4453
- let m = v({}, t);
4454
- return c ? m.inherit = {
4464
+ let g = v({}, t);
4465
+ return c ? g.inherit = {
4455
4466
  components: e,
4456
4467
  parsers: r,
4457
4468
  directives: i,
@@ -4459,56 +4470,56 @@ function Kt(t) {
4459
4470
  providers: u,
4460
4471
  useApps: o,
4461
4472
  maker: f,
4462
- formulas: w,
4463
- loadData: g
4464
- } : delete m.inherit, Kt(m);
4473
+ formulas: C,
4474
+ loadData: m
4475
+ } : delete g.inherit, Kt(g);
4465
4476
  }
4466
- function Xt(c, m) {
4467
- s[c] = m;
4477
+ function xt(c, g) {
4478
+ s[c] = g;
4468
4479
  }
4469
- function xt(c, m) {
4470
- w[c] = m;
4480
+ function Xt(c, g) {
4481
+ C[c] = g;
4471
4482
  }
4472
- function Zt(c, m) {
4483
+ function Zt(c, g) {
4473
4484
  const $ = n[c] || {}, b = $.parsers || {};
4474
- m.parsers && Object.keys(m.parsers).forEach((C) => {
4475
- b[C] = Se(m.parsers[C], Ae);
4476
- }), m.name = c, n[c] = q(v(v({}, $), m), { parsers: b });
4485
+ g.parsers && Object.keys(g.parsers).forEach((w) => {
4486
+ b[w] = Se(g.parsers[w], je);
4487
+ }), g.name = c, n[c] = q(v(v({}, $), g), { parsers: b });
4477
4488
  }
4478
4489
  function Oe(c) {
4479
- c && Object.keys(U).forEach((m) => {
4480
- (Array.isArray(U[m]) ? U[m] : [U[m]]).forEach((b) => {
4490
+ c && Object.keys(U).forEach((g) => {
4491
+ (Array.isArray(U[g]) ? U[g] : [U[g]]).forEach((b) => {
4481
4492
  b.bus.$emit("$loadData." + c);
4482
4493
  });
4483
4494
  });
4484
4495
  }
4485
- function Te(c, m) {
4486
- oe(g, c, m), Oe(c);
4496
+ function Pe(c, g) {
4497
+ oe(m, c, g), Oe(c);
4487
4498
  }
4488
- function Fe(c, m) {
4489
- const $ = (...b) => O(() => m(...b));
4490
- $._driver = !0, Te(c, $);
4499
+ function Fe(c, g) {
4500
+ const $ = (...b) => O(() => g(...b));
4501
+ $._driver = !0, Pe(c, $);
4491
4502
  }
4492
- function st(c, m) {
4503
+ function nt(c, g) {
4493
4504
  const $ = (c || "").split(".");
4494
4505
  c = $.shift();
4495
4506
  const b = $.join(".");
4496
- if (D(g, c) || k(g, c, De), g[c] !== De) {
4497
- let C = g[c];
4498
- return C && C._driver ? C = C(b) : $.length && (C = B(C, $)), C == null || C === "" ? m : 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;
4499
4510
  } else
4500
- return m;
4511
+ return g;
4501
4512
  }
4502
4513
  function Qt(c) {
4503
4514
  l.push(c);
4504
4515
  }
4505
4516
  function Yt(c) {
4506
- delete g[c], Oe(c);
4517
+ delete m[c], Oe(c);
4507
4518
  }
4508
- function er(c, m) {
4509
- a.push({ name: c, callback: m });
4519
+ function er(c, g) {
4520
+ a.push({ name: c, callback: g });
4510
4521
  }
4511
- function Be(c) {
4522
+ function Te(c) {
4512
4523
  _(this, {
4513
4524
  id: qi++,
4514
4525
  create: W,
@@ -4517,10 +4528,10 @@ function Kt(t) {
4517
4528
  parsers: r,
4518
4529
  providers: u,
4519
4530
  modelFields: s,
4520
- formulas: w,
4531
+ formulas: C,
4521
4532
  isMobile: d,
4522
4533
  rules: c.$options.propsData.rule,
4523
- name: c.$options.propsData.name || Ie(),
4534
+ name: c.$options.propsData.name || Ve(),
4524
4535
  inFor: c.$options.propsData.inFor,
4525
4536
  prop: {
4526
4537
  components: e,
@@ -4530,7 +4541,7 @@ function Kt(t) {
4530
4541
  drivers: n,
4531
4542
  renderDriver: null,
4532
4543
  refreshData: Oe,
4533
- loadData: g,
4544
+ loadData: m,
4534
4545
  CreateNode: y,
4535
4546
  bus: new Ei(),
4536
4547
  unwatch: [],
@@ -4538,43 +4549,43 @@ function Kt(t) {
4538
4549
  extendApiFn: l,
4539
4550
  fetchCache: /* @__PURE__ */ new WeakMap(),
4540
4551
  tmpData: ne({})
4541
- }), a.forEach((m) => {
4542
- this.bus.$on(m.name, m.callback);
4552
+ }), a.forEach((g) => {
4553
+ this.bus.$on(g.name, g.callback);
4543
4554
  }), P(() => {
4544
4555
  L(this.options, () => {
4545
4556
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4546
4557
  }, { deep: !0 });
4547
- }), _(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);
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);
4548
4559
  }
4549
- Be.isMobile = d, _(Be.prototype, {
4560
+ Te.isMobile = d, _(Te.prototype, {
4550
4561
  init() {
4551
4562
  this.isSub() && this.unwatch.push(L(() => this.vm.parent.fc.options.value, () => {
4552
4563
  this.initOptions(), this.$handle.api.refresh();
4553
4564
  }, { deep: !0 })), this.vm.$options.propsData.driver && (this.renderDriver = typeof this.vm.$options.propsData.driver == "object" ? this.vm.$options.propsData.driver : this.drivers[this.vm.$options.propsData.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.fc.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4554
4565
  },
4555
- targetFormDriver(c, ...m) {
4566
+ targetFormDriver(c, ...g) {
4556
4567
  if (this.renderDriver && this.renderDriver[c])
4557
- return O(() => this.renderDriver[c](...m));
4568
+ return O(() => this.renderDriver[c](...g));
4558
4569
  },
4559
- t(c, m, $) {
4570
+ t(c, g, $) {
4560
4571
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4561
- return b == null && (b = ""), b && m && Object.keys(m).forEach((C) => {
4562
- const j = new RegExp(`{${C}}`, "g");
4563
- b = b.replace(j, m[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]);
4564
4575
  }), b;
4565
4576
  },
4566
4577
  globalDataDriver(c) {
4567
- let m = c.split(".");
4568
- const $ = m.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4578
+ let g = c.split(".");
4579
+ const $ = g.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4569
4580
  if (b) {
4570
4581
  if (b.type === "static")
4571
- return B(b.data, m);
4582
+ return B(b.data, g);
4572
4583
  {
4573
- let C;
4584
+ let w;
4574
4585
  const j = this.fetchCache.get(b);
4575
4586
  if (j) {
4576
- if (j.status && (C = B(j.data, m)), !j.loading)
4577
- return C;
4587
+ if (j.status && (w = B(j.data, g)), !j.loading)
4588
+ return w;
4578
4589
  j.loading = !1, this.fetchCache.set(b, j);
4579
4590
  } else
4580
4591
  this.fetchCache.set(b, { status: !1 });
@@ -4591,14 +4602,14 @@ function Kt(t) {
4591
4602
  S();
4592
4603
  return;
4593
4604
  }
4594
- const ge = this.$handle.loadFetchVar(Ke(b), z);
4605
+ const ge = this.$handle.loadFetchVar(Je(b), z);
4595
4606
  this.$handle.api.fetch(ge).then((re) => {
4596
4607
  ae(re);
4597
4608
  }).catch((re) => {
4598
4609
  ae(null);
4599
4610
  });
4600
4611
  }, le = this.watchLoadData(Z);
4601
- return this.unwatch.push(le), C;
4612
+ return this.unwatch.push(le), w;
4602
4613
  }
4603
4614
  }
4604
4615
  },
@@ -4607,70 +4618,69 @@ function Kt(t) {
4607
4618
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4608
4619
  },
4609
4620
  globalLanguageDriver(c) {
4610
- let m = this.vm.top.$props.locale, $;
4611
- if (m && typeof m == "object" && ($ = B(m, c)), $ == null) {
4612
- const b = this.options.value.language || {}, C = this.getLocale();
4613
- $ = B(b[C] || {}, c), $ == null && ($ = B(Ti[C] || {}, c));
4621
+ let g = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4622
+ if (g && (b = O(() => g(c))), b == null && $ && typeof $ == "object" && (b = B($, c)), b == null) {
4623
+ const w = this.options.value.language || {}, j = this.getLocale();
4624
+ b = B(w[j] || {}, c), b == null && (b = B(Ti[j] || {}, c));
4614
4625
  }
4615
- return $;
4626
+ return b;
4616
4627
  },
4617
4628
  globalVarDriver(c) {
4618
- let m = c.split(".");
4619
- const $ = m.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4629
+ let g = c.split(".");
4630
+ const $ = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4620
4631
  if (b) {
4621
- const C = h.Function(b) ? b : X(b.handle);
4622
- if (C) {
4632
+ const w = h.Function(b) ? b : x(b.handle);
4633
+ if (w) {
4623
4634
  let j;
4624
4635
  const S = this.watchLoadData((ae, Z) => {
4625
- Z ? (this.bus.$emit("$loadData.$var." + $), S()) : j = C(ae, this.$handle.api);
4636
+ Z ? (this.bus.$emit("$loadData.$var." + $), S()) : j = w(ae, this.$handle.api);
4626
4637
  });
4627
- return this.unwatch.push(S), B(j, m);
4638
+ return this.unwatch.push(S), B(j, g);
4628
4639
  }
4629
4640
  }
4630
4641
  },
4631
- setData(c, m, $) {
4632
- $ ? Te(c, m) : (oe(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
4642
+ setData(c, g, $) {
4643
+ $ ? Pe(c, g) : (oe(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4633
4644
  },
4634
- getLoadData(c, m) {
4645
+ getLoadData(c, g) {
4635
4646
  let $ = null;
4636
4647
  if (c != null) {
4637
4648
  let b = c.split(".");
4638
- const C = b.shift();
4639
- if (C === "$topForm")
4649
+ const w = b.shift();
4650
+ if ($ = B(this.vm.top.fc.tmpData, c), $ != null)
4651
+ return $;
4652
+ if (w === "$topForm")
4640
4653
  $ = this.$handle.api.top.formData(!0);
4641
- else if (C === "$scopeForm")
4654
+ else if (w === "$scopeForm")
4642
4655
  $ = this.$handle.api.scope.formData(!0);
4643
- else if (C === "$form")
4656
+ else if (w === "$form")
4644
4657
  $ = this.$handle.api.formData(!0);
4645
- else if (C === "$options")
4658
+ else if (w === "$options")
4646
4659
  $ = this.options.value;
4647
- else if (C === "$globalData")
4660
+ else if (w === "$globalData")
4648
4661
  $ = this.globalDataDriver(b.join(".")), b = [];
4649
- else if (C === "$var")
4662
+ else if (w === "$var")
4650
4663
  $ = this.globalVarDriver(b.join(".")), b = [];
4651
- else if (C === "$locale")
4664
+ else if (w === "$locale")
4652
4665
  $ = this.getLocale(), b = [];
4653
- else if (C === "$t")
4666
+ else if (w === "$t")
4654
4667
  $ = this.globalLanguageDriver(b.join(".")), b = [];
4655
4668
  else {
4656
- if (C === "$preview")
4669
+ if (w === "$preview")
4657
4670
  return this.$handle.preview;
4658
- {
4659
- const j = this.vm.top.fc.tmpData;
4660
- D(j, C) || k(j, C, De), $ = j[C] !== De ? B(j, c) : st(c), b = [];
4661
- }
4671
+ $ = nt(c), b = [];
4662
4672
  }
4663
4673
  $ && b.length && ($ = B($, b));
4664
4674
  }
4665
- return $ == null || $ === "" ? m : $;
4675
+ return $ == null || $ === "" ? g : $;
4666
4676
  },
4667
- watchLoadData(c, m) {
4677
+ watchLoadData(c, g) {
4668
4678
  let $ = {};
4669
4679
  const b = (S) => {
4670
- this.get || (this.get = C), O(() => {
4671
- c(C, S);
4672
- }), this.get === C && (this.get = void 0);
4673
- }, C = (S, ae) => {
4680
+ this.get || (this.get = w), O(() => {
4681
+ c(w, S);
4682
+ }), this.get === w && (this.get = void 0);
4683
+ }, w = (S, ae) => {
4674
4684
  let Z;
4675
4685
  if (typeof S == "object" && (Z = S.getValue, S = S.id), $[S])
4676
4686
  return $[S].val;
@@ -4679,7 +4689,7 @@ function Kt(t) {
4679
4689
  if ($[S])
4680
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));
4681
4691
  else return;
4682
- }, m || 0), rr = L(le, (fe) => {
4692
+ }, g || 0), rr = L(le, (fe) => {
4683
4693
  re();
4684
4694
  });
4685
4695
  return this.bus.$on("$loadData." + ue, re), ge && this.bus.$on("$loadData." + ue + "." + ge, re), $[S] = {
@@ -4709,10 +4719,10 @@ function Kt(t) {
4709
4719
  }, K(p));
4710
4720
  this.isSub() && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$options.propsData.option || {}), this.updateOptions(c);
4711
4721
  },
4712
- mergeOptions(c, m, $) {
4713
- return m = v({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4714
- delete m[b];
4715
- }), m.global && (c.global = Kr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4722
+ mergeOptions(c, g, $) {
4723
+ return g = v({}, g || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4724
+ delete g[b];
4725
+ }), g.global && (c.global = Kr(c.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], c), c;
4716
4726
  },
4717
4727
  updateOptions(c) {
4718
4728
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4741,35 +4751,35 @@ function Kt(t) {
4741
4751
  this.$handle.bindNextTick(() => this.bus.$emit("next-tick", this.$handle.api));
4742
4752
  }
4743
4753
  });
4744
- function ot(c) {
4754
+ function st(c) {
4745
4755
  _(c, {
4746
4756
  version: t.version,
4747
4757
  ui: t.ui,
4748
4758
  isMobile: d,
4749
4759
  extendApi: Qt,
4750
- getData: st,
4760
+ getData: nt,
4751
4761
  setDataDriver: Fe,
4752
- setData: Te,
4762
+ setData: Pe,
4753
4763
  removeData: Yt,
4754
4764
  refreshData: Oe,
4755
4765
  maker: f,
4756
4766
  component: E,
4757
4767
  directive: N,
4758
- setModelField: Xt,
4759
- setFormula: xt,
4768
+ setModelField: xt,
4769
+ setFormula: Xt,
4760
4770
  setDriver: Zt,
4761
4771
  register: de,
4762
4772
  $vnode: M,
4763
4773
  parser: pe,
4764
4774
  use: me,
4765
4775
  factory: zt,
4766
- componentAlias: Pe,
4776
+ componentAlias: Ie,
4767
4777
  copyRule: It,
4768
4778
  copyRules: Pt,
4769
4779
  mergeRule: te,
4770
4780
  fetch: qt,
4771
4781
  $form: R,
4772
- parseFn: X,
4782
+ parseFn: x,
4773
4783
  parseJson: Vt,
4774
4784
  toJson: Ce,
4775
4785
  useApp: V,
@@ -4780,23 +4790,23 @@ function Kt(t) {
4780
4790
  function tr(c) {
4781
4791
  _(c, {
4782
4792
  create: W,
4783
- install(m, $) {
4784
- if (p = v(v({}, p), $ || {}), m._installedFormCreate === !0) return;
4785
- m._installedFormCreate = !0;
4793
+ install(g, $) {
4794
+ if (p = v(v({}, p), $ || {}), g._installedFormCreate === !0) return;
4795
+ g._installedFormCreate = !0;
4786
4796
  const b = function(j, S = {}) {
4787
4797
  return W(j, S, this);
4788
4798
  };
4789
- ot(b), m.prototype.$formCreate = b;
4790
- const C = R();
4791
- m.component(C.name, C), m.component("FcFragment", M()), o.forEach((j) => {
4792
- O(() => j(c, m));
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));
4793
4803
  });
4794
4804
  }
4795
4805
  });
4796
4806
  }
4797
- 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) {
4798
4808
  const c = t.inherit;
4799
- 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 && _(g, 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);
4800
4810
  }
4801
4811
  const ke = R();
4802
4812
  return Se(ke, F), Object.defineProperties(ke, {
@@ -4828,19 +4838,19 @@ const _t = {
4828
4838
  const e = t.prop.props;
4829
4839
  e.valueFormat || (e.valueFormat = _t[e.type] || _t.date);
4830
4840
  }
4831
- }, qe = "hidden", Hi = {
4832
- name: qe,
4841
+ }, Me = "hidden", Hi = {
4842
+ name: Me,
4833
4843
  maker: {
4834
- [qe]: (t, e) => T(qe)("", t, e)
4844
+ [Me]: (t, e) => T(Me)("", t, e)
4835
4845
  },
4836
4846
  render() {
4837
4847
  return [];
4838
4848
  }
4839
- }, Ue = "input", Gi = {
4840
- name: Ue,
4849
+ }, qe = "input", Gi = {
4850
+ name: qe,
4841
4851
  maker: function() {
4842
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = T(Ue, { type: r }), e), {});
4843
- 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;
4844
4854
  }(),
4845
4855
  mergeProp(t) {
4846
4856
  let { props: e } = t.prop;
@@ -4855,11 +4865,11 @@ const _t = {
4855
4865
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4856
4866
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4857
4867
  }
4858
- }, He = "timePicker", Ki = {
4859
- name: He,
4868
+ }, Ue = "timePicker", Ki = {
4869
+ name: Ue,
4860
4870
  maker: {
4861
- time: T(He, (t) => t.props.isRange = !1),
4862
- 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)
4863
4873
  },
4864
4874
  mergeProp(t) {
4865
4875
  const e = t.prop.props;
@@ -4872,19 +4882,19 @@ const _t = {
4872
4882
  e.vNode.row(e.prop, t)
4873
4883
  ]);
4874
4884
  }
4875
- }, zi = "select", Xi = {
4885
+ }, zi = "select", xi = {
4876
4886
  name: zi,
4877
4887
  toFormValue(t, e) {
4878
4888
  return e.prop.props.multiple && !Array.isArray(t) ? H(t) : t;
4879
4889
  }
4880
- }, xi = [
4890
+ }, Xi = [
4881
4891
  Ui,
4882
4892
  Hi,
4883
4893
  Gi,
4884
4894
  Ji,
4885
4895
  Ki,
4886
4896
  Wi,
4887
- Xi
4897
+ xi
4888
4898
  ], A = "el", Zi = {
4889
4899
  button: A + "Button",
4890
4900
  icon: "i",
@@ -4964,7 +4974,7 @@ function Q(t) {
4964
4974
  function en(t, e) {
4965
4975
  D(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4966
4976
  }
4967
- function Ge(t) {
4977
+ function He(t) {
4968
4978
  const e = v({}, t);
4969
4979
  return delete e.children, e;
4970
4980
  }
@@ -4985,6 +4995,11 @@ const tn = {
4985
4995
  const e = this.vm.$refs[t.wrapRef];
4986
4996
  e && e.clearValidate();
4987
4997
  },
4998
+ fieldChange(t, e, r, i) {
4999
+ var s, n;
5000
+ i || (n = (s = this.vm.$refs[t.wrapRef]) == null ? void 0 : s.validate("change")) == null || n.catch(() => {
5001
+ });
5002
+ },
4988
5003
  tidyOptions(t) {
4989
5004
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4990
5005
  en(t, e);
@@ -5034,22 +5049,22 @@ const tn = {
5034
5049
  return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, Q(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
5035
5050
  },
5036
5051
  makeWrap(t, e) {
5037
- const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r) && r.wrap.title !== !1, o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: l } = this.rule.props;
5038
- delete r.wrap.title;
5039
- const u = Q(r.wrap.show) ? e : this.$r(ee([r.wrap, {
5052
+ const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r) && r.wrap.title !== !1, o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: l } = this.rule.props, u = r.wrap.class;
5053
+ delete r.wrap.class, delete r.wrap.title;
5054
+ const f = Q(r.wrap.show) ? e : this.$r(ee([r.wrap, {
5040
5055
  props: q(v({
5041
5056
  labelWidth: o === void 0 ? o : At(o),
5042
5057
  label: n ? r.title.title : void 0
5043
- }, Ge(r.wrap || {})), {
5058
+ }, He(r.wrap || {})), {
5044
5059
  prop: t.id,
5045
5060
  rules: t.injectValidate()
5046
5061
  }),
5047
- class: this.$render.mergeClass(r.className, "fc-form-item"),
5062
+ class: this.$render.mergeClass(u || r.className, "fc-form-item"),
5048
5063
  key: `${i}fi`,
5049
5064
  ref: t.wrapRef,
5050
5065
  type: "formItem"
5051
5066
  }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5052
- return a === !0 || Q(l) || Q(s.show) ? u : this.makeCol(r, i, [u]);
5067
+ return a === !0 || Q(l) || Q(s.show) ? f : this.makeCol(r, i, [f]);
5053
5068
  },
5054
5069
  isTitle(t) {
5055
5070
  if (this.options.form.title === !1) return !1;
@@ -5057,22 +5072,22 @@ const tn = {
5057
5072
  return !(!e.title && !e.native || Q(e.show));
5058
5073
  },
5059
5074
  makeInfo(t, e, r) {
5060
- var f, p, d, g, y, w;
5075
+ var f, p, d, m, y, C;
5061
5076
  const i = v({}, t.title), s = v({}, t.info), n = Yi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5062
5077
  title: (p = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : p.value,
5063
5078
  rule: r.rule,
5064
5079
  options: this.options
5065
- }) : ((g = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : g.value) + (o.labelSuffix || o["label-suffix"] || "")];
5080
+ }) : ((m = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : m.value) + (o.labelSuffix || o["label-suffix"] || "")];
5066
5081
  if (!Q(s.show) && (s.info || s.native) && !Q(s.icon)) {
5067
5082
  const F = {
5068
5083
  type: s.type || "popover",
5069
5084
  slot: "label",
5070
- props: Ge(s),
5085
+ props: He(s),
5071
5086
  key: `${e}pop`
5072
5087
  };
5073
5088
  delete F.props.icon, delete F.props.show, delete F.props.info, delete F.props.align, delete F.props.native;
5074
5089
  const G = "content";
5075
- s.info && !D(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]), [
5090
+ 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]), [
5076
5091
  this.$r({
5077
5092
  type: "i",
5078
5093
  slot: n ? "default" : "reference",
@@ -5082,7 +5097,7 @@ const tn = {
5082
5097
  ]));
5083
5098
  }
5084
5099
  const u = ee([i, {
5085
- props: Ge(i),
5100
+ props: He(i),
5086
5101
  key: `${e}tit`,
5087
5102
  class: "fc-form-title",
5088
5103
  slot: i.slot || "label",
@@ -5331,7 +5346,7 @@ function un(t) {
5331
5346
  function fn(t) {
5332
5347
  t.componentAlias(Zi), qr.forEach((e) => {
5333
5348
  t.component(e.name, e);
5334
- }), t.register(Wt), xi.forEach((e) => {
5349
+ }), t.register(Wt), Xi.forEach((e) => {
5335
5350
  t.parser(e);
5336
5351
  }), Object.keys(he).forEach((e) => {
5337
5352
  t.maker[e] = he[e];
@@ -5340,7 +5355,7 @@ function fn(t) {
5340
5355
  function cn() {
5341
5356
  return Kt({
5342
5357
  ui: "element-ui",
5343
- version: "2.7.10",
5358
+ version: "2.7.12",
5344
5359
  manager: tn,
5345
5360
  extendApi: ln,
5346
5361
  install: fn,
@@ -5351,10 +5366,10 @@ function cn() {
5351
5366
  }
5352
5367
  });
5353
5368
  }
5354
- const Ze = cn();
5355
- typeof window != "undefined" && (window.formCreate = Ze, window.Vue && Ze.install(window.Vue));
5356
- const pn = Ze.maker;
5369
+ const Xe = cn();
5370
+ typeof window != "undefined" && (window.formCreate = Xe, window.Vue && Xe.install(window.Vue));
5371
+ const pn = Xe.maker;
5357
5372
  export {
5358
- Ze as default,
5373
+ Xe as default,
5359
5374
  pn as maker
5360
5375
  };