@form-create/view-design 2.7.8 → 2.7.10

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,26 +1,26 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/view-design v2.7.8
3
+ * @form-create/view-design v2.7.10
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 nr = Object.defineProperty, sr = Object.defineProperties;
11
- var or = Object.getOwnPropertyDescriptors;
10
+ var sr = Object.defineProperty, or = Object.defineProperties;
11
+ var ar = Object.getOwnPropertyDescriptors;
12
12
  var at = Object.getOwnPropertySymbols;
13
- var ar = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
14
- var lt = (t, e, r) => e in t ? nr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
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
- ar.call(e, r) && lt(t, r, e[r]);
16
+ lr.call(e, r) && lt(t, r, e[r]);
17
17
  if (at)
18
18
  for (var r of at(e))
19
- lr.call(e, r) && lt(t, r, e[r]);
19
+ ur.call(e, r) && lt(t, r, e[r]);
20
20
  return t;
21
- }, U = (t, e) => sr(t, or(e));
22
- import ye, { getCurrentInstance as ur, provide as fr, inject as cr, toRefs as ut, reactive as ie, onBeforeMount as hr, watch as B, onMounted as dr, onBeforeUnmount as pr, onUpdated as mr, nextTick as A, markRaw as me, computed as ge, toRef as je, ref as gr } from "vue";
23
- function yr(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
26
  function Je() {
@@ -29,33 +29,33 @@ function Je() {
29
29
  return t;
30
30
  }, Je.apply(this, arguments);
31
31
  }
32
- var $r = ["attrs", "props", "domProps"], br = ["class", "style", "directives"], vr = ["on", "nativeOn"], _r = 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 ($r.indexOf(i) !== -1) e[i] = Je({}, e[i], r[i]);
36
- else if (br.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 (vr.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] ? Cr(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
- }, Cr = 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
- }, wr = _r;
53
- const I = /* @__PURE__ */ yr(wr);
54
- function Ae(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 Or = "fcCheckbox", Fr = {
58
- name: Or,
57
+ const kr = "fcCheckbox", Fr = {
58
+ name: kr,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -100,7 +100,7 @@ const Or = "fcCheckbox", Fr = {
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 Or = "fcCheckbox", Fr = {
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
- }), Ae(this.$slots)]);
120
+ }), Ve(this.$slots)]);
121
121
  },
