@form-create/iview 2.7.11 → 2.7.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/iview v2.7.11
3
+ * @form-create/iview v2.7.14
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -9,30 +9,30 @@
9
9
  (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode('._fc-frame .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;transition:opacity .3s}._fc-frame .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-frame .fc-files:hover .fc-upload-cover{opacity:1}._fc-frame .ivu-upload-list{margin-top:0}._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn,._fc-frame .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:2px 2px 5px #0000001a;margin-right:4px;box-sizing:border-box}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;transition:opacity .3s}._fc-upload .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-upload .fc-files:hover .fc-upload-cover{opacity:1}._fc-upload .ivu-upload-list{margin-top:0}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-upload .fc-upload-btn,._fc-upload .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:2px 2px 5px #0000001a;margin-right:4px;box-sizing:border-box}._fc-group{display:flex;min-height:42px;justify-content:center;flex-direction:column}._fc-group-disabled ._fc-group-btn,._fc-group-disabled ._fc-group-add{cursor:not-allowed}._fc-group-handle{display:flex;flex-direction:row;position:absolute;bottom:-15px;right:30px;border-radius:15px;border:1px dashed #d9d9d9;padding:3px 8px;background-color:#fff}._fc-group-btn{cursor:pointer}._fc-group-idx{position:absolute;bottom:-15px;left:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#eee;border-radius:15px;font-weight:700}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{position:relative;display:flex;flex-direction:column;border:1px dashed #d9d9d9;padding:20px 20px 25px;margin:5px 5px 25px;border-radius:5px}._fc-group-arrow{position:relative;width:20px;height:20px}._fc-group-arrow:before{content:"";position:absolute;top:8px;left:5px;width:9px;height:9px;border-left:2px solid #999;border-top:2px solid #999}._fc-group-arrow:before{transform:rotate(45deg)}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{width:20px;height:20px;position:relative;cursor:pointer}._fc-group-plus-minus:before,._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:60%;height:2px;background-color:#409eff;transform:translate(-50%,-50%)}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{cursor:pointer;width:25px;height:25px;border:1px solid rgb(64 158 255 / 50%);border-radius:15px}._fc-group-add._fc-group-plus-minus:before,._fc-group-add._fc-group-plus-minus:after{width:50%}.form-create .form-create .ivu-form-item{margin-bottom:24px}.form-create .form-create .ivu-form-item .ivu-form-item{margin-bottom:0}.form-create.is-preview .fc-clock,.form-create .fc-none{display:none!important}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
10
10
  var sr = Object.defineProperty, or = Object.defineProperties;
11
11
  var ar = Object.getOwnPropertyDescriptors;
12
- var at = Object.getOwnPropertySymbols;
12
+ var ot = Object.getOwnPropertySymbols;
13
13
  var lr = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
14
- var lt = (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, v = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
- lr.call(e, r) && lt(t, r, e[r]);
17
- if (at)
18
- for (var r of at(e))
19
- ur.call(e, r) && lt(t, r, e[r]);
16
+ lr.call(e, r) && at(t, r, e[r]);
17
+ if (ot)
18
+ for (var r of ot(e))
19
+ ur.call(e, r) && at(t, r, e[r]);
20
20
  return t;
21
21
  }, U = (t, e) => or(t, ar(e));
22
- import $e, { getCurrentInstance as fr, provide as cr, inject as hr, toRefs as ut, reactive as ie, onBeforeMount as dr, watch as B, onMounted as pr, onBeforeUnmount as mr, onUpdated as gr, nextTick as V, markRaw as ge, computed as ye, toRef as Ae, ref as yr } from "vue";
22
+ import ye, { getCurrentInstance as fr, provide as cr, inject as hr, toRefs as lt, reactive as re, onBeforeMount as dr, watch as B, onMounted as pr, onBeforeUnmount as mr, onUpdated as gr, nextTick as V, markRaw as me, computed as ge, toRef as je, ref as yr } from "vue";
23
23
  function $r(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
- function Je() {
27
- return Je = Object.assign ? Object.assign.bind() : function(t) {
26
+ function ze() {
27
+ return ze = Object.assign ? Object.assign.bind() : function(t) {
28
28
  for (var e, r = 1; r < arguments.length; r++) for (var i in e = arguments[r], e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
29
29
  return t;
30
- }, Je.apply(this, arguments);
30
+ }, ze.apply(this, arguments);
31
31
  }
32
32
  var br = ["attrs", "props", "domProps"], vr = ["class", "style", "directives"], _r = ["on", "nativeOn"], Cr = function(t) {
33
33
  return t.reduce(function(e, r) {
34
34
  for (var i in r) if (!e[i]) e[i] = r[i];
35
- else if (br.indexOf(i) !== -1) e[i] = Je({}, e[i], r[i]);
35
+ else if (br.indexOf(i) !== -1) e[i] = ze({}, e[i], r[i]);
36
36
  else if (vr.indexOf(i) !== -1) {
37
37
  var s = e[i] instanceof Array ? e[i] : [e[i]], n = r[i] instanceof Array ? r[i] : [r[i]];
38
38
  e[i] = [].concat(s, n);
@@ -50,12 +50,12 @@ var br = ["attrs", "props", "domProps"], vr = ["class", "style", "directives"],
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
52
  }, Or = Cr;
53
- const A = /* @__PURE__ */ $r(Or);
54
- function Ve(t, e) {
53
+ const j = /* @__PURE__ */ $r(Or);
54
+ function Ie(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => ((!e || e.indexOf(i) === -1) && r.push(t[i]), r), []);
56
56
  }
57
- const Fr = "fcCheckbox", kr = {
58
- name: Fr,
57
+ const kr = "fcCheckbox", Fr = {
58
+ name: kr,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -100,7 +100,7 @@ const Fr = "fcCheckbox", kr = {
100
100
  },
101
101
  render() {
102
102
  const t = arguments[0];
103
- return t("CheckboxGroup", A([{}, this.formCreateInject.prop, {
103
+ return t("CheckboxGroup", j([{}, this.formCreateInject.prop, {
104
104
  ref: "el"
105
105
  }, {
106
106
  props: {
@@ -112,12 +112,12 @@ const Fr = "fcCheckbox", kr = {
112
112
  }
113
113
  }]), [this.options().map((e, r) => {
114
114
  const i = v({}, e);
115
- return delete i.value, t("Checkbox", A([{}, {
115
+ return delete i.value, t("Checkbox", j([{}, {
116
116
  props: i
117
117
  }, {
118
118
  key: "" + r + "-" + e.value
119
119
  }]));
120
- }), Ve(this.$slots)]);
120
+ }), Ie(this.$slots)]);
121
121
  },
122
122
  mounted() {
123
123
  this.$emit("fc.el", this.$refs.el);
@@ -127,7 +127,7 @@ function H(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
129
  const Sr = "fcFrame";
130
- function Ft(t) {
130
+ function kt(t) {
131
131
  return {
132
132
  name: Sr,
133
133
  props: {
@@ -286,7 +286,7 @@ function Ft(t) {
286
286
  readonly: !0,
287
287
  clearable: !1
288
288
  };
289
- return e("Input", A([{}, {
289
+ return e("Input", j([{}, {
290
290
  props: r
291
291
  }, {}, {
292
292
  on: {
@@ -325,7 +325,7 @@ function Ft(t) {
325
325
  },
326
326
  makeHandleIcon(e, r) {
327
327
  const i = this.$createElement;
328
- return i("icon", A([{}, {
328
+ return i("icon", j([{}, {
329
329
  props: {
330
330
  type: this.handleIcon === !0 || this.handleIcon === void 0 ? "ios-eye-outline" : this.handleIcon
331
331
  }
@@ -338,7 +338,7 @@ function Ft(t) {
338
338
  },
339
339
  makeRemoveIcon(e, r) {
340
340
  const i = this.$createElement;
341
- return i("icon", A([{}, {
341
+ return i("icon", j([{}, {
342
342
  props: {
343
343
  type: "ios-trash-outline"
344
344
  }
@@ -351,7 +351,7 @@ function Ft(t) {
351
351
  },
352
352
  makeFiles() {
353
353
  const e = this.$createElement;
354
- return this.makeGroup(this.fileList.map((r, i) => this.makeItem(i, [e("icon", A([{}, {
354
+ return this.makeGroup(this.fileList.map((r, i) => this.makeItem(i, [e("icon", j([{}, {
355
355
  props: {
356
356
  type: t.fileIcon,
357
357
  size: 40
@@ -378,7 +378,7 @@ function Ft(t) {
378
378
  click: () => this.showModel()
379
379
  },
380
380
  key: this.key("btn")
381
- }, [e("icon", A([{}, {
381
+ }, [e("icon", j([{}, {
382
382
  props: {
383
383
  type: this.icon,
384
384
  size: 20
@@ -450,7 +450,7 @@ function Ft(t) {
450
450
  this.$refs.frame && this.frameLoad(this.$refs.frame.contentWindow || {});
451
451
  }), e("div", {
452
452
  class: "_fc-frame"
453
- }, [i, e("Modal", A([{}, {
453
+ }, [i, e("Modal", j([{}, {
454
454
  props: {
455
455
  mask: this.previewMask,
456
456
  title: l,
@@ -468,7 +468,7 @@ function Ft(t) {
468
468
  attrs: {
469
469
  src: this.previewImage
470
470
  }
471
- })]), e("Modal", A([{}, {
471
+ })]), e("Modal", j([{}, {
472
472
  props: v({
473
473
  width: s,
474
474
  title: a
@@ -503,11 +503,11 @@ function Ft(t) {
503
503
  }
504
504
  };
505
505
  }
506
- const kt = Ft({
506
+ const Ft = kt({
507
507
  fileIcon: "md-document",
508
508
  fileUpIcon: "ios-folder-open"
509
509
  });
510
- kt.v2 = Ft({
510
+ Ft.v2 = kt({
511
511
  fileIcon: "document-text",
512
512
  fileUpIcon: "folder"
513
513
  });
@@ -553,7 +553,7 @@ const Rr = "fcRadio", Er = {
553
553
  },
554
554
  render() {
555
555
  const t = arguments[0];
556
- return t("RadioGroup", A([{}, this.formCreateInject.prop, {}, {
556
+ return t("RadioGroup", j([{}, this.formCreateInject.prop, {}, {
557
557
  props: {
558
558
  value: this.trueValue
559
559
  }
@@ -564,12 +564,12 @@ const Rr = "fcRadio", Er = {
564
564
  }
565
565
  }]), [this.options().map((e, r) => {
566
566
  const i = v({}, e);
567
- return delete i.value, t("Radio", A([{}, {
567
+ return delete i.value, t("Radio", j([{}, {
568
568
  props: i
569
569
  }, {
570
570
  key: "" + r + "-" + e.value
571
571
  }]));
572
- }), Ve(this.$slots)]);
572
+ }), Ie(this.$slots)]);
573
573
  },
574
574
  mounted() {
575
575
  this.$emit("fc.el", this.$refs.el);
@@ -619,7 +619,7 @@ const Dr = "fcSelect", jr = {
619
619
  render(t, e) {
620
620
  const r = (n, o) => {
621
621
  const a = n.slot;
622
- return t("Option", A([{}, {
622
+ return t("Option", j([{}, {
623
623
  props: n
624
624
  }, {
625
625
  key: "" + o + "-" + n.value
@@ -632,7 +632,7 @@ const Dr = "fcSelect", jr = {
632
632
  },
633
633
  key: "" + o + "-" + n.label
634
634
  }, [h.trueArray(n.options) && n.options.map((a, l) => r(a, l))]), s = e.props.formCreateInject.options;
635
- return t("Select", A([{}, e.data, {
635
+ return t("Select", j([{}, e.data, {
636
636
  ref: "el"
637
637
  }]), [(Array.isArray(s) ? s : []).map((n, o) => D(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
638
638
  },
@@ -684,24 +684,24 @@ const Dr = "fcSelect", jr = {
684
684
  },
685
685
  render() {
686
686
  const t = arguments[0], e = {};
687
- return this.type === "selected" ? e["on-select-change"] = this.onInput : e["on-check-change"] = this.onInput, t("Tree", A([{}, this.formCreateInject.prop, {
687
+ return this.type === "selected" ? e["on-select-change"] = this.onInput : e["on-check-change"] = this.onInput, t("Tree", j([{}, this.formCreateInject.prop, {
688
688
  ref: "tree"
689
689
  }, {
690
690
  on: e
691
- }]), [Ve(this.$slots)]);
691
+ }]), [Ie(this.$slots)]);
692
692
  },
693
693
  mounted() {
694
694
  this.$emit("fc.el", this.$refs.tree);
695
695
  }
696
696
  };
697
- function ft(t) {
697
+ function ut(t) {
698
698
  return typeof t == "object" ? t : {
699
699
  url: t,
700
700
  is_string: !0,
701
701
  name: Vr(t)
702
702
  };
703
703
  }
704
- function ct(t) {
704
+ function ft(t) {
705
705
  return U(v({}, t), {
706
706
  file: t,
707
707
  value: t
@@ -754,11 +754,11 @@ function St(t) {
754
754
  };
755
755
  },
756
756
  created() {
757
- this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = !1), this.formCreateInject.prop.props.defaultFileList = H(this.value).map(ft).map(ct);
757
+ this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = !1), this.formCreateInject.prop.props.defaultFileList = H(this.value).map(ut).map(ft);
758
758
  },
759
759
  watch: {
760
760
  value(e) {
761
- this.$refs.upload.fileList.every((r) => !r.status || r.status === "finished") && (this.$refs.upload.fileList = H(e).map(ft).map(ct), this.uploadList = this.$refs.upload.fileList);
761
+ this.$refs.upload.fileList.every((r) => !r.status || r.status === "finished") && (this.$refs.upload.fileList = H(e).map(ut).map(ft), this.uploadList = this.$refs.upload.fileList);
762
762
  },
763
763
  maxLength(e, r) {
764
764
  (r === 1 || e === 1) && this.update();
@@ -784,7 +784,7 @@ function St(t) {
784
784
  src: e.url
785
785
  },
786
786
  key: this.key("img" + r)
787
- }) : i("icon", A([{}, {
787
+ }) : i("icon", j([{}, {
788
788
  props: {
789
789
  type: t.fileIcon,
790
790
  size: 40
@@ -819,7 +819,7 @@ function St(t) {
819
819
  },
820
820
  makeProgress(e, r) {
821
821
  const i = this.$createElement;
822
- return i("Progress", A([{}, {
822
+ return i("Progress", j([{}, {
823
823
  props: {
824
824
  percent: e.percentage,
825
825
  hideInfo: !0
@@ -849,7 +849,7 @@ function St(t) {
849
849
  },
850
850
  makeUpload() {
851
851
  const e = this.$createElement, r = !this.maxLength || this.maxLength > this.uploadList.length;
852
- return e("Upload", A([{}, this.formCreateInject.prop, {}, {
852
+ return e("Upload", j([{}, this.formCreateInject.prop, {}, {
853
853
  style: {
854
854
  display: "inline-block"
855
855
  },
@@ -859,12 +859,12 @@ function St(t) {
859
859
  slot: "default"
860
860
  }, [this.$slots.default || e("div", {
861
861
  class: "fc-upload-btn"
862
- }, [e("icon", A([{}, {
862
+ }, [e("icon", j([{}, {
863
863
  props: {
864
864
  type: this.uploadType === "file" ? "ios-cloud-upload-outline" : t.imgUpIcon,
865
865
  size: 20
866
866
  }
867
- }]))])]) : null, Ve(this.$slots, ["default"])]);
867
+ }]))])]) : null, Ie(this.$slots, ["default"])]);
868
868
  },
869
869
  update() {
870
870
  let e = this.$refs.upload.fileList.map((r) => r.is_string ? r.url : r.value || r.url).filter((r) => r !== void 0);
@@ -878,7 +878,7 @@ function St(t) {
878
878
  const e = arguments[0];
879
879
  return this.$refs.upload && (this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = this.$refs.upload.showUploadList), this.formCreateInject.prop.props.defaultFileList = this.$refs.upload.defaultFileList), e("div", {
880
880
  class: "_fc-upload"
881
- }, [[this.formCreateInject.prop.props.showUploadList ? [] : this.makeFiles(), this.makeUpload()], e("Modal", A([{}, {
881
+ }, [[this.formCreateInject.prop.props.showUploadList ? [] : this.makeFiles(), this.makeUpload()], e("Modal", j([{}, {
882
882
  props: {
883
883
  title: this.modalTitle,
884
884
  footerHide: !0
@@ -915,11 +915,11 @@ Rt.v2 = St({
915
915
  fileIcon: "document-text",
916
916
  imgUpIcon: "image"
917
917
  });
918
- function F(t, e, r) {
919
- $e.set(t, e, r);
918
+ function k(t, e, r) {
919
+ ye.set(t, e, r);
920
920
  }
921
- function re(t, e) {
922
- ($e.del || $e.delete)(t, e);
921
+ function te(t, e) {
922
+ (ye.del || ye.delete)(t, e);
923
923
  }
924
924
  function Ce(t, e = {}, r) {
925
925
  let i = !1;
@@ -929,19 +929,19 @@ function Ce(t, e = {}, r) {
929
929
  if ((i = Array.isArray(n)) || h.Object(n)) {
930
930
  let o = t[s] === void 0;
931
931
  if (i)
932
- i = !1, o && F(t, s, []);
932
+ i = !1, o && k(t, s, []);
933
933
  else if (n._clone && r !== void 0)
934
934
  if (r)
935
- n = n.getRule(), o && F(t, s, {});
935
+ n = n.getRule(), o && k(t, s, {});
936
936
  else {
937
- F(t, s, n._clone());
937
+ k(t, s, n._clone());
938
938
  continue;
939
939
  }
940
940
  else
941
- o && F(t, s, {});
941
+ o && k(t, s, {});
942
942
  t[s] = Ce(t[s], n, r);
943
943
  } else
944
- F(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
944
+ k(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
945
945
  }
946
946
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
947
947
  }
@@ -951,13 +951,13 @@ function G(t) {
951
951
  const Lr = Object.assign || function(t) {
952
952
  for (let e, r = 1; r < arguments.length; r++)
953
953
  for (let i in e = arguments[r], e)
954
- Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
954
+ Object.prototype.hasOwnProperty.call(e, i) && k(t, i, e[i]);
955
955
  return t;
956
956
  };
957
957
  function C() {
958
958
  return Lr.apply(this, arguments);
959
959
  }
960
- function We(t) {
960
+ function Je(t) {
961
961
  return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
962
962
  }
963
963
  const Br = "fcGroup", Tr = {
@@ -1235,7 +1235,7 @@ const Br = "fcGroup", Tr = {
1235
1235
  return t("div", {
1236
1236
  class: "_fc-group-container",
1237
1237
  key: o
1238
- }, [t(i, A([{
1238
+ }, [t(i, j([{
1239
1239
  key: o
1240
1240
  }, {
1241
1241
  on: {
@@ -1334,7 +1334,7 @@ const Br = "fcGroup", Tr = {
1334
1334
  rule: e,
1335
1335
  options: r
1336
1336
  } = this.cacheRule, i = this.type;
1337
- return t(i, A([{}, {
1337
+ return t(i, j([{}, {
1338
1338
  on: {
1339
1339
  "update:value": this.formData,
1340
1340
  "emit-event": this.emitEvent,
@@ -1350,35 +1350,35 @@ const Br = "fcGroup", Tr = {
1350
1350
  }]));
1351
1351
  }
1352
1352
  }, Ur = [
1353
- kr,
1353
+ Fr,
1354
1354
  Er,
1355
1355
  jr,
1356
1356
  Ir,
1357
1357
  Mr,
1358
- kt,
1358
+ Ft,
1359
1359
  Rt,
1360
1360
  Tr
1361
1361
  ];
1362
- function ne(t, e) {
1362
+ function ie(t, e) {
1363
1363
  var r = null;
1364
1364
  return function(...i) {
1365
1365
  r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
1366
1366
  };
1367
1367
  }
1368
- function be(t) {
1368
+ function $e(t) {
1369
1369
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1370
1370
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1371
1371
  }
1372
1372
  function qr(t) {
1373
1373
  return t.replace(t[0], t[0].toLocaleUpperCase());
1374
1374
  }
1375
- const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style", "directives"], jt = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
1375
+ const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style", "directives"], jt = ["on", "nativeOn", "hook"], x = (t, e = {}, r = {}) => {
1376
1376
  const i = [...Et, ...r.normal || []], s = [...Dt, ...r.array || []], n = [...jt, ...r.functional || []], o = r.props || [];
1377
1377
  return t.reduce((a, l) => {
1378
1378
  for (const u in l)
1379
1379
  if (a[u])
1380
1380
  if (o.indexOf(u) > -1)
1381
- a[u] = Y([l[u]], a[u]);
1381
+ a[u] = x([l[u]], a[u]);
1382
1382
  else if (i.indexOf(u) > -1)
1383
1383
  a[u] = v(v({}, a[u]), l[u]);
1384
1384
  else if (s.indexOf(u) > -1) {
@@ -1402,23 +1402,23 @@ const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style"
1402
1402
  }, e);
1403
1403
  }, Gr = (t, e) => function() {
1404
1404
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1405
- }, At = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], xe = ["validate", "children", "control"], et = ["effect", "deep", "renderSlots"];
1405
+ }, At = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], Qe = ["validate", "children", "control"], Ye = ["effect", "deep", "renderSlots"];
1406
1406
  function It() {
1407
- return [...At, ...Et, ...Dt, ...jt, ...xe, ...et];
1407
+ return [...At, ...Et, ...Dt, ...jt, ...Qe, ...Ye];
1408
1408
  }
1409
1409
  function Vt(t, e, r) {
1410
1410
  return `[form-create ${t}]: ${e}`;
1411
1411
  }
1412
- function tt(t, e) {
1412
+ function et(t, e) {
1413
1413
  console.error(Vt("err", t));
1414
1414
  }
1415
1415
  function Hr(t) {
1416
- tt(t.toString()), console.error(t);
1416
+ et(t.toString()), console.error(t);
1417
1417
  }
1418
1418
  function zr(t) {
1419
1419
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1420
1420
  }
1421
- const Ke = "[[FORM-CREATE-PREFIX-", Xe = "-FORM-CREATE-SUFFIX]]";
1421
+ const We = "[[FORM-CREATE-PREFIX-", Ke = "-FORM-CREATE-SUFFIX]]";
1422
1422
  function _e(t, e) {
1423
1423
  return JSON.stringify(Ce(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1424
1424
  if (!(i && i._isVue === !0)) {
@@ -1427,19 +1427,19 @@ function _e(t, e) {
1427
1427
  if (i.__json)
1428
1428
  return i.__json;
1429
1429
  if (i.__origin && (i = i.__origin), !i.__emit)
1430
- return Ke + i + Xe;
1430
+ return We + i + Ke;
1431
1431
  }
1432
1432
  }, e);
1433
1433
  }
1434
- function Ne(t) {
1434
+ function Te(t) {
1435
1435
  return new Function("return " + t)();
1436
1436
  }
1437
1437
  function W(t, e) {
1438
1438
  if (t && h.String(t) && t.length > 4) {
1439
1439
  let r = t.trim(), i = !1;
1440
1440
  try {
1441
- if (r.indexOf(Xe) > 0 && r.indexOf(Ke) === 0)
1442
- r = r.replace(Xe, "").replace(Ke, ""), i = !0;
1441
+ if (r.indexOf(Ke) > 0 && r.indexOf(We) === 0)
1442
+ r = r.replace(Ke, "").replace(We, ""), i = !0;
1443
1443
  else if (r.indexOf("$FN:") === 0)
1444
1444
  r = r.substring(4), i = !0;
1445
1445
  else if (r.indexOf("$EXEC:") === 0)
@@ -1453,7 +1453,7 @@ function W(t, e) {
1453
1453
  }, r.__json = t, r.__inject = !0, r;
1454
1454
  } else {
1455
1455
  if (r.indexOf("$FNX:") === 0)
1456
- return r = Ne(`function($inject){
1456
+ return r = Te(`function($inject){
1457
1457
  ` + r.substring(5) + `
1458
1458
  }`), r.__json = t, r.__inject = !0, r;
1459
1459
  (!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
@@ -1461,13 +1461,13 @@ function W(t, e) {
1461
1461
  if (!i) return t;
1462
1462
  let s;
1463
1463
  try {
1464
- s = Ne(r);
1464
+ s = Te(r);
1465
1465
  } catch (n) {
1466
- s = Ne("function " + r);
1466
+ s = Te("function " + r);
1467
1467
  }
1468
1468
  return s.__json = t, s;
1469
1469
  } catch (s) {
1470
- tt(`解析失败:${r}
1470
+ et(`解析失败:${r}
1471
1471
 
1472
1472
  err: ${s}`);
1473
1473
  return;
@@ -1481,17 +1481,17 @@ function Pt(t, e) {
1481
1481
  });
1482
1482
  }
1483
1483
  let Jr = 0;
1484
- function Pe() {
1484
+ function Ve() {
1485
1485
  const t = 370 + ++Jr;
1486
1486
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1487
1487
  }
1488
- function se(t, e, r) {
1488
+ function ne(t, e, r) {
1489
1489
  let i = t, s;
1490
1490
  return (e || "").split(".").forEach((n) => {
1491
- s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
1492
- }), F(i, s, r), i;
1491
+ s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1492
+ }), k(i, s, r), i;
1493
1493
  }
1494
- function Ze(t, e) {
1494
+ function Xe(t, e) {
1495
1495
  return {
1496
1496
  value: t,
1497
1497
  enumerable: !1,
@@ -1505,16 +1505,16 @@ function Lt(t, e) {
1505
1505
  function Bt(t, e) {
1506
1506
  return Ce([], [...t], e || !1);
1507
1507
  }
1508
- function x(t, e) {
1509
- return Y(Array.isArray(e) ? e : [e], t, { array: xe, normal: et }), t;
1508
+ function Q(t, e) {
1509
+ return x(Array.isArray(e) ? e : [e], t, { array: Qe, normal: Ye }), t;
1510
1510
  }
1511
- function ht(t) {
1511
+ function ct(t) {
1512
1512
  const e = h.Function(t.getRule) ? t.getRule() : t;
1513
1513
  return e.type || (e.type = "input"), e;
1514
1514
  }
1515
1515
  function Wr(t, e) {
1516
1516
  return t ? (Object.keys(e || {}).forEach((r) => {
1517
- e[r] && (t[r] = x(t[r] || {}, e[r]));
1517
+ e[r] && (t[r] = Q(t[r] || {}, e[r]));
1518
1518
  }), t) : e;
1519
1519
  }
1520
1520
  function Tt(t, e) {
@@ -1524,7 +1524,7 @@ function Tt(t, e) {
1524
1524
  }
1525
1525
  }, r), {}));
1526
1526
  }
1527
- function Q(t) {
1527
+ function Z(t) {
1528
1528
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1529
1529
  }
1530
1530
  function O(t, e) {
@@ -1535,9 +1535,9 @@ function O(t, e) {
1535
1535
  }
1536
1536
  return e;
1537
1537
  }
1538
- function Qe(t, e) {
1538
+ function Ze(t, e) {
1539
1539
  let r = null;
1540
- return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Qe(i, e)) : r = t, r && e && H(r).forEach((i) => {
1540
+ return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Ze(i, e)) : r = t, r && e && H(r).forEach((i) => {
1541
1541
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1542
1542
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1543
1543
  });
@@ -1547,12 +1547,12 @@ function Kr(t, e) {
1547
1547
  if (h.Object(t)) {
1548
1548
  const r = {};
1549
1549
  return Object.keys(t).forEach((i) => {
1550
- r[i] = Qe(t[i], i);
1550
+ r[i] = Ze(t[i], i);
1551
1551
  }), r;
1552
1552
  } else
1553
- return Qe(t, e);
1553
+ return Ze(t, e);
1554
1554
  }
1555
- function ke() {
1555
+ function Fe() {
1556
1556
  const t = {}, e = (r) => r || "default";
1557
1557
  return {
1558
1558
  setSlot(r, i) {
@@ -1591,24 +1591,24 @@ function ke() {
1591
1591
  function Se(t, e) {
1592
1592
  return Object.setPrototypeOf(t, e), t;
1593
1593
  }
1594
- const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1595
- "==": (t, e) => JSON.stringify(t) === JSON.stringify(dt(t, e)),
1596
- "!=": (t, e) => !ce["=="](t, e),
1594
+ const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, fe = {
1595
+ "==": (t, e) => JSON.stringify(t) === JSON.stringify(ht(t, e)),
1596
+ "!=": (t, e) => !fe["=="](t, e),
1597
1597
  ">": (t, e) => t > e,
1598
1598
  ">=": (t, e) => t >= e,
1599
1599
  "<": (t, e) => t < e,
1600
1600
  "<=": (t, e) => t <= e,
1601
1601
  on(t, e) {
1602
- return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
1602
+ return t && t.indexOf && t.indexOf(ht(t[0], e)) > -1;
1603
1603
  },
1604
1604
  notOn(t, e) {
1605
- return !ce.on(t, e);
1605
+ return !fe.on(t, e);
1606
1606
  },
1607
1607
  in(t, e) {
1608
1608
  return e && e.indexOf && e.indexOf(t) > -1;
1609
1609
  },
1610
1610
  notIn(t, e) {
1611
- return !ce.in(t, e);
1611
+ return !fe.in(t, e);
1612
1612
  },
1613
1613
  between(t, e) {
1614
1614
  return t > e[0] && t < e[1];
@@ -1639,7 +1639,7 @@ function Xr(t) {
1639
1639
  r[1] && (i[r[1]] = !0);
1640
1640
  return Object.keys(i);
1641
1641
  }
1642
- function pt(t) {
1642
+ function dt(t) {
1643
1643
  let e = t.split("."), r = [], i = "";
1644
1644
  return e.forEach((s, n) => {
1645
1645
  n === 0 ? i = s : i += "." + s, r.push(i);
@@ -1657,12 +1657,12 @@ function Nt(t) {
1657
1657
  }
1658
1658
  return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
1659
1659
  }
1660
- const De = (t, e) => {
1660
+ const Ee = (t, e) => {
1661
1661
  if (!(!t || t === e || !t.$props)) {
1662
1662
  if (t.$props.formCreateInject)
1663
1663
  return t.$props.formCreateInject;
1664
1664
  if (t.$parent)
1665
- return De(t.$parent, e);
1665
+ return Ee(t.$parent, e);
1666
1666
  }
1667
1667
  };
1668
1668
  function Zr(t, e, r) {
@@ -1726,69 +1726,69 @@ 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 } = ut(s), d = ie({
1729
+ const { rule: l, value: u, subForm: f, inFor: p } = lt(s), d = re({
1730
1730
  ctxInject: {},
1731
1731
  destroyed: !1,
1732
1732
  isShow: !0,
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, j = () => {
1736
+ }), m = new t(n), y = m.api(), _ = p.value, E = () => {
1737
1737
  if (o) {
1738
- const k = De(n, o);
1739
- if (k) {
1740
- let E;
1741
- _ ? (E = H(k.getSubForm()), E.push(y)) : E = y, k.subForm(E);
1738
+ const F = Ee(n, o);
1739
+ if (F) {
1740
+ let S;
1741
+ _ ? (S = H(F.getSubForm()), S.push(y)) : S = y, F.subForm(S);
1742
1742
  }
1743
1743
  }
1744
- }, ee = () => {
1745
- const k = De(n, o);
1746
- if (k)
1744
+ }, Y = () => {
1745
+ const F = Ee(n, o);
1746
+ if (F)
1747
1747
  if (_) {
1748
- const E = H(k.getSubForm()), N = E.indexOf(y);
1749
- N > -1 && E.splice(N, 1);
1748
+ const S = H(F.getSubForm()), N = S.indexOf(y);
1749
+ N > -1 && S.splice(N, 1);
1750
1750
  } else
1751
- k.subForm();
1751
+ F.subForm();
1752
1752
  };
1753
1753
  let I = null;
1754
1754
  dr(() => {
1755
1755
  B(() => {
1756
- let k = "";
1757
- const E = s.option && s.option.globalClass || {};
1758
- Object.keys(E).forEach((N) => {
1759
- let pe = "";
1760
- E[N].style && Object.keys(E[N].style).forEach((z) => {
1761
- pe += be(z) + ":" + E[N].style[z] + ";";
1762
- }), E[N].content && (pe += E[N].content + ";"), pe && (k += `.${N}{${pe}}`);
1763
- }), s.option && s.option.style && (k += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = k || "";
1756
+ let F = "";
1757
+ const S = s.option && s.option.globalClass || {};
1758
+ Object.keys(S).forEach((N) => {
1759
+ let de = "";
1760
+ S[N].style && Object.keys(S[N].style).forEach((z) => {
1761
+ de += $e(z) + ":" + S[N].style[z] + ";";
1762
+ }), S[N].content && (de += S[N].content + ";"), de && (F += `.${N}{${de}}`);
1763
+ }), s.option && s.option.style && (F += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = F || "";
1764
1764
  }, () => {
1765
1765
  });
1766
1766
  });
1767
- const T = ne(() => {
1767
+ const T = ie(() => {
1768
1768
  m.bus.$emit("$loadData.$topForm");
1769
- }, 100), he = ne(function() {
1769
+ }, 100), ce = ie(function() {
1770
1770
  m.bus.$emit("$loadData.$scopeForm");
1771
- }, 100), Le = ne(() => {
1771
+ }, 100), Pe = ie(() => {
1772
1772
  m.bus.$emit("$loadData.$form");
1773
- }, 100), de = (k) => {
1774
- m.bus.$emit("change-$form." + k);
1773
+ }, 100), he = (F) => {
1774
+ m.bus.$emit("change-$form." + F);
1775
1775
  };
1776
1776
  return pr(() => {
1777
- o && (y.top.bus.$on("$loadData.$form", T), y.top.bus.$on("change", de)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", he), m.mounted();
1777
+ o && (y.top.bus.$on("$loadData.$form", T), y.top.bus.$on("change", he)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", ce), m.mounted();
1778
1778
  }), mr(() => {
1779
- o && (y.top.bus.$off("$loadData.$form", T), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), ee(), d.destroyed = !0, m.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1779
+ o && (y.top.bus.$off("$loadData.$form", T), y.top.bus.$off("change", he)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", ce), Y(), d.destroyed = !0, m.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1780
1780
  }), gr(() => {
1781
1781
  m.updated();
1782
- }), B(f, (k) => {
1783
- k ? j() : ee();
1782
+ }), B(f, (F) => {
1783
+ F ? E() : Y();
1784
1784
  }, { immediate: !0 }), B(() => s.option, () => {
1785
1785
  m.initOptions(), y.refresh();
1786
- }, { deep: !0 }), B(() => [...l.value], (k) => {
1787
- m.$handle.isBreakWatch() || k.length === d.renderRule.length && k.every((E) => d.renderRule.indexOf(E) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1786
+ }, { deep: !0, flush: "sync" }), B(() => [...l.value], (F) => {
1787
+ m.$handle.isBreakWatch() || F.length === d.renderRule.length && F.every((S) => d.renderRule.indexOf(S) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1788
1788
  }), B(() => [s.disabled, s.preview], () => {
1789
1789
  y.refresh();
1790
- }), B(u, (k) => {
1791
- _e(k || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(k || {}) : y.setValue(k || {}));
1790
+ }), B(u, (F) => {
1791
+ _e(F || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(F || {}) : y.setValue(F || {}));
1792
1792
  }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1793
1793
  y.coverValue({}), m.$handle.updateAppendData(), V(() => {
1794
1794
  V(() => {
@@ -1796,23 +1796,23 @@ function Zr(t, e, r) {
1796
1796
  });
1797
1797
  });
1798
1798
  }, { flush: "sync" }), U(v({
1799
- fc: ge(m),
1800
- parent: o && ge(o),
1801
- top: ge(a),
1802
- fapi: ge(y)
1803
- }, ut(d)), {
1804
- getGroupInject: () => De(n, o),
1799
+ fc: me(m),
1800
+ parent: o && me(o),
1801
+ top: me(a),
1802
+ fapi: me(y)
1803
+ }, lt(d)), {
1804
+ getGroupInject: () => Ee(n, o),
1805
1805
  refresh() {
1806
1806
  ++d.unique;
1807
1807
  },
1808
1808
  renderRule() {
1809
1809
  d.renderRule = [...l.value || []];
1810
1810
  },
1811
- updateValue(k) {
1811
+ updateValue(F) {
1812
1812
  if (d.destroyed) return;
1813
- const E = _e(k);
1814
- d.updateValue !== E && (d.updateValue = E, n.$emit("update:value", k), V(() => {
1815
- Le(), o ? f.value || he() : (T(), he());
1813
+ const S = _e(F);
1814
+ d.updateValue !== S && (d.updateValue = S, n.$emit("update:value", F), V(() => {
1815
+ Pe(), o ? f.value || ce() : (T(), ce());
1816
1816
  }));
1817
1817
  }
1818
1818
  });
@@ -1836,19 +1836,19 @@ function Mt() {
1836
1836
  }
1837
1837
  function P(t, e) {
1838
1838
  return (r, i, s, n = {}) => {
1839
- const o = new rt(t, r, i, s, n);
1839
+ const o = new tt(t, r, i, s, n);
1840
1840
  return e && (h.Function(e) ? e(o) : o.props(e)), o;
1841
1841
  };
1842
1842
  }
1843
- function rt(t, e, r, i, s) {
1843
+ function tt(t, e, r, i, s) {
1844
1844
  this._data = C(Mt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1845
1845
  }
1846
- C(rt.prototype, {
1846
+ C(tt.prototype, {
1847
1847
  getRule() {
1848
1848
  return this._data;
1849
1849
  },
1850
1850
  setProp(t, e) {
1851
- return F(this._data, t, e), this;
1851
+ return k(this._data, t, e), this;
1852
1852
  },
1853
1853
  _clone() {
1854
1854
  const t = new this.constructor();
@@ -1857,34 +1857,34 @@ C(rt.prototype, {
1857
1857
  });
1858
1858
  function Ut(t) {
1859
1859
  t.forEach((e) => {
1860
- rt.prototype[e] = function(r) {
1861
- return x(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1860
+ tt.prototype[e] = function(r) {
1861
+ return Q(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1862
1862
  };
1863
1863
  });
1864
1864
  }
1865
1865
  Ut(It());
1866
1866
  const qt = P("");
1867
- function Qr(t, e, r) {
1867
+ function xr(t, e, r) {
1868
1868
  let i = qt("", e);
1869
1869
  return i._data.type = t, i._data.title = r, i;
1870
1870
  }
1871
- function mt(t, e, r, i) {
1871
+ function pt(t, e, r, i) {
1872
1872
  let s = qt("", r);
1873
1873
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1874
1874
  }
1875
- function Yr() {
1875
+ function Qr() {
1876
1876
  return {
1877
- create: Qr,
1878
- createTmp: mt,
1879
- template: mt,
1877
+ create: xr,
1878
+ createTmp: pt,
1879
+ template: pt,
1880
1880
  factory: P
1881
1881
  };
1882
1882
  }
1883
- function xr(t, e, r) {
1883
+ function Yr(t, e, r) {
1884
1884
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1885
1885
  return s.status = r.status, s.url = t, s;
1886
1886
  }
1887
- function gt(t) {
1887
+ function mt(t) {
1888
1888
  const e = t.responseText || t.response;
1889
1889
  if (!e)
1890
1890
  return e;
@@ -1909,8 +1909,8 @@ function Gt(t) {
1909
1909
  t.onError(o);
1910
1910
  }, e.onload = function() {
1911
1911
  if (e.status < 200 || e.status >= 300)
1912
- return t.onError(xr(r, t, e), gt(e));
1913
- t.onSuccess(gt(e));
1912
+ return t.onError(Yr(r, t, e), mt(e));
1913
+ t.onSuccess(mt(e));
1914
1914
  }, e.open(t.method || "get", r, !0);
1915
1915
  let i;
1916
1916
  (t.data || t.file) && (t.file || (t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data || {}).map((n) => {
@@ -1921,7 +1921,7 @@ function Gt(t) {
1921
1921
  s[n] != null && e.setRequestHeader(n, s[n]);
1922
1922
  }), e.send(i);
1923
1923
  }
1924
- function yt(t, e, r) {
1924
+ function gt(t, e, r) {
1925
1925
  return new Promise((i, s) => {
1926
1926
  (e || Gt)(U(v({}, t), {
1927
1927
  onSuccess(n) {
@@ -1946,7 +1946,7 @@ function ei(t) {
1946
1946
  h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1947
1947
  const u = t.fieldCtx[l] || t.nameCtx[l];
1948
1948
  u && u.forEach((f) => {
1949
- F(f.rule, o, a), t.$render.clearCache(f);
1949
+ k(f.rule, o, a), t.$render.clearCache(f);
1950
1950
  });
1951
1951
  });
1952
1952
  }
@@ -2039,7 +2039,7 @@ function ei(t) {
2039
2039
  if (l) {
2040
2040
  const u = D(n, a);
2041
2041
  l.forEach((f) => {
2042
- F(f.rule, "value", u ? n[a] : void 0);
2042
+ k(f.rule, "value", u ? n[a] : void 0);
2043
2043
  }), delete o[a];
2044
2044
  }
2045
2045
  }), C(t.appendData, o);
@@ -2052,7 +2052,7 @@ function ei(t) {
2052
2052
  const l = t.fieldCtx[a];
2053
2053
  if (!l) return t.appendData[a] = o[a];
2054
2054
  l.forEach((u) => {
2055
- F(u.rule, "value", o[a]);
2055
+ k(u.rule, "value", o[a]);
2056
2056
  });
2057
2057
  });
2058
2058
  }, !0);
@@ -2066,7 +2066,7 @@ function ei(t) {
2066
2066
  }, !0), o ? o.origin : void 0;
2067
2067
  },
2068
2068
  removeRule(n) {
2069
- const o = n && Q(n);
2069
+ const o = n && Z(n);
2070
2070
  if (o)
2071
2071
  return o.rm(), o.origin;
2072
2072
  },
@@ -2116,7 +2116,7 @@ function ei(t) {
2116
2116
  disabled(n, o) {
2117
2117
  e(o).forEach((a) => {
2118
2118
  t.getCtxs(a).forEach((l) => {
2119
- F(l.rule.props, "disabled", !!n);
2119
+ k(l.rule.props, "disabled", !!n);
2120
2120
  });
2121
2121
  }), t.refresh();
2122
2122
  },
@@ -2155,7 +2155,7 @@ function ei(t) {
2155
2155
  n.forEach((a) => s.sync(a));
2156
2156
  return;
2157
2157
  }
2158
- let o = h.Object(n) ? Q(n) : t.getCtxs(n);
2158
+ let o = h.Object(n) ? Z(n) : t.getCtxs(n);
2159
2159
  o && (o = Array.isArray(o) ? o : [o], o.forEach((a) => {
2160
2160
  if (!a.deleted) {
2161
2161
  const l = t.subForm[a.id];
@@ -2174,7 +2174,7 @@ function ei(t) {
2174
2174
  t.$manager.updateOptions(t.options), s.refresh();
2175
2175
  },
2176
2176
  hideForm: (n) => {
2177
- F(t.vm, "isShow", !n);
2177
+ k(t.vm, "isShow", !n);
2178
2178
  },
2179
2179
  changeStatus: () => t.changeStatus,
2180
2180
  clearChangeStatus: () => {
@@ -2192,7 +2192,7 @@ function ei(t) {
2192
2192
  },
2193
2193
  mergeRule: (n, o) => {
2194
2194
  t.getCtxs(n).forEach((a) => {
2195
- x(a.rule, o);
2195
+ Q(a.rule, o);
2196
2196
  });
2197
2197
  },
2198
2198
  mergeRules(n) {
@@ -2205,6 +2205,20 @@ function ei(t) {
2205
2205
  if (a)
2206
2206
  return o ? a.origin : a.rule;
2207
2207
  },
2208
+ findType(n, o) {
2209
+ let a;
2210
+ return Object.keys(t.ctxs).forEach((l) => {
2211
+ const u = t.ctxs[l];
2212
+ u.rule.type === n && (a = o ? u.origin : u.rule);
2213
+ }), a;
2214
+ },
2215
+ findTypes(n, o) {
2216
+ let a = [];
2217
+ return Object.keys(t.ctxs).forEach((l) => {
2218
+ const u = t.ctxs[l];
2219
+ u.rule.type === n && a.push(o ? u.origin : u.rule);
2220
+ }), a;
2221
+ },
2208
2222
  getRenderRule: (n) => {
2209
2223
  const o = t.getCtx(n);
2210
2224
  if (o)
@@ -2219,7 +2233,7 @@ function ei(t) {
2219
2233
  },
2220
2234
  setEffect(n, o, a) {
2221
2235
  const l = t.getCtx(n);
2222
- l && o && (o[0] === "$" && (o = o.substr(1)), D(l.rule, "$" + o) && F(l.rule, "$" + o, a), D(l.rule, "effect") || F(l.rule, "effect", {}), F(l.rule.effect, o, a));
2236
+ l && o && (o[0] === "$" && (o = o.substr(1)), D(l.rule, "$" + o) && k(l.rule, "$" + o, a), D(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2223
2237
  },
2224
2238
  clearEffectData(n, o) {
2225
2239
  const a = t.getCtx(n);
@@ -2278,7 +2292,7 @@ function ei(t) {
2278
2292
  return o ? t.subForm[o.id] : void 0;
2279
2293
  },
2280
2294
  getChildrenRuleList(n) {
2281
- const o = typeof n == "object", a = o ? Q(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2295
+ const o = typeof n == "object", a = o ? Z(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2282
2296
  if (!l)
2283
2297
  return [];
2284
2298
  const u = [];
@@ -2289,10 +2303,10 @@ function ei(t) {
2289
2303
  })(a ? a.loadChildrenPending() : l.children), u;
2290
2304
  },
2291
2305
  getParentRule(n) {
2292
- return (typeof n == "object" ? Q(n) : t.getCtx(n)).parent.rule;
2306
+ return (typeof n == "object" ? Z(n) : t.getCtx(n)).parent.rule;
2293
2307
  },
2294
2308
  getParentSubRule(n) {
2295
- const a = typeof n == "object" ? Q(n) : t.getCtx(n);
2309
+ const a = typeof n == "object" ? Z(n) : t.getCtx(n);
2296
2310
  if (a) {
2297
2311
  const l = a.getParentGroup();
2298
2312
  if (l)
@@ -2306,7 +2320,7 @@ function ei(t) {
2306
2320
  const l = s.getChildrenRuleList(n);
2307
2321
  t.deferSyncValue(() => {
2308
2322
  l.forEach((u) => {
2309
- D(o, u.field) ? F(u, "value", o[u.field]) : a && F(u, "value", void 0);
2323
+ D(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2310
2324
  });
2311
2325
  });
2312
2326
  },
@@ -2323,12 +2337,18 @@ function ei(t) {
2323
2337
  }).catch(a) : o(l.data) : o(t.fc.loadData[n]);
2324
2338
  });
2325
2339
  },
2340
+ setGlobalData(n, o) {
2341
+ s.setData("$globalData." + n, o);
2342
+ },
2343
+ setGlobalVar(n, o) {
2344
+ s.setData("$var." + n, o);
2345
+ },
2326
2346
  renderRule(n, o, a) {
2327
- const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2347
+ const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2328
2348
  return u ? t.$render.createRuleVnode(u, o, a) : void 0;
2329
2349
  },
2330
2350
  renderChildren(n, o, a) {
2331
- const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2351
+ const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2332
2352
  return u ? t.$render.createChildrenVnodes(u, o, a) : void 0;
2333
2353
  },
2334
2354
  nextTick(n) {
@@ -2346,7 +2366,7 @@ function ei(t) {
2346
2366
  bus: t.bus,
2347
2367
  fetch(n) {
2348
2368
  return new Promise((o, a) => {
2349
- n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((l) => {
2369
+ n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => gt(n, t.fc.create.fetch, s).then((l) => {
2350
2370
  O(() => n.onSuccess && n.onSuccess(l)), o(l);
2351
2371
  }).catch((l) => {
2352
2372
  O(() => n.onError && n.onError(l)), a(l);
@@ -2357,7 +2377,7 @@ function ei(t) {
2357
2377
  watchFetch(n, o, a, l) {
2358
2378
  return t.fc.watchLoadData((u, f) => {
2359
2379
  let p = G(n);
2360
- p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((d) => {
2380
+ p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => gt(p, t.fc.create.fetch, s).then((d) => {
2361
2381
  O(() => p.onSuccess && p.onSuccess(d)), o && o(d, f);
2362
2382
  }).catch((d) => {
2363
2383
  O(() => p.onError && p.onError(d)), a && a(d);
@@ -2441,7 +2461,7 @@ function ri(t) {
2441
2461
  const r = (i) => {
2442
2462
  if (i) {
2443
2463
  let s;
2444
- return e.rule.field && (s = i.$scopedSlots["field-" + be(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + be(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2464
+ return e.rule.field && (s = i.$scopedSlots["field-" + $e(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + $e(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2445
2465
  }
2446
2466
  };
2447
2467
  return r(this.vm);
@@ -2450,7 +2470,7 @@ function ri(t) {
2450
2470
  if (!this.vm.isShow)
2451
2471
  return;
2452
2472
  this.$manager.beforeRender();
2453
- const e = ke();
2473
+ const e = Fe();
2454
2474
  return this.sort.forEach((r) => {
2455
2475
  this.renderSlot(e, this.$handle.ctxs[r]);
2456
2476
  }), this.$manager.render(e);
@@ -2461,23 +2481,23 @@ function ri(t) {
2461
2481
  })) : e.setSlot(r.rule.slot, this.renderCtx(r, i));
2462
2482
  },
2463
2483
  mergeGlobal(e) {
2464
- this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ye(() => {
2484
+ this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ge(() => {
2465
2485
  const i = this.$handle.options.global;
2466
- return x({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2467
- })), e.prop = x({}, [this.cacheConfig[e.trueType].value, e.prop]));
2486
+ return Q({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2487
+ })), e.prop = Q({}, [this.cacheConfig[e.trueType].value, e.prop]));
2468
2488
  },
2469
2489
  setOptions(e) {
2470
2490
  const r = e.loadPending({ key: "options", origin: e.prop.options, def: [] });
2471
- e.prop.options = r, e.prop.optionsTo && r && se(e.prop, e.prop.optionsTo, r);
2491
+ e.prop.options = r, e.prop.optionsTo && r && ne(e.prop, e.prop.optionsTo, r);
2472
2492
  },
2473
2493
  deepSet(e) {
2474
2494
  const r = e.rule.deep;
2475
2495
  r && Object.keys(r).sort((i, s) => i.length < s.length ? -1 : 1).forEach((i) => {
2476
- se(e.prop, i, r[i]);
2496
+ ne(e.prop, i, r[i]);
2477
2497
  });
2478
2498
  },
2479
2499
  parseSide(e, r) {
2480
- return h.Object(e) ? x({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2500
+ return h.Object(e) ? Q({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2481
2501
  },
2482
2502
  renderSides(e, r, i) {
2483
2503
  const s = r[i ? "rule" : "prop"];
@@ -2527,7 +2547,7 @@ function ri(t) {
2527
2547
  });
2528
2548
  const d = this.getTypeSlot(e);
2529
2549
  let m;
2530
- return d ? (u.children = f, m = d(u)) : m = a ? e.parser.preview(We(f), e) : e.parser.render(We(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;
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;
2531
2551
  }, this.setCache(e, s, r);
2532
2552
  }
2533
2553
  return (...s) => {
@@ -2577,6 +2597,7 @@ function ri(t) {
2577
2597
  },
2578
2598
  getSubForm: () => this.$handle.subForm[e.id],
2579
2599
  slots: () => this.vm.top.$scopedSlots,
2600
+ getWrap: () => this.vm.$refs[e.wrapRef],
2580
2601
  options: [],
2581
2602
  children: [],
2582
2603
  preview: !1,
@@ -2608,7 +2629,7 @@ function ri(t) {
2608
2629
  if (l.indexOf("native.") === 0)
2609
2630
  o[l.replace("native.", "")] = n[l], delete n[l];
2610
2631
  else if (this.$handle.options.transformEventName !== !1) {
2611
- const u = be(l);
2632
+ const u = $e(l);
2612
2633
  u !== l.toLowerCase() && !n[u] && (n[u] = n[l]);
2613
2634
  }
2614
2635
  }), e.prop.on = n;
@@ -2647,7 +2668,7 @@ function ri(t) {
2647
2668
  }
2648
2669
  });
2649
2670
  }
2650
- return Y(a, e.prop), e.prop;
2671
+ return x(a, e.prop), e.prop;
2651
2672
  },
2652
2673
  onMounted(e) {
2653
2674
  e.el = this.vm.$refs[e.ref], e.el && ((e.el.$el || e.el).__rule__ = e.rule), e.parser.mounted(e), this.$handle.effect(e, "mounted"), this.$handle.targetHook(e, "mounted");
@@ -2664,7 +2685,7 @@ function ri(t) {
2664
2685
  },
2665
2686
  renderChildren(e, r, i) {
2666
2687
  if (!h.trueArray(e)) return [];
2667
- const s = ke();
2688
+ const s = Fe();
2668
2689
  return e.map((n) => {
2669
2690
  if (n) {
2670
2691
  if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
@@ -2690,7 +2711,7 @@ function ri(t) {
2690
2711
  },
2691
2712
  createRuleVnode(e, r, i) {
2692
2713
  this.force = i !== !1, this.tmpInput = r;
2693
- const s = ke();
2714
+ const s = Fe();
2694
2715
  return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
2695
2716
  },
2696
2717
  renderRule(e, r, i) {
@@ -2705,7 +2726,7 @@ function ri(t) {
2705
2726
  a && (s = q(a));
2706
2727
  }
2707
2728
  if (!s) return;
2708
- const n = ke();
2729
+ const n = Fe();
2709
2730
  h.trueArray(e.children) && e.children.forEach((a) => {
2710
2731
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2711
2732
  });
@@ -2715,7 +2736,7 @@ function ri(t) {
2715
2736
  });
2716
2737
  }
2717
2738
  let ii = 1;
2718
- function it(t) {
2739
+ function rt(t) {
2719
2740
  C(this, {
2720
2741
  $handle: t,
2721
2742
  fc: t.fc,
@@ -2734,8 +2755,8 @@ function it(t) {
2734
2755
  }
2735
2756
  }), this.initCache(), this.initRender();
2736
2757
  }
2737
- ti(it);
2738
- ri(it);
2758
+ ti(rt);
2759
+ ri(rt);
2739
2760
  function ni(t) {
2740
2761
  C(t.prototype, {
2741
2762
  parseInjectEvent(e, r) {
@@ -2766,7 +2787,7 @@ function ni(t) {
2766
2787
  let p, d = n || o || a;
2767
2788
  if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2768
2789
  r || (d = `native-${d}`);
2769
- const m = be(`${d}-${f}`), y = (..._) => {
2790
+ const m = $e(`${d}-${f}`), y = (..._) => {
2770
2791
  this.vm.$emit(m, ..._), this.vm.$emit("emit-event", m, ..._), this.bus.$emit(m, ..._);
2771
2792
  };
2772
2793
  if (y.__emit = !0, !p && l === !1)
@@ -2851,7 +2872,7 @@ function ni(t) {
2851
2872
  }
2852
2873
  });
2853
2874
  }
2854
- const $t = ["hook:updated", "hook:mounted"];
2875
+ const yt = ["hook:updated", "hook:mounted"];
2855
2876
  function si(t) {
2856
2877
  C(t.prototype, {
2857
2878
  usePage() {
@@ -2866,9 +2887,9 @@ function si(t) {
2866
2887
  },
2867
2888
  pageLoad() {
2868
2889
  const e = () => {
2869
- this.pageEnd ? (this.vm.$off($t, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2890
+ this.pageEnd ? (this.vm.$off(yt, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2870
2891
  };
2871
- this.vm.$on($t, e);
2892
+ this.vm.$on(yt, e);
2872
2893
  }
2873
2894
  });
2874
2895
  }
@@ -2892,13 +2913,13 @@ function ai(t) {
2892
2913
  }
2893
2914
  function li(t) {
2894
2915
  Object.defineProperties(t.origin, {
2895
- __fc__: Ze(ge(t), !0)
2916
+ __fc__: Xe(me(t), !0)
2896
2917
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2897
- __fc__: Ze(ge(t), !0)
2918
+ __fc__: Xe(me(t), !0)
2898
2919
  });
2899
2920
  }
2900
2921
  function zt(t, e, r) {
2901
- const i = Pe(), s = !!e.field;
2922
+ const i = Ve(), s = !!e.field;
2902
2923
  C(this, {
2903
2924
  id: i,
2904
2925
  ref: i,
@@ -2987,7 +3008,7 @@ C(zt.prototype, {
2987
3008
  setPending(t, e, r) {
2988
3009
  this.pending[t] = {
2989
3010
  origin: e,
2990
- value: ie(r)
3011
+ value: re(r)
2991
3012
  };
2992
3013
  },
2993
3014
  effectData(t) {
@@ -2997,7 +3018,7 @@ C(zt.prototype, {
2997
3018
  t === void 0 ? this.payload = {} : delete this.payload[t];
2998
3019
  },
2999
3020
  updateKey(t) {
3000
- this.key = Pe(), t && this.parent && this.parent.updateKey(t);
3021
+ this.key = Ve(), t && this.parent && this.parent.updateKey(t);
3001
3022
  },
3002
3023
  updateType() {
3003
3024
  this.originType = this.rule.type, this.type = q(this.rule.type), this.trueType = this.$handle.getType(this.originType);
@@ -3008,7 +3029,7 @@ C(zt.prototype, {
3008
3029
  initProp() {
3009
3030
  var e, r;
3010
3031
  const t = v({}, this.rule);
3011
- delete t.children, delete t.validate, this.prop = x({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
3032
+ delete t.children, delete t.validate, this.prop = Q({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
3012
3033
  },
3013
3034
  initNone() {
3014
3035
  this.none = !(h.Undef(this.prop.display) || this.prop.display);
@@ -3086,9 +3107,9 @@ function ui(t) {
3086
3107
  });
3087
3108
  },
3088
3109
  parseRule(e) {
3089
- const r = ht(e);
3110
+ const r = ct(e);
3090
3111
  return Object.defineProperties(r, {
3091
- __origin__: Ze(e, !0)
3112
+ __origin__: Xe(e, !0)
3092
3113
  }), fi(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3093
3114
  i && this.loadFn(i, r);
3094
3115
  }), this.loadCtrl(r), r.update && (r.update = W(r.update)), r;
@@ -3105,7 +3126,7 @@ function ui(t) {
3105
3126
  },
3106
3127
  syncProp(e) {
3107
3128
  const r = e.rule;
3108
- h.trueArray(r.sync) && Y([{
3129
+ h.trueArray(r.sync) && x([{
3109
3130
  on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
3110
3131
  r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
3111
3132
  }, i), {})
@@ -3136,17 +3157,17 @@ function ui(t) {
3136
3157
  if (r && !h.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3137
3158
  if (o.__fc__ && o.__fc__.root === e && this.ctxs[o.__fc__.id])
3138
3159
  return s(o.__fc__.loadChildrenPending(), o.__fc__), o.__fc__;
3139
- let l = ht(o);
3160
+ let l = ct(o);
3140
3161
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3141
3162
  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);
3142
3163
  let f, p = !1, d = !!o.__fc__, m = l.value;
3143
3164
  if (d) {
3144
3165
  if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3145
- if (bt(f))
3166
+ if ($t(f))
3146
3167
  return;
3147
3168
  f.update(this);
3148
3169
  } else if (!f.check(this)) {
3149
- if (bt(f))
3170
+ if ($t(f))
3150
3171
  return;
3151
3172
  e[a] = o = o._clone ? o._clone() : Pt(_e(o)), f = null, p = !0;
3152
3173
  }
@@ -3154,14 +3175,14 @@ function ui(t) {
3154
3175
  if (f)
3155
3176
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3156
3177
  else {
3157
- const j = this.parseRule(o);
3158
- f = new zt(this, j, m), this.bindParser(f);
3178
+ const E = this.parseRule(o);
3179
+ f = new zt(this, E, m), this.bindParser(f);
3159
3180
  }
3160
- [!1, !0].forEach((j) => this.parseEmit(f, j)), 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");
3181
+ [!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");
3161
3182
  const y = f.loadChildrenPending();
3162
3183
  if (f.parser.loadChildren === !1 || s(y, f), !r) {
3163
- const j = i(a);
3164
- j > -1 || !a ? this.sort.splice(j + 1, 0, f.id) : this.sort.push(f.id);
3184
+ const E = i(a);
3185
+ E > -1 || !a ? this.sort.splice(E + 1, 0, f.id) : this.sort.push(f.id);
3165
3186
  }
3166
3187
  const _ = f.rule;
3167
3188
  return f.updated || (f.updated = !0, h.Function(_.update) && this.bus.$once("load-end", () => {
@@ -3178,7 +3199,7 @@ function ui(t) {
3178
3199
  if (!r.length) return !1;
3179
3200
  for (let a = 0; a < r.length; a++) {
3180
3201
  const l = r[a], u = l.handle || function(p) {
3181
- return (ce[l.condition || "=="] || ce["=="])(p, l.value);
3202
+ return (fe[l.condition || "=="] || fe["=="])(p, l.value);
3182
3203
  };
3183
3204
  if (!h.trueArray(l.rule)) continue;
3184
3205
  const f = U(v({}, l), {
@@ -3218,7 +3239,7 @@ function ui(t) {
3218
3239
  });
3219
3240
  } else {
3220
3241
  e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3221
- const _ = Q(m);
3242
+ const _ = Z(m);
3222
3243
  _ && _.rm();
3223
3244
  }
3224
3245
  });
@@ -3249,7 +3270,7 @@ function ui(t) {
3249
3270
  function fi(t) {
3250
3271
  const e = Mt();
3251
3272
  return Object.keys(e).forEach((r) => {
3252
- D(t, r) || F(t, r, e[r]);
3273
+ D(t, r) || k(t, r, e[r]);
3253
3274
  }), t;
3254
3275
  }
3255
3276
  function ci(t) {
@@ -3263,7 +3284,7 @@ function hi(t, e) {
3263
3284
  return i;
3264
3285
  }
3265
3286
  }
3266
- function bt(t) {
3287
+ function $t(t) {
3267
3288
  return !!t.rule.__ctrl;
3268
3289
  }
3269
3290
  function di(t) {
@@ -3279,7 +3300,7 @@ function di(t) {
3279
3300
  this.api.clearValidateState(e.id);
3280
3301
  });
3281
3302
  });
3282
- }));
3303
+ }), this.$manager.fieldChange(e, r, i, s));
3283
3304
  },
3284
3305
  onInput(e, r) {
3285
3306
  let i;
@@ -3299,21 +3320,21 @@ function di(t) {
3299
3320
  setFormData(e, r) {
3300
3321
  e.modelValue = r;
3301
3322
  const i = e.getParentGroup();
3302
- i && (this.subRuleData[i.id] || F(this.subRuleData, i.id, {}), F(this.subRuleData[i.id], e.field, e.rule.value)), F(this.formData, e.id, r);
3323
+ i && (this.subRuleData[i.id] || k(this.subRuleData, i.id, {}), k(this.subRuleData[i.id], e.field, e.rule.value)), k(this.formData, e.id, r);
3303
3324
  },
3304
3325
  rmSubRuleData(e) {
3305
3326
  const r = e.getParentGroup();
3306
- r && this.subRuleData[r.id] && re(this.subRuleData[r.id], e.field);
3327
+ r && this.subRuleData[r.id] && te(this.subRuleData[r.id], e.field);
3307
3328
  },
3308
3329
  getFormData(e) {
3309
3330
  return this.formData[e.id];
3310
3331
  },
3311
3332
  syncForm() {
3312
3333
  const e = {}, r = this.fields(), i = [];
3313
- this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Ae(this.appendData, n)), s), e), r.reduce((s, n) => {
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) => {
3314
3335
  let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
3315
- return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = Ae(o.rule, "value"), s;
3316
- }, e), this.form = ie(e), this.ignoreFields = i, this.syncValue();
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();
3317
3338
  },
3318
3339
  isIgnore(e) {
3319
3340
  return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
@@ -3336,7 +3357,7 @@ function di(t) {
3336
3357
  }), this.vm.updateValue(e);
3337
3358
  },
3338
3359
  isChange(e, r) {
3339
- return JSON.stringify(this.getFormData(e), vt) !== JSON.stringify(r, vt);
3360
+ return JSON.stringify(this.getFormData(e), bt) !== JSON.stringify(r, bt);
3340
3361
  },
3341
3362
  isQuote(e, r) {
3342
3363
  return (r instanceof Function || h.Object(r) || Array.isArray(r)) && r === e.rule.value;
@@ -3369,10 +3390,10 @@ function di(t) {
3369
3390
  }
3370
3391
  });
3371
3392
  }
3372
- function vt(t, e) {
3393
+ function bt(t, e) {
3373
3394
  return typeof e == "function" ? "" + e : e;
3374
3395
  }
3375
- const je = {
3396
+ const De = {
3376
3397
  init(t) {
3377
3398
  },
3378
3399
  toFormValue(t, e) {
@@ -3427,7 +3448,7 @@ function mi(t) {
3427
3448
  if (n)
3428
3449
  return n;
3429
3450
  }
3430
- return r[e.originType] || r[q(e.type)] || r[e.trueType] || je;
3451
+ return r[e.originType] || r[q(e.type)] || r[e.trueType] || De;
3431
3452
  },
3432
3453
  bindParser(e) {
3433
3454
  e.setParser(this.getParser(e));
@@ -3441,7 +3462,7 @@ function mi(t) {
3441
3462
  },
3442
3463
  watchCtx(e) {
3443
3464
  if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && pi.indexOf(i) === -1).forEach((i) => {
3444
- const s = Ae(e.rule, i), n = i === "children";
3465
+ const s = je(e.rule, i), n = i === "children";
3445
3466
  e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3446
3467
  let l = s.value;
3447
3468
  if (!this.isBreakWatch()) {
@@ -3462,21 +3483,21 @@ function mi(t) {
3462
3483
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3463
3484
  }
3464
3485
  }, { deep: !n, sync: n }));
3465
- }), e.refRule.__$title = ye(() => {
3486
+ }), e.refRule.__$title = ge(() => {
3466
3487
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3467
3488
  if (i) {
3468
3489
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3469
3490
  s && (i = this.api.t(s[1]));
3470
3491
  }
3471
3492
  return i;
3472
- }), e.refRule.__$info = ye(() => {
3493
+ }), e.refRule.__$info = ge(() => {
3473
3494
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3474
3495
  if (i) {
3475
3496
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3476
3497
  s && (i = this.api.t(s[1]));
3477
3498
  }
3478
3499
  return i;
3479
- }), e.refRule.__$validate = ye(() => {
3500
+ }), e.refRule.__$validate = ge(() => {
3480
3501
  const i = (s) => {
3481
3502
  var o, a;
3482
3503
  const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
@@ -3508,7 +3529,7 @@ function mi(t) {
3508
3529
  return n;
3509
3530
  });
3510
3531
  }), e.input) {
3511
- const i = Ae(e.rule, "value");
3532
+ const i = je(e.rule, "value");
3512
3533
  e.watch.push(B(() => i.value, () => {
3513
3534
  let s = e.parser.toFormValue(i.value, e);
3514
3535
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3517,13 +3538,13 @@ function mi(t) {
3517
3538
  this.bus.$once("load-end", () => {
3518
3539
  let i = e.rule.computed;
3519
3540
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3520
- const n = ye(() => {
3541
+ const n = ge(() => {
3521
3542
  const a = i[s];
3522
3543
  if (!a) return;
3523
3544
  const l = this.compute(e, a);
3524
3545
  return a.linkage && l === Re ? Re : l;
3525
3546
  }), o = (a) => {
3526
- s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : se(e.rule, s, a);
3547
+ s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : ne(e.rule, s, a);
3527
3548
  };
3528
3549
  (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : n.value !== L(e.rule, s)) && o(n.value), e.watch.push(B(n, (a, l) => {
3529
3550
  a === Re || a === l || setTimeout(() => {
@@ -3660,11 +3681,11 @@ function mi(t) {
3660
3681
  if (p.variable)
3661
3682
  m = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3662
3683
  else if (p.field)
3663
- m = pt(p.field || "");
3684
+ m = dt(p.field || "");
3664
3685
  else if (!p.mode)
3665
3686
  return !0;
3666
3687
  let y = p.compare;
3667
- if (y && (y = pt(y || "")), p.mode ? d = n(p) : ce[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${m}, ${y || "$val"}); }}}}`).call(this.api.form, ce, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
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)
3668
3689
  return !0;
3669
3690
  l || (u = u && d);
3670
3691
  }
@@ -3706,9 +3727,9 @@ function mi(t) {
3706
3727
  rmCtx(e) {
3707
3728
  if (e.deleted) return;
3708
3729
  const { id: r, field: i, input: s, name: n } = e;
3709
- re(this.ctxs, r), re(this.formData, r), re(this.subForm, r), re(this.vm.ctxInject, r);
3730
+ te(this.ctxs, r), te(this.formData, r), te(this.subForm, r), te(this.vm.ctxInject, r);
3710
3731
  const o = e.getParentGroup();
3711
- o && this.subRuleData[o.id] && re(this.subRuleData[o.id], i), e.group && re(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !D(this.fieldCtx, i) && re(this.form, i), this.deferSyncValue(() => {
3732
+ o && this.subRuleData[o.id] && te(this.subRuleData[o.id], i), e.group && te(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !D(this.fieldCtx, i) && te(this.form, i), this.deferSyncValue(() => {
3712
3733
  if (!this.reloading) {
3713
3734
  if (e.parser.loadChildren !== !1) {
3714
3735
  const l = e.getPending("children", e.rule.children);
@@ -3835,7 +3856,7 @@ function yi(t) {
3835
3856
  else
3836
3857
  return;
3837
3858
  const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3838
- e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (m) => x(d.getProp(), [m]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3859
+ e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (m) => Q(d.getProp(), [m]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3839
3860
  });
3840
3861
  }
3841
3862
  });
@@ -3872,10 +3893,10 @@ function K(t) {
3872
3893
  noWatchFn: null,
3873
3894
  deferSyncFn: null,
3874
3895
  isMounted: !1,
3875
- formData: ie({}),
3876
- subRuleData: ie({}),
3896
+ formData: re({}),
3897
+ subRuleData: re({}),
3877
3898
  subForm: {},
3878
- form: ie({}),
3899
+ form: re({}),
3879
3900
  appendData: {},
3880
3901
  ignoreFields: [],
3881
3902
  providers: {},
@@ -3887,7 +3908,7 @@ function K(t) {
3887
3908
  nextReload: () => {
3888
3909
  this.lifecycle("reload");
3889
3910
  }
3890
- }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
3911
+ }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3891
3912
  const i = O(() => r(e, this));
3892
3913
  return i && i !== e && C(e, i), e;
3893
3914
  }, ei(this));
@@ -3938,7 +3959,7 @@ di(K);
3938
3959
  mi(K);
3939
3960
  gi(K);
3940
3961
  yi(K);
3941
- const vi = "fcFragment", Me = {
3962
+ const vi = "fcFragment", Ne = {
3942
3963
  name: vi,
3943
3964
  functional: !0,
3944
3965
  props: ["vnode"],
@@ -3960,7 +3981,7 @@ function Ci() {
3960
3981
  },
3961
3982
  make(r, i, s) {
3962
3983
  var n, o, a;
3963
- return ($e.isReservedTag ? $e.isReservedTag(r) : (o = (n = $e) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
3984
+ return (ye.isReservedTag ? ye.isReservedTag(r) : (o = (n = ye) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
3964
3985
  },
3965
3986
  makeComponent(r, i, s) {
3966
3987
  var o;
@@ -3981,7 +4002,7 @@ function Ci() {
3981
4002
  },
3982
4003
  use(r) {
3983
4004
  Object.keys(r).forEach((i) => {
3984
- const s = be(i), n = zr(i).toLocaleLowerCase(), o = r[i];
4005
+ const s = $e(i), n = zr(i).toLocaleLowerCase(), o = r[i];
3985
4006
  [i, s, n].forEach((a) => {
3986
4007
  e.alias(i, o), e.prototype[a] = function(l, u) {
3987
4008
  return this.make(o, l, u);
@@ -4012,7 +4033,7 @@ C(Jt.prototype, {
4012
4033
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
4013
4034
  },
4014
4035
  updateKey() {
4015
- this.key = Pe();
4036
+ this.key = Ve();
4016
4037
  },
4017
4038
  //TODO interface
4018
4039
  init() {
@@ -4037,7 +4058,7 @@ C(Jt.prototype, {
4037
4058
  return e(this.vm);
4038
4059
  },
4039
4060
  mergeOptions(t, e) {
4040
- return Y(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
4061
+ return x(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
4041
4062
  },
4042
4063
  updateOptions(t) {
4043
4064
  this.$handle.fc.targetFormDriver("updateOptions", t, { handle: this.$handle, api: this.$handle.api }), this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
@@ -4052,6 +4073,8 @@ C(Jt.prototype, {
4052
4073
  getDefaultOptions() {
4053
4074
  return {};
4054
4075
  },
4076
+ fieldChange(t, e, r, i) {
4077
+ },
4055
4078
  render(t) {
4056
4079
  }
4057
4080
  });
@@ -4071,10 +4094,10 @@ const Oi = function(t) {
4071
4094
  let m;
4072
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));
4073
4096
  const y = a.modify ? i : r.getProp();
4074
- a.to === "child" ? y.children ? F(y.children, 0, m) : F(y, "children", [m]) : se(y, a.to || "options", m), s.sync(i);
4097
+ a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : ne(y, a.to || "options", m), s.sync(i);
4075
4098
  }, u = (p) => l(p);
4076
4099
  const f = t.watchLoadData(u);
4077
- l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
4100
+ l = ie(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
4078
4101
  }
4079
4102
  }), this._fn[r.id] = o;
4080
4103
  });
@@ -4086,7 +4109,7 @@ const Oi = function(t) {
4086
4109
  }
4087
4110
  };
4088
4111
  return e.watch = e.loaded, e;
4089
- }, Fi = function(t) {
4112
+ }, ki = function(t) {
4090
4113
  const e = {
4091
4114
  name: "t",
4092
4115
  _fn: [],
@@ -4101,10 +4124,10 @@ const Oi = function(t) {
4101
4124
  let f = (m) => {
4102
4125
  let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4103
4126
  const _ = u && l.modify ? i : r.getProp();
4104
- a === "child" ? _.children ? F(_.children, 0, y) : F(_, "children", [y]) : se(_, a, y), s.sync(i);
4127
+ a === "child" ? _.children ? k(_.children, 0, y) : k(_, "children", [y]) : ne(_, a, y), s.sync(i);
4105
4128
  }, p = (m) => f(m);
4106
4129
  const d = t.watchLoadData(p);
4107
- f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4130
+ f = ie(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4108
4131
  }
4109
4132
  }), this._fn[r.id] = o;
4110
4133
  },
@@ -4125,7 +4148,7 @@ const Oi = function(t) {
4125
4148
  h.Object(i) || (i = { method: i });
4126
4149
  const s = i.method, n = U(v({}, i), {
4127
4150
  validator(...o) {
4128
- const a = Q(e);
4151
+ const a = Z(e);
4129
4152
  if (a)
4130
4153
  return r.exec(a.id, h.String(s) ? s : "formCreateValidate", ...o, {
4131
4154
  attr: t,
@@ -4140,7 +4163,7 @@ const Oi = function(t) {
4140
4163
  watch(...t) {
4141
4164
  Wt.load(...t);
4142
4165
  }
4143
- }, ki = function(t) {
4166
+ }, Fi = function(t) {
4144
4167
  function e(s) {
4145
4168
  return h.String(s) && (s = {
4146
4169
  action: s,
@@ -4151,7 +4174,7 @@ const Oi = function(t) {
4151
4174
  let a = s.value;
4152
4175
  i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
4153
4176
  const l = (p) => {
4154
- p === void 0 ? s.clearProp() : se(s.getProp(), a.to || "options", p), o.sync(n);
4177
+ p === void 0 ? s.clearProp() : ne(s.getProp(), a.to || "options", p), o.sync(n);
4155
4178
  };
4156
4179
  if (!a || !a.action && !a.key) {
4157
4180
  l(void 0);
@@ -4173,20 +4196,20 @@ const Oi = function(t) {
4173
4196
  if (!s.getValue())
4174
4197
  return s.clearProp(), o.sync(n), !0;
4175
4198
  };
4176
- i._fn[s.id] = t.watchLoadData(ne((p, d) => {
4199
+ i._fn[s.id] = t.watchLoadData(ie((p, d) => {
4177
4200
  if (d && a.watch === !1)
4178
4201
  return i._fn[s.id]();
4179
4202
  const m = t.$handle.loadFetchVar(G(a), p, n), y = U(v({
4180
4203
  headers: {}
4181
4204
  }, m), {
4182
- onSuccess(_, j) {
4205
+ onSuccess(_, E) {
4183
4206
  if (f()) return;
4184
- let ee = (T) => j ? T : D(T, "data") ? T.data : T;
4207
+ let Y = (T) => E ? T : D(T, "data") ? T.data : T;
4185
4208
  const I = W(m.parse);
4186
- h.Function(I) ? ee = I : I && h.String(I) && (ee = (T) => L(T, I)), l(ee(_, n, o));
4209
+ h.Function(I) ? Y = I : I && h.String(I) && (Y = (T) => L(T, I)), l(Y(_, n, o));
4187
4210
  },
4188
4211
  onError(_) {
4189
- l(void 0), !f() && (u || ((j) => tt(j.message || "fetch fail " + m.action)))(_, n, o);
4212
+ l(void 0), !f() && (u || ((E) => et(E.message || "fetch fail " + m.action)))(_, n, o);
4190
4213
  }
4191
4214
  });
4192
4215
  t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
@@ -4218,9 +4241,9 @@ const Oi = function(t) {
4218
4241
  };
4219
4242
  return i;
4220
4243
  }, Si = {
4221
- fetch: ki,
4244
+ fetch: Fi,
4222
4245
  loadData: Oi,
4223
- t: Fi,
4246
+ t: ki,
4224
4247
  componentValidate: Wt
4225
4248
  };
4226
4249
  function Ri(t) {
@@ -4295,7 +4318,7 @@ function Ii(t) {
4295
4318
  }
4296
4319
  return null;
4297
4320
  }
4298
- function nt(t, e) {
4321
+ function it(t, e) {
4299
4322
  if (!e)
4300
4323
  return null;
4301
4324
  const r = e.split(".");
@@ -4303,13 +4326,13 @@ function nt(t, e) {
4303
4326
  return r.length ? i == null ? null : L(i, r) : i;
4304
4327
  }
4305
4328
  function Vi(t) {
4306
- return nt(ji, t);
4329
+ return it(ji, t);
4307
4330
  }
4308
4331
  function Pi(t) {
4309
- return nt(Ai, t);
4332
+ return it(Ai, t);
4310
4333
  }
4311
4334
  function Li(t) {
4312
- return nt(Ii, t);
4335
+ return it(Ii, t);
4313
4336
  }
4314
4337
  const Bi = {
4315
4338
  en: {
@@ -4365,7 +4388,7 @@ function Ti(t, e) {
4365
4388
  let r;
4366
4389
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4367
4390
  }
4368
- function Ue() {
4391
+ function Me() {
4369
4392
  return Ti("name", ...arguments);
4370
4393
  }
4371
4394
  function Ni(t) {
@@ -4384,22 +4407,22 @@ function Mi(t, e) {
4384
4407
  }
4385
4408
  function Ui(t) {
4386
4409
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4387
- At.push(...e), xe.push(...r), et.push(...i), Ut([...e, ...r, ...i]);
4410
+ At.push(...e), Qe.push(...r), Ye.push(...i), Ut([...e, ...r, ...i]);
4388
4411
  }
4389
4412
  let qi = 1;
4390
- const M = {}, Ee = Symbol("defValue");
4413
+ const M = {}, vt = Symbol("defValue");
4391
4414
  function Kt(t) {
4392
4415
  const e = {
4393
- [Me.name]: Me
4416
+ [Ne.name]: Ne
4394
4417
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4395
4418
  t.extendApi
4396
- ], u = v({}, Si), f = Yr();
4419
+ ], u = v({}, Si), f = Qr();
4397
4420
  let p = { global: {} };
4398
- const d = t.isMobile === !0, m = ie({
4421
+ const d = t.isMobile === !0, m = re({
4399
4422
  $mobile: d
4400
- }), y = Ci(), _ = {}, j = {};
4423
+ }), y = Ci(), _ = {}, E = {};
4401
4424
  Ui(t.attrs || {});
4402
- function ee(c) {
4425
+ function Y(c) {
4403
4426
  const g = M[c];
4404
4427
  if (Array.isArray(g))
4405
4428
  return g.map(($) => $.api());
@@ -4410,42 +4433,42 @@ function Kt(t) {
4410
4433
  o.push(c);
4411
4434
  }
4412
4435
  function T() {
4413
- const c = Ue(...arguments);
4436
+ const c = Me(...arguments);
4414
4437
  c.id && c.prop && (i[c.id] = c.prop);
4415
4438
  }
4416
- function he() {
4417
- const c = Ue(...arguments);
4439
+ function ce() {
4440
+ const c = Me(...arguments);
4418
4441
  c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(v({}, c.prop), {
4419
4442
  name: c.id
4420
4443
  }));
4421
4444
  }
4422
- function Le(c) {
4445
+ function Pe(c) {
4423
4446
  y.use(c);
4424
4447
  }
4425
- function de() {
4426
- const c = Ue(...arguments);
4427
- if (!c.id || !c.prop) return je;
4448
+ function he() {
4449
+ const c = Me(...arguments);
4450
+ if (!c.id || !c.prop) return De;
4428
4451
  const g = q(c.id), $ = c.prop, b = $.merge === !0 ? r[g] : void 0;
4429
- r[g] = Se($, b || je), f[g] = P(g), $.maker && C(f, $.maker);
4452
+ r[g] = Se($, b || De), f[g] = P(g), $.maker && C(f, $.maker);
4430
4453
  }
4431
- function k(c, g) {
4454
+ function F(c, g) {
4432
4455
  let $;
4433
4456
  if (h.String(c)) {
4434
4457
  if ($ = c, g === void 0)
4435
- return ["form-create", "formcreate"].indexOf($) > -1 ? E() : e[$];
4458
+ return ["form-create", "formcreate"].indexOf($) > -1 ? S() : e[$];
4436
4459
  } else
4437
4460
  $ = q(c.name), g = c;
4438
4461
  if (!$ || !g) return;
4439
4462
  const b = q($);
4440
- e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && de($, g.formCreateParser);
4463
+ e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && he($, g.formCreateParser);
4441
4464
  }
4442
- function E() {
4443
- return Zr(Te, e, i);
4465
+ function S() {
4466
+ return Zr(Be, e, i);
4444
4467
  }
4445
4468
  function N() {
4446
- return Me;
4469
+ return Ne;
4447
4470
  }
4448
- function pe(c, g) {
4471
+ function de(c, g) {
4449
4472
  return h.Function(c.install) ? c.install(z, g) : h.Function(c) && c(z, g), this;
4450
4473
  }
4451
4474
  function z(c, g, $) {
@@ -4453,7 +4476,7 @@ function Kt(t) {
4453
4476
  const w = b.$refs.fc.formCreate;
4454
4477
  return w.$parent = $, Ni(w.options).appendChild(b.$el), w.api();
4455
4478
  }
4456
- Se(z, j);
4479
+ Se(z, E);
4457
4480
  function Zt(c) {
4458
4481
  let g = v({}, t);
4459
4482
  return c ? g.inherit = {
@@ -4468,16 +4491,16 @@ function Kt(t) {
4468
4491
  loadData: m
4469
4492
  } : delete g.inherit, Kt(g);
4470
4493
  }
4471
- function Qt(c, g) {
4494
+ function xt(c, g) {
4472
4495
  s[c] = g;
4473
4496
  }
4474
- function Yt(c, g) {
4497
+ function Qt(c, g) {
4475
4498
  _[c] = g;
4476
4499
  }
4477
- function xt(c, g) {
4500
+ function Yt(c, g) {
4478
4501
  const $ = n[c] || {}, b = $.parsers || {};
4479
4502
  g.parsers && Object.keys(g.parsers).forEach((w) => {
4480
- b[w] = Se(g.parsers[w], je);
4503
+ b[w] = Se(g.parsers[w], De);
4481
4504
  }), g.name = c, n[c] = U(v(v({}, $), g), { parsers: b });
4482
4505
  }
4483
4506
  function we(c) {
@@ -4487,18 +4510,18 @@ function Kt(t) {
4487
4510
  });
4488
4511
  });
4489
4512
  }
4490
- function Be(c, g) {
4491
- se(m, c, g), we(c);
4513
+ function Le(c, g) {
4514
+ ne(m, c, g), we(c);
4492
4515
  }
4493
4516
  function Oe(c, g) {
4494
4517
  const $ = (...b) => O(() => g(...b));
4495
- $._driver = !0, Be(c, $);
4518
+ $._driver = !0, Le(c, $);
4496
4519
  }
4497
- function st(c, g) {
4520
+ function nt(c, g) {
4498
4521
  const $ = (c || "").split(".");
4499
4522
  c = $.shift();
4500
4523
  const b = $.join(".");
4501
- if (D(m, c) || F(m, c, Ee), m[c] !== Ee) {
4524
+ if (D(m, c) || k(m, c, vt), m[c] !== vt) {
4502
4525
  let w = m[c];
4503
4526
  return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? g : w;
4504
4527
  } else
@@ -4513,7 +4536,7 @@ function Kt(t) {
4513
4536
  function rr(c, g) {
4514
4537
  a.push({ name: c, callback: g });
4515
4538
  }
4516
- function Te(c) {
4539
+ function Be(c) {
4517
4540
  C(this, {
4518
4541
  id: qi++,
4519
4542
  create: z,
@@ -4525,7 +4548,7 @@ function Kt(t) {
4525
4548
  formulas: _,
4526
4549
  isMobile: d,
4527
4550
  rules: c.$options.propsData.rule,
4528
- name: c.$options.propsData.name || Pe(),
4551
+ name: c.$options.propsData.name || Ve(),
4529
4552
  inFor: c.$options.propsData.inFor,
4530
4553
  prop: {
4531
4554
  components: e,
@@ -4542,7 +4565,7 @@ function Kt(t) {
4542
4565
  options: yr({}),
4543
4566
  extendApiFn: l,
4544
4567
  fetchCache: /* @__PURE__ */ new WeakMap(),
4545
- tmpData: ie({})
4568
+ tmpData: re({})
4546
4569
  }), a.forEach((g) => {
4547
4570
  this.bus.$on(g.name, g.callback);
4548
4571
  }), V(() => {
@@ -4551,11 +4574,11 @@ function Kt(t) {
4551
4574
  }, { deep: !0 });
4552
4575
  }), C(c.$options.components, e), C(c.$options.directives, i), this.$handle = new K(this), this.name && (this.inFor ? (M[this.name] || (M[this.name] = []), M[this.name].push(this)) : M[this.name] = this);
4553
4576
  }
4554
- Te.isMobile = d, C(Te.prototype, {
4577
+ Be.isMobile = d, C(Be.prototype, {
4555
4578
  init() {
4556
4579
  this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4557
4580
  this.initOptions(), this.$handle.api.refresh();
4558
- }, { deep: !0 })), this.vm.$options.propsData.driver && (this.renderDriver = typeof this.vm.$options.propsData.driver == "object" ? this.vm.$options.propsData.driver : this.drivers[this.vm.$options.propsData.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.fc.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4581
+ }, { deep: !0, flush: "sync" })), this.vm.$options.propsData.driver && (this.renderDriver = typeof this.vm.$options.propsData.driver == "object" ? this.vm.$options.propsData.driver : this.drivers[this.vm.$options.propsData.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.fc.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4559
4582
  },
4560
4583
  targetFormDriver(c, ...g) {
4561
4584
  if (this.renderDriver && this.renderDriver[c])
@@ -4564,8 +4587,8 @@ function Kt(t) {
4564
4587
  t(c, g, $) {
4565
4588
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4566
4589
  return b == null && (b = ""), b && g && Object.keys(g).forEach((w) => {
4567
- const S = new RegExp(`{${w}}`, "g");
4568
- b = b.replace(S, g[w]);
4590
+ const A = new RegExp(`{${w}}`, "g");
4591
+ b = b.replace(A, g[w]);
4569
4592
  }), b;
4570
4593
  },
4571
4594
  globalDataDriver(c) {
@@ -4576,34 +4599,34 @@ function Kt(t) {
4576
4599
  return L(b.data, g);
4577
4600
  {
4578
4601
  let w;
4579
- const S = this.fetchCache.get(b);
4580
- if (S) {
4581
- if (S.status && (w = L(S.data, g)), !S.loading)
4602
+ const A = this.fetchCache.get(b);
4603
+ if (A) {
4604
+ if (A.status && (w = L(A.data, g)), !A.loading)
4582
4605
  return w;
4583
- S.loading = !1, this.fetchCache.set(b, S);
4606
+ A.loading = !1, this.fetchCache.set(b, A);
4584
4607
  } else
4585
4608
  this.fetchCache.set(b, { status: !1 });
4586
- const R = ne(() => {
4587
- le();
4609
+ const R = ie(() => {
4610
+ ae();
4588
4611
  const J = this.fetchCache.get(b);
4589
4612
  this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (J && (J.loading = !0, this.fetchCache.set(b, J)), this.bus.$emit("$loadData.$globalData." + $)) : this.fetchCache.delete(b);
4590
- }, b.wait || 600), ae = (J) => {
4613
+ }, b.wait || 600), be = (J) => {
4591
4614
  this.fetchCache.set(b, { status: !0, data: J }), this.bus.$emit("$loadData.$globalData." + $);
4592
- }, X = (J, ue) => {
4593
- if (ue && b.watch === !1)
4594
- return le();
4595
- if (ue) {
4615
+ }, oe = (J, le) => {
4616
+ if (le && b.watch === !1)
4617
+ return ae();
4618
+ if (le) {
4596
4619
  R();
4597
4620
  return;
4598
4621
  }
4599
- const me = this.$handle.loadFetchVar(We(b), J);
4600
- this.$handle.api.fetch(me).then((te) => {
4601
- ae(te);
4602
- }).catch((te) => {
4603
- ae(null);
4622
+ const pe = this.$handle.loadFetchVar(Je(b), J);
4623
+ this.$handle.api.fetch(pe).then((ee) => {
4624
+ be(ee);
4625
+ }).catch((ee) => {
4626
+ be(null);
4604
4627
  });
4605
- }, le = this.watchLoadData(X);
4606
- return this.unwatch.push(le), w;
4628
+ }, ae = this.watchLoadData(oe);
4629
+ return this.unwatch.push(ae), w;
4607
4630
  }
4608
4631
  }
4609
4632
  },
@@ -4614,8 +4637,8 @@ function Kt(t) {
4614
4637
  globalLanguageDriver(c) {
4615
4638
  let g = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
4616
4639
  if (g && (b = O(() => g(c))), b == null && $ && typeof $ == "object" && (b = L($, c)), b == null) {
4617
- const w = this.options.value.language || {}, S = this.getLocale();
4618
- b = L(w[S] || {}, c), b == null && (b = L(Bi[S] || {}, c));
4640
+ const w = this.options.value.language || {}, A = this.getLocale();
4641
+ b = L(w[A] || {}, c), b == null && (b = L(Bi[A] || {}, c));
4619
4642
  }
4620
4643
  return b;
4621
4644
  },
@@ -4625,22 +4648,21 @@ function Kt(t) {
4625
4648
  if (b) {
4626
4649
  const w = h.Function(b) ? b : W(b.handle);
4627
4650
  if (w) {
4628
- let S;
4629
- const R = this.watchLoadData((ae, X) => {
4630
- X ? (this.bus.$emit("$loadData.$var." + $), R()) : S = w(ae, this.$handle.api);
4631
- });
4632
- return this.unwatch.push(R), L(S, g);
4651
+ let A = w((...R) => this.$handle.api.getData(...R), this.$handle.api);
4652
+ return L(A, g);
4633
4653
  }
4634
4654
  }
4635
4655
  },
4636
4656
  setData(c, g, $) {
4637
- $ ? Be(c, g) : (se(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4657
+ $ ? Le(c, g) : (ne(this.vm.top.fc.tmpData, c, g), this.bus.$emit("$loadData." + c));
4638
4658
  },
4639
4659
  getLoadData(c, g) {
4640
4660
  let $ = null;
4641
4661
  if (c != null) {
4642
4662
  let b = c.split(".");
4643
4663
  const w = b.shift();
4664
+ if ($ = L(this.vm.top.fc.tmpData, c), $ != null)
4665
+ return $;
4644
4666
  if (w === "$topForm")
4645
4667
  $ = this.$handle.api.top.formData(!0);
4646
4668
  else if (w === "$scopeForm")
@@ -4660,10 +4682,7 @@ function Kt(t) {
4660
4682
  else {
4661
4683
  if (w === "$preview")
4662
4684
  return this.$handle.preview;
4663
- {
4664
- const S = this.vm.top.fc.tmpData;
4665
- D(S, w) || F(S, w, Ee), $ = S[w] !== Ee ? L(S, c) : st(c), b = [];
4666
- }
4685
+ $ = nt(c), b = [];
4667
4686
  }
4668
4687
  $ && b.length && ($ = L($, b));
4669
4688
  }
@@ -4675,30 +4694,30 @@ function Kt(t) {
4675
4694
  this.get || (this.get = w), O(() => {
4676
4695
  c(w, R);
4677
4696
  }), this.get === w && (this.get = void 0);
4678
- }, w = (R, ae) => {
4679
- let X;
4680
- if (typeof R == "object" && (X = R.getValue, R = R.id), $[R])
4697
+ }, w = (R, be) => {
4698
+ let oe;
4699
+ if (typeof R == "object" && (oe = R.getValue, R = R.id), $[R])
4681
4700
  return $[R].val;
4682
- const le = ye(() => X ? X() : this.getLoadData(R, ae)), J = R.split("."), ue = J.shift(), me = J.shift() || "", te = ne(() => {
4683
- const fe = X ? X() : this.getLoadData(R, ae);
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);
4684
4703
  if ($[R])
4685
- ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[R].val || JSON.stringify(fe) !== JSON.stringify($[R].val)) && ($[R].val = fe, b(!0));
4704
+ ((ue instanceof Function || h.Object(ue) || Array.isArray(ue)) && ue === $[R].val || JSON.stringify(ue) !== JSON.stringify($[R].val)) && ($[R].val = ue, b(!0));
4686
4705
  else return;
4687
- }, g || 0), nr = B(le, (fe) => {
4688
- te();
4706
+ }, g || 0), nr = B(ae, (ue) => {
4707
+ ee();
4689
4708
  });
4690
- return this.bus.$on("$loadData." + ue, te), me && this.bus.$on("$loadData." + ue + "." + me, te), $[R] = {
4709
+ return this.bus.$on("$loadData." + le, ee), pe && this.bus.$on("$loadData." + le + "." + pe, ee), $[R] = {
4691
4710
  fn: () => {
4692
- this.bus.$off("$loadData." + ue, te), me && this.bus.$off("$loadData." + ue + "." + me, te), nr();
4711
+ this.bus.$off("$loadData." + le, ee), pe && this.bus.$off("$loadData." + le + "." + pe, ee), nr();
4693
4712
  },
4694
- val: le.value
4695
- }, le.value;
4713
+ val: ae.value
4714
+ }, ae.value;
4696
4715
  };
4697
4716
  b(!1);
4698
- const S = () => {
4717
+ const A = () => {
4699
4718
  Object.keys($).forEach((R) => $[R].fn()), $ = {};
4700
4719
  };
4701
- return this.unwatch.push(S), S;
4720
+ return this.unwatch.push(A), A;
4702
4721
  },
4703
4722
  isSub() {
4704
4723
  return this.vm.parent && this.vm.extendOption;
@@ -4746,39 +4765,39 @@ function Kt(t) {
4746
4765
  this.$handle.bindNextTick(() => this.bus.$emit("next-tick", this.$handle.api));
4747
4766
  }
4748
4767
  });
4749
- function ot(c) {
4768
+ function st(c) {
4750
4769
  C(c, {
4751
4770
  version: t.version,
4752
4771
  ui: t.ui,
4753
4772
  isMobile: d,
4754
4773
  extendApi: er,
4755
- getData: st,
4774
+ getData: nt,
4756
4775
  setDataDriver: Oe,
4757
- setData: Be,
4776
+ setData: Le,
4758
4777
  removeData: tr,
4759
4778
  refreshData: we,
4760
4779
  maker: f,
4761
- component: k,
4780
+ component: F,
4762
4781
  directive: T,
4763
- setModelField: Qt,
4764
- setFormula: Yt,
4765
- setDriver: xt,
4766
- register: he,
4782
+ setModelField: xt,
4783
+ setFormula: Qt,
4784
+ setDriver: Yt,
4785
+ register: ce,
4767
4786
  $vnode: N,
4768
- parser: de,
4769
- use: pe,
4787
+ parser: he,
4788
+ use: de,
4770
4789
  factory: Zt,
4771
- componentAlias: Le,
4790
+ componentAlias: Pe,
4772
4791
  copyRule: Lt,
4773
4792
  copyRules: Bt,
4774
- mergeRule: x,
4793
+ mergeRule: Q,
4775
4794
  fetch: Gt,
4776
- $form: E,
4795
+ $form: S,
4777
4796
  parseFn: W,
4778
4797
  parseJson: Pt,
4779
4798
  toJson: _e,
4780
4799
  useApp: I,
4781
- getApi: ee,
4800
+ getApi: Y,
4782
4801
  on: rr
4783
4802
  });
4784
4803
  }
@@ -4788,34 +4807,34 @@ function Kt(t) {
4788
4807
  install(g, $) {
4789
4808
  if (p = v(v({}, p), $ || {}), g._installedFormCreate === !0) return;
4790
4809
  g._installedFormCreate = !0;
4791
- const b = function(S, R = {}) {
4792
- return z(S, R, this);
4810
+ const b = function(A, R = {}) {
4811
+ return z(A, R, this);
4793
4812
  };
4794
- ot(b), g.prototype.$formCreate = b;
4795
- const w = E();
4796
- g.component(w.name, w), g.component("FcFragment", N()), o.forEach((S) => {
4797
- O(() => S(c, g));
4813
+ st(b), g.prototype.$formCreate = b;
4814
+ const w = S();
4815
+ g.component(w.name, w), g.component("FcFragment", N()), o.forEach((A) => {
4816
+ O(() => A(c, g));
4798
4817
  });
4799
4818
  }
4800
4819
  });
4801
4820
  }
4802
- if (ot(j), ir(j), Oe("$cookie", Vi), Oe("$localStorage", Pi), Oe("$sessionStorage", Li), y.use({ fragment: "fcFragment" }), t.install && z.use(t), de(Di), t.inherit) {
4821
+ if (st(E), ir(E), Oe("$cookie", Vi), Oe("$localStorage", Pi), Oe("$sessionStorage", Li), y.use({ fragment: "fcFragment" }), t.install && z.use(t), he(Di), t.inherit) {
4803
4822
  const c = t.inherit;
4804
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);
4805
4824
  }
4806
- const Fe = E();
4807
- return Se(Fe, j), Object.defineProperties(Fe, {
4825
+ const ke = S();
4826
+ return Se(ke, E), Object.defineProperties(ke, {
4808
4827
  fetch: {
4809
4828
  get() {
4810
- return j.fetch;
4829
+ return E.fetch;
4811
4830
  },
4812
4831
  set(c) {
4813
- j.fetch = c;
4832
+ E.fetch = c;
4814
4833
  }
4815
4834
  }
4816
- }), Fe.util = j, Fe;
4835
+ }), ke.util = E, ke;
4817
4836
  }
4818
- function qe(t) {
4837
+ function Ue(t) {
4819
4838
  if (h.Date(t))
4820
4839
  return t;
4821
4840
  {
@@ -4830,7 +4849,7 @@ const _t = "datePicker", Gi = {
4830
4849
  }(),
4831
4850
  mergeProp(t) {
4832
4851
  let e = t.prop.props;
4833
- e.startDate && (e.startDate = e.startDate && qe(e.startDate));
4852
+ e.startDate && (e.startDate = e.startDate && Ue(e.startDate));
4834
4853
  },
4835
4854
  isRange(t) {
4836
4855
  return t.type.includes("range") || t.multiple;
@@ -4849,25 +4868,25 @@ const _t = "datePicker", Gi = {
4849
4868
  return this.isRange(e.el) ? r : r[0];
4850
4869
  } else {
4851
4870
  let r = Array.isArray(t), i = e.prop.props, s, n = i.type || "date";
4852
- return ["daterange", "datetimerange"].indexOf(n) !== -1 ? r ? s = t.map((o) => o ? qe(o) : "") : s = ["", ""] : n === "date" && i.multiple === !0 ? s = toString(t) : (s = r ? t[0] || "" : t, s = s ? qe(s) : ""), s;
4871
+ return ["daterange", "datetimerange"].indexOf(n) !== -1 ? r ? s = t.map((o) => o ? Ue(o) : "") : s = ["", ""] : n === "date" && i.multiple === !0 ? s = toString(t) : (s = r ? t[0] || "" : t, s = s ? Ue(s) : ""), s;
4853
4872
  }
4854
4873
  },
4855
4874
  mounted(t) {
4856
4875
  t.rule.value = this.toValue(t.$handle.getFormData(t), t);
4857
4876
  }
4858
- }, Ge = "hidden", Hi = {
4859
- name: Ge,
4877
+ }, qe = "hidden", Hi = {
4878
+ name: qe,
4860
4879
  maker: {
4861
- [Ge]: (t, e) => P(Ge)("", t, e)
4880
+ [qe]: (t, e) => P(qe)("", t, e)
4862
4881
  },
4863
4882
  render() {
4864
4883
  return [];
4865
4884
  }
4866
- }, He = "input", zi = {
4867
- name: He,
4885
+ }, Ge = "input", zi = {
4886
+ name: Ge,
4868
4887
  maker: function() {
4869
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = P(He, { type: r }), e), {});
4870
- return t.idate = P(He, { type: "date" }), t;
4888
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = P(Ge, { type: r }), e), {});
4889
+ return t.idate = P(Ge, { type: "date" }), t;
4871
4890
  }(),
4872
4891
  mergeProp(t) {
4873
4892
  let { props: e } = t.prop;
@@ -4929,21 +4948,21 @@ const _t = "datePicker", Gi = {
4929
4948
  array: "fcGroup",
4930
4949
  subForm: "fcSubForm",
4931
4950
  object: "fcSubForm"
4932
- }, Ie = {
4951
+ }, Ae = {
4933
4952
  resetBtnType: "default",
4934
4953
  resetBtnIcon: "md-refresh",
4935
4954
  infoIcon: "ios-information-circle-outline"
4936
4955
  };
4937
- function Qi() {
4956
+ function xi() {
4938
4957
  return {
4939
4958
  type: "poptip",
4940
4959
  trigger: "hover",
4941
4960
  placement: "top-start",
4942
4961
  wordWrap: !0,
4943
- icon: Ie.infoIcon
4962
+ icon: Ae.infoIcon
4944
4963
  };
4945
4964
  }
4946
- function Yi() {
4965
+ function Qi() {
4947
4966
  return {
4948
4967
  form: {
4949
4968
  inline: !1,
@@ -4965,9 +4984,9 @@ function Yi() {
4965
4984
  click: void 0
4966
4985
  },
4967
4986
  resetBtn: {
4968
- type: Ie.resetBtnType,
4987
+ type: Ae.resetBtnType,
4969
4988
  disabled: !1,
4970
- icon: Ie.resetBtnIcon,
4989
+ icon: Ae.resetBtnIcon,
4971
4990
  innerText: "",
4972
4991
  loading: !1,
4973
4992
  show: !1,
@@ -4978,13 +4997,13 @@ function Yi() {
4978
4997
  function wt(t, e) {
4979
4998
  D(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4980
4999
  }
4981
- function Z(t) {
5000
+ function X(t) {
4982
5001
  return t === !1;
4983
5002
  }
4984
- function xi(t, e) {
5003
+ function Yi(t, e) {
4985
5004
  D(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4986
5005
  }
4987
- function ze(t) {
5006
+ function He(t) {
4988
5007
  const e = v({}, t);
4989
5008
  return delete e.children, e;
4990
5009
  }
@@ -5007,7 +5026,7 @@ const en = {
5007
5026
  },
5008
5027
  tidyOptions(t) {
5009
5028
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
5010
- xi(t, e);
5029
+ Yi(t, e);
5011
5030
  }), t;
5012
5031
  },
5013
5032
  tidyRule({ prop: t }) {
@@ -5015,20 +5034,20 @@ const en = {
5015
5034
  },
5016
5035
  mergeProp(t) {
5017
5036
  const e = {
5018
- info: Qi(),
5037
+ info: xi(),
5019
5038
  title: {},
5020
5039
  col: { span: 24 },
5021
5040
  wrap: {}
5022
5041
  };
5023
5042
  ["info", "wrap", "col", "title"].forEach((r) => {
5024
- t.prop[r] = Y([this.options[r] || {}, t.prop[r] || {}], e[r]);
5043
+ t.prop[r] = x([this.options[r] || {}, t.prop[r] || {}], e[r]);
5025
5044
  }), this.setSize(t.prop.props);
5026
5045
  },
5027
5046
  setSize(t) {
5028
5047
  !t.size && this.options.form.size && (t.size = this.options.form.size);
5029
5048
  },
5030
5049
  getDefaultOptions() {
5031
- return Yi();
5050
+ return Qi();
5032
5051
  },
5033
5052
  update() {
5034
5053
  const t = this.options.form;
@@ -5050,15 +5069,15 @@ const en = {
5050
5069
  });
5051
5070
  },
5052
5071
  render(t) {
5053
- return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, Z(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
5072
+ return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, X(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
5054
5073
  },
5055
5074
  makeWrap(t, e) {
5056
5075
  const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r) && r.wrap.title !== !1, o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: l } = this.rule.props, u = r.wrap.class;
5057
5076
  delete r.wrap.class, delete r.wrap.title;
5058
- const f = Z(r.wrap.show) ? e : this.$r(Y([r.wrap, {
5077
+ const f = X(r.wrap.show) ? e : this.$r(x([r.wrap, {
5059
5078
  props: U(v({
5060
5079
  labelWidth: o
5061
- }, ze(r.wrap || {})), {
5080
+ }, He(r.wrap || {})), {
5062
5081
  prop: t.id,
5063
5082
  rules: t.injectValidate()
5064
5083
  }),
@@ -5067,12 +5086,12 @@ const en = {
5067
5086
  ref: t.wrapRef,
5068
5087
  type: "formItem"
5069
5088
  }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5070
- return a === !0 || Z(l) || Z(s.show) ? f : this.makeCol(r, i, [f]);
5089
+ return a === !0 || X(l) || X(s.show) ? f : this.makeCol(r, i, [f]);
5071
5090
  },
5072
5091
  isTitle(t) {
5073
5092
  if (this.options.form.title === !1) return !1;
5074
5093
  const e = t.title;
5075
- return !(!e.title && !e.native || Z(e.show));
5094
+ return !(!e.title && !e.native || X(e.show));
5076
5095
  },
5077
5096
  makeInfo(t, e, r) {
5078
5097
  var u, f, p, d, m, y;
@@ -5081,26 +5100,26 @@ const en = {
5081
5100
  rule: r.rule,
5082
5101
  options: this.options
5083
5102
  }) : ((d = (p = r.refRule) == null ? void 0 : p.__$title) == null ? void 0 : d.value) + (n.labelSuffix || n["label-suffix"] || "")];
5084
- if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
5103
+ if (!X(s.show) && (s.info || s.native) && !X(s.icon)) {
5085
5104
  const _ = {
5086
5105
  type: s.type || "poptip",
5087
- props: ze(s),
5106
+ props: He(s),
5088
5107
  key: `${e}pop`,
5089
5108
  slot: "label"
5090
5109
  };
5091
5110
  delete _.props.icon, delete _.props.show, delete _.props.info, delete _.props.align, delete _.props.native;
5092
- const j = "content";
5093
- s.info && !D(_.props, j) && (_.props[j] = (y = (m = r.refRule) == null ? void 0 : m.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, _]), [
5111
+ 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, _]), [
5094
5113
  this.$r({
5095
5114
  type: "icon",
5096
- props: { type: s.icon === !0 ? Ie.infoIcon : s.icon, size: 16 },
5115
+ props: { type: s.icon === !0 ? Ae.infoIcon : s.icon, size: 16 },
5097
5116
  style: "margin-top: -1px",
5098
5117
  key: `${e}i`
5099
5118
  })
5100
5119
  ]));
5101
5120
  }
5102
- const l = Y([i, {
5103
- props: ze(i),
5121
+ const l = x([i, {
5122
+ props: He(i),
5104
5123
  key: `${e}tit`,
5105
5124
  class: "fc-form-title",
5106
5125
  slot: i.slot || "label",
@@ -5128,7 +5147,7 @@ const en = {
5128
5147
  },
5129
5148
  makeFormBtn() {
5130
5149
  let t = [];
5131
- if (Z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), Z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5150
+ if (X(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), X(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5132
5151
  return;
5133
5152
  const e = this.$r({
5134
5153
  type: "formItem",
@@ -5175,7 +5194,7 @@ const en = {
5175
5194
  key: `${this.key}b1`
5176
5195
  }, [e]);
5177
5196
  }
5178
- }, oe = {}, tn = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5197
+ }, se = {}, tn = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5179
5198
  function rn(t) {
5180
5199
  tn.forEach((e) => {
5181
5200
  t[e] = P(e);
@@ -5213,12 +5232,12 @@ function ln(t) {
5213
5232
  };
5214
5233
  Object.keys(r).reduce((i, s) => (i[s] = P(e, (n) => n.props({ type: r[s][0], maxLength: r[s][1] })), i), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages;
5215
5234
  }
5216
- rn(oe);
5217
- nn(oe);
5218
- sn(oe);
5219
- an(oe);
5220
- ln(oe);
5221
- on(oe);
5235
+ rn(se);
5236
+ nn(se);
5237
+ sn(se);
5238
+ an(se);
5239
+ ln(se);
5240
+ on(se);
5222
5241
  function Ot(t, e) {
5223
5242
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5224
5243
  }
@@ -5240,7 +5259,7 @@ function un(t, e) {
5240
5259
  }), Promise.all(o).then(() => {
5241
5260
  i(!0), r && r(!0);
5242
5261
  }).catch((a) => {
5243
- s(a), r && r(a), e.vm.$emit("validate-fail", a, { api: t });
5262
+ s(a), r && r(a), e.vm.$emit("validate-fail", a, { api: t }), e.emitEvent("validate-fail", a, { api: t });
5244
5263
  });
5245
5264
  });
5246
5265
  },
@@ -5356,14 +5375,14 @@ function cn(t) {
5356
5375
  t.component(e.name, e);
5357
5376
  }), t.register(Xt), Xi.forEach((e) => {
5358
5377
  t.parser(e);
5359
- }), Object.keys(oe).forEach((e) => {
5360
- t.maker[e] = oe[e];
5378
+ }), Object.keys(se).forEach((e) => {
5379
+ t.maker[e] = se[e];
5361
5380
  });
5362
5381
  }
5363
5382
  function hn() {
5364
5383
  return Kt({
5365
5384
  ui: "iview",
5366
- version: "2.7.11",
5385
+ version: "2.7.14",
5367
5386
  manager: en,
5368
5387
  install: cn,
5369
5388
  extendApi: un,
@@ -5374,10 +5393,10 @@ function hn() {
5374
5393
  }
5375
5394
  });
5376
5395
  }
5377
- const Ye = hn();
5378
- typeof window != "undefined" && (window.formCreate = Ye, window.Vue && Ye.install(window.Vue));
5379
- const mn = Ye.maker;
5396
+ const xe = hn();
5397
+ typeof window != "undefined" && (window.formCreate = xe, window.Vue && xe.install(window.Vue));
5398
+ const mn = xe.maker;
5380
5399
  export {
5381
- Ye as default,
5400
+ xe as default,
5382
5401
  mn as maker
5383
5402
  };