@form-create/iview 2.7.12 → 2.7.14

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/iview v2.7.12
3
+ * @form-create/iview v2.7.14
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -19,7 +19,7 @@ var at = (t, e, r) => e in t ? sr(t, e, { enumerable: !0, configurable: !0, writ
19
19
  ur.call(e, r) && at(t, r, e[r]);
20
20
  return t;
21
21
  }, U = (t, e) => or(t, ar(e));
22
- import $e, { getCurrentInstance as fr, provide as cr, inject as hr, toRefs as lt, reactive as ie, onBeforeMount as dr, watch as B, onMounted as pr, onBeforeUnmount as mr, onUpdated as gr, nextTick as V, markRaw as ge, computed as ye, toRef as je, ref as yr } from "vue";
22
+ import ye, { getCurrentInstance as fr, provide as cr, inject as hr, toRefs as lt, reactive as re, onBeforeMount as dr, watch as B, onMounted as pr, onBeforeUnmount as mr, onUpdated as gr, nextTick as V, markRaw as me, computed as ge, toRef as je, ref as yr } from "vue";
23
23
  function $r(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
@@ -50,12 +50,12 @@ var br = ["attrs", "props", "domProps"], vr = ["class", "style", "directives"],
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
52
  }, Or = Cr;
53
- const A = /* @__PURE__ */ $r(Or);
53
+ const j = /* @__PURE__ */ $r(Or);
54
54
  function Ie(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => ((!e || e.indexOf(i) === -1) && r.push(t[i]), r), []);
56
56
  }
