@form-create/view-design 2.7.14 → 2.7.15

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/view-design v2.7.14
3
+ * @form-create/view-design v2.7.15
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -11,7 +11,7 @@ var sr = Object.defineProperty, or = Object.defineProperties;
11
11
  var ar = Object.getOwnPropertyDescriptors;
12
12
  var ot = Object.getOwnPropertySymbols;
13
13
  var lr = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
14
- var at = (t, e, r) => e in t ? sr(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 ? sr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, _ = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
16
  lr.call(e, r) && at(t, r, e[r]);
17
17
  if (ot)
@@ -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 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";
22
+ import ye, { 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 me, computed as ge, toRef as De, 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 j = /* @__PURE__ */ $r(Or);
53
+ const D = /* @__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 kr = "fcCheckbox", Fr = {
58
- name: kr,
57
+ const Fr = "fcCheckbox", kr = {
58
+ name: Fr,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -100,7 +100,7 @@ const kr = "fcCheckbox", Fr = {
100
100
  },
101
101
  render() {
102
102
  const t = arguments[0];
103
- return t("CheckboxGroup", j([{}, this.formCreateInject.prop, {
103
+ return t("CheckboxGroup", D([{}, this.formCreateInject.prop, {
104
104
  ref: "el"
105
105
  }, {
106
106
  props: {
@@ -111,8 +111,8 @@ const kr = "fcCheckbox", Fr = {
111
111
  input: this.onInput
112
112
  }
113
113
  }]), [this.options().map((e, r) => {
114
- const i = v({}, e);
115
- return delete i.value, t("Checkbox", j([{}, {
114
+ const i = _({}, e);
115
+ return delete i.value, t("Checkbox", D([{}, {
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 kt(t) {
130
+ function Ft(t) {
131
131
  return {
132
132
  name: Sr,
133
133
  props: {
@@ -286,7 +286,7 @@ function kt(t) {
286
286
  readonly: !0,
287
287
  clearable: !1
288
288
  };
289
- return e("Input", j([{}, {
289
+ return e("Input", D([{}, {
290
290
  props: r
291
291
  }, {}, {
292
292
  on: {
@@ -325,7 +325,7 @@ function kt(t) {
325
325
  },
326
326
  makeHandleIcon(e, r) {
327
327
  const i = this.$createElement;
328
- return i("icon", j([{}, {
328
+ return i("icon", D([{}, {
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 kt(t) {
338
338
  },
339
339
  makeRemoveIcon(e, r) {
340
340
  const i = this.$createElement;
341
- return i("icon", j([{}, {
341
+ return i("icon", D([{}, {
342
342
  props: {
343
343
  type: "ios-trash-outline"
344
344
  }
@@ -351,7 +351,7 @@ function kt(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", j([{}, {
354
+ return this.makeGroup(this.fileList.map((r, i) => this.makeItem(i, [e("icon", D([{}, {
355
355
  props: {
356
356
  type: t.fileIcon,
357
357
  size: 40
@@ -378,7 +378,7 @@ function kt(t) {
378
378
  click: () => this.showModel()
379
379
  },
380
380
  key: this.key("btn")
381
- }, [e("icon", j([{}, {
381
+ }, [e("icon", D([{}, {
382
382
  props: {
383
383
  type: this.icon,
384
384
  size: 20
@@ -450,7 +450,7 @@ function kt(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", j([{}, {
453
+ }, [i, e("Modal", D([{}, {
454
454
  props: {
455
455
  mask: this.previewMask,
456
456
  title: l,
@@ -468,8 +468,8 @@ function kt(t) {
468
468
  attrs: {
469
469
  src: this.previewImage
470
470
  }
471
- })]), e("Modal", j([{}, {
472
- props: v({
471
+ })]), e("Modal", D([{}, {
472
+ props: _({
473
473
  width: s,
474
474
  title: a
475
475
  }, this.modal)
@@ -503,11 +503,11 @@ function kt(t) {
503
503
  }
504
504
  };
505
505
  }
506
- const Ft = kt({
506
+ const kt = Ft({
507
507
  fileIcon: "md-document",
508
508
  fileUpIcon: "ios-folder-open"
509
509
  });
510
- Ft.v2 = kt({
510
+ kt.v2 = Ft({
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", j([{}, this.formCreateInject.prop, {}, {
556
+ return t("RadioGroup", D([{}, this.formCreateInject.prop, {}, {
557
557
  props: {
558
558
  value: this.trueValue
559
559
  }
@@ -563,8 +563,8 @@ const Rr = "fcRadio", Er = {
563
563
  input: this.onInput
564
564
  }
565
565
  }]), [this.options().map((e, r) => {
566
- const i = v({}, e);
567
- return delete i.value, t("Radio", j([{}, {
566
+ const i = _({}, e);
567
+ return delete i.value, t("Radio", D([{}, {
568
568
  props: i
569
569
  }, {
570
570
  key: "" + r + "-" + e.value
@@ -604,11 +604,11 @@ const Rr = "fcRadio", Er = {
604
604
  return h.type(e, t);
605
605
  };
606
606
  });
607
- function D(t, e) {
607
+ function j(t, e) {
608
608
  return {}.hasOwnProperty.call(t, e);
609
609
  }
610
- const Dr = "fcSelect", jr = {
611
- name: Dr,
610
+ const jr = "fcSelect", Dr = {
611
+ name: jr,
612
612
  functional: !0,
613
613
  props: {
614
614
  formCreateInject: {
@@ -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", j([{}, {
622
+ return t("Option", D([{}, {
623
623
  props: n
624
624
  }, {
625
625
  key: "" + o + "-" + n.value
@@ -632,9 +632,9 @@ 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", j([{}, e.data, {
635
+ return t("Select", D([{}, e.data, {
636
636
  ref: "el"
637
- }]), [(Array.isArray(s) ? s : []).map((n, o) => D(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
637
+ }]), [(Array.isArray(s) ? s : []).map((n, o) => j(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
638
638
  },
639
639
  mounted() {
640
640
  this.$emit("fc.el", this.$refs.el);
@@ -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", j([{}, this.formCreateInject.prop, {
687
+ return this.type === "selected" ? e["on-select-change"] = this.onInput : e["on-check-change"] = this.onInput, t("Tree", D([{}, this.formCreateInject.prop, {
688
688
  ref: "tree"
689
689
  }, {
690
690
  on: e
@@ -702,7 +702,7 @@ function ut(t) {
702
702
  };
703
703
  }
704
704
  function ft(t) {
705
- return U(v({}, t), {
705
+ return U(_({}, t), {
706
706
  file: t,
707
707
  value: t
708
708
  });
@@ -784,7 +784,7 @@ function St(t) {
784
784
  src: e.url
785
785
  },
786
786
  key: this.key("img" + r)
787
- }) : i("icon", j([{}, {
787
+ }) : i("icon", D([{}, {
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", j([{}, {
822
+ return i("Progress", D([{}, {
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", j([{}, this.formCreateInject.prop, {}, {
852
+ return e("Upload", D([{}, 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", j([{}, {
862
+ }, [e("icon", D([{}, {
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", j([{}, {
881
+ }, [[this.formCreateInject.prop.props.showUploadList ? [] : this.makeFiles(), this.makeUpload()], e("Modal", D([{}, {
882
882
  props: {
883
883
  title: this.modalTitle,
884
884
  footerHide: !0
@@ -915,13 +915,13 @@ Rt.v2 = St({
915
915
  fileIcon: "document-text",
916
916
  imgUpIcon: "image"
917
917
  });
918
- function k(t, e, r) {
918
+ function F(t, e, r) {
919
919
  ye.set(t, e, r);
920
920
  }
921
- function te(t, e) {
921
+ function re(t, e) {
922
922
  (ye.del || ye.delete)(t, e);
923
923
  }
924
- function Ce(t, e = {}, r) {
924
+ function we(t, e = {}, r) {
925
925
  let i = !1;
926
926
  for (let s in e)
927
927
  if (Object.prototype.hasOwnProperty.call(e, s)) {
@@ -929,36 +929,36 @@ 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 && k(t, s, []);
932
+ i = !1, o && F(t, s, []);
933
933
  else if (n._clone && r !== void 0)
934
934
  if (r)
935
- n = n.getRule(), o && k(t, s, {});
935
+ n = n.getRule(), o && F(t, s, {});
936
936
  else {
937
- k(t, s, n._clone());
937
+ F(t, s, n._clone());
938
938
  continue;
939
939
  }
940
940
  else
941
- o && k(t, s, {});
942
- t[s] = Ce(t[s], n, r);
941
+ o && F(t, s, {});
942
+ t[s] = we(t[s], n, r);
943
943
  } else
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));
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));
945
945
  }
946
946
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
947
947
  }
948
948
  function G(t) {
949
- return Ce({}, { value: t }).value;
949
+ return we({}, { value: t }).value;
950
950
  }
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) && k(t, i, e[i]);
954
+ Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
955
955
  return t;
956
956
  };
957
957
  function C() {
958
958
  return Lr.apply(this, arguments);
959
959
  }
960
960
  function Je(t) {
961
- return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
961
+ return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : _({}, t);
962
962
  }
963
963
  const Br = "fcGroup", Tr = {
964
964
  name: Br,
@@ -1042,7 +1042,7 @@ const Br = "fcGroup", Tr = {
1042
1042
  const s = i.$f.formData();
1043
1043
  if (t === e)
1044
1044
  i.$f.deferSyncValue(() => {
1045
- Ce(i.rule, t), i.$f.setValue(s);
1045
+ we(i.rule, t), i.$f.setValue(s);
1046
1046
  }, !0);
1047
1047
  else {
1048
1048
  const n = i.$f.formData();
@@ -1082,7 +1082,7 @@ const Br = "fcGroup", Tr = {
1082
1082
  },
1083
1083
  methods: {
1084
1084
  _value(t) {
1085
- return t && D(t, this.field) ? t[this.field] : t;
1085
+ return t && j(t, this.field) ? t[this.field] : t;
1086
1086
  },
1087
1087
  cache(t, e) {
1088
1088
  this.cacheValue[t] = JSON.stringify(e);
@@ -1095,7 +1095,7 @@ const Br = "fcGroup", Tr = {
1095
1095
  if (i.filter((n) => r[n].$f).length !== i.length)
1096
1096
  return;
1097
1097
  const s = i.map((n) => {
1098
- const o = t === n ? e : v({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1098
+ const o = t === n ? e : _({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1099
1099
  return this.cache(n, a), a;
1100
1100
  });
1101
1101
  this.input(s);
@@ -1107,7 +1107,7 @@ const Br = "fcGroup", Tr = {
1107
1107
  }), this.cacheValue[t] !== JSON.stringify(r ? e[r] : e) && (this.cache(t, e), i && i.coverValue(e || {}));
1108
1108
  },
1109
1109
  addRule(t, e) {
1110
- const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? v({}, this.options) : {
1110
+ const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? _({}, this.options) : {
1111
1111
  submitBtn: !1,
1112
1112
  resetBtn: !1
1113
1113
  };
@@ -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, j([{
1238
+ }, [t(i, D([{
1239
1239
  key: o
1240
1240
  }, {
1241
1241
  on: {
@@ -1312,7 +1312,7 @@ const Br = "fcGroup", Tr = {
1312
1312
  submitBtn: !1,
1313
1313
  resetBtn: !1
1314
1314
  };
1315
- t.formData = v({}, this.value || {}), this.cacheRule = {
1315
+ t.formData = _({}, this.value || {}), this.cacheRule = {
1316
1316
  rule: this.rule,
1317
1317
  options: t
1318
1318
  };
@@ -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, j([{}, {
1337
+ return t(i, D([{}, {
1338
1338
  on: {
1339
1339
  "update:value": this.formData,
1340
1340
  "emit-event": this.emitEvent,
@@ -1350,16 +1350,16 @@ const Br = "fcGroup", Tr = {
1350
1350
  }]));
1351
1351
  }
1352
1352
  }, Ur = [
1353
- Fr,
1353
+ kr,
1354
1354
  Er,
1355
- jr,
1355
+ Dr,
1356
1356
  Ir,
1357
1357
  Mr,
1358
- Ft,
1358
+ kt,
1359
1359
  Rt,
1360
1360
  Tr
1361
1361
  ];
1362
- function ie(t, e) {
1362
+ function ne(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);
@@ -1372,15 +1372,15 @@ function $e(t) {
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"], x = (t, e = {}, r = {}) => {
1376
- const i = [...Et, ...r.normal || []], s = [...Dt, ...r.array || []], n = [...jt, ...r.functional || []], o = r.props || [];
1375
+ const Et = ["attrs", "props", "domProps", "scopedSlots"], jt = ["class", "style", "directives"], Dt = ["on", "nativeOn", "hook"], x = (t, e = {}, r = {}) => {
1376
+ const i = [...Et, ...r.normal || []], s = [...jt, ...r.array || []], n = [...Dt, ...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
1381
  a[u] = x([l[u]], a[u]);
1382
1382
  else if (i.indexOf(u) > -1)
1383
- a[u] = v(v({}, a[u]), l[u]);
1383
+ a[u] = _(_({}, a[u]), l[u]);
1384
1384
  else if (s.indexOf(u) > -1) {
1385
1385
  const f = a[u] instanceof Array ? a[u] : [a[u]], p = l[u] instanceof Array ? l[u] : [l[u]];
1386
1386
  a[u] = [...f, ...p];
@@ -1397,14 +1397,14 @@ const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style"
1397
1397
  else
1398
1398
  a[u] = l[u];
1399
1399
  else
1400
- i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = v({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? v({}, l[u]) : l[u] : a[u] = l[u];
1400
+ i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = _({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? _({}, l[u]) : l[u] : a[u] = l[u];
1401
1401
  return a;
1402
1402
  }, e);
1403
1403
  }, Gr = (t, e) => function() {
1404
1404
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1405
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, ...Qe, ...Ye];
1407
+ return [...At, ...Et, ...jt, ...Dt, ...Qe, ...Ye];
1408
1408
  }
1409
1409
  function Vt(t, e, r) {
1410
1410
  return `[form-create ${t}]: ${e}`;
@@ -1419,8 +1419,8 @@ function zr(t) {
1419
1419
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1420
1420
  }
1421
1421
  const We = "[[FORM-CREATE-PREFIX-", Ke = "-FORM-CREATE-SUFFIX]]";
1422
- function _e(t, e) {
1423
- return JSON.stringify(Ce(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1422
+ function Ce(t, e) {
1423
+ return JSON.stringify(we(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1424
1424
  if (!(i && i._isVue === !0)) {
1425
1425
  if (typeof i != "function")
1426
1426
  return i;
@@ -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 ne(t, e, r) {
1488
+ function se(t, e, r) {
1489
1489
  let i = t, s;
1490
1490
  return (e || "").split(".").forEach((n) => {
1491
- s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1492
- }), k(i, s, r), i;
1491
+ s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
1492
+ }), F(i, s, r), i;
1493
1493
  }
1494
1494
  function Xe(t, e) {
1495
1495
  return {
@@ -1503,7 +1503,7 @@ function Lt(t, e) {
1503
1503
  return Bt([t], e || !1)[0];
1504
1504
  }
1505
1505
  function Bt(t, e) {
1506
- return Ce([], [...t], e || !1);
1506
+ return we([], [...t], e || !1);
1507
1507
  }
1508
1508
  function Q(t, e) {
1509
1509
  return x(Array.isArray(e) ? e : [e], t, { array: Qe, normal: Ye }), t;
@@ -1552,7 +1552,7 @@ function Kr(t, e) {
1552
1552
  } else
1553
1553
  return Ze(t, e);
1554
1554
  }
1555
- function Fe() {
1555
+ function Se() {
1556
1556
  const t = {}, e = (r) => r || "default";
1557
1557
  return {
1558
1558
  setSlot(r, i) {
@@ -1588,7 +1588,7 @@ function Fe() {
1588
1588
  }
1589
1589
  };
1590
1590
  }
1591
- function Se(t, e) {
1591
+ function Re(t, e) {
1592
1592
  return Object.setPrototypeOf(t, e), t;
1593
1593
  }
1594
1594
  const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, fe = {
@@ -1726,77 +1726,77 @@ 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 = re({
1729
+ const { rule: l, value: u, subForm: f, inFor: p } = lt(s), d = ie({
1730
1730
  ctxInject: {},
1731
1731
  destroyed: !1,
1732
1732
  isShow: !0,
1733
1733
  unique: 1,
1734
1734
  renderRule: [...l.value || []],
1735
1735
  updateValue: JSON.stringify(u.value || {})
1736
- }), m = new t(n), y = m.api(), _ = p.value, E = () => {
1736
+ }), g = new t(n), y = g.api(), v = p.value, E = () => {
1737
1737
  if (o) {
1738
- const F = Ee(n, o);
1739
- if (F) {
1738
+ const k = Ee(n, o);
1739
+ if (k) {
1740
1740
  let S;
1741
- _ ? (S = H(F.getSubForm()), S.push(y)) : S = y, F.subForm(S);
1741
+ v ? (S = H(k.getSubForm()), S.push(y)) : S = y, k.subForm(S);
1742
1742
  }
1743
1743
  }
1744
1744
  }, Y = () => {
1745
- const F = Ee(n, o);
1746
- if (F)
1747
- if (_) {
1748
- const S = H(F.getSubForm()), N = S.indexOf(y);
1745
+ const k = Ee(n, o);
1746
+ if (k)
1747
+ if (v) {
1748
+ const S = H(k.getSubForm()), N = S.indexOf(y);
1749
1749
  N > -1 && S.splice(N, 1);
1750
1750
  } else
1751
- F.subForm();
1751
+ k.subForm();
1752
1752
  };
1753
1753
  let I = null;
1754
1754
  dr(() => {
1755
1755
  B(() => {
1756
- let F = "";
1756
+ let k = "";
1757
1757
  const S = s.option && s.option.globalClass || {};
1758
1758
  Object.keys(S).forEach((N) => {
1759
1759
  let de = "";
1760
1760
  S[N].style && Object.keys(S[N].style).forEach((z) => {
1761
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 || "";
1762
+ }), S[N].content && (de += S[N].content + ";"), de && (k += `.${N}{${de}}`);
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 || "";
1764
1764
  }, () => {
1765
1765
  });
1766
1766
  });
1767
- const T = ie(() => {
1768
- m.bus.$emit("$loadData.$topForm");
1769
- }, 100), ce = ie(function() {
1770
- m.bus.$emit("$loadData.$scopeForm");
1771
- }, 100), Pe = ie(() => {
1772
- m.bus.$emit("$loadData.$form");
1773
- }, 100), he = (F) => {
1774
- m.bus.$emit("change-$form." + F);
1767
+ const T = ne(() => {
1768
+ g.bus.$emit("$loadData.$topForm");
1769
+ }, 100), ce = ne(function() {
1770
+ g.bus.$emit("$loadData.$scopeForm");
1771
+ }, 100), Pe = ne(() => {
1772
+ g.bus.$emit("$loadData.$form");
1773
+ }, 100), he = (k) => {
1774
+ g.bus.$emit("change-$form." + k);
1775
1775
  };
1776
1776
  return pr(() => {
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();
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), g.mounted();
1778
1778
  }), mr(() => {
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);
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, g.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1780
1780
  }), gr(() => {
1781
- m.updated();
1782
- }), B(f, (F) => {
1783
- F ? E() : Y();
1781
+ g.updated();
1782
+ }), B(f, (k) => {
1783
+ k ? E() : Y();
1784
1784
  }, { immediate: !0 }), B(() => s.option, () => {
1785
- m.initOptions(), y.refresh();
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());
1785
+ g.initOptions(), y.refresh();
1786
+ }, { deep: !0, flush: "sync" }), B(() => [...l.value], (k) => {
1787
+ g.$handle.isBreakWatch() || k.length === d.renderRule.length && k.every((S) => d.renderRule.indexOf(S) > -1) || (g.$handle.updateAppendData(), g.$handle.reloadRule(l.value), n.renderRule());
1788
1788
  }), B(() => [s.disabled, s.preview], () => {
1789
1789
  y.refresh();
1790
- }), B(u, (F) => {
1791
- _e(F || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(F || {}) : y.setValue(F || {}));
1790
+ }), B(u, (k) => {
1791
+ Ce(k || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(k || {}) : y.setValue(k || {}));
1792
1792
  }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1793
- y.coverValue({}), m.$handle.updateAppendData(), V(() => {
1793
+ y.coverValue({}), g.$handle.updateAppendData(), V(() => {
1794
1794
  V(() => {
1795
1795
  y.clearValidateState();
1796
1796
  });
1797
1797
  });
1798
- }, { flush: "sync" }), U(v({
1799
- fc: me(m),
1798
+ }, { flush: "sync" }), U(_({
1799
+ fc: me(g),
1800
1800
  parent: o && me(o),
1801
1801
  top: me(a),
1802
1802
  fapi: me(y)
@@ -1808,10 +1808,10 @@ function Zr(t, e, r) {
1808
1808
  renderRule() {
1809
1809
  d.renderRule = [...l.value || []];
1810
1810
  },
1811
- updateValue(F) {
1811
+ updateValue(k) {
1812
1812
  if (d.destroyed) return;
1813
- const S = _e(F);
1814
- d.updateValue !== S && (d.updateValue = S, n.$emit("update:value", F), V(() => {
1813
+ const S = Ce(k);
1814
+ d.updateValue !== S && (d.updateValue = S, n.$emit("update:value", k), V(() => {
1815
1815
  Pe(), o ? f.value || ce() : (T(), ce());
1816
1816
  }));
1817
1817
  }
@@ -1848,7 +1848,7 @@ C(tt.prototype, {
1848
1848
  return this._data;
1849
1849
  },
1850
1850
  setProp(t, e) {
1851
- return k(this._data, t, e), this;
1851
+ return F(this._data, t, e), this;
1852
1852
  },
1853
1853
  _clone() {
1854
1854
  const t = new this.constructor();
@@ -1923,7 +1923,7 @@ function Gt(t) {
1923
1923
  }
1924
1924
  function gt(t, e, r) {
1925
1925
  return new Promise((i, s) => {
1926
- (e || Gt)(U(v({}, t), {
1926
+ (e || Gt)(U(_({}, t), {
1927
1927
  onSuccess(n) {
1928
1928
  let o = (l) => l;
1929
1929
  const a = W(t.parse);
@@ -1943,10 +1943,10 @@ function ei(t) {
1943
1943
  return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1944
1944
  }
1945
1945
  function r(n, o, a) {
1946
- h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1946
+ h.Undef(n) ? n = Object.keys(_(_({}, 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
- k(f.rule, o, a), t.$render.clearCache(f);
1949
+ F(f.rule, o, a), t.$render.clearCache(f);
1950
1950
  });
1951
1951
  });
1952
1952
  }
@@ -2016,7 +2016,7 @@ function ei(t) {
2016
2016
  }
2017
2017
  },
2018
2018
  get formulas() {
2019
- return v({}, t.fc.formulas);
2019
+ return _({}, t.fc.formulas);
2020
2020
  },
2021
2021
  formData(n) {
2022
2022
  if (n == null || typeof n == "boolean") {
@@ -2029,17 +2029,17 @@ function ei(t) {
2029
2029
  },
2030
2030
  getValue(n) {
2031
2031
  const o = t.getFieldCtx(n);
2032
- return o ? ve(o.rule.value) : t.options.appendValue !== !1 && D(t.appendData, n) ? ve(t.appendData[n]) : void 0;
2032
+ return o ? ve(o.rule.value) : t.options.appendValue !== !1 && j(t.appendData, n) ? ve(t.appendData[n]) : void 0;
2033
2033
  },
2034
2034
  coverValue(n) {
2035
- const o = v({}, n || {});
2035
+ const o = _({}, n || {});
2036
2036
  t.deferSyncValue(() => {
2037
2037
  t.appendData = {}, s.fields().forEach((a) => {
2038
2038
  const l = t.fieldCtx[a];
2039
2039
  if (l) {
2040
- const u = D(n, a);
2040
+ const u = j(n, a);
2041
2041
  l.forEach((f) => {
2042
- k(f.rule, "value", u ? n[a] : void 0);
2042
+ F(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
- k(u.rule, "value", o[a]);
2055
+ F(u.rule, "value", o[a]);
2056
2056
  });
2057
2057
  });
2058
2058
  }, !0);
@@ -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
- k(l.rule.props, "disabled", !!n);
2119
+ F(l.rule.props, "disabled", !!n);
2120
2120
  });
2121
2121
  }), t.refresh();
2122
2122
  },
@@ -2174,7 +2174,7 @@ function ei(t) {
2174
2174
  t.$manager.updateOptions(t.options), s.refresh();
2175
2175
  },
2176
2176
  hideForm: (n) => {
2177
- k(t.vm, "isShow", !n);
2177
+ F(t.vm, "isShow", !n);
2178
2178
  },
2179
2179
  changeStatus: () => t.changeStatus,
2180
2180
  clearChangeStatus: () => {
@@ -2233,7 +2233,7 @@ function ei(t) {
2233
2233
  },
2234
2234
  setEffect(n, o, a) {
2235
2235
  const l = t.getCtx(n);
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));
2236
+ l && o && (o[0] === "$" && (o = o.substr(1)), j(l.rule, "$" + o) && F(l.rule, "$" + o, a), j(l.rule, "effect") || F(l.rule, "effect", {}), F(l.rule.effect, o, a));
2237
2237
  },
2238
2238
  clearEffectData(n, o) {
2239
2239
  const a = t.getCtx(n);
@@ -2273,7 +2273,7 @@ function ei(t) {
2273
2273
  return O(() => s.method(n, o)(...a));
2274
2274
  },
2275
2275
  toJson(n) {
2276
- return _e(s.rule, n);
2276
+ return Ce(s.rule, n);
2277
2277
  },
2278
2278
  trigger(n, o, ...a) {
2279
2279
  const l = s.el(n);
@@ -2320,7 +2320,7 @@ function ei(t) {
2320
2320
  const l = s.getChildrenRuleList(n);
2321
2321
  t.deferSyncValue(() => {
2322
2322
  l.forEach((u) => {
2323
- D(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2323
+ j(o, u.field) ? F(u, "value", o[u.field]) : a && F(u, "value", void 0);
2324
2324
  });
2325
2325
  });
2326
2326
  },
@@ -2364,6 +2364,10 @@ function ei(t) {
2364
2364
  t.deferSyncValue(n, o);
2365
2365
  },
2366
2366
  bus: t.bus,
2367
+ getCurrentFormRule() {
2368
+ var n;
2369
+ return (n = t.vm.getGroupInject()) == null ? void 0 : n.rule;
2370
+ },
2367
2371
  fetch(n) {
2368
2372
  return new Promise((o, a) => {
2369
2373
  n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => gt(n, t.fc.create.fetch, s).then((l) => {
@@ -2470,7 +2474,7 @@ function ri(t) {
2470
2474
  if (!this.vm.isShow)
2471
2475
  return;
2472
2476
  this.$manager.beforeRender();
2473
- const e = Fe();
2477
+ const e = Se();
2474
2478
  return this.sort.forEach((r) => {
2475
2479
  this.renderSlot(e, this.$handle.ctxs[r]);
2476
2480
  }), this.$manager.render(e);
@@ -2488,12 +2492,12 @@ function ri(t) {
2488
2492
  },
2489
2493
  setOptions(e) {
2490
2494
  const r = e.loadPending({ key: "options", origin: e.prop.options, def: [] });
2491
- e.prop.options = r, e.prop.optionsTo && r && ne(e.prop, e.prop.optionsTo, r);
2495
+ e.prop.options = r, e.prop.optionsTo && r && se(e.prop, e.prop.optionsTo, r);
2492
2496
  },
2493
2497
  deepSet(e) {
2494
2498
  const r = e.rule.deep;
2495
2499
  r && Object.keys(r).sort((i, s) => i.length < s.length ? -1 : 1).forEach((i) => {
2496
- ne(e.prop, i, r[i]);
2500
+ se(e.prop, i, r[i]);
2497
2501
  });
2498
2502
  },
2499
2503
  parseSide(e, r) {
@@ -2541,13 +2545,13 @@ function ri(t) {
2541
2545
  }, (() => {
2542
2546
  if (h.Function(n.renderSlots[y]))
2543
2547
  return O(() => n.renderSlots[y]());
2544
- const _ = this.parseSide(n.renderSlots[y], e);
2545
- return this.renderRule(_);
2548
+ const v = this.parseSide(n.renderSlots[y], e);
2549
+ return this.renderRule(v);
2546
2550
  })()));
2547
2551
  });
2548
2552
  const d = this.getTypeSlot(e);
2549
- let m;
2550
- 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;
2553
+ let g;
2554
+ return d ? (u.children = f, g = d(u)) : g = a ? e.parser.preview(Je(f), e) : e.parser.render(Je(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;
2551
2555
  }, this.setCache(e, s, r);
2552
2556
  }
2553
2557
  return (...s) => {
@@ -2615,8 +2619,8 @@ function ri(t) {
2615
2619
  preview: e.prop.preview,
2616
2620
  options: e.prop.options,
2617
2621
  prop: function() {
2618
- const s = v({}, e.prop);
2619
- return s.on = s.on ? v({}, s.on) : {}, delete s.model, s;
2622
+ const s = _({}, e.prop);
2623
+ return s.on = s.on ? _({}, s.on) : {}, delete s.model, s;
2620
2624
  }(),
2621
2625
  children: e.loadChildrenPending()
2622
2626
  }), i;
@@ -2624,7 +2628,7 @@ function ri(t) {
2624
2628
  ctxProp(e) {
2625
2629
  const { ref: r, key: i, rule: s } = e;
2626
2630
  this.$manager.mergeProp(e), e.parser.mergeProp(e);
2627
- const n = v({}, e.prop.on || {}), o = {};
2631
+ const n = _({}, e.prop.on || {}), o = {};
2628
2632
  Object.keys(n).forEach((l) => {
2629
2633
  if (l.indexOf("native.") === 0)
2630
2634
  o[l.replace("native.", "")] = n[l], delete n[l];
@@ -2685,7 +2689,7 @@ function ri(t) {
2685
2689
  },
2686
2690
  renderChildren(e, r, i) {
2687
2691
  if (!h.trueArray(e)) return [];
2688
- const s = Fe();
2692
+ const s = Se();
2689
2693
  return e.map((n) => {
2690
2694
  if (n) {
2691
2695
  if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
@@ -2711,7 +2715,7 @@ function ri(t) {
2711
2715
  },
2712
2716
  createRuleVnode(e, r, i) {
2713
2717
  this.force = i !== !1, this.tmpInput = r;
2714
- const s = Fe();
2718
+ const s = Se();
2715
2719
  return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
2716
2720
  },
2717
2721
  renderRule(e, r, i) {
@@ -2726,11 +2730,11 @@ function ri(t) {
2726
2730
  a && (s = q(a));
2727
2731
  }
2728
2732
  if (!s) return;
2729
- const n = Fe();
2733
+ const n = Se();
2730
2734
  h.trueArray(e.children) && e.children.forEach((a) => {
2731
2735
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2732
2736
  });
2733
- const o = v({}, e);
2737
+ const o = _({}, e);
2734
2738
  return delete o.type, delete o.is, this.vNode.make(s, o, n.mergeBag(r).getSlots());
2735
2739
  }
2736
2740
  });
@@ -2742,7 +2746,7 @@ function rt(t) {
2742
2746
  fc: t.fc,
2743
2747
  vm: t.vm,
2744
2748
  $manager: t.$manager,
2745
- vNode: new t.fc.CreateNode(t.vm),
2749
+ vNode: new t.fc.CreateNode(t),
2746
2750
  force: !1,
2747
2751
  tmpInput: null,
2748
2752
  id: ii++
@@ -2787,14 +2791,14 @@ function ni(t) {
2787
2791
  let p, d = n || o || a;
2788
2792
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2789
2793
  r || (d = `native-${d}`);
2790
- const m = $e(`${d}-${f}`), y = (..._) => {
2791
- this.vm.$emit(m, ..._), this.vm.$emit("emit-event", m, ..._), this.bus.$emit(m, ..._);
2794
+ const g = $e(`${d}-${f}`), y = (...v) => {
2795
+ this.vm.$emit(g, ...v), this.vm.$emit("emit-event", g, ...v), this.bus.$emit(g, ...v);
2792
2796
  };
2793
2797
  if (y.__emit = !0, !p && l === !1)
2794
2798
  i[f] = y;
2795
2799
  else {
2796
- let _ = p || l || this.options.injectEvent;
2797
- i[f] = h.Undef(_) ? y : this.inject(s, y, _);
2800
+ let v = p || l || this.options.injectEvent;
2801
+ i[f] = h.Undef(v) ? y : this.inject(s, y, v);
2798
2802
  }
2799
2803
  }
2800
2804
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2828,7 +2832,7 @@ function ni(t) {
2828
2832
  let f = !1, p;
2829
2833
  if (i && u.indexOf("$form.") === 0) {
2830
2834
  const d = u.split(".");
2831
- d.shift(), D(i.value, d[0]) && (f = !0, p = r ? r({
2835
+ d.shift(), j(i.value, d[0]) && (f = !0, p = r ? r({
2832
2836
  id: "$form." + d[0] + "_" + i.rule.__fc__.id,
2833
2837
  getValue: () => L(i.value, d)
2834
2838
  }) : L(i.value, d));
@@ -2840,16 +2844,16 @@ function ni(t) {
2840
2844
  d.key ? f.push(d.key) : d.children && f.push(a(d.children));
2841
2845
  });
2842
2846
  let p = !1;
2843
- return f.forEach((d, m) => {
2844
- d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[m] = d.slice(1, -1), p = !0);
2847
+ return f.forEach((d, g) => {
2848
+ d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[g] = d.slice(1, -1), p = !0);
2845
2849
  }), f.length === 1 && (p || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2846
2850
  };
2847
2851
  let l;
2848
2852
  if (n.forEach((u) => {
2849
2853
  const f = u.split("||"), p = f[0].trim();
2850
2854
  if (p) {
2851
- const d = (f[1] || "").trim(), m = Nt(p);
2852
- let y = O(() => a(m));
2855
+ const d = (f[1] || "").trim(), g = Nt(p);
2856
+ let y = O(() => a(g));
2853
2857
  (y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2854
2858
  }
2855
2859
  }), n.length === 1 && s === `{{${n[0]}}}`)
@@ -2937,7 +2941,7 @@ function zt(t, e, r) {
2937
2941
  parent: null,
2938
2942
  group: e.subRule ? this : null,
2939
2943
  cacheConfig: null,
2940
- prop: v({}, e),
2944
+ prop: _({}, e),
2941
2945
  computed: {},
2942
2946
  payload: {},
2943
2947
  refRule: {},
@@ -3008,7 +3012,7 @@ C(zt.prototype, {
3008
3012
  setPending(t, e, r) {
3009
3013
  this.pending[t] = {
3010
3014
  origin: e,
3011
- value: re(r)
3015
+ value: ie(r)
3012
3016
  };
3013
3017
  },
3014
3018
  effectData(t) {
@@ -3028,7 +3032,7 @@ C(zt.prototype, {
3028
3032
  },
3029
3033
  initProp() {
3030
3034
  var e, r;
3031
- const t = v({}, this.rule);
3035
+ const t = _({}, this.rule);
3032
3036
  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 || []];
3033
3037
  },
3034
3038
  initNone() {
@@ -3160,23 +3164,23 @@ function ui(t) {
3160
3164
  let l = ct(o);
3161
3165
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3162
3166
  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);
3163
- let f, p = !1, d = !!o.__fc__, m = l.value;
3167
+ let f, p = !1, d = !!o.__fc__, g = l.value;
3164
3168
  if (d) {
3165
- if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3169
+ if (f = o.__fc__, g = f.defaultValue, f.deleted) {
3166
3170
  if ($t(f))
3167
3171
  return;
3168
3172
  f.update(this);
3169
3173
  } else if (!f.check(this)) {
3170
3174
  if ($t(f))
3171
3175
  return;
3172
- e[a] = o = o._clone ? o._clone() : Pt(_e(o)), f = null, p = !0;
3176
+ e[a] = o = o._clone ? o._clone() : Pt(Ce(o)), f = null, p = !0;
3173
3177
  }
3174
3178
  }
3175
3179
  if (f)
3176
3180
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3177
3181
  else {
3178
3182
  const E = this.parseRule(o);
3179
- f = new zt(this, E, m), this.bindParser(f);
3183
+ f = new zt(this, E, g), this.bindParser(f);
3180
3184
  }
3181
3185
  [!1, !0].forEach((E) => this.parseEmit(f, E)), 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");
3182
3186
  const y = f.loadChildrenPending();
@@ -3184,9 +3188,9 @@ function ui(t) {
3184
3188
  const E = i(a);
3185
3189
  E > -1 || !a ? this.sort.splice(E + 1, 0, f.id) : this.sort.push(f.id);
3186
3190
  }
3187
- const _ = f.rule;
3188
- return f.updated || (f.updated = !0, h.Function(_.update) && this.bus.$once("load-end", () => {
3189
- this.refreshUpdate(f, _.value, "init");
3191
+ const v = f.rule;
3192
+ return f.updated || (f.updated = !0, h.Function(v.update) && this.bus.$once("load-end", () => {
3193
+ this.refreshUpdate(f, v.value, "init");
3190
3194
  }), this.effect(f, "loaded")), this.refreshControl(f) && (this.cycleLoad = !0), f;
3191
3195
  }).filter((o) => !!o);
3192
3196
  r && (r.children = n);
@@ -3202,7 +3206,7 @@ function ui(t) {
3202
3206
  return (fe[l.condition || "=="] || fe["=="])(p, l.value);
3203
3207
  };
3204
3208
  if (!h.trueArray(l.rule)) continue;
3205
- const f = U(v({}, l), {
3209
+ const f = U(_({}, l), {
3206
3210
  valid: O(() => u(e.rule.value, s)),
3207
3211
  ctrl: hi(e, l.rule),
3208
3212
  isHidden: h.String(l.rule[0])
@@ -3213,34 +3217,34 @@ function ui(t) {
3213
3217
  const n = [];
3214
3218
  let o = !1;
3215
3219
  return this.deferSyncValue(() => {
3216
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: m, method: y }) => {
3220
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: g, method: y }) => {
3217
3221
  if (a) {
3218
3222
  l ? e.ctrlRule.push({
3219
3223
  __ctrl: !0,
3220
3224
  children: u,
3221
3225
  valid: l
3222
- }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3223
- y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((_) => {
3224
- this.api.setEffect(_, "required", l);
3226
+ }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3227
+ y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((v) => {
3228
+ this.api.setEffect(v, "required", l);
3225
3229
  }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3226
3230
  });
3227
3231
  return;
3228
3232
  }
3229
3233
  if (l) {
3230
3234
  o = !0;
3231
- const _ = {
3235
+ const v = {
3232
3236
  type: "fragment",
3233
3237
  native: !0,
3234
3238
  __ctrl: !0,
3235
3239
  children: u
3236
3240
  };
3237
- e.ctrlRule.push(_), this.bus.$once("load-start", () => {
3238
- f ? s.prepend(_, f, d) : p || d ? s.append(_, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3241
+ e.ctrlRule.push(v), this.bus.$once("load-start", () => {
3242
+ f ? s.prepend(v, f, d) : p || d ? s.append(v, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, v);
3239
3243
  });
3240
3244
  } else {
3241
- e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3242
- const _ = Z(m);
3243
- _ && _.rm();
3245
+ e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3246
+ const v = Z(g);
3247
+ v && v.rm();
3244
3248
  }
3245
3249
  });
3246
3250
  }), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
@@ -3254,7 +3258,7 @@ function ui(t) {
3254
3258
  },
3255
3259
  _reloadRule(e) {
3256
3260
  e || (e = this.rules);
3257
- const r = v({}, this.ctxs);
3261
+ const r = _({}, this.ctxs);
3258
3262
  this.clearNextTick(), this.initData(e), this.fc.rules = e, this.deferSyncValue(() => {
3259
3263
  this.bus.$once("load-end", () => {
3260
3264
  Object.keys(r).filter((i) => this.ctxs[i] === void 0).forEach((i) => this.rmCtx(r[i])), this.$render.clearCacheAll();
@@ -3270,7 +3274,7 @@ function ui(t) {
3270
3274
  function fi(t) {
3271
3275
  const e = Mt();
3272
3276
  return Object.keys(e).forEach((r) => {
3273
- D(t, r) || k(t, r, e[r]);
3277
+ j(t, r) || F(t, r, e[r]);
3274
3278
  }), t;
3275
3279
  }
3276
3280
  function ci(t) {
@@ -3310,7 +3314,7 @@ function di(t) {
3310
3314
  this.deferSyncValue(() => {
3311
3315
  const i = e.getParentGroup(), s = i ? this.subRuleData[i.id] : null, n = {};
3312
3316
  Object.keys(r || {}).forEach((o) => {
3313
- s && D(s, o) ? n[o] = r[o] : D(this.api.form, o) ? this.api.form[o] = r[o] : this.api.top !== this.api && D(this.api.top.form, o) && (this.api.top.form[o] = r[o]);
3317
+ s && j(s, o) ? n[o] = r[o] : j(this.api.form, o) ? this.api.form[o] = r[o] : this.api.top !== this.api && j(this.api.top.form, o) && (this.api.top.form[o] = r[o]);
3314
3318
  }), Object.keys(n).length && this.api.setChildrenFormData(i.rule, n);
3315
3319
  });
3316
3320
  },
@@ -3320,27 +3324,27 @@ function di(t) {
3320
3324
  setFormData(e, r) {
3321
3325
  e.modelValue = r;
3322
3326
  const i = e.getParentGroup();
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);
3327
+ 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);
3324
3328
  },
3325
3329
  rmSubRuleData(e) {
3326
3330
  const r = e.getParentGroup();
3327
- r && this.subRuleData[r.id] && te(this.subRuleData[r.id], e.field);
3331
+ r && this.subRuleData[r.id] && re(this.subRuleData[r.id], e.field);
3328
3332
  },
3329
3333
  getFormData(e) {
3330
3334
  return this.formData[e.id];
3331
3335
  },
3332
3336
  syncForm() {
3333
3337
  const e = {}, r = this.fields(), i = [];
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) => {
3338
+ this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = De(this.appendData, n)), s), e), r.reduce((s, n) => {
3335
3339
  let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
3336
- return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = je(o.rule, "value"), s;
3337
- }, e), this.form = re(e), this.ignoreFields = i, this.syncValue();
3340
+ return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = De(o.rule, "value"), s;
3341
+ }, e), this.form = ie(e), this.ignoreFields = i, this.syncValue();
3338
3342
  },
3339
3343
  isIgnore(e) {
3340
3344
  return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
3341
3345
  },
3342
3346
  appendValue(e) {
3343
- (!e.field || !D(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
3347
+ (!e.field || !j(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
3344
3348
  },
3345
3349
  addSubForm(e, r) {
3346
3350
  this.subForm[e.id] = r;
@@ -3393,7 +3397,7 @@ function di(t) {
3393
3397
  function bt(t, e) {
3394
3398
  return typeof e == "function" ? "" + e : e;
3395
3399
  }
3396
- const De = {
3400
+ const je = {
3397
3401
  init(t) {
3398
3402
  },
3399
3403
  toFormValue(t, e) {
@@ -3412,7 +3416,7 @@ const De = {
3412
3416
  },
3413
3417
  mergeProp(t) {
3414
3418
  }
3415
- }, pi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Re = Symbol("oldValue");
3419
+ }, pi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], _e = Symbol("oldValue");
3416
3420
  function mi(t) {
3417
3421
  C(t.prototype, {
3418
3422
  getCtx(e) {
@@ -3448,7 +3452,7 @@ function mi(t) {
3448
3452
  if (n)
3449
3453
  return n;
3450
3454
  }
3451
- return r[e.originType] || r[q(e.type)] || r[e.trueType] || De;
3455
+ return r[e.originType] || r[q(e.type)] || r[e.trueType] || je;
3452
3456
  },
3453
3457
  bindParser(e) {
3454
3458
  e.setParser(this.getParser(e));
@@ -3462,7 +3466,7 @@ function mi(t) {
3462
3466
  },
3463
3467
  watchCtx(e) {
3464
3468
  if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && pi.indexOf(i) === -1).forEach((i) => {
3465
- const s = je(e.rule, i), n = i === "children";
3469
+ const s = De(e.rule, i), n = i === "children";
3466
3470
  e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3467
3471
  let l = s.value;
3468
3472
  if (!this.isBreakWatch()) {
@@ -3504,7 +3508,7 @@ function mi(t) {
3504
3508
  return n ? this.api.t(n[1], { title: (a = (o = e.refRule) == null ? void 0 : o.__$title) == null ? void 0 : a.value }) : s;
3505
3509
  };
3506
3510
  return H(e.rule.validate).map((s) => {
3507
- const n = v({}, s);
3511
+ const n = _({}, s);
3508
3512
  if (n.message && (n.message = i(n.message)), h.Function(n.validator)) {
3509
3513
  const o = e;
3510
3514
  n.validator = function(...a) {
@@ -3519,7 +3523,7 @@ function mi(t) {
3519
3523
  }
3520
3524
  if (n.adapter) {
3521
3525
  if (typeof n.error == "object") {
3522
- const o = v({}, n.error);
3526
+ const o = _({}, n.error);
3523
3527
  Object.keys(o).forEach((a) => {
3524
3528
  o[a] = i(o[a]);
3525
3529
  }), n.error = o;
@@ -3529,7 +3533,7 @@ function mi(t) {
3529
3533
  return n;
3530
3534
  });
3531
3535
  }), e.input) {
3532
- const i = je(e.rule, "value");
3536
+ const i = De(e.rule, "value");
3533
3537
  e.watch.push(B(() => i.value, () => {
3534
3538
  let s = e.parser.toFormValue(i.value, e);
3535
3539
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3542,12 +3546,12 @@ function mi(t) {
3542
3546
  const a = i[s];
3543
3547
  if (!a) return;
3544
3548
  const l = this.compute(e, a);
3545
- return a.linkage && l === Re ? Re : l;
3549
+ return (a.linkage || a.linkageVariable) && l === _e ? _e : l;
3546
3550
  }), o = (a) => {
3547
- s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : ne(e.rule, s, a);
3551
+ s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : se(e.rule, s, a);
3548
3552
  };
3549
3553
  (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) => {
3550
- a === Re || a === l || setTimeout(() => {
3554
+ a === _e || a === l || setTimeout(() => {
3551
3555
  o(a);
3552
3556
  });
3553
3557
  }, { deep: !0 }));
@@ -3677,22 +3681,22 @@ function mi(t) {
3677
3681
  let u = !0;
3678
3682
  for (let f = 0; f < a.group.length; f++) {
3679
3683
  const p = a.group[f];
3680
- let d, m = null;
3684
+ let d, g = null;
3681
3685
  if (p.variable)
3682
- m = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3686
+ g = JSON.stringify(this.fc.getLoadData(p.variable)) || "";
3683
3687
  else if (p.field)
3684
- m = dt(p.field || "");
3688
+ g = dt(p.field || "");
3685
3689
  else if (!p.mode)
3686
3690
  return !0;
3687
3691
  let y = p.compare;
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)
3692
+ 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}'](${g}, ${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)
3689
3693
  return !0;
3690
3694
  l || (u = u && d);
3691
3695
  }
3692
3696
  return l ? !1 : u;
3693
3697
  };
3694
3698
  let o = n(r);
3695
- return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : Re : o;
3699
+ return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : _e : r.linkageVariable ? o ? O(() => this.fc.getLoadData(r.linkageVariable), void 0) : _e : o;
3696
3700
  } else if (h.Function(r))
3697
3701
  i = () => r(this.api.form, this.api);
3698
3702
  else {
@@ -3727,9 +3731,9 @@ function mi(t) {
3727
3731
  rmCtx(e) {
3728
3732
  if (e.deleted) return;
3729
3733
  const { id: r, field: i, input: s, name: n } = e;
3730
- te(this.ctxs, r), te(this.formData, r), te(this.subForm, r), te(this.vm.ctxInject, r);
3734
+ re(this.ctxs, r), re(this.formData, r), re(this.subForm, r), re(this.vm.ctxInject, r);
3731
3735
  const o = e.getParentGroup();
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(() => {
3736
+ 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 && !j(this.fieldCtx, i) && re(this.form, i), this.deferSyncValue(() => {
3733
3737
  if (!this.reloading) {
3734
3738
  if (e.parser.loadChildren !== !1) {
3735
3739
  const l = e.getPending("children", e.rule.children);
@@ -3764,12 +3768,12 @@ function gi(t) {
3764
3768
  },
3765
3769
  targetHook(e, r, i) {
3766
3770
  var l, u, f, p;
3767
- let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, m) => {
3771
+ let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, g) => {
3768
3772
  d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
3769
- O(() => y(U(v({}, i || {}), {
3773
+ O(() => y(U(_({}, i || {}), {
3770
3774
  self: e.rule,
3771
3775
  rule: e.rule,
3772
- parent: m == null ? void 0 : m.rule,
3776
+ parent: g == null ? void 0 : g.rule,
3773
3777
  $f: this.api,
3774
3778
  api: this.api,
3775
3779
  option: this.vm.$props.option
@@ -3791,23 +3795,23 @@ function yi(t) {
3791
3795
  const e = this.fc.providers;
3792
3796
  Object.keys(e).forEach((r) => {
3793
3797
  let i = e[r];
3794
- h.Function(i) && (i = i(this.fc)), i._c = bi(i), this.onEffect(i), this.providers[r] = i;
3798
+ h.Function(i) && (i = i(this.fc)), i._c = bi(i), this.onEffect(i, r), this.providers[r] = i;
3795
3799
  });
3796
3800
  },
3797
- onEffect(e) {
3798
- const r = [];
3799
- (e._c || ["*"]).forEach((i) => {
3800
- const s = i === "*" ? "*" : this.getType(i);
3801
- r.indexOf(s) > -1 || (r.push(s), this.bus.$on(`p:${e.name}:${s}:${e.input ? 1 : 0}`, (n, o) => {
3802
- e[n] && e[n](...o);
3801
+ onEffect(e, r) {
3802
+ const i = [];
3803
+ (e._c || ["*"]).forEach((s) => {
3804
+ const n = s === "*" ? "*" : this.getType(s);
3805
+ i.indexOf(n) > -1 || (i.push(n), this.bus.$on(`p:${r || e.name}:${n}:${e.input ? 1 : 0}`, (o, a) => {
3806
+ e[o] && e[o](...a);
3803
3807
  }));
3804
- }), e._used = r;
3808
+ }), e._used = i;
3805
3809
  },
3806
3810
  watchEffect(e) {
3807
3811
  let r = {
3808
3812
  required: () => {
3809
3813
  var i, s;
3810
- return (D(e.rule, "$required") ? e.rule.$required : (s = (i = e.rule) == null ? void 0 : i.effect) == null ? void 0 : s.required) || !1;
3814
+ return (j(e.rule, "$required") ? e.rule.$required : (s = (i = e.rule) == null ? void 0 : i.effect) == null ? void 0 : s.required) || !1;
3811
3815
  }
3812
3816
  };
3813
3817
  Object.keys(e.rule.effect || {}).forEach((i) => {
@@ -3837,14 +3841,14 @@ function yi(t) {
3837
3841
  }, r);
3838
3842
  },
3839
3843
  getEffect(e, r) {
3840
- if (D(e, "$" + r))
3844
+ if (j(e, "$" + r))
3841
3845
  return e["$" + r];
3842
- if (D(e, "effect") && D(e.effect, r))
3846
+ if (j(e, "effect") && j(e.effect, r))
3843
3847
  return e.effect[r];
3844
3848
  },
3845
3849
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
3846
3850
  if (!s || ["fcFragment", "fragment"].indexOf(s) > -1) return;
3847
- const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), v({}, r.effect || {}));
3851
+ const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), _({}, r.effect || {}));
3848
3852
  Object.keys(l).forEach((u) => {
3849
3853
  const f = this.providers[u];
3850
3854
  if (!f || f.input && !i) return;
@@ -3855,8 +3859,8 @@ function yi(t) {
3855
3859
  p = s;
3856
3860
  else
3857
3861
  return;
3858
- const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
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]);
3862
+ const d = _({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3863
+ e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (g) => Q(d.getProp(), [g]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3860
3864
  });
3861
3865
  }
3862
3866
  });
@@ -3882,7 +3886,7 @@ function K(t) {
3882
3886
  return t.bus;
3883
3887
  },
3884
3888
  preview() {
3885
- return t.vm.$options.propsData.preview != null ? t.vm.$options.propsData.preview : t.vm.parent && t.vm.parent.$props.preview != null ? t.vm.parent.$props.preview : t.options.value.preview || !1;
3889
+ return t.vm.$props.preview != null ? t.vm.$props.preview : t.vm.parent && t.vm.parent.$props.preview != null ? t.vm.parent.$props.preview : t.options.value.preview || !1;
3886
3890
  }
3887
3891
  }), C(this, {
3888
3892
  fc: t,
@@ -3893,10 +3897,10 @@ function K(t) {
3893
3897
  noWatchFn: null,
3894
3898
  deferSyncFn: null,
3895
3899
  isMounted: !1,
3896
- formData: re({}),
3897
- subRuleData: re({}),
3900
+ formData: ie({}),
3901
+ subRuleData: ie({}),
3898
3902
  subForm: {},
3899
- form: re({}),
3903
+ form: ie({}),
3900
3904
  appendData: {},
3901
3905
  ignoreFields: [],
3902
3906
  providers: {},
@@ -3927,7 +3931,7 @@ C(K.prototype, {
3927
3931
  this.updateAppendData(), this.useProvider(), this.usePage(), this.loadRule(), this.$manager.__init(), this.lifecycle("created");
3928
3932
  },
3929
3933
  updateAppendData() {
3930
- this.appendData = v(v(v({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3934
+ this.appendData = _(_(_({}, this.options.formData || {}), this.fc.vm.$props.value || {}), this.appendData);
3931
3935
  },
3932
3936
  isBreakWatch() {
3933
3937
  return this.loading || this.noWatchFn || this.reloading;
@@ -3977,22 +3981,24 @@ function Ci() {
3977
3981
  }
3978
3982
  return C(e.prototype, {
3979
3983
  setVm(r) {
3980
- this.vm = r, this.h = this.$h = r.$createElement;
3984
+ this.handle = r, this.vm = r.vm, this.h = this.$h = r.vm.$createElement;
3981
3985
  },
3982
3986
  make(r, i, s) {
3983
3987
  var n, o, a;
3984
3988
  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);
3985
3989
  },
3986
3990
  makeComponent(r, i, s) {
3987
- var o;
3988
- let n = this.$h(r, _i(i), s || []);
3989
- if ((o = n == null ? void 0 : n.componentOptions) != null && o.propsData && (i != null && i.props)) {
3990
- const a = Object.keys(n.componentOptions.propsData);
3991
- n.data.attrs || (n.data.attrs = {}), Object.keys(i.props).forEach((l) => {
3992
- n.data.attrs[l] == null && a.indexOf(l) === -1 && ["string", "number", "boolean"].indexOf(typeof i.props[l]) > -1 && (n.data.attrs[l] = i.props[l]);
3991
+ var a;
3992
+ const n = this.handle.fc.prop.components[r];
3993
+ n && (r = n);
3994
+ let o = this.$h(r, _i(i), s || []);
3995
+ if ((a = o == null ? void 0 : o.componentOptions) != null && a.propsData && (i != null && i.props)) {
3996
+ const l = Object.keys(o.componentOptions.propsData);
3997
+ o.data.attrs || (o.data.attrs = {}), Object.keys(i.props).forEach((u) => {
3998
+ o.data.attrs[u] == null && l.indexOf(u) === -1 && ["string", "number", "boolean"].indexOf(typeof i.props[u]) > -1 && (o.data.attrs[u] = i.props[u]);
3993
3999
  });
3994
4000
  }
3995
- return n.context = this.vm, n;
4001
+ return o.context = this.vm, o;
3996
4002
  },
3997
4003
  aliasMap: t
3998
4004
  }), C(e, {
@@ -4003,9 +4009,9 @@ function Ci() {
4003
4009
  use(r) {
4004
4010
  Object.keys(r).forEach((i) => {
4005
4011
  const s = $e(i), n = zr(i).toLocaleLowerCase(), o = r[i];
4006
- [i, s, n].forEach((a) => {
4007
- e.alias(i, o), e.prototype[a] = function(l, u) {
4008
- return this.make(o, l, u);
4012
+ e.alias(i, o), [i, s, n].forEach((a) => {
4013
+ e.prototype[a] = function(l, u) {
4014
+ return this.make(t[i] || a, l, u);
4009
4015
  };
4010
4016
  });
4011
4017
  });
@@ -4091,13 +4097,13 @@ const Oi = function(t) {
4091
4097
  let l = (p) => {
4092
4098
  let d;
4093
4099
  i && i.__fc__ && (d = i.__fc__.getParentGroup());
4094
- let m;
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));
4100
+ let g;
4101
+ 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 = G(g));
4096
4102
  const y = a.modify ? i : r.getProp();
4097
- a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : ne(y, a.to || "options", m), s.sync(i);
4103
+ a.to === "child" ? y.children ? F(y.children, 0, g) : F(y, "children", [g]) : se(y, a.to || "options", g), s.sync(i);
4098
4104
  }, u = (p) => l(p);
4099
4105
  const f = t.watchLoadData(u);
4100
- l = ie(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
4106
+ l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
4101
4107
  }
4102
4108
  }), this._fn[r.id] = o;
4103
4109
  });
@@ -4109,7 +4115,7 @@ const Oi = function(t) {
4109
4115
  }
4110
4116
  };
4111
4117
  return e.watch = e.loaded, e;
4112
- }, ki = function(t) {
4118
+ }, Fi = function(t) {
4113
4119
  const e = {
4114
4120
  name: "t",
4115
4121
  _fn: [],
@@ -4121,13 +4127,13 @@ const Oi = function(t) {
4121
4127
  const l = n[a];
4122
4128
  if (l) {
4123
4129
  const u = typeof l == "object";
4124
- let f = (m) => {
4125
- let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4126
- const _ = u && l.modify ? i : r.getProp();
4127
- a === "child" ? _.children ? k(_.children, 0, y) : k(_, "children", [y]) : ne(_, a, y), s.sync(i);
4128
- }, p = (m) => f(m);
4130
+ let f = (g) => {
4131
+ let y = t.t(u ? l.attr : l, u ? l.params : null, g);
4132
+ const v = u && l.modify ? i : r.getProp();
4133
+ a === "child" ? v.children ? F(v.children, 0, y) : F(v, "children", [y]) : se(v, a, y), s.sync(i);
4134
+ }, p = (g) => f(g);
4129
4135
  const d = t.watchLoadData(p);
4130
- f = ie(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4136
+ f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4131
4137
  }
4132
4138
  }), this._fn[r.id] = o;
4133
4139
  },
@@ -4146,7 +4152,7 @@ const Oi = function(t) {
4146
4152
  t.clearProp(), r.clearValidateState([e.field]);
4147
4153
  else {
4148
4154
  h.Object(i) || (i = { method: i });
4149
- const s = i.method, n = U(v({}, i), {
4155
+ const s = i.method, n = U(_({}, i), {
4150
4156
  validator(...o) {
4151
4157
  const a = Z(e);
4152
4158
  if (a)
@@ -4163,7 +4169,7 @@ const Oi = function(t) {
4163
4169
  watch(...t) {
4164
4170
  Wt.load(...t);
4165
4171
  }
4166
- }, Fi = function(t) {
4172
+ }, ki = function(t) {
4167
4173
  function e(s) {
4168
4174
  return h.String(s) && (s = {
4169
4175
  action: s,
@@ -4174,55 +4180,52 @@ const Oi = function(t) {
4174
4180
  let a = s.value;
4175
4181
  i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
4176
4182
  const l = (p) => {
4177
- p === void 0 ? s.clearProp() : ne(s.getProp(), a.to || "options", p), o.sync(n);
4183
+ p === void 0 ? s.clearProp() : se(s.getProp(), a.to || "options", p), o.sync(n);
4178
4184
  };
4179
4185
  if (!a || !a.action && !a.key) {
4180
4186
  l(void 0);
4181
4187
  return;
4182
4188
  }
4183
- if (a = G(a), a.to || (a.to = "options"), a.key) {
4184
- const p = t.$handle.options.globalData[a.key];
4185
- if (!p) {
4186
- l(void 0);
4187
- return;
4188
- }
4189
- if (p.type === "static") {
4190
- l(p.data);
4191
- return;
4192
- } else
4193
- a = v(v({}, a), p);
4194
- }
4189
+ a = G(a), a.to || (a.to = "options");
4195
4190
  const u = a.onError, f = () => {
4196
4191
  if (!s.getValue())
4197
4192
  return s.clearProp(), o.sync(n), !0;
4198
4193
  };
4199
- i._fn[s.id] = t.watchLoadData(ie((p, d) => {
4194
+ i._fn[s.id] = t.watchLoadData(ne((p, d) => {
4200
4195
  if (d && a.watch === !1)
4201
4196
  return i._fn[s.id]();
4202
- const m = t.$handle.loadFetchVar(G(a), p, n), y = U(v({
4197
+ if (a.key) {
4198
+ const v = p("$globalData." + a.key);
4199
+ if (v) {
4200
+ if (f()) return;
4201
+ l(v);
4202
+ }
4203
+ return;
4204
+ }
4205
+ const g = t.$handle.loadFetchVar(G(a), p, n), y = U(_({
4203
4206
  headers: {}
4204
- }, m), {
4205
- onSuccess(_, E) {
4207
+ }, g), {
4208
+ onSuccess(v, E) {
4206
4209
  if (f()) return;
4207
- let Y = (T) => E ? T : D(T, "data") ? T.data : T;
4208
- const I = W(m.parse);
4209
- h.Function(I) ? Y = I : I && h.String(I) && (Y = (T) => L(T, I)), l(Y(_, n, o));
4210
+ let Y = (T) => E ? T : j(T, "data") ? T.data : T;
4211
+ const I = W(g.parse);
4212
+ h.Function(I) ? Y = I : I && h.String(I) && (Y = (T) => L(T, I)), l(Y(v, n, o));
4210
4213
  },
4211
- onError(_) {
4212
- l(void 0), !f() && (u || ((E) => et(E.message || "fetch fail " + m.action)))(_, n, o);
4214
+ onError(v) {
4215
+ l(void 0), !f() && (u || ((E) => et(E.message || "fetch fail " + g.action)))(v, n, o);
4213
4216
  }
4214
4217
  });
4215
4218
  t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4216
- if (h.Function(m.action)) {
4217
- m.action(n, o).then((_) => {
4218
- y.onSuccess(_, !0);
4219
- }).catch((_) => {
4220
- y.onError(_);
4219
+ if (h.Function(g.action)) {
4220
+ g.action(n, o).then((v) => {
4221
+ y.onSuccess(v, !0);
4222
+ }).catch((v) => {
4223
+ y.onError(v);
4221
4224
  });
4222
4225
  return;
4223
4226
  }
4224
4227
  O(() => t.create.fetch(y, { inject: s, rule: n, api: o }));
4225
- }).catch((_) => {
4228
+ }).catch((v) => {
4226
4229
  });
4227
4230
  }, a.wait || 600));
4228
4231
  }
@@ -4241,9 +4244,9 @@ const Oi = function(t) {
4241
4244
  };
4242
4245
  return i;
4243
4246
  }, Si = {
4244
- fetch: Fi,
4247
+ fetch: ki,
4245
4248
  loadData: Oi,
4246
- t: ki,
4249
+ t: Fi,
4247
4250
  componentValidate: Wt
4248
4251
  };
4249
4252
  function Ri(t) {
@@ -4270,7 +4273,7 @@ function Ri(t) {
4270
4273
  };
4271
4274
  return e;
4272
4275
  }
4273
- const Ei = "html", Di = {
4276
+ const Ei = "html", ji = {
4274
4277
  name: Ei,
4275
4278
  loadChildren: !1,
4276
4279
  render(t, e) {
@@ -4280,7 +4283,7 @@ const Ei = "html", Di = {
4280
4283
  return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
4281
4284
  }
4282
4285
  };
4283
- function ji(t) {
4286
+ function Di(t) {
4284
4287
  t = t + "=";
4285
4288
  const r = decodeURIComponent(document.cookie).split(";");
4286
4289
  for (let i = 0; i < r.length; i++) {
@@ -4326,7 +4329,7 @@ function it(t, e) {
4326
4329
  return r.length ? i == null ? null : L(i, r) : i;
4327
4330
  }
4328
4331
  function Vi(t) {
4329
- return it(ji, t);
4332
+ return it(Di, t);
4330
4333
  }
4331
4334
  function Pi(t) {
4332
4335
  return it(Ai, t);
@@ -4416,18 +4419,18 @@ function Kt(t) {
4416
4419
  [Ne.name]: Ne
4417
4420
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4418
4421
  t.extendApi
4419
- ], u = v({}, Si), f = Qr();
4422
+ ], u = _({}, Si), f = Qr();
4420
4423
  let p = { global: {} };
4421
- const d = t.isMobile === !0, m = re({
4424
+ const d = t.isMobile === !0, g = ie({
4422
4425
  $mobile: d
4423
- }), y = Ci(), _ = {}, E = {};
4426
+ }), y = Ci(), v = {}, E = {};
4424
4427
  Ui(t.attrs || {});
4425
4428
  function Y(c) {
4426
- const g = M[c];
4427
- if (Array.isArray(g))
4428
- return g.map(($) => $.api());
4429
- if (g)
4430
- return g.api();
4429
+ const m = M[c];
4430
+ if (Array.isArray(m))
4431
+ return m.map(($) => $.api());
4432
+ if (m)
4433
+ return m.api();
4431
4434
  }
4432
4435
  function I(c) {
4433
4436
  o.push(c);
@@ -4438,7 +4441,7 @@ function Kt(t) {
4438
4441
  }
4439
4442
  function ce() {
4440
4443
  const c = Me(...arguments);
4441
- c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(v({}, c.prop), {
4444
+ c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(_({}, c.prop), {
4442
4445
  name: c.id
4443
4446
  }));
4444
4447
  }
@@ -4447,20 +4450,20 @@ function Kt(t) {
4447
4450
  }
4448
4451
  function he() {
4449
4452
  const c = Me(...arguments);
4450
- if (!c.id || !c.prop) return De;
4451
- const g = q(c.id), $ = c.prop, b = $.merge === !0 ? r[g] : void 0;
4452
- r[g] = Se($, b || De), f[g] = P(g), $.maker && C(f, $.maker);
4453
+ if (!c.id || !c.prop) return je;
4454
+ const m = q(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4455
+ r[m] = Re($, b || je), f[m] = P(m), $.maker && C(f, $.maker);
4453
4456
  }
4454
- function F(c, g) {
4457
+ function k(c, m) {
4455
4458
  let $;
4456
4459
  if (h.String(c)) {
4457
- if ($ = c, g === void 0)
4460
+ if ($ = c, m === void 0)
4458
4461
  return ["form-create", "formcreate"].indexOf($) > -1 ? S() : e[$];
4459
4462
  } else
4460
- $ = q(c.name), g = c;
4461
- if (!$ || !g) return;
4463
+ $ = q(c.name), m = c;
4464
+ if (!$ || !m) return;
4462
4465
  const b = q($);
4463
- e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && he($, g.formCreateParser);
4466
+ e[$] = m, e[b] = m, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && he($, m.formCreateParser);
4464
4467
  }
4465
4468
  function S() {
4466
4469
  return Zr(Be, e, i);
@@ -4468,18 +4471,18 @@ function Kt(t) {
4468
4471
  function N() {
4469
4472
  return Ne;
4470
4473
  }
4471
- function de(c, g) {
4472
- return h.Function(c.install) ? c.install(z, g) : h.Function(c) && c(z, g), this;
4474
+ function de(c, m) {
4475
+ return h.Function(c.install) ? c.install(z, m) : h.Function(c) && c(z, m), this;
4473
4476
  }
4474
- function z(c, g, $) {
4475
- let b = Mi(c, g || {});
4477
+ function z(c, m, $) {
4478
+ let b = Mi(c, m || {});
4476
4479
  const w = b.$refs.fc.formCreate;
4477
4480
  return w.$parent = $, Ni(w.options).appendChild(b.$el), w.api();
4478
4481
  }
4479
- Se(z, E);
4482
+ Re(z, E);
4480
4483
  function Zt(c) {
4481
- let g = v({}, t);
4482
- return c ? g.inherit = {
4484
+ let m = _({}, t);
4485
+ return c ? m.inherit = {
4483
4486
  components: e,
4484
4487
  parsers: r,
4485
4488
  directives: i,
@@ -4487,54 +4490,54 @@ function Kt(t) {
4487
4490
  providers: u,
4488
4491
  useApps: o,
4489
4492
  maker: f,
4490
- formulas: _,
4491
- loadData: m
4492
- } : delete g.inherit, Kt(g);
4493
+ formulas: v,
4494
+ loadData: g
4495
+ } : delete m.inherit, Kt(m);
4493
4496
  }
4494
- function xt(c, g) {
4495
- s[c] = g;
4497
+ function xt(c, m) {
4498
+ s[c] = m;
4496
4499
  }
4497
- function Qt(c, g) {
4498
- _[c] = g;
4500
+ function Qt(c, m) {
4501
+ v[c] = m;
4499
4502
  }
4500
- function Yt(c, g) {
4503
+ function Yt(c, m) {
4501
4504
  const $ = n[c] || {}, b = $.parsers || {};
4502
- g.parsers && Object.keys(g.parsers).forEach((w) => {
4503
- b[w] = Se(g.parsers[w], De);
4504
- }), g.name = c, n[c] = U(v(v({}, $), g), { parsers: b });
4505
+ m.parsers && Object.keys(m.parsers).forEach((w) => {
4506
+ b[w] = Re(m.parsers[w], je);
4507
+ }), m.name = c, n[c] = U(_(_({}, $), m), { parsers: b });
4505
4508
  }
4506
- function we(c) {
4507
- c && Object.keys(M).forEach((g) => {
4508
- (Array.isArray(M[g]) ? M[g] : [M[g]]).forEach((b) => {
4509
+ function Oe(c) {
4510
+ c && Object.keys(M).forEach((m) => {
4511
+ (Array.isArray(M[m]) ? M[m] : [M[m]]).forEach((b) => {
4509
4512
  b.bus.$emit("$loadData." + c);
4510
4513
  });
4511
4514
  });
4512
4515
  }
4513
- function Le(c, g) {
4514
- ne(m, c, g), we(c);
4516
+ function Le(c, m) {
4517
+ se(g, c, m), Oe(c);
4515
4518
  }
4516
- function Oe(c, g) {
4517
- const $ = (...b) => O(() => g(...b));
4519
+ function Fe(c, m) {
4520
+ const $ = (...b) => O(() => m(...b));
4518
4521
  $._driver = !0, Le(c, $);
4519
4522
  }
4520
- function nt(c, g) {
4523
+ function nt(c, m) {
4521
4524
  const $ = (c || "").split(".");
4522
4525
  c = $.shift();
4523
4526
  const b = $.join(".");
4524
- if (D(m, c) || k(m, c, vt), m[c] !== vt) {
4525
- let w = m[c];
4526
- return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? g : w;
4527
+ if (j(g, c) || F(g, c, vt), g[c] !== vt) {
4528
+ let w = g[c];
4529
+ return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? m : w;
4527
4530
  } else
4528
- return g;
4531
+ return m;
4529
4532
  }
4530
4533
  function er(c) {
4531
4534
  l.push(c);
4532
4535
  }
4533
4536
  function tr(c) {
4534
- delete m[c], we(c);
4537
+ delete g[c], Oe(c);
4535
4538
  }
4536
- function rr(c, g) {
4537
- a.push({ name: c, callback: g });
4539
+ function rr(c, m) {
4540
+ a.push({ name: c, callback: m });
4538
4541
  }
4539
4542
  function Be(c) {
4540
4543
  C(this, {
@@ -4545,11 +4548,11 @@ function Kt(t) {
4545
4548
  parsers: r,
4546
4549
  providers: u,
4547
4550
  modelFields: s,
4548
- formulas: _,
4551
+ formulas: v,
4549
4552
  isMobile: d,
4550
- rules: c.$options.propsData.rule,
4551
- name: c.$options.propsData.name || Ve(),
4552
- inFor: c.$options.propsData.inFor,
4553
+ rules: c.$props.rule,
4554
+ name: c.$props.name || Ve(),
4555
+ inFor: c.$props.inFor,
4553
4556
  prop: {
4554
4557
  components: e,
4555
4558
  directives: i
@@ -4557,17 +4560,17 @@ function Kt(t) {
4557
4560
  get: null,
4558
4561
  drivers: n,
4559
4562
  renderDriver: null,
4560
- refreshData: we,
4561
- loadData: m,
4563
+ refreshData: Oe,
4564
+ loadData: g,
4562
4565
  CreateNode: y,
4563
4566
  bus: new Ri(),
4564
4567
  unwatch: [],
4565
4568
  options: yr({}),
4566
4569
  extendApiFn: l,
4567
4570
  fetchCache: /* @__PURE__ */ new WeakMap(),
4568
- tmpData: re({})
4569
- }), a.forEach((g) => {
4570
- this.bus.$on(g.name, g.callback);
4571
+ tmpData: ie({})
4572
+ }), a.forEach((m) => {
4573
+ this.bus.$on(m.name, m.callback);
4571
4574
  }), V(() => {
4572
4575
  B(this.options, () => {
4573
4576
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
@@ -4578,55 +4581,55 @@ function Kt(t) {
4578
4581
  init() {
4579
4582
  this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4580
4583
  this.initOptions(), this.$handle.api.refresh();
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();
4584
+ }, { deep: !0, flush: "sync" })), this.vm.$props.driver && (this.renderDriver = typeof this.vm.$props.driver == "object" ? this.vm.$props.driver : this.drivers[this.vm.$props.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();
4582
4585
  },
4583
- targetFormDriver(c, ...g) {
4584
- if (this.renderDriver && this.renderDriver[c])
4585
- return O(() => this.renderDriver[c](...g));
4586
+ targetFormDriver(c, ...m) {
4587
+ if (this.bus.$emit(c, ...m), this.renderDriver && this.renderDriver[c])
4588
+ return O(() => this.renderDriver[c](...m));
4586
4589
  },
4587
- t(c, g, $) {
4590
+ t(c, m, $) {
4588
4591
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4589
- return b == null && (b = ""), b && g && Object.keys(g).forEach((w) => {
4592
+ return b == null && (b = ""), b && m && Object.keys(m).forEach((w) => {
4590
4593
  const A = new RegExp(`{${w}}`, "g");
4591
- b = b.replace(A, g[w]);
4594
+ b = b.replace(A, m[w]);
4592
4595
  }), b;
4593
4596
  },
4594
4597
  globalDataDriver(c) {
4595
- let g = c.split(".");
4596
- const $ = g.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4598
+ let m = c.split(".");
4599
+ const $ = m.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4597
4600
  if (b) {
4598
4601
  if (b.type === "static")
4599
- return L(b.data, g);
4602
+ return L(b.data, m);
4600
4603
  {
4601
4604
  let w;
4602
4605
  const A = this.fetchCache.get(b);
4603
4606
  if (A) {
4604
- if (A.status && (w = L(A.data, g)), !A.loading)
4607
+ if (A.status && (w = L(A.data, m)), !A.loading)
4605
4608
  return w;
4606
4609
  A.loading = !1, this.fetchCache.set(b, A);
4607
4610
  } else
4608
4611
  this.fetchCache.set(b, { status: !1 });
4609
- const R = ie(() => {
4610
- ae();
4612
+ const R = ne(() => {
4613
+ ee();
4611
4614
  const J = this.fetchCache.get(b);
4612
4615
  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);
4613
4616
  }, b.wait || 600), be = (J) => {
4614
4617
  this.fetchCache.set(b, { status: !0, data: J }), this.bus.$emit("$loadData.$globalData." + $);
4615
- }, oe = (J, le) => {
4618
+ }, ae = (J, le) => {
4616
4619
  if (le && b.watch === !1)
4617
- return ae();
4620
+ return ee();
4618
4621
  if (le) {
4619
4622
  R();
4620
4623
  return;
4621
4624
  }
4622
4625
  const pe = this.$handle.loadFetchVar(Je(b), J);
4623
- this.$handle.api.fetch(pe).then((ee) => {
4624
- be(ee);
4625
- }).catch((ee) => {
4626
+ this.$handle.api.fetch(pe).then((te) => {
4627
+ be(te);
4628
+ }).catch((te) => {
4626
4629
  be(null);
4627
4630
  });
4628
- }, ae = this.watchLoadData(oe);
4629
- return this.unwatch.push(ae), w;
4631
+ }, ee = this.watchLoadData(ae);
4632
+ return b.watch === !1 && ee(), this.unwatch.push(ee), w;
4630
4633
  }
4631
4634
  }
4632
4635
  },
@@ -4635,28 +4638,28 @@ function Kt(t) {
4635
4638
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4636
4639
  },
4637
4640
  globalLanguageDriver(c) {
4638
- let g = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4639
- if (g && (b = O(() => g(c))), b == null && $ && typeof $ == "object" && (b = L($, c)), b == null) {
4641
+ let m = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4642
+ if (m && (b = O(() => m(c))), b == null && $ && typeof $ == "object" && (b = L($, c)), b == null) {
4640
4643
  const w = this.options.value.language || {}, A = this.getLocale();
4641
4644
  b = L(w[A] || {}, c), b == null && (b = L(Bi[A] || {}, c));
4642
4645
  }
4643
4646
  return b;
4644
4647
  },
4645
4648
  globalVarDriver(c) {
4646
- let g = c.split(".");
4647
- const $ = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4649
+ let m = c.split(".");
4650
+ const $ = m.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4648
4651
  if (b) {
4649
4652
  const w = h.Function(b) ? b : W(b.handle);
4650
4653
  if (w) {
4651
4654
  let A = w((...R) => this.$handle.api.getData(...R), this.$handle.api);
4652
- return L(A, g);
4655
+ return L(A, m);
4653
4656
  }
4654
4657
  }
4655
4658
  },
4656
- setData(c, g, $) {
4657
- $ ? Le(c, g) : (ne(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4659
+ setData(c, m, $) {
4660
+ $ ? Le(c, m) : (se(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
4658
4661
  },
4659
- getLoadData(c, g) {
4662
+ getLoadData(c, m) {
4660
4663
  let $ = null;
4661
4664
  if (c != null) {
4662
4665
  let b = c.split(".");
@@ -4686,32 +4689,32 @@ function Kt(t) {
4686
4689
  }
4687
4690
  $ && b.length && ($ = L($, b));
4688
4691
  }
4689
- return $ == null || $ === "" ? g : $;
4692
+ return $ == null || $ === "" ? m : $;
4690
4693
  },
4691
- watchLoadData(c, g) {
4694
+ watchLoadData(c, m) {
4692
4695
  let $ = {};
4693
4696
  const b = (R) => {
4694
4697
  this.get || (this.get = w), O(() => {
4695
4698
  c(w, R);
4696
4699
  }), this.get === w && (this.get = void 0);
4697
4700
  }, w = (R, be) => {
4698
- let oe;
4699
- if (typeof R == "object" && (oe = R.getValue, R = R.id), $[R])
4701
+ let ae;
4702
+ if (typeof R == "object" && (ae = R.getValue, R = R.id), $[R])
4700
4703
  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);
4704
+ const ee = ge(() => ae ? ae() : this.getLoadData(R, be)), J = R.split("."), le = J.shift(), pe = J.shift() || "", te = ne(() => {
4705
+ const ue = ae ? ae() : this.getLoadData(R, be);
4703
4706
  if ($[R])
4704
4707
  ((ue instanceof Function || h.Object(ue) || Array.isArray(ue)) && ue === $[R].val || JSON.stringify(ue) !== JSON.stringify($[R].val)) && ($[R].val = ue, b(!0));
4705
4708
  else return;
4706
- }, g || 0), nr = B(ae, (ue) => {
4707
- ee();
4709
+ }, m || 0), nr = B(ee, (ue) => {
4710
+ te();
4708
4711
  });
4709
- return this.bus.$on("$loadData." + le, ee), pe && this.bus.$on("$loadData." + le + "." + pe, ee), $[R] = {
4712
+ return this.bus.$on("$loadData." + le, te), pe && this.bus.$on("$loadData." + le + "." + pe, te), $[R] = {
4710
4713
  fn: () => {
4711
- this.bus.$off("$loadData." + le, ee), pe && this.bus.$off("$loadData." + le + "." + pe, ee), nr();
4714
+ this.bus.$off("$loadData." + le, te), pe && this.bus.$off("$loadData." + le + "." + pe, te), nr();
4712
4715
  },
4713
- val: ae.value
4714
- }, ae.value;
4716
+ val: ee.value
4717
+ }, ee.value;
4715
4718
  };
4716
4719
  b(!1);
4717
4720
  const A = () => {
@@ -4724,19 +4727,22 @@ function Kt(t) {
4724
4727
  },
4725
4728
  initOptions() {
4726
4729
  this.options.value = {};
4727
- let c = v({
4730
+ let c = _({
4728
4731
  formData: {},
4729
4732
  submitBtn: {},
4730
4733
  resetBtn: {},
4731
4734
  globalEvent: {},
4732
4735
  globalData: {}
4733
4736
  }, G(p));
4734
- 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);
4737
+ const m = this.isSub();
4738
+ m && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$props.option || {});
4739
+ const $ = this.api();
4740
+ this.targetFormDriver("initOptions", c, { api: $, isSubForm: m }), this.updateOptions(c);
4735
4741
  },
4736
- mergeOptions(c, g, $) {
4737
- return g = v({}, g || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4738
- delete g[b];
4739
- }), g.global && (c.global = Wr(c.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], c), c;
4742
+ mergeOptions(c, m, $) {
4743
+ return m = _({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4744
+ delete m[b];
4745
+ }), m.global && (c.global = Wr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4740
4746
  },
4741
4747
  updateOptions(c) {
4742
4748
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4772,12 +4778,12 @@ function Kt(t) {
4772
4778
  isMobile: d,
4773
4779
  extendApi: er,
4774
4780
  getData: nt,
4775
- setDataDriver: Oe,
4781
+ setDataDriver: Fe,
4776
4782
  setData: Le,
4777
4783
  removeData: tr,
4778
- refreshData: we,
4784
+ refreshData: Oe,
4779
4785
  maker: f,
4780
- component: F,
4786
+ component: k,
4781
4787
  directive: T,
4782
4788
  setModelField: xt,
4783
4789
  setFormula: Qt,
@@ -4795,7 +4801,7 @@ function Kt(t) {
4795
4801
  $form: S,
4796
4802
  parseFn: W,
4797
4803
  parseJson: Pt,
4798
- toJson: _e,
4804
+ toJson: Ce,
4799
4805
  useApp: I,
4800
4806
  getApi: Y,
4801
4807
  on: rr
@@ -4804,26 +4810,26 @@ function Kt(t) {
4804
4810
  function ir(c) {
4805
4811
  C(c, {
4806
4812
  create: z,
4807
- install(g, $) {
4808
- if (p = v(v({}, p), $ || {}), g._installedFormCreate === !0) return;
4809
- g._installedFormCreate = !0;
4813
+ install(m, $) {
4814
+ if (p = _(_({}, p), $ || {}), m._installedFormCreate === !0) return;
4815
+ m._installedFormCreate = !0;
4810
4816
  const b = function(A, R = {}) {
4811
4817
  return z(A, R, this);
4812
4818
  };
4813
- st(b), g.prototype.$formCreate = b;
4819
+ st(b), m.prototype.$formCreate = b;
4814
4820
  const w = S();
4815
- g.component(w.name, w), g.component("FcFragment", N()), o.forEach((A) => {
4816
- O(() => A(c, g));
4821
+ m.component(w.name, w), m.component("FcFragment", N()), o.forEach((A) => {
4822
+ O(() => A(c, m));
4817
4823
  });
4818
4824
  }
4819
4825
  });
4820
4826
  }
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) {
4827
+ if (st(E), ir(E), Fe("$cookie", Vi), Fe("$localStorage", Pi), Fe("$sessionStorage", Li), y.use({ fragment: "fcFragment" }), t.install && z.use(t), he(ji), t.inherit) {
4822
4828
  const c = t.inherit;
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);
4829
+ 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(g, c.loadData), c.formulas && C(v, c.formulas);
4824
4830
  }
4825
4831
  const ke = S();
4826
- return Se(ke, E), Object.defineProperties(ke, {
4832
+ return Re(ke, E), Object.defineProperties(ke, {
4827
4833
  fetch: {
4828
4834
  get() {
4829
4835
  return E.fetch;
@@ -4995,16 +5001,16 @@ function Qi() {
4995
5001
  };
4996
5002
  }
4997
5003
  function wt(t, e) {
4998
- D(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
5004
+ j(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4999
5005
  }
5000
5006
  function X(t) {
5001
5007
  return t === !1;
5002
5008
  }
5003
5009
  function Yi(t, e) {
5004
- D(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
5010
+ j(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
5005
5011
  }
5006
5012
  function He(t) {
5007
- const e = v({}, t);
5013
+ const e = _({}, t);
5008
5014
  return delete e.children, e;
5009
5015
  }
5010
5016
  const en = {
@@ -5052,7 +5058,7 @@ const en = {
5052
5058
  update() {
5053
5059
  const t = this.options.form;
5054
5060
  this.rule = {
5055
- props: v({}, t),
5061
+ props: _({}, t),
5056
5062
  nativeOn: {
5057
5063
  submit: (e) => {
5058
5064
  e.preventDefault();
@@ -5075,7 +5081,7 @@ const en = {
5075
5081
  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;
5076
5082
  delete r.wrap.class, delete r.wrap.title;
5077
5083
  const f = X(r.wrap.show) ? e : this.$r(x([r.wrap, {
5078
- props: U(v({
5084
+ props: U(_({
5079
5085
  labelWidth: o
5080
5086
  }, He(r.wrap || {})), {
5081
5087
  prop: t.id,
@@ -5085,7 +5091,7 @@ const en = {
5085
5091
  key: `${i}fi`,
5086
5092
  ref: t.wrapRef,
5087
5093
  type: "formItem"
5088
- }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5094
+ }]), _({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5089
5095
  return a === !0 || X(l) || X(s.show) ? f : this.makeCol(r, i, [f]);
5090
5096
  },
5091
5097
  isTitle(t) {
@@ -5094,22 +5100,22 @@ const en = {
5094
5100
  return !(!e.title && !e.native || X(e.show));
5095
5101
  },
5096
5102
  makeInfo(t, e, r) {
5097
- var u, f, p, d, m, y;
5098
- const i = v({}, t.title), s = v({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5103
+ var u, f, p, d, g, y;
5104
+ const i = _({}, t.title), s = _({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5099
5105
  title: (f = (u = r.refRule) == null ? void 0 : u.__$title) == null ? void 0 : f.value,
5100
5106
  rule: r.rule,
5101
5107
  options: this.options
5102
5108
  }) : ((d = (p = r.refRule) == null ? void 0 : p.__$title) == null ? void 0 : d.value) + (n.labelSuffix || n["label-suffix"] || "")];
5103
5109
  if (!X(s.show) && (s.info || s.native) && !X(s.icon)) {
5104
- const _ = {
5110
+ const v = {
5105
5111
  type: s.type || "poptip",
5106
5112
  props: He(s),
5107
5113
  key: `${e}pop`,
5108
5114
  slot: "label"
5109
5115
  };
5110
- delete _.props.icon, delete _.props.show, delete _.props.info, delete _.props.align, delete _.props.native;
5116
+ delete v.props.icon, delete v.props.show, delete v.props.info, delete v.props.align, delete v.props.native;
5111
5117
  const E = "content";
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, _]), [
5118
+ s.info && !j(v.props, E) && (v.props[E] = (y = (g = r.refRule) == null ? void 0 : g.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(x([s, v]), [
5113
5119
  this.$r({
5114
5120
  type: "icon",
5115
5121
  props: { type: s.icon === !0 ? Ae.infoIcon : s.icon, size: 16 },
@@ -5162,7 +5168,7 @@ const en = {
5162
5168
  }, [e]);
5163
5169
  },
5164
5170
  makeResetBtn() {
5165
- const t = v({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5171
+ const t = _({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5166
5172
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
5167
5173
  type: "button",
5168
5174
  props: t,
@@ -5178,7 +5184,7 @@ const en = {
5178
5184
  }, [e]);
5179
5185
  },
5180
5186
  makeSubmitBtn() {
5181
- const t = v({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5187
+ const t = _({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5182
5188
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
5183
5189
  type: "button",
5184
5190
  props: t,
@@ -5194,7 +5200,7 @@ const en = {
5194
5200
  key: `${this.key}b1`
5195
5201
  }, [e]);
5196
5202
  }
5197
- }, se = {}, tn = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5203
+ }, oe = {}, tn = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5198
5204
  function rn(t) {
5199
5205
  tn.forEach((e) => {
5200
5206
  t[e] = P(e);
@@ -5232,12 +5238,12 @@ function ln(t) {
5232
5238
  };
5233
5239
  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;
5234
5240
  }
5235
- rn(se);
5236
- nn(se);
5237
- sn(se);
5238
- an(se);
5239
- ln(se);
5240
- on(se);
5241
+ rn(oe);
5242
+ nn(oe);
5243
+ sn(oe);
5244
+ an(oe);
5245
+ ln(oe);
5246
+ on(oe);
5241
5247
  function Ot(t, e) {
5242
5248
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5243
5249
  }
@@ -5347,7 +5353,7 @@ const Xt = {
5347
5353
  if (i.required === !1)
5348
5354
  t.clearProp(), r.clearValidateState([e.field]);
5349
5355
  else {
5350
- const o = v({
5356
+ const o = _({
5351
5357
  required: !0,
5352
5358
  validator(l, u, f) {
5353
5359
  h.empty(u) ? f(o.message) : f();
@@ -5375,14 +5381,14 @@ function cn(t) {
5375
5381
  t.component(e.name, e);
5376
5382
  }), t.register(Xt), Xi.forEach((e) => {
5377
5383
  t.parser(e);
5378
- }), Object.keys(se).forEach((e) => {
5379
- t.maker[e] = se[e];
5384
+ }), Object.keys(oe).forEach((e) => {
5385
+ t.maker[e] = oe[e];
5380
5386
  });
5381
5387
  }
5382
5388
  function hn() {
5383
5389
  return Kt({
5384
5390
  ui: "view-design",
5385
- version: "2.7.14",
5391
+ version: "2.7.15",
5386
5392
  manager: en,
5387
5393
  install: cn,
5388
5394
  extendApi: un,