@form-create/iview 2.7.7 → 2.7.9

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,61 +1,61 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/iview v2.7.7
3
+ * @form-create/iview v2.7.9
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
7
7
  * Released under the MIT License.
8
8
  */
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}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
10
- var ir = Object.defineProperty, nr = Object.defineProperties;
11
- var sr = Object.getOwnPropertyDescriptors;
12
- var ot = Object.getOwnPropertySymbols;
13
- var or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable;
14
- var at = (t, e, r) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
10
+ var sr = Object.defineProperty, or = Object.defineProperties;
11
+ var ar = Object.getOwnPropertyDescriptors;
12
+ var at = Object.getOwnPropertySymbols;
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) => {
15
15
  for (var r in e || (e = {}))
16
- or.call(e, r) && at(t, r, e[r]);
17
- if (ot)
18
- for (var r of ot(e))
19
- ar.call(e, r) && at(t, r, e[r]);
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]);
20
20
  return t;
21
- }, U = (t, e) => nr(t, sr(e));
22
- import ye, { getCurrentInstance as lr, provide as ur, inject as fr, toRefs as lt, reactive as ie, onBeforeMount as cr, watch as B, onMounted as hr, onBeforeUnmount as dr, onUpdated as pr, nextTick as A, markRaw as me, computed as ge, toRef as De, ref as mr } from "vue";
23
- function gr(t) {
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";
23
+ function $r(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
- function ze() {
27
- return ze = Object.assign ? Object.assign.bind() : function(t) {
26
+ function Je() {
27
+ return Je = 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
- }, ze.apply(this, arguments);
30
+ }, Je.apply(this, arguments);
31
31
  }
32
- var yr = ["attrs", "props", "domProps"], $r = ["class", "style", "directives"], br = ["on", "nativeOn"], vr = function(t) {
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 (yr.indexOf(i) !== -1) e[i] = ze({}, e[i], r[i]);
36
- else if ($r.indexOf(i) !== -1) {
35
+ else if (br.indexOf(i) !== -1) e[i] = Je({}, e[i], r[i]);
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);
39
- } else if (br.indexOf(i) !== -1)
39
+ } else if (_r.indexOf(i) !== -1)
40
40
  for (var o in r[i]) if (e[i][o]) {
41
41
  var a = e[i][o] instanceof Array ? e[i][o] : [e[i][o]], l = r[i][o] instanceof Array ? r[i][o] : [r[i][o]];
42
42
  e[i][o] = [].concat(a, l);
43
43
  } else e[i][o] = r[i][o];
44
- else if (i === "hook") for (var u in r[i]) e[i][u] = e[i][u] ? _r(e[i][u], r[i][u]) : r[i][u];
44
+ else if (i === "hook") for (var u in r[i]) e[i][u] = e[i][u] ? wr(e[i][u], r[i][u]) : r[i][u];
45
45
  else e[i] = r[i];
46
46
  return e;
47
47
  }, {});