57
- const Fr = "fcCheckbox", kr = {
58
- name: Fr,
57
+ const kr = "fcCheckbox", Fr = {
58
+ name: kr,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -100,7 +100,7 @@ const Fr = "fcCheckbox", kr = {
100
100
  },
101
101
  render() {
102
102
  const t = arguments[0];
103
- return t("CheckboxGroup", A([{}, this.formCreateInject.prop, {
103
+ return t("CheckboxGroup", j([{}, this.formCreateInject.prop, {
104
104
  ref: "el"
105
105
  }, {
106
106
  props: {
@@ -112,7 +112,7 @@ const Fr = "fcCheckbox", kr = {
112
112
  }
113
113
  }]), [this.options().map((e, r) => {
114
114
  const i = v({}, e);
115
- return delete i.value, t("Checkbox", A([{}, {
115
+ return delete i.value, t("Checkbox", j([{}, {
116
116
  props: i
117
117
  }, {
118
118
  key: "" + r + "-" + e.value
@@ -127,7 +127,7 @@ function H(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
129
  const Sr = "fcFrame";
130
- function Ft(t) {
130
+ function kt(t) {
131
131
  return {
132
132
  name: Sr,
133
133
  props: {
@@ -286,7 +286,7 @@ function Ft(t) {
286
286
  readonly: !0,
287
287
  clearable: !1
288
288
  };
289
- return e("Input", A([{}, {
289
+ return e("Input", j([{}, {
290
290
  props: r
291
291
  }, {}, {
292
292
  on: {
@@ -325,7 +325,7 @@ function Ft(t) {
325
325
  },
326
326
  makeHandleIcon(e, r) {
327
327
  const i = this.$createElement;
328
- return i("icon", A([{}, {
328
+ return i("icon", j([{}, {
329
329
  props: {
330
330
  type: this.handleIcon === !0 || this.handleIcon === void 0 ? "ios-eye-outline" : this.handleIcon
331
331
  }
@@ -338,7 +338,7 @@ function Ft(t) {
338
338
  },
339
339
  makeRemoveIcon(e, r) {
340
340
  const i = this.$createElement;
341
- return i("icon", A([{}, {
341
+ return i("icon", j([{}, {
342
342
  props: {
343
343
  type: "ios-trash-outline"
344
344
  }
@@ -351,7 +351,7 @@ function Ft(t) {
351
351
  },
352
352
  makeFiles() {
353
353
  const e = this.$createElement;
354
- return this.makeGroup(this.fileList.map((r, i) => this.makeItem(i, [e("icon", A([{}, {
354
+ return this.makeGroup(this.fileList.map((r, i) => this.makeItem(i, [e("icon", j([{}, {
355
355
  props: {
356
356
  type: t.fileIcon,
357
357
  size: 40
@@ -378,7 +378,7 @@ function Ft(t) {
378
378
  click: () => this.showModel()
379
379
  },
380
380
  key: this.key("btn")
381
- }, [e("icon", A([{}, {
381
+ }, [e("icon", j([{}, {
382
382
  props: {
383
383
  type: this.icon,
384
384
  size: 20
@@ -450,7 +450,7 @@ function Ft(t) {
450
450
  this.$refs.frame && this.frameLoad(this.$refs.frame.contentWindow || {});
451
451
  }), e("div", {
452
452
  class: "_fc-frame"
453
- }, [i, e("Modal", A([{}, {
453
+ }, [i, e("Modal", j([{}, {
454
454
  props: {
455
455
  mask: this.previewMask,
456
456
  title: l,
@@ -468,7 +468,7 @@ function Ft(t) {
468
468
  attrs: {
469
469
  src: this.previewImage
470
470
  }
471
- })]), e("Modal", A([{}, {
471
+ })]), e("Modal", j([{}, {
472
472
  props: v({
473
473
  width: s,
474
474
  title: a
@@ -503,11 +503,11 @@ function Ft(t) {
503
503
  }
504
504
  };
505
505
  }
506
- const kt = Ft({
506
+ const Ft = kt({
507
507
  fileIcon: "md-document",
508
508
  fileUpIcon: "ios-folder-open"
509
509
  });
510
- kt.v2 = Ft({
510
+ Ft.v2 = kt({
511
511
  fileIcon: "document-text",
512
512
  fileUpIcon: "folder"
513
513
  });
@@ -553,7 +553,7 @@ const Rr = "fcRadio", Er = {
553
553
  },
554
554
  render() {
555
555
  const t = arguments[0];
556
- return t("RadioGroup", A([{}, this.formCreateInject.prop, {}, {
556
+ return t("RadioGroup", j([{}, this.formCreateInject.prop, {}, {
557
557
  props: {
558
558
  value: this.trueValue
559
559
  }
@@ -564,7 +564,7 @@ const Rr = "fcRadio", Er = {
564
564
  }
565
565
  }]), [this.options().map((e, r) => {
566
566
  const i = v({}, e);
567
- return delete i.value, t("Radio", A([{}, {
567
+ return delete i.value, t("Radio", j([{}, {
568
568
  props: i
569
569
  }, {
570
570
  key: "" + r + "-" + e.value
@@ -619,7 +619,7 @@ const Dr = "fcSelect", jr = {
619
619
  render(t, e) {
620
620
  const r = (n, o) => {
621
621
  const a = n.slot;
622
- return t("Option", A([{}, {
622
+ return t("Option", j([{}, {
623
623
  props: n
624
624
  }, {
625
625
  key: "" + o + "-" + n.value
@@ -632,7 +632,7 @@ const Dr = "fcSelect", jr = {
632
632
  },
633
633
  key: "" + o + "-" + n.label
634
634
  }, [h.trueArray(n.options) && n.options.map((a, l) => r(a, l))]), s = e.props.formCreateInject.options;
635
- return t("Select", A([{}, e.data, {
635
+ return t("Select", j([{}, e.data, {
636
636
  ref: "el"
637
637
  }]), [(Array.isArray(s) ? s : []).map((n, o) => D(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
638
638
  },
@@ -684,7 +684,7 @@ const Dr = "fcSelect", jr = {
684
684
  },
685
685
  render() {
686
686
  const t = arguments[0], e = {};
687
- return this.type === "selected" ? e["on-select-change"] = this.onInput : e["on-check-change"] = this.onInput, t("Tree", A([{}, this.formCreateInject.prop, {
687
+ return this.type === "selected" ? e["on-select-change"] = this.onInput : e["on-check-change"] = this.onInput, t("Tree", j([{}, this.formCreateInject.prop, {
688
688
  ref: "tree"
689
689
  }, {
690
690
  on: e
@@ -784,7 +784,7 @@ function St(t) {
784
784
  src: e.url
785
785
  },
786
786
  key: this.key("img" + r)
787
- }) : i("icon", A([{}, {
787
+ }) : i("icon", j([{}, {
788
788
  props: {
789
789
  type: t.fileIcon,
790
790
  size: 40
@@ -819,7 +819,7 @@ function St(t) {
819
819
  },
820
820
  makeProgress(e, r) {
821
821
  const i = this.$createElement;
822
- return i("Progress", A([{}, {
822
+ return i("Progress", j([{}, {
823
823
  props: {
824
824
  percent: e.percentage,
825
825
  hideInfo: !0
@@ -849,7 +849,7 @@ function St(t) {
849
849
  },
850
850
  makeUpload() {
851
851
  const e = this.$createElement, r = !this.maxLength || this.maxLength > this.uploadList.length;
852
- return e("Upload", A([{}, this.formCreateInject.prop, {}, {
852
+ return e("Upload", j([{}, this.formCreateInject.prop, {}, {
853
853
  style: {
854
854
  display: "inline-block"
855
855
  },
@@ -859,7 +859,7 @@ function St(t) {
859
859
  slot: "default"
860
860
  }, [this.$slots.default || e("div", {
861
861
  class: "fc-upload-btn"
862
- }, [e("icon", A([{}, {
862
+ }, [e("icon", j([{}, {
863
863
  props: {
864
864
  type: this.uploadType === "file" ? "ios-cloud-upload-outline" : t.imgUpIcon,
865
865
  size: 20
@@ -878,7 +878,7 @@ function St(t) {
878
878
  const e = arguments[0];
879
879
  return this.$refs.upload && (this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = this.$refs.upload.showUploadList), this.formCreateInject.prop.props.defaultFileList = this.$refs.upload.defaultFileList), e("div", {
880
880
  class: "_fc-upload"
881
- }, [[this.formCreateInject.prop.props.showUploadList ? [] : this.makeFiles(), this.makeUpload()], e("Modal", A([{}, {
881
+ }, [[this.formCreateInject.prop.props.showUploadList ? [] : this.makeFiles(), this.makeUpload()], e("Modal", j([{}, {
882
882
  props: {
883
883
  title: this.modalTitle,
884
884
  footerHide: !0
@@ -915,11 +915,11 @@ Rt.v2 = St({
915
915
  fileIcon: "document-text",
916
916
  imgUpIcon: "image"
917
917
  });
918
- function F(t, e, r) {
919
- $e.set(t, e, r);
918
+ function k(t, e, r) {
919
+ ye.set(t, e, r);
920
920
  }
921
- function re(t, e) {
922
- ($e.del || $e.delete)(t, e);
921
+ function te(t, e) {
922
+ (ye.del || ye.delete)(t, e);
923
923
  }
924
924
  function Ce(t, e = {}, r) {
925
925
  let i = !1;
@@ -929,19 +929,19 @@ function Ce(t, e = {}, r) {
929
929
  if ((i = Array.isArray(n)) || h.Object(n)) {
930
930
  let o = t[s] === void 0;
931
931
  if (i)
932
- i = !1, o && F(t, s, []);
932
+ i = !1, o && k(t, s, []);
933
933
  else if (n._clone && r !== void 0)
934
934
  if (r)
935
- n = n.getRule(), o && F(t, s, {});
935
+ n = n.getRule(), o && k(t, s, {});
936
936
  else {
937
- F(t, s, n._clone());
937
+ k(t, s, n._clone());
938
938
  continue;
939
939
  }
940
940
  else
941
- o && F(t, s, {});
941
+ o && k(t, s, {});
942
942
  t[s] = Ce(t[s], n, r);
943
943
  } else
944
- F(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
944
+ k(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
945
945
  }
946
946
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
947
947
  }
@@ -951,7 +951,7 @@ function G(t) {
951
951
  const Lr = Object.assign || function(t) {
952
952
  for (let e, r = 1; r < arguments.length; r++)
953
953
  for (let i in e = arguments[r], e)
954
- Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
954
+ Object.prototype.hasOwnProperty.call(e, i) && k(t, i, e[i]);
955
955
  return t;
956
956
  };
957
957
  function C() {
@@ -1235,7 +1235,7 @@ const Br = "fcGroup", Tr = {
1235
1235
  return t("div", {
1236
1236
  class: "_fc-group-container",
1237
1237
  key: o
1238
- }, [t(i, A([{
1238
+ }, [t(i, j([{
1239
1239
  key: o
1240
1240
  }, {
1241
1241
  on: {
@@ -1334,7 +1334,7 @@ const Br = "fcGroup", Tr = {
1334
1334
  rule: e,
1335
1335
  options: r
1336
1336
  } = this.cacheRule, i = this.type;
1337
- return t(i, A([{}, {
1337
+ return t(i, j([{}, {
1338
1338
  on: {
1339
1339
  "update:value": this.formData,
1340
1340
  "emit-event": this.emitEvent,
@@ -1350,35 +1350,35 @@ const Br = "fcGroup", Tr = {
1350
1350
  }]));
1351
1351
  }
1352
1352
  }, Ur = [
1353
- kr,
1353
+ Fr,
1354
1354
  Er,
1355
1355
  jr,
1356
1356
  Ir,
1357
1357
  Mr,
1358
- kt,
1358
+ Ft,
1359
1359
  Rt,
1360
1360
  Tr
1361
1361
  ];
1362
- function ne(t, e) {
1362
+ function ie(t, e) {
1363
1363
  var r = null;
1364
1364
  return function(...i) {
1365
1365
  r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
1366
1366
  };
1367
1367
  }
1368
- function be(t) {
1368
+ function $e(t) {
1369
1369
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1370
1370
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1371
1371
  }
1372
1372
  function qr(t) {
1373
1373
  return t.replace(t[0], t[0].toLocaleUpperCase());
1374
1374
  }
1375
- const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style", "directives"], jt = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
1375
+ const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style", "directives"], jt = ["on", "nativeOn", "hook"], x = (t, e = {}, r = {}) => {
1376
1376
  const i = [...Et, ...r.normal || []], s = [...Dt, ...r.array || []], n = [...jt, ...r.functional || []], o = r.props || [];
1377
1377
  return t.reduce((a, l) => {
1378
1378
  for (const u in l)
1379
1379
  if (a[u])
1380
1380
  if (o.indexOf(u) > -1)
1381
- a[u] = Y([l[u]], a[u]);
1381
+ a[u] = x([l[u]], a[u]);
1382
1382
  else if (i.indexOf(u) > -1)
1383
1383
  a[u] = v(v({}, a[u]), l[u]);
1384
1384
  else if (s.indexOf(u) > -1) {
@@ -1402,9 +1402,9 @@ const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style"
1402
1402
  }, e);
1403
1403
  }, Gr = (t, e) => function() {
1404
1404
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1405
- }, At = ["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"], xe = ["effect", "deep", "renderSlots"];
1405
+ }, At = ["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"];
1406
1406
  function It() {
1407
- return [...At, ...Et, ...Dt, ...jt, ...Ye, ...xe];
1407
+ return [...At, ...Et, ...Dt, ...jt, ...Qe, ...Ye];
1408
1408
  }
1409
1409
  function Vt(t, e, r) {
1410
1410
  return `[form-create ${t}]: ${e}`;
@@ -1485,11 +1485,11 @@ function Ve() {
1485
1485
  const t = 370 + ++Jr;
1486
1486
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1487
1487
  }
1488
- function se(t, e, r) {
1488
+ function ne(t, e, r) {
1489
1489
  let i = t, s;
1490
1490
  return (e || "").split(".").forEach((n) => {
1491
- s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
1492
- }), F(i, s, r), i;
1491
+ s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1492
+ }), k(i, s, r), i;
1493
1493
  }
1494
1494
  function Xe(t, e) {
1495
1495
  return {
@@ -1505,8 +1505,8 @@ function Lt(t, e) {
1505
1505
  function Bt(t, e) {
1506
1506
  return Ce([], [...t], e || !1);
1507
1507
  }
1508
- function x(t, e) {
1509
- return Y(Array.isArray(e) ? e : [e], t, { array: Ye, normal: xe }), t;
1508
+ function Q(t, e) {
1509
+ return x(Array.isArray(e) ? e : [e], t, { array: Qe, normal: Ye }), t;
1510
1510
  }
1511
1511
  function ct(t) {
1512
1512
  const e = h.Function(t.getRule) ? t.getRule() : t;
@@ -1514,7 +1514,7 @@ function ct(t) {
1514
1514
  }
1515
1515
  function Wr(t, e) {
1516
1516
  return t ? (Object.keys(e || {}).forEach((r) => {
1517
- e[r] && (t[r] = x(t[r] || {}, e[r]));
1517
+ e[r] && (t[r] = Q(t[r] || {}, e[r]));
1518
1518
  }), t) : e;
1519
1519
  }
1520
1520
  function Tt(t, e) {
@@ -1524,7 +1524,7 @@ function Tt(t, e) {
1524
1524
  }
1525
1525
  }, r), {}));
1526
1526
  }
1527
- function Q(t) {
1527
+ function Z(t) {
1528
1528
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1529
1529
  }
1530
1530
  function O(t, e) {
@@ -1552,7 +1552,7 @@ function Kr(t, e) {
1552
1552
  } else
1553
1553
  return Ze(t, e);
1554
1554
  }
1555
- function ke() {
1555
+ function Fe() {
1556
1556
  const t = {}, e = (r) => r || "default";
1557
1557
  return {
1558
1558
  setSlot(r, i) {
@@ -1591,9 +1591,9 @@ function ke() {
1591
1591
  function Se(t, e) {
1592
1592
  return Object.setPrototypeOf(t, e), t;
1593
1593
  }
1594
- const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1594
+ const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, fe = {
1595
1595
  "==": (t, e) => JSON.stringify(t) === JSON.stringify(ht(t, e)),
1596
- "!=": (t, e) => !ce["=="](t, e),
1596
+ "!=": (t, e) => !fe["=="](t, e),
1597
1597
  ">": (t, e) => t > e,
1598
1598
  ">=": (t, e) => t >= e,
1599
1599
  "<": (t, e) => t < e,
@@ -1602,13 +1602,13 @@ const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1602
1602
  return t && t.indexOf && t.indexOf(ht(t[0], e)) > -1;
1603
1603
  },
1604
1604
  notOn(t, e) {
1605
- return !ce.on(t, e);
1605
+ return !fe.on(t, e);
1606
1606
  },
1607
1607
  in(t, e) {
1608
1608
  return e && e.indexOf && e.indexOf(t) > -1;
1609
1609
  },
1610
1610
  notIn(t, e) {
1611
- return !ce.in(t, e);
1611
+ return !fe.in(t, e);
1612
1612
  },
1613
1613
  between(t, e) {
1614
1614
  return t > e[0] && t < e[1];
@@ -1726,7 +1726,7 @@ function Zr(t, e, r) {
1726
1726
  a = a.parent;
1727
1727
  else
1728
1728
  a = n;
1729
- const { rule: l, value: u, subForm: f, inFor: p } = lt(s), d = ie({
1729
+ const { rule: l, value: u, subForm: f, inFor: p } = lt(s), d = re({
1730
1730
  ctxInject: {},
1731
1731
  destroyed: !1,
1732
1732
  isShow: !0,
@@ -1735,60 +1735,60 @@ function Zr(t, e, r) {
1735
1735
  updateValue: JSON.stringify(u.value || {})
1736
1736
  }), m = new t(n), y = m.api(), _ = p.value, E = () => {
1737
1737
  if (o) {
1738
- const k = Ee(n, o);
1739
- if (k) {
1740
- let R;
1741
- _ ? (R = H(k.getSubForm()), R.push(y)) : R = y, k.subForm(R);
1738
+ const F = Ee(n, o);
1739
+ if (F) {
1740
+ let S;
1741
+ _ ? (S = H(F.getSubForm()), S.push(y)) : S = y, F.subForm(S);
1742
1742
  }
1743
1743
  }
1744
- }, ee = () => {
1745
- const k = Ee(n, o);
1746
- if (k)
1744
+ }, Y = () => {
1745
+ const F = Ee(n, o);
1746
+ if (F)
1747
1747
  if (_) {
1748
- const R = H(k.getSubForm()), N = R.indexOf(y);
1749
- N > -1 && R.splice(N, 1);
1748
+ const S = H(F.getSubForm()), N = S.indexOf(y);
1749
+ N > -1 && S.splice(N, 1);
1750
1750
  } else
1751
- k.subForm();
1751
+ F.subForm();
1752
1752
  };
1753
1753
  let I = null;
1754
1754
  dr(() => {
1755
1755
  B(() => {
1756
- let k = "";
1757
- const R = s.option && s.option.globalClass || {};
1758
- Object.keys(R).forEach((N) => {
1759
- let pe = "";
1760
- R[N].style && Object.keys(R[N].style).forEach((z) => {
1761
- pe += be(z) + ":" + R[N].style[z] + ";";
1762
- }), R[N].content && (pe += R[N].content + ";"), pe && (k += `.${N}{${pe}}`);
1763
- }), s.option && s.option.style && (k += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = k || "";
1756
+ let F = "";
1757
+ const S = s.option && s.option.globalClass || {};
1758
+ Object.keys(S).forEach((N) => {
1759
+ let de = "";
1760
+ S[N].style && Object.keys(S[N].style).forEach((z) => {
1761
+ de += $e(z) + ":" + S[N].style[z] + ";";
1762
+ }), S[N].content && (de += S[N].content + ";"), de && (F += `.${N}{${de}}`);
1763
+ }), s.option && s.option.style && (F += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = F || "";
1764
1764
  }, () => {
1765
1765
  });
1766
1766
  });
1767
- const T = ne(() => {
1767
+ const T = ie(() => {
1768
1768
  m.bus.$emit("$loadData.$topForm");
1769
- }, 100), he = ne(function() {
1769
+ }, 100), ce = ie(function() {
1770
1770
  m.bus.$emit("$loadData.$scopeForm");
1771
- }, 100), Pe = ne(() => {
1771
+ }, 100), Pe = ie(() => {
1772
1772
  m.bus.$emit("$loadData.$form");
1773
- }, 100), de = (k) => {
1774
- m.bus.$emit("change-$form." + k);
1773
+ }, 100), he = (F) => {
1774
+ m.bus.$emit("change-$form." + F);
1775
1775
  };
1776
1776
  return pr(() => {
1777
- o && (y.top.bus.$on("$loadData.$form", T), y.top.bus.$on("change", de)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", he), m.mounted();
1777
+ o && (y.top.bus.$on("$loadData.$form", T), y.top.bus.$on("change", he)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", ce), m.mounted();
1778
1778
  }), mr(() => {
1779
- o && (y.top.bus.$off("$loadData.$form", T), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), ee(), d.destroyed = !0, m.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1779
+ o && (y.top.bus.$off("$loadData.$form", T), y.top.bus.$off("change", he)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", ce), Y(), d.destroyed = !0, m.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1780
1780
  }), gr(() => {
1781
1781
  m.updated();
1782
- }), B(f, (k) => {
1783
- k ? E() : ee();
1782
+ }), B(f, (F) => {
1783
+ F ? E() : Y();
1784
1784
  }, { immediate: !0 }), B(() => s.option, () => {
1785
1785
  m.initOptions(), y.refresh();
1786
- }, { deep: !0 }), B(() => [...l.value], (k) => {
1787
- m.$handle.isBreakWatch() || k.length === d.renderRule.length && k.every((R) => d.renderRule.indexOf(R) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1786
+ }, { deep: !0, flush: "sync" }), B(() => [...l.value], (F) => {
1787
+ m.$handle.isBreakWatch() || F.length === d.renderRule.length && F.every((S) => d.renderRule.indexOf(S) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1788
1788
  }), B(() => [s.disabled, s.preview], () => {
1789
1789
  y.refresh();
1790
- }), B(u, (k) => {
1791
- _e(k || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(k || {}) : y.setValue(k || {}));
1790
+ }), B(u, (F) => {
1791
+ _e(F || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(F || {}) : y.setValue(F || {}));
1792
1792
  }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1793
1793
  y.coverValue({}), m.$handle.updateAppendData(), V(() => {
1794
1794
  V(() => {
@@ -1796,10 +1796,10 @@ function Zr(t, e, r) {
1796
1796
  });
1797
1797
  });
1798
1798
  }, { flush: "sync" }), U(v({
1799
- fc: ge(m),
1800
- parent: o && ge(o),
1801
- top: ge(a),
1802
- fapi: ge(y)
1799
+ fc: me(m),
1800
+ parent: o && me(o),
1801
+ top: me(a),
1802
+ fapi: me(y)
1803
1803
  }, lt(d)), {
1804
1804
  getGroupInject: () => Ee(n, o),
1805
1805
  refresh() {
@@ -1808,11 +1808,11 @@ function Zr(t, e, r) {
1808
1808
  renderRule() {
1809
1809
  d.renderRule = [...l.value || []];
1810
1810
  },
1811
- updateValue(k) {
1811
+ updateValue(F) {
1812
1812
  if (d.destroyed) return;
1813
- const R = _e(k);
1814
- d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", k), V(() => {
1815
- Pe(), o ? f.value || he() : (T(), he());
1813
+ const S = _e(F);
1814
+ d.updateValue !== S && (d.updateValue = S, n.$emit("update:value", F), V(() => {
1815
+ Pe(), o ? f.value || ce() : (T(), ce());
1816
1816
  }));
1817
1817
  }
1818
1818
  });
@@ -1848,7 +1848,7 @@ C(tt.prototype, {
1848
1848
  return this._data;
1849
1849
  },
1850
1850
  setProp(t, e) {
1851
- return F(this._data, t, e), this;
1851
+ return k(this._data, t, e), this;
1852
1852
  },
1853
1853
  _clone() {
1854
1854
  const t = new this.constructor();
@@ -1858,13 +1858,13 @@ C(tt.prototype, {
1858
1858
  function Ut(t) {
1859
1859
  t.forEach((e) => {
1860
1860
  tt.prototype[e] = function(r) {
1861
- return x(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1861
+ return Q(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1862
1862
  };
1863
1863
  });
1864
1864
  }
1865
1865
  Ut(It());
1866
1866
  const qt = P("");
1867
- function Qr(t, e, r) {
1867
+ function xr(t, e, r) {
1868
1868
  let i = qt("", e);
1869
1869
  return i._data.type = t, i._data.title = r, i;
1870
1870
  }
@@ -1872,15 +1872,15 @@ function pt(t, e, r, i) {
1872
1872
  let s = qt("", r);
1873
1873
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1874
1874
  }
1875
- function Yr() {
1875
+ function Qr() {
1876
1876
  return {
1877
- create: Qr,
1877
+ create: xr,
1878
1878
  createTmp: pt,
1879
1879
  template: pt,
1880
1880
  factory: P
1881
1881
  };
1882
1882
  }
1883
- function xr(t, e, r) {
1883
+ function Yr(t, e, r) {
1884
1884
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1885
1885
  return s.status = r.status, s.url = t, s;
1886
1886
  }
@@ -1909,7 +1909,7 @@ function Gt(t) {
1909
1909
  t.onError(o);
1910
1910
  }, e.onload = function() {
1911
1911
  if (e.status < 200 || e.status >= 300)
1912
- return t.onError(xr(r, t, e), mt(e));
1912
+ return t.onError(Yr(r, t, e), mt(e));
1913
1913
  t.onSuccess(mt(e));
1914
1914
  }, e.open(t.method || "get", r, !0);
1915
1915
  let i;
@@ -1946,7 +1946,7 @@ function ei(t) {
1946
1946
  h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1947
1947
  const u = t.fieldCtx[l] || t.nameCtx[l];
1948
1948
  u && u.forEach((f) => {
1949
- F(f.rule, o, a), t.$render.clearCache(f);
1949
+ k(f.rule, o, a), t.$render.clearCache(f);
1950
1950
  });
1951
1951
  });
1952
1952
  }
@@ -2039,7 +2039,7 @@ function ei(t) {
2039
2039
  if (l) {
2040
2040
  const u = D(n, a);
2041
2041
  l.forEach((f) => {
2042
- F(f.rule, "value", u ? n[a] : void 0);
2042
+ k(f.rule, "value", u ? n[a] : void 0);
2043
2043
  }), delete o[a];
2044
2044
  }
2045
2045
  }), C(t.appendData, o);
@@ -2052,7 +2052,7 @@ function ei(t) {
2052
2052
  const l = t.fieldCtx[a];
2053
2053
  if (!l) return t.appendData[a] = o[a];
2054
2054
  l.forEach((u) => {
2055
- F(u.rule, "value", o[a]);
2055
+ k(u.rule, "value", o[a]);
2056
2056
  });
2057
2057
  });
2058
2058
  }, !0);
@@ -2066,7 +2066,7 @@ function ei(t) {
2066
2066
  }, !0), o ? o.origin : void 0;
2067
2067
  },
2068
2068
  removeRule(n) {
2069
- const o = n && Q(n);
2069
+ const o = n && Z(n);
2070
2070
  if (o)
2071
2071
  return o.rm(), o.origin;
2072
2072
  },
@@ -2116,7 +2116,7 @@ function ei(t) {
2116
2116
  disabled(n, o) {
2117
2117
  e(o).forEach((a) => {
2118
2118
  t.getCtxs(a).forEach((l) => {
2119
- F(l.rule.props, "disabled", !!n);
2119
+ k(l.rule.props, "disabled", !!n);
2120
2120
  });
2121
2121
  }), t.refresh();
2122
2122
  },
@@ -2155,7 +2155,7 @@ function ei(t) {
2155
2155
  n.forEach((a) => s.sync(a));
2156
2156
  return;
2157
2157
  }
2158
- let o = h.Object(n) ? Q(n) : t.getCtxs(n);
2158
+ let o = h.Object(n) ? Z(n) : t.getCtxs(n);
2159
2159
  o && (o = Array.isArray(o) ? o : [o], o.forEach((a) => {
2160
2160
  if (!a.deleted) {
2161
2161
  const l = t.subForm[a.id];
@@ -2174,7 +2174,7 @@ function ei(t) {
2174
2174
  t.$manager.updateOptions(t.options), s.refresh();
2175
2175
  },
2176
2176
  hideForm: (n) => {
2177
- F(t.vm, "isShow", !n);
2177
+ k(t.vm, "isShow", !n);
2178
2178
  },
2179
2179
  changeStatus: () => t.changeStatus,
2180
2180
  clearChangeStatus: () => {
@@ -2192,7 +2192,7 @@ function ei(t) {
2192
2192
  },
2193
2193
  mergeRule: (n, o) => {
2194
2194
  t.getCtxs(n).forEach((a) => {
2195
- x(a.rule, o);
2195
+ Q(a.rule, o);
2196
2196
  });
2197
2197
  },
2198
2198
  mergeRules(n) {
@@ -2205,6 +2205,20 @@ function ei(t) {
2205
2205
  if (a)
2206
2206
  return o ? a.origin : a.rule;
2207
2207
  },
2208
+ findType(n, o) {
2209
+ let a;
2210
+ return Object.keys(t.ctxs).forEach((l) => {
2211
+ const u = t.ctxs[l];
2212
+ u.rule.type === n && (a = o ? u.origin : u.rule);
2213
+ }), a;
2214
+ },
2215
+ findTypes(n, o) {
2216
+ let a = [];
2217
+ return Object.keys(t.ctxs).forEach((l) => {
2218
+ const u = t.ctxs[l];
2219
+ u.rule.type === n && a.push(o ? u.origin : u.rule);
2220
+ }), a;
2221
+ },
2208
2222
  getRenderRule: (n) => {
2209
2223
  const o = t.getCtx(n);
2210
2224
  if (o)
@@ -2219,7 +2233,7 @@ function ei(t) {
2219
2233
  },
2220
2234
  setEffect(n, o, a) {
2221
2235
  const l = t.getCtx(n);
2222
- l && o && (o[0] === "$" && (o = o.substr(1)), D(l.rule, "$" + o) && F(l.rule, "$" + o, a), D(l.rule, "effect") || F(l.rule, "effect", {}), F(l.rule.effect, o, a));
2236
+ 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));
2223
2237
  },
2224
2238
  clearEffectData(n, o) {
2225
2239
  const a = t.getCtx(n);
@@ -2278,7 +2292,7 @@ function ei(t) {
2278
2292
  return o ? t.subForm[o.id] : void 0;
2279
2293
  },
2280
2294
  getChildrenRuleList(n) {
2281
- const o = typeof n == "object", a = o ? Q(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2295
+ const o = typeof n == "object", a = o ? Z(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2282
2296
  if (!l)
2283
2297
  return [];
2284
2298
  const u = [];
@@ -2289,10 +2303,10 @@ function ei(t) {
2289
2303
  })(a ? a.loadChildrenPending() : l.children), u;
2290
2304
  },
2291
2305
  getParentRule(n) {
2292
- return (typeof n == "object" ? Q(n) : t.getCtx(n)).parent.rule;
2306
+ return (typeof n == "object" ? Z(n) : t.getCtx(n)).parent.rule;
2293
2307
  },
2294
2308
  getParentSubRule(n) {
2295
- const a = typeof n == "object" ? Q(n) : t.getCtx(n);
2309
+ const a = typeof n == "object" ? Z(n) : t.getCtx(n);
2296
2310
  if (a) {
2297
2311
  const l = a.getParentGroup();
2298
2312
  if (l)
@@ -2306,7 +2320,7 @@ function ei(t) {
2306
2320
  const l = s.getChildrenRuleList(n);
2307
2321
  t.deferSyncValue(() => {
2308
2322
  l.forEach((u) => {
2309
- D(o, u.field) ? F(u, "value", o[u.field]) : a && F(u, "value", void 0);
2323
+ D(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2310
2324
  });
2311
2325
  });
2312
2326
  },
@@ -2330,11 +2344,11 @@ function ei(t) {
2330
2344
  s.setData("$var." + n, o);
2331
2345
  },
2332
2346
  renderRule(n, o, a) {
2333
- const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2347
+ const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2334
2348
  return u ? t.$render.createRuleVnode(u, o, a) : void 0;
2335
2349
  },
2336
2350
  renderChildren(n, o, a) {
2337
- const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2351
+ const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2338
2352
  return u ? t.$render.createChildrenVnodes(u, o, a) : void 0;
2339
2353
  },
2340
2354
  nextTick(n) {
@@ -2447,7 +2461,7 @@ function ri(t) {
2447
2461
  const r = (i) => {
2448
2462
  if (i) {
2449
2463
  let s;
2450
- return e.rule.field && (s = i.$scopedSlots["field-" + be(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + be(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2464
+ return e.rule.field && (s = i.$scopedSlots["field-" + $e(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + $e(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2451
2465
  }
2452
2466
  };
2453
2467
  return r(this.vm);
@@ -2456,7 +2470,7 @@ function ri(t) {
2456
2470
  if (!this.vm.isShow)
2457
2471
  return;
2458
2472
  this.$manager.beforeRender();
2459
- const e = ke();
2473
+ const e = Fe();
2460
2474
  return this.sort.forEach((r) => {
2461
2475
  this.renderSlot(e, this.$handle.ctxs[r]);
2462
2476
  }), this.$manager.render(e);
@@ -2467,23 +2481,23 @@ function ri(t) {
2467
2481
  })) : e.setSlot(r.rule.slot, this.renderCtx(r, i));
2468
2482
  },
2469
2483
  mergeGlobal(e) {
2470
- this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ye(() => {
2484
+ this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ge(() => {
2471
2485
  const i = this.$handle.options.global;
2472
- return x({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2473
- })), e.prop = x({}, [this.cacheConfig[e.trueType].value, e.prop]));
2486
+ return Q({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2487
+ })), e.prop = Q({}, [this.cacheConfig[e.trueType].value, e.prop]));
2474
2488
  },
2475
2489
  setOptions(e) {
2476
2490
  const r = e.loadPending({ key: "options", origin: e.prop.options, def: [] });
2477
- e.prop.options = r, e.prop.optionsTo && r && se(e.prop, e.prop.optionsTo, r);
2491
+ e.prop.options = r, e.prop.optionsTo && r && ne(e.prop, e.prop.optionsTo, r);
2478
2492
  },
2479
2493
  deepSet(e) {
2480
2494
  const r = e.rule.deep;
2481
2495
  r && Object.keys(r).sort((i, s) => i.length < s.length ? -1 : 1).forEach((i) => {
2482
- se(e.prop, i, r[i]);
2496
+ ne(e.prop, i, r[i]);
2483
2497
  });
2484
2498
  },
2485
2499
  parseSide(e, r) {
2486
- return h.Object(e) ? x({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2500
+ return h.Object(e) ? Q({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2487
2501
  },
2488
2502
  renderSides(e, r, i) {
2489
2503
  const s = r[i ? "rule" : "prop"];
@@ -2615,7 +2629,7 @@ function ri(t) {
2615
2629
  if (l.indexOf("native.") === 0)
2616
2630
  o[l.replace("native.", "")] = n[l], delete n[l];
2617
2631
  else if (this.$handle.options.transformEventName !== !1) {
2618
- const u = be(l);
2632
+ const u = $e(l);
2619
2633
  u !== l.toLowerCase() && !n[u] && (n[u] = n[l]);
2620
2634
  }
2621
2635
  }), e.prop.on = n;
@@ -2654,7 +2668,7 @@ function ri(t) {
2654
2668
  }
2655
2669
  });
2656
2670
  }
2657
- return Y(a, e.prop), e.prop;
2671
+ return x(a, e.prop), e.prop;
2658
2672
  },
2659
2673
  onMounted(e) {
2660
2674
  e.el = this.vm.$refs[e.ref], e.el && ((e.el.$el || e.el).__rule__ = e.rule), e.parser.mounted(e), this.$handle.effect(e, "mounted"), this.$handle.targetHook(e, "mounted");
@@ -2671,7 +2685,7 @@ function ri(t) {
2671
2685
  },
2672
2686
  renderChildren(e, r, i) {
2673
2687
  if (!h.trueArray(e)) return [];
2674
- const s = ke();
2688
+ const s = Fe();
2675
2689
  return e.map((n) => {
2676
2690
  if (n) {
2677
2691
  if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
@@ -2697,7 +2711,7 @@ function ri(t) {
2697
2711
  },
2698
2712
  createRuleVnode(e, r, i) {
2699
2713
  this.force = i !== !1, this.tmpInput = r;
2700
- const s = ke();
2714
+ const s = Fe();
2701
2715
  return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
2702
2716
  },
2703
2717
  renderRule(e, r, i) {
@@ -2712,7 +2726,7 @@ function ri(t) {
2712
2726
  a && (s = q(a));
2713
2727
  }
2714
2728
  if (!s) return;
2715
- const n = ke();
2729
+ const n = Fe();
2716
2730
  h.trueArray(e.children) && e.children.forEach((a) => {
2717
2731
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2718
2732
  });
@@ -2773,7 +2787,7 @@ function ni(t) {
2773
2787
  let p, d = n || o || a;
2774
2788
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2775
2789
  r || (d = `native-${d}`);
2776
- const m = be(`${d}-${f}`), y = (..._) => {
2790
+ const m = $e(`${d}-${f}`), y = (..._) => {
2777
2791
  this.vm.$emit(m, ..._), this.vm.$emit("emit-event", m, ..._), this.bus.$emit(m, ..._);
2778
2792
  };
2779
2793
  if (y.__emit = !0, !p && l === !1)
@@ -2899,9 +2913,9 @@ function ai(t) {
2899
2913
  }
2900
2914
  function li(t) {
2901
2915
  Object.defineProperties(t.origin, {
2902
- __fc__: Xe(ge(t), !0)
2916
+ __fc__: Xe(me(t), !0)
2903
2917
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2904
- __fc__: Xe(ge(t), !0)
2918
+ __fc__: Xe(me(t), !0)
2905
2919
  });
2906
2920
  }
2907
2921
  function zt(t, e, r) {
@@ -2994,7 +3008,7 @@ C(zt.prototype, {
2994
3008
  setPending(t, e, r) {
2995
3009
  this.pending[t] = {
2996
3010
  origin: e,
2997
- value: ie(r)
3011
+ value: re(r)
2998
3012
  };
2999
3013
  },
3000
3014
  effectData(t) {
@@ -3015,7 +3029,7 @@ C(zt.prototype, {
3015
3029
  initProp() {
3016
3030
  var e, r;
3017
3031
  const t = v({}, this.rule);
3018
- delete t.children, delete t.validate, this.prop = x({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
3032
+ delete t.children, delete t.validate, this.prop = Q({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
3019
3033
  },
3020
3034
  initNone() {
3021
3035
  this.none = !(h.Undef(this.prop.display) || this.prop.display);
@@ -3112,7 +3126,7 @@ function ui(t) {
3112
3126
  },
3113
3127
  syncProp(e) {
3114
3128
  const r = e.rule;
3115
- h.trueArray(r.sync) && Y([{
3129
+ h.trueArray(r.sync) && x([{
3116
3130
  on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
3117
3131
  r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
3118
3132
  }, i), {})
@@ -3185,7 +3199,7 @@ function ui(t) {
3185
3199
  if (!r.length) return !1;
3186
3200
  for (let a = 0; a < r.length; a++) {
3187
3201
  const l = r[a], u = l.handle || function(p) {
3188
- return (ce[l.condition || "=="] || ce["=="])(p, l.value);
3202
+ return (fe[l.condition || "=="] || fe["=="])(p, l.value);
3189
3203
  };
3190
3204
  if (!h.trueArray(l.rule)) continue;
3191
3205
  const f = U(v({}, l), {
@@ -3225,7 +3239,7 @@ function ui(t) {
3225
3239
  });
3226
3240
  } else {
3227
3241
  e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3228
- const _ = Q(m);
3242
+ const _ = Z(m);
3229
3243
  _ && _.rm();
3230
3244
  }
3231
3245
  });
@@ -3256,7 +3270,7 @@ function ui(t) {
3256
3270
  function fi(t) {
3257
3271
  const e = Mt();
3258
3272
  return Object.keys(e).forEach((r) => {
3259
- D(t, r) || F(t, r, e[r]);
3273
+ D(t, r) || k(t, r, e[r]);
3260
3274
  }), t;
3261
3275
  }
3262
3276
  function ci(t) {
@@ -3306,11 +3320,11 @@ function di(t) {
3306
3320
  setFormData(e, r) {
3307
3321
  e.modelValue = r;
3308
3322
  const i = e.getParentGroup();
3309
- i && (this.subRuleData[i.id] || F(this.subRuleData, i.id, {}), F(this.subRuleData[i.id], e.field, e.rule.value)), F(this.formData, e.id, r);
3323
+ i && (this.subRuleData[i.id] || k(this.subRuleData, i.id, {}), k(this.subRuleData[i.id], e.field, e.rule.value)), k(this.formData, e.id, r);
3310
3324
  },
3311
3325
  rmSubRuleData(e) {
3312
3326
  const r = e.getParentGroup();
3313
- r && this.subRuleData[r.id] && re(this.subRuleData[r.id], e.field);
3327
+ r && this.subRuleData[r.id] && te(this.subRuleData[r.id], e.field);
3314
3328
  },
3315
3329
  getFormData(e) {
3316
3330
  return this.formData[e.id];
@@ -3320,7 +3334,7 @@ function di(t) {
3320
3334
  this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = je(this.appendData, n)), s), e), r.reduce((s, n) => {
3321
3335
  let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
3322
3336
  return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = je(o.rule, "value"), s;
3323
- }, e), this.form = ie(e), this.ignoreFields = i, this.syncValue();
3337
+ }, e), this.form = re(e), this.ignoreFields = i, this.syncValue();
3324
3338
  },
3325
3339
  isIgnore(e) {
3326
3340
  return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
@@ -3469,21 +3483,21 @@ function mi(t) {
3469
3483
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3470
3484
  }
3471
3485
  }, { deep: !n, sync: n }));
3472
- }), e.refRule.__$title = ye(() => {
3486
+ }), e.refRule.__$title = ge(() => {
3473
3487
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3474
3488
  if (i) {
3475
3489
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3476
3490
  s && (i = this.api.t(s[1]));
3477
3491
  }
3478
3492
  return i;
3479
- }), e.refRule.__$info = ye(() => {
3493
+ }), e.refRule.__$info = ge(() => {
3480
3494
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3481
3495
  if (i) {
3482
3496
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3483
3497
  s && (i = this.api.t(s[1]));
3484
3498
  }
3485
3499
  return i;
3486
- }), e.refRule.__$validate = ye(() => {
3500
+ }), e.refRule.__$validate = ge(() => {
3487
3501
  const i = (s) => {
3488
3502
  var o, a;
3489
3503
  const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
@@ -3524,13 +3538,13 @@ function mi(t) {
3524
3538
  this.bus.$once("load-end", () => {
3525
3539
  let i = e.rule.computed;
3526
3540
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3527
- const n = ye(() => {
3541
+ const n = ge(() => {
3528
3542
  const a = i[s];
3529
3543
  if (!a) return;
3530
3544
  const l = this.compute(e, a);
3531
3545
  return a.linkage && l === Re ? Re : l;
3532
3546
  }), o = (a) => {
3533
- s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : se(e.rule, s, a);
3547
+ s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : ne(e.rule, s, a);
3534
3548
  };
3535
3549
  (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : n.value !== L(e.rule, s)) && o(n.value), e.watch.push(B(n, (a, l) => {
3536
3550
  a === Re || a === l || setTimeout(() => {
@@ -3671,7 +3685,7 @@ function mi(t) {
3671
3685
  else if (!p.mode)
3672
3686
  return !0;
3673
3687
  let y = p.compare;
3674
- 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)
3688
+ if (y && (y = dt(y || "")), p.mode ? d = n(p) : fe[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, fe, 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)
3675
3689
  return !0;
3676
3690
  l || (u = u && d);
3677
3691
  }
@@ -3713,9 +3727,9 @@ function mi(t) {
3713
3727
  rmCtx(e) {
3714
3728
  if (e.deleted) return;
3715
3729
  const { id: r, field: i, input: s, name: n } = e;
3716
- re(this.ctxs, r), re(this.formData, r), re(this.subForm, r), re(this.vm.ctxInject, r);
3730
+ te(this.ctxs, r), te(this.formData, r), te(this.subForm, r), te(this.vm.ctxInject, r);
3717
3731
  const o = e.getParentGroup();
3718
- o && this.subRuleData[o.id] && re(this.subRuleData[o.id], i), e.group && re(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !D(this.fieldCtx, i) && re(this.form, i), this.deferSyncValue(() => {
3732
+ o && this.subRuleData[o.id] && te(this.subRuleData[o.id], i), e.group && te(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !D(this.fieldCtx, i) && te(this.form, i), this.deferSyncValue(() => {
3719
3733
  if (!this.reloading) {
3720
3734
  if (e.parser.loadChildren !== !1) {
3721
3735
  const l = e.getPending("children", e.rule.children);
@@ -3842,7 +3856,7 @@ function yi(t) {
3842
3856
  else
3843
3857
  return;
3844
3858
  const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3845
- e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (m) => x(d.getProp(), [m]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3859
+ e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (m) => Q(d.getProp(), [m]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3846
3860
  });
3847
3861
  }
3848
3862
  });
@@ -3879,10 +3893,10 @@ function K(t) {
3879
3893
  noWatchFn: null,
3880
3894
  deferSyncFn: null,
3881
3895
  isMounted: !1,
3882
- formData: ie({}),
3883
- subRuleData: ie({}),
3896
+ formData: re({}),
3897
+ subRuleData: re({}),
3884
3898
  subForm: {},
3885
- form: ie({}),
3899
+ form: re({}),
3886
3900
  appendData: {},
3887
3901
  ignoreFields: [],
3888
3902
  providers: {},
@@ -3967,7 +3981,7 @@ function Ci() {
3967
3981
  },
3968
3982
  make(r, i, s) {
3969
3983
  var n, o, a;
3970
- return ($e.isReservedTag ? $e.isReservedTag(r) : (o = (n = $e) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
3984
+ return (ye.isReservedTag ? ye.isReservedTag(r) : (o = (n = ye) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
3971
3985
  },
3972
3986
  makeComponent(r, i, s) {
3973
3987
  var o;
@@ -3988,7 +4002,7 @@ function Ci() {
3988
4002
  },
3989
4003
  use(r) {
3990
4004
  Object.keys(r).forEach((i) => {
3991
- const s = be(i), n = zr(i).toLocaleLowerCase(), o = r[i];
4005
+ const s = $e(i), n = zr(i).toLocaleLowerCase(), o = r[i];
3992
4006
  [i, s, n].forEach((a) => {
3993
4007
  e.alias(i, o), e.prototype[a] = function(l, u) {
3994
4008
  return this.make(o, l, u);
@@ -4044,7 +4058,7 @@ C(Jt.prototype, {
4044
4058
  return e(this.vm);
4045
4059
  },
4046
4060
  mergeOptions(t, e) {
4047
- return Y(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
4061
+ return x(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
4048
4062
  },
4049
4063
  updateOptions(t) {
4050
4064
  this.$handle.fc.targetFormDriver("updateOptions", t, { handle: this.$handle, api: this.$handle.api }), this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
@@ -4080,10 +4094,10 @@ const Oi = function(t) {
4080
4094
  let m;
4081
4095
  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 = G(m));
4082
4096
  const y = a.modify ? i : r.getProp();
4083
- a.to === "child" ? y.children ? F(y.children, 0, m) : F(y, "children", [m]) : se(y, a.to || "options", m), s.sync(i);
4097
+ a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : ne(y, a.to || "options", m), s.sync(i);
4084
4098
  }, u = (p) => l(p);
4085
4099
  const f = t.watchLoadData(u);
4086
- l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
4100
+ l = ie(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
4087
4101
  }
4088
4102
  }), this._fn[r.id] = o;
4089
4103
  });
@@ -4095,7 +4109,7 @@ const Oi = function(t) {
4095
4109
  }
4096
4110
  };
4097
4111
  return e.watch = e.loaded, e;
4098
- }, Fi = function(t) {
4112
+ }, ki = function(t) {
4099
4113
  const e = {
4100
4114
  name: "t",
4101
4115
  _fn: [],
@@ -4110,10 +4124,10 @@ const Oi = function(t) {
4110
4124
  let f = (m) => {
4111
4125
  let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4112
4126
  const _ = u && l.modify ? i : r.getProp();
4113
- a === "child" ? _.children ? F(_.children, 0, y) : F(_, "children", [y]) : se(_, a, y), s.sync(i);
4127
+ a === "child" ? _.children ? k(_.children, 0, y) : k(_, "children", [y]) : ne(_, a, y), s.sync(i);
4114
4128
  }, p = (m) => f(m);
4115
4129
  const d = t.watchLoadData(p);
4116
- f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4130
+ f = ie(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4117
4131
  }
4118
4132
  }), this._fn[r.id] = o;
4119
4133
  },
@@ -4134,7 +4148,7 @@ const Oi = function(t) {
4134
4148
  h.Object(i) || (i = { method: i });
4135
4149
  const s = i.method, n = U(v({}, i), {
4136
4150
  validator(...o) {
4137
- const a = Q(e);
4151
+ const a = Z(e);
4138
4152
  if (a)
4139
4153
  return r.exec(a.id, h.String(s) ? s : "formCreateValidate", ...o, {
4140
4154
  attr: t,
@@ -4149,7 +4163,7 @@ const Oi = function(t) {
4149
4163
  watch(...t) {
4150
4164
  Wt.load(...t);
4151
4165
  }
4152
- }, ki = function(t) {
4166
+ }, Fi = function(t) {
4153
4167
  function e(s) {
4154
4168
  return h.String(s) && (s = {
4155
4169
  action: s,
@@ -4160,7 +4174,7 @@ const Oi = function(t) {
4160
4174
  let a = s.value;
4161
4175
  i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
4162
4176
  const l = (p) => {
4163
- p === void 0 ? s.clearProp() : se(s.getProp(), a.to || "options", p), o.sync(n);
4177
+ p === void 0 ? s.clearProp() : ne(s.getProp(), a.to || "options", p), o.sync(n);
4164
4178
  };
4165
4179
  if (!a || !a.action && !a.key) {
4166
4180
  l(void 0);
@@ -4182,7 +4196,7 @@ const Oi = function(t) {
4182
4196
  if (!s.getValue())
4183
4197
  return s.clearProp(), o.sync(n), !0;
4184
4198
  };
4185
- i._fn[s.id] = t.watchLoadData(ne((p, d) => {
4199
+ i._fn[s.id] = t.watchLoadData(ie((p, d) => {
4186
4200
  if (d && a.watch === !1)
4187
4201
  return i._fn[s.id]();
4188
4202
  const m = t.$handle.loadFetchVar(G(a), p, n), y = U(v({
@@ -4190,9 +4204,9 @@ const Oi = function(t) {
4190
4204
  }, m), {
4191
4205
  onSuccess(_, E) {
4192
4206
  if (f()) return;
4193
- let ee = (T) => E ? T : D(T, "data") ? T.data : T;
4207
+ let Y = (T) => E ? T : D(T, "data") ? T.data : T;
4194
4208
  const I = W(m.parse);
4195
- h.Function(I) ? ee = I : I && h.String(I) && (ee = (T) => L(T, I)), l(ee(_, n, o));
4209
+ h.Function(I) ? Y = I : I && h.String(I) && (Y = (T) => L(T, I)), l(Y(_, n, o));
4196
4210
  },
4197
4211
  onError(_) {
4198
4212
  l(void 0), !f() && (u || ((E) => et(E.message || "fetch fail " + m.action)))(_, n, o);
@@ -4227,9 +4241,9 @@ const Oi = function(t) {
4227
4241
  };
4228
4242
  return i;
4229
4243
  }, Si = {
4230
- fetch: ki,
4244
+ fetch: Fi,
4231
4245
  loadData: Oi,
4232
- t: Fi,
4246
+ t: ki,
4233
4247
  componentValidate: Wt
4234
4248
  };
4235
4249
  function Ri(t) {
@@ -4393,7 +4407,7 @@ function Mi(t, e) {
4393
4407
  }
4394
4408
  function Ui(t) {
4395
4409
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4396
- At.push(...e), Ye.push(...r), xe.push(...i), Ut([...e, ...r, ...i]);
4410
+ At.push(...e), Qe.push(...r), Ye.push(...i), Ut([...e, ...r, ...i]);
4397
4411
  }
4398
4412
  let qi = 1;
4399
4413
  const M = {}, vt = Symbol("defValue");
@@ -4402,13 +4416,13 @@ function Kt(t) {
4402
4416
  [Ne.name]: Ne
4403
4417
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4404
4418
  t.extendApi
4405
- ], u = v({}, Si), f = Yr();
4419
+ ], u = v({}, Si), f = Qr();
4406
4420
  let p = { global: {} };
4407
- const d = t.isMobile === !0, m = ie({
4421
+ const d = t.isMobile === !0, m = re({
4408
4422
  $mobile: d
4409
4423
  }), y = Ci(), _ = {}, E = {};
4410
4424
  Ui(t.attrs || {});
4411
- function ee(c) {
4425
+ function Y(c) {
4412
4426
  const g = M[c];
4413
4427
  if (Array.isArray(g))
4414
4428
  return g.map(($) => $.api());
@@ -4422,7 +4436,7 @@ function Kt(t) {
4422
4436
  const c = Me(...arguments);
4423
4437
  c.id && c.prop && (i[c.id] = c.prop);
4424
4438
  }
4425
- function he() {
4439
+ function ce() {
4426
4440
  const c = Me(...arguments);
4427
4441
  c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(v({}, c.prop), {
4428
4442
  name: c.id
@@ -4431,30 +4445,30 @@ function Kt(t) {
4431
4445
  function Pe(c) {
4432
4446
  y.use(c);
4433
4447
  }
4434
- function de() {
4448
+ function he() {
4435
4449
  const c = Me(...arguments);
4436
4450
  if (!c.id || !c.prop) return De;
4437
4451
  const g = q(c.id), $ = c.prop, b = $.merge === !0 ? r[g] : void 0;
4438
4452
  r[g] = Se($, b || De), f[g] = P(g), $.maker && C(f, $.maker);
4439
4453
  }
4440
- function k(c, g) {
4454
+ function F(c, g) {
4441
4455
  let $;
4442
4456
  if (h.String(c)) {
4443
4457
  if ($ = c, g === void 0)
4444
- return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
4458
+ return ["form-create", "formcreate"].indexOf($) > -1 ? S() : e[$];
4445
4459
  } else
4446
4460
  $ = q(c.name), g = c;
4447
4461
  if (!$ || !g) return;
4448
4462
  const b = q($);
4449
- e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && de($, g.formCreateParser);
4463
+ e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && he($, g.formCreateParser);
4450
4464
  }
4451
- function R() {
4465
+ function S() {
4452
4466
  return Zr(Be, e, i);
4453
4467
  }
4454
4468
  function N() {
4455
4469
  return Ne;
4456
4470
  }
4457
- function pe(c, g) {
4471
+ function de(c, g) {
4458
4472
  return h.Function(c.install) ? c.install(z, g) : h.Function(c) && c(z, g), this;
4459
4473
  }
4460
4474
  function z(c, g, $) {
@@ -4477,13 +4491,13 @@ function Kt(t) {
4477
4491
  loadData: m
4478
4492
  } : delete g.inherit, Kt(g);
4479
4493
  }
4480
- function Qt(c, g) {
4494
+ function xt(c, g) {
4481
4495
  s[c] = g;
4482
4496
  }
4483
- function Yt(c, g) {
4497
+ function Qt(c, g) {
4484
4498
  _[c] = g;
4485
4499
  }
4486
- function xt(c, g) {
4500
+ function Yt(c, g) {
4487
4501
  const $ = n[c] || {}, b = $.parsers || {};
4488
4502
  g.parsers && Object.keys(g.parsers).forEach((w) => {
4489
4503
  b[w] = Se(g.parsers[w], De);
@@ -4497,7 +4511,7 @@ function Kt(t) {
4497
4511
  });
4498
4512
  }
4499
4513
  function Le(c, g) {
4500
- se(m, c, g), we(c);
4514
+ ne(m, c, g), we(c);
4501
4515
  }
4502
4516
  function Oe(c, g) {
4503
4517
  const $ = (...b) => O(() => g(...b));
@@ -4507,7 +4521,7 @@ function Kt(t) {
4507
4521
  const $ = (c || "").split(".");
4508
4522
  c = $.shift();
4509
4523
  const b = $.join(".");
4510
- if (D(m, c) || F(m, c, vt), m[c] !== vt) {
4524
+ if (D(m, c) || k(m, c, vt), m[c] !== vt) {
4511
4525
  let w = m[c];
4512
4526
  return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? g : w;
4513
4527
  } else
@@ -4551,7 +4565,7 @@ function Kt(t) {
4551
4565
  options: yr({}),
4552
4566
  extendApiFn: l,
4553
4567
  fetchCache: /* @__PURE__ */ new WeakMap(),
4554
- tmpData: ie({})
4568
+ tmpData: re({})
4555
4569
  }), a.forEach((g) => {
4556
4570
  this.bus.$on(g.name, g.callback);
4557
4571
  }), V(() => {
@@ -4564,7 +4578,7 @@ function Kt(t) {
4564
4578
  init() {
4565
4579
  this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4566
4580
  this.initOptions(), this.$handle.api.refresh();
4567
- }, { 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();
4581
+ }, { deep: !0, flush: "sync" })), 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();
4568
4582
  },
4569
4583
  targetFormDriver(c, ...g) {
4570
4584
  if (this.renderDriver && this.renderDriver[c])
@@ -4573,8 +4587,8 @@ function Kt(t) {
4573
4587
  t(c, g, $) {
4574
4588
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4575
4589
  return b == null && (b = ""), b && g && Object.keys(g).forEach((w) => {
4576
- const j = new RegExp(`{${w}}`, "g");
4577
- b = b.replace(j, g[w]);
4590
+ const A = new RegExp(`{${w}}`, "g");
4591
+ b = b.replace(A, g[w]);
4578
4592
  }), b;
4579
4593
  },
4580
4594
  globalDataDriver(c) {
@@ -4585,34 +4599,34 @@ function Kt(t) {
4585
4599
  return L(b.data, g);
4586
4600
  {
4587
4601
  let w;
4588
- const j = this.fetchCache.get(b);
4589
- if (j) {
4590
- if (j.status && (w = L(j.data, g)), !j.loading)
4602
+ const A = this.fetchCache.get(b);
4603
+ if (A) {
4604
+ if (A.status && (w = L(A.data, g)), !A.loading)
4591
4605
  return w;
4592
- j.loading = !1, this.fetchCache.set(b, j);
4606
+ A.loading = !1, this.fetchCache.set(b, A);
4593
4607
  } else
4594
4608
  this.fetchCache.set(b, { status: !1 });
4595
- const S = ne(() => {
4596
- le();
4609
+ const R = ie(() => {
4610
+ ae();
4597
4611
  const J = this.fetchCache.get(b);
4598
4612
  this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (J && (J.loading = !0, this.fetchCache.set(b, J)), this.bus.$emit("$loadData.$globalData." + $)) : this.fetchCache.delete(b);
4599
- }, b.wait || 600), ae = (J) => {
4613
+ }, b.wait || 600), be = (J) => {
4600
4614
  this.fetchCache.set(b, { status: !0, data: J }), this.bus.$emit("$loadData.$globalData." + $);
4601
- }, X = (J, ue) => {
4602
- if (ue && b.watch === !1)
4603
- return le();
4604
- if (ue) {
4605
- S();
4615
+ }, oe = (J, le) => {
4616
+ if (le && b.watch === !1)
4617
+ return ae();
4618
+ if (le) {
4619
+ R();
4606
4620
  return;
4607
4621
  }
4608
- const me = this.$handle.loadFetchVar(Je(b), J);
4609
- this.$handle.api.fetch(me).then((te) => {
4610
- ae(te);
4611
- }).catch((te) => {
4612
- ae(null);
4622
+ const pe = this.$handle.loadFetchVar(Je(b), J);
4623
+ this.$handle.api.fetch(pe).then((ee) => {
4624
+ be(ee);
4625
+ }).catch((ee) => {
4626
+ be(null);
4613
4627
  });
4614
- }, le = this.watchLoadData(X);
4615
- return this.unwatch.push(le), w;
4628
+ }, ae = this.watchLoadData(oe);
4629
+ return this.unwatch.push(ae), w;
4616
4630
  }
4617
4631
  }
4618
4632
  },
@@ -4623,8 +4637,8 @@ function Kt(t) {
4623
4637
  globalLanguageDriver(c) {
4624
4638
  let g = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4625
4639
  if (g && (b = O(() => g(c))), b == null && $ && typeof $ == "object" && (b = L($, c)), b == null) {
4626
- const w = this.options.value.language || {}, j = this.getLocale();
4627
- b = L(w[j] || {}, c), b == null && (b = L(Bi[j] || {}, c));
4640
+ const w = this.options.value.language || {}, A = this.getLocale();
4641
+ b = L(w[A] || {}, c), b == null && (b = L(Bi[A] || {}, c));
4628
4642
  }
4629
4643
  return b;
4630
4644
  },
@@ -4634,16 +4648,13 @@ function Kt(t) {
4634
4648
  if (b) {
4635
4649
  const w = h.Function(b) ? b : W(b.handle);
4636
4650
  if (w) {
4637
- let j;
4638
- const S = this.watchLoadData((ae, X) => {
4639
- X ? (this.bus.$emit("$loadData.$var." + $), S()) : j = w(ae, this.$handle.api);
4640
- });
4641
- return this.unwatch.push(S), L(j, g);
4651
+ let A = w((...R) => this.$handle.api.getData(...R), this.$handle.api);
4652
+ return L(A, g);
4642
4653
  }
4643
4654
  }
4644
4655
  },
4645
4656
  setData(c, g, $) {
4646
- $ ? Le(c, g) : (se(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4657
+ $ ? Le(c, g) : (ne(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4647
4658
  },
4648
4659
  getLoadData(c, g) {
4649
4660
  let $ = null;
@@ -4679,34 +4690,34 @@ function Kt(t) {
4679
4690
  },
4680
4691
  watchLoadData(c, g) {
4681
4692
  let $ = {};
4682
- const b = (S) => {
4693
+ const b = (R) => {
4683
4694
  this.get || (this.get = w), O(() => {
4684
- c(w, S);
4695
+ c(w, R);
4685
4696
  }), this.get === w && (this.get = void 0);
4686
- }, w = (S, ae) => {
4687
- let X;
4688
- if (typeof S == "object" && (X = S.getValue, S = S.id), $[S])
4689
- return $[S].val;
4690
- const le = ye(() => X ? X() : this.getLoadData(S, ae)), J = S.split("."), ue = J.shift(), me = J.shift() || "", te = ne(() => {
4691
- const fe = X ? X() : this.getLoadData(S, ae);
4692
- if ($[S])
4693
- ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[S].val || JSON.stringify(fe) !== JSON.stringify($[S].val)) && ($[S].val = fe, b(!0));
4697
+ }, w = (R, be) => {
4698
+ let oe;
4699
+ if (typeof R == "object" && (oe = R.getValue, R = R.id), $[R])
4700
+ return $[R].val;
4701
+ const ae = ge(() => oe ? oe() : this.getLoadData(R, be)), J = R.split("."), le = J.shift(), pe = J.shift() || "", ee = ie(() => {
4702
+ const ue = oe ? oe() : this.getLoadData(R, be);
4703
+ if ($[R])
4704
+ ((ue instanceof Function || h.Object(ue) || Array.isArray(ue)) && ue === $[R].val || JSON.stringify(ue) !== JSON.stringify($[R].val)) && ($[R].val = ue, b(!0));
4694
4705
  else return;
4695
- }, g || 0), nr = B(le, (fe) => {
4696
- te();
4706
+ }, g || 0), nr = B(ae, (ue) => {
4707
+ ee();
4697
4708
  });
4698
- return this.bus.$on("$loadData." + ue, te), me && this.bus.$on("$loadData." + ue + "." + me, te), $[S] = {
4709
+ return this.bus.$on("$loadData." + le, ee), pe && this.bus.$on("$loadData." + le + "." + pe, ee), $[R] = {
4699
4710
  fn: () => {
4700
- this.bus.$off("$loadData." + ue, te), me && this.bus.$off("$loadData." + ue + "." + me, te), nr();
4711
+ this.bus.$off("$loadData." + le, ee), pe && this.bus.$off("$loadData." + le + "." + pe, ee), nr();
4701
4712
  },
4702
- val: le.value
4703
- }, le.value;
4713
+ val: ae.value
4714
+ }, ae.value;
4704
4715
  };
4705
4716
  b(!1);
4706
- const j = () => {
4707
- Object.keys($).forEach((S) => $[S].fn()), $ = {};
4717
+ const A = () => {
4718
+ Object.keys($).forEach((R) => $[R].fn()), $ = {};
4708
4719
  };
4709
- return this.unwatch.push(j), j;
4720
+ return this.unwatch.push(A), A;
4710
4721
  },
4711
4722
  isSub() {
4712
4723
  return this.vm.parent && this.vm.extendOption;
@@ -4766,27 +4777,27 @@ function Kt(t) {
4766
4777
  removeData: tr,
4767
4778
  refreshData: we,
4768
4779
  maker: f,
4769
- component: k,
4780
+ component: F,
4770
4781
  directive: T,
4771
- setModelField: Qt,
4772
- setFormula: Yt,
4773
- setDriver: xt,
4774
- register: he,
4782
+ setModelField: xt,
4783
+ setFormula: Qt,
4784
+ setDriver: Yt,
4785
+ register: ce,
4775
4786
  $vnode: N,
4776
- parser: de,
4777
- use: pe,
4787
+ parser: he,
4788
+ use: de,
4778
4789
  factory: Zt,
4779
4790
  componentAlias: Pe,
4780
4791
  copyRule: Lt,
4781
4792
  copyRules: Bt,
4782
- mergeRule: x,
4793
+ mergeRule: Q,
4783
4794
  fetch: Gt,
4784
- $form: R,
4795
+ $form: S,
4785
4796
  parseFn: W,
4786
4797
  parseJson: Pt,
4787
4798
  toJson: _e,
4788
4799
  useApp: I,
4789
- getApi: ee,
4800
+ getApi: Y,
4790
4801
  on: rr
4791
4802
  });
4792
4803
  }
@@ -4796,23 +4807,23 @@ function Kt(t) {
4796
4807
  install(g, $) {
4797
4808
  if (p = v(v({}, p), $ || {}), g._installedFormCreate === !0) return;
4798
4809
  g._installedFormCreate = !0;
4799
- const b = function(j, S = {}) {
4800
- return z(j, S, this);
4810
+ const b = function(A, R = {}) {
4811
+ return z(A, R, this);
4801
4812
  };
4802
4813
  st(b), g.prototype.$formCreate = b;
4803
- const w = R();
4804
- g.component(w.name, w), g.component("FcFragment", N()), o.forEach((j) => {
4805
- O(() => j(c, g));
4814
+ const w = S();
4815
+ g.component(w.name, w), g.component("FcFragment", N()), o.forEach((A) => {
4816
+ O(() => A(c, g));
4806
4817
  });
4807
4818
  }
4808
4819
  });
4809
4820
  }
4810
- if (st(E), ir(E), Oe("$cookie", Vi), Oe("$localStorage", Pi), Oe("$sessionStorage", Li), y.use({ fragment: "fcFragment" }), t.install && z.use(t), de(Di), t.inherit) {
4821
+ if (st(E), ir(E), Oe("$cookie", Vi), Oe("$localStorage", Pi), Oe("$sessionStorage", Li), y.use({ fragment: "fcFragment" }), t.install && z.use(t), he(Di), t.inherit) {
4811
4822
  const c = t.inherit;
4812
4823
  c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(m, c.loadData), c.formulas && C(_, c.formulas);
4813
4824
  }
4814
- const Fe = R();
4815
- return Se(Fe, E), Object.defineProperties(Fe, {
4825
+ const ke = S();
4826
+ return Se(ke, E), Object.defineProperties(ke, {
4816
4827
  fetch: {
4817
4828
  get() {
4818
4829
  return E.fetch;
@@ -4821,7 +4832,7 @@ function Kt(t) {
4821
4832
  E.fetch = c;
4822
4833
  }
4823
4834
  }
4824
- }), Fe.util = E, Fe;
4835
+ }), ke.util = E, ke;
4825
4836
  }
4826
4837
  function Ue(t) {
4827
4838
  if (h.Date(t))
@@ -4942,7 +4953,7 @@ const _t = "datePicker", Gi = {
4942
4953
  resetBtnIcon: "md-refresh",
4943
4954
  infoIcon: "ios-information-circle-outline"
4944
4955
  };
4945
- function Qi() {
4956
+ function xi() {
4946
4957
  return {
4947
4958
  type: "poptip",
4948
4959
  trigger: "hover",
@@ -4951,7 +4962,7 @@ function Qi() {
4951
4962
  icon: Ae.infoIcon
4952
4963
  };
4953
4964
  }
4954
- function Yi() {
4965
+ function Qi() {
4955
4966
  return {
4956
4967
  form: {
4957
4968
  inline: !1,
@@ -4986,10 +4997,10 @@ function Yi() {
4986
4997
  function wt(t, e) {
4987
4998
  D(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4988
4999
  }
4989
- function Z(t) {
5000
+ function X(t) {
4990
5001
  return t === !1;
4991
5002
  }
4992
- function xi(t, e) {
5003
+ function Yi(t, e) {
4993
5004
  D(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4994
5005
  }
4995
5006
  function He(t) {
@@ -5015,7 +5026,7 @@ const en = {
5015
5026
  },
5016
5027
  tidyOptions(t) {
5017
5028
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
5018
- xi(t, e);
5029
+ Yi(t, e);
5019
5030
  }), t;
5020
5031
  },
5021
5032
  tidyRule({ prop: t }) {
@@ -5023,20 +5034,20 @@ const en = {
5023
5034
  },
5024
5035
  mergeProp(t) {
5025
5036
  const e = {
5026
- info: Qi(),
5037
+ info: xi(),
5027
5038
  title: {},
5028
5039
  col: { span: 24 },
5029
5040
  wrap: {}
5030
5041
  };
5031
5042
  ["info", "wrap", "col", "title"].forEach((r) => {
5032
- t.prop[r] = Y([this.options[r] || {}, t.prop[r] || {}], e[r]);
5043
+ t.prop[r] = x([this.options[r] || {}, t.prop[r] || {}], e[r]);
5033
5044
  }), this.setSize(t.prop.props);
5034
5045
  },
5035
5046
  setSize(t) {
5036
5047
  !t.size && this.options.form.size && (t.size = this.options.form.size);
5037
5048
  },
5038
5049
  getDefaultOptions() {
5039
- return Yi();
5050
+ return Qi();
5040
5051
  },
5041
5052
  update() {
5042
5053
  const t = this.options.form;
@@ -5058,12 +5069,12 @@ const en = {
5058
5069
  });
5059
5070
  },
5060
5071
  render(t) {
5061
- return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, Z(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
5072
+ return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, X(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
5062
5073
  },
5063
5074
  makeWrap(t, e) {
5064
5075
  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;
5065
5076
  delete r.wrap.class, delete r.wrap.title;
5066
- const f = Z(r.wrap.show) ? e : this.$r(Y([r.wrap, {
5077
+ const f = X(r.wrap.show) ? e : this.$r(x([r.wrap, {
5067
5078
  props: U(v({
5068
5079
  labelWidth: o
5069
5080
  }, He(r.wrap || {})), {
@@ -5075,12 +5086,12 @@ const en = {
5075
5086
  ref: t.wrapRef,
5076
5087
  type: "formItem"
5077
5088
  }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5078
- return a === !0 || Z(l) || Z(s.show) ? f : this.makeCol(r, i, [f]);
5089
+ return a === !0 || X(l) || X(s.show) ? f : this.makeCol(r, i, [f]);
5079
5090
  },
5080
5091
  isTitle(t) {
5081
5092
  if (this.options.form.title === !1) return !1;
5082
5093
  const e = t.title;
5083
- return !(!e.title && !e.native || Z(e.show));
5094
+ return !(!e.title && !e.native || X(e.show));
5084
5095
  },
5085
5096
  makeInfo(t, e, r) {
5086
5097
  var u, f, p, d, m, y;
@@ -5089,7 +5100,7 @@ const en = {
5089
5100
  rule: r.rule,
5090
5101
  options: this.options
5091
5102
  }) : ((d = (p = r.refRule) == null ? void 0 : p.__$title) == null ? void 0 : d.value) + (n.labelSuffix || n["label-suffix"] || "")];
5092
- if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
5103
+ if (!X(s.show) && (s.info || s.native) && !X(s.icon)) {
5093
5104
  const _ = {
5094
5105
  type: s.type || "poptip",
5095
5106
  props: He(s),
@@ -5098,7 +5109,7 @@ const en = {
5098
5109
  };
5099
5110
  delete _.props.icon, delete _.props.show, delete _.props.info, delete _.props.align, delete _.props.native;
5100
5111
  const E = "content";
5101
- s.info && !D(_.props, E) && (_.props[E] = (y = (m = r.refRule) == null ? void 0 : m.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, _]), [
5112
+ s.info && !D(_.props, E) && (_.props[E] = (y = (m = r.refRule) == null ? void 0 : m.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(x([s, _]), [
5102
5113
  this.$r({
5103
5114
  type: "icon",
5104
5115
  props: { type: s.icon === !0 ? Ae.infoIcon : s.icon, size: 16 },
@@ -5107,7 +5118,7 @@ const en = {
5107
5118
  })
5108
5119
  ]));
5109
5120
  }
5110
- const l = Y([i, {
5121
+ const l = x([i, {
5111
5122
  props: He(i),
5112
5123
  key: `${e}tit`,
5113
5124
  class: "fc-form-title",
@@ -5136,7 +5147,7 @@ const en = {
5136
5147
  },
5137
5148
  makeFormBtn() {
5138
5149
  let t = [];
5139
- if (Z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), Z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5150
+ if (X(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), X(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5140
5151
  return;
5141
5152
  const e = this.$r({
5142
5153
  type: "formItem",
@@ -5183,7 +5194,7 @@ const en = {
5183
5194
  key: `${this.key}b1`
5184
5195
  }, [e]);
5185
5196
  }
5186
- }, oe = {}, tn = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5197
+ }, se = {}, tn = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5187
5198
  function rn(t) {
5188
5199
  tn.forEach((e) => {
5189
5200
  t[e] = P(e);
@@ -5221,12 +5232,12 @@ function ln(t) {
5221
5232
  };
5222
5233
  Object.keys(r).reduce((i, s) => (i[s] = P(e, (n) => n.props({ type: r[s][0], maxLength: r[s][1] })), i), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages;
5223
5234
  }
5224
- rn(oe);
5225
- nn(oe);
5226
- sn(oe);
5227
- an(oe);
5228
- ln(oe);
5229
- on(oe);
5235
+ rn(se);
5236
+ nn(se);
5237
+ sn(se);
5238
+ an(se);
5239
+ ln(se);
5240
+ on(se);
5230
5241
  function Ot(t, e) {
5231
5242
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5232
5243
  }
@@ -5248,7 +5259,7 @@ function un(t, e) {
5248
5259
  }), Promise.all(o).then(() => {
5249
5260
  i(!0), r && r(!0);
5250
5261
  }).catch((a) => {
5251
- s(a), r && r(a), e.vm.$emit("validate-fail", a, { api: t });
5262
+ s(a), r && r(a), e.vm.$emit("validate-fail", a, { api: t }), e.emitEvent("validate-fail", a, { api: t });
5252
5263
  });
5253
5264
  });
5254
5265
  },
@@ -5364,14 +5375,14 @@ function cn(t) {
5364
5375
  t.component(e.name, e);
5365
5376
  }), t.register(Xt), Xi.forEach((e) => {
5366
5377
  t.parser(e);
5367
- }), Object.keys(oe).forEach((e) => {
5368
- t.maker[e] = oe[e];
5378
+ }), Object.keys(se).forEach((e) => {
5379
+ t.maker[e] = se[e];
5369
5380
  });
5370
5381
  }
5371
5382
  function hn() {
5372
5383
  return Kt({
5373
5384
  ui: "iview",
5374
- version: "2.7.12",
5385
+ version: "2.7.14",
5375
5386
  manager: en,
5376
5387
  install: cn,
5377
5388
  extendApi: un,
@@ -5382,10 +5393,10 @@ function hn() {
5382
5393
  }
5383
5394
  });
5384
5395
  }
5385
- const Qe = hn();
5386
- typeof window != "undefined" && (window.formCreate = Qe, window.Vue && Qe.install(window.Vue));
5387
- const mn = Qe.maker;
5396
+ const xe = hn();
5397
+ typeof window != "undefined" && (window.formCreate = xe, window.Vue && xe.install(window.Vue));
5398
+ const mn = xe.maker;
5388
5399
  export {
5389
- Qe as default,
5400
+ xe as default,
5390
5401
  mn as maker
5391
5402
  };