122
122
  mounted() {
123
123
  this.$emit("fc.el", this.$refs.el);
@@ -127,7 +127,7 @@ function H(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
129
  const Sr = "fcFrame";
130
- function Ft(t) {
130
+ function kt(t) {
131
131
  return {
132
132
  name: Sr,
133
133
  props: {
@@ -286,7 +286,7 @@ function Ft(t) {
286
286
  readonly: !0,
287
287
  clearable: !1
288
288
  };
289
- return e("Input", I([{}, {
289
+ return e("Input", A([{}, {
290
290
  props: r
291
291
  }, {}, {
292
292
  on: {
@@ -325,7 +325,7 @@ function Ft(t) {
325
325
  },
326
326
  makeHandleIcon(e, r) {
327
327
  const i = this.$createElement;
328
- return i("icon", 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 Ft(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 Ft(t) {
351
351
  },
352
352
  makeFiles() {
353
353
  const e = this.$createElement;
354
- return this.makeGroup(this.fileList.map((r, i) => this.makeItem(i, [e("icon", 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 Ft(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 Ft(t) {
450
450
  this.$refs.frame && this.frameLoad(this.$refs.frame.contentWindow || {});
451
451
  }), e("div", {
452
452
  class: "_fc-frame"
453
- }, [i, e("Modal", I([{}, {
453
+ }, [i, e("Modal", A([{}, {
454
454
  props: {
455
455
  mask: this.previewMask,
456
456
  title: l,
@@ -468,7 +468,7 @@ function Ft(t) {
468
468
  attrs: {
469
469
  src: this.previewImage
470
470
  }
471
- })]), e("Modal", I([{}, {
471
+ })]), e("Modal", A([{}, {
472
472
  props: v({
473
473
  width: s,
474
474
  title: a
@@ -503,16 +503,16 @@ function Ft(t) {
503
503
  }
504
504
  };
505
505
  }
506
- const St = Ft({
506
+ const Ft = kt({
507
507
  fileIcon: "md-document",
508
508
  fileUpIcon: "ios-folder-open"
509
509
  });
510
- St.v2 = Ft({
510
+ Ft.v2 = kt({
511
511
  fileIcon: "document-text",
512
512
  fileUpIcon: "folder"
513
513
  });
514
- const kr = "fcRadio", Rr = {
515
- name: kr,
514
+ const Rr = "fcRadio", Er = {
515
+ name: Rr,
516
516
  props: {
517
517
  formCreateInject: {
518
518
  type: Object,
@@ -553,7 +553,7 @@ const kr = "fcRadio", Rr = {
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 kr = "fcRadio", Rr = {
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
- }), Ae(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 kr = "fcRadio", Rr = {
607
607
  function E(t, e) {
608
608
  return {}.hasOwnProperty.call(t, e);
609
609
  }
610
- const Er = "fcSelect", Dr = {
611
- name: Er,
610
+ const Dr = "fcSelect", jr = {
611
+ name: Dr,
612
612
  functional: !0,
613
613
  props: {
614
614
  formCreateInject: {
@@ -619,7 +619,7 @@ const Er = "fcSelect", Dr = {
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 Er = "fcSelect", Dr = {
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
- }, jr = "fcTree", Ir = {
643
- name: jr,
642
+ }, Ar = "fcTree", Ir = {
643
+ name: Ar,
644
644
  props: {
645
645
  formCreateInject: {
646
646
  type: Object,
@@ -684,11 +684,11 @@ const Er = "fcSelect", Dr = {
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
- }]), [Ae(this.$slots)]);
691
+ }]), [Ve(this.$slots)]);
692
692
  },
693
693
  mounted() {
694
694
  this.$emit("fc.el", this.$refs.tree);
@@ -698,7 +698,7 @@ function ft(t) {
698
698
  return typeof t == "object" ? t : {
699
699
  url: t,
700
700
  is_string: !0,
701
- name: Ar(t)
701
+ name: Vr(t)
702
702
  };
703
703
  }
704
704
  function ct(t) {
@@ -707,13 +707,13 @@ function ct(t) {
707
707
  value: t
708
708
  });
709
709
  }
710
- function Ar(t) {
710
+ function Vr(t) {
711
711
  return ("" + t).split("/").pop();
712
712
  }
713
- const Vr = "fcUpload";
714
- function kt(t) {
713
+ const Pr = "fcUpload";
714
+ function St(t) {
715
715
  return {
716
- name: Vr,
716
+ name: Pr,
717
717
  props: {
718
718
  formCreateInject: {
719
719
  type: Object,
@@ -784,7 +784,7 @@ function kt(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 kt(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 kt(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 kt(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, Ae(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 kt(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 kt(t) {
907
907
  }
908
908
  };
909
909
  }
910
- const Rt = kt({
910
+ const Rt = St({
911
911
  fileIcon: "md-document",
912
912
  imgUpIcon: "md-images"
913
913
  });
914
- Rt.v2 = kt({
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 k(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 && k(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 && k(t, s, {});
936
936
  else {
937
- S(t, s, n._clone());
937
+ k(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 && k(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
+ k(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
945
945
  }
946
946
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
947
947
  }
948
948
  function G(t) {
949
- return _e({}, { value: t }).value;
949
+ return Ce({}, { value: t }).value;
950
950
  }
951
- const Pr = 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) && k(t, i, e[i]);
955
955
  return t;
956
956
  };
957
957
  function C() {
958
- return Pr.apply(this, arguments);
958
+ return Lr.apply(this, arguments);
959
959
  }
960
960
  function We(t) {
961
961
  return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
962
962
  }
963
- const Lr = "fcGroup", Br = {
964
- name: Lr,
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 Lr = "fcGroup", Br = {
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,13 +1235,13 @@ const Lr = "fcGroup", Br = {
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
- "update:value": (d) => this.formData(o, d),
1243
- "emit-event": (d, ...g) => this.emitEvent(d, g, a, o),
1244
- input: (d) => this.add$f(a, o, d)
1242
+ "update:value": (p) => this.formData(o, p),
1243
+ "emit-event": (p, ...d) => this.emitEvent(p, d, a, o),
1244
+ input: (p) => this.add$f(a, o, p)
1245
1245
  }
1246
1246
  }, {}, {
1247
1247
  props: {
@@ -1265,8 +1265,8 @@ const Lr = "fcGroup", Br = {
1265
1265
  class: "_fc-group " + (s ? "_fc-group-disabled" : "")
1266
1266
  }, [n]);
1267
1267
  }
1268
- }, Tr = "fcSubForm", Nr = {
1269
- name: Tr,
1268
+ }, Nr = "fcSubForm", Mr = {
1269
+ name: Nr,
1270
1270
  props: {
1271
1271
  rule: Array,
1272
1272
  options: Object,
@@ -1334,7 +1334,7 @@ const Lr = "fcGroup", Br = {
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 Lr = "fcGroup", Br = {
1349
1349
  }
1350
1350
  }]));
1351
1351
  }
1352
- }, Mr = [
1352
+ }, Ur = [
1353
1353
  Fr,
1354
- Rr,
1355
- Dr,
1354
+ Er,
1355
+ jr,
1356
1356
  Ir,
1357
- Nr,
1358
- St,
1357
+ Mr,
1358
+ Ft,
1359
1359
  Rt,
1360
- Br
1360
+ Tr
1361
1361
  ];
1362
1362
  function ne(t, e) {
1363
1363
  var r = null;
@@ -1365,10 +1365,13 @@ 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
+ function qr(t) {
1373
+ return t.replace(t[0], t[0].toLocaleUpperCase());
1374
+ }
1372
1375
  const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style", "directives"], jt = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
1373
1376
  const i = [...Et, ...r.normal || []], s = [...Dt, ...r.array || []], n = [...jt, ...r.functional || []], o = r.props || [];
1374
1377
  return t.reduce((a, l) => {
@@ -1379,29 +1382,29 @@ const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style"
1379
1382
  else if (i.indexOf(u) > -1)
1380
1383
  a[u] = v(v({}, a[u]), l[u]);
1381
1384
  else if (s.indexOf(u) > -1) {
1382
- const f = a[u] instanceof Array ? a[u] : [a[u]], d = l[u] instanceof Array ? l[u] : [l[u]];
1383
- a[u] = [...f, ...d];
1385
+ const f = a[u] instanceof Array ? a[u] : [a[u]], p = l[u] instanceof Array ? l[u] : [l[u]];
1386
+ a[u] = [...f, ...p];
1384
1387
  } else if (n.indexOf(u) > -1)
1385
1388
  for (const f in l[u])
1386
1389
  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];
1390
+ const p = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], d = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1391
+ a[u][f] = [...p, ...d];
1389
1392
  } else
1390
1393
  a[u][f] = l[u][f];
1391
1394
  else if (u === "hook")
1392
1395
  for (let f in l[u])
1393
- a[u][f] ? a[u][f] = Ur(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1396
+ a[u][f] ? a[u][f] = Gr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1394
1397
  else
1395
1398
  a[u] = l[u];
1396
1399
  else
1397
1400
  i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = v({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? v({}, l[u]) : l[u] : a[u] = l[u];
1398
1401
  return a;
1399
1402
  }, e);
1400
- }, Ur = (t, e) => function() {
1403
+ }, Gr = (t, e) => function() {
1401
1404
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1402
- }, It = ["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
- function At() {
1404
- return [...It, ...Et, ...Dt, ...jt, ...xe, ...et];
1405
+ }, At = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], xe = ["validate", "children", "control"], et = ["effect", "deep", "renderSlots"];
1406
+ function It() {
1407
+ return [...At, ...Et, ...Dt, ...jt, ...xe, ...et];
1405
1408
  }
1406
1409
  function Vt(t, e, r) {
1407
1410
  return `[form-create ${t}]: ${e}`;
@@ -1409,15 +1412,15 @@ function Vt(t, e, r) {
1409
1412
  function tt(t, e) {
1410
1413
  console.error(Vt("err", t));
1411
1414
  }
1412
- function qr(t) {
1415
+ function Hr(t) {
1413
1416
  tt(t.toString()), console.error(t);
1414
1417
  }
1415
- function Gr(t) {
1418
+ function zr(t) {
1416
1419
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1417
1420
  }
1418
1421
  const Ke = "[[FORM-CREATE-PREFIX-", Xe = "-FORM-CREATE-SUFFIX]]";
1419
- function ve(t, e) {
1420
- return JSON.stringify(_e(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1422
+ function _e(t, e) {
1423
+ return JSON.stringify(Ce(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1421
1424
  if (!(i && i._isVue === !0)) {
1422
1425
  if (typeof i != "function")
1423
1426
  return i;
@@ -1477,16 +1480,16 @@ function Pt(t, e) {
1477
1480
  return h.Undef(i) || !i.indexOf ? i : W(i, e);
1478
1481
  });
1479
1482
  }
1480
- let Hr = 0;
1481
- function Ve() {
1482
- const t = 370 + ++Hr;
1483
+ let Jr = 0;
1484
+ function Pe() {
1485
+ const t = 370 + ++Jr;
1483
1486
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1484
1487
  }
1485
1488
  function se(t, e, r) {
1486
1489
  let i = t, s;
1487
1490
  return (e || "").split(".").forEach((n) => {
1488
- s && ((!i[s] || typeof i[s] != "object") && S(i, s, {}), i = i[s]), s = n;
1489
- }), S(i, s, r), i;
1491
+ s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1492
+ }), k(i, s, r), i;
1490
1493
  }
1491
1494
  function Ze(t, e) {
1492
1495
  return {
@@ -1500,7 +1503,7 @@ function Lt(t, e) {
1500
1503
  return Bt([t], e || !1)[0];
1501
1504
  }
1502
1505
  function Bt(t, e) {
1503
- return _e([], [...t], e || !1);
1506
+ return Ce([], [...t], e || !1);
1504
1507
  }
1505
1508
  function x(t, e) {
1506
1509
  return Y(Array.isArray(e) ? e : [e], t, { array: xe, normal: et }), t;
@@ -1509,7 +1512,7 @@ function ht(t) {
1509
1512
  const e = h.Function(t.getRule) ? t.getRule() : t;
1510
1513
  return e.type || (e.type = "input"), e;
1511
1514
  }
1512
- function zr(t, e) {
1515
+ function Wr(t, e) {
1513
1516
  return t ? (Object.keys(e || {}).forEach((r) => {
1514
1517
  e[r] && (t[r] = x(t[r] || {}, e[r]));
1515
1518
  }), t) : e;
@@ -1528,7 +1531,7 @@ function O(t, e) {
1528
1531
  try {
1529
1532
  e = t();
1530
1533
  } catch (r) {
1531
- qr(r);
1534
+ Hr(r);
1532
1535
  }
1533
1536
  return e;
1534
1537
  }
@@ -1540,7 +1543,7 @@ function Qe(t, e) {
1540
1543
  });
1541
1544
  }), r;
1542
1545
  }
1543
- function Jr(t, e) {
1546
+ function Kr(t, e) {
1544
1547
  if (h.Object(t)) {
1545
1548
  const r = {};
1546
1549
  return Object.keys(t).forEach((i) => {
@@ -1565,7 +1568,7 @@ function Fe() {
1565
1568
  const n = s();
1566
1569
  Array.isArray(n) ? i.push(...n) : i.push(n);
1567
1570
  } else h.Undef(s) || i.push(s);
1568
- }), Jr(i, r);
1571
+ }), Kr(i, r);
1569
1572
  },
1570
1573
  getSlots() {
1571
1574
  let r = [];
@@ -1588,9 +1591,9 @@ function Fe() {
1588
1591
  function Se(t, e) {
1589
1592
  return Object.setPrototypeOf(t, e), t;
1590
1593
  }
1591
- const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, fe = {
1594
+ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1592
1595
  "==": (t, e) => JSON.stringify(t) === JSON.stringify(dt(t, e)),
1593
- "!=": (t, e) => !fe["=="](t, e),
1596
+ "!=": (t, e) => !ce["=="](t, e),
1594
1597
  ">": (t, e) => t > e,
1595
1598
  ">=": (t, e) => t >= e,
1596
1599
  "<": (t, e) => t < e,
@@ -1599,13 +1602,13 @@ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1599
1602
  return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
1600
1603
  },
1601
1604
  notOn(t, e) {
1602
- return !fe.on(t, e);
1605
+ return !ce.on(t, e);
1603
1606
  },
1604
1607
  in(t, e) {
1605
1608
  return e && e.indexOf && e.indexOf(t) > -1;
1606
1609
  },
1607
1610
  notIn(t, e) {
1608
- return !fe.in(t, e);
1611
+ return !ce.in(t, e);
1609
1612
  },
1610
1613
  between(t, e) {
1611
1614
  return t > e[0] && t < e[1];
@@ -1628,7 +1631,7 @@ function L(t, e) {
1628
1631
  t != null && (t = t[r]);
1629
1632
  }), t;
1630
1633
  }
1631
- function Wr(t) {
1634
+ function Xr(t) {
1632
1635
  const e = /{{\s*(.*?)\s*}}/g;
1633
1636
  let r;
1634
1637
  const i = {};
@@ -1642,15 +1645,27 @@ function pt(t) {
1642
1645
  n === 0 ? i = s : i += "." + s, r.push(i);
1643
1646
  }), r.join(" && ");
1644
1647
  }
1645
- const Ee = (t, e) => {
1648
+ function Nt(t) {
1649
+ const e = [];
1650
+ let r = "", i = 0;
1651
+ for (let s = 0; s < t.length; s++) {
1652
+ const n = t[s];
1653
+ n === "[" ? (i === 0 && r && (e.push({ type: "key", value: r }), r = ""), i++, r += n) : n === "]" ? (i--, r += n, i === 0 && (e.push({
1654
+ type: "bracket",
1655
+ value: Nt(r.slice(1, -1))
1656
+ }), r = "")) : n === "." && i === 0 ? r && (e.push({ type: "key", value: r }), r = "") : r += n;
1657
+ }
1658
+ return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
1659
+ }
1660
+ const De = (t, e) => {
1646
1661
  if (!(!t || t === e || !t.$props)) {
1647
1662
  if (t.$props.formCreateInject)
1648
1663
  return t.$props.formCreateInject;
1649
1664
  if (t.$parent)
1650
- return Ee(t.$parent, e);
1665
+ return De(t.$parent, e);
1651
1666
  }
1652
1667
  };
1653
- function Kr(t, e, r) {
1668
+ function Zr(t, e, r) {
1654
1669
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1655
1670
  return {
1656
1671
  name: i,
@@ -1701,102 +1716,102 @@ function Kr(t, e, r) {
1701
1716
  return this.fc.render();
1702
1717
  },
1703
1718
  setup(s) {
1704
- const n = ur().proxy;
1705
- fr("parentFC", n);
1706
- const o = cr("parentFC", null);
1719
+ const n = fr().proxy;
1720
+ cr("parentFC", n);
1721
+ const o = hr("parentFC", null);
1707
1722
  let a = o;
1708
1723
  if (o)
1709
1724
  for (; a.parent; )
1710
1725
  a = a.parent;
1711
1726
  else
1712
1727
  a = n;
1713
- const { rule: l, value: u, subForm: f, inFor: d } = ut(s), g = ie({
1728
+ const { rule: l, value: u, subForm: f, inFor: p } = ut(s), d = ie({
1714
1729
  ctxInject: {},
1715
1730
  destroyed: !1,
1716
1731
  isShow: !0,
1717
1732
  unique: 1,
1718
1733
  renderRule: [...l.value || []],
1719
1734
  updateValue: JSON.stringify(u.value || {})
1720
- }), m = new t(n), y = m.api(), _ = d.value, D = () => {
1735
+ }), g = new t(n), y = g.api(), _ = p.value, D = () => {
1721
1736
  if (o) {
1722
- const F = Ee(n, o);
1737
+ const F = De(n, o);
1723
1738
  if (F) {
1724
- let k;
1725
- _ ? (k = H(F.getSubForm()), k.push(y)) : k = y, F.subForm(k);
1739
+ let R;
1740
+ _ ? (R = H(F.getSubForm()), R.push(y)) : R = y, F.subForm(R);
1726
1741
  }
1727
1742
  }
1728
1743
  }, ee = () => {
1729
- const F = Ee(n, o);
1744
+ const F = De(n, o);
1730
1745
  if (F)
1731
1746
  if (_) {
1732
- const k = H(F.getSubForm()), N = k.indexOf(y);
1733
- N > -1 && k.splice(N, 1);
1747
+ const R = H(F.getSubForm()), N = R.indexOf(y);
1748
+ N > -1 && R.splice(N, 1);
1734
1749
  } else
1735
1750
  F.subForm();
1736
1751
  };
1737
- let P = null;
1738
- hr(() => {
1752
+ let I = null;
1753
+ dr(() => {
1739
1754
  B(() => {
1740
1755
  let F = "";
1741
- const k = s.option && s.option.globalClass || {};
1742
- Object.keys(k).forEach((N) => {
1743
- let de = "";
1744
- k[N].style && Object.keys(k[N].style).forEach((z) => {
1745
- de += $e(z) + ":" + k[N].style[z] + ";";
1746
- }), k[N].content && (de += k[N].content + ";"), de && (F += `.${N}{${de}}`);
1747
- }), 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 || "";
1756
+ const R = s.option && s.option.globalClass || {};
1757
+ Object.keys(R).forEach((N) => {
1758
+ let pe = "";
1759
+ R[N].style && Object.keys(R[N].style).forEach((z) => {
1760
+ pe += be(z) + ":" + R[N].style[z] + ";";
1761
+ }), R[N].content && (pe += R[N].content + ";"), pe && (F += `.${N}{${pe}}`);
1762
+ }), s.option && s.option.style && (F += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = F || "";
1748
1763
  }, () => {
1749
1764
  });
1750
1765
  });
1751
1766
  const T = ne(() => {
1752
- m.bus.$emit("$loadData.$topForm");
1753
- }, 100), ce = ne(function() {
1754
- m.bus.$emit("$loadData.$scopeForm");
1755
- }, 100), Pe = ne(() => {
1756
- m.bus.$emit("$loadData.$form");
1757
- }, 100), he = (F) => {
1758
- m.bus.$emit("change-$form." + F);
1767
+ g.bus.$emit("$loadData.$topForm");
1768
+ }, 100), he = ne(function() {
1769
+ g.bus.$emit("$loadData.$scopeForm");
1770
+ }, 100), Le = ne(() => {
1771
+ g.bus.$emit("$loadData.$form");
1772
+ }, 100), de = (F) => {
1773
+ g.bus.$emit("change-$form." + F);
1759
1774
  };
1760
- return dr(() => {
1761
- o && (y.top.bus.$on("$loadData.$form", T), y.top.bus.$on("change", he)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", ce), m.mounted();
1762
- }), pr(() => {
1763
- o && (y.top.bus.$off("$loadData.$form", T), y.top.bus.$off("change", he)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", ce), P && document.head.removeChild(P), ee(), g.destroyed = !0, m.unmount();
1775
+ return pr(() => {
1776
+ o && (y.top.bus.$on("$loadData.$form", T), y.top.bus.$on("change", de)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", he), g.mounted();
1764
1777
  }), mr(() => {
1765
- m.updated();
1778
+ o && (y.top.bus.$off("$loadData.$form", T), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), ee(), d.destroyed = !0, g.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1779
+ }), gr(() => {
1780
+ g.updated();
1766
1781
  }), B(f, (F) => {
1767
1782
  F ? D() : ee();
1768
1783
  }, { immediate: !0 }), B(() => s.option, () => {
1769
- m.initOptions(), y.refresh();
1784
+ g.initOptions(), y.refresh();
1770
1785
  }, { deep: !0 }), B(() => [...l.value], (F) => {
1771
- 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());
1786
+ g.$handle.isBreakWatch() || F.length === d.renderRule.length && F.every((R) => d.renderRule.indexOf(R) > -1) || (g.$handle.updateAppendData(), g.$handle.reloadRule(l.value), n.renderRule());
1772
1787
  }), B(() => [s.disabled, s.preview], () => {
1773
1788
  y.refresh();
1774
1789
  }), B(u, (F) => {
1775
- ve(F || {}) !== g.updateValue && (y.config.forceCoverValue ? y.coverValue(F || {}) : y.setValue(F || {}));
1790
+ _e(F || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(F || {}) : y.setValue(F || {}));
1776
1791
  }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1777
- y.coverValue({}), m.$handle.updateAppendData(), A(() => {
1778
- A(() => {
1792
+ y.coverValue({}), g.$handle.updateAppendData(), V(() => {
1793
+ V(() => {
1779
1794
  y.clearValidateState();
1780
1795
  });
1781
1796
  });
1782
1797
  }, { flush: "sync" }), U(v({
1783
- fc: me(m),
1784
- parent: o && me(o),
1785
- top: me(a),
1786
- fapi: me(y)
1787
- }, ut(g)), {
1788
- getGroupInject: () => Ee(n, o),
1798
+ fc: ge(g),
1799
+ parent: o && ge(o),
1800
+ top: ge(a),
1801
+ fapi: ge(y)
1802
+ }, ut(d)), {
1803
+ getGroupInject: () => De(n, o),
1789
1804
  refresh() {
1790
- ++g.unique;
1805
+ ++d.unique;
1791
1806
  },
1792
1807
  renderRule() {
1793
- g.renderRule = [...l.value || []];
1808
+ d.renderRule = [...l.value || []];
1794
1809
  },
1795
1810
  updateValue(F) {
1796
- if (g.destroyed) return;
1797
- const k = ve(F);
1798
- g.updateValue !== k && (g.updateValue = k, n.$emit("update:value", F), A(() => {
1799
- Pe(), o ? f.value || ce() : (T(), ce());
1811
+ if (d.destroyed) return;
1812
+ const R = _e(F);
1813
+ d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", F), V(() => {
1814
+ Le(), o ? f.value || he() : (T(), he());
1800
1815
  }));
1801
1816
  }
1802
1817
  });
@@ -1806,7 +1821,7 @@ function Kr(t, e, r) {
1806
1821
  }
1807
1822
  };
1808
1823
  }
1809
- function Nt() {
1824
+ function Mt() {
1810
1825
  return {
1811
1826
  props: {},
1812
1827
  on: {},
@@ -1818,53 +1833,53 @@ function Nt() {
1818
1833
  value: void 0
1819
1834
  };
1820
1835
  }
1821
- function V(t, e) {
1836
+ function P(t, e) {
1822
1837
  return (r, i, s, n = {}) => {
1823
1838
  const o = new rt(t, r, i, s, n);
1824
1839
  return e && (h.Function(e) ? e(o) : o.props(e)), o;
1825
1840
  };
1826
1841
  }
1827
1842
  function rt(t, e, r, i, s) {
1828
- this._data = C(Nt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1843
+ this._data = C(Mt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1829
1844
  }
1830
1845
  C(rt.prototype, {
1831
1846
  getRule() {
1832
1847
  return this._data;
1833
1848
  },
1834
1849
  setProp(t, e) {
1835
- return S(this._data, t, e), this;
1850
+ return k(this._data, t, e), this;
1836
1851
  },
1837
1852
  _clone() {
1838
1853
  const t = new this.constructor();
1839
1854
  return t._data = Lt(this._data), t;
1840
1855
  }
1841
1856
  });
1842
- function Mt(t) {
1857
+ function Ut(t) {
1843
1858
  t.forEach((e) => {
1844
1859
  rt.prototype[e] = function(r) {
1845
1860
  return x(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1846
1861
  };
1847
1862
  });
1848
1863
  }
1849
- Mt(At());
1850
- const Ut = V("");
1851
- function Xr(t, e, r) {
1852
- let i = Ut("", e);
1864
+ Ut(It());
1865
+ const qt = P("");
1866
+ function Qr(t, e, r) {
1867
+ let i = qt("", e);
1853
1868
  return i._data.type = t, i._data.title = r, i;
1854
1869
  }
1855
1870
  function mt(t, e, r, i) {
1856
- let s = Ut("", r);
1871
+ let s = qt("", r);
1857
1872
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1858
1873
  }
1859
- function Zr() {
1874
+ function Yr() {
1860
1875
  return {
1861
- create: Xr,
1876
+ create: Qr,
1862
1877
  createTmp: mt,
1863
1878
  template: mt,
1864
- factory: V
1879
+ factory: P
1865
1880
  };
1866
1881
  }
1867
- function Qr(t, e, r) {
1882
+ function xr(t, e, r) {
1868
1883
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1869
1884
  return s.status = r.status, s.url = t, s;
1870
1885
  }
@@ -1878,7 +1893,7 @@ function gt(t) {
1878
1893
  return e;
1879
1894
  }
1880
1895
  }
1881
- function qt(t) {
1896
+ function Gt(t) {
1882
1897
  if (typeof XMLHttpRequest == "undefined")
1883
1898
  return;
1884
1899
  const e = new XMLHttpRequest();
@@ -1893,7 +1908,7 @@ function qt(t) {
1893
1908
  t.onError(o);
1894
1909
  }, e.onload = function() {
1895
1910
  if (e.status < 200 || e.status >= 300)
1896
- return t.onError(Qr(r, t, e), gt(e));
1911
+ return t.onError(xr(r, t, e), gt(e));
1897
1912
  t.onSuccess(gt(e));
1898
1913
  }, e.open(t.method || "get", r, !0);
1899
1914
  let i;
@@ -1907,7 +1922,7 @@ function qt(t) {
1907
1922
  }
1908
1923
  function yt(t, e, r) {
1909
1924
  return new Promise((i, s) => {
1910
- (e || qt)(U(v({}, t), {
1925
+ (e || Gt)(U(v({}, t), {
1911
1926
  onSuccess(n) {
1912
1927
  let o = (l) => l;
1913
1928
  const a = W(t.parse);
@@ -1919,10 +1934,10 @@ function yt(t, e, r) {
1919
1934
  }));
1920
1935
  });
1921
1936
  }
1922
- function be(t) {
1937
+ function ve(t) {
1923
1938
  return G(t);
1924
1939
  }
1925
- function Yr(t) {
1940
+ function ei(t) {
1926
1941
  function e(n) {
1927
1942
  return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1928
1943
  }
@@ -1930,7 +1945,7 @@ function Yr(t) {
1930
1945
  h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1931
1946
  const u = t.fieldCtx[l] || t.nameCtx[l];
1932
1947
  u && u.forEach((f) => {
1933
- S(f.rule, o, a), t.$render.clearCache(f);
1948
+ k(f.rule, o, a), t.$render.clearCache(f);
1934
1949
  });
1935
1950
  });
1936
1951
  }
@@ -2006,14 +2021,14 @@ function Yr(t) {
2006
2021
  if (n == null || typeof n == "boolean") {
2007
2022
  const o = {};
2008
2023
  return Object.keys(t.form).forEach((a) => {
2009
- (n === !0 || t.ignoreFields.indexOf(a) === -1) && (o[a] = be(t.form[a]));
2024
+ (n === !0 || t.ignoreFields.indexOf(a) === -1) && (o[a] = ve(t.form[a]));
2010
2025
  }), o;
2011
2026
  } else
2012
2027
  return e(n).reduce((o, a) => (o[a] = s.getValue(a), o), {});
2013
2028
  },
2014
2029
  getValue(n) {
2015
2030
  const o = t.getFieldCtx(n);
2016
- return o ? be(o.rule.value) : t.options.appendValue !== !1 && E(t.appendData, n) ? be(t.appendData[n]) : void 0;
2031
+ return o ? ve(o.rule.value) : t.options.appendValue !== !1 && E(t.appendData, n) ? ve(t.appendData[n]) : void 0;
2017
2032
  },
2018
2033
  coverValue(n) {
2019
2034
  const o = v({}, n || {});
@@ -2023,7 +2038,7 @@ function Yr(t) {
2023
2038
  if (l) {
2024
2039
  const u = E(n, a);
2025
2040
  l.forEach((f) => {
2026
- f.rule.value = u ? n[a] : void 0;
2041
+ k(f.rule, "value", u ? n[a] : void 0);
2027
2042
  }), delete o[a];
2028
2043
  }
2029
2044
  }), C(t.appendData, o);
@@ -2036,7 +2051,7 @@ function Yr(t) {
2036
2051
  const l = t.fieldCtx[a];
2037
2052
  if (!l) return t.appendData[a] = o[a];
2038
2053
  l.forEach((u) => {
2039
- u.rule.value = o[a];
2054
+ k(u.rule, "value", o[a]);
2040
2055
  });
2041
2056
  });
2042
2057
  }, !0);
@@ -2100,7 +2115,7 @@ function Yr(t) {
2100
2115
  disabled(n, o) {
2101
2116
  e(o).forEach((a) => {
2102
2117
  t.getCtxs(a).forEach((l) => {
2103
- S(l.rule.props, "disabled", !!n);
2118
+ k(l.rule.props, "disabled", !!n);
2104
2119
  });
2105
2120
  }), t.refresh();
2106
2121
  },
@@ -2158,7 +2173,7 @@ function Yr(t) {
2158
2173
  t.$manager.updateOptions(t.options), s.refresh();
2159
2174
  },
2160
2175
  hideForm: (n) => {
2161
- S(t.vm, "isShow", !n);
2176
+ k(t.vm, "isShow", !n);
2162
2177
  },
2163
2178
  changeStatus: () => t.changeStatus,
2164
2179
  clearChangeStatus: () => {
@@ -2203,7 +2218,7 @@ function Yr(t) {
2203
2218
  },
2204
2219
  setEffect(n, o, a) {
2205
2220
  const l = t.getCtx(n);
2206
- 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));
2221
+ l && o && (o[0] === "$" && (o = o.substr(1)), E(l.rule, "$" + o) && k(l.rule, "$" + o, a), E(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2207
2222
  },
2208
2223
  clearEffectData(n, o) {
2209
2224
  const a = t.getCtx(n);
@@ -2223,11 +2238,11 @@ function Yr(t) {
2223
2238
  resetFields(n) {
2224
2239
  e(n).forEach((o) => {
2225
2240
  t.getCtxs(o).forEach((a) => {
2226
- t.$render.clearCache(a), a.rule.value = be(a.defaultValue);
2241
+ t.$render.clearCache(a), a.rule.value = ve(a.defaultValue);
2227
2242
  });
2228
- }), A(() => {
2229
- A(() => {
2230
- A(() => {
2243
+ }), V(() => {
2244
+ V(() => {
2245
+ V(() => {
2231
2246
  s.clearValidateState(n);
2232
2247
  });
2233
2248
  });
@@ -2243,7 +2258,7 @@ function Yr(t) {
2243
2258
  return O(() => s.method(n, o)(...a));
2244
2259
  },
2245
2260
  toJson(n) {
2246
- return ve(s.rule, n);
2261
+ return _e(s.rule, n);
2247
2262
  },
2248
2263
  trigger(n, o, ...a) {
2249
2264
  const l = s.el(n);
@@ -2266,9 +2281,9 @@ function Yr(t) {
2266
2281
  if (!l)
2267
2282
  return [];
2268
2283
  const u = [];
2269
- return ((d) => {
2270
- d && d.forEach((g) => {
2271
- typeof g == "object" && (g.field && u.push(g), u.push(...s.getChildrenRuleList(g)));
2284
+ return ((p) => {
2285
+ p && p.forEach((d) => {
2286
+ typeof d == "object" && (d.field && u.push(d), u.push(...s.getChildrenRuleList(d)));
2272
2287
  });
2273
2288
  })(a ? a.loadChildrenPending() : l.children), u;
2274
2289
  },
@@ -2284,13 +2299,13 @@ function Yr(t) {
2284
2299
  }
2285
2300
  },
2286
2301
  getChildrenFormData(n, o) {
2287
- return s.getChildrenRuleList(n).reduce((l, u) => ((u.ignore !== !0 || o === !0) && (l[u.field] = be(u.value)), l), {});
2302
+ return s.getChildrenRuleList(n).reduce((l, u) => ((u.ignore !== !0 || o === !0) && (l[u.field] = ve(u.value)), l), {});
2288
2303
  },
2289
2304
  setChildrenFormData(n, o, a) {
2290
2305
  const l = s.getChildrenRuleList(n);
2291
2306
  t.deferSyncValue(() => {
2292
2307
  l.forEach((u) => {
2293
- E(o, u.field) ? u.value = o[u.field] : a && (u.value = void 0);
2308
+ E(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2294
2309
  });
2295
2310
  });
2296
2311
  },
@@ -2302,9 +2317,9 @@ function Yr(t) {
2302
2317
  getGlobalData(n) {
2303
2318
  return new Promise((o, a) => {
2304
2319
  let l = s.options.globalData[n];
2305
- l || o(t.fc.loadData[n]), l.type === "fetch" ? s.fetch(l).then((u) => {
2320
+ l ? l.type === "fetch" ? s.fetch(l).then((u) => {
2306
2321
  o(u);
2307
- }).catch(a) : o(l.data);
2322
+ }).catch(a) : o(l.data) : o(t.fc.loadData[n]);
2308
2323
  });
2309
2324
  },
2310
2325
  renderRule(n, o, a) {
@@ -2340,12 +2355,12 @@ function Yr(t) {
2340
2355
  },
2341
2356
  watchFetch(n, o, a, l) {
2342
2357
  return t.fc.watchLoadData((u, f) => {
2343
- let d = G(n);
2344
- d = t.loadFetchVar(d, u), !(l && l(d, f) === !1) && t.beforeFetch(d).then(() => yt(d, t.fc.create.fetch, s).then((g) => {
2345
- O(() => d.onSuccess && d.onSuccess(g)), o && o(g, f);
2346
- }).catch((g) => {
2347
- O(() => d.onError && d.onError(g)), a && a(g);
2348
- })).catch((g) => {
2358
+ let p = G(n);
2359
+ p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((d) => {
2360
+ O(() => p.onSuccess && p.onSuccess(d)), o && o(d, f);
2361
+ }).catch((d) => {
2362
+ O(() => p.onError && p.onError(d)), a && a(d);
2363
+ })).catch((d) => {
2349
2364
  });
2350
2365
  }, n.wait == null ? 1e3 : n.wait);
2351
2366
  },
@@ -2375,7 +2390,7 @@ function Yr(t) {
2375
2390
  };
2376
2391
  }), s.changeValue = s.changeField = s.setValue, s;
2377
2392
  }
2378
- function xr(t) {
2393
+ function ti(t) {
2379
2394
  C(t.prototype, {
2380
2395
  initCache() {
2381
2396
  this.clearCacheAll();
@@ -2411,12 +2426,12 @@ function q(t) {
2411
2426
  const e = t.replace(/(-[a-z])/g, function(r) {
2412
2427
  return r.replace("-", "").toLocaleUpperCase();
2413
2428
  });
2414
- return Gt(e);
2429
+ return Ht(e);
2415
2430
  }
2416
- function Gt(t) {
2431
+ function Ht(t) {
2417
2432
  return t.replace(t[0], t[0].toLowerCase());
2418
2433
  }
2419
- function ei(t) {
2434
+ function ri(t) {
2420
2435
  C(t.prototype, {
2421
2436
  initRender() {
2422
2437
  this.cacheConfig = {};
@@ -2425,7 +2440,7 @@ function ei(t) {
2425
2440
  const r = (i) => {
2426
2441
  if (i) {
2427
2442
  let s;
2428
- 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);
2443
+ 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);
2429
2444
  }
2430
2445
  };
2431
2446
  return r(this.vm);
@@ -2445,7 +2460,7 @@ function ei(t) {
2445
2460
  })) : e.setSlot(r.rule.slot, this.renderCtx(r, i));
2446
2461
  },
2447
2462
  mergeGlobal(e) {
2448
- this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ge(() => {
2463
+ this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ye(() => {
2449
2464
  const i = this.$handle.options.global;
2450
2465
  return x({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2451
2466
  })), e.prop = x({}, [this.cacheConfig[e.trueType].value, e.prop]));
@@ -2497,8 +2512,8 @@ function ei(t) {
2497
2512
  };
2498
2513
  l.length && i.slotUpdate && O(() => i.slotUpdate(u));
2499
2514
  let f = [];
2500
- const d = e.loadChildrenPending();
2501
- e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach((y) => {
2515
+ const p = e.loadChildrenPending();
2516
+ e.parser.renderChildren ? f = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(p, e)), Object.keys(n.renderSlots || {}).forEach((y) => {
2502
2517
  f.push(this.renderRule({
2503
2518
  type: "template",
2504
2519
  slot: y
@@ -2509,9 +2524,9 @@ function ei(t) {
2509
2524
  return this.renderRule(_);
2510
2525
  })()));
2511
2526
  });
2512
- const g = this.getTypeSlot(e);
2513
- let m;
2514
- return g ? (u.children = f, m = g(u)) : m = a ? e.parser.preview(We(f), e) : e.parser.render(We(f), e), m = this.renderSides(m, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((y) => !y || !y.tag ? y : this.none(y)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2527
+ const d = this.getTypeSlot(e);
2528
+ let g;
2529
+ return d ? (u.children = f, g = d(u)) : g = a ? e.parser.preview(We(f), e) : e.parser.render(We(f), e), g = this.renderSides(g, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), g = this.$manager.makeWrap(e, g)), e.none && (Array.isArray(g) ? g = g.map((y) => !y || !y.tag ? y : this.none(y)) : g = this.none(g)), o && this.setCache(e, () => this.stable(g), r), g;
2515
2530
  }, this.setCache(e, s, r);
2516
2531
  }
2517
2532
  return (...s) => {
@@ -2592,7 +2607,7 @@ function ei(t) {
2592
2607
  if (l.indexOf("native.") === 0)
2593
2608
  o[l.replace("native.", "")] = n[l], delete n[l];
2594
2609
  else if (this.$handle.options.transformEventName !== !1) {
2595
- const u = $e(l);
2610
+ const u = be(l);
2596
2611
  u !== l.toLowerCase() && !n[u] && (n[u] = n[l]);
2597
2612
  }
2598
2613
  }), e.prop.on = n;
@@ -2657,7 +2672,7 @@ function ei(t) {
2657
2672
  }) : n);
2658
2673
  if (n.__fc__)
2659
2674
  return this.renderSlot(s, n.__fc__, r);
2660
- n.type && A(() => {
2675
+ n.type && V(() => {
2661
2676
  this.$handle.loadChildren(e, r), this.$handle.refresh();
2662
2677
  });
2663
2678
  }
@@ -2665,7 +2680,7 @@ function ei(t) {
2665
2680
  },
2666
2681
  defaultRender(e, r) {
2667
2682
  const i = e.prop;
2668
- 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(Gt(i.type), i, r);
2683
+ 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);
2669
2684
  },
2670
2685
  createChildrenVnodes(e, r, i) {
2671
2686
  this.force = i !== !1, this.tmpInput = r;
@@ -2698,7 +2713,7 @@ function ei(t) {
2698
2713
  }
2699
2714
  });
2700
2715
  }
2701
- let ti = 1;
2716
+ let ii = 1;
2702
2717
  function it(t) {
2703
2718
  C(this, {
2704
2719
  $handle: t,
@@ -2708,7 +2723,7 @@ function it(t) {
2708
2723
  vNode: new t.fc.CreateNode(t.vm),
2709
2724
  force: !1,
2710
2725
  tmpInput: null,
2711
- id: ti++
2726
+ id: ii++
2712
2727
  }), Tt(this, {
2713
2728
  options() {
2714
2729
  return t.options;
@@ -2718,9 +2733,9 @@ function it(t) {
2718
2733
  }
2719
2734
  }), this.initCache(), this.initRender();
2720
2735
  }
2721
- xr(it);
2722
- ei(it);
2723
- function ri(t) {
2736
+ ti(it);
2737
+ ri(it);
2738
+ function ni(t) {
2724
2739
  C(t.prototype, {
2725
2740
  parseInjectEvent(e, r) {
2726
2741
  const i = e.inject || this.options.injectEvent;
@@ -2747,16 +2762,16 @@ function ri(t) {
2747
2762
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: l } = s, u = s[r ? "emit" : "nativeEmit"] || [];
2748
2763
  return h.trueArray(u) && u.forEach((f) => {
2749
2764
  if (!f) return;
2750
- let d, g = n || o || a;
2751
- if (h.Object(f) && (d = f.inject, f = f.name, g = f.prefix || g), g) {
2752
- r || (g = `native-${g}`);
2753
- const m = $e(`${g}-${f}`), y = (..._) => {
2754
- this.vm.$emit(m, ..._), this.vm.$emit("emit-event", m, ..._), this.bus.$emit(m, ..._);
2765
+ let p, d = n || o || a;
2766
+ if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2767
+ r || (d = `native-${d}`);
2768
+ const g = be(`${d}-${f}`), y = (..._) => {
2769
+ this.vm.$emit(g, ..._), this.vm.$emit("emit-event", g, ..._), this.bus.$emit(g, ..._);
2755
2770
  };
2756
- if (y.__emit = !0, !d && l === !1)
2771
+ if (y.__emit = !0, !p && l === !1)
2757
2772
  i[f] = y;
2758
2773
  else {
2759
- let _ = d || l || this.options.injectEvent;
2774
+ let _ = p || l || this.options.injectEvent;
2760
2775
  i[f] = h.Undef(_) ? y : this.inject(s, y, _);
2761
2776
  }
2762
2777
  }
@@ -2787,24 +2802,36 @@ function ri(t) {
2787
2802
  },
2788
2803
  loadStrVar(e, r, i) {
2789
2804
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2790
- const s = e, n = Wr(e);
2791
- let o;
2792
- if (n.forEach((a) => {
2793
- const l = a.split("||"), u = l[0].trim();
2794
- if (u) {
2795
- const f = (l[1] || "").trim();
2796
- let d, g = !1;
2797
- if (i && u.indexOf("$form.") === 0) {
2798
- const m = u.split(".");
2799
- m.shift(), E(i.value, m[0]) && (g = !0, d = r ? r({
2800
- id: "$form." + m[0] + "_" + i.rule.__fc__.id,
2801
- getValue: () => L(i.value, m)
2802
- }) : L(i.value, m));
2803
- }
2804
- g || (d = r ? r(u, f) : this.fc.getLoadData(u, f)), o = d, e = e.replaceAll(`{{${a}}}`, d == null ? "" : d);
2805
+ const s = e, n = Xr(e), o = (u) => {
2806
+ let f = !1, p;
2807
+ if (i && u.indexOf("$form.") === 0) {
2808
+ const d = u.split(".");
2809
+ d.shift(), E(i.value, d[0]) && (f = !0, p = r ? r({
2810
+ id: "$form." + d[0] + "_" + i.rule.__fc__.id,
2811
+ getValue: () => L(i.value, d)
2812
+ }) : L(i.value, d));
2813
+ }
2814
+ return f || (p = r ? r(u) : this.fc.getLoadData(u)), p;
2815
+ }, a = (u) => {
2816
+ const f = [];
2817
+ u.forEach((d) => {
2818
+ d.key ? f.push(d.key) : d.children && f.push(a(d.children));
2819
+ });
2820
+ let p = !1;
2821
+ return f.forEach((d, g) => {
2822
+ d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[g] = d.slice(1, -1), p = !0);
2823
+ }), f.length === 1 && (p || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2824
+ };
2825
+ let l;
2826
+ if (n.forEach((u) => {
2827
+ const f = u.split("||"), p = f[0].trim();
2828
+ if (p) {
2829
+ const d = (f[1] || "").trim(), g = Nt(p);
2830
+ let y = O(() => a(g));
2831
+ (y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2805
2832
  }
2806
2833
  }), n.length === 1 && s === `{{${n[0]}}}`)
2807
- return o;
2834
+ return l;
2808
2835
  }
2809
2836
  return e;
2810
2837
  },
@@ -2824,12 +2851,12 @@ function ri(t) {
2824
2851
  });
2825
2852
  }
2826
2853
  const $t = ["hook:updated", "hook:mounted"];
2827
- function ii(t) {
2854
+ function si(t) {
2828
2855
  C(t.prototype, {
2829
2856
  usePage() {
2830
2857
  const e = this.options.page;
2831
2858
  if (!e) return;
2832
- let r = 25, i = ni(this.rules);
2859
+ let r = 25, i = oi(this.rules);
2833
2860
  h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), C(this, {
2834
2861
  first: r,
2835
2862
  limit: i,
@@ -2844,10 +2871,10 @@ function ii(t) {
2844
2871
  }
2845
2872
  });
2846
2873
  }
2847
- function ni(t) {
2874
+ function oi(t) {
2848
2875
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2849
2876
  }
2850
- function si(t) {
2877
+ function ai(t) {
2851
2878
  C(t.prototype, {
2852
2879
  clearNextTick() {
2853
2880
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
@@ -2862,15 +2889,15 @@ function si(t) {
2862
2889
  }
2863
2890
  });
2864
2891
  }
2865
- function oi(t) {
2892
+ function li(t) {
2866
2893
  Object.defineProperties(t.origin, {
2867
- __fc__: Ze(me(t), !0)
2894
+ __fc__: Ze(ge(t), !0)
2868
2895
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2869
- __fc__: Ze(me(t), !0)
2896
+ __fc__: Ze(ge(t), !0)
2870
2897
  });
2871
2898
  }
2872
- function Ht(t, e, r) {
2873
- const i = Ve(), s = !!e.field;
2899
+ function zt(t, e, r) {
2900
+ const i = Pe(), s = !!e.field;
2874
2901
  C(this, {
2875
2902
  id: i,
2876
2903
  ref: i,
@@ -2897,9 +2924,9 @@ function Ht(t, e, r) {
2897
2924
  exportEl: void 0,
2898
2925
  defaultValue: s ? G(r) : void 0,
2899
2926
  field: e.field || void 0
2900
- }), this.updateKey(), oi(this), this.update(t, !0);
2927
+ }), this.updateKey(), li(this), this.update(t, !0);
2901
2928
  }
2902
- C(Ht.prototype, {
2929
+ C(zt.prototype, {
2903
2930
  getParentGroup() {
2904
2931
  let t = this.parent;
2905
2932
  for (; t; ) {
@@ -2936,8 +2963,8 @@ C(Ht.prototype, {
2936
2963
  rule: this.rule,
2937
2964
  api: this.$api,
2938
2965
  update: (u) => {
2939
- const f = u || i, d = this.getPending(e, i);
2940
- this.setPending(e, r, f), o && o(f, d);
2966
+ const f = u || i, p = this.getPending(e, i);
2967
+ this.setPending(e, r, f), o && o(f, p);
2941
2968
  },
2942
2969
  reload: () => {
2943
2970
  const u = this.getPending(e, i);
@@ -2969,7 +2996,7 @@ C(Ht.prototype, {
2969
2996
  t === void 0 ? this.payload = {} : delete this.payload[t];
2970
2997
  },
2971
2998
  updateKey(t) {
2972
- this.key = Ve(), t && this.parent && this.parent.updateKey(t);
2999
+ this.key = Pe(), t && this.parent && this.parent.updateKey(t);
2973
3000
  },
2974
3001
  updateType() {
2975
3002
  this.originType = this.rule.type, this.type = q(this.rule.type), this.trueType = this.$handle.getType(this.originType);
@@ -2985,6 +3012,9 @@ C(Ht.prototype, {
2985
3012
  initNone() {
2986
3013
  this.none = !(h.Undef(this.prop.display) || this.prop.display);
2987
3014
  },
3015
+ hasHidden() {
3016
+ return !!this.rule.hidden || (this.parent ? this.parent.hasHidden() : !1);
3017
+ },
2988
3018
  injectValidate() {
2989
3019
  return this.prop.validate;
2990
3020
  },
@@ -3046,11 +3076,11 @@ C(Ht.prototype, {
3046
3076
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
3047
3077
  }
3048
3078
  });
3049
- function ai(t) {
3079
+ function ui(t) {
3050
3080
  C(t.prototype, {
3051
3081
  nextRefresh(e) {
3052
3082
  const r = this.loadedId;
3053
- A(() => {
3083
+ V(() => {
3054
3084
  r === this.loadedId && (e ? e() : this.refresh());
3055
3085
  });
3056
3086
  },
@@ -3058,7 +3088,7 @@ function ai(t) {
3058
3088
  const r = ht(e);
3059
3089
  return Object.defineProperties(r, {
3060
3090
  __origin__: Ze(e, !0)
3061
- }), li(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3091
+ }), fi(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3062
3092
  i && this.loadFn(i, r);
3063
3093
  }), this.loadCtrl(r), r.update && (r.update = W(r.update)), r;
3064
3094
  },
@@ -3108,25 +3138,25 @@ function ai(t) {
3108
3138
  let l = ht(o);
3109
3139
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3110
3140
  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);
3111
- let f, d = !1, g = !!o.__fc__, m = l.value;
3112
- if (g) {
3113
- if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3141
+ let f, p = !1, d = !!o.__fc__, g = l.value;
3142
+ if (d) {
3143
+ if (f = o.__fc__, g = f.defaultValue, f.deleted) {
3114
3144
  if (bt(f))
3115
3145
  return;
3116
3146
  f.update(this);
3117
3147
  } else if (!f.check(this)) {
3118
3148
  if (bt(f))
3119
3149
  return;
3120
- e[a] = o = o._clone ? o._clone() : Pt(ve(o)), f = null, d = !0;
3150
+ e[a] = o = o._clone ? o._clone() : Pt(_e(o)), f = null, p = !0;
3121
3151
  }
3122
3152
  }
3123
3153
  if (f)
3124
3154
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3125
3155
  else {
3126
3156
  const D = this.parseRule(o);
3127
- f = new Ht(this, D, m), this.bindParser(f);
3157
+ f = new zt(this, D, g), this.bindParser(f);
3128
3158
  }
3129
- [!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");
3159
+ [!1, !0].forEach((D) => this.parseEmit(f, D)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !p && !d && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3130
3160
  const y = f.loadChildrenPending();
3131
3161
  if (f.parser.loadChildren === !1 || s(y, f), !r) {
3132
3162
  const D = i(a);
@@ -3143,16 +3173,16 @@ function ai(t) {
3143
3173
  return e.input && e.rule.control && this.useCtrl(e);
3144
3174
  },
3145
3175
  useCtrl(e) {
3146
- const r = ui(e), i = [], s = this.api;
3176
+ const r = ci(e), i = [], s = this.api;
3147
3177
  if (!r.length) return !1;
3148
3178
  for (let a = 0; a < r.length; a++) {
3149
- const l = r[a], u = l.handle || function(d) {
3150
- return (fe[l.condition || "=="] || fe["=="])(d, l.value);
3179
+ const l = r[a], u = l.handle || function(p) {
3180
+ return (ce[l.condition || "=="] || ce["=="])(p, l.value);
3151
3181
  };
3152
3182
  if (!h.trueArray(l.rule)) continue;
3153
3183
  const f = U(v({}, l), {
3154
3184
  valid: O(() => u(e.rule.value, s)),
3155
- ctrl: fi(e, l.rule),
3185
+ ctrl: hi(e, l.rule),
3156
3186
  isHidden: h.String(l.rule[0])
3157
3187
  });
3158
3188
  f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || i.push(f);
@@ -3161,13 +3191,13 @@ function ai(t) {
3161
3191
  const n = [];
3162
3192
  let o = !1;
3163
3193
  return this.deferSyncValue(() => {
3164
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: g, ctrl: m, method: y }) => {
3194
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: g, method: y }) => {
3165
3195
  if (a) {
3166
3196
  l ? e.ctrlRule.push({
3167
3197
  __ctrl: !0,
3168
3198
  children: u,
3169
3199
  valid: l
3170
- }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3200
+ }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3171
3201
  y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((_) => {
3172
3202
  this.api.setEffect(_, "required", l);
3173
3203
  }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
@@ -3183,17 +3213,17 @@ function ai(t) {
3183
3213
  children: u
3184
3214
  };
3185
3215
  e.ctrlRule.push(_), this.bus.$once("load-start", () => {
3186
- f ? s.prepend(_, f, g) : d || g ? s.append(_, d || e.id, g) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3216
+ f ? s.prepend(_, f, d) : p || d ? s.append(_, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3187
3217
  });
3188
3218
  } else {
3189
- e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3190
- const _ = Q(m);
3219
+ e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3220
+ const _ = Q(g);
3191
3221
  _ && _.rm();
3192
3222
  }
3193
3223
  });
3194
3224
  }), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
3195
3225
  n.forEach((a) => a());
3196
- }) : n.length && A(() => {
3226
+ }) : n.length && V(() => {
3197
3227
  n.forEach((a) => a());
3198
3228
  })), this.vm.$emit("control", e.origin, this.api), this.effect(e, "control"), o;
3199
3229
  },
@@ -3215,17 +3245,17 @@ function ai(t) {
3215
3245
  }
3216
3246
  });
3217
3247
  }
3218
- function li(t) {
3219
- const e = Nt();
3248
+ function fi(t) {
3249
+ const e = Mt();
3220
3250
  return Object.keys(e).forEach((r) => {
3221
- E(t, r) || S(t, r, e[r]);
3251
+ E(t, r) || k(t, r, e[r]);
3222
3252
  }), t;
3223
3253
  }
3224
- function ui(t) {
3254
+ function ci(t) {
3225
3255
  const e = t.rule.control || [];
3226
3256
  return h.Object(e) ? [e] : e;
3227
3257
  }
3228
- function fi(t, e) {
3258
+ function hi(t, e) {
3229
3259
  for (let r = 0; r < t.ctrlRule.length; r++) {
3230
3260
  const i = t.ctrlRule[r];
3231
3261
  if (i.children === e)
@@ -3235,16 +3265,16 @@ function fi(t, e) {
3235
3265
  function bt(t) {
3236
3266
  return !!t.rule.__ctrl;
3237
3267
  }
3238
- function ci(t) {
3268
+ function di(t) {
3239
3269
  C(t.prototype, {
3240
3270
  setValue(e, r, i, s) {
3241
3271
  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, {
3242
3272
  rule: e.origin,
3243
3273
  api: this.api,
3244
3274
  setFlag: s || !1
3245
- }), s && A(() => {
3246
- A(() => {
3247
- A(() => {
3275
+ }), s && V(() => {
3276
+ V(() => {
3277
+ V(() => {
3248
3278
  this.api.clearValidateState(e.id);
3249
3279
  });
3250
3280
  });
@@ -3268,7 +3298,7 @@ function ci(t) {
3268
3298
  setFormData(e, r) {
3269
3299
  e.modelValue = r;
3270
3300
  const i = e.getParentGroup();
3271
- 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);
3301
+ i && (this.subRuleData[i.id] || k(this.subRuleData, i.id, {}), k(this.subRuleData[i.id], e.field, e.rule.value)), k(this.formData, e.id, r);
3272
3302
  },
3273
3303
  rmSubRuleData(e) {
3274
3304
  const r = e.getParentGroup();
@@ -3279,13 +3309,13 @@ function ci(t) {
3279
3309
  },
3280
3310
  syncForm() {
3281
3311
  const e = {}, r = this.fields(), i = [];
3282
- this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = je(this.appendData, n)), s), e), r.reduce((s, n) => {
3283
- const o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a.rule))[0] || this.fieldCtx[n][0];
3284
- return this.isIgnore(o.rule) && i.push(n), s[n] = je(o.rule, "value"), s;
3312
+ 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) => {
3313
+ let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
3314
+ return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = Ae(o.rule, "value"), s;
3285
3315
  }, e), this.form = ie(e), this.ignoreFields = i, this.syncValue();
3286
3316
  },
3287
3317
  isIgnore(e) {
3288
- return e.ignore === !0 || e.ignore === "hidden" && e.hidden || this.options.ignoreHiddenFields && e.hidden;
3318
+ return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
3289
3319
  },
3290
3320
  appendValue(e) {
3291
3321
  (!e.field || !E(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
@@ -3341,7 +3371,7 @@ function ci(t) {
3341
3371
  function vt(t, e) {
3342
3372
  return typeof e == "function" ? "" + e : e;
3343
3373
  }
3344
- const De = {
3374
+ const je = {
3345
3375
  init(t) {
3346
3376
  },
3347
3377
  toFormValue(t, e) {
@@ -3360,8 +3390,8 @@ const De = {
3360
3390
  },
3361
3391
  mergeProp(t) {
3362
3392
  }
3363
- }, hi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], ke = Symbol("oldValue");
3364
- function di(t) {
3393
+ }, pi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Re = Symbol("oldValue");
3394
+ function mi(t) {
3365
3395
  C(t.prototype, {
3366
3396
  getCtx(e) {
3367
3397
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
@@ -3396,7 +3426,7 @@ function di(t) {
3396
3426
  if (n)
3397
3427
  return n;
3398
3428
  }
3399
- return r[e.originType] || r[q(e.type)] || r[e.trueType] || De;
3429
+ return r[e.originType] || r[q(e.type)] || r[e.trueType] || je;
3400
3430
  },
3401
3431
  bindParser(e) {
3402
3432
  e.setParser(this.getParser(e));
@@ -3409,8 +3439,8 @@ function di(t) {
3409
3439
  this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
3410
3440
  },
3411
3441
  watchCtx(e) {
3412
- if (At().filter((i) => i[0] !== "_" && i[0] !== "$" && hi.indexOf(i) === -1).forEach((i) => {
3413
- const s = je(e.rule, i), n = i === "children";
3442
+ if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && pi.indexOf(i) === -1).forEach((i) => {
3443
+ const s = Ae(e.rule, i), n = i === "children";
3414
3444
  e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3415
3445
  let l = s.value;
3416
3446
  if (!this.isBreakWatch()) {
@@ -3418,9 +3448,9 @@ function di(t) {
3418
3448
  this.$render.clearCache(e), this.nextRefresh();
3419
3449
  return;
3420
3450
  }
3421
- if (this.watching = !0, A(() => {
3451
+ if (this.watching = !0, V(() => {
3422
3452
  this.targetHook(e, "watch", { key: i, oldValue: a, newValue: l });
3423
- }), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(), A(() => {
3453
+ }), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(), V(() => {
3424
3454
  this.targetHook(e, "hidden", { value: l });
3425
3455
  })), i === "ignore" && e.input || i === "hidden" && e.input && (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields))
3426
3456
  this.syncForm();
@@ -3431,21 +3461,21 @@ function di(t) {
3431
3461
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3432
3462
  }
3433
3463
  }, { deep: !n, sync: n }));
3434
- }), e.refRule.__$title = ge(() => {
3464
+ }), e.refRule.__$title = ye(() => {
3435
3465
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3436
3466
  if (i) {
3437
3467
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3438
3468
  s && (i = this.api.t(s[1]));
3439
3469
  }
3440
3470
  return i;
3441
- }), e.refRule.__$info = ge(() => {
3471
+ }), e.refRule.__$info = ye(() => {
3442
3472
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3443
3473
  if (i) {
3444
3474
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3445
3475
  s && (i = this.api.t(s[1]));
3446
3476
  }
3447
3477
  return i;
3448
- }), e.refRule.__$validate = ge(() => {
3478
+ }), e.refRule.__$validate = ye(() => {
3449
3479
  const i = (s) => {
3450
3480
  var o, a;
3451
3481
  const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
@@ -3477,7 +3507,7 @@ function di(t) {
3477
3507
  return n;
3478
3508
  });
3479
3509
  }), e.input) {
3480
- const i = je(e.rule, "value");
3510
+ const i = Ae(e.rule, "value");
3481
3511
  e.watch.push(B(() => i.value, () => {
3482
3512
  let s = e.parser.toFormValue(i.value, e);
3483
3513
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3486,16 +3516,16 @@ function di(t) {
3486
3516
  this.bus.$once("load-end", () => {
3487
3517
  let i = e.rule.computed;
3488
3518
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3489
- const n = ge(() => {
3519
+ const n = ye(() => {
3490
3520
  const a = i[s];
3491
3521
  if (!a) return;
3492
3522
  const l = this.compute(e, a);
3493
- return a.linkage && l === ke ? ke : l;
3523
+ return a.linkage && l === Re ? Re : l;
3494
3524
  }), o = (a) => {
3495
3525
  s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : se(e.rule, s, a);
3496
3526
  };
3497
3527
  (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) => {
3498
- a === ke || a === l || setTimeout(() => {
3528
+ a === Re || a === l || setTimeout(() => {
3499
3529
  o(a);
3500
3530
  });
3501
3531
  }, { deep: !0 }));
@@ -3624,23 +3654,23 @@ function di(t) {
3624
3654
  const l = a.mode === "OR";
3625
3655
  let u = !0;
3626
3656
  for (let f = 0; f < a.group.length; f++) {
3627
- const d = a.group[f];
3628
- let g, m = null;
3629
- if (d.variable)
3630
- m = JSON.stringify(this.fc.getLoadData(d.variable) || "");
3631
- else if (d.field)
3632
- m = pt(d.field || "");
3633
- else if (!d.mode)
3657
+ const p = a.group[f];
3658
+ let d, g = null;
3659
+ if (p.variable)
3660
+ g = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3661
+ else if (p.field)
3662
+ g = pt(p.field || "");
3663
+ else if (!p.mode)
3634
3664
  return !0;
3635
- let y = d.compare;
3636
- if (y && (y = pt(y || "")), 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}, ${y || "$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)
3665
+ let y = p.compare;
3666
+ if (y && (y = pt(y || "")), p.mode ? d = n(p) : ce[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${g}, ${y || "$val"}); }}}}`).call(this.api.form, ce, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
3637
3667
  return !0;
3638
- l || (u = u && g);
3668
+ l || (u = u && d);
3639
3669
  }
3640
3670
  return l ? !1 : u;
3641
3671
  };
3642
3672
  let o = n(r);
3643
- return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : ke : o;
3673
+ return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : Re : o;
3644
3674
  } else if (h.Function(r))
3645
3675
  i = () => r(this.api.form, this.api);
3646
3676
  else {
@@ -3681,7 +3711,7 @@ function di(t) {
3681
3711
  if (!this.reloading) {
3682
3712
  if (e.parser.loadChildren !== !1) {
3683
3713
  const l = e.getPending("children", e.rule.children);
3684
- h.trueArray(l) && l.forEach((u) => u.__fc__ && this.rmCtx(u.__fc__));
3714
+ h.trueArray(l) && l.forEach((u) => u && u.__fc__ && this.rmCtx(u.__fc__));
3685
3715
  }
3686
3716
  e.root === this.rules && this.vm.renderRule();
3687
3717
  }
@@ -3691,7 +3721,7 @@ function di(t) {
3691
3721
  }
3692
3722
  });
3693
3723
  }
3694
- function pi(t) {
3724
+ function gi(t) {
3695
3725
  C(t.prototype, {
3696
3726
  mounted() {
3697
3727
  const e = () => {
@@ -3711,21 +3741,35 @@ function pi(t) {
3711
3741
  this.bus.$emit(e, ...r);
3712
3742
  },
3713
3743
  targetHook(e, r, i) {
3714
- var n, o;
3715
- let s = (o = (n = e.prop) == null ? void 0 : n.hook) == null ? void 0 : o[r];
3716
- s && (s = Array.isArray(s) ? s : [s], s.forEach((a) => {
3717
- O(() => a(U(v({}, i || {}), { self: e.rule, rule: e.rule, $f: this.api, api: this.api, option: this.vm.$props.option })));
3718
- }));
3744
+ var l, u, f, p;
3745
+ let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, g) => {
3746
+ d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
3747
+ O(() => y(U(v({}, i || {}), {
3748
+ self: e.rule,
3749
+ rule: e.rule,
3750
+ parent: g == null ? void 0 : g.rule,
3751
+ $f: this.api,
3752
+ api: this.api,
3753
+ option: this.vm.$props.option
3754
+ })));
3755
+ }));
3756
+ };
3757
+ n(s);
3758
+ let o = "deep" + qr(r), a = e.parent;
3759
+ for (; a; ) {
3760
+ let d = (p = (f = a.prop) == null ? void 0 : f.hook) == null ? void 0 : p[o];
3761
+ n(d, a), a = a.parent;
3762
+ }
3719
3763
  }
3720
3764
  });
3721
3765
  }
3722
- function mi(t) {
3766
+ function yi(t) {
3723
3767
  C(t.prototype, {
3724
3768
  useProvider() {
3725
3769
  const e = this.fc.providers;
3726
3770
  Object.keys(e).forEach((r) => {
3727
3771
  let i = e[r];
3728
- h.Function(i) && (i = i(this.fc)), i._c = yi(i), this.onEffect(i), this.providers[r] = i;
3772
+ h.Function(i) && (i = i(this.fc)), i._c = bi(i), this.onEffect(i), this.providers[r] = i;
3729
3773
  });
3730
3774
  },
3731
3775
  onEffect(e) {
@@ -3782,28 +3826,28 @@ function mi(t) {
3782
3826
  Object.keys(l).forEach((u) => {
3783
3827
  const f = this.providers[u];
3784
3828
  if (!f || f.input && !i) return;
3785
- let d;
3829
+ let p;
3786
3830
  if (!f._c)
3787
- d = "*";
3831
+ p = "*";
3788
3832
  else if (f._used.indexOf(s) > -1)
3789
- d = s;
3833
+ p = s;
3790
3834
  else
3791
3835
  return;
3792
- const g = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3793
- e && (g.getProp = () => e.effectData(u), g.clearProp = () => e.clearEffectData(u), g.mergeProp = (m) => x(g.getProp(), [m]), g.id = e.id), this.bus.$emit(`p:${u}:${d}:${f.input ? 1 : 0}`, o, [g, r, this.api]);
3836
+ const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3837
+ e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (g) => x(d.getProp(), [g]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3794
3838
  });
3795
3839
  }
3796
3840
  });
3797
3841
  }
3798
- function gi(t) {
3842
+ function $i(t) {
3799
3843
  return t.filter(function(e, r, i) {
3800
3844
  return i.indexOf(e, 0) === r;
3801
3845
  });
3802
3846
  }
3803
- function yi(t) {
3847
+ function bi(t) {
3804
3848
  const e = t.components;
3805
3849
  if (Array.isArray(e)) {
3806
- const r = gi(e.filter((i) => i !== "*"));
3850
+ const r = $i(e.filter((i) => i !== "*"));
3807
3851
  return r.length ? r : !1;
3808
3852
  } else return h.String(e) ? [e] : !1;
3809
3853
  }
@@ -3845,7 +3889,7 @@ function K(t) {
3845
3889
  }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
3846
3890
  const i = O(() => r(e, this));
3847
3891
  return i && i !== e && C(e, i), e;
3848
- }, Yr(this));
3892
+ }, ei(this));
3849
3893
  }
3850
3894
  C(K.prototype, {
3851
3895
  initData(t) {
@@ -3885,26 +3929,26 @@ C(K.prototype, {
3885
3929
  });
3886
3930
  }
3887
3931
  });
3888
- ri(K);
3889
- ii(K);
3932
+ ni(K);
3890
3933
  si(K);
3891
3934
  ai(K);
3892
- ci(K);
3935
+ ui(K);
3893
3936
  di(K);
3894
- pi(K);
3895
3937
  mi(K);
3896
- const $i = "fcFragment", Me = {
3897
- name: $i,
3938
+ gi(K);
3939
+ yi(K);
3940
+ const vi = "fcFragment", Me = {
3941
+ name: vi,
3898
3942
  functional: !0,
3899
3943
  props: ["vnode"],
3900
3944
  render(t, e) {
3901
3945
  return e.props.vnode ? e.props.vnode : e.children;
3902
3946
  }
3903
3947
  };
3904
- function bi(t) {
3948
+ function _i(t) {
3905
3949
  return h.String(t) ? { domProps: { innerHTML: t } } : t;
3906
3950
  }
3907
- function vi() {
3951
+ function Ci() {
3908
3952
  const t = {};
3909
3953
  function e(r) {
3910
3954
  r && this.setVm(r);
@@ -3915,11 +3959,11 @@ function vi() {
3915
3959
  },
3916
3960
  make(r, i, s) {
3917
3961
  var n, o, a;
3918
- 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);
3962
+ 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);
3919
3963
  },
3920
3964
  makeComponent(r, i, s) {
3921
3965
  var o;
3922
- let n = this.$h(r, bi(i), s || []);
3966
+ let n = this.$h(r, _i(i), s || []);
3923
3967
  if ((o = n == null ? void 0 : n.componentOptions) != null && o.propsData && (i != null && i.props)) {
3924
3968
  const a = Object.keys(n.componentOptions.propsData);
3925
3969
  n.data.attrs || (n.data.attrs = {}), Object.keys(i.props).forEach((l) => {
@@ -3936,7 +3980,7 @@ function vi() {
3936
3980
  },
3937
3981
  use(r) {
3938
3982
  Object.keys(r).forEach((i) => {
3939
- const s = $e(i), n = Gr(i).toLocaleLowerCase(), o = r[i];
3983
+ const s = be(i), n = zr(i).toLocaleLowerCase(), o = r[i];
3940
3984
  [i, s, n].forEach((a) => {
3941
3985
  e.alias(i, o), e.prototype[a] = function(l, u) {
3942
3986
  return this.make(o, l, u);
@@ -3946,12 +3990,12 @@ function vi() {
3946
3990
  }
3947
3991
  }), e;
3948
3992
  }
3949
- function _i(t) {
3950
- class e extends zt {
3993
+ function wi(t) {
3994
+ class e extends Jt {
3951
3995
  }
3952
3996
  return Object.assign(e.prototype, t), e;
3953
3997
  }
3954
- function zt(t) {
3998
+ function Jt(t) {
3955
3999
  C(this, {
3956
4000
  $handle: t,
3957
4001
  vm: t.vm,
@@ -3962,12 +4006,12 @@ function zt(t) {
3962
4006
  }
3963
4007
  }), this.updateKey(), this.init();
3964
4008
  }
3965
- C(zt.prototype, {
4009
+ C(Jt.prototype, {
3966
4010
  __init() {
3967
4011
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
3968
4012
  },
3969
4013
  updateKey() {
3970
- this.key = Ve();
4014
+ this.key = Pe();
3971
4015
  },
3972
4016
  //TODO interface
3973
4017
  init() {
@@ -4010,24 +4054,24 @@ C(zt.prototype, {
4010
4054
  render(t) {
4011
4055
  }
4012
4056
  });
4013
- const Ci = function(t) {
4057
+ const Oi = function(t) {
4014
4058
  const e = {
4015
4059
  name: "loadData",
4016
4060
  _fn: [],
4017
4061
  loaded(r, i, s) {
4018
- this.deleted(r), A(() => {
4062
+ this.deleted(r), V(() => {
4019
4063
  let n = H(r.getValue());
4020
4064
  const o = [];
4021
4065
  n.forEach((a) => {
4022
4066
  if (a && (a.attr || a.template)) {
4023
- let l = (d) => {
4067
+ let l = (p) => {
4068
+ let d;
4069
+ i && i.__fc__ && (d = i.__fc__.getParentGroup());
4024
4070
  let g;
4025
- i && i.__fc__ && (g = i.__fc__.getParentGroup());
4026
- let m;
4027
- a.template ? m = t.$handle.loadStrVar(a.template, d, g ? { rule: i, value: t.$handle.subRuleData[g.id] || {} } : null) : a.handler && h.Function(a.handler) ? m = a.handler(d, i, s) : m = t.$handle.loadStrVar(`{{${a.attr}}}`, d, g ? { rule: i, value: t.$handle.subRuleData[g.id] || {} } : null), (m == null || m === "") && a.default != null && (m = a.default), a.copy !== !1 && (m = G(m));
4071
+ a.template ? g = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? g = a.handler(p, i, s) : g = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (g == null || g === "") && a.default != null && (g = a.default), a.copy !== !1 && (g = G(g));
4028
4072
  const y = a.modify ? i : r.getProp();
4029
- a.to === "child" ? y.children ? S(y.children, 0, m) : S(y, "children", [m]) : se(y, a.to || "options", m), s.sync(i);
4030
- }, u = (d) => l(d);
4073
+ a.to === "child" ? y.children ? k(y.children, 0, g) : k(y, "children", [g]) : se(y, a.to || "options", g), s.sync(i);
4074
+ }, u = (p) => l(p);
4031
4075
  const f = t.watchLoadData(u);
4032
4076
  l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
4033
4077
  }
@@ -4041,7 +4085,7 @@ const Ci = function(t) {
4041
4085
  }
4042
4086
  };
4043
4087
  return e.watch = e.loaded, e;
4044
- }, wi = function(t) {
4088
+ }, ki = function(t) {
4045
4089
  const e = {
4046
4090
  name: "t",
4047
4091
  _fn: [],
@@ -4053,13 +4097,13 @@ const Ci = function(t) {
4053
4097
  const l = n[a];
4054
4098
  if (l) {
4055
4099
  const u = typeof l == "object";
4056
- let f = (m) => {
4057
- let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4100
+ let f = (g) => {
4101
+ let y = t.t(u ? l.attr : l, u ? l.params : null, g);
4058
4102
  const _ = u && l.modify ? i : r.getProp();
4059
- a === "child" ? _.children ? S(_.children, 0, y) : S(_, "children", [y]) : se(_, a, y), s.sync(i);
4060
- }, d = (m) => f(m);
4061
- const g = t.watchLoadData(d);
4062
- f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(g) : g();
4103
+ a === "child" ? _.children ? k(_.children, 0, y) : k(_, "children", [y]) : se(_, a, y), s.sync(i);
4104
+ }, p = (g) => f(g);
4105
+ const d = t.watchLoadData(p);
4106
+ f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4063
4107
  }
4064
4108
  }), this._fn[r.id] = o;
4065
4109
  },
@@ -4070,7 +4114,7 @@ const Ci = function(t) {
4070
4114
  }
4071
4115
  };
4072
4116
  return e.watch = e.loaded, e;
4073
- }, Jt = {
4117
+ }, Wt = {
4074
4118
  name: "componentValidate",
4075
4119
  load(t, e, r) {
4076
4120
  let i = t.getValue();
@@ -4093,9 +4137,9 @@ const Ci = function(t) {
4093
4137
  }
4094
4138
  },
4095
4139
  watch(...t) {
4096
- Jt.load(...t);
4140
+ Wt.load(...t);
4097
4141
  }
4098
- }, Oi = function(t) {
4142
+ }, Fi = function(t) {
4099
4143
  function e(s) {
4100
4144
  return h.String(s) && (s = {
4101
4145
  action: s,
@@ -4105,48 +4149,48 @@ const Ci = function(t) {
4105
4149
  function r(s, n, o) {
4106
4150
  let a = s.value;
4107
4151
  i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
4108
- const l = (d) => {
4109
- d === void 0 ? s.clearProp() : se(s.getProp(), a.to || "options", d), o.sync(n);
4152
+ const l = (p) => {
4153
+ p === void 0 ? s.clearProp() : se(s.getProp(), a.to || "options", p), o.sync(n);
4110
4154
  };
4111
4155
  if (!a || !a.action && !a.key) {
4112
4156
  l(void 0);
4113
4157
  return;
4114
4158
  }
4115
4159
  if (a = G(a), a.to || (a.to = "options"), a.key) {
4116
- const d = t.$handle.options.globalData[a.key];
4117
- if (!d) {
4160
+ const p = t.$handle.options.globalData[a.key];
4161
+ if (!p) {
4118
4162
  l(void 0);
4119
4163
  return;
4120
4164
  }
4121
- if (d.type === "static") {
4122
- l(d.data);
4165
+ if (p.type === "static") {
4166
+ l(p.data);
4123
4167
  return;
4124
4168
  } else
4125
- a = v(v({}, a), d);
4169
+ a = v(v({}, a), p);
4126
4170
  }
4127
4171
  const u = a.onError, f = () => {
4128
4172
  if (!s.getValue())
4129
4173
  return s.clearProp(), o.sync(n), !0;
4130
4174
  };
4131
- i._fn[s.id] = t.watchLoadData(ne((d, g) => {
4132
- if (g && a.watch === !1)
4175
+ i._fn[s.id] = t.watchLoadData(ne((p, d) => {
4176
+ if (d && a.watch === !1)
4133
4177
  return i._fn[s.id]();
4134
- const m = t.$handle.loadFetchVar(G(a), d, n), y = U(v({
4178
+ const g = t.$handle.loadFetchVar(G(a), p, n), y = U(v({
4135
4179
  headers: {}
4136
- }, m), {
4180
+ }, g), {
4137
4181
  onSuccess(_, D) {
4138
4182
  if (f()) return;
4139
4183
  let ee = (T) => D ? T : E(T, "data") ? T.data : T;
4140
- const P = W(m.parse);
4141
- h.Function(P) ? ee = P : P && h.String(P) && (ee = (T) => L(T, P)), l(ee(_, n, o));
4184
+ const I = W(g.parse);
4185
+ h.Function(I) ? ee = I : I && h.String(I) && (ee = (T) => L(T, I)), l(ee(_, n, o));
4142
4186
  },
4143
4187
  onError(_) {
4144
- l(void 0), !f() && (u || ((D) => tt(D.message || "fetch fail " + m.action)))(_, n, o);
4188
+ l(void 0), !f() && (u || ((D) => tt(D.message || "fetch fail " + g.action)))(_, n, o);
4145
4189
  }
4146
4190
  });
4147
4191
  t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4148
- if (h.Function(m.action)) {
4149
- m.action(n, o).then((_) => {
4192
+ if (h.Function(g.action)) {
4193
+ g.action(n, o).then((_) => {
4150
4194
  y.onSuccess(_, !0);
4151
4195
  }).catch((_) => {
4152
4196
  y.onError(_);
@@ -4172,13 +4216,13 @@ const Ci = function(t) {
4172
4216
  }
4173
4217
  };
4174
4218
  return i;
4175
- }, Fi = {
4176
- fetch: Oi,
4177
- loadData: Ci,
4178
- t: wi,
4179
- componentValidate: Jt
4219
+ }, Si = {
4220
+ fetch: Fi,
4221
+ loadData: Oi,
4222
+ t: ki,
4223
+ componentValidate: Wt
4180
4224
  };
4181
- function Si(t) {
4225
+ function Ri(t) {
4182
4226
  t = t || /* @__PURE__ */ new Map();
4183
4227
  const e = {
4184
4228
  $on(r, i) {
@@ -4202,8 +4246,8 @@ function Si(t) {
4202
4246
  };
4203
4247
  return e;
4204
4248
  }
4205
- const ki = "html", Ri = {
4206
- name: ki,
4249
+ const Ei = "html", Di = {
4250
+ name: Ei,
4207
4251
  loadChildren: !1,
4208
4252
  render(t, e) {
4209
4253
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
@@ -4212,7 +4256,7 @@ const ki = "html", Ri = {
4212
4256
  return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
4213
4257
  }
4214
4258
  };
4215
- function Ei(t) {
4259
+ function ji(t) {
4216
4260
  t = t + "=";
4217
4261
  const r = decodeURIComponent(document.cookie).split(";");
4218
4262
  for (let i = 0; i < r.length; i++) {
@@ -4230,7 +4274,7 @@ function Ei(t) {
4230
4274
  }
4231
4275
  return null;
4232
4276
  }
4233
- function Di(t) {
4277
+ function Ai(t) {
4234
4278
  const e = localStorage.getItem(t);
4235
4279
  if (e)
4236
4280
  try {
@@ -4240,7 +4284,7 @@ function Di(t) {
4240
4284
  }
4241
4285
  return null;
4242
4286
  }
4243
- function ji(t) {
4287
+ function Ii(t) {
4244
4288
  const e = sessionStorage.getItem(t);
4245
4289
  if (e)
4246
4290
  try {
@@ -4257,16 +4301,16 @@ function nt(t, e) {
4257
4301
  let i = t(r.shift());
4258
4302
  return r.length ? i == null ? null : L(i, r) : i;
4259
4303
  }
4260
- function Ii(t) {
4261
- return nt(Ei, t);
4262
- }
4263
- function Ai(t) {
4264
- return nt(Di, t);
4265
- }
4266
4304
  function Vi(t) {
4267
4305
  return nt(ji, t);
4268
4306
  }
4269
- const Pi = {
4307
+ function Pi(t) {
4308
+ return nt(Ai, t);
4309
+ }
4310
+ function Li(t) {
4311
+ return nt(Ii, t);
4312
+ }
4313
+ const Bi = {
4270
4314
  en: {
4271
4315
  required: "{title} is required",
4272
4316
  validate: {
@@ -4316,17 +4360,17 @@ const Pi = {
4316
4360
  }
4317
4361
  }
4318
4362
  };
4319
- function Li(t, e) {
4363
+ function Ti(t, e) {
4320
4364
  let r;
4321
4365
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4322
4366
  }
4323
4367
  function Ue() {
4324
- return Li("name", ...arguments);
4368
+ return Ti("name", ...arguments);
4325
4369
  }
4326
- function Bi(t) {
4370
+ function Ni(t) {
4327
4371
  return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
4328
4372
  }
4329
- function Ti(t, e) {
4373
+ function Mi(t, e) {
4330
4374
  const r = new Vue({
4331
4375
  data() {
4332
4376
  return { rule: t, option: e || {} };
@@ -4337,81 +4381,81 @@ function Ti(t, e) {
4337
4381
  });
4338
4382
  return r.$mount(), r;
4339
4383
  }
4340
- function Ni(t) {
4384
+ function Ui(t) {
4341
4385
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4342
- It.push(...e), xe.push(...r), et.push(...i), Mt([...e, ...r, ...i]);
4386
+ At.push(...e), xe.push(...r), et.push(...i), Ut([...e, ...r, ...i]);
4343
4387
  }
4344
- let Mi = 1;
4345
- const M = {}, Re = Symbol("defValue");
4346
- function Wt(t) {
4388
+ let qi = 1;
4389
+ const M = {}, Ee = Symbol("defValue");
4390
+ function Kt(t) {
4347
4391
  const e = {
4348
4392
  [Me.name]: Me
4349
4393
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4350
4394
  t.extendApi
4351
- ], u = v({}, Fi), f = Zr();
4352
- let d = { global: {} };
4353
- const g = t.isMobile === !0, m = ie({
4354
- $mobile: g
4355
- }), y = vi(), _ = {}, D = {};
4356
- Ni(t.attrs || {});
4395
+ ], u = v({}, Si), f = Yr();
4396
+ let p = { global: {} };
4397
+ const d = t.isMobile === !0, g = ie({
4398
+ $mobile: d
4399
+ }), y = Ci(), _ = {}, D = {};
4400
+ Ui(t.attrs || {});
4357
4401
  function ee(c) {
4358
- const p = M[c];
4359
- if (Array.isArray(p))
4360
- return p.map(($) => $.api());
4361
- if (p)
4362
- return p.api();
4402
+ const m = M[c];
4403
+ if (Array.isArray(m))
4404
+ return m.map(($) => $.api());
4405
+ if (m)
4406
+ return m.api();
4363
4407
  }
4364
- function P(c) {
4408
+ function I(c) {
4365
4409
  o.push(c);
4366
4410
  }
4367
4411
  function T() {
4368
4412
  const c = Ue(...arguments);
4369
4413
  c.id && c.prop && (i[c.id] = c.prop);
4370
4414
  }
4371
- function ce() {
4415
+ function he() {
4372
4416
  const c = Ue(...arguments);
4373
4417
  c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(v({}, c.prop), {
4374
4418
  name: c.id
4375
4419
  }));
4376
4420
  }
4377
- function Pe(c) {
4421
+ function Le(c) {
4378
4422
  y.use(c);
4379
4423
  }
4380
- function he() {
4424
+ function de() {
4381
4425
  const c = Ue(...arguments);
4382
- if (!c.id || !c.prop) return De;
4383
- const p = q(c.id), $ = c.prop, b = $.merge === !0 ? r[p] : void 0;
4384
- r[p] = Se($, b || De), f[p] = V(p), $.maker && C(f, $.maker);
4426
+ if (!c.id || !c.prop) return je;
4427
+ const m = q(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4428
+ r[m] = Se($, b || je), f[m] = P(m), $.maker && C(f, $.maker);
4385
4429
  }
4386
- function F(c, p) {
4430
+ function F(c, m) {
4387
4431
  let $;
4388
4432
  if (h.String(c)) {
4389
- if ($ = c, p === void 0)
4390
- return ["form-create", "formcreate"].indexOf($) > -1 ? k() : e[$];
4433
+ if ($ = c, m === void 0)
4434
+ return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
4391
4435
  } else
4392
- $ = q(c.name), p = c;
4393
- if (!$ || !p) return;
4436
+ $ = q(c.name), m = c;
4437
+ if (!$ || !m) return;
4394
4438
  const b = q($);
4395
- e[$] = p, e[b] = p, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], p.formCreateParser && he($, p.formCreateParser);
4439
+ e[$] = m, e[b] = m, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && de($, m.formCreateParser);
4396
4440
  }
4397
- function k() {
4398
- return Kr(Be, e, i);
4441
+ function R() {
4442
+ return Zr(Te, e, i);
4399
4443
  }
4400
4444
  function N() {
4401
4445
  return Me;
4402
4446
  }
4403
- function de(c, p) {
4404
- return h.Function(c.install) ? c.install(z, p) : h.Function(c) && c(z, p), this;
4447
+ function pe(c, m) {
4448
+ return h.Function(c.install) ? c.install(z, m) : h.Function(c) && c(z, m), this;
4405
4449
  }
4406
- function z(c, p, $) {
4407
- let b = Ti(c, p || {});
4450
+ function z(c, m, $) {
4451
+ let b = Mi(c, m || {});
4408
4452
  const w = b.$refs.fc.formCreate;
4409
- return w.$parent = $, Bi(w.options).appendChild(b.$el), w.api();
4453
+ return w.$parent = $, Ni(w.options).appendChild(b.$el), w.api();
4410
4454
  }
4411
4455
  Se(z, D);
4412
- function Xt(c) {
4413
- let p = v({}, t);
4414
- return c ? p.inherit = {
4456
+ function Zt(c) {
4457
+ let m = v({}, t);
4458
+ return c ? m.inherit = {
4415
4459
  components: e,
4416
4460
  parsers: r,
4417
4461
  directives: i,
@@ -4420,67 +4464,67 @@ function Wt(t) {
4420
4464
  useApps: o,
4421
4465
  maker: f,
4422
4466
  formulas: _,
4423
- loadData: m
4424
- } : delete p.inherit, Wt(p);
4467
+ loadData: g
4468
+ } : delete m.inherit, Kt(m);
4425
4469
  }
4426
- function Zt(c, p) {
4427
- s[c] = p;
4470
+ function Qt(c, m) {
4471
+ s[c] = m;
4428
4472
  }
4429
- function Qt(c, p) {
4430
- _[c] = p;
4473
+ function Yt(c, m) {
4474
+ _[c] = m;
4431
4475
  }
4432
- function Yt(c, p) {
4476
+ function xt(c, m) {
4433
4477
  const $ = n[c] || {}, b = $.parsers || {};
4434
- p.parsers && Object.keys(p.parsers).forEach((w) => {
4435
- b[w] = Se(p.parsers[w], De);
4436
- }), p.name = c, n[c] = U(v(v({}, $), p), { parsers: b });
4478
+ m.parsers && Object.keys(m.parsers).forEach((w) => {
4479
+ b[w] = Se(m.parsers[w], je);
4480
+ }), m.name = c, n[c] = U(v(v({}, $), m), { parsers: b });
4437
4481
  }
4438
- function Ce(c) {
4439
- c && Object.keys(M).forEach((p) => {
4440
- (Array.isArray(M[p]) ? M[p] : [M[p]]).forEach((b) => {
4482
+ function we(c) {
4483
+ c && Object.keys(M).forEach((m) => {
4484
+ (Array.isArray(M[m]) ? M[m] : [M[m]]).forEach((b) => {
4441
4485
  b.bus.$emit("$loadData." + c);
4442
4486
  });
4443
4487
  });
4444
4488
  }
4445
- function Le(c, p) {
4446
- se(m, c, p), Ce(c);
4489
+ function Be(c, m) {
4490
+ se(g, c, m), we(c);
4447
4491
  }
4448
- function we(c, p) {
4449
- const $ = (...b) => O(() => p(...b));
4450
- $._driver = !0, Le(c, $);
4492
+ function Oe(c, m) {
4493
+ const $ = (...b) => O(() => m(...b));
4494
+ $._driver = !0, Be(c, $);
4451
4495
  }
4452
- function st(c, p) {
4496
+ function st(c, m) {
4453
4497
  const $ = (c || "").split(".");
4454
4498
  c = $.shift();
4455
4499
  const b = $.join(".");
4456
- if (E(m, c) || S(m, c, Re), m[c] !== Re) {
4457
- let w = m[c];
4458
- return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? p : w;
4500
+ if (E(g, c) || k(g, c, Ee), g[c] !== Ee) {
4501
+ let w = g[c];
4502
+ return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? m : w;
4459
4503
  } else
4460
- return p;
4504
+ return m;
4461
4505
  }
4462
- function xt(c) {
4506
+ function er(c) {
4463
4507
  l.push(c);
4464
4508
  }
4465
- function er(c) {
4466
- delete m[c], Ce(c);
4509
+ function tr(c) {
4510
+ delete g[c], we(c);
4467
4511
  }
4468
- function tr(c, p) {
4469
- a.push({ name: c, callback: p });
4512
+ function rr(c, m) {
4513
+ a.push({ name: c, callback: m });
4470
4514
  }
4471
- function Be(c) {
4515
+ function Te(c) {
4472
4516
  C(this, {
4473
- id: Mi++,
4517
+ id: qi++,
4474
4518
  create: z,
4475
4519
  vm: c,
4476
- manager: _i(t.manager),
4520
+ manager: wi(t.manager),
4477
4521
  parsers: r,
4478
4522
  providers: u,
4479
4523
  modelFields: s,
4480
4524
  formulas: _,
4481
- isMobile: g,
4525
+ isMobile: d,
4482
4526
  rules: c.$options.propsData.rule,
4483
- name: c.$options.propsData.name || Ve(),
4527
+ name: c.$options.propsData.name || Pe(),
4484
4528
  inFor: c.$options.propsData.inFor,
4485
4529
  prop: {
4486
4530
  components: e,
@@ -4489,56 +4533,56 @@ function Wt(t) {
4489
4533
  get: null,
4490
4534
  drivers: n,
4491
4535
  renderDriver: null,
4492
- refreshData: Ce,
4493
- loadData: m,
4536
+ refreshData: we,
4537
+ loadData: g,
4494
4538
  CreateNode: y,
4495
- bus: new Si(),
4539
+ bus: new Ri(),
4496
4540
  unwatch: [],
4497
- options: gr({}),
4541
+ options: yr({}),
4498
4542
  extendApiFn: l,
4499
4543
  fetchCache: /* @__PURE__ */ new WeakMap(),
4500
4544
  tmpData: ie({})
4501
- }), a.forEach((p) => {
4502
- this.bus.$on(p.name, p.callback);
4503
- }), A(() => {
4545
+ }), a.forEach((m) => {
4546
+ this.bus.$on(m.name, m.callback);
4547
+ }), V(() => {
4504
4548
  B(this.options, () => {
4505
4549
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4506
4550
  }, { deep: !0 });
4507
4551
  }), 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);
4508
4552
  }
4509
- Be.isMobile = g, C(Be.prototype, {
4553
+ Te.isMobile = d, C(Te.prototype, {
4510
4554
  init() {
4511
4555
  this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4512
4556
  this.initOptions(), this.$handle.api.refresh();
4513
4557
  }, { 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();
4514
4558
  },
4515
- targetFormDriver(c, ...p) {
4559
+ targetFormDriver(c, ...m) {
4516
4560
  if (this.renderDriver && this.renderDriver[c])
4517
- return O(() => this.renderDriver[c](...p));
4561
+ return O(() => this.renderDriver[c](...m));
4518
4562
  },
4519
- t(c, p, $) {
4563
+ t(c, m, $) {
4520
4564
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4521
- return b == null && (b = ""), b && p && Object.keys(p).forEach((w) => {
4565
+ return b == null && (b = ""), b && m && Object.keys(m).forEach((w) => {
4522
4566
  const j = new RegExp(`{${w}}`, "g");
4523
- b = b.replace(j, p[w]);
4567
+ b = b.replace(j, m[w]);
4524
4568
  }), b;
4525
4569
  },
4526
4570
  globalDataDriver(c) {
4527
- let p = c.split(".");
4528
- const $ = p.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4571
+ let m = c.split(".");
4572
+ const $ = m.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4529
4573
  if (b) {
4530
4574
  if (b.type === "static")
4531
- return L(b.data, p);
4575
+ return L(b.data, m);
4532
4576
  {
4533
4577
  let w;
4534
4578
  const j = this.fetchCache.get(b);
4535
4579
  if (j) {
4536
- if (j.status && (w = L(j.data, p)), !j.loading)
4580
+ if (j.status && (w = L(j.data, m)), !j.loading)
4537
4581
  return w;
4538
4582
  j.loading = !1, this.fetchCache.set(b, j);
4539
4583
  } else
4540
4584
  this.fetchCache.set(b, { status: !1 });
4541
- const R = ne(() => {
4585
+ const S = ne(() => {
4542
4586
  le();
4543
4587
  const J = this.fetchCache.get(b);
4544
4588
  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);
@@ -4548,11 +4592,11 @@ function Wt(t) {
4548
4592
  if (ue && b.watch === !1)
4549
4593
  return le();
4550
4594
  if (ue) {
4551
- R();
4595
+ S();
4552
4596
  return;
4553
4597
  }
4554
- const pe = this.$handle.loadFetchVar(We(b), J);
4555
- this.$handle.api.fetch(pe).then((te) => {
4598
+ const me = this.$handle.loadFetchVar(We(b), J);
4599
+ this.$handle.api.fetch(me).then((te) => {
4556
4600
  ae(te);
4557
4601
  }).catch((te) => {
4558
4602
  ae(null);
@@ -4567,31 +4611,31 @@ function Wt(t) {
4567
4611
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4568
4612
  },
4569
4613
  globalLanguageDriver(c) {
4570
- let p = this.vm.top.$props.locale, $;
4571
- if (p && typeof p == "object" && ($ = L(p, c)), $ == null) {
4614
+ let m = this.vm.top.$props.locale, $;
4615
+ if (m && typeof m == "object" && ($ = L(m, c)), $ == null) {
4572
4616
  const b = this.options.value.language || {}, w = this.getLocale();
4573
- $ = L(b[w] || {}, c), $ == null && ($ = L(Pi[w] || {}, c));
4617
+ $ = L(b[w] || {}, c), $ == null && ($ = L(Bi[w] || {}, c));
4574
4618
  }
4575
4619
  return $;
4576
4620
  },
4577
4621
  globalVarDriver(c) {
4578
- let p = c.split(".");
4579
- const $ = p.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4622
+ let m = c.split(".");
4623
+ const $ = m.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4580
4624
  if (b) {
4581
4625
  const w = h.Function(b) ? b : W(b.handle);
4582
4626
  if (w) {
4583
4627
  let j;
4584
- const R = this.watchLoadData((ae, X) => {
4585
- X ? (this.bus.$emit("$loadData.$var." + $), R()) : j = w(ae, this.$handle.api);
4628
+ const S = this.watchLoadData((ae, X) => {
4629
+ X ? (this.bus.$emit("$loadData.$var." + $), S()) : j = w(ae, this.$handle.api);
4586
4630
  });
4587
- return this.unwatch.push(R), L(j, p);
4631
+ return this.unwatch.push(S), L(j, m);
4588
4632
  }
4589
4633
  }
4590
4634
  },
4591
- setData(c, p, $) {
4592
- $ ? Le(c, p) : (se(this.vm.top.fc.tmpData, c, p), this.bus.$emit("$loadData." + c));
4635
+ setData(c, m, $) {
4636
+ $ ? Be(c, m) : (se(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
4593
4637
  },
4594
- getLoadData(c, p) {
4638
+ getLoadData(c, m) {
4595
4639
  let $ = null;
4596
4640
  if (c != null) {
4597
4641
  let b = c.split(".");
@@ -4617,41 +4661,41 @@ function Wt(t) {
4617
4661
  return this.$handle.preview;
4618
4662
  {
4619
4663
  const j = this.vm.top.fc.tmpData;
4620
- E(j, w) || S(j, w, Re), $ = j[w] !== Re ? L(j, c) : st(c), b = [];
4664
+ E(j, w) || k(j, w, Ee), $ = j[w] !== Ee ? L(j, c) : st(c), b = [];
4621
4665
  }
4622
4666
  }
4623
4667
  $ && b.length && ($ = L($, b));
4624
4668
  }
4625
- return $ == null || $ === "" ? p : $;
4669
+ return $ == null || $ === "" ? m : $;
4626
4670
  },
4627
- watchLoadData(c, p) {
4671
+ watchLoadData(c, m) {
4628
4672
  let $ = {};
4629
- const b = (R) => {
4673
+ const b = (S) => {
4630
4674
  this.get || (this.get = w), O(() => {
4631
- c(w, R);
4675
+ c(w, S);
4632
4676
  }), this.get === w && (this.get = void 0);
4633
- }, w = (R, ae) => {
4677
+ }, w = (S, ae) => {
4634
4678
  let X;
4635
- if (typeof R == "object" && (X = R.getValue, R = R.id), $[R])
4636
- return $[R].val;
4637
- const le = ge(() => X ? X() : this.getLoadData(R, ae)), J = R.split("."), ue = J.shift(), pe = J.shift() || "", te = ne(() => {
4638
- const Te = X ? X() : this.getLoadData(R, ae);
4639
- if ($[R])
4640
- JSON.stringify(Te) !== JSON.stringify($[R].val) && ($[R].val = Te, b(!0));
4679
+ if (typeof S == "object" && (X = S.getValue, S = S.id), $[S])
4680
+ return $[S].val;
4681
+ const le = ye(() => X ? X() : this.getLoadData(S, ae)), J = S.split("."), ue = J.shift(), me = J.shift() || "", te = ne(() => {
4682
+ const fe = X ? X() : this.getLoadData(S, ae);
4683
+ if ($[S])
4684
+ ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[S].val || JSON.stringify(fe) !== JSON.stringify($[S].val)) && ($[S].val = fe, b(!0));
4641
4685
  else return;
4642
- }, p || 0), ir = B(le, (Te) => {
4686
+ }, m || 0), nr = B(le, (fe) => {
4643
4687
  te();
4644
4688
  });
4645
- return this.bus.$on("$loadData." + ue, te), pe && this.bus.$on("$loadData." + ue + "." + pe, te), $[R] = {
4689
+ return this.bus.$on("$loadData." + ue, te), me && this.bus.$on("$loadData." + ue + "." + me, te), $[S] = {
4646
4690
  fn: () => {
4647
- this.bus.$off("$loadData." + ue, te), pe && this.bus.$off("$loadData." + ue + "." + pe, te), ir();
4691
+ this.bus.$off("$loadData." + ue, te), me && this.bus.$off("$loadData." + ue + "." + me, te), nr();
4648
4692
  },
4649
4693
  val: le.value
4650
4694
  }, le.value;
4651
4695
  };
4652
4696
  b(!1);
4653
4697
  const j = () => {
4654
- Object.keys($).forEach((R) => $[R].fn()), $ = {};
4698
+ Object.keys($).forEach((S) => $[S].fn()), $ = {};
4655
4699
  };
4656
4700
  return this.unwatch.push(j), j;
4657
4701
  },
@@ -4666,13 +4710,13 @@ function Wt(t) {
4666
4710
  resetBtn: {},
4667
4711
  globalEvent: {},
4668
4712
  globalData: {}
4669
- }, G(d));
4713
+ }, G(p));
4670
4714
  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);
4671
4715
  },
4672
- mergeOptions(c, p, $) {
4673
- return p = v({}, p || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4674
- delete p[b];
4675
- }), p.global && (c.global = zr(c.global, p.global), delete p.global), this.$handle.$manager.mergeOptions([p], c), c;
4716
+ mergeOptions(c, m, $) {
4717
+ return m = v({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4718
+ delete m[b];
4719
+ }), m.global && (c.global = Wr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4676
4720
  },
4677
4721
  updateOptions(c) {
4678
4722
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4705,61 +4749,61 @@ function Wt(t) {
4705
4749
  C(c, {
4706
4750
  version: t.version,
4707
4751
  ui: t.ui,
4708
- isMobile: g,
4709
- extendApi: xt,
4752
+ isMobile: d,
4753
+ extendApi: er,
4710
4754
  getData: st,
4711
- setDataDriver: we,
4712
- setData: Le,
4713
- removeData: er,
4714
- refreshData: Ce,
4755
+ setDataDriver: Oe,
4756
+ setData: Be,
4757
+ removeData: tr,
4758
+ refreshData: we,
4715
4759
  maker: f,
4716
4760
  component: F,
4717
4761
  directive: T,
4718
- setModelField: Zt,
4719
- setFormula: Qt,
4720
- setDriver: Yt,
4721
- register: ce,
4762
+ setModelField: Qt,
4763
+ setFormula: Yt,
4764
+ setDriver: xt,
4765
+ register: he,
4722
4766
  $vnode: N,
4723
- parser: he,
4724
- use: de,
4725
- factory: Xt,
4726
- componentAlias: Pe,
4767
+ parser: de,
4768
+ use: pe,
4769
+ factory: Zt,
4770
+ componentAlias: Le,
4727
4771
  copyRule: Lt,
4728
4772
  copyRules: Bt,
4729
4773
  mergeRule: x,
4730
- fetch: qt,
4731
- $form: k,
4774
+ fetch: Gt,
4775
+ $form: R,
4732
4776
  parseFn: W,
4733
4777
  parseJson: Pt,
4734
- toJson: ve,
4735
- useApp: P,
4778
+ toJson: _e,
4779
+ useApp: I,
4736
4780
  getApi: ee,
4737
- on: tr
4781
+ on: rr
4738
4782
  });
4739
4783
  }
4740
- function rr(c) {
4784
+ function ir(c) {
4741
4785
  C(c, {
4742
4786
  create: z,
4743
- install(p, $) {
4744
- if (d = v(v({}, d), $ || {}), p._installedFormCreate === !0) return;
4745
- p._installedFormCreate = !0;
4746
- const b = function(j, R = {}) {
4747
- return z(j, R, this);
4787
+ install(m, $) {
4788
+ if (p = v(v({}, p), $ || {}), m._installedFormCreate === !0) return;
4789
+ m._installedFormCreate = !0;
4790
+ const b = function(j, S = {}) {
4791
+ return z(j, S, this);
4748
4792
  };
4749
- ot(b), p.prototype.$formCreate = b;
4750
- const w = k();
4751
- p.component(w.name, w), p.component("FcFragment", N()), o.forEach((j) => {
4752
- O(() => j(c, p));
4793
+ ot(b), m.prototype.$formCreate = b;
4794
+ const w = R();
4795
+ m.component(w.name, w), m.component("FcFragment", N()), o.forEach((j) => {
4796
+ O(() => j(c, m));
4753
4797
  });
4754
4798
  }
4755
4799
  });
4756
4800
  }
4757
- if (ot(D), rr(D), we("$cookie", Ii), we("$localStorage", Ai), we("$sessionStorage", Vi), y.use({ fragment: "fcFragment" }), t.install && z.use(t), he(Ri), t.inherit) {
4801
+ if (ot(D), ir(D), Oe("$cookie", Vi), Oe("$localStorage", Pi), Oe("$sessionStorage", Li), y.use({ fragment: "fcFragment" }), t.install && z.use(t), de(Di), t.inherit) {
4758
4802
  const c = t.inherit;
4759
- 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);
4803
+ c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(g, c.loadData), c.formulas && C(_, c.formulas);
4760
4804
  }
4761
- const Oe = k();
4762
- return Se(Oe, D), Object.defineProperties(Oe, {
4805
+ const ke = R();
4806
+ return Se(ke, D), Object.defineProperties(ke, {
4763
4807
  fetch: {
4764
4808
  get() {
4765
4809
  return D.fetch;
@@ -4768,7 +4812,7 @@ function Wt(t) {
4768
4812
  D.fetch = c;
4769
4813
  }
4770
4814
  }
4771
- }), Oe.util = D, Oe;
4815
+ }), ke.util = D, ke;
4772
4816
  }
4773
4817
  function qe(t) {
4774
4818
  if (h.Date(t))
@@ -4778,10 +4822,10 @@ function qe(t) {
4778
4822
  return e.toString() === "Invalid Date" ? t : e;
4779
4823
  }
4780
4824
  }
4781
- const _t = "datePicker", Ui = {
4825
+ const _t = "datePicker", Gi = {
4782
4826
  name: _t,
4783
4827
  maker: function() {
4784
- return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = V(_t, { type: e.toLowerCase() }), t), {});
4828
+ return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = P(_t, { type: e.toLowerCase() }), t), {});
4785
4829
  }(),
4786
4830
  mergeProp(t) {
4787
4831
  let e = t.prop.props;
@@ -4810,54 +4854,54 @@ const _t = "datePicker", Ui = {
4810
4854
  mounted(t) {
4811
4855
  t.rule.value = this.toValue(t.$handle.getFormData(t), t);
4812
4856
  }
4813
- }, Ge = "hidden", qi = {
4857
+ }, Ge = "hidden", Hi = {
4814
4858
  name: Ge,
4815
4859
  maker: {
4816
- [Ge]: (t, e) => V(Ge)("", t, e)
4860
+ [Ge]: (t, e) => P(Ge)("", t, e)
4817
4861
  },
4818
4862
  render() {
4819
4863
  return [];
4820
4864
  }
4821
- }, He = "input", Gi = {
4865
+ }, He = "input", zi = {
4822
4866
  name: He,
4823
4867
  maker: function() {
4824
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = V(He, { type: r }), e), {});
4825
- return t.idate = V(He, { type: "date" }), t;
4868
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = P(He, { type: r }), e), {});
4869
+ return t.idate = P(He, { type: "date" }), t;
4826
4870
  }(),
4827
4871
  mergeProp(t) {
4828
4872
  let { props: e } = t.prop;
4829
4873
  e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4830
4874
  }
4831
- }, Ct = "slider", Hi = {
4875
+ }, Ct = "slider", Ji = {
4832
4876
  name: Ct,
4833
4877
  maker: {
4834
- sliderRange: V(Ct, { range: !0 })
4878
+ sliderRange: P(Ct, { range: !0 })
4835
4879
  },
4836
4880
  toFormValue(t, e) {
4837
4881
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4838
4882
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4839
4883
  }
4840
- }, zi = {
4884
+ }, Wi = {
4841
4885
  name: "switch",
4842
4886
  mergeProp(t) {
4843
4887
  const e = t.prop.props.slot || {}, r = t.prop.scopedSlots || {};
4844
4888
  e.open && (r.open = () => e.open), e.close && (r.close = () => e.close), t.prop.scopedSlots = r;
4845
4889
  }
4846
- }, Ji = {
4890
+ }, Ki = {
4847
4891
  name: "FcRow",
4848
4892
  render(t, e) {
4849
4893
  return e.vNode.col({ props: { span: 24 } }, [
4850
4894
  e.vNode.row(e.prop, t)
4851
4895
  ]);
4852
4896
  }
4853
- }, Wi = [
4854
- Ui,
4855
- qi,
4897
+ }, Xi = [
4856
4898
  Gi,
4857
4899
  Hi,
4858
4900
  zi,
4859
- Ji
4860
- ], Ki = {
4901
+ Ji,
4902
+ Wi,
4903
+ Ki
4904
+ ], Zi = {
4861
4905
  button: "iButton",
4862
4906
  icon: "Icon",
4863
4907
  slider: "Slider",
@@ -4889,7 +4933,7 @@ const _t = "datePicker", Ui = {
4889
4933
  resetBtnIcon: "md-refresh",
4890
4934
  infoIcon: "ios-information-circle-outline"
4891
4935
  };
4892
- function Xi() {
4936
+ function Qi() {
4893
4937
  return {
4894
4938
  type: "poptip",
4895
4939
  trigger: "hover",
@@ -4898,7 +4942,7 @@ function Xi() {
4898
4942
  icon: Ie.infoIcon
4899
4943
  };
4900
4944
  }
4901
- function Zi() {
4945
+ function Yi() {
4902
4946
  return {
4903
4947
  form: {
4904
4948
  inline: !1,
@@ -4936,14 +4980,14 @@ function wt(t, e) {
4936
4980
  function Z(t) {
4937
4981
  return t === !1;
4938
4982
  }
4939
- function Qi(t, e) {
4983
+ function xi(t, e) {
4940
4984
  E(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4941
4985
  }
4942
4986
  function ze(t) {
4943
4987
  const e = v({}, t);
4944
4988
  return delete e.children, e;
4945
4989
  }
4946
- const Yi = {
4990
+ const en = {
4947
4991
  validate() {
4948
4992
  const t = this.form();
4949
4993
  return t ? t.validate() : new Promise((e) => e());
@@ -4962,7 +5006,7 @@ const Yi = {
4962
5006
  },
4963
5007
  tidyOptions(t) {
4964
5008
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4965
- Qi(t, e);
5009
+ xi(t, e);
4966
5010
  }), t;
4967
5011
  },
4968
5012
  tidyRule({ prop: t }) {
@@ -4970,7 +5014,7 @@ const Yi = {
4970
5014
  },
4971
5015
  mergeProp(t) {
4972
5016
  const e = {
4973
- info: Xi(),
5017
+ info: Qi(),
4974
5018
  title: {},
4975
5019
  col: { span: 24 },
4976
5020
  wrap: {}
@@ -4983,7 +5027,7 @@ const Yi = {
4983
5027
  !t.size && this.options.form.size && (t.size = this.options.form.size);
4984
5028
  },
4985
5029
  getDefaultOptions() {
4986
- return Zi();
5030
+ return Yi();
4987
5031
  },
4988
5032
  update() {
4989
5033
  const t = this.options.form;
@@ -5030,12 +5074,12 @@ const Yi = {
5030
5074
  return !(!e.title && !e.native || Z(e.show));
5031
5075
  },
5032
5076
  makeInfo(t, e, r) {
5033
- var u, f, d, g, m, y;
5077
+ var u, f, p, d, g, y;
5034
5078
  const i = v({}, t.title), s = v({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5035
5079
  title: (f = (u = r.refRule) == null ? void 0 : u.__$title) == null ? void 0 : f.value,
5036
5080
  rule: r.rule,
5037
5081
  options: this.options
5038
- }) : ((g = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : g.value) + (n.labelSuffix || n["label-suffix"] || "")];
5082
+ }) : ((d = (p = r.refRule) == null ? void 0 : p.__$title) == null ? void 0 : d.value) + (n.labelSuffix || n["label-suffix"] || "")];
5039
5083
  if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
5040
5084
  const _ = {
5041
5085
  type: s.type || "poptip",
@@ -5045,7 +5089,7 @@ const Yi = {
5045
5089
  };
5046
5090
  delete _.props.icon, delete _.props.show, delete _.props.info, delete _.props.align, delete _.props.native;
5047
5091
  const D = "content";
5048
- s.info && !E(_.props, D) && (_.props[D] = (y = (m = r.refRule) == null ? void 0 : m.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, _]), [
5092
+ s.info && !E(_.props, D) && (_.props[D] = (y = (g = r.refRule) == null ? void 0 : g.__$info) == null ? void 0 : y.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, _]), [
5049
5093
  this.$r({
5050
5094
  type: "icon",
5051
5095
  props: { type: s.icon === !0 ? Ie.infoIcon : s.icon, size: 16 },
@@ -5130,34 +5174,34 @@ const Yi = {
5130
5174
  key: `${this.key}b1`
5131
5175
  }, [e]);
5132
5176
  }
5133
- }, oe = {}, xi = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5134
- function en(t) {
5135
- xi.forEach((e) => {
5136
- t[e] = V(e);
5177
+ }, oe = {}, tn = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5178
+ function rn(t) {
5179
+ tn.forEach((e) => {
5180
+ t[e] = P(e);
5137
5181
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
5138
5182
  }
5139
- function tn(t) {
5183
+ function nn(t) {
5140
5184
  const e = "upload", r = {
5141
5185
  image: ["image", 0],
5142
5186
  file: ["file", 0],
5143
5187
  uploadFileOne: ["file", 1],
5144
5188
  uploadImageOne: ["image", 1]
5145
5189
  };
5146
- 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;
5190
+ 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;
5147
5191
  }
5148
- function rn(t) {
5192
+ function sn(t) {
5149
5193
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
5150
- Object.keys(r).reduce((i, s) => (i[s] = V(e, { type: r[s] }), i), t);
5194
+ Object.keys(r).reduce((i, s) => (i[s] = P(e, { type: r[s] }), i), t);
5151
5195
  }
5152
- function nn(t) {
5196
+ function on(t) {
5153
5197
  const e = "timePicker";
5154
- t.time = V(e, { type: "time" }), t.timeRange = V(e, { type: "timerange" });
5198
+ t.time = P(e, { type: "time" }), t.timeRange = P(e, { type: "timerange" });
5155
5199
  }
5156
- function sn(t) {
5200
+ function an(t) {
5157
5201
  const e = "select";
5158
- t.selectMultiple = V(e, { multiple: !0 }), t.selectOne = V(e, { multiple: !1 });
5202
+ t.selectMultiple = P(e, { multiple: !0 }), t.selectOne = P(e, { multiple: !1 });
5159
5203
  }
5160
- function on(t) {
5204
+ function ln(t) {
5161
5205
  const e = "frame", r = {
5162
5206
  frameInputs: ["input", 0],
5163
5207
  frameFiles: ["file", 0],
@@ -5166,18 +5210,18 @@ function on(t) {
5166
5210
  frameFileOne: ["file", 1],
5167
5211
  frameImageOne: ["image", 1]
5168
5212
  };
5169
- 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;
5213
+ 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;
5170
5214
  }
5171
- en(oe);
5172
- tn(oe);
5173
5215
  rn(oe);
5216
+ nn(oe);
5174
5217
  sn(oe);
5218
+ an(oe);
5219
+ ln(oe);
5175
5220
  on(oe);
5176
- nn(oe);
5177
5221
  function Ot(t, e) {
5178
5222
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5179
5223
  }
5180
- function an(t, e) {
5224
+ function un(t, e) {
5181
5225
  return {
5182
5226
  formEl() {
5183
5227
  return e.$manager.form();
@@ -5275,11 +5319,11 @@ function an(t, e) {
5275
5319
  }
5276
5320
  };
5277
5321
  }
5278
- const Kt = {
5322
+ const Xt = {
5279
5323
  name: "required",
5280
5324
  load(t, e, r) {
5281
5325
  var s, n;
5282
- const i = ln(t.getValue());
5326
+ const i = fn(t.getValue());
5283
5327
  if (i.required === !1)
5284
5328
  t.clearProp(), r.clearValidateState([e.field]);
5285
5329
  else {
@@ -5300,28 +5344,28 @@ const Kt = {
5300
5344
  r.sync(e);
5301
5345
  },
5302
5346
  watch(...t) {
5303
- Kt.load(...t);
5347
+ Xt.load(...t);
5304
5348
  }
5305
5349
  };
5306
- function ln(t) {
5350
+ function fn(t) {
5307
5351
  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 : {};
5308
5352
  }
5309
- function un(t) {
5310
- t.componentAlias(Ki), Mr.forEach((e) => {
5353
+ function cn(t) {
5354
+ t.componentAlias(Zi), Ur.forEach((e) => {
5311
5355
  t.component(e.name, e);
5312
- }), t.register(Kt), Wi.forEach((e) => {
5356
+ }), t.register(Xt), Xi.forEach((e) => {
5313
5357
  t.parser(e);
5314
5358
  }), Object.keys(oe).forEach((e) => {
5315
5359
  t.maker[e] = oe[e];
5316
5360
  });
5317
5361
  }
5318
- function fn() {
5319
- return Wt({
5362
+ function hn() {
5363
+ return Kt({
5320
5364
  ui: "view-design",
5321
- version: "2.7.8",
5322
- manager: Yi,
5323
- install: un,
5324
- extendApi: an,
5365
+ version: "2.7.10",
5366
+ manager: en,
5367
+ install: cn,
5368
+ extendApi: un,
5325
5369
  attrs: {
5326
5370
  normal: ["col", "wrap"],
5327
5371
  array: ["className"],
@@ -5329,10 +5373,10 @@ function fn() {
5329
5373
  }
5330
5374
  });
5331
5375
  }
5332
- const Ye = fn();
5376
+ const Ye = hn();
5333
5377
  typeof window != "undefined" && (window.formCreate = Ye, window.Vue && Ye.install(window.Vue));
5334
- const dn = Ye.maker;
5378
+ const mn = Ye.maker;
5335
5379
  export {
5336
5380
  Ye as default,
5337
- dn as maker
5381
+ mn as maker
5338
5382
  };