48
- }, _r = function(t, e) {
48
+ }, wr = function(t, e) {
49
49
  return function() {
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
- }, Cr = vr;
53
- const I = /* @__PURE__ */ gr(Cr);
54
- function Ie(t, e) {
52
+ }, Or = Cr;
53
+ const A = /* @__PURE__ */ $r(Or);
54
+ function Ve(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 wr = "fcCheckbox", Or = {
58
- name: wr,
57
+ const Fr = "fcCheckbox", kr = {
58
+ name: Fr,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -100,7 +100,7 @@ const wr = "fcCheckbox", Or = {
100
100
  },
101
101
  render() {
102
102
  const t = arguments[0];
103
- return t("CheckboxGroup", I([{}, this.formCreateInject.prop, {
103
+ return t("CheckboxGroup", A([{}, this.formCreateInject.prop, {
104
104
  ref: "el"
105
105
  }, {
106
106
  props: {
@@ -112,12 +112,12 @@ const wr = "fcCheckbox", Or = {
112
112
  }
113
113
  }]), [this.options().map((e, r) => {
114
114
  const i = v({}, e);
115
- return delete i.value, t("Checkbox", I([{}, {
115
+ return delete i.value, t("Checkbox", A([{}, {
116
116
  props: i
117
117
  }, {
118
118
  key: "" + r + "-" + e.value
119
119
  }]));
120
- }), Ie(this.$slots)]);
120
+ }), Ve(this.$slots)]);
121
121
  },
122
122
  mounted() {
123
123
  this.$emit("fc.el", this.$refs.el);
@@ -126,10 +126,10 @@ const wr = "fcCheckbox", Or = {
126
126
  function H(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
- const Fr = "fcFrame";
130
- function Ot(t) {
129
+ const Sr = "fcFrame";
130
+ function Ft(t) {
131
131
  return {
132
- name: Fr,
132
+ name: Sr,
133
133
  props: {
134
134
  formCreateInject: {
135
135
  type: Object,
@@ -286,7 +286,7 @@ function Ot(t) {
286
286
  readonly: !0,
287
287
  clearable: !1
288
288
  };
289
- return e("Input", I([{}, {
289
+ return e("Input", A([{}, {
290
290
  props: r
291
291
  }, {}, {
292
292
  on: {
@@ -325,7 +325,7 @@ function Ot(t) {
325
325
  },
326
326
  makeHandleIcon(e, r) {
327
327
  const i = this.$createElement;
328
- return i("icon", I([{}, {
328
+ return i("icon", A([{}, {
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 Ot(t) {
338
338
  },
339
339
  makeRemoveIcon(e, r) {
340
340
  const i = this.$createElement;
341
- return i("icon", I([{}, {
341
+ return i("icon", A([{}, {
342
342
  props: {
343
343
  type: "ios-trash-outline"
344
344
  }
@@ -351,7 +351,7 @@ function Ot(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", I([{}, {
354
+ return this.makeGroup(this.fileList.map((r, i) => this.makeItem(i, [e("icon", A([{}, {
355
355
  props: {
356
356
  type: t.fileIcon,
357
357
  size: 40
@@ -378,7 +378,7 @@ function Ot(t) {
378
378
  click: () => this.showModel()
379
379
  },
380
380
  key: this.key("btn")
381
- }, [e("icon", I([{}, {
381
+ }, [e("icon", A([{}, {
382
382
  props: {
383
383
  type: this.icon,
384
384
  size: 20
@@ -450,7 +450,7 @@ function Ot(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", I([{}, {
453
+ }, [i, e("Modal", A([{}, {
454
454
  props: {
455
455
  mask: this.previewMask,
456
456
  title: l,
@@ -468,7 +468,7 @@ function Ot(t) {
468
468
  attrs: {
469
469
  src: this.previewImage
470
470
  }
471
- })]), e("Modal", I([{}, {
471
+ })]), e("Modal", A([{}, {
472
472
  props: v({
473
473
  width: s,
474
474
  title: a
@@ -503,16 +503,16 @@ function Ot(t) {
503
503
  }
504
504
  };
505
505
  }
506
- const Ft = Ot({
506
+ const kt = Ft({
507
507
  fileIcon: "md-document",
508
508
  fileUpIcon: "ios-folder-open"
509
509
  });
510
- Ft.v2 = Ot({
510
+ kt.v2 = Ft({
511
511
  fileIcon: "document-text",
512
512
  fileUpIcon: "folder"
513
513
  });
514
- const Sr = "fcRadio", kr = {
515
- name: Sr,
514
+ const Rr = "fcRadio", Er = {
515
+ name: Rr,
516
516
  props: {
517
517
  formCreateInject: {
518
518
  type: Object,
@@ -553,7 +553,7 @@ const Sr = "fcRadio", kr = {
553
553
  },
554
554
  render() {
555
555
  const t = arguments[0];
556
- return t("RadioGroup", I([{}, this.formCreateInject.prop, {}, {
556
+ return t("RadioGroup", A([{}, this.formCreateInject.prop, {}, {
557
557
  props: {
558
558
  value: this.trueValue
559
559
  }
@@ -564,12 +564,12 @@ const Sr = "fcRadio", kr = {
564
564
  }
565
565
  }]), [this.options().map((e, r) => {
566
566
  const i = v({}, e);
567
- return delete i.value, t("Radio", I([{}, {
567
+ return delete i.value, t("Radio", A([{}, {
568
568
  props: i
569
569
  }, {
570
570
  key: "" + r + "-" + e.value
571
571
  }]));
572
- }), Ie(this.$slots)]);
572
+ }), Ve(this.$slots)]);
573
573
  },
574
574
  mounted() {
575
575
  this.$emit("fc.el", this.$refs.el);
@@ -607,8 +607,8 @@ const Sr = "fcRadio", kr = {
607
607
  function E(t, e) {
608
608
  return {}.hasOwnProperty.call(t, e);
609
609
  }
610
- const Rr = "fcSelect", Er = {
611
- name: Rr,
610
+ const Dr = "fcSelect", jr = {
611
+ name: Dr,
612
612
  functional: !0,
613
613
  props: {
614
614
  formCreateInject: {
@@ -619,7 +619,7 @@ const Rr = "fcSelect", Er = {
619
619
  render(t, e) {
620
620
  const r = (n, o) => {
621
621
  const a = n.slot;
622
- return t("Option", I([{}, {
622
+ return t("Option", A([{}, {
623
623
  props: n
624
624
  }, {
625
625
  key: "" + o + "-" + n.value
@@ -632,15 +632,15 @@ const Rr = "fcSelect", Er = {
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", I([{}, e.data, {
635
+ return t("Select", A([{}, e.data, {
636
636
  ref: "el"
637
637
  }]), [(Array.isArray(s) ? s : []).map((n, o) => E(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
638
638
  },
639
639
  mounted() {
640
640
  this.$emit("fc.el", this.$refs.el);
641
641
  }
642
- }, Dr = "fcTree", jr = {
643
- name: Dr,
642
+ }, Ar = "fcTree", Ir = {
643
+ name: Ar,
644
644
  props: {
645
645
  formCreateInject: {
646
646
  type: Object,
@@ -684,36 +684,36 @@ const Rr = "fcSelect", Er = {
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", I([{}, this.formCreateInject.prop, {
687
+ return this.type === "selected" ? e["on-select-change"] = this.onInput : e["on-check-change"] = this.onInput, t("Tree", A([{}, this.formCreateInject.prop, {
688
688
  ref: "tree"
689
689
  }, {
690
690
  on: e
691
- }]), [Ie(this.$slots)]);
691
+ }]), [Ve(this.$slots)]);
692
692
  },
693
693
  mounted() {
694
694
  this.$emit("fc.el", this.$refs.tree);
695
695
  }
696
696
  };
697
- function ut(t) {
697
+ function ft(t) {
698
698
  return typeof t == "object" ? t : {
699
699
  url: t,
700
700
  is_string: !0,
701
- name: Ir(t)
701
+ name: Vr(t)
702
702
  };
703
703
  }
704
- function ft(t) {
704
+ function ct(t) {
705
705
  return U(v({}, t), {
706
706
  file: t,
707
707
  value: t
708
708
  });
709
709
  }
710
- function Ir(t) {
710
+ function Vr(t) {
711
711
  return ("" + t).split("/").pop();
712
712
  }
713
- const Ar = "fcUpload";
713
+ const Pr = "fcUpload";
714
714
  function St(t) {
715
715
  return {
716
- name: Ar,
716
+ name: Pr,
717
717
  props: {
718
718
  formCreateInject: {
719
719
  type: Object,
@@ -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(ut).map(ft);
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);
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(ut).map(ft), 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(ft).map(ct), 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", I([{}, {
787
+ }) : i("icon", A([{}, {
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", I([{}, {
822
+ return i("Progress", A([{}, {
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", I([{}, this.formCreateInject.prop, {}, {
852
+ return e("Upload", A([{}, 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", I([{}, {
862
+ }, [e("icon", A([{}, {
863
863
  props: {
864
864
  type: this.uploadType === "file" ? "ios-cloud-upload-outline" : t.imgUpIcon,
865
865
  size: 20
866
866
  }
867
- }]))])]) : null, Ie(this.$slots, ["default"])]);
867
+ }]))])]) : null, Ve(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", I([{}, {
881
+ }, [[this.formCreateInject.prop.props.showUploadList ? [] : this.makeFiles(), this.makeUpload()], e("Modal", A([{}, {
882
882
  props: {
883
883
  title: this.modalTitle,
884
884
  footerHide: !0
@@ -907,21 +907,21 @@ function St(t) {
907
907
  }
908
908
  };
909
909
  }
910
- const kt = St({
910
+ const Rt = St({
911
911
  fileIcon: "md-document",
912
912
  imgUpIcon: "md-images"
913
913
  });
914
- kt.v2 = St({
914
+ Rt.v2 = St({
915
915
  fileIcon: "document-text",
916
916
  imgUpIcon: "image"
917
917
  });
918
- function S(t, e, r) {
919
- ye.set(t, e, r);
918
+ function F(t, e, r) {
919
+ $e.set(t, e, r);
920
920
  }
921
921
  function re(t, e) {
922
- (ye.del || ye.delete)(t, e);
922
+ ($e.del || $e.delete)(t, e);
923
923
  }
924
- function _e(t, e = {}, r) {
924
+ function Ce(t, e = {}, r) {
925
925
  let i = !1;
926
926
  for (let s in e)
927
927
  if (Object.prototype.hasOwnProperty.call(e, s)) {
@@ -929,39 +929,39 @@ function _e(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 && S(t, s, []);
932
+ i = !1, o && F(t, s, []);
933
933
  else if (n._clone && r !== void 0)
934
934
  if (r)
935
- n = n.getRule(), o && S(t, s, {});
935
+ n = n.getRule(), o && F(t, s, {});
936
936
  else {
937
- S(t, s, n._clone());
937
+ F(t, s, n._clone());
938
938
  continue;
939
939
  }
940
940
  else
941
- o && S(t, s, {});
942
- t[s] = _e(t[s], n, r);
941
+ o && F(t, s, {});
942
+ t[s] = Ce(t[s], n, r);
943
943
  } else
944
- S(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
944
+ F(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
945
945
  }
946
946
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
947
947
  }
948
948
  function G(t) {
949
- return _e({}, { value: t }).value;
949
+ return Ce({}, { value: t }).value;
950
950
  }
951
- const Vr = Object.assign || function(t) {
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) && S(t, i, e[i]);
954
+ Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
955
955
  return t;
956
956
  };
957
957
  function C() {
958
- return Vr.apply(this, arguments);
958
+ return Lr.apply(this, arguments);
959
959
  }
960
- function Je(t) {
960
+ function We(t) {
961
961
  return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
962
962
  }
963
- const Pr = "fcGroup", Lr = {
964
- name: Pr,
963
+ const Br = "fcGroup", Tr = {
964
+ name: Br,
965
965
  props: {
966
966
  field: String,
967
967
  rule: [Array, Object],
@@ -1042,7 +1042,7 @@ const Pr = "fcGroup", Lr = {
1042
1042
  const s = i.$f.formData();
1043
1043
  if (t === e)
1044
1044
  i.$f.deferSyncValue(() => {
1045
- _e(i.rule, t), i.$f.setValue(s);
1045
+ Ce(i.rule, t), i.$f.setValue(s);
1046
1046
  }, !0);
1047
1047
  else {
1048
1048
  const n = i.$f.formData();
@@ -1235,12 +1235,12 @@ const Pr = "fcGroup", Lr = {
1235
1235
  return t("div", {
1236
1236
  class: "_fc-group-container",
1237
1237
  key: o
1238
- }, [t(i, I([{
1238
+ }, [t(i, A([{
1239
1239
  key: o
1240
1240
  }, {
1241
1241
  on: {
1242
1242
  "update:value": (d) => this.formData(o, d),
1243
- "emit-event": (d, ...g) => this.emitEvent(d, g, a, o),
1243
+ "emit-event": (d, ...p) => this.emitEvent(d, p, a, o),
1244
1244
  input: (d) => this.add$f(a, o, d)
1245
1245
  }
1246
1246
  }, {}, {
@@ -1265,8 +1265,8 @@ const Pr = "fcGroup", Lr = {
1265
1265
  class: "_fc-group " + (s ? "_fc-group-disabled" : "")
1266
1266
  }, [n]);
1267
1267
  }
1268
- }, Br = "fcSubForm", Tr = {
1269
- name: Br,
1268
+ }, Nr = "fcSubForm", Mr = {
1269
+ name: Nr,
1270
1270
  props: {
1271
1271
  rule: Array,
1272
1272
  options: Object,
@@ -1334,7 +1334,7 @@ const Pr = "fcGroup", Lr = {
1334
1334
  rule: e,
1335
1335
  options: r
1336
1336
  } = this.cacheRule, i = this.type;
1337
- return t(i, I([{}, {
1337
+ return t(i, A([{}, {
1338
1338
  on: {
1339
1339
  "update:value": this.formData,
1340
1340
  "emit-event": this.emitEvent,
@@ -1349,15 +1349,15 @@ const Pr = "fcGroup", Lr = {
1349
1349
  }
1350
1350
  }]));
1351
1351
  }
1352
- }, Nr = [
1353
- Or,
1352
+ }, Ur = [
1354
1353
  kr,
1355
1354
  Er,
1356
1355
  jr,
1357
- Tr,
1358
- Ft,
1356
+ Ir,
1357
+ Mr,
1359
1358
  kt,
1360
- Lr
1359
+ Rt,
1360
+ Tr
1361
1361
  ];
1362
1362
  function ne(t, e) {
1363
1363
  var r = null;
@@ -1365,17 +1365,17 @@ function ne(t, e) {
1365
1365
  r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
1366
1366
  };
1367
1367
  }
1368
- function $e(t) {
1368
+ function be(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
- const Rt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style", "directives"], Dt = ["on", "nativeOn", "hook"], x = (t, e = {}, r = {}) => {
1373
- const i = [...Rt, ...r.normal || []], s = [...Et, ...r.array || []], n = [...Dt, ...r.functional || []], o = r.props || [];
1372
+ const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style", "directives"], jt = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
1373
+ const i = [...Et, ...r.normal || []], s = [...Dt, ...r.array || []], n = [...jt, ...r.functional || []], o = r.props || [];
1374
1374
  return t.reduce((a, l) => {
1375
1375
  for (const u in l)
1376
1376
  if (a[u])
1377
1377
  if (o.indexOf(u) > -1)
1378
- a[u] = x([l[u]], a[u]);
1378
+ a[u] = Y([l[u]], a[u]);
1379
1379
  else if (i.indexOf(u) > -1)
1380
1380
  a[u] = v(v({}, a[u]), l[u]);
1381
1381
  else if (s.indexOf(u) > -1) {
@@ -1384,59 +1384,59 @@ const Rt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style"
1384
1384
  } else if (n.indexOf(u) > -1)
1385
1385
  for (const f in l[u])
1386
1386
  if (a[u][f]) {
1387
- const d = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], g = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1388
- a[u][f] = [...d, ...g];
1387
+ const d = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], p = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1388
+ a[u][f] = [...d, ...p];
1389
1389
  } else
1390
1390
  a[u][f] = l[u][f];
1391
1391
  else if (u === "hook")
1392
1392
  for (let f in l[u])
1393
- a[u][f] ? a[u][f] = Mr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1393
+ a[u][f] ? a[u][f] = qr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1394
1394
  else
1395
1395
  a[u] = l[u];
1396
1396
  else
1397
1397
  i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = v({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? v({}, l[u]) : l[u] : a[u] = l[u];
1398
1398
  return a;
1399
1399
  }, e);
1400
- }, Mr = (t, e) => function() {
1400
+ }, qr = (t, e) => function() {
1401
1401
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1402
- }, jt = ["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"], Ye = ["effect", "deep", "renderSlots"];
1402
+ }, 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"];
1403
1403
  function It() {
1404
- return [...jt, ...Rt, ...Et, ...Dt, ...xe, ...Ye];
1404
+ return [...At, ...Et, ...Dt, ...jt, ...xe, ...et];
1405
1405
  }
1406
- function At(t, e, r) {
1406
+ function Vt(t, e, r) {
1407
1407
  return `[form-create ${t}]: ${e}`;
1408
1408
  }
1409
- function et(t, e) {
1410
- console.error(At("err", t));
1409
+ function tt(t, e) {
1410
+ console.error(Vt("err", t));
1411
1411
  }
1412
- function Ur(t) {
1413
- et(t.toString()), console.error(t);
1412
+ function Gr(t) {
1413
+ tt(t.toString()), console.error(t);
1414
1414
  }
1415
- function qr(t) {
1415
+ function Hr(t) {
1416
1416
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1417
1417
  }
1418
- const We = "[[FORM-CREATE-PREFIX-", Ke = "-FORM-CREATE-SUFFIX]]";
1419
- function ve(t, e) {
1420
- return JSON.stringify(_e(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1418
+ const Ke = "[[FORM-CREATE-PREFIX-", Xe = "-FORM-CREATE-SUFFIX]]";
1419
+ function _e(t, e) {
1420
+ return JSON.stringify(Ce(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1421
1421
  if (!(i && i._isVue === !0)) {
1422
1422
  if (typeof i != "function")
1423
1423
  return i;
1424
1424
  if (i.__json)
1425
1425
  return i.__json;
1426
1426
  if (i.__origin && (i = i.__origin), !i.__emit)
1427
- return We + i + Ke;
1427
+ return Ke + i + Xe;
1428
1428
  }
1429
1429
  }, e);
1430
1430
  }
1431
- function Te(t) {
1431
+ function Ne(t) {
1432
1432
  return new Function("return " + t)();
1433
1433
  }
1434
1434
  function W(t, e) {
1435
1435
  if (t && h.String(t) && t.length > 4) {
1436
1436
  let r = t.trim(), i = !1;
1437
1437
  try {
1438
- if (r.indexOf(Ke) > 0 && r.indexOf(We) === 0)
1439
- r = r.replace(Ke, "").replace(We, ""), i = !0;
1438
+ if (r.indexOf(Xe) > 0 && r.indexOf(Ke) === 0)
1439
+ r = r.replace(Xe, "").replace(Ke, ""), i = !0;
1440
1440
  else if (r.indexOf("$FN:") === 0)
1441
1441
  r = r.substring(4), i = !0;
1442
1442
  else if (r.indexOf("$EXEC:") === 0)
@@ -1450,19 +1450,21 @@ function W(t, e) {
1450
1450
  }, r.__json = t, r.__inject = !0, r;
1451
1451
  } else {
1452
1452
  if (r.indexOf("$FNX:") === 0)
1453
- return r = Te("function($inject){" + r.substring(5) + "}"), r.__json = t, r.__inject = !0, r;
1453
+ return r = Ne(`function($inject){
1454
+ ` + r.substring(5) + `
1455
+ }`), r.__json = t, r.__inject = !0, r;
1454
1456
  (!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
1455
1457
  }
1456
1458
  if (!i) return t;
1457
1459
  let s;
1458
1460
  try {
1459
- s = Te(r);
1461
+ s = Ne(r);
1460
1462
  } catch (n) {
1461
- s = Te("function " + r);
1463
+ s = Ne("function " + r);
1462
1464
  }
1463
1465
  return s.__json = t, s;
1464
1466
  } catch (s) {
1465
- et(`解析失败:${r}
1467
+ tt(`解析失败:${r}
1466
1468
 
1467
1469
  err: ${s}`);
1468
1470
  return;
@@ -1470,23 +1472,23 @@ err: ${s}`);
1470
1472
  }
1471
1473
  return t;
1472
1474
  }
1473
- function Vt(t, e) {
1475
+ function Pt(t, e) {
1474
1476
  return JSON.parse(t, function(r, i) {
1475
1477
  return h.Undef(i) || !i.indexOf ? i : W(i, e);
1476
1478
  });
1477
1479
  }
1478
- let Gr = 0;
1479
- function Ae() {
1480
- const t = 370 + ++Gr;
1480
+ let zr = 0;
1481
+ function Pe() {
1482
+ const t = 370 + ++zr;
1481
1483
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1482
1484
  }
1483
1485
  function se(t, e, r) {
1484
1486
  let i = t, s;
1485
1487
  return (e || "").split(".").forEach((n) => {
1486
- s && ((!i[s] || typeof i[s] != "object") && S(i, s, {}), i = i[s]), s = n;
1487
- }), S(i, s, r), i;
1488
+ s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
1489
+ }), F(i, s, r), i;
1488
1490
  }
1489
- function Xe(t, e) {
1491
+ function Ze(t, e) {
1490
1492
  return {
1491
1493
  value: t,
1492
1494
  enumerable: !1,
@@ -1494,25 +1496,25 @@ function Xe(t, e) {
1494
1496
  writable: !!e
1495
1497
  };
1496
1498
  }
1497
- function Pt(t, e) {
1498
- return Lt([t], e || !1)[0];
1499
- }
1500
1499
  function Lt(t, e) {
1501
- return _e([], [...t], e || !1);
1500
+ return Bt([t], e || !1)[0];
1502
1501
  }
1503
- function Y(t, e) {
1504
- return x(Array.isArray(e) ? e : [e], t, { array: xe, normal: Ye }), t;
1502
+ function Bt(t, e) {
1503
+ return Ce([], [...t], e || !1);
1505
1504
  }
1506
- function ct(t) {
1505
+ function x(t, e) {
1506
+ return Y(Array.isArray(e) ? e : [e], t, { array: xe, normal: et }), t;
1507
+ }
1508
+ function ht(t) {
1507
1509
  const e = h.Function(t.getRule) ? t.getRule() : t;
1508
1510
  return e.type || (e.type = "input"), e;
1509
1511
  }
1510
- function Hr(t, e) {
1512
+ function Jr(t, e) {
1511
1513
  return t ? (Object.keys(e || {}).forEach((r) => {
1512
- e[r] && (t[r] = Y(t[r] || {}, e[r]));
1514
+ e[r] && (t[r] = x(t[r] || {}, e[r]));
1513
1515
  }), t) : e;
1514
1516
  }
1515
- function Bt(t, e) {
1517
+ function Tt(t, e) {
1516
1518
  Object.defineProperties(t, Object.keys(e).reduce((r, i) => (r[i] = {
1517
1519
  get() {
1518
1520
  return e[i]();
@@ -1526,28 +1528,28 @@ function O(t, e) {
1526
1528
  try {
1527
1529
  e = t();
1528
1530
  } catch (r) {
1529
- Ur(r);
1531
+ Gr(r);
1530
1532
  }
1531
1533
  return e;
1532
1534
  }
1533
- function Ze(t, e) {
1535
+ function Qe(t, e) {
1534
1536
  let r = null;
1535
- return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Ze(i, e)) : r = t, r && e && H(r).forEach((i) => {
1537
+ return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Qe(i, e)) : r = t, r && e && H(r).forEach((i) => {
1536
1538
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1537
1539
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1538
1540
  });
1539
1541
  }), r;
1540
1542
  }
1541
- function zr(t, e) {
1543
+ function Wr(t, e) {
1542
1544
  if (h.Object(t)) {
1543
1545
  const r = {};
1544
1546
  return Object.keys(t).forEach((i) => {
1545
- r[i] = Ze(t[i], i);
1547
+ r[i] = Qe(t[i], i);
1546
1548
  }), r;
1547
1549
  } else
1548
- return Ze(t, e);
1550
+ return Qe(t, e);
1549
1551
  }
1550
- function Fe() {
1552
+ function ke() {
1551
1553
  const t = {}, e = (r) => r || "default";
1552
1554
  return {
1553
1555
  setSlot(r, i) {
@@ -1563,7 +1565,7 @@ function Fe() {
1563
1565
  const n = s();
1564
1566
  Array.isArray(n) ? i.push(...n) : i.push(n);
1565
1567
  } else h.Undef(s) || i.push(s);
1566
- }), zr(i, r);
1568
+ }), Wr(i, r);
1567
1569
  },
1568
1570
  getSlots() {
1569
1571
  let r = [];
@@ -1586,24 +1588,24 @@ function Fe() {
1586
1588
  function Se(t, e) {
1587
1589
  return Object.setPrototypeOf(t, e), t;
1588
1590
  }
1589
- const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, fe = {
1590
- "==": (t, e) => JSON.stringify(t) === JSON.stringify(ht(t, e)),
1591
- "!=": (t, e) => !fe["=="](t, e),
1591
+ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1592
+ "==": (t, e) => JSON.stringify(t) === JSON.stringify(dt(t, e)),
1593
+ "!=": (t, e) => !ce["=="](t, e),
1592
1594
  ">": (t, e) => t > e,
1593
1595
  ">=": (t, e) => t >= e,
1594
1596
  "<": (t, e) => t < e,
1595
1597
  "<=": (t, e) => t <= e,
1596
1598
  on(t, e) {
1597
- return t && t.indexOf && t.indexOf(ht(t[0], e)) > -1;
1599
+ return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
1598
1600
  },
1599
1601
  notOn(t, e) {
1600
- return !fe.on(t, e);
1602
+ return !ce.on(t, e);
1601
1603
  },
1602
1604
  in(t, e) {
1603
1605
  return e && e.indexOf && e.indexOf(t) > -1;
1604
1606
  },
1605
1607
  notIn(t, e) {
1606
- return !fe.in(t, e);
1608
+ return !ce.in(t, e);
1607
1609
  },
1608
1610
  between(t, e) {
1609
1611
  return t > e[0] && t < e[1];
@@ -1626,7 +1628,7 @@ function L(t, e) {
1626
1628
  t != null && (t = t[r]);
1627
1629
  }), t;
1628
1630
  }
1629
- function Jr(t) {
1631
+ function Kr(t) {
1630
1632
  const e = /{{\s*(.*?)\s*}}/g;
1631
1633
  let r;
1632
1634
  const i = {};
@@ -1634,21 +1636,33 @@ function Jr(t) {
1634
1636
  r[1] && (i[r[1]] = !0);
1635
1637
  return Object.keys(i);
1636
1638
  }
1637
- function dt(t) {
1639
+ function pt(t) {
1638
1640
  let e = t.split("."), r = [], i = "";
1639
1641
  return e.forEach((s, n) => {
1640
1642
  n === 0 ? i = s : i += "." + s, r.push(i);
1641
1643
  }), r.join(" && ");
1642
1644
  }
1643
- const Re = (t, e) => {
1645
+ function Nt(t) {
1646
+ const e = [];
1647
+ let r = "", i = 0;
1648
+ for (let s = 0; s < t.length; s++) {
1649
+ const n = t[s];
1650
+ n === "[" ? (i === 0 && r && (e.push({ type: "key", value: r }), r = ""), i++, r += n) : n === "]" ? (i--, r += n, i === 0 && (e.push({
1651
+ type: "bracket",
1652
+ value: Nt(r.slice(1, -1))
1653
+ }), r = "")) : n === "." && i === 0 ? r && (e.push({ type: "key", value: r }), r = "") : r += n;
1654
+ }
1655
+ return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
1656
+ }
1657
+ const De = (t, e) => {
1644
1658
  if (!(!t || t === e || !t.$props)) {
1645
1659
  if (t.$props.formCreateInject)
1646
1660
  return t.$props.formCreateInject;
1647
1661
  if (t.$parent)
1648
- return Re(t.$parent, e);
1662
+ return De(t.$parent, e);
1649
1663
  }
1650
1664
  };
1651
- function Wr(t, e, r) {
1665
+ function Xr(t, e, r) {
1652
1666
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1653
1667
  return {
1654
1668
  name: i,
@@ -1699,102 +1713,102 @@ function Wr(t, e, r) {
1699
1713
  return this.fc.render();
1700
1714
  },
1701
1715
  setup(s) {
1702
- const n = lr().proxy;
1703
- ur("parentFC", n);
1704
- const o = fr("parentFC", null);
1716
+ const n = fr().proxy;
1717
+ cr("parentFC", n);
1718
+ const o = hr("parentFC", null);
1705
1719
  let a = o;
1706
1720
  if (o)
1707
1721
  for (; a.parent; )
1708
1722
  a = a.parent;
1709
1723
  else
1710
1724
  a = n;
1711
- const { rule: l, value: u, subForm: f, inFor: d } = lt(s), g = ie({
1725
+ const { rule: l, value: u, subForm: f, inFor: d } = ut(s), p = ie({
1712
1726
  ctxInject: {},
1713
1727
  destroyed: !1,
1714
1728
  isShow: !0,
1715
1729
  unique: 1,
1716
1730
  renderRule: [...l.value || []],
1717
1731
  updateValue: JSON.stringify(u.value || {})
1718
- }), m = new t(n), $ = m.api(), _ = d.value, D = () => {
1732
+ }), y = new t(n), g = y.api(), _ = d.value, D = () => {
1719
1733
  if (o) {
1720
- const F = Re(n, o);
1721
- if (F) {
1722
- let k;
1723
- _ ? (k = H(F.getSubForm()), k.push($)) : k = $, F.subForm(k);
1734
+ const k = De(n, o);
1735
+ if (k) {
1736
+ let R;
1737
+ _ ? (R = H(k.getSubForm()), R.push(g)) : R = g, k.subForm(R);
1724
1738
  }
1725
1739
  }
1726
1740
  }, ee = () => {
1727
- const F = Re(n, o);
1728
- if (F)
1741
+ const k = De(n, o);
1742
+ if (k)
1729
1743
  if (_) {
1730
- const k = H(F.getSubForm()), N = k.indexOf($);
1731
- N > -1 && k.splice(N, 1);
1744
+ const R = H(k.getSubForm()), N = R.indexOf(g);
1745
+ N > -1 && R.splice(N, 1);
1732
1746
  } else
1733
- F.subForm();
1747
+ k.subForm();
1734
1748
  };
1735
- let P = null;
1736
- cr(() => {
1749
+ let I = null;
1750
+ dr(() => {
1737
1751
  B(() => {
1738
- let F = "";
1739
- const k = s.option && s.option.globalClass || {};
1740
- Object.keys(k).forEach((N) => {
1741
- let de = "";
1742
- k[N].style && Object.keys(k[N].style).forEach((z) => {
1743
- de += $e(z) + ":" + k[N].style[z] + ";";
1744
- }), k[N].content && (de += k[N].content + ";"), de && (F += `.${N}{${de}}`);
1745
- }), s.option && s.option.style && (F += s.option.style), P || (P = document.createElement("style"), P.type = "text/css", document.head.appendChild(P)), P.innerHTML = F || "";
1752
+ let k = "";
1753
+ const R = s.option && s.option.globalClass || {};
1754
+ Object.keys(R).forEach((N) => {
1755
+ let pe = "";
1756
+ R[N].style && Object.keys(R[N].style).forEach((z) => {
1757
+ pe += be(z) + ":" + R[N].style[z] + ";";
1758
+ }), R[N].content && (pe += R[N].content + ";"), pe && (k += `.${N}{${pe}}`);
1759
+ }), 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 || "";
1746
1760
  }, () => {
1747
1761
  });
1748
1762
  });
1749
1763
  const T = ne(() => {
1750
- m.bus.$emit("$loadData.$topForm");
1751
- }, 100), ce = ne(function() {
1752
- m.bus.$emit("$loadData.$scopeForm");
1753
- }, 100), Ve = ne(() => {
1754
- m.bus.$emit("$loadData.$form");
1755
- }, 100), he = (F) => {
1756
- m.bus.$emit("change-$form." + F);
1764
+ y.bus.$emit("$loadData.$topForm");
1765
+ }, 100), he = ne(function() {
1766
+ y.bus.$emit("$loadData.$scopeForm");
1767
+ }, 100), Le = ne(() => {
1768
+ y.bus.$emit("$loadData.$form");
1769
+ }, 100), de = (k) => {
1770
+ y.bus.$emit("change-$form." + k);
1757
1771
  };
1758
- return hr(() => {
1759
- o && ($.top.bus.$on("$loadData.$form", T), $.top.bus.$on("change", he)), $ !== $.scope && $.scope.bus.$on("$loadData.$scopeForm", ce), m.mounted();
1760
- }), dr(() => {
1761
- o && ($.top.bus.$off("$loadData.$form", T), $.top.bus.$off("change", he)), $ !== $.scope && $.scope.bus.$off("$loadData.$scopeForm", ce), P && document.head.removeChild(P), ee(), g.destroyed = !0, m.unmount();
1762
- }), pr(() => {
1763
- m.updated();
1764
- }), B(f, (F) => {
1765
- F ? D() : ee();
1772
+ return pr(() => {
1773
+ o && (g.top.bus.$on("$loadData.$form", T), g.top.bus.$on("change", de)), g !== g.scope && g.scope.bus.$on("$loadData.$scopeForm", he), y.mounted();
1774
+ }), mr(() => {
1775
+ o && (g.top.bus.$off("$loadData.$form", T), g.top.bus.$off("change", de)), g !== g.scope && g.scope.bus.$off("$loadData.$scopeForm", he), ee(), p.destroyed = !0, y.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1776
+ }), gr(() => {
1777
+ y.updated();
1778
+ }), B(f, (k) => {
1779
+ k ? D() : ee();
1766
1780
  }, { immediate: !0 }), B(() => s.option, () => {
1767
- m.initOptions(), $.refresh();
1768
- }, { deep: !0 }), B(() => [...l.value], (F) => {
1769
- m.$handle.isBreakWatch() || F.length === g.renderRule.length && F.every((k) => g.renderRule.indexOf(k) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1781
+ y.initOptions(), g.refresh();
1782
+ }, { deep: !0 }), B(() => [...l.value], (k) => {
1783
+ y.$handle.isBreakWatch() || k.length === p.renderRule.length && k.every((R) => p.renderRule.indexOf(R) > -1) || (y.$handle.updateAppendData(), y.$handle.reloadRule(l.value), n.renderRule());
1770
1784
  }), B(() => [s.disabled, s.preview], () => {
1771
- $.refresh();
1772
- }), B(u, (F) => {
1773
- ve(F || {}) !== g.updateValue && ($.config.forceCoverValue ? $.coverValue(F || {}) : $.setValue(F || {}));
1785
+ g.refresh();
1786
+ }), B(u, (k) => {
1787
+ _e(k || {}) !== p.updateValue && (g.config.forceCoverValue ? g.coverValue(k || {}) : g.setValue(k || {}));
1774
1788
  }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1775
- $.coverValue({}), m.$handle.updateAppendData(), A(() => {
1776
- A(() => {
1777
- $.clearValidateState();
1789
+ g.coverValue({}), y.$handle.updateAppendData(), V(() => {
1790
+ V(() => {
1791
+ g.clearValidateState();
1778
1792
  });
1779
1793
  });
1780
1794
  }, { flush: "sync" }), U(v({
1781
- fc: me(m),
1782
- parent: o && me(o),
1783
- top: me(a),
1784
- fapi: me($)
1785
- }, lt(g)), {
1786
- getGroupInject: () => Re(n, o),
1795
+ fc: ge(y),
1796
+ parent: o && ge(o),
1797
+ top: ge(a),
1798
+ fapi: ge(g)
1799
+ }, ut(p)), {
1800
+ getGroupInject: () => De(n, o),
1787
1801
  refresh() {
1788
- ++g.unique;
1802
+ ++p.unique;
1789
1803
  },
1790
1804
  renderRule() {
1791
- g.renderRule = [...l.value || []];
1805
+ p.renderRule = [...l.value || []];
1792
1806
  },
1793
- updateValue(F) {
1794
- if (g.destroyed) return;
1795
- const k = ve(F);
1796
- g.updateValue !== k && (g.updateValue = k, n.$emit("update:value", F), A(() => {
1797
- Ve(), o ? f.value || ce() : (T(), ce());
1807
+ updateValue(k) {
1808
+ if (p.destroyed) return;
1809
+ const R = _e(k);
1810
+ p.updateValue !== R && (p.updateValue = R, n.$emit("update:value", k), V(() => {
1811
+ Le(), o ? f.value || he() : (T(), he());
1798
1812
  }));
1799
1813
  }
1800
1814
  });
@@ -1804,7 +1818,7 @@ function Wr(t, e, r) {
1804
1818
  }
1805
1819
  };
1806
1820
  }
1807
- function Tt() {
1821
+ function Mt() {
1808
1822
  return {
1809
1823
  props: {},
1810
1824
  on: {},
@@ -1816,57 +1830,57 @@ function Tt() {
1816
1830
  value: void 0
1817
1831
  };
1818
1832
  }
1819
- function V(t, e) {
1833
+ function P(t, e) {
1820
1834
  return (r, i, s, n = {}) => {
1821
- const o = new tt(t, r, i, s, n);
1835
+ const o = new rt(t, r, i, s, n);
1822
1836
  return e && (h.Function(e) ? e(o) : o.props(e)), o;
1823
1837
  };
1824
1838
  }
1825
- function tt(t, e, r, i, s) {
1826
- this._data = C(Tt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1839
+ function rt(t, e, r, i, s) {
1840
+ this._data = C(Mt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1827
1841
  }
1828
- C(tt.prototype, {
1842
+ C(rt.prototype, {
1829
1843
  getRule() {
1830
1844
  return this._data;
1831
1845
  },
1832
1846
  setProp(t, e) {
1833
- return S(this._data, t, e), this;
1847
+ return F(this._data, t, e), this;
1834
1848
  },
1835
1849
  _clone() {
1836
1850
  const t = new this.constructor();
1837
- return t._data = Pt(this._data), t;
1851
+ return t._data = Lt(this._data), t;
1838
1852
  }
1839
1853
  });
1840
- function Nt(t) {
1854
+ function Ut(t) {
1841
1855
  t.forEach((e) => {
1842
- tt.prototype[e] = function(r) {
1843
- return Y(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1856
+ rt.prototype[e] = function(r) {
1857
+ return x(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1844
1858
  };
1845
1859
  });
1846
1860
  }
1847
- Nt(It());
1848
- const Mt = V("");
1849
- function Kr(t, e, r) {
1850
- let i = Mt("", e);
1861
+ Ut(It());
1862
+ const qt = P("");
1863
+ function Zr(t, e, r) {
1864
+ let i = qt("", e);
1851
1865
  return i._data.type = t, i._data.title = r, i;
1852
1866
  }
1853
- function pt(t, e, r, i) {
1854
- let s = Mt("", r);
1867
+ function mt(t, e, r, i) {
1868
+ let s = qt("", r);
1855
1869
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1856
1870
  }
1857
- function Xr() {
1871
+ function Qr() {
1858
1872
  return {
1859
- create: Kr,
1860
- createTmp: pt,
1861
- template: pt,
1862
- factory: V
1873
+ create: Zr,
1874
+ createTmp: mt,
1875
+ template: mt,
1876
+ factory: P
1863
1877
  };
1864
1878
  }
1865
- function Zr(t, e, r) {
1879
+ function Yr(t, e, r) {
1866
1880
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1867
1881
  return s.status = r.status, s.url = t, s;
1868
1882
  }
1869
- function mt(t) {
1883
+ function gt(t) {
1870
1884
  const e = t.responseText || t.response;
1871
1885
  if (!e)
1872
1886
  return e;
@@ -1876,7 +1890,7 @@ function mt(t) {
1876
1890
  return e;
1877
1891
  }
1878
1892
  }
1879
- function Ut(t) {
1893
+ function Gt(t) {
1880
1894
  if (typeof XMLHttpRequest == "undefined")
1881
1895
  return;
1882
1896
  const e = new XMLHttpRequest();
@@ -1891,8 +1905,8 @@ function Ut(t) {
1891
1905
  t.onError(o);
1892
1906
  }, e.onload = function() {
1893
1907
  if (e.status < 200 || e.status >= 300)
1894
- return t.onError(Zr(r, t, e), mt(e));
1895
- t.onSuccess(mt(e));
1908
+ return t.onError(Yr(r, t, e), gt(e));
1909
+ t.onSuccess(gt(e));
1896
1910
  }, e.open(t.method || "get", r, !0);
1897
1911
  let i;
1898
1912
  (t.data || t.file) && (t.file || (t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data || {}).map((n) => {
@@ -1903,9 +1917,9 @@ function Ut(t) {
1903
1917
  s[n] != null && e.setRequestHeader(n, s[n]);
1904
1918
  }), e.send(i);
1905
1919
  }
1906
- function gt(t, e, r) {
1920
+ function yt(t, e, r) {
1907
1921
  return new Promise((i, s) => {
1908
- (e || Ut)(U(v({}, t), {
1922
+ (e || Gt)(U(v({}, t), {
1909
1923
  onSuccess(n) {
1910
1924
  let o = (l) => l;
1911
1925
  const a = W(t.parse);
@@ -1917,10 +1931,10 @@ function gt(t, e, r) {
1917
1931
  }));
1918
1932
  });
1919
1933
  }
1920
- function be(t) {
1934
+ function ve(t) {
1921
1935
  return G(t);
1922
1936
  }
1923
- function Qr(t) {
1937
+ function xr(t) {
1924
1938
  function e(n) {
1925
1939
  return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1926
1940
  }
@@ -1928,7 +1942,7 @@ function Qr(t) {
1928
1942
  h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1929
1943
  const u = t.fieldCtx[l] || t.nameCtx[l];
1930
1944
  u && u.forEach((f) => {
1931
- S(f.rule, o, a), t.$render.clearCache(f);
1945
+ F(f.rule, o, a), t.$render.clearCache(f);
1932
1946
  });
1933
1947
  });
1934
1948
  }
@@ -2004,14 +2018,14 @@ function Qr(t) {
2004
2018
  if (n == null || typeof n == "boolean") {
2005
2019
  const o = {};
2006
2020
  return Object.keys(t.form).forEach((a) => {
2007
- (n === !0 || t.ignoreFields.indexOf(a) === -1) && (o[a] = be(t.form[a]));
2021
+ (n === !0 || t.ignoreFields.indexOf(a) === -1) && (o[a] = ve(t.form[a]));
2008
2022
  }), o;
2009
2023
  } else
2010
2024
  return e(n).reduce((o, a) => (o[a] = s.getValue(a), o), {});
2011
2025
  },
2012
2026
  getValue(n) {
2013
2027
  const o = t.getFieldCtx(n);
2014
- return o ? be(o.rule.value) : t.options.appendValue !== !1 && E(t.appendData, n) ? be(t.appendData[n]) : void 0;
2028
+ return o ? ve(o.rule.value) : t.options.appendValue !== !1 && E(t.appendData, n) ? ve(t.appendData[n]) : void 0;
2015
2029
  },
2016
2030
  coverValue(n) {
2017
2031
  const o = v({}, n || {});
@@ -2021,7 +2035,7 @@ function Qr(t) {
2021
2035
  if (l) {
2022
2036
  const u = E(n, a);
2023
2037
  l.forEach((f) => {
2024
- f.rule.value = u ? n[a] : void 0;
2038
+ F(f.rule, "value", u ? n[a] : void 0);
2025
2039
  }), delete o[a];
2026
2040
  }
2027
2041
  }), C(t.appendData, o);
@@ -2034,7 +2048,7 @@ function Qr(t) {
2034
2048
  const l = t.fieldCtx[a];
2035
2049
  if (!l) return t.appendData[a] = o[a];
2036
2050
  l.forEach((u) => {
2037
- u.rule.value = o[a];
2051
+ F(u.rule, "value", o[a]);
2038
2052
  });
2039
2053
  });
2040
2054
  }, !0);
@@ -2098,7 +2112,7 @@ function Qr(t) {
2098
2112
  disabled(n, o) {
2099
2113
  e(o).forEach((a) => {
2100
2114
  t.getCtxs(a).forEach((l) => {
2101
- S(l.rule.props, "disabled", !!n);
2115
+ F(l.rule.props, "disabled", !!n);
2102
2116
  });
2103
2117
  }), t.refresh();
2104
2118
  },
@@ -2156,7 +2170,7 @@ function Qr(t) {
2156
2170
  t.$manager.updateOptions(t.options), s.refresh();
2157
2171
  },
2158
2172
  hideForm: (n) => {
2159
- S(t.vm, "isShow", !n);
2173
+ F(t.vm, "isShow", !n);
2160
2174
  },
2161
2175
  changeStatus: () => t.changeStatus,
2162
2176
  clearChangeStatus: () => {
@@ -2174,7 +2188,7 @@ function Qr(t) {
2174
2188
  },
2175
2189
  mergeRule: (n, o) => {
2176
2190
  t.getCtxs(n).forEach((a) => {
2177
- Y(a.rule, o);
2191
+ x(a.rule, o);
2178
2192
  });
2179
2193
  },
2180
2194
  mergeRules(n) {
@@ -2201,7 +2215,7 @@ function Qr(t) {
2201
2215
  },
2202
2216
  setEffect(n, o, a) {
2203
2217
  const l = t.getCtx(n);
2204
- l && o && (o[0] === "$" && (o = o.substr(1)), E(l.rule, "$" + o) && S(l.rule, "$" + o, a), E(l.rule, "effect") || S(l.rule, "effect", {}), S(l.rule.effect, o, a));
2218
+ l && o && (o[0] === "$" && (o = o.substr(1)), E(l.rule, "$" + o) && F(l.rule, "$" + o, a), E(l.rule, "effect") || F(l.rule, "effect", {}), F(l.rule.effect, o, a));
2205
2219
  },
2206
2220
  clearEffectData(n, o) {
2207
2221
  const a = t.getCtx(n);
@@ -2221,11 +2235,11 @@ function Qr(t) {
2221
2235
  resetFields(n) {
2222
2236
  e(n).forEach((o) => {
2223
2237
  t.getCtxs(o).forEach((a) => {
2224
- t.$render.clearCache(a), a.rule.value = be(a.defaultValue);
2238
+ t.$render.clearCache(a), a.rule.value = ve(a.defaultValue);
2225
2239
  });
2226
- }), A(() => {
2227
- A(() => {
2228
- A(() => {
2240
+ }), V(() => {
2241
+ V(() => {
2242
+ V(() => {
2229
2243
  s.clearValidateState(n);
2230
2244
  });
2231
2245
  });
@@ -2234,14 +2248,14 @@ function Qr(t) {
2234
2248
  method(n, o) {
2235
2249
  const a = s.el(n);
2236
2250
  if (!a || !a[o])
2237
- throw new Error(At("err", `${o} 方法不存在`));
2251
+ throw new Error(Vt("err", `${o} 方法不存在`));
2238
2252
  return (...l) => a[o](...l);
2239
2253
  },
2240
2254
  exec(n, o, ...a) {
2241
2255
  return O(() => s.method(n, o)(...a));
2242
2256
  },
2243
2257
  toJson(n) {
2244
- return ve(s.rule, n);
2258
+ return _e(s.rule, n);
2245
2259
  },
2246
2260
  trigger(n, o, ...a) {
2247
2261
  const l = s.el(n);
@@ -2265,8 +2279,8 @@ function Qr(t) {
2265
2279
  return [];
2266
2280
  const u = [];
2267
2281
  return ((d) => {
2268
- d && d.forEach((g) => {
2269
- typeof g == "object" && (g.field && u.push(g), u.push(...s.getChildrenRuleList(g)));
2282
+ d && d.forEach((p) => {
2283
+ typeof p == "object" && (p.field && u.push(p), u.push(...s.getChildrenRuleList(p)));
2270
2284
  });
2271
2285
  })(a ? a.loadChildrenPending() : l.children), u;
2272
2286
  },
@@ -2282,13 +2296,13 @@ function Qr(t) {
2282
2296
  }
2283
2297
  },
2284
2298
  getChildrenFormData(n, o) {
2285
- return s.getChildrenRuleList(n).reduce((l, u) => ((u.ignore !== !0 || o === !0) && (l[u.field] = be(u.value)), l), {});
2299
+ return s.getChildrenRuleList(n).reduce((l, u) => ((u.ignore !== !0 || o === !0) && (l[u.field] = ve(u.value)), l), {});
2286
2300
  },
2287
2301
  setChildrenFormData(n, o, a) {
2288
2302
  const l = s.getChildrenRuleList(n);
2289
2303
  t.deferSyncValue(() => {
2290
2304
  l.forEach((u) => {
2291
- E(o, u.field) ? u.value = o[u.field] : a && (u.value = void 0);
2305
+ E(o, u.field) ? F(u, "value", o[u.field]) : a && F(u, "value", void 0);
2292
2306
  });
2293
2307
  });
2294
2308
  },
@@ -2300,9 +2314,9 @@ function Qr(t) {
2300
2314
  getGlobalData(n) {
2301
2315
  return new Promise((o, a) => {
2302
2316
  let l = s.options.globalData[n];
2303
- l || o(t.fc.loadData[n]), l.type === "fetch" ? s.fetch(l).then((u) => {
2317
+ l ? l.type === "fetch" ? s.fetch(l).then((u) => {
2304
2318
  o(u);
2305
- }).catch(a) : o(l.data);
2319
+ }).catch(a) : o(l.data) : o(t.fc.loadData[n]);
2306
2320
  });
2307
2321
  },
2308
2322
  renderRule(n, o, a) {
@@ -2328,7 +2342,7 @@ function Qr(t) {
2328
2342
  bus: t.bus,
2329
2343
  fetch(n) {
2330
2344
  return new Promise((o, a) => {
2331
- n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => gt(n, t.fc.create.fetch, s).then((l) => {
2345
+ n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((l) => {
2332
2346
  O(() => n.onSuccess && n.onSuccess(l)), o(l);
2333
2347
  }).catch((l) => {
2334
2348
  O(() => n.onError && n.onError(l)), a(l);
@@ -2339,11 +2353,11 @@ function Qr(t) {
2339
2353
  watchFetch(n, o, a, l) {
2340
2354
  return t.fc.watchLoadData((u, f) => {
2341
2355
  let d = G(n);
2342
- d = t.loadFetchVar(d, u), !(l && l(d, f) === !1) && t.beforeFetch(d).then(() => gt(d, t.fc.create.fetch, s).then((g) => {
2343
- O(() => d.onSuccess && d.onSuccess(g)), o && o(g, f);
2344
- }).catch((g) => {
2345
- O(() => d.onError && d.onError(g)), a && a(g);
2346
- })).catch((g) => {
2356
+ d = t.loadFetchVar(d, u), !(l && l(d, f) === !1) && t.beforeFetch(d).then(() => yt(d, t.fc.create.fetch, s).then((p) => {
2357
+ O(() => d.onSuccess && d.onSuccess(p)), o && o(p, f);
2358
+ }).catch((p) => {
2359
+ O(() => d.onError && d.onError(p)), a && a(p);
2360
+ })).catch((p) => {
2347
2361
  });
2348
2362
  }, n.wait == null ? 1e3 : n.wait);
2349
2363
  },
@@ -2373,7 +2387,7 @@ function Qr(t) {
2373
2387
  };
2374
2388
  }), s.changeValue = s.changeField = s.setValue, s;
2375
2389
  }
2376
- function xr(t) {
2390
+ function ei(t) {
2377
2391
  C(t.prototype, {
2378
2392
  initCache() {
2379
2393
  this.clearCacheAll();
@@ -2409,12 +2423,12 @@ function q(t) {
2409
2423
  const e = t.replace(/(-[a-z])/g, function(r) {
2410
2424
  return r.replace("-", "").toLocaleUpperCase();
2411
2425
  });
2412
- return qt(e);
2426
+ return Ht(e);
2413
2427
  }
2414
- function qt(t) {
2428
+ function Ht(t) {
2415
2429
  return t.replace(t[0], t[0].toLowerCase());
2416
2430
  }
2417
- function Yr(t) {
2431
+ function ti(t) {
2418
2432
  C(t.prototype, {
2419
2433
  initRender() {
2420
2434
  this.cacheConfig = {};
@@ -2423,7 +2437,7 @@ function Yr(t) {
2423
2437
  const r = (i) => {
2424
2438
  if (i) {
2425
2439
  let s;
2426
- 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);
2440
+ 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);
2427
2441
  }
2428
2442
  };
2429
2443
  return r(this.vm);
@@ -2432,7 +2446,7 @@ function Yr(t) {
2432
2446
  if (!this.vm.isShow)
2433
2447
  return;
2434
2448
  this.$manager.beforeRender();
2435
- const e = Fe();
2449
+ const e = ke();
2436
2450
  return this.sort.forEach((r) => {
2437
2451
  this.renderSlot(e, this.$handle.ctxs[r]);
2438
2452
  }), this.$manager.render(e);
@@ -2443,10 +2457,10 @@ function Yr(t) {
2443
2457
  })) : e.setSlot(r.rule.slot, this.renderCtx(r, i));
2444
2458
  },
2445
2459
  mergeGlobal(e) {
2446
- this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ge(() => {
2460
+ this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ye(() => {
2447
2461
  const i = this.$handle.options.global;
2448
- return Y({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2449
- })), e.prop = Y({}, [this.cacheConfig[e.trueType].value, e.prop]));
2462
+ return x({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2463
+ })), e.prop = x({}, [this.cacheConfig[e.trueType].value, e.prop]));
2450
2464
  },
2451
2465
  setOptions(e) {
2452
2466
  const r = e.loadPending({ key: "options", origin: e.prop.options, def: [] });
@@ -2459,7 +2473,7 @@ function Yr(t) {
2459
2473
  });
2460
2474
  },
2461
2475
  parseSide(e, r) {
2462
- return h.Object(e) ? Y({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2476
+ return h.Object(e) ? x({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2463
2477
  },
2464
2478
  renderSides(e, r, i) {
2465
2479
  const s = r[i ? "rule" : "prop"];
@@ -2496,20 +2510,20 @@ function Yr(t) {
2496
2510
  l.length && i.slotUpdate && O(() => i.slotUpdate(u));
2497
2511
  let f = [];
2498
2512
  const d = e.loadChildrenPending();
2499
- e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach(($) => {
2513
+ e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach((g) => {
2500
2514
  f.push(this.renderRule({
2501
2515
  type: "template",
2502
- slot: $
2516
+ slot: g
2503
2517
  }, (() => {
2504
- if (h.Function(n.renderSlots[$]))
2505
- return O(() => n.renderSlots[$]());
2506
- const _ = this.parseSide(n.renderSlots[$], e);
2518
+ if (h.Function(n.renderSlots[g]))
2519
+ return O(() => n.renderSlots[g]());
2520
+ const _ = this.parseSide(n.renderSlots[g], e);
2507
2521
  return this.renderRule(_);
2508
2522
  })()));
2509
2523
  });
2510
- const g = this.getTypeSlot(e);
2511
- let m;
2512
- return g ? (u.children = f, m = g(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(($) => !$ || !$.tag ? $ : this.none($)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2524
+ const p = this.getTypeSlot(e);
2525
+ let y;
2526
+ return p ? (u.children = f, y = p(u)) : y = a ? e.parser.preview(We(f), e) : e.parser.render(We(f), e), y = this.renderSides(y, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), y = this.$manager.makeWrap(e, y)), e.none && (Array.isArray(y) ? y = y.map((g) => !g || !g.tag ? g : this.none(g)) : y = this.none(y)), o && this.setCache(e, () => this.stable(y), r), y;
2513
2527
  }, this.setCache(e, s, r);
2514
2528
  }
2515
2529
  return (...s) => {
@@ -2590,7 +2604,7 @@ function Yr(t) {
2590
2604
  if (l.indexOf("native.") === 0)
2591
2605
  o[l.replace("native.", "")] = n[l], delete n[l];
2592
2606
  else if (this.$handle.options.transformEventName !== !1) {
2593
- const u = $e(l);
2607
+ const u = be(l);
2594
2608
  u !== l.toLowerCase() && !n[u] && (n[u] = n[l]);
2595
2609
  }
2596
2610
  }), e.prop.on = n;
@@ -2629,7 +2643,7 @@ function Yr(t) {
2629
2643
  }
2630
2644
  });
2631
2645
  }
2632
- return x(a, e.prop), e.prop;
2646
+ return Y(a, e.prop), e.prop;
2633
2647
  },
2634
2648
  onMounted(e) {
2635
2649
  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");
@@ -2646,7 +2660,7 @@ function Yr(t) {
2646
2660
  },
2647
2661
  renderChildren(e, r, i) {
2648
2662
  if (!h.trueArray(e)) return [];
2649
- const s = Fe();
2663
+ const s = ke();
2650
2664
  return e.map((n) => {
2651
2665
  if (n) {
2652
2666
  if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
@@ -2655,7 +2669,7 @@ function Yr(t) {
2655
2669
  }) : n);
2656
2670
  if (n.__fc__)
2657
2671
  return this.renderSlot(s, n.__fc__, r);
2658
- n.type && A(() => {
2672
+ n.type && V(() => {
2659
2673
  this.$handle.loadChildren(e, r), this.$handle.refresh();
2660
2674
  });
2661
2675
  }
@@ -2663,7 +2677,7 @@ function Yr(t) {
2663
2677
  },
2664
2678
  defaultRender(e, r) {
2665
2679
  const i = e.prop;
2666
- return i.component ? typeof i.component == "string" ? this.vNode.make(i.component, i, r) : this.vNode.makeComponent(i.component, i, r) : this.vNode[e.type] ? this.vNode[e.type](i, r) : this.vNode[e.originType] ? this.vNode[e.originType](i, r) : this.vNode.make(qt(i.type), i, r);
2680
+ return i.component ? typeof i.component == "string" ? this.vNode.make(i.component, i, r) : this.vNode.makeComponent(i.component, i, r) : this.vNode[e.type] ? this.vNode[e.type](i, r) : this.vNode[e.originType] ? this.vNode[e.originType](i, r) : this.vNode.make(Ht(i.type), i, r);
2667
2681
  },
2668
2682
  createChildrenVnodes(e, r, i) {
2669
2683
  this.force = i !== !1, this.tmpInput = r;
@@ -2672,7 +2686,7 @@ function Yr(t) {
2672
2686
  },
2673
2687
  createRuleVnode(e, r, i) {
2674
2688
  this.force = i !== !1, this.tmpInput = r;
2675
- const s = Fe();
2689
+ const s = ke();
2676
2690
  return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
2677
2691
  },
2678
2692
  renderRule(e, r, i) {
@@ -2687,7 +2701,7 @@ function Yr(t) {
2687
2701
  a && (s = q(a));
2688
2702
  }
2689
2703
  if (!s) return;
2690
- const n = Fe();
2704
+ const n = ke();
2691
2705
  h.trueArray(e.children) && e.children.forEach((a) => {
2692
2706
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2693
2707
  });
@@ -2696,8 +2710,8 @@ function Yr(t) {
2696
2710
  }
2697
2711
  });
2698
2712
  }
2699
- let ei = 1;
2700
- function rt(t) {
2713
+ let ri = 1;
2714
+ function it(t) {
2701
2715
  C(this, {
2702
2716
  $handle: t,
2703
2717
  fc: t.fc,
@@ -2706,8 +2720,8 @@ function rt(t) {
2706
2720
  vNode: new t.fc.CreateNode(t.vm),
2707
2721
  force: !1,
2708
2722
  tmpInput: null,
2709
- id: ei++
2710
- }), Bt(this, {
2723
+ id: ri++
2724
+ }), Tt(this, {
2711
2725
  options() {
2712
2726
  return t.options;
2713
2727
  },
@@ -2716,9 +2730,9 @@ function rt(t) {
2716
2730
  }
2717
2731
  }), this.initCache(), this.initRender();
2718
2732
  }
2719
- xr(rt);
2720
- Yr(rt);
2721
- function ti(t) {
2733
+ ei(it);
2734
+ ti(it);
2735
+ function ii(t) {
2722
2736
  C(t.prototype, {
2723
2737
  parseInjectEvent(e, r) {
2724
2738
  const i = e.inject || this.options.injectEvent;
@@ -2745,17 +2759,17 @@ function ti(t) {
2745
2759
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: l } = s, u = s[r ? "emit" : "nativeEmit"] || [];
2746
2760
  return h.trueArray(u) && u.forEach((f) => {
2747
2761
  if (!f) return;
2748
- let d, g = n || o || a;
2749
- if (h.Object(f) && (d = f.inject, f = f.name, g = f.prefix || g), g) {
2750
- r || (g = `native-${g}`);
2751
- const m = $e(`${g}-${f}`), $ = (..._) => {
2752
- this.vm.$emit(m, ..._), this.vm.$emit("emit-event", m, ..._), this.bus.$emit(m, ..._);
2762
+ let d, p = n || o || a;
2763
+ if (h.Object(f) && (d = f.inject, f = f.name, p = f.prefix || p), p) {
2764
+ r || (p = `native-${p}`);
2765
+ const y = be(`${p}-${f}`), g = (..._) => {
2766
+ this.vm.$emit(y, ..._), this.vm.$emit("emit-event", y, ..._), this.bus.$emit(y, ..._);
2753
2767
  };
2754
- if ($.__emit = !0, !d && l === !1)
2755
- i[f] = $;
2768
+ if (g.__emit = !0, !d && l === !1)
2769
+ i[f] = g;
2756
2770
  else {
2757
2771
  let _ = d || l || this.options.injectEvent;
2758
- i[f] = h.Undef(_) ? $ : this.inject(s, $, _);
2772
+ i[f] = h.Undef(_) ? g : this.inject(s, g, _);
2759
2773
  }
2760
2774
  }
2761
2775
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2785,24 +2799,36 @@ function ti(t) {
2785
2799
  },
2786
2800
  loadStrVar(e, r, i) {
2787
2801
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2788
- const s = e, n = Jr(e);
2789
- let o;
2790
- if (n.forEach((a) => {
2791
- const l = a.split("||"), u = l[0].trim();
2792
- if (u) {
2793
- const f = (l[1] || "").trim();
2794
- let d, g = !1;
2795
- if (i && u.indexOf("$form.") === 0) {
2796
- const m = u.split(".");
2797
- m.shift(), E(i.value, m[0]) && (g = !0, d = r ? r({
2798
- id: "$form." + m[0] + "_" + i.rule.__fc__.id,
2799
- getValue: () => L(i.value, m)
2800
- }) : L(i.value, m));
2801
- }
2802
- g || (d = r ? r(u, f) : this.fc.getLoadData(u, f)), o = d, e = e.replaceAll(`{{${a}}}`, d == null ? "" : d);
2802
+ const s = e, n = Kr(e), o = (u) => {
2803
+ let f = !1, d;
2804
+ if (i && u.indexOf("$form.") === 0) {
2805
+ const p = u.split(".");
2806
+ p.shift(), E(i.value, p[0]) && (f = !0, d = r ? r({
2807
+ id: "$form." + p[0] + "_" + i.rule.__fc__.id,
2808
+ getValue: () => L(i.value, p)
2809
+ }) : L(i.value, p));
2810
+ }
2811
+ return f || (d = r ? r(u) : this.fc.getLoadData(u)), d;
2812
+ }, a = (u) => {
2813
+ const f = [];
2814
+ u.forEach((p) => {
2815
+ p.key ? f.push(p.key) : p.children && f.push(a(p.children));
2816
+ });
2817
+ let d = !1;
2818
+ return f.forEach((p, y) => {
2819
+ p != null && (p.indexOf("'") === 0 || p.indexOf('"') === 0) && (f[y] = p.slice(1, -1), d = !0);
2820
+ }), f.length === 1 && (d || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2821
+ };
2822
+ let l;
2823
+ if (n.forEach((u) => {
2824
+ const f = u.split("||"), d = f[0].trim();
2825
+ if (d) {
2826
+ const p = (f[1] || "").trim(), y = Nt(d);
2827
+ let g = O(() => a(y));
2828
+ (g == null || g === "") && f.length > 1 && (g = p), l = g, e = e.replaceAll(`{{${u}}}`, g == null ? "" : g);
2803
2829
  }
2804
2830
  }), n.length === 1 && s === `{{${n[0]}}}`)
2805
- return o;
2831
+ return l;
2806
2832
  }
2807
2833
  return e;
2808
2834
  },
@@ -2821,13 +2847,13 @@ function ti(t) {
2821
2847
  }
2822
2848
  });
2823
2849
  }
2824
- const yt = ["hook:updated", "hook:mounted"];
2825
- function ri(t) {
2850
+ const $t = ["hook:updated", "hook:mounted"];
2851
+ function ni(t) {
2826
2852
  C(t.prototype, {
2827
2853
  usePage() {
2828
2854
  const e = this.options.page;
2829
2855
  if (!e) return;
2830
- let r = 25, i = ii(this.rules);
2856
+ let r = 25, i = si(this.rules);
2831
2857
  h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), C(this, {
2832
2858
  first: r,
2833
2859
  limit: i,
@@ -2836,16 +2862,16 @@ function ri(t) {
2836
2862
  },
2837
2863
  pageLoad() {
2838
2864
  const e = () => {
2839
- this.pageEnd ? (this.vm.$off(yt, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2865
+ 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());
2840
2866
  };
2841
- this.vm.$on(yt, e);
2867
+ this.vm.$on($t, e);
2842
2868
  }
2843
2869
  });
2844
2870
  }
2845
- function ii(t) {
2871
+ function si(t) {
2846
2872
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2847
2873
  }
2848
- function ni(t) {
2874
+ function oi(t) {
2849
2875
  C(t.prototype, {
2850
2876
  clearNextTick() {
2851
2877
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
@@ -2860,15 +2886,15 @@ function ni(t) {
2860
2886
  }
2861
2887
  });
2862
2888
  }
2863
- function si(t) {
2889
+ function ai(t) {
2864
2890
  Object.defineProperties(t.origin, {
2865
- __fc__: Xe(me(t), !0)
2891
+ __fc__: Ze(ge(t), !0)
2866
2892
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2867
- __fc__: Xe(me(t), !0)
2893
+ __fc__: Ze(ge(t), !0)
2868
2894
  });
2869
2895
  }
2870
- function Gt(t, e, r) {
2871
- const i = Ae(), s = !!e.field;
2896
+ function zt(t, e, r) {
2897
+ const i = Pe(), s = !!e.field;
2872
2898
  C(this, {
2873
2899
  id: i,
2874
2900
  ref: i,
@@ -2895,9 +2921,9 @@ function Gt(t, e, r) {
2895
2921
  exportEl: void 0,
2896
2922
  defaultValue: s ? G(r) : void 0,
2897
2923
  field: e.field || void 0
2898
- }), this.updateKey(), si(this), this.update(t, !0);
2924
+ }), this.updateKey(), ai(this), this.update(t, !0);
2899
2925
  }
2900
- C(Gt.prototype, {
2926
+ C(zt.prototype, {
2901
2927
  getParentGroup() {
2902
2928
  let t = this.parent;
2903
2929
  for (; t; ) {
@@ -2967,7 +2993,7 @@ C(Gt.prototype, {
2967
2993
  t === void 0 ? this.payload = {} : delete this.payload[t];
2968
2994
  },
2969
2995
  updateKey(t) {
2970
- this.key = Ae(), t && this.parent && this.parent.updateKey(t);
2996
+ this.key = Pe(), t && this.parent && this.parent.updateKey(t);
2971
2997
  },
2972
2998
  updateType() {
2973
2999
  this.originType = this.rule.type, this.type = q(this.rule.type), this.trueType = this.$handle.getType(this.originType);
@@ -2978,11 +3004,14 @@ C(Gt.prototype, {
2978
3004
  initProp() {
2979
3005
  var e, r;
2980
3006
  const t = v({}, this.rule);
2981
- delete t.children, delete t.validate, this.prop = Y({}, [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 || []];
3007
+ 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 || []];
2982
3008
  },
2983
3009
  initNone() {
2984
3010
  this.none = !(h.Undef(this.prop.display) || this.prop.display);
2985
3011
  },
3012
+ hasHidden() {
3013
+ return !!this.rule.hidden || (this.parent ? this.parent.hasHidden() : !1);
3014
+ },
2986
3015
  injectValidate() {
2987
3016
  return this.prop.validate;
2988
3017
  },
@@ -3044,19 +3073,19 @@ C(Gt.prototype, {
3044
3073
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
3045
3074
  }
3046
3075
  });
3047
- function oi(t) {
3076
+ function li(t) {
3048
3077
  C(t.prototype, {
3049
3078
  nextRefresh(e) {
3050
3079
  const r = this.loadedId;
3051
- A(() => {
3080
+ V(() => {
3052
3081
  r === this.loadedId && (e ? e() : this.refresh());
3053
3082
  });
3054
3083
  },
3055
3084
  parseRule(e) {
3056
- const r = ct(e);
3085
+ const r = ht(e);
3057
3086
  return Object.defineProperties(r, {
3058
- __origin__: Xe(e, !0)
3059
- }), ai(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3087
+ __origin__: Ze(e, !0)
3088
+ }), ui(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3060
3089
  i && this.loadFn(i, r);
3061
3090
  }), this.loadCtrl(r), r.update && (r.update = W(r.update)), r;
3062
3091
  },
@@ -3072,7 +3101,7 @@ function oi(t) {
3072
3101
  },
3073
3102
  syncProp(e) {
3074
3103
  const r = e.rule;
3075
- h.trueArray(r.sync) && x([{
3104
+ h.trueArray(r.sync) && Y([{
3076
3105
  on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
3077
3106
  r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
3078
3107
  }, i), {})
@@ -3103,30 +3132,30 @@ function oi(t) {
3103
3132
  if (r && !h.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3104
3133
  if (o.__fc__ && o.__fc__.root === e && this.ctxs[o.__fc__.id])
3105
3134
  return s(o.__fc__.loadChildrenPending(), o.__fc__), o.__fc__;
3106
- let l = ct(o);
3135
+ let l = ht(o);
3107
3136
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3108
3137
  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);
3109
- let f, d = !1, g = !!o.__fc__, m = l.value;
3110
- if (g) {
3111
- if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3112
- if ($t(f))
3138
+ let f, d = !1, p = !!o.__fc__, y = l.value;
3139
+ if (p) {
3140
+ if (f = o.__fc__, y = f.defaultValue, f.deleted) {
3141
+ if (bt(f))
3113
3142
  return;
3114
3143
  f.update(this);
3115
3144
  } else if (!f.check(this)) {
3116
- if ($t(f))
3145
+ if (bt(f))
3117
3146
  return;
3118
- e[a] = o = o._clone ? o._clone() : Vt(ve(o)), f = null, d = !0;
3147
+ e[a] = o = o._clone ? o._clone() : Pt(_e(o)), f = null, d = !0;
3119
3148
  }
3120
3149
  }
3121
3150
  if (f)
3122
3151
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3123
3152
  else {
3124
3153
  const D = this.parseRule(o);
3125
- f = new Gt(this, D, m), this.bindParser(f);
3154
+ f = new zt(this, D, y), this.bindParser(f);
3126
3155
  }
3127
- [!1, !0].forEach((D) => this.parseEmit(f, D)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !d && !g && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3128
- const $ = f.loadChildrenPending();
3129
- if (f.parser.loadChildren === !1 || s($, f), !r) {
3156
+ [!1, !0].forEach((D) => this.parseEmit(f, D)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !d && !p && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3157
+ const g = f.loadChildrenPending();
3158
+ if (f.parser.loadChildren === !1 || s(g, f), !r) {
3130
3159
  const D = i(a);
3131
3160
  D > -1 || !a ? this.sort.splice(D + 1, 0, f.id) : this.sort.push(f.id);
3132
3161
  }
@@ -3141,16 +3170,16 @@ function oi(t) {
3141
3170
  return e.input && e.rule.control && this.useCtrl(e);
3142
3171
  },
3143
3172
  useCtrl(e) {
3144
- const r = li(e), i = [], s = this.api;
3173
+ const r = fi(e), i = [], s = this.api;
3145
3174
  if (!r.length) return !1;
3146
3175
  for (let a = 0; a < r.length; a++) {
3147
3176
  const l = r[a], u = l.handle || function(d) {
3148
- return (fe[l.condition || "=="] || fe["=="])(d, l.value);
3177
+ return (ce[l.condition || "=="] || ce["=="])(d, l.value);
3149
3178
  };
3150
3179
  if (!h.trueArray(l.rule)) continue;
3151
3180
  const f = U(v({}, l), {
3152
3181
  valid: O(() => u(e.rule.value, s)),
3153
- ctrl: ui(e, l.rule),
3182
+ ctrl: ci(e, l.rule),
3154
3183
  isHidden: h.String(l.rule[0])
3155
3184
  });
3156
3185
  f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || i.push(f);
@@ -3159,16 +3188,16 @@ function oi(t) {
3159
3188
  const n = [];
3160
3189
  let o = !1;
3161
3190
  return this.deferSyncValue(() => {
3162
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: g, ctrl: m, method: $ }) => {
3191
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: p, ctrl: y, method: g }) => {
3163
3192
  if (a) {
3164
3193
  l ? e.ctrlRule.push({
3165
3194
  __ctrl: !0,
3166
3195
  children: u,
3167
3196
  valid: l
3168
- }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3169
- $ === "disabled" || $ === "enabled" ? this.api.disabled(!l, u) : $ === "display" || $ === "show" ? this.api.display(l, u) : $ === "required" ? (u.forEach((_) => {
3197
+ }) : y && e.ctrlRule.splice(e.ctrlRule.indexOf(y) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3198
+ g === "disabled" || g === "enabled" ? this.api.disabled(!l, u) : g === "display" || g === "show" ? this.api.display(l, u) : g === "required" ? (u.forEach((_) => {
3170
3199
  this.api.setEffect(_, "required", l);
3171
- }), l || this.api.clearValidateState(u)) : $ === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3200
+ }), l || this.api.clearValidateState(u)) : g === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3172
3201
  });
3173
3202
  return;
3174
3203
  }
@@ -3181,17 +3210,17 @@ function oi(t) {
3181
3210
  children: u
3182
3211
  };
3183
3212
  e.ctrlRule.push(_), this.bus.$once("load-start", () => {
3184
- f ? s.prepend(_, f, g) : d || g ? s.append(_, d || e.id, g) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3213
+ f ? s.prepend(_, f, p) : d || p ? s.append(_, d || e.id, p) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3185
3214
  });
3186
3215
  } else {
3187
- e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3188
- const _ = Q(m);
3216
+ e.ctrlRule.splice(e.ctrlRule.indexOf(y), 1);
3217
+ const _ = Q(y);
3189
3218
  _ && _.rm();
3190
3219
  }
3191
3220
  });
3192
3221
  }), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
3193
3222
  n.forEach((a) => a());
3194
- }) : n.length && A(() => {
3223
+ }) : n.length && V(() => {
3195
3224
  n.forEach((a) => a());
3196
3225
  })), this.vm.$emit("control", e.origin, this.api), this.effect(e, "control"), o;
3197
3226
  },
@@ -3213,36 +3242,36 @@ function oi(t) {
3213
3242
  }
3214
3243
  });
3215
3244
  }
3216
- function ai(t) {
3217
- const e = Tt();
3245
+ function ui(t) {
3246
+ const e = Mt();
3218
3247
  return Object.keys(e).forEach((r) => {
3219
- E(t, r) || S(t, r, e[r]);
3248
+ E(t, r) || F(t, r, e[r]);
3220
3249
  }), t;
3221
3250
  }
3222
- function li(t) {
3251
+ function fi(t) {
3223
3252
  const e = t.rule.control || [];
3224
3253
  return h.Object(e) ? [e] : e;
3225
3254
  }
3226
- function ui(t, e) {
3255
+ function ci(t, e) {
3227
3256
  for (let r = 0; r < t.ctrlRule.length; r++) {
3228
3257
  const i = t.ctrlRule[r];
3229
3258
  if (i.children === e)
3230
3259
  return i;
3231
3260
  }
3232
3261
  }
3233
- function $t(t) {
3262
+ function bt(t) {
3234
3263
  return !!t.rule.__ctrl;
3235
3264
  }
3236
- function fi(t) {
3265
+ function hi(t) {
3237
3266
  C(t.prototype, {
3238
3267
  setValue(e, r, i, s) {
3239
3268
  e.deleted || (e.rule.value = r, this.changeStatus = !0, this.nextRefresh(), this.$render.clearCache(e), this.setFormData(e, i), this.syncValue(), this.valueChange(e, r), this.vm.$emit("change", e.field, r, e.origin, this.api, s || !1), this.effect(e, "value"), this.targetHook(e, "value", { value: r }), this.emitEvent("change", e.field, r, {
3240
3269
  rule: e.origin,
3241
3270
  api: this.api,
3242
3271
  setFlag: s || !1
3243
- }), s && A(() => {
3244
- A(() => {
3245
- A(() => {
3272
+ }), s && V(() => {
3273
+ V(() => {
3274
+ V(() => {
3246
3275
  this.api.clearValidateState(e.id);
3247
3276
  });
3248
3277
  });
@@ -3266,7 +3295,7 @@ function fi(t) {
3266
3295
  setFormData(e, r) {
3267
3296
  e.modelValue = r;
3268
3297
  const i = e.getParentGroup();
3269
- i && (this.subRuleData[i.id] || S(this.subRuleData, i.id, {}), S(this.subRuleData[i.id], e.field, e.rule.value)), S(this.formData, e.id, r);
3298
+ 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);
3270
3299
  },
3271
3300
  rmSubRuleData(e) {
3272
3301
  const r = e.getParentGroup();
@@ -3277,13 +3306,13 @@ function fi(t) {
3277
3306
  },
3278
3307
  syncForm() {
3279
3308
  const e = {}, r = this.fields(), i = [];
3280
- this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = De(this.appendData, n)), s), e), r.reduce((s, n) => {
3281
- const o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a.rule))[0] || this.fieldCtx[n][0];
3282
- return this.isIgnore(o.rule) && i.push(n), s[n] = De(o.rule, "value"), s;
3309
+ 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) => {
3310
+ let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
3311
+ return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = Ae(o.rule, "value"), s;
3283
3312
  }, e), this.form = ie(e), this.ignoreFields = i, this.syncValue();
3284
3313
  },
3285
3314
  isIgnore(e) {
3286
- return e.ignore === !0 || e.ignore === "hidden" && e.hidden || this.options.ignoreHiddenFields && e.hidden;
3315
+ return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
3287
3316
  },
3288
3317
  appendValue(e) {
3289
3318
  (!e.field || !E(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
@@ -3303,7 +3332,7 @@ function fi(t) {
3303
3332
  }), this.vm.updateValue(e);
3304
3333
  },
3305
3334
  isChange(e, r) {
3306
- return JSON.stringify(this.getFormData(e), bt) !== JSON.stringify(r, bt);
3335
+ return JSON.stringify(this.getFormData(e), vt) !== JSON.stringify(r, vt);
3307
3336
  },
3308
3337
  isQuote(e, r) {
3309
3338
  return (r instanceof Function || h.Object(r) || Array.isArray(r)) && r === e.rule.value;
@@ -3336,10 +3365,10 @@ function fi(t) {
3336
3365
  }
3337
3366
  });
3338
3367
  }
3339
- function bt(t, e) {
3368
+ function vt(t, e) {
3340
3369
  return typeof e == "function" ? "" + e : e;
3341
3370
  }
3342
- const Ee = {
3371
+ const je = {
3343
3372
  init(t) {
3344
3373
  },
3345
3374
  toFormValue(t, e) {
@@ -3358,8 +3387,8 @@ const Ee = {
3358
3387
  },
3359
3388
  mergeProp(t) {
3360
3389
  }
3361
- }, ci = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"];
3362
- function hi(t) {
3390
+ }, di = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Re = Symbol("oldValue");
3391
+ function pi(t) {
3363
3392
  C(t.prototype, {
3364
3393
  getCtx(e) {
3365
3394
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
@@ -3394,7 +3423,7 @@ function hi(t) {
3394
3423
  if (n)
3395
3424
  return n;
3396
3425
  }
3397
- return r[e.originType] || r[q(e.type)] || r[e.trueType] || Ee;
3426
+ return r[e.originType] || r[q(e.type)] || r[e.trueType] || je;
3398
3427
  },
3399
3428
  bindParser(e) {
3400
3429
  e.setParser(this.getParser(e));
@@ -3407,8 +3436,8 @@ function hi(t) {
3407
3436
  this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
3408
3437
  },
3409
3438
  watchCtx(e) {
3410
- if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && ci.indexOf(i) === -1).forEach((i) => {
3411
- const s = De(e.rule, i), n = i === "children";
3439
+ if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && di.indexOf(i) === -1).forEach((i) => {
3440
+ const s = Ae(e.rule, i), n = i === "children";
3412
3441
  e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3413
3442
  let l = s.value;
3414
3443
  if (!this.isBreakWatch()) {
@@ -3416,9 +3445,9 @@ function hi(t) {
3416
3445
  this.$render.clearCache(e), this.nextRefresh();
3417
3446
  return;
3418
3447
  }
3419
- if (this.watching = !0, A(() => {
3448
+ if (this.watching = !0, V(() => {
3420
3449
  this.targetHook(e, "watch", { key: i, oldValue: a, newValue: l });
3421
- }), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(), A(() => {
3450
+ }), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(), V(() => {
3422
3451
  this.targetHook(e, "hidden", { value: l });
3423
3452
  })), i === "ignore" && e.input || i === "hidden" && e.input && (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields))
3424
3453
  this.syncForm();
@@ -3429,21 +3458,21 @@ function hi(t) {
3429
3458
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3430
3459
  }
3431
3460
  }, { deep: !n, sync: n }));
3432
- }), e.refRule.__$title = ge(() => {
3461
+ }), e.refRule.__$title = ye(() => {
3433
3462
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3434
3463
  if (i) {
3435
3464
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3436
3465
  s && (i = this.api.t(s[1]));
3437
3466
  }
3438
3467
  return i;
3439
- }), e.refRule.__$info = ge(() => {
3468
+ }), e.refRule.__$info = ye(() => {
3440
3469
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3441
3470
  if (i) {
3442
3471
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3443
3472
  s && (i = this.api.t(s[1]));
3444
3473
  }
3445
3474
  return i;
3446
- }), e.refRule.__$validate = ge(() => {
3475
+ }), e.refRule.__$validate = ye(() => {
3447
3476
  const i = (s) => {
3448
3477
  var o, a;
3449
3478
  const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
@@ -3475,7 +3504,7 @@ function hi(t) {
3475
3504
  return n;
3476
3505
  });
3477
3506
  }), e.input) {
3478
- const i = De(e.rule, "value");
3507
+ const i = Ae(e.rule, "value");
3479
3508
  e.watch.push(B(() => i.value, () => {
3480
3509
  let s = e.parser.toFormValue(i.value, e);
3481
3510
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3484,20 +3513,19 @@ function hi(t) {
3484
3513
  this.bus.$once("load-end", () => {
3485
3514
  let i = e.rule.computed;
3486
3515
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3487
- let n;
3488
- const o = ge(() => {
3489
- const l = i[s];
3490
- if (!l) return;
3491
- const u = this.compute(e, l);
3492
- return l.linkage && u === void 0 ? n : u;
3493
- }), a = (l) => {
3494
- s === "value" ? this.onInput(e, l) : s[0] === "$" ? this.api.setEffect(e.id, s, l) : se(e.rule, s, l);
3516
+ const n = ye(() => {
3517
+ const a = i[s];
3518
+ if (!a) return;
3519
+ const l = this.compute(e, a);
3520
+ return a.linkage && l === Re ? Re : l;
3521
+ }), o = (a) => {
3522
+ s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : se(e.rule, s, a);
3495
3523
  };
3496
- (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : o.value !== L(e.rule, s)) && a(o.value), e.watch.push(B(o, (l) => {
3497
- n = l, setTimeout(() => {
3498
- a(l);
3524
+ (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) => {
3525
+ a === Re || a === l || setTimeout(() => {
3526
+ o(a);
3499
3527
  });
3500
- }));
3528
+ }, { deep: !0 }));
3501
3529
  }));
3502
3530
  }), this.watchEffect(e);
3503
3531
  },
@@ -3511,7 +3539,7 @@ function hi(t) {
3511
3539
  }))) === !1)
3512
3540
  n();
3513
3541
  else {
3514
- const a = this.validator(s, e);
3542
+ const a = this.validator(r, s, e);
3515
3543
  if (a) {
3516
3544
  let l = "";
3517
3545
  typeof e.error == "object" && (l = e.error[a] || e.error.default), !l && typeof e.message == "string" && (l = e.message), l || (l = this.getValidateMessage(r, { key: a, rule: e[a] })), n(l);
@@ -3536,36 +3564,36 @@ function hi(t) {
3536
3564
  title: (n = (s = e.refRule) == null ? void 0 : s.__$title) == null ? void 0 : n.value
3537
3565
  });
3538
3566
  },
3539
- validator(e, r) {
3540
- if (h.empty(e))
3541
- return r.required ? "required" : void 0;
3542
- for (const [s, n] of Object.entries(r))
3543
- switch (s) {
3567
+ validator(e, r, i) {
3568
+ if (h.empty(r))
3569
+ return i.required ? "required" : void 0;
3570
+ for (const [n, o] of Object.entries(i))
3571
+ switch (n) {
3544
3572
  case "len":
3545
3573
  case "maxLen":
3546
3574
  case "minLen":
3547
- const o = (m) => s === "len" ? m === n : s === "maxLen" ? m <= n : m >= n;
3548
- if (Array.isArray(e)) {
3549
- if (!o(e.length))
3550
- return s;
3575
+ const a = (g) => n === "len" ? g === o : n === "maxLen" ? g <= o : g >= o;
3576
+ if (Array.isArray(r)) {
3577
+ if (!a(r.length))
3578
+ return n;
3551
3579
  } else {
3552
- if (typeof e == "object")
3553
- return s;
3554
- if (!o(("" + e).length))
3555
- return s;
3580
+ if (typeof r == "object")
3581
+ return n;
3582
+ if (!a(("" + r).length))
3583
+ return n;
3556
3584
  }
3557
3585
  break;
3558
3586
  case "pattern":
3559
- if (!(typeof n == "string" ? new RegExp(n) : n).test("" + e))
3560
- return s;
3587
+ if (!(typeof o == "string" ? new RegExp(o) : o).test("" + r))
3588
+ return n;
3561
3589
  break;
3562
3590
  case "uppercase":
3563
- if (n && (typeof e != "string" || !/^[A-Z]*$/.test(e)))
3564
- return s;
3591
+ if (o && (typeof r != "string" || !/^[A-Z]*$/.test(r)))
3592
+ return n;
3565
3593
  break;
3566
3594
  case "lowercase":
3567
- if (n && (typeof e != "string" || !/^[a-z]*$/.test(e)))
3568
- return s;
3595
+ if (o && (typeof r != "string" || !/^[a-z]*$/.test(r)))
3596
+ return n;
3569
3597
  break;
3570
3598
  case "min":
3571
3599
  case "max":
@@ -3573,40 +3601,44 @@ function hi(t) {
3573
3601
  case "negative":
3574
3602
  case "integer":
3575
3603
  case "number":
3576
- const l = Number(e);
3577
- if (Number.isNaN(l) || s === "min" && l < n || s === "max" && l > n || s === "positive" && l <= 0 || s === "negative" && l >= 0 || s === "integer" && !Number.isInteger(l))
3578
- return s;
3604
+ const u = Number(r);
3605
+ if (Number.isNaN(u) || n === "min" && u < o || n === "max" && u > o || n === "positive" && u <= 0 || n === "negative" && u >= 0 || n === "integer" && !Number.isInteger(u))
3606
+ return n;
3579
3607
  break;
3580
3608
  case "equal":
3581
- if (e !== n)
3582
- return s;
3609
+ if (r !== o)
3610
+ return n;
3583
3611
  break;
3584
3612
  case "enum":
3585
- if (Array.isArray(n) && !n.includes(e))
3586
- return s;
3613
+ if (Array.isArray(o) && !o.includes(r))
3614
+ return n;
3587
3615
  break;
3588
3616
  case "hasKeys":
3589
- if (typeof e != "object" || Array.isArray(n) && n.some((m) => !(m in e)))
3590
- return s;
3617
+ if (typeof r != "object" || Array.isArray(o) && o.some((g) => !(g in r)))
3618
+ return n;
3591
3619
  break;
3592
3620
  case "email":
3593
- if (!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test("" + e))
3594
- return s;
3621
+ if (!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test("" + r))
3622
+ return n;
3595
3623
  break;
3596
3624
  case "url":
3597
3625
  if (!new RegExp(
3598
3626
  "^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
3599
3627
  "i"
3600
- ).test("" + e))
3601
- return s;
3628
+ ).test("" + r))
3629
+ return n;
3602
3630
  break;
3603
3631
  case "ip":
3604
- if (!/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/.test("" + e))
3605
- return s;
3632
+ if (!/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/.test("" + r))
3633
+ return n;
3606
3634
  break;
3607
3635
  case "phone":
3608
- if (!/^(?:(?:\+|00)86)?1[3-9]\d{9}$/.test("" + e))
3609
- return s;
3636
+ if (!/^(?:(?:\+|00)86)?1[3-9]\d{9}$/.test("" + r))
3637
+ return n;
3638
+ break;
3639
+ case "computed":
3640
+ if (!this.compute(e, o))
3641
+ return n;
3610
3642
  break;
3611
3643
  }
3612
3644
  },
@@ -3620,22 +3652,22 @@ function hi(t) {
3620
3652
  let u = !0;
3621
3653
  for (let f = 0; f < a.group.length; f++) {
3622
3654
  const d = a.group[f];
3623
- let g, m = null;
3655
+ let p, y = null;
3624
3656
  if (d.variable)
3625
- m = JSON.stringify(this.fc.getLoadData(d.variable) || "");
3657
+ y = JSON.stringify(this.fc.getLoadData(d.variable) || "");
3626
3658
  else if (d.field)
3627
- m = dt(d.field || "");
3659
+ y = pt(d.field || "");
3628
3660
  else if (!d.mode)
3629
3661
  return !0;
3630
- let $ = d.compare;
3631
- if ($ && ($ = dt($ || "")), d.mode ? g = n(d) : fe[d.condition] ? h.Function(d.handler) ? g = O(() => d.handler(this.api, e.rule)) : g = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${m}, ${$ || "$val"}); }}}}`).call(this.api.form, fe, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : g = !1, l && g)
3662
+ let g = d.compare;
3663
+ if (g && (g = pt(g || "")), d.mode ? p = n(d) : ce[d.condition] ? h.Function(d.handler) ? p = O(() => d.handler(this.api, e.rule)) : p = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${y}, ${g || "$val"}); }}}}`).call(this.api.form, ce, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : p = !1, l && p)
3632
3664
  return !0;
3633
- l || (u = u && g);
3665
+ l || (u = u && p);
3634
3666
  }
3635
3667
  return l ? !1 : u;
3636
3668
  };
3637
3669
  let o = n(r);
3638
- return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : void 0 : o;
3670
+ return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : Re : o;
3639
3671
  } else if (h.Function(r))
3640
3672
  i = () => r(this.api.form, this.api);
3641
3673
  else {
@@ -3676,7 +3708,7 @@ function hi(t) {
3676
3708
  if (!this.reloading) {
3677
3709
  if (e.parser.loadChildren !== !1) {
3678
3710
  const l = e.getPending("children", e.rule.children);
3679
- h.trueArray(l) && l.forEach((u) => u.__fc__ && this.rmCtx(u.__fc__));
3711
+ h.trueArray(l) && l.forEach((u) => u && u.__fc__ && this.rmCtx(u.__fc__));
3680
3712
  }
3681
3713
  e.root === this.rules && this.vm.renderRule();
3682
3714
  }
@@ -3686,7 +3718,7 @@ function hi(t) {
3686
3718
  }
3687
3719
  });
3688
3720
  }
3689
- function di(t) {
3721
+ function mi(t) {
3690
3722
  C(t.prototype, {
3691
3723
  mounted() {
3692
3724
  const e = () => {
@@ -3714,13 +3746,13 @@ function di(t) {
3714
3746
  }
3715
3747
  });
3716
3748
  }
3717
- function pi(t) {
3749
+ function gi(t) {
3718
3750
  C(t.prototype, {
3719
3751
  useProvider() {
3720
3752
  const e = this.fc.providers;
3721
3753
  Object.keys(e).forEach((r) => {
3722
3754
  let i = e[r];
3723
- h.Function(i) && (i = i(this.fc)), i._c = gi(i), this.onEffect(i), this.providers[r] = i;
3755
+ h.Function(i) && (i = i(this.fc)), i._c = $i(i), this.onEffect(i), this.providers[r] = i;
3724
3756
  });
3725
3757
  },
3726
3758
  onEffect(e) {
@@ -3784,26 +3816,26 @@ function pi(t) {
3784
3816
  d = s;
3785
3817
  else
3786
3818
  return;
3787
- const g = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3788
- e && (g.getProp = () => e.effectData(u), g.clearProp = () => e.clearEffectData(u), g.mergeProp = (m) => Y(g.getProp(), [m]), g.id = e.id), this.bus.$emit(`p:${u}:${d}:${f.input ? 1 : 0}`, o, [g, r, this.api]);
3819
+ const p = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3820
+ e && (p.getProp = () => e.effectData(u), p.clearProp = () => e.clearEffectData(u), p.mergeProp = (y) => x(p.getProp(), [y]), p.id = e.id), this.bus.$emit(`p:${u}:${d}:${f.input ? 1 : 0}`, o, [p, r, this.api]);
3789
3821
  });
3790
3822
  }
3791
3823
  });
3792
3824
  }
3793
- function mi(t) {
3825
+ function yi(t) {
3794
3826
  return t.filter(function(e, r, i) {
3795
3827
  return i.indexOf(e, 0) === r;
3796
3828
  });
3797
3829
  }
3798
- function gi(t) {
3830
+ function $i(t) {
3799
3831
  const e = t.components;
3800
3832
  if (Array.isArray(e)) {
3801
- const r = mi(e.filter((i) => i !== "*"));
3833
+ const r = yi(e.filter((i) => i !== "*"));
3802
3834
  return r.length ? r : !1;
3803
3835
  } else return h.String(e) ? [e] : !1;
3804
3836
  }
3805
3837
  function K(t) {
3806
- Bt(this, {
3838
+ Tt(this, {
3807
3839
  options() {
3808
3840
  return t.options.value || {};
3809
3841
  },
@@ -3837,10 +3869,10 @@ function K(t) {
3837
3869
  nextReload: () => {
3838
3870
  this.lifecycle("reload");
3839
3871
  }
3840
- }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3872
+ }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
3841
3873
  const i = O(() => r(e, this));
3842
3874
  return i && i !== e && C(e, i), e;
3843
- }, Qr(this));
3875
+ }, xr(this));
3844
3876
  }
3845
3877
  C(K.prototype, {
3846
3878
  initData(t) {
@@ -3880,26 +3912,26 @@ C(K.prototype, {
3880
3912
  });
3881
3913
  }
3882
3914
  });
3883
- ti(K);
3884
- ri(K);
3915
+ ii(K);
3885
3916
  ni(K);
3886
3917
  oi(K);
3887
- fi(K);
3918
+ li(K);
3888
3919
  hi(K);
3889
- di(K);
3890
3920
  pi(K);
3891
- const yi = "fcFragment", Ne = {
3892
- name: yi,
3921
+ mi(K);
3922
+ gi(K);
3923
+ const bi = "fcFragment", Me = {
3924
+ name: bi,
3893
3925
  functional: !0,
3894
3926
  props: ["vnode"],
3895
3927
  render(t, e) {
3896
3928
  return e.props.vnode ? e.props.vnode : e.children;
3897
3929
  }
3898
3930
  };
3899
- function $i(t) {
3931
+ function vi(t) {
3900
3932
  return h.String(t) ? { domProps: { innerHTML: t } } : t;
3901
3933
  }
3902
- function bi() {
3934
+ function _i() {
3903
3935
  const t = {};
3904
3936
  function e(r) {
3905
3937
  r && this.setVm(r);
@@ -3910,11 +3942,11 @@ function bi() {
3910
3942
  },
3911
3943
  make(r, i, s) {
3912
3944
  var n, o, a;
3913
- 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);
3945
+ 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);
3914
3946
  },
3915
3947
  makeComponent(r, i, s) {
3916
3948
  var o;
3917
- let n = this.$h(r, $i(i), s || []);
3949
+ let n = this.$h(r, vi(i), s || []);
3918
3950
  if ((o = n == null ? void 0 : n.componentOptions) != null && o.propsData && (i != null && i.props)) {
3919
3951
  const a = Object.keys(n.componentOptions.propsData);
3920
3952
  n.data.attrs || (n.data.attrs = {}), Object.keys(i.props).forEach((l) => {
@@ -3931,7 +3963,7 @@ function bi() {
3931
3963
  },
3932
3964
  use(r) {
3933
3965
  Object.keys(r).forEach((i) => {
3934
- const s = $e(i), n = qr(i).toLocaleLowerCase(), o = r[i];
3966
+ const s = be(i), n = Hr(i).toLocaleLowerCase(), o = r[i];
3935
3967
  [i, s, n].forEach((a) => {
3936
3968
  e.alias(i, o), e.prototype[a] = function(l, u) {
3937
3969
  return this.make(o, l, u);
@@ -3941,12 +3973,12 @@ function bi() {
3941
3973
  }
3942
3974
  }), e;
3943
3975
  }
3944
- function vi(t) {
3945
- class e extends Ht {
3976
+ function Ci(t) {
3977
+ class e extends Jt {
3946
3978
  }
3947
3979
  return Object.assign(e.prototype, t), e;
3948
3980
  }
3949
- function Ht(t) {
3981
+ function Jt(t) {
3950
3982
  C(this, {
3951
3983
  $handle: t,
3952
3984
  vm: t.vm,
@@ -3957,12 +3989,12 @@ function Ht(t) {
3957
3989
  }
3958
3990
  }), this.updateKey(), this.init();
3959
3991
  }
3960
- C(Ht.prototype, {
3992
+ C(Jt.prototype, {
3961
3993
  __init() {
3962
3994
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
3963
3995
  },
3964
3996
  updateKey() {
3965
- this.key = Ae();
3997
+ this.key = Pe();
3966
3998
  },
3967
3999
  //TODO interface
3968
4000
  init() {
@@ -3987,7 +4019,7 @@ C(Ht.prototype, {
3987
4019
  return e(this.vm);
3988
4020
  },
3989
4021
  mergeOptions(t, e) {
3990
- return x(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
4022
+ return Y(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3991
4023
  },
3992
4024
  updateOptions(t) {
3993
4025
  this.$handle.fc.targetFormDriver("updateOptions", t, { handle: this.$handle, api: this.$handle.api }), this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
@@ -4005,21 +4037,23 @@ C(Ht.prototype, {
4005
4037
  render(t) {
4006
4038
  }
4007
4039
  });
4008
- const _i = function(t) {
4040
+ const wi = function(t) {
4009
4041
  const e = {
4010
4042
  name: "loadData",
4011
4043
  _fn: [],
4012
4044
  loaded(r, i, s) {
4013
- this.deleted(r), A(() => {
4045
+ this.deleted(r), V(() => {
4014
4046
  let n = H(r.getValue());
4015
4047
  const o = [];
4016
4048
  n.forEach((a) => {
4017
4049
  if (a && (a.attr || a.template)) {
4018
4050
  let l = (d) => {
4019
- let g;
4020
- a.template ? g = t.$handle.loadStrVar(a.template, d) : a.handler && h.Function(a.handler) ? g = a.handler(d, i, s) : g = d(a.attr, a.default), a.copy !== !1 && (g = G(g));
4021
- const m = a.modify ? i : r.getProp();
4022
- a.to === "child" ? m.children ? S(m.children, 0, g) : S(m, "children", [g]) : se(m, a.to || "options", g), s.sync(i);
4051
+ let p;
4052
+ i && i.__fc__ && (p = i.__fc__.getParentGroup());
4053
+ let y;
4054
+ a.template ? y = t.$handle.loadStrVar(a.template, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null) : a.handler && h.Function(a.handler) ? y = a.handler(d, i, s) : y = t.$handle.loadStrVar(`{{${a.attr}}}`, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null), (y == null || y === "") && a.default != null && (y = a.default), a.copy !== !1 && (y = G(y));
4055
+ const g = a.modify ? i : r.getProp();
4056
+ a.to === "child" ? g.children ? F(g.children, 0, y) : F(g, "children", [y]) : se(g, a.to || "options", y), s.sync(i);
4023
4057
  }, u = (d) => l(d);
4024
4058
  const f = t.watchLoadData(u);
4025
4059
  l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
@@ -4034,7 +4068,7 @@ const _i = function(t) {
4034
4068
  }
4035
4069
  };
4036
4070
  return e.watch = e.loaded, e;
4037
- }, Ci = function(t) {
4071
+ }, Oi = function(t) {
4038
4072
  const e = {
4039
4073
  name: "t",
4040
4074
  _fn: [],
@@ -4046,13 +4080,13 @@ const _i = function(t) {
4046
4080
  const l = n[a];
4047
4081
  if (l) {
4048
4082
  const u = typeof l == "object";
4049
- let f = (m) => {
4050
- let $ = t.t(u ? l.attr : l, u ? l.params : null, m);
4083
+ let f = (y) => {
4084
+ let g = t.t(u ? l.attr : l, u ? l.params : null, y);
4051
4085
  const _ = u && l.modify ? i : r.getProp();
4052
- a === "child" ? _.children ? S(_.children, 0, $) : S(_, "children", [$]) : se(_, a, $), s.sync(i);
4053
- }, d = (m) => f(m);
4054
- const g = t.watchLoadData(d);
4055
- f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(g) : g();
4086
+ a === "child" ? _.children ? F(_.children, 0, g) : F(_, "children", [g]) : se(_, a, g), s.sync(i);
4087
+ }, d = (y) => f(y);
4088
+ const p = t.watchLoadData(d);
4089
+ f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(p) : p();
4056
4090
  }
4057
4091
  }), this._fn[r.id] = o;
4058
4092
  },
@@ -4063,7 +4097,7 @@ const _i = function(t) {
4063
4097
  }
4064
4098
  };
4065
4099
  return e.watch = e.loaded, e;
4066
- }, zt = {
4100
+ }, Wt = {
4067
4101
  name: "componentValidate",
4068
4102
  load(t, e, r) {
4069
4103
  let i = t.getValue();
@@ -4086,9 +4120,9 @@ const _i = function(t) {
4086
4120
  }
4087
4121
  },
4088
4122
  watch(...t) {
4089
- zt.load(...t);
4123
+ Wt.load(...t);
4090
4124
  }
4091
- }, wi = function(t) {
4125
+ }, Fi = function(t) {
4092
4126
  function e(s) {
4093
4127
  return h.String(s) && (s = {
4094
4128
  action: s,
@@ -4121,32 +4155,32 @@ const _i = function(t) {
4121
4155
  if (!s.getValue())
4122
4156
  return s.clearProp(), o.sync(n), !0;
4123
4157
  };
4124
- i._fn[s.id] = t.watchLoadData(ne((d, g) => {
4125
- if (g && a.watch === !1)
4158
+ i._fn[s.id] = t.watchLoadData(ne((d, p) => {
4159
+ if (p && a.watch === !1)
4126
4160
  return i._fn[s.id]();
4127
- const m = t.$handle.loadFetchVar(G(a), d, n), $ = U(v({
4161
+ const y = t.$handle.loadFetchVar(G(a), d, n), g = U(v({
4128
4162
  headers: {}
4129
- }, m), {
4163
+ }, y), {
4130
4164
  onSuccess(_, D) {
4131
4165
  if (f()) return;
4132
4166
  let ee = (T) => D ? T : E(T, "data") ? T.data : T;
4133
- const P = W(m.parse);
4134
- h.Function(P) ? ee = P : P && h.String(P) && (ee = (T) => L(T, P)), l(ee(_, n, o));
4167
+ const I = W(y.parse);
4168
+ h.Function(I) ? ee = I : I && h.String(I) && (ee = (T) => L(T, I)), l(ee(_, n, o));
4135
4169
  },
4136
4170
  onError(_) {
4137
- l(void 0), !f() && (u || ((D) => et(D.message || "fetch fail " + m.action)))(_, n, o);
4171
+ l(void 0), !f() && (u || ((D) => tt(D.message || "fetch fail " + y.action)))(_, n, o);
4138
4172
  }
4139
4173
  });
4140
- t.$handle.beforeFetch($, { rule: n, api: o }).then(() => {
4141
- if (h.Function(m.action)) {
4142
- m.action(n, o).then((_) => {
4143
- $.onSuccess(_, !0);
4174
+ t.$handle.beforeFetch(g, { rule: n, api: o }).then(() => {
4175
+ if (h.Function(y.action)) {
4176
+ y.action(n, o).then((_) => {
4177
+ g.onSuccess(_, !0);
4144
4178
  }).catch((_) => {
4145
- $.onError(_);
4179
+ g.onError(_);
4146
4180
  });
4147
4181
  return;
4148
4182
  }
4149
- O(() => t.create.fetch($, { inject: s, rule: n, api: o }));
4183
+ O(() => t.create.fetch(g, { inject: s, rule: n, api: o }));
4150
4184
  }).catch((_) => {
4151
4185
  });
4152
4186
  }, a.wait || 600));
@@ -4165,13 +4199,13 @@ const _i = function(t) {
4165
4199
  }
4166
4200
  };
4167
4201
  return i;
4168
- }, Oi = {
4169
- fetch: wi,
4170
- loadData: _i,
4171
- t: Ci,
4172
- componentValidate: zt
4202
+ }, ki = {
4203
+ fetch: Fi,
4204
+ loadData: wi,
4205
+ t: Oi,
4206
+ componentValidate: Wt
4173
4207
  };
4174
- function Fi(t) {
4208
+ function Si(t) {
4175
4209
  t = t || /* @__PURE__ */ new Map();
4176
4210
  const e = {
4177
4211
  $on(r, i) {
@@ -4195,8 +4229,8 @@ function Fi(t) {
4195
4229
  };
4196
4230
  return e;
4197
4231
  }
4198
- const Si = "html", ki = {
4199
- name: Si,
4232
+ const Ri = "html", Ei = {
4233
+ name: Ri,
4200
4234
  loadChildren: !1,
4201
4235
  render(t, e) {
4202
4236
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
@@ -4205,7 +4239,7 @@ const Si = "html", ki = {
4205
4239
  return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
4206
4240
  }
4207
4241
  };
4208
- function Ri(t) {
4242
+ function Di(t) {
4209
4243
  t = t + "=";
4210
4244
  const r = decodeURIComponent(document.cookie).split(";");
4211
4245
  for (let i = 0; i < r.length; i++) {
@@ -4223,7 +4257,7 @@ function Ri(t) {
4223
4257
  }
4224
4258
  return null;
4225
4259
  }
4226
- function Ei(t) {
4260
+ function ji(t) {
4227
4261
  const e = localStorage.getItem(t);
4228
4262
  if (e)
4229
4263
  try {
@@ -4233,7 +4267,7 @@ function Ei(t) {
4233
4267
  }
4234
4268
  return null;
4235
4269
  }
4236
- function Di(t) {
4270
+ function Ai(t) {
4237
4271
  const e = sessionStorage.getItem(t);
4238
4272
  if (e)
4239
4273
  try {
@@ -4243,23 +4277,23 @@ function Di(t) {
4243
4277
  }
4244
4278
  return null;
4245
4279
  }
4246
- function it(t, e) {
4280
+ function nt(t, e) {
4247
4281
  if (!e)
4248
4282
  return null;
4249
4283
  const r = e.split(".");
4250
4284
  let i = t(r.shift());
4251
4285
  return r.length ? i == null ? null : L(i, r) : i;
4252
4286
  }
4253
- function ji(t) {
4254
- return it(Ri, t);
4255
- }
4256
4287
  function Ii(t) {
4257
- return it(Ei, t);
4288
+ return nt(Di, t);
4258
4289
  }
4259
- function Ai(t) {
4260
- return it(Di, t);
4290
+ function Vi(t) {
4291
+ return nt(ji, t);
4292
+ }
4293
+ function Pi(t) {
4294
+ return nt(Ai, t);
4261
4295
  }
4262
- const Vi = {
4296
+ const Li = {
4263
4297
  en: {
4264
4298
  required: "{title} is required",
4265
4299
  validate: {
@@ -4309,17 +4343,17 @@ const Vi = {
4309
4343
  }
4310
4344
  }
4311
4345
  };
4312
- function Pi(t, e) {
4346
+ function Bi(t, e) {
4313
4347
  let r;
4314
4348
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4315
4349
  }
4316
- function Me() {
4317
- return Pi("name", ...arguments);
4350
+ function Ue() {
4351
+ return Bi("name", ...arguments);
4318
4352
  }
4319
- function Li(t) {
4353
+ function Ti(t) {
4320
4354
  return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
4321
4355
  }
4322
- function Bi(t, e) {
4356
+ function Ni(t, e) {
4323
4357
  const r = new Vue({
4324
4358
  data() {
4325
4359
  return { rule: t, option: e || {} };
@@ -4330,81 +4364,81 @@ function Bi(t, e) {
4330
4364
  });
4331
4365
  return r.$mount(), r;
4332
4366
  }
4333
- function Ti(t) {
4367
+ function Mi(t) {
4334
4368
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4335
- jt.push(...e), xe.push(...r), Ye.push(...i), Nt([...e, ...r, ...i]);
4369
+ At.push(...e), xe.push(...r), et.push(...i), Ut([...e, ...r, ...i]);
4336
4370
  }
4337
- let Ni = 1;
4338
- const M = {}, ke = Symbol("defValue");
4339
- function Jt(t) {
4371
+ let Ui = 1;
4372
+ const M = {}, Ee = Symbol("defValue");
4373
+ function Kt(t) {
4340
4374
  const e = {
4341
- [Ne.name]: Ne
4375
+ [Me.name]: Me
4342
4376
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4343
4377
  t.extendApi
4344
- ], u = v({}, Oi), f = Xr();
4378
+ ], u = v({}, ki), f = Qr();
4345
4379
  let d = { global: {} };
4346
- const g = t.isMobile === !0, m = ie({
4347
- $mobile: g
4348
- }), $ = bi(), _ = {}, D = {};
4349
- Ti(t.attrs || {});
4380
+ const p = t.isMobile === !0, y = ie({
4381
+ $mobile: p
4382
+ }), g = _i(), _ = {}, D = {};
4383
+ Mi(t.attrs || {});
4350
4384
  function ee(c) {
4351
- const p = M[c];
4352
- if (Array.isArray(p))
4353
- return p.map((y) => y.api());
4354
- if (p)
4355
- return p.api();
4385
+ const m = M[c];
4386
+ if (Array.isArray(m))
4387
+ return m.map(($) => $.api());
4388
+ if (m)
4389
+ return m.api();
4356
4390
  }
4357
- function P(c) {
4391
+ function I(c) {
4358
4392
  o.push(c);
4359
4393
  }
4360
4394
  function T() {
4361
- const c = Me(...arguments);
4395
+ const c = Ue(...arguments);
4362
4396
  c.id && c.prop && (i[c.id] = c.prop);
4363
4397
  }
4364
- function ce() {
4365
- const c = Me(...arguments);
4398
+ function he() {
4399
+ const c = Ue(...arguments);
4366
4400
  c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(v({}, c.prop), {
4367
4401
  name: c.id
4368
4402
  }));
4369
4403
  }
4370
- function Ve(c) {
4371
- $.use(c);
4404
+ function Le(c) {
4405
+ g.use(c);
4372
4406
  }
4373
- function he() {
4374
- const c = Me(...arguments);
4375
- if (!c.id || !c.prop) return Ee;
4376
- const p = q(c.id), y = c.prop, b = y.merge === !0 ? r[p] : void 0;
4377
- r[p] = Se(y, b || Ee), f[p] = V(p), y.maker && C(f, y.maker);
4407
+ function de() {
4408
+ const c = Ue(...arguments);
4409
+ if (!c.id || !c.prop) return je;
4410
+ const m = q(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4411
+ r[m] = Se($, b || je), f[m] = P(m), $.maker && C(f, $.maker);
4378
4412
  }
4379
- function F(c, p) {
4380
- let y;
4413
+ function k(c, m) {
4414
+ let $;
4381
4415
  if (h.String(c)) {
4382
- if (y = c, p === void 0)
4383
- return ["form-create", "formcreate"].indexOf(y) > -1 ? k() : e[y];
4416
+ if ($ = c, m === void 0)
4417
+ return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
4384
4418
  } else
4385
- y = q(c.name), p = c;
4386
- if (!y || !p) return;
4387
- const b = q(y);
4388
- e[y] = p, e[b] = p, delete $.aliasMap[y], delete $.aliasMap[b], delete r[y], delete r[b], p.formCreateParser && he(y, p.formCreateParser);
4419
+ $ = q(c.name), m = c;
4420
+ if (!$ || !m) return;
4421
+ const b = q($);
4422
+ e[$] = m, e[b] = m, delete g.aliasMap[$], delete g.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && de($, m.formCreateParser);
4389
4423
  }
4390
- function k() {
4391
- return Wr(Le, e, i);
4424
+ function R() {
4425
+ return Xr(Te, e, i);
4392
4426
  }
4393
4427
  function N() {
4394
- return Ne;
4428
+ return Me;
4395
4429
  }
4396
- function de(c, p) {
4397
- return h.Function(c.install) ? c.install(z, p) : h.Function(c) && c(z, p), this;
4430
+ function pe(c, m) {
4431
+ return h.Function(c.install) ? c.install(z, m) : h.Function(c) && c(z, m), this;
4398
4432
  }
4399
- function z(c, p, y) {
4400
- let b = Bi(c, p || {});
4433
+ function z(c, m, $) {
4434
+ let b = Ni(c, m || {});
4401
4435
  const w = b.$refs.fc.formCreate;
4402
- return w.$parent = y, Li(w.options).appendChild(b.$el), w.api();
4436
+ return w.$parent = $, Ti(w.options).appendChild(b.$el), w.api();
4403
4437
  }
4404
4438
  Se(z, D);
4405
- function Kt(c) {
4406
- let p = v({}, t);
4407
- return c ? p.inherit = {
4439
+ function Zt(c) {
4440
+ let m = v({}, t);
4441
+ return c ? m.inherit = {
4408
4442
  components: e,
4409
4443
  parsers: r,
4410
4444
  directives: i,
@@ -4413,67 +4447,67 @@ function Jt(t) {
4413
4447
  useApps: o,
4414
4448
  maker: f,
4415
4449
  formulas: _,
4416
- loadData: m
4417
- } : delete p.inherit, Jt(p);
4450
+ loadData: y
4451
+ } : delete m.inherit, Kt(m);
4418
4452
  }
4419
- function Xt(c, p) {
4420
- s[c] = p;
4453
+ function Qt(c, m) {
4454
+ s[c] = m;
4421
4455
  }
4422
- function Zt(c, p) {
4423
- _[c] = p;
4456
+ function Yt(c, m) {
4457
+ _[c] = m;
4424
4458
  }
4425
- function Qt(c, p) {
4426
- const y = n[c] || {}, b = y.parsers || {};
4427
- p.parsers && Object.keys(p.parsers).forEach((w) => {
4428
- b[w] = Se(p.parsers[w], Ee);
4429
- }), p.name = c, n[c] = U(v(v({}, y), p), { parsers: b });
4459
+ function xt(c, m) {
4460
+ const $ = n[c] || {}, b = $.parsers || {};
4461
+ m.parsers && Object.keys(m.parsers).forEach((w) => {
4462
+ b[w] = Se(m.parsers[w], je);
4463
+ }), m.name = c, n[c] = U(v(v({}, $), m), { parsers: b });
4430
4464
  }
4431
- function Ce(c) {
4432
- c && Object.keys(M).forEach((p) => {
4433
- (Array.isArray(M[p]) ? M[p] : [M[p]]).forEach((b) => {
4465
+ function we(c) {
4466
+ c && Object.keys(M).forEach((m) => {
4467
+ (Array.isArray(M[m]) ? M[m] : [M[m]]).forEach((b) => {
4434
4468
  b.bus.$emit("$loadData." + c);
4435
4469
  });
4436
4470
  });
4437
4471
  }
4438
- function Pe(c, p) {
4439
- se(m, c, p), Ce(c);
4472
+ function Be(c, m) {
4473
+ se(y, c, m), we(c);
4440
4474
  }
4441
- function we(c, p) {
4442
- const y = (...b) => O(() => p(...b));
4443
- y._driver = !0, Pe(c, y);
4475
+ function Oe(c, m) {
4476
+ const $ = (...b) => O(() => m(...b));
4477
+ $._driver = !0, Be(c, $);
4444
4478
  }
4445
- function nt(c, p) {
4446
- const y = (c || "").split(".");
4447
- c = y.shift();
4448
- const b = y.join(".");
4449
- if (E(m, c) || S(m, c, ke), m[c] !== ke) {
4450
- let w = m[c];
4451
- return w && w._driver ? w = w(b) : y.length && (w = L(w, y)), w == null || w === "" ? p : w;
4479
+ function st(c, m) {
4480
+ const $ = (c || "").split(".");
4481
+ c = $.shift();
4482
+ const b = $.join(".");
4483
+ if (E(y, c) || F(y, c, Ee), y[c] !== Ee) {
4484
+ let w = y[c];
4485
+ return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? m : w;
4452
4486
  } else
4453
- return p;
4487
+ return m;
4454
4488
  }
4455
- function xt(c) {
4489
+ function er(c) {
4456
4490
  l.push(c);
4457
4491
  }
4458
- function Yt(c) {
4459
- delete m[c], Ce(c);
4492
+ function tr(c) {
4493
+ delete y[c], we(c);
4460
4494
  }
4461
- function er(c, p) {
4462
- a.push({ name: c, callback: p });
4495
+ function rr(c, m) {
4496
+ a.push({ name: c, callback: m });
4463
4497
  }
4464
- function Le(c) {
4498
+ function Te(c) {
4465
4499
  C(this, {
4466
- id: Ni++,
4500
+ id: Ui++,
4467
4501
  create: z,
4468
4502
  vm: c,
4469
- manager: vi(t.manager),
4503
+ manager: Ci(t.manager),
4470
4504
  parsers: r,
4471
4505
  providers: u,
4472
4506
  modelFields: s,
4473
4507
  formulas: _,
4474
- isMobile: g,
4508
+ isMobile: p,
4475
4509
  rules: c.$options.propsData.rule,
4476
- name: c.$options.propsData.name || Ae(),
4510
+ name: c.$options.propsData.name || Pe(),
4477
4511
  inFor: c.$options.propsData.inFor,
4478
4512
  prop: {
4479
4513
  components: e,
@@ -4482,70 +4516,70 @@ function Jt(t) {
4482
4516
  get: null,
4483
4517
  drivers: n,
4484
4518
  renderDriver: null,
4485
- refreshData: Ce,
4486
- loadData: m,
4487
- CreateNode: $,
4488
- bus: new Fi(),
4519
+ refreshData: we,
4520
+ loadData: y,
4521
+ CreateNode: g,
4522
+ bus: new Si(),
4489
4523
  unwatch: [],
4490
- options: mr({}),
4524
+ options: yr({}),
4491
4525
  extendApiFn: l,
4492
4526
  fetchCache: /* @__PURE__ */ new WeakMap(),
4493
4527
  tmpData: ie({})
4494
- }), a.forEach((p) => {
4495
- this.bus.$on(p.name, p.callback);
4496
- }), A(() => {
4528
+ }), a.forEach((m) => {
4529
+ this.bus.$on(m.name, m.callback);
4530
+ }), V(() => {
4497
4531
  B(this.options, () => {
4498
4532
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4499
4533
  }, { deep: !0 });
4500
4534
  }), 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);
4501
4535
  }
4502
- Le.isMobile = g, C(Le.prototype, {
4536
+ Te.isMobile = p, C(Te.prototype, {
4503
4537
  init() {
4504
4538
  this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4505
4539
  this.initOptions(), this.$handle.api.refresh();
4506
4540
  }, { 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();
4507
4541
  },
4508
- targetFormDriver(c, ...p) {
4542
+ targetFormDriver(c, ...m) {
4509
4543
  if (this.renderDriver && this.renderDriver[c])
4510
- return O(() => this.renderDriver[c](...p));
4544
+ return O(() => this.renderDriver[c](...m));
4511
4545
  },
4512
- t(c, p, y) {
4513
- let b = y ? y("$t." + c) : this.globalLanguageDriver(c);
4514
- return b == null && (b = ""), b && p && Object.keys(p).forEach((w) => {
4546
+ t(c, m, $) {
4547
+ let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4548
+ return b == null && (b = ""), b && m && Object.keys(m).forEach((w) => {
4515
4549
  const j = new RegExp(`{${w}}`, "g");
4516
- b = b.replace(j, p[w]);
4550
+ b = b.replace(j, m[w]);
4517
4551
  }), b;
4518
4552
  },
4519
4553
  globalDataDriver(c) {
4520
- let p = c.split(".");
4521
- const y = p.shift(), b = this.options.value.globalData && this.options.value.globalData[y];
4554
+ let m = c.split(".");
4555
+ const $ = m.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4522
4556
  if (b) {
4523
4557
  if (b.type === "static")
4524
- return L(b.data, p);
4558
+ return L(b.data, m);
4525
4559
  {
4526
4560
  let w;
4527
4561
  const j = this.fetchCache.get(b);
4528
4562
  if (j) {
4529
- if (j.status && (w = L(j.data, p)), !j.loading)
4563
+ if (j.status && (w = L(j.data, m)), !j.loading)
4530
4564
  return w;
4531
4565
  j.loading = !1, this.fetchCache.set(b, j);
4532
4566
  } else
4533
4567
  this.fetchCache.set(b, { status: !1 });
4534
- const R = ne(() => {
4568
+ const S = ne(() => {
4535
4569
  le();
4536
4570
  const J = this.fetchCache.get(b);
4537
- 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." + y)) : this.fetchCache.delete(b);
4571
+ 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);
4538
4572
  }, b.wait || 600), ae = (J) => {
4539
- this.fetchCache.set(b, { status: !0, data: J }), this.bus.$emit("$loadData.$globalData." + y);
4573
+ this.fetchCache.set(b, { status: !0, data: J }), this.bus.$emit("$loadData.$globalData." + $);
4540
4574
  }, X = (J, ue) => {
4541
4575
  if (ue && b.watch === !1)
4542
4576
  return le();
4543
4577
  if (ue) {
4544
- R();
4578
+ S();
4545
4579
  return;
4546
4580
  }
4547
- const pe = this.$handle.loadFetchVar(Je(b), J);
4548
- this.$handle.api.fetch(pe).then((te) => {
4581
+ const me = this.$handle.loadFetchVar(We(b), J);
4582
+ this.$handle.api.fetch(me).then((te) => {
4549
4583
  ae(te);
4550
4584
  }).catch((te) => {
4551
4585
  ae(null);
@@ -4560,91 +4594,91 @@ function Jt(t) {
4560
4594
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4561
4595
  },
4562
4596
  globalLanguageDriver(c) {
4563
- let p = this.vm.top.$props.locale, y;
4564
- if (p && typeof p == "object" && (y = L(p, c)), y == null) {
4597
+ let m = this.vm.top.$props.locale, $;
4598
+ if (m && typeof m == "object" && ($ = L(m, c)), $ == null) {
4565
4599
  const b = this.options.value.language || {}, w = this.getLocale();
4566
- y = L(b[w] || {}, c), y == null && (y = L(Vi[w] || {}, c));
4600
+ $ = L(b[w] || {}, c), $ == null && ($ = L(Li[w] || {}, c));
4567
4601
  }
4568
- return y;
4602
+ return $;
4569
4603
  },
4570
4604
  globalVarDriver(c) {
4571
- let p = c.split(".");
4572
- const y = p.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[y];
4605
+ let m = c.split(".");
4606
+ const $ = m.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4573
4607
  if (b) {
4574
4608
  const w = h.Function(b) ? b : W(b.handle);
4575
4609
  if (w) {
4576
4610
  let j;
4577
- const R = this.watchLoadData((ae, X) => {
4578
- X ? (this.bus.$emit("$loadData.$var." + y), R()) : j = w(ae, this.$handle.api);
4611
+ const S = this.watchLoadData((ae, X) => {
4612
+ X ? (this.bus.$emit("$loadData.$var." + $), S()) : j = w(ae, this.$handle.api);
4579
4613
  });
4580
- return this.unwatch.push(R), L(j, p);
4614
+ return this.unwatch.push(S), L(j, m);
4581
4615
  }
4582
4616
  }
4583
4617
  },
4584
- setData(c, p, y) {
4585
- y ? Pe(c, p) : (se(this.vm.top.fc.tmpData, c, p), this.bus.$emit("$loadData." + c));
4618
+ setData(c, m, $) {
4619
+ $ ? Be(c, m) : (se(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
4586
4620
  },
4587
- getLoadData(c, p) {
4588
- let y = null;
4621
+ getLoadData(c, m) {
4622
+ let $ = null;
4589
4623
  if (c != null) {
4590
4624
  let b = c.split(".");
4591
4625
  const w = b.shift();
4592
4626
  if (w === "$topForm")
4593
- y = this.$handle.api.top.formData(!0);
4627
+ $ = this.$handle.api.top.formData(!0);
4594
4628
  else if (w === "$scopeForm")
4595
- y = this.$handle.api.scope.formData(!0);
4629
+ $ = this.$handle.api.scope.formData(!0);
4596
4630
  else if (w === "$form")
4597
- y = this.$handle.api.formData(!0);
4631
+ $ = this.$handle.api.formData(!0);
4598
4632
  else if (w === "$options")
4599
- y = this.options.value;
4633
+ $ = this.options.value;
4600
4634
  else if (w === "$globalData")
4601
- y = this.globalDataDriver(b.join(".")), b = [];
4635
+ $ = this.globalDataDriver(b.join(".")), b = [];
4602
4636
  else if (w === "$var")
4603
- y = this.globalVarDriver(b.join(".")), b = [];
4637
+ $ = this.globalVarDriver(b.join(".")), b = [];
4604
4638
  else if (w === "$locale")
4605
- y = this.getLocale(), b = [];
4639
+ $ = this.getLocale(), b = [];
4606
4640
  else if (w === "$t")
4607
- y = this.globalLanguageDriver(b.join(".")), b = [];
4641
+ $ = this.globalLanguageDriver(b.join(".")), b = [];
4608
4642
  else {
4609
4643
  if (w === "$preview")
4610
4644
  return this.$handle.preview;
4611
4645
  {
4612
4646
  const j = this.vm.top.fc.tmpData;
4613
- E(j, w) || S(j, w, ke), y = j[w] !== ke ? L(j, c) : nt(c), b = [];
4647
+ E(j, w) || F(j, w, Ee), $ = j[w] !== Ee ? L(j, c) : st(c), b = [];
4614
4648
  }
4615
4649
  }
4616
- y && b.length && (y = L(y, b));
4650
+ $ && b.length && ($ = L($, b));
4617
4651
  }
4618
- return y == null || y === "" ? p : y;
4652
+ return $ == null || $ === "" ? m : $;
4619
4653
  },
4620
- watchLoadData(c, p) {
4621
- let y = {};
4622
- const b = (R) => {
4654
+ watchLoadData(c, m) {
4655
+ let $ = {};
4656
+ const b = (S) => {
4623
4657
  this.get || (this.get = w), O(() => {
4624
- c(w, R);
4658
+ c(w, S);
4625
4659
  }), this.get === w && (this.get = void 0);
4626
- }, w = (R, ae) => {
4660
+ }, w = (S, ae) => {
4627
4661
  let X;
4628
- if (typeof R == "object" && (X = R.getValue, R = R.id), y[R])
4629
- return y[R].val;
4630
- const le = ge(() => X ? X() : this.getLoadData(R, ae)), J = R.split("."), ue = J.shift(), pe = J.shift() || "", te = ne(() => {
4631
- const Be = X ? X() : this.getLoadData(R, ae);
4632
- if (y[R])
4633
- JSON.stringify(Be) !== JSON.stringify(y[R].val) && (y[R].val = Be, b(!0));
4662
+ if (typeof S == "object" && (X = S.getValue, S = S.id), $[S])
4663
+ return $[S].val;
4664
+ const le = ye(() => X ? X() : this.getLoadData(S, ae)), J = S.split("."), ue = J.shift(), me = J.shift() || "", te = ne(() => {
4665
+ const fe = X ? X() : this.getLoadData(S, ae);
4666
+ if ($[S])
4667
+ ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[S].val || JSON.stringify(fe) !== JSON.stringify($[S].val)) && ($[S].val = fe, b(!0));
4634
4668
  else return;
4635
- }, p || 0), rr = B(le, (Be) => {
4669
+ }, m || 0), nr = B(le, (fe) => {
4636
4670
  te();
4637
4671
  });
4638
- return this.bus.$on("$loadData." + ue, te), pe && this.bus.$on("$loadData." + ue + "." + pe, te), y[R] = {
4672
+ return this.bus.$on("$loadData." + ue, te), me && this.bus.$on("$loadData." + ue + "." + me, te), $[S] = {
4639
4673
  fn: () => {
4640
- this.bus.$off("$loadData." + ue, te), pe && this.bus.$off("$loadData." + ue + "." + pe, te), rr();
4674
+ this.bus.$off("$loadData." + ue, te), me && this.bus.$off("$loadData." + ue + "." + me, te), nr();
4641
4675
  },
4642
4676
  val: le.value
4643
4677
  }, le.value;
4644
4678
  };
4645
4679
  b(!1);
4646
4680
  const j = () => {
4647
- Object.keys(y).forEach((R) => y[R].fn()), y = {};
4681
+ Object.keys($).forEach((S) => $[S].fn()), $ = {};
4648
4682
  };
4649
4683
  return this.unwatch.push(j), j;
4650
4684
  },
@@ -4662,10 +4696,10 @@ function Jt(t) {
4662
4696
  }, G(d));
4663
4697
  this.isSub() && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$options.propsData.option || {}), this.updateOptions(c);
4664
4698
  },
4665
- mergeOptions(c, p, y) {
4666
- return p = v({}, p || {}), y && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4667
- delete p[b];
4668
- }), p.global && (c.global = Hr(c.global, p.global), delete p.global), this.$handle.$manager.mergeOptions([p], c), c;
4699
+ mergeOptions(c, m, $) {
4700
+ return m = v({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4701
+ delete m[b];
4702
+ }), m.global && (c.global = Jr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4669
4703
  },
4670
4704
  updateOptions(c) {
4671
4705
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4694,65 +4728,65 @@ function Jt(t) {
4694
4728
  this.$handle.bindNextTick(() => this.bus.$emit("next-tick", this.$handle.api));
4695
4729
  }
4696
4730
  });
4697
- function st(c) {
4731
+ function ot(c) {
4698
4732
  C(c, {
4699
4733
  version: t.version,
4700
4734
  ui: t.ui,
4701
- isMobile: g,
4702
- extendApi: xt,
4703
- getData: nt,
4704
- setDataDriver: we,
4705
- setData: Pe,
4706
- removeData: Yt,
4707
- refreshData: Ce,
4735
+ isMobile: p,
4736
+ extendApi: er,
4737
+ getData: st,
4738
+ setDataDriver: Oe,
4739
+ setData: Be,
4740
+ removeData: tr,
4741
+ refreshData: we,
4708
4742
  maker: f,
4709
- component: F,
4743
+ component: k,
4710
4744
  directive: T,
4711
- setModelField: Xt,
4712
- setFormula: Zt,
4713
- setDriver: Qt,
4714
- register: ce,
4745
+ setModelField: Qt,
4746
+ setFormula: Yt,
4747
+ setDriver: xt,
4748
+ register: he,
4715
4749
  $vnode: N,
4716
- parser: he,
4717
- use: de,
4718
- factory: Kt,
4719
- componentAlias: Ve,
4720
- copyRule: Pt,
4721
- copyRules: Lt,
4722
- mergeRule: Y,
4723
- fetch: Ut,
4724
- $form: k,
4750
+ parser: de,
4751
+ use: pe,
4752
+ factory: Zt,
4753
+ componentAlias: Le,
4754
+ copyRule: Lt,
4755
+ copyRules: Bt,
4756
+ mergeRule: x,
4757
+ fetch: Gt,
4758
+ $form: R,
4725
4759
  parseFn: W,
4726
- parseJson: Vt,
4727
- toJson: ve,
4728
- useApp: P,
4760
+ parseJson: Pt,
4761
+ toJson: _e,
4762
+ useApp: I,
4729
4763
  getApi: ee,
4730
- on: er
4764
+ on: rr
4731
4765
  });
4732
4766
  }
4733
- function tr(c) {
4767
+ function ir(c) {
4734
4768
  C(c, {
4735
4769
  create: z,
4736
- install(p, y) {
4737
- if (d = v(v({}, d), y || {}), p._installedFormCreate === !0) return;
4738
- p._installedFormCreate = !0;
4739
- const b = function(j, R = {}) {
4740
- return z(j, R, this);
4770
+ install(m, $) {
4771
+ if (d = v(v({}, d), $ || {}), m._installedFormCreate === !0) return;
4772
+ m._installedFormCreate = !0;
4773
+ const b = function(j, S = {}) {
4774
+ return z(j, S, this);
4741
4775
  };
4742
- st(b), p.prototype.$formCreate = b;
4743
- const w = k();
4744
- p.component(w.name, w), p.component("FcFragment", N()), o.forEach((j) => {
4745
- O(() => j(c, p));
4776
+ ot(b), m.prototype.$formCreate = b;
4777
+ const w = R();
4778
+ m.component(w.name, w), m.component("FcFragment", N()), o.forEach((j) => {
4779
+ O(() => j(c, m));
4746
4780
  });
4747
4781
  }
4748
4782
  });
4749
4783
  }
4750
- if (st(D), tr(D), we("$cookie", ji), we("$localStorage", Ii), we("$sessionStorage", Ai), $.use({ fragment: "fcFragment" }), t.install && z.use(t), he(ki), t.inherit) {
4784
+ if (ot(D), ir(D), Oe("$cookie", Ii), Oe("$localStorage", Vi), Oe("$sessionStorage", Pi), g.use({ fragment: "fcFragment" }), t.install && z.use(t), de(Ei), t.inherit) {
4751
4785
  const c = t.inherit;
4752
- 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);
4786
+ 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(y, c.loadData), c.formulas && C(_, c.formulas);
4753
4787
  }
4754
- const Oe = k();
4755
- return Se(Oe, D), Object.defineProperties(Oe, {
4788
+ const Fe = R();
4789
+ return Se(Fe, D), Object.defineProperties(Fe, {
4756
4790
  fetch: {
4757
4791
  get() {
4758
4792
  return D.fetch;
@@ -4761,9 +4795,9 @@ function Jt(t) {
4761
4795
  D.fetch = c;
4762
4796
  }
4763
4797
  }
4764
- }), Oe.util = D, Oe;
4798
+ }), Fe.util = D, Fe;
4765
4799
  }
4766
- function Ue(t) {
4800
+ function qe(t) {
4767
4801
  if (h.Date(t))
4768
4802
  return t;
4769
4803
  {
@@ -4771,14 +4805,14 @@ function Ue(t) {
4771
4805
  return e.toString() === "Invalid Date" ? t : e;
4772
4806
  }
4773
4807
  }
4774
- const vt = "datePicker", Mi = {
4775
- name: vt,
4808
+ const _t = "datePicker", qi = {
4809
+ name: _t,
4776
4810
  maker: function() {
4777
- return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = V(vt, { type: e.toLowerCase() }), t), {});
4811
+ return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = P(_t, { type: e.toLowerCase() }), t), {});
4778
4812
  }(),
4779
4813
  mergeProp(t) {
4780
4814
  let e = t.prop.props;
4781
- e.startDate && (e.startDate = e.startDate && Ue(e.startDate));
4815
+ e.startDate && (e.startDate = e.startDate && qe(e.startDate));
4782
4816
  },
4783
4817
  isRange(t) {
4784
4818
  return t.type.includes("range") || t.multiple;
@@ -4797,60 +4831,60 @@ const vt = "datePicker", Mi = {
4797
4831
  return this.isRange(e.el) ? r : r[0];
4798
4832
  } else {
4799
4833
  let r = Array.isArray(t), i = e.prop.props, s, n = i.type || "date";
4800
- 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;
4834
+ 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;
4801
4835
  }
4802
4836
  },
4803
4837
  mounted(t) {
4804
4838
  t.rule.value = this.toValue(t.$handle.getFormData(t), t);
4805
4839
  }
4806
- }, qe = "hidden", Ui = {
4807
- name: qe,
4840
+ }, Ge = "hidden", Gi = {
4841
+ name: Ge,
4808
4842
  maker: {
4809
- [qe]: (t, e) => V(qe)("", t, e)
4843
+ [Ge]: (t, e) => P(Ge)("", t, e)
4810
4844
  },
4811
4845
  render() {
4812
4846
  return [];
4813
4847
  }
4814
- }, Ge = "input", qi = {
4815
- name: Ge,
4848
+ }, He = "input", Hi = {
4849
+ name: He,
4816
4850
  maker: function() {
4817
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = V(Ge, { type: r }), e), {});
4818
- return t.idate = V(Ge, { type: "date" }), t;
4851
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = P(He, { type: r }), e), {});
4852
+ return t.idate = P(He, { type: "date" }), t;
4819
4853
  }(),
4820
4854
  mergeProp(t) {
4821
4855
  let { props: e } = t.prop;
4822
4856
  e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4823
4857
  }
4824
- }, _t = "slider", Gi = {
4825
- name: _t,
4858
+ }, Ct = "slider", zi = {
4859
+ name: Ct,
4826
4860
  maker: {
4827
- sliderRange: V(_t, { range: !0 })
4861
+ sliderRange: P(Ct, { range: !0 })
4828
4862
  },
4829
4863
  toFormValue(t, e) {
4830
4864
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4831
4865
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4832
4866
  }
4833
- }, Hi = {
4867
+ }, Ji = {
4834
4868
  name: "switch",
4835
4869
  mergeProp(t) {
4836
4870
  const e = t.prop.props.slot || {}, r = t.prop.scopedSlots || {};
4837
4871
  e.open && (r.open = () => e.open), e.close && (r.close = () => e.close), t.prop.scopedSlots = r;
4838
4872
  }
4839
- }, zi = {
4873
+ }, Wi = {
4840
4874
  name: "FcRow",
4841
4875
  render(t, e) {
4842
4876
  return e.vNode.col({ props: { span: 24 } }, [
4843
4877
  e.vNode.row(e.prop, t)
4844
4878
  ]);
4845
4879
  }
4846
- }, Ji = [
4847
- Mi,
4848
- Ui,
4880
+ }, Ki = [
4849
4881
  qi,
4850
4882
  Gi,
4851
4883
  Hi,
4852
- zi
4853
- ], Wi = {
4884
+ zi,
4885
+ Ji,
4886
+ Wi
4887
+ ], Xi = {
4854
4888
  button: "iButton",
4855
4889
  icon: "Icon",
4856
4890
  slider: "Slider",
@@ -4877,21 +4911,21 @@ const vt = "datePicker", Mi = {
4877
4911
  array: "fcGroup",
4878
4912
  subForm: "fcSubForm",
4879
4913
  object: "fcSubForm"
4880
- }, je = {
4914
+ }, Ie = {
4881
4915
  resetBtnType: "default",
4882
4916
  resetBtnIcon: "md-refresh",
4883
4917
  infoIcon: "ios-information-circle-outline"
4884
4918
  };
4885
- function Ki() {
4919
+ function Zi() {
4886
4920
  return {
4887
4921
  type: "poptip",
4888
4922
  trigger: "hover",
4889
4923
  placement: "top-start",
4890
4924
  wordWrap: !0,
4891
- icon: je.infoIcon
4925
+ icon: Ie.infoIcon
4892
4926
  };
4893
4927
  }
4894
- function Xi() {
4928
+ function Qi() {
4895
4929
  return {
4896
4930
  form: {
4897
4931
  inline: !1,
@@ -4913,9 +4947,9 @@ function Xi() {
4913
4947
  click: void 0
4914
4948
  },
4915
4949
  resetBtn: {
4916
- type: je.resetBtnType,
4950
+ type: Ie.resetBtnType,
4917
4951
  disabled: !1,
4918
- icon: je.resetBtnIcon,
4952
+ icon: Ie.resetBtnIcon,
4919
4953
  innerText: "",
4920
4954
  loading: !1,
4921
4955
  show: !1,
@@ -4923,20 +4957,20 @@ function Xi() {
4923
4957
  }
4924
4958
  };
4925
4959
  }
4926
- function Ct(t, e) {
4960
+ function wt(t, e) {
4927
4961
  E(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4928
4962
  }
4929
4963
  function Z(t) {
4930
4964
  return t === !1;
4931
4965
  }
4932
- function Zi(t, e) {
4966
+ function Yi(t, e) {
4933
4967
  E(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4934
4968
  }
4935
- function He(t) {
4969
+ function ze(t) {
4936
4970
  const e = v({}, t);
4937
4971
  return delete e.children, e;
4938
4972
  }
4939
- const Qi = {
4973
+ const xi = {
4940
4974
  validate() {
4941
4975
  const t = this.form();
4942
4976
  return t ? t.validate() : new Promise((e) => e());
@@ -4955,28 +4989,28 @@ const Qi = {
4955
4989
  },
4956
4990
  tidyOptions(t) {
4957
4991
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4958
- Zi(t, e);
4992
+ Yi(t, e);
4959
4993
  }), t;
4960
4994
  },
4961
4995
  tidyRule({ prop: t }) {
4962
- return Ct(t, "title"), Ct(t, "info"), t;
4996
+ return wt(t, "title"), wt(t, "info"), t;
4963
4997
  },
4964
4998
  mergeProp(t) {
4965
4999
  const e = {
4966
- info: Ki(),
5000
+ info: Zi(),
4967
5001
  title: {},
4968
5002
  col: { span: 24 },
4969
5003
  wrap: {}
4970
5004
  };
4971
5005
  ["info", "wrap", "col", "title"].forEach((r) => {
4972
- t.prop[r] = x([this.options[r] || {}, t.prop[r] || {}], e[r]);
5006
+ t.prop[r] = Y([this.options[r] || {}, t.prop[r] || {}], e[r]);
4973
5007
  }), this.setSize(t.prop.props);
4974
5008
  },
4975
5009
  setSize(t) {
4976
5010
  !t.size && this.options.form.size && (t.size = this.options.form.size);
4977
5011
  },
4978
5012
  getDefaultOptions() {
4979
- return Xi();
5013
+ return Qi();
4980
5014
  },
4981
5015
  update() {
4982
5016
  const t = this.options.form;
@@ -5003,10 +5037,10 @@ const Qi = {
5003
5037
  makeWrap(t, e) {
5004
5038
  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;
5005
5039
  delete r.wrap.title;
5006
- const u = Z(r.wrap.show) ? e : this.$r(x([r.wrap, {
5040
+ const u = Z(r.wrap.show) ? e : this.$r(Y([r.wrap, {
5007
5041
  props: U(v({
5008
5042
  labelWidth: o
5009
- }, He(r.wrap || {})), {
5043
+ }, ze(r.wrap || {})), {
5010
5044
  prop: t.id,
5011
5045
  rules: t.injectValidate()
5012
5046
  }),
@@ -5023,32 +5057,32 @@ const Qi = {
5023
5057
  return !(!e.title && !e.native || Z(e.show));
5024
5058
  },
5025
5059
  makeInfo(t, e, r) {
5026
- var u, f, d, g, m, $;
5060
+ var u, f, d, p, y, g;
5027
5061
  const i = v({}, t.title), s = v({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5028
5062
  title: (f = (u = r.refRule) == null ? void 0 : u.__$title) == null ? void 0 : f.value,
5029
5063
  rule: r.rule,
5030
5064
  options: this.options
5031
- }) : ((g = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : g.value) + (n.labelSuffix || n["label-suffix"] || "")];
5065
+ }) : ((p = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : p.value) + (n.labelSuffix || n["label-suffix"] || "")];
5032
5066
  if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
5033
5067
  const _ = {
5034
5068
  type: s.type || "poptip",
5035
- props: He(s),
5069
+ props: ze(s),
5036
5070
  key: `${e}pop`,
5037
5071
  slot: "label"
5038
5072
  };
5039
5073
  delete _.props.icon, delete _.props.show, delete _.props.info, delete _.props.align, delete _.props.native;
5040
5074
  const D = "content";
5041
- s.info && !E(_.props, D) && (_.props[D] = ($ = (m = r.refRule) == null ? void 0 : m.__$info) == null ? void 0 : $.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(x([s, _]), [
5075
+ s.info && !E(_.props, D) && (_.props[D] = (g = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : g.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, _]), [
5042
5076
  this.$r({
5043
5077
  type: "icon",
5044
- props: { type: s.icon === !0 ? je.infoIcon : s.icon, size: 16 },
5078
+ props: { type: s.icon === !0 ? Ie.infoIcon : s.icon, size: 16 },
5045
5079
  style: "margin-top: -1px",
5046
5080
  key: `${e}i`
5047
5081
  })
5048
5082
  ]));
5049
5083
  }
5050
- const l = x([i, {
5051
- props: He(i),
5084
+ const l = Y([i, {
5085
+ props: ze(i),
5052
5086
  key: `${e}tit`,
5053
5087
  class: "fc-form-title",
5054
5088
  slot: i.slot || "label",
@@ -5123,34 +5157,34 @@ const Qi = {
5123
5157
  key: `${this.key}b1`
5124
5158
  }, [e]);
5125
5159
  }
5126
- }, oe = {}, xi = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5127
- function Yi(t) {
5128
- xi.forEach((e) => {
5129
- t[e] = V(e);
5160
+ }, oe = {}, en = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5161
+ function tn(t) {
5162
+ en.forEach((e) => {
5163
+ t[e] = P(e);
5130
5164
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
5131
5165
  }
5132
- function en(t) {
5166
+ function rn(t) {
5133
5167
  const e = "upload", r = {
5134
5168
  image: ["image", 0],
5135
5169
  file: ["file", 0],
5136
5170
  uploadFileOne: ["file", 1],
5137
5171
  uploadImageOne: ["image", 1]
5138
5172
  };
5139
- Object.keys(r).reduce((i, s) => (i[s] = V(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
5173
+ Object.keys(r).reduce((i, s) => (i[s] = P(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
5140
5174
  }
5141
- function tn(t) {
5175
+ function nn(t) {
5142
5176
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
5143
- Object.keys(r).reduce((i, s) => (i[s] = V(e, { type: r[s] }), i), t);
5177
+ Object.keys(r).reduce((i, s) => (i[s] = P(e, { type: r[s] }), i), t);
5144
5178
  }
5145
- function rn(t) {
5179
+ function sn(t) {
5146
5180
  const e = "timePicker";
5147
- t.time = V(e, { type: "time" }), t.timeRange = V(e, { type: "timerange" });
5181
+ t.time = P(e, { type: "time" }), t.timeRange = P(e, { type: "timerange" });
5148
5182
  }
5149
- function nn(t) {
5183
+ function on(t) {
5150
5184
  const e = "select";
5151
- t.selectMultiple = V(e, { multiple: !0 }), t.selectOne = V(e, { multiple: !1 });
5185
+ t.selectMultiple = P(e, { multiple: !0 }), t.selectOne = P(e, { multiple: !1 });
5152
5186
  }
5153
- function sn(t) {
5187
+ function an(t) {
5154
5188
  const e = "frame", r = {
5155
5189
  frameInputs: ["input", 0],
5156
5190
  frameFiles: ["file", 0],
@@ -5159,18 +5193,18 @@ function sn(t) {
5159
5193
  frameFileOne: ["file", 1],
5160
5194
  frameImageOne: ["image", 1]
5161
5195
  };
5162
- Object.keys(r).reduce((i, s) => (i[s] = V(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;
5196
+ 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;
5163
5197
  }
5164
- Yi(oe);
5165
- en(oe);
5166
5198
  tn(oe);
5199
+ rn(oe);
5167
5200
  nn(oe);
5201
+ on(oe);
5202
+ an(oe);
5168
5203
  sn(oe);
5169
- rn(oe);
5170
- function wt(t, e) {
5204
+ function Ot(t, e) {
5171
5205
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5172
5206
  }
5173
- function on(t, e) {
5207
+ function ln(t, e) {
5174
5208
  return {
5175
5209
  formEl() {
5176
5210
  return e.$manager.form();
@@ -5246,11 +5280,11 @@ function on(t, e) {
5246
5280
  }
5247
5281
  },
5248
5282
  submitBtnProps: (r = {}) => {
5249
- let i = wt(e.options.submitBtn, !0);
5283
+ let i = Ot(e.options.submitBtn, !0);
5250
5284
  C(i, r), e.options.submitBtn = i, t.refreshOptions();
5251
5285
  },
5252
5286
  resetBtnProps: (r = {}) => {
5253
- let i = wt(e.options.resetBtn, !1);
5287
+ let i = Ot(e.options.resetBtn, !1);
5254
5288
  C(i, r), e.options.resetBtn = i, t.refreshOptions();
5255
5289
  },
5256
5290
  submit(r, i) {
@@ -5268,11 +5302,11 @@ function on(t, e) {
5268
5302
  }
5269
5303
  };
5270
5304
  }
5271
- const Wt = {
5305
+ const Xt = {
5272
5306
  name: "required",
5273
5307
  load(t, e, r) {
5274
5308
  var s, n;
5275
- const i = an(t.getValue());
5309
+ const i = un(t.getValue());
5276
5310
  if (i.required === !1)
5277
5311
  t.clearProp(), r.clearValidateState([e.field]);
5278
5312
  else {
@@ -5293,28 +5327,28 @@ const Wt = {
5293
5327
  r.sync(e);
5294
5328
  },
5295
5329
  watch(...t) {
5296
- Wt.load(...t);
5330
+ Xt.load(...t);
5297
5331
  }
5298
5332
  };
5299
- function an(t) {
5333
+ function un(t) {
5300
5334
  return h.Boolean(t) ? { required: t } : h.String(t) ? { message: t } : h.Undef(t) ? { required: !1 } : h.Function(t) ? { validator: t } : h.Object(t) ? t : {};
5301
5335
  }
5302
- function ln(t) {
5303
- t.componentAlias(Wi), Nr.forEach((e) => {
5336
+ function fn(t) {
5337
+ t.componentAlias(Xi), Ur.forEach((e) => {
5304
5338
  t.component(e.name, e);
5305
- }), t.register(Wt), Ji.forEach((e) => {
5339
+ }), t.register(Xt), Ki.forEach((e) => {
5306
5340
  t.parser(e);
5307
5341
  }), Object.keys(oe).forEach((e) => {
5308
5342
  t.maker[e] = oe[e];
5309
5343
  });
5310
5344
  }
5311
- function un() {
5312
- return Jt({
5345
+ function cn() {
5346
+ return Kt({
5313
5347
  ui: "iview",
5314
- version: "2.7.7",
5315
- manager: Qi,
5316
- install: ln,
5317
- extendApi: on,
5348
+ version: "2.7.9",
5349
+ manager: xi,
5350
+ install: fn,
5351
+ extendApi: ln,
5318
5352
  attrs: {
5319
5353
  normal: ["col", "wrap"],
5320
5354
  array: ["className"],
@@ -5322,10 +5356,10 @@ function un() {
5322
5356
  }
5323
5357
  });
5324
5358
  }
5325
- const Qe = un();
5326
- typeof window != "undefined" && (window.formCreate = Qe, window.Vue && Qe.install(window.Vue));
5327
- const hn = Qe.maker;
5359
+ const Ye = cn();
5360
+ typeof window != "undefined" && (window.formCreate = Ye, window.Vue && Ye.install(window.Vue));
5361
+ const pn = Ye.maker;
5328
5362
  export {
5329
- Qe as default,
5330
- hn as maker
5363
+ Ye as default,
5364
+ pn as maker
5331
5365
  };