@form-create/view-design 2.7.8 → 2.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,26 +1,26 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/view-design v2.7.8
3
+ * @form-create/view-design v2.7.9
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
7
7
  * Released under the MIT License.
8
8
  */
9
9
  (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode('._fc-frame .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;transition:opacity .3s}._fc-frame .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-frame .fc-files:hover .fc-upload-cover{opacity:1}._fc-frame .ivu-upload-list{margin-top:0}._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn,._fc-frame .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:2px 2px 5px #0000001a;margin-right:4px;box-sizing:border-box}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;transition:opacity .3s}._fc-upload .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-upload .fc-files:hover .fc-upload-cover{opacity:1}._fc-upload .ivu-upload-list{margin-top:0}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-upload .fc-upload-btn,._fc-upload .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:2px 2px 5px #0000001a;margin-right:4px;box-sizing:border-box}._fc-group{display:flex;min-height:42px;justify-content:center;flex-direction:column}._fc-group-disabled ._fc-group-btn,._fc-group-disabled ._fc-group-add{cursor:not-allowed}._fc-group-handle{display:flex;flex-direction:row;position:absolute;bottom:-15px;right:30px;border-radius:15px;border:1px dashed #d9d9d9;padding:3px 8px;background-color:#fff}._fc-group-btn{cursor:pointer}._fc-group-idx{position:absolute;bottom:-15px;left:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#eee;border-radius:15px;font-weight:700}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{position:relative;display:flex;flex-direction:column;border:1px dashed #d9d9d9;padding:20px 20px 25px;margin:5px 5px 25px;border-radius:5px}._fc-group-arrow{position:relative;width:20px;height:20px}._fc-group-arrow:before{content:"";position:absolute;top:8px;left:5px;width:9px;height:9px;border-left:2px solid #999;border-top:2px solid #999}._fc-group-arrow:before{transform:rotate(45deg)}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{width:20px;height:20px;position:relative;cursor:pointer}._fc-group-plus-minus:before,._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:60%;height:2px;background-color:#409eff;transform:translate(-50%,-50%)}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{cursor:pointer;width:25px;height:25px;border:1px solid rgb(64 158 255 / 50%);border-radius:15px}._fc-group-add._fc-group-plus-minus:before,._fc-group-add._fc-group-plus-minus:after{width:50%}.form-create .form-create .ivu-form-item{margin-bottom:24px}.form-create .form-create .ivu-form-item .ivu-form-item{margin-bottom:0}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
10
- var 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 Fr = "fcCheckbox", kr = {
58
+ name: Fr,
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);
@@ -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 kt = Ft({
507
507
  fileIcon: "md-document",
508
508
  fileUpIcon: "ios-folder-open"
509
509
  });
510
- St.v2 = Ft({
510
+ kt.v2 = Ft({
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 F(t, e, r) {
919
+ $e.set(t, e, r);
920
920
  }
921
921
  function re(t, e) {
922
- (ye.del || ye.delete)(t, e);
922
+ ($e.del || $e.delete)(t, e);
923
923
  }
924
- function _e(t, e = {}, r) {
924
+ function Ce(t, e = {}, r) {
925
925
  let i = !1;
926
926
  for (let s in e)
927
927
  if (Object.prototype.hasOwnProperty.call(e, s)) {
@@ -929,39 +929,39 @@ function _e(t, e = {}, r) {
929
929
  if ((i = Array.isArray(n)) || h.Object(n)) {
930
930
  let o = t[s] === void 0;
931
931
  if (i)
932
- i = !1, o && S(t, s, []);
932
+ i = !1, o && F(t, s, []);
933
933
  else if (n._clone && r !== void 0)
934
934
  if (r)
935
- n = n.getRule(), o && S(t, s, {});
935
+ n = n.getRule(), o && F(t, s, {});
936
936
  else {
937
- S(t, s, n._clone());
937
+ F(t, s, n._clone());
938
938
  continue;
939
939
  }
940
940
  else
941
- o && S(t, s, {});
942
- t[s] = _e(t[s], n, r);
941
+ o && F(t, s, {});
942
+ t[s] = Ce(t[s], n, r);
943
943
  } else
944
- S(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
944
+ F(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
945
945
  }
946
946
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
947
947
  }
948
948
  function G(t) {
949
- return _e({}, { value: t }).value;
949
+ return Ce({}, { value: t }).value;
950
950
  }
951
- const 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) && F(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,12 +1235,12 @@ 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
1242
  "update:value": (d) => this.formData(o, d),
1243
- "emit-event": (d, ...g) => this.emitEvent(d, g, a, o),
1243
+ "emit-event": (d, ...p) => this.emitEvent(d, p, a, o),
1244
1244
  input: (d) => this.add$f(a, o, d)
1245
1245
  }
1246
1246
  }, {}, {
@@ -1265,8 +1265,8 @@ const 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 = [
1353
- Fr,
1354
- Rr,
1355
- Dr,
1352
+ }, Ur = [
1353
+ kr,
1354
+ Er,
1355
+ jr,
1356
1356
  Ir,
1357
- Nr,
1358
- St,
1357
+ Mr,
1358
+ kt,
1359
1359
  Rt,
1360
- Br
1360
+ Tr
1361
1361
  ];
1362
1362
  function ne(t, e) {
1363
1363
  var r = null;
@@ -1365,7 +1365,7 @@ 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
  }
@@ -1384,24 +1384,24 @@ const Et = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style"
1384
1384
  } else if (n.indexOf(u) > -1)
1385
1385
  for (const f in l[u])
1386
1386
  if (a[u][f]) {
1387
- const d = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], g = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1388
- a[u][f] = [...d, ...g];
1387
+ const d = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], p = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1388
+ a[u][f] = [...d, ...p];
1389
1389
  } else
1390
1390
  a[u][f] = l[u][f];
1391
1391
  else if (u === "hook")
1392
1392
  for (let f in l[u])
1393
- a[u][f] ? a[u][f] = Ur(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1393
+ a[u][f] ? a[u][f] = qr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1394
1394
  else
1395
1395
  a[u] = l[u];
1396
1396
  else
1397
1397
  i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = v({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? v({}, l[u]) : l[u] : a[u] = l[u];
1398
1398
  return a;
1399
1399
  }, e);
1400
- }, Ur = (t, e) => function() {
1400
+ }, qr = (t, e) => function() {
1401
1401
  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];
1402
+ }, At = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], xe = ["validate", "children", "control"], et = ["effect", "deep", "renderSlots"];
1403
+ function It() {
1404
+ return [...At, ...Et, ...Dt, ...jt, ...xe, ...et];
1405
1405
  }
1406
1406
  function Vt(t, e, r) {
1407
1407
  return `[form-create ${t}]: ${e}`;
@@ -1409,15 +1409,15 @@ function Vt(t, e, r) {
1409
1409
  function tt(t, e) {
1410
1410
  console.error(Vt("err", t));
1411
1411
  }
1412
- function qr(t) {
1412
+ function Gr(t) {
1413
1413
  tt(t.toString()), console.error(t);
1414
1414
  }
1415
- function Gr(t) {
1415
+ function Hr(t) {
1416
1416
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1417
1417
  }
1418
1418
  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) {
1419
+ function _e(t, e) {
1420
+ return JSON.stringify(Ce(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1421
1421
  if (!(i && i._isVue === !0)) {
1422
1422
  if (typeof i != "function")
1423
1423
  return i;
@@ -1477,16 +1477,16 @@ function Pt(t, e) {
1477
1477
  return h.Undef(i) || !i.indexOf ? i : W(i, e);
1478
1478
  });
1479
1479
  }
1480
- let Hr = 0;
1481
- function Ve() {
1482
- const t = 370 + ++Hr;
1480
+ let zr = 0;
1481
+ function Pe() {
1482
+ const t = 370 + ++zr;
1483
1483
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1484
1484
  }
1485
1485
  function se(t, e, r) {
1486
1486
  let i = t, s;
1487
1487
  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;
1488
+ s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
1489
+ }), F(i, s, r), i;
1490
1490
  }
1491
1491
  function Ze(t, e) {
1492
1492
  return {
@@ -1500,7 +1500,7 @@ function Lt(t, e) {
1500
1500
  return Bt([t], e || !1)[0];
1501
1501
  }
1502
1502
  function Bt(t, e) {
1503
- return _e([], [...t], e || !1);
1503
+ return Ce([], [...t], e || !1);
1504
1504
  }
1505
1505
  function x(t, e) {
1506
1506
  return Y(Array.isArray(e) ? e : [e], t, { array: xe, normal: et }), t;
@@ -1509,7 +1509,7 @@ function ht(t) {
1509
1509
  const e = h.Function(t.getRule) ? t.getRule() : t;
1510
1510
  return e.type || (e.type = "input"), e;
1511
1511
  }
1512
- function zr(t, e) {
1512
+ function Jr(t, e) {
1513
1513
  return t ? (Object.keys(e || {}).forEach((r) => {
1514
1514
  e[r] && (t[r] = x(t[r] || {}, e[r]));
1515
1515
  }), t) : e;
@@ -1528,7 +1528,7 @@ function O(t, e) {
1528
1528
  try {
1529
1529
  e = t();
1530
1530
  } catch (r) {
1531
- qr(r);
1531
+ Gr(r);
1532
1532
  }
1533
1533
  return e;
1534
1534
  }
@@ -1540,7 +1540,7 @@ function Qe(t, e) {
1540
1540
  });
1541
1541
  }), r;
1542
1542
  }
1543
- function Jr(t, e) {
1543
+ function Wr(t, e) {
1544
1544
  if (h.Object(t)) {
1545
1545
  const r = {};
1546
1546
  return Object.keys(t).forEach((i) => {
@@ -1549,7 +1549,7 @@ function Jr(t, e) {
1549
1549
  } else
1550
1550
  return Qe(t, e);
1551
1551
  }
1552
- function Fe() {
1552
+ function ke() {
1553
1553
  const t = {}, e = (r) => r || "default";
1554
1554
  return {
1555
1555
  setSlot(r, i) {
@@ -1565,7 +1565,7 @@ function Fe() {
1565
1565
  const n = s();
1566
1566
  Array.isArray(n) ? i.push(...n) : i.push(n);
1567
1567
  } else h.Undef(s) || i.push(s);
1568
- }), Jr(i, r);
1568
+ }), Wr(i, r);
1569
1569
  },
1570
1570
  getSlots() {
1571
1571
  let r = [];
@@ -1588,9 +1588,9 @@ function Fe() {
1588
1588
  function Se(t, e) {
1589
1589
  return Object.setPrototypeOf(t, e), t;
1590
1590
  }
1591
- const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, fe = {
1591
+ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
1592
1592
  "==": (t, e) => JSON.stringify(t) === JSON.stringify(dt(t, e)),
1593
- "!=": (t, e) => !fe["=="](t, e),
1593
+ "!=": (t, e) => !ce["=="](t, e),
1594
1594
  ">": (t, e) => t > e,
1595
1595
  ">=": (t, e) => t >= e,
1596
1596
  "<": (t, e) => t < e,
@@ -1599,13 +1599,13 @@ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1599
1599
  return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
1600
1600
  },
1601
1601
  notOn(t, e) {
1602
- return !fe.on(t, e);
1602
+ return !ce.on(t, e);
1603
1603
  },
1604
1604
  in(t, e) {
1605
1605
  return e && e.indexOf && e.indexOf(t) > -1;
1606
1606
  },
1607
1607
  notIn(t, e) {
1608
- return !fe.in(t, e);
1608
+ return !ce.in(t, e);
1609
1609
  },
1610
1610
  between(t, e) {
1611
1611
  return t > e[0] && t < e[1];
@@ -1628,7 +1628,7 @@ function L(t, e) {
1628
1628
  t != null && (t = t[r]);
1629
1629
  }), t;
1630
1630
  }
1631
- function Wr(t) {
1631
+ function Kr(t) {
1632
1632
  const e = /{{\s*(.*?)\s*}}/g;
1633
1633
  let r;
1634
1634
  const i = {};
@@ -1642,15 +1642,27 @@ function pt(t) {
1642
1642
  n === 0 ? i = s : i += "." + s, r.push(i);
1643
1643
  }), r.join(" && ");
1644
1644
  }
1645
- const Ee = (t, e) => {
1645
+ function Nt(t) {
1646
+ const e = [];
1647
+ let r = "", i = 0;
1648
+ for (let s = 0; s < t.length; s++) {
1649
+ const n = t[s];
1650
+ n === "[" ? (i === 0 && r && (e.push({ type: "key", value: r }), r = ""), i++, r += n) : n === "]" ? (i--, r += n, i === 0 && (e.push({
1651
+ type: "bracket",
1652
+ value: Nt(r.slice(1, -1))
1653
+ }), r = "")) : n === "." && i === 0 ? r && (e.push({ type: "key", value: r }), r = "") : r += n;
1654
+ }
1655
+ return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
1656
+ }
1657
+ const De = (t, e) => {
1646
1658
  if (!(!t || t === e || !t.$props)) {
1647
1659
  if (t.$props.formCreateInject)
1648
1660
  return t.$props.formCreateInject;
1649
1661
  if (t.$parent)
1650
- return Ee(t.$parent, e);
1662
+ return De(t.$parent, e);
1651
1663
  }
1652
1664
  };
1653
- function Kr(t, e, r) {
1665
+ function Xr(t, e, r) {
1654
1666
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1655
1667
  return {
1656
1668
  name: i,
@@ -1701,102 +1713,102 @@ function Kr(t, e, r) {
1701
1713
  return this.fc.render();
1702
1714
  },
1703
1715
  setup(s) {
1704
- const n = ur().proxy;
1705
- fr("parentFC", n);
1706
- const o = cr("parentFC", null);
1716
+ const n = fr().proxy;
1717
+ cr("parentFC", n);
1718
+ const o = hr("parentFC", null);
1707
1719
  let a = o;
1708
1720
  if (o)
1709
1721
  for (; a.parent; )
1710
1722
  a = a.parent;
1711
1723
  else
1712
1724
  a = n;
1713
- const { rule: l, value: u, subForm: f, inFor: d } = ut(s), g = ie({
1725
+ const { rule: l, value: u, subForm: f, inFor: d } = ut(s), p = ie({
1714
1726
  ctxInject: {},
1715
1727
  destroyed: !1,
1716
1728
  isShow: !0,
1717
1729
  unique: 1,
1718
1730
  renderRule: [...l.value || []],
1719
1731
  updateValue: JSON.stringify(u.value || {})
1720
- }), m = new t(n), y = m.api(), _ = d.value, D = () => {
1732
+ }), y = new t(n), g = y.api(), _ = d.value, D = () => {
1721
1733
  if (o) {
1722
- const F = Ee(n, o);
1723
- if (F) {
1724
- let k;
1725
- _ ? (k = H(F.getSubForm()), k.push(y)) : k = y, F.subForm(k);
1734
+ const k = De(n, o);
1735
+ if (k) {
1736
+ let R;
1737
+ _ ? (R = H(k.getSubForm()), R.push(g)) : R = g, k.subForm(R);
1726
1738
  }
1727
1739
  }
1728
1740
  }, ee = () => {
1729
- const F = Ee(n, o);
1730
- if (F)
1741
+ const k = De(n, o);
1742
+ if (k)
1731
1743
  if (_) {
1732
- const k = H(F.getSubForm()), N = k.indexOf(y);
1733
- N > -1 && k.splice(N, 1);
1744
+ const R = H(k.getSubForm()), N = R.indexOf(g);
1745
+ N > -1 && R.splice(N, 1);
1734
1746
  } else
1735
- F.subForm();
1747
+ k.subForm();
1736
1748
  };
1737
- let P = null;
1738
- hr(() => {
1749
+ let I = null;
1750
+ dr(() => {
1739
1751
  B(() => {
1740
- 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 || "";
1752
+ let k = "";
1753
+ const R = s.option && s.option.globalClass || {};
1754
+ Object.keys(R).forEach((N) => {
1755
+ let pe = "";
1756
+ R[N].style && Object.keys(R[N].style).forEach((z) => {
1757
+ pe += be(z) + ":" + R[N].style[z] + ";";
1758
+ }), R[N].content && (pe += R[N].content + ";"), pe && (k += `.${N}{${pe}}`);
1759
+ }), s.option && s.option.style && (k += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = k || "";
1748
1760
  }, () => {
1749
1761
  });
1750
1762
  });
1751
1763
  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);
1764
+ y.bus.$emit("$loadData.$topForm");
1765
+ }, 100), he = ne(function() {
1766
+ y.bus.$emit("$loadData.$scopeForm");
1767
+ }, 100), Le = ne(() => {
1768
+ y.bus.$emit("$loadData.$form");
1769
+ }, 100), de = (k) => {
1770
+ y.bus.$emit("change-$form." + k);
1759
1771
  };
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();
1772
+ return pr(() => {
1773
+ o && (g.top.bus.$on("$loadData.$form", T), g.top.bus.$on("change", de)), g !== g.scope && g.scope.bus.$on("$loadData.$scopeForm", he), y.mounted();
1764
1774
  }), mr(() => {
1765
- m.updated();
1766
- }), B(f, (F) => {
1767
- F ? D() : ee();
1775
+ o && (g.top.bus.$off("$loadData.$form", T), g.top.bus.$off("change", de)), g !== g.scope && g.scope.bus.$off("$loadData.$scopeForm", he), ee(), p.destroyed = !0, y.unmount(), I && (I.parentNode || I.parentElement) && document.head.removeChild(I);
1776
+ }), gr(() => {
1777
+ y.updated();
1778
+ }), B(f, (k) => {
1779
+ k ? D() : ee();
1768
1780
  }, { immediate: !0 }), B(() => s.option, () => {
1769
- m.initOptions(), y.refresh();
1770
- }, { 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());
1781
+ y.initOptions(), g.refresh();
1782
+ }, { deep: !0 }), B(() => [...l.value], (k) => {
1783
+ y.$handle.isBreakWatch() || k.length === p.renderRule.length && k.every((R) => p.renderRule.indexOf(R) > -1) || (y.$handle.updateAppendData(), y.$handle.reloadRule(l.value), n.renderRule());
1772
1784
  }), B(() => [s.disabled, s.preview], () => {
1773
- y.refresh();
1774
- }), B(u, (F) => {
1775
- ve(F || {}) !== g.updateValue && (y.config.forceCoverValue ? y.coverValue(F || {}) : y.setValue(F || {}));
1785
+ g.refresh();
1786
+ }), B(u, (k) => {
1787
+ _e(k || {}) !== p.updateValue && (g.config.forceCoverValue ? g.coverValue(k || {}) : g.setValue(k || {}));
1776
1788
  }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1777
- y.coverValue({}), m.$handle.updateAppendData(), A(() => {
1778
- A(() => {
1779
- y.clearValidateState();
1789
+ g.coverValue({}), y.$handle.updateAppendData(), V(() => {
1790
+ V(() => {
1791
+ g.clearValidateState();
1780
1792
  });
1781
1793
  });
1782
1794
  }, { 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),
1795
+ fc: ge(y),
1796
+ parent: o && ge(o),
1797
+ top: ge(a),
1798
+ fapi: ge(g)
1799
+ }, ut(p)), {
1800
+ getGroupInject: () => De(n, o),
1789
1801
  refresh() {
1790
- ++g.unique;
1802
+ ++p.unique;
1791
1803
  },
1792
1804
  renderRule() {
1793
- g.renderRule = [...l.value || []];
1805
+ p.renderRule = [...l.value || []];
1794
1806
  },
1795
- 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());
1807
+ updateValue(k) {
1808
+ if (p.destroyed) return;
1809
+ const R = _e(k);
1810
+ p.updateValue !== R && (p.updateValue = R, n.$emit("update:value", k), V(() => {
1811
+ Le(), o ? f.value || he() : (T(), he());
1800
1812
  }));
1801
1813
  }
1802
1814
  });
@@ -1806,7 +1818,7 @@ function Kr(t, e, r) {
1806
1818
  }
1807
1819
  };
1808
1820
  }
1809
- function Nt() {
1821
+ function Mt() {
1810
1822
  return {
1811
1823
  props: {},
1812
1824
  on: {},
@@ -1818,53 +1830,53 @@ function Nt() {
1818
1830
  value: void 0
1819
1831
  };
1820
1832
  }
1821
- function V(t, e) {
1833
+ function P(t, e) {
1822
1834
  return (r, i, s, n = {}) => {
1823
1835
  const o = new rt(t, r, i, s, n);
1824
1836
  return e && (h.Function(e) ? e(o) : o.props(e)), o;
1825
1837
  };
1826
1838
  }
1827
1839
  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;
1840
+ this._data = C(Mt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1829
1841
  }
1830
1842
  C(rt.prototype, {
1831
1843
  getRule() {
1832
1844
  return this._data;
1833
1845
  },
1834
1846
  setProp(t, e) {
1835
- return S(this._data, t, e), this;
1847
+ return F(this._data, t, e), this;
1836
1848
  },
1837
1849
  _clone() {
1838
1850
  const t = new this.constructor();
1839
1851
  return t._data = Lt(this._data), t;
1840
1852
  }
1841
1853
  });
1842
- function Mt(t) {
1854
+ function Ut(t) {
1843
1855
  t.forEach((e) => {
1844
1856
  rt.prototype[e] = function(r) {
1845
1857
  return x(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1846
1858
  };
1847
1859
  });
1848
1860
  }
1849
- Mt(At());
1850
- const Ut = V("");
1851
- function Xr(t, e, r) {
1852
- let i = Ut("", e);
1861
+ Ut(It());
1862
+ const qt = P("");
1863
+ function Zr(t, e, r) {
1864
+ let i = qt("", e);
1853
1865
  return i._data.type = t, i._data.title = r, i;
1854
1866
  }
1855
1867
  function mt(t, e, r, i) {
1856
- let s = Ut("", r);
1868
+ let s = qt("", r);
1857
1869
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1858
1870
  }
1859
- function Zr() {
1871
+ function Qr() {
1860
1872
  return {
1861
- create: Xr,
1873
+ create: Zr,
1862
1874
  createTmp: mt,
1863
1875
  template: mt,
1864
- factory: V
1876
+ factory: P
1865
1877
  };
1866
1878
  }
1867
- function Qr(t, e, r) {
1879
+ function Yr(t, e, r) {
1868
1880
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1869
1881
  return s.status = r.status, s.url = t, s;
1870
1882
  }
@@ -1878,7 +1890,7 @@ function gt(t) {
1878
1890
  return e;
1879
1891
  }
1880
1892
  }
1881
- function qt(t) {
1893
+ function Gt(t) {
1882
1894
  if (typeof XMLHttpRequest == "undefined")
1883
1895
  return;
1884
1896
  const e = new XMLHttpRequest();
@@ -1893,7 +1905,7 @@ function qt(t) {
1893
1905
  t.onError(o);
1894
1906
  }, e.onload = function() {
1895
1907
  if (e.status < 200 || e.status >= 300)
1896
- return t.onError(Qr(r, t, e), gt(e));
1908
+ return t.onError(Yr(r, t, e), gt(e));
1897
1909
  t.onSuccess(gt(e));
1898
1910
  }, e.open(t.method || "get", r, !0);
1899
1911
  let i;
@@ -1907,7 +1919,7 @@ function qt(t) {
1907
1919
  }
1908
1920
  function yt(t, e, r) {
1909
1921
  return new Promise((i, s) => {
1910
- (e || qt)(U(v({}, t), {
1922
+ (e || Gt)(U(v({}, t), {
1911
1923
  onSuccess(n) {
1912
1924
  let o = (l) => l;
1913
1925
  const a = W(t.parse);
@@ -1919,10 +1931,10 @@ function yt(t, e, r) {
1919
1931
  }));
1920
1932
  });
1921
1933
  }
1922
- function be(t) {
1934
+ function ve(t) {
1923
1935
  return G(t);
1924
1936
  }
1925
- function Yr(t) {
1937
+ function xr(t) {
1926
1938
  function e(n) {
1927
1939
  return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1928
1940
  }
@@ -1930,7 +1942,7 @@ function Yr(t) {
1930
1942
  h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1931
1943
  const u = t.fieldCtx[l] || t.nameCtx[l];
1932
1944
  u && u.forEach((f) => {
1933
- S(f.rule, o, a), t.$render.clearCache(f);
1945
+ F(f.rule, o, a), t.$render.clearCache(f);
1934
1946
  });
1935
1947
  });
1936
1948
  }
@@ -2006,14 +2018,14 @@ function Yr(t) {
2006
2018
  if (n == null || typeof n == "boolean") {
2007
2019
  const o = {};
2008
2020
  return Object.keys(t.form).forEach((a) => {
2009
- (n === !0 || t.ignoreFields.indexOf(a) === -1) && (o[a] = be(t.form[a]));
2021
+ (n === !0 || t.ignoreFields.indexOf(a) === -1) && (o[a] = ve(t.form[a]));
2010
2022
  }), o;
2011
2023
  } else
2012
2024
  return e(n).reduce((o, a) => (o[a] = s.getValue(a), o), {});
2013
2025
  },
2014
2026
  getValue(n) {
2015
2027
  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;
2028
+ return o ? ve(o.rule.value) : t.options.appendValue !== !1 && E(t.appendData, n) ? ve(t.appendData[n]) : void 0;
2017
2029
  },
2018
2030
  coverValue(n) {
2019
2031
  const o = v({}, n || {});
@@ -2023,7 +2035,7 @@ function Yr(t) {
2023
2035
  if (l) {
2024
2036
  const u = E(n, a);
2025
2037
  l.forEach((f) => {
2026
- f.rule.value = u ? n[a] : void 0;
2038
+ F(f.rule, "value", u ? n[a] : void 0);
2027
2039
  }), delete o[a];
2028
2040
  }
2029
2041
  }), C(t.appendData, o);
@@ -2036,7 +2048,7 @@ function Yr(t) {
2036
2048
  const l = t.fieldCtx[a];
2037
2049
  if (!l) return t.appendData[a] = o[a];
2038
2050
  l.forEach((u) => {
2039
- u.rule.value = o[a];
2051
+ F(u.rule, "value", o[a]);
2040
2052
  });
2041
2053
  });
2042
2054
  }, !0);
@@ -2100,7 +2112,7 @@ function Yr(t) {
2100
2112
  disabled(n, o) {
2101
2113
  e(o).forEach((a) => {
2102
2114
  t.getCtxs(a).forEach((l) => {
2103
- S(l.rule.props, "disabled", !!n);
2115
+ F(l.rule.props, "disabled", !!n);
2104
2116
  });
2105
2117
  }), t.refresh();
2106
2118
  },
@@ -2158,7 +2170,7 @@ function Yr(t) {
2158
2170
  t.$manager.updateOptions(t.options), s.refresh();
2159
2171
  },
2160
2172
  hideForm: (n) => {
2161
- S(t.vm, "isShow", !n);
2173
+ F(t.vm, "isShow", !n);
2162
2174
  },
2163
2175
  changeStatus: () => t.changeStatus,
2164
2176
  clearChangeStatus: () => {
@@ -2203,7 +2215,7 @@ function Yr(t) {
2203
2215
  },
2204
2216
  setEffect(n, o, a) {
2205
2217
  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));
2218
+ l && o && (o[0] === "$" && (o = o.substr(1)), E(l.rule, "$" + o) && F(l.rule, "$" + o, a), E(l.rule, "effect") || F(l.rule, "effect", {}), F(l.rule.effect, o, a));
2207
2219
  },
2208
2220
  clearEffectData(n, o) {
2209
2221
  const a = t.getCtx(n);
@@ -2223,11 +2235,11 @@ function Yr(t) {
2223
2235
  resetFields(n) {
2224
2236
  e(n).forEach((o) => {
2225
2237
  t.getCtxs(o).forEach((a) => {
2226
- t.$render.clearCache(a), a.rule.value = be(a.defaultValue);
2238
+ t.$render.clearCache(a), a.rule.value = ve(a.defaultValue);
2227
2239
  });
2228
- }), A(() => {
2229
- A(() => {
2230
- A(() => {
2240
+ }), V(() => {
2241
+ V(() => {
2242
+ V(() => {
2231
2243
  s.clearValidateState(n);
2232
2244
  });
2233
2245
  });
@@ -2243,7 +2255,7 @@ function Yr(t) {
2243
2255
  return O(() => s.method(n, o)(...a));
2244
2256
  },
2245
2257
  toJson(n) {
2246
- return ve(s.rule, n);
2258
+ return _e(s.rule, n);
2247
2259
  },
2248
2260
  trigger(n, o, ...a) {
2249
2261
  const l = s.el(n);
@@ -2267,8 +2279,8 @@ function Yr(t) {
2267
2279
  return [];
2268
2280
  const u = [];
2269
2281
  return ((d) => {
2270
- d && d.forEach((g) => {
2271
- typeof g == "object" && (g.field && u.push(g), u.push(...s.getChildrenRuleList(g)));
2282
+ d && d.forEach((p) => {
2283
+ typeof p == "object" && (p.field && u.push(p), u.push(...s.getChildrenRuleList(p)));
2272
2284
  });
2273
2285
  })(a ? a.loadChildrenPending() : l.children), u;
2274
2286
  },
@@ -2284,13 +2296,13 @@ function Yr(t) {
2284
2296
  }
2285
2297
  },
2286
2298
  getChildrenFormData(n, o) {
2287
- return s.getChildrenRuleList(n).reduce((l, u) => ((u.ignore !== !0 || o === !0) && (l[u.field] = be(u.value)), l), {});
2299
+ return s.getChildrenRuleList(n).reduce((l, u) => ((u.ignore !== !0 || o === !0) && (l[u.field] = ve(u.value)), l), {});
2288
2300
  },
2289
2301
  setChildrenFormData(n, o, a) {
2290
2302
  const l = s.getChildrenRuleList(n);
2291
2303
  t.deferSyncValue(() => {
2292
2304
  l.forEach((u) => {
2293
- E(o, u.field) ? u.value = o[u.field] : a && (u.value = void 0);
2305
+ E(o, u.field) ? F(u, "value", o[u.field]) : a && F(u, "value", void 0);
2294
2306
  });
2295
2307
  });
2296
2308
  },
@@ -2302,9 +2314,9 @@ function Yr(t) {
2302
2314
  getGlobalData(n) {
2303
2315
  return new Promise((o, a) => {
2304
2316
  let l = s.options.globalData[n];
2305
- l || o(t.fc.loadData[n]), l.type === "fetch" ? s.fetch(l).then((u) => {
2317
+ l ? l.type === "fetch" ? s.fetch(l).then((u) => {
2306
2318
  o(u);
2307
- }).catch(a) : o(l.data);
2319
+ }).catch(a) : o(l.data) : o(t.fc.loadData[n]);
2308
2320
  });
2309
2321
  },
2310
2322
  renderRule(n, o, a) {
@@ -2341,11 +2353,11 @@ function Yr(t) {
2341
2353
  watchFetch(n, o, a, l) {
2342
2354
  return t.fc.watchLoadData((u, f) => {
2343
2355
  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) => {
2356
+ d = t.loadFetchVar(d, u), !(l && l(d, f) === !1) && t.beforeFetch(d).then(() => yt(d, t.fc.create.fetch, s).then((p) => {
2357
+ O(() => d.onSuccess && d.onSuccess(p)), o && o(p, f);
2358
+ }).catch((p) => {
2359
+ O(() => d.onError && d.onError(p)), a && a(p);
2360
+ })).catch((p) => {
2349
2361
  });
2350
2362
  }, n.wait == null ? 1e3 : n.wait);
2351
2363
  },
@@ -2375,7 +2387,7 @@ function Yr(t) {
2375
2387
  };
2376
2388
  }), s.changeValue = s.changeField = s.setValue, s;
2377
2389
  }
2378
- function xr(t) {
2390
+ function ei(t) {
2379
2391
  C(t.prototype, {
2380
2392
  initCache() {
2381
2393
  this.clearCacheAll();
@@ -2411,12 +2423,12 @@ function q(t) {
2411
2423
  const e = t.replace(/(-[a-z])/g, function(r) {
2412
2424
  return r.replace("-", "").toLocaleUpperCase();
2413
2425
  });
2414
- return Gt(e);
2426
+ return Ht(e);
2415
2427
  }
2416
- function Gt(t) {
2428
+ function Ht(t) {
2417
2429
  return t.replace(t[0], t[0].toLowerCase());
2418
2430
  }
2419
- function ei(t) {
2431
+ function ti(t) {
2420
2432
  C(t.prototype, {
2421
2433
  initRender() {
2422
2434
  this.cacheConfig = {};
@@ -2425,7 +2437,7 @@ function ei(t) {
2425
2437
  const r = (i) => {
2426
2438
  if (i) {
2427
2439
  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);
2440
+ return e.rule.field && (s = i.$scopedSlots["field-" + be(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + be(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2429
2441
  }
2430
2442
  };
2431
2443
  return r(this.vm);
@@ -2434,7 +2446,7 @@ function ei(t) {
2434
2446
  if (!this.vm.isShow)
2435
2447
  return;
2436
2448
  this.$manager.beforeRender();
2437
- const e = Fe();
2449
+ const e = ke();
2438
2450
  return this.sort.forEach((r) => {
2439
2451
  this.renderSlot(e, this.$handle.ctxs[r]);
2440
2452
  }), this.$manager.render(e);
@@ -2445,7 +2457,7 @@ function ei(t) {
2445
2457
  })) : e.setSlot(r.rule.slot, this.renderCtx(r, i));
2446
2458
  },
2447
2459
  mergeGlobal(e) {
2448
- this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ge(() => {
2460
+ this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ye(() => {
2449
2461
  const i = this.$handle.options.global;
2450
2462
  return x({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2451
2463
  })), e.prop = x({}, [this.cacheConfig[e.trueType].value, e.prop]));
@@ -2498,20 +2510,20 @@ function ei(t) {
2498
2510
  l.length && i.slotUpdate && O(() => i.slotUpdate(u));
2499
2511
  let f = [];
2500
2512
  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) => {
2513
+ e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach((g) => {
2502
2514
  f.push(this.renderRule({
2503
2515
  type: "template",
2504
- slot: y
2516
+ slot: g
2505
2517
  }, (() => {
2506
- if (h.Function(n.renderSlots[y]))
2507
- return O(() => n.renderSlots[y]());
2508
- const _ = this.parseSide(n.renderSlots[y], e);
2518
+ if (h.Function(n.renderSlots[g]))
2519
+ return O(() => n.renderSlots[g]());
2520
+ const _ = this.parseSide(n.renderSlots[g], e);
2509
2521
  return this.renderRule(_);
2510
2522
  })()));
2511
2523
  });
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;
2524
+ const p = this.getTypeSlot(e);
2525
+ let y;
2526
+ return p ? (u.children = f, y = p(u)) : y = a ? e.parser.preview(We(f), e) : e.parser.render(We(f), e), y = this.renderSides(y, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), y = this.$manager.makeWrap(e, y)), e.none && (Array.isArray(y) ? y = y.map((g) => !g || !g.tag ? g : this.none(g)) : y = this.none(y)), o && this.setCache(e, () => this.stable(y), r), y;
2515
2527
  }, this.setCache(e, s, r);
2516
2528
  }
2517
2529
  return (...s) => {
@@ -2592,7 +2604,7 @@ function ei(t) {
2592
2604
  if (l.indexOf("native.") === 0)
2593
2605
  o[l.replace("native.", "")] = n[l], delete n[l];
2594
2606
  else if (this.$handle.options.transformEventName !== !1) {
2595
- const u = $e(l);
2607
+ const u = be(l);
2596
2608
  u !== l.toLowerCase() && !n[u] && (n[u] = n[l]);
2597
2609
  }
2598
2610
  }), e.prop.on = n;
@@ -2648,7 +2660,7 @@ function ei(t) {
2648
2660
  },
2649
2661
  renderChildren(e, r, i) {
2650
2662
  if (!h.trueArray(e)) return [];
2651
- const s = Fe();
2663
+ const s = ke();
2652
2664
  return e.map((n) => {
2653
2665
  if (n) {
2654
2666
  if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
@@ -2657,7 +2669,7 @@ function ei(t) {
2657
2669
  }) : n);
2658
2670
  if (n.__fc__)
2659
2671
  return this.renderSlot(s, n.__fc__, r);
2660
- n.type && A(() => {
2672
+ n.type && V(() => {
2661
2673
  this.$handle.loadChildren(e, r), this.$handle.refresh();
2662
2674
  });
2663
2675
  }
@@ -2665,7 +2677,7 @@ function ei(t) {
2665
2677
  },
2666
2678
  defaultRender(e, r) {
2667
2679
  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);
2680
+ return i.component ? typeof i.component == "string" ? this.vNode.make(i.component, i, r) : this.vNode.makeComponent(i.component, i, r) : this.vNode[e.type] ? this.vNode[e.type](i, r) : this.vNode[e.originType] ? this.vNode[e.originType](i, r) : this.vNode.make(Ht(i.type), i, r);
2669
2681
  },
2670
2682
  createChildrenVnodes(e, r, i) {
2671
2683
  this.force = i !== !1, this.tmpInput = r;
@@ -2674,7 +2686,7 @@ function ei(t) {
2674
2686
  },
2675
2687
  createRuleVnode(e, r, i) {
2676
2688
  this.force = i !== !1, this.tmpInput = r;
2677
- const s = Fe();
2689
+ const s = ke();
2678
2690
  return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
2679
2691
  },
2680
2692
  renderRule(e, r, i) {
@@ -2689,7 +2701,7 @@ function ei(t) {
2689
2701
  a && (s = q(a));
2690
2702
  }
2691
2703
  if (!s) return;
2692
- const n = Fe();
2704
+ const n = ke();
2693
2705
  h.trueArray(e.children) && e.children.forEach((a) => {
2694
2706
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2695
2707
  });
@@ -2698,7 +2710,7 @@ function ei(t) {
2698
2710
  }
2699
2711
  });
2700
2712
  }
2701
- let ti = 1;
2713
+ let ri = 1;
2702
2714
  function it(t) {
2703
2715
  C(this, {
2704
2716
  $handle: t,
@@ -2708,7 +2720,7 @@ function it(t) {
2708
2720
  vNode: new t.fc.CreateNode(t.vm),
2709
2721
  force: !1,
2710
2722
  tmpInput: null,
2711
- id: ti++
2723
+ id: ri++
2712
2724
  }), Tt(this, {
2713
2725
  options() {
2714
2726
  return t.options;
@@ -2718,9 +2730,9 @@ function it(t) {
2718
2730
  }
2719
2731
  }), this.initCache(), this.initRender();
2720
2732
  }
2721
- xr(it);
2722
2733
  ei(it);
2723
- function ri(t) {
2734
+ ti(it);
2735
+ function ii(t) {
2724
2736
  C(t.prototype, {
2725
2737
  parseInjectEvent(e, r) {
2726
2738
  const i = e.inject || this.options.injectEvent;
@@ -2747,17 +2759,17 @@ function ri(t) {
2747
2759
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: l } = s, u = s[r ? "emit" : "nativeEmit"] || [];
2748
2760
  return h.trueArray(u) && u.forEach((f) => {
2749
2761
  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, ..._);
2762
+ let d, p = n || o || a;
2763
+ if (h.Object(f) && (d = f.inject, f = f.name, p = f.prefix || p), p) {
2764
+ r || (p = `native-${p}`);
2765
+ const y = be(`${p}-${f}`), g = (..._) => {
2766
+ this.vm.$emit(y, ..._), this.vm.$emit("emit-event", y, ..._), this.bus.$emit(y, ..._);
2755
2767
  };
2756
- if (y.__emit = !0, !d && l === !1)
2757
- i[f] = y;
2768
+ if (g.__emit = !0, !d && l === !1)
2769
+ i[f] = g;
2758
2770
  else {
2759
2771
  let _ = d || l || this.options.injectEvent;
2760
- i[f] = h.Undef(_) ? y : this.inject(s, y, _);
2772
+ i[f] = h.Undef(_) ? g : this.inject(s, g, _);
2761
2773
  }
2762
2774
  }
2763
2775
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2787,24 +2799,36 @@ function ri(t) {
2787
2799
  },
2788
2800
  loadStrVar(e, r, i) {
2789
2801
  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);
2802
+ const s = e, n = Kr(e), o = (u) => {
2803
+ let f = !1, d;
2804
+ if (i && u.indexOf("$form.") === 0) {
2805
+ const p = u.split(".");
2806
+ p.shift(), E(i.value, p[0]) && (f = !0, d = r ? r({
2807
+ id: "$form." + p[0] + "_" + i.rule.__fc__.id,
2808
+ getValue: () => L(i.value, p)
2809
+ }) : L(i.value, p));
2810
+ }
2811
+ return f || (d = r ? r(u) : this.fc.getLoadData(u)), d;
2812
+ }, a = (u) => {
2813
+ const f = [];
2814
+ u.forEach((p) => {
2815
+ p.key ? f.push(p.key) : p.children && f.push(a(p.children));
2816
+ });
2817
+ let d = !1;
2818
+ return f.forEach((p, y) => {
2819
+ p != null && (p.indexOf("'") === 0 || p.indexOf('"') === 0) && (f[y] = p.slice(1, -1), d = !0);
2820
+ }), f.length === 1 && (d || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2821
+ };
2822
+ let l;
2823
+ if (n.forEach((u) => {
2824
+ const f = u.split("||"), d = f[0].trim();
2825
+ if (d) {
2826
+ const p = (f[1] || "").trim(), y = Nt(d);
2827
+ let g = O(() => a(y));
2828
+ (g == null || g === "") && f.length > 1 && (g = p), l = g, e = e.replaceAll(`{{${u}}}`, g == null ? "" : g);
2805
2829
  }
2806
2830
  }), n.length === 1 && s === `{{${n[0]}}}`)
2807
- return o;
2831
+ return l;
2808
2832
  }
2809
2833
  return e;
2810
2834
  },
@@ -2824,12 +2848,12 @@ function ri(t) {
2824
2848
  });
2825
2849
  }
2826
2850
  const $t = ["hook:updated", "hook:mounted"];
2827
- function ii(t) {
2851
+ function ni(t) {
2828
2852
  C(t.prototype, {
2829
2853
  usePage() {
2830
2854
  const e = this.options.page;
2831
2855
  if (!e) return;
2832
- let r = 25, i = ni(this.rules);
2856
+ let r = 25, i = si(this.rules);
2833
2857
  h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), C(this, {
2834
2858
  first: r,
2835
2859
  limit: i,
@@ -2844,10 +2868,10 @@ function ii(t) {
2844
2868
  }
2845
2869
  });
2846
2870
  }
2847
- function ni(t) {
2871
+ function si(t) {
2848
2872
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2849
2873
  }
2850
- function si(t) {
2874
+ function oi(t) {
2851
2875
  C(t.prototype, {
2852
2876
  clearNextTick() {
2853
2877
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
@@ -2862,15 +2886,15 @@ function si(t) {
2862
2886
  }
2863
2887
  });
2864
2888
  }
2865
- function oi(t) {
2889
+ function ai(t) {
2866
2890
  Object.defineProperties(t.origin, {
2867
- __fc__: Ze(me(t), !0)
2891
+ __fc__: Ze(ge(t), !0)
2868
2892
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2869
- __fc__: Ze(me(t), !0)
2893
+ __fc__: Ze(ge(t), !0)
2870
2894
  });
2871
2895
  }
2872
- function Ht(t, e, r) {
2873
- const i = Ve(), s = !!e.field;
2896
+ function zt(t, e, r) {
2897
+ const i = Pe(), s = !!e.field;
2874
2898
  C(this, {
2875
2899
  id: i,
2876
2900
  ref: i,
@@ -2897,9 +2921,9 @@ function Ht(t, e, r) {
2897
2921
  exportEl: void 0,
2898
2922
  defaultValue: s ? G(r) : void 0,
2899
2923
  field: e.field || void 0
2900
- }), this.updateKey(), oi(this), this.update(t, !0);
2924
+ }), this.updateKey(), ai(this), this.update(t, !0);
2901
2925
  }
2902
- C(Ht.prototype, {
2926
+ C(zt.prototype, {
2903
2927
  getParentGroup() {
2904
2928
  let t = this.parent;
2905
2929
  for (; t; ) {
@@ -2969,7 +2993,7 @@ C(Ht.prototype, {
2969
2993
  t === void 0 ? this.payload = {} : delete this.payload[t];
2970
2994
  },
2971
2995
  updateKey(t) {
2972
- this.key = Ve(), t && this.parent && this.parent.updateKey(t);
2996
+ this.key = Pe(), t && this.parent && this.parent.updateKey(t);
2973
2997
  },
2974
2998
  updateType() {
2975
2999
  this.originType = this.rule.type, this.type = q(this.rule.type), this.trueType = this.$handle.getType(this.originType);
@@ -2985,6 +3009,9 @@ C(Ht.prototype, {
2985
3009
  initNone() {
2986
3010
  this.none = !(h.Undef(this.prop.display) || this.prop.display);
2987
3011
  },
3012
+ hasHidden() {
3013
+ return !!this.rule.hidden || (this.parent ? this.parent.hasHidden() : !1);
3014
+ },
2988
3015
  injectValidate() {
2989
3016
  return this.prop.validate;
2990
3017
  },
@@ -3046,11 +3073,11 @@ C(Ht.prototype, {
3046
3073
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
3047
3074
  }
3048
3075
  });
3049
- function ai(t) {
3076
+ function li(t) {
3050
3077
  C(t.prototype, {
3051
3078
  nextRefresh(e) {
3052
3079
  const r = this.loadedId;
3053
- A(() => {
3080
+ V(() => {
3054
3081
  r === this.loadedId && (e ? e() : this.refresh());
3055
3082
  });
3056
3083
  },
@@ -3058,7 +3085,7 @@ function ai(t) {
3058
3085
  const r = ht(e);
3059
3086
  return Object.defineProperties(r, {
3060
3087
  __origin__: Ze(e, !0)
3061
- }), li(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3088
+ }), ui(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3062
3089
  i && this.loadFn(i, r);
3063
3090
  }), this.loadCtrl(r), r.update && (r.update = W(r.update)), r;
3064
3091
  },
@@ -3108,27 +3135,27 @@ function ai(t) {
3108
3135
  let l = ht(o);
3109
3136
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3110
3137
  this.fc.targetFormDriver("loadRule", { rule: l, api: this.api }, this.fc), this.ruleEffect(l, "init", { repeat: u() }), u() && this.vm.$emit("repeat-field", o, this.api);
3111
- let f, d = !1, g = !!o.__fc__, m = l.value;
3112
- if (g) {
3113
- if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3138
+ let f, d = !1, p = !!o.__fc__, y = l.value;
3139
+ if (p) {
3140
+ if (f = o.__fc__, y = f.defaultValue, f.deleted) {
3114
3141
  if (bt(f))
3115
3142
  return;
3116
3143
  f.update(this);
3117
3144
  } else if (!f.check(this)) {
3118
3145
  if (bt(f))
3119
3146
  return;
3120
- e[a] = o = o._clone ? o._clone() : Pt(ve(o)), f = null, d = !0;
3147
+ e[a] = o = o._clone ? o._clone() : Pt(_e(o)), f = null, d = !0;
3121
3148
  }
3122
3149
  }
3123
3150
  if (f)
3124
3151
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3125
3152
  else {
3126
3153
  const D = this.parseRule(o);
3127
- f = new Ht(this, D, m), this.bindParser(f);
3154
+ f = new zt(this, D, y), this.bindParser(f);
3128
3155
  }
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");
3130
- const y = f.loadChildrenPending();
3131
- if (f.parser.loadChildren === !1 || s(y, f), !r) {
3156
+ [!1, !0].forEach((D) => this.parseEmit(f, D)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !d && !p && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3157
+ const g = f.loadChildrenPending();
3158
+ if (f.parser.loadChildren === !1 || s(g, f), !r) {
3132
3159
  const D = i(a);
3133
3160
  D > -1 || !a ? this.sort.splice(D + 1, 0, f.id) : this.sort.push(f.id);
3134
3161
  }
@@ -3143,16 +3170,16 @@ function ai(t) {
3143
3170
  return e.input && e.rule.control && this.useCtrl(e);
3144
3171
  },
3145
3172
  useCtrl(e) {
3146
- const r = ui(e), i = [], s = this.api;
3173
+ const r = fi(e), i = [], s = this.api;
3147
3174
  if (!r.length) return !1;
3148
3175
  for (let a = 0; a < r.length; a++) {
3149
3176
  const l = r[a], u = l.handle || function(d) {
3150
- return (fe[l.condition || "=="] || fe["=="])(d, l.value);
3177
+ return (ce[l.condition || "=="] || ce["=="])(d, l.value);
3151
3178
  };
3152
3179
  if (!h.trueArray(l.rule)) continue;
3153
3180
  const f = U(v({}, l), {
3154
3181
  valid: O(() => u(e.rule.value, s)),
3155
- ctrl: fi(e, l.rule),
3182
+ ctrl: ci(e, l.rule),
3156
3183
  isHidden: h.String(l.rule[0])
3157
3184
  });
3158
3185
  f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || i.push(f);
@@ -3161,16 +3188,16 @@ function ai(t) {
3161
3188
  const n = [];
3162
3189
  let o = !1;
3163
3190
  return this.deferSyncValue(() => {
3164
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: g, ctrl: m, method: y }) => {
3191
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: p, ctrl: y, method: g }) => {
3165
3192
  if (a) {
3166
3193
  l ? e.ctrlRule.push({
3167
3194
  __ctrl: !0,
3168
3195
  children: u,
3169
3196
  valid: l
3170
- }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3171
- y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((_) => {
3197
+ }) : y && e.ctrlRule.splice(e.ctrlRule.indexOf(y) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3198
+ g === "disabled" || g === "enabled" ? this.api.disabled(!l, u) : g === "display" || g === "show" ? this.api.display(l, u) : g === "required" ? (u.forEach((_) => {
3172
3199
  this.api.setEffect(_, "required", l);
3173
- }), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3200
+ }), l || this.api.clearValidateState(u)) : g === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
3174
3201
  });
3175
3202
  return;
3176
3203
  }
@@ -3183,17 +3210,17 @@ function ai(t) {
3183
3210
  children: u
3184
3211
  };
3185
3212
  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, _);
3213
+ f ? s.prepend(_, f, p) : d || p ? s.append(_, d || e.id, p) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3187
3214
  });
3188
3215
  } else {
3189
- e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3190
- const _ = Q(m);
3216
+ e.ctrlRule.splice(e.ctrlRule.indexOf(y), 1);
3217
+ const _ = Q(y);
3191
3218
  _ && _.rm();
3192
3219
  }
3193
3220
  });
3194
3221
  }), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
3195
3222
  n.forEach((a) => a());
3196
- }) : n.length && A(() => {
3223
+ }) : n.length && V(() => {
3197
3224
  n.forEach((a) => a());
3198
3225
  })), this.vm.$emit("control", e.origin, this.api), this.effect(e, "control"), o;
3199
3226
  },
@@ -3215,17 +3242,17 @@ function ai(t) {
3215
3242
  }
3216
3243
  });
3217
3244
  }
3218
- function li(t) {
3219
- const e = Nt();
3245
+ function ui(t) {
3246
+ const e = Mt();
3220
3247
  return Object.keys(e).forEach((r) => {
3221
- E(t, r) || S(t, r, e[r]);
3248
+ E(t, r) || F(t, r, e[r]);
3222
3249
  }), t;
3223
3250
  }
3224
- function ui(t) {
3251
+ function fi(t) {
3225
3252
  const e = t.rule.control || [];
3226
3253
  return h.Object(e) ? [e] : e;
3227
3254
  }
3228
- function fi(t, e) {
3255
+ function ci(t, e) {
3229
3256
  for (let r = 0; r < t.ctrlRule.length; r++) {
3230
3257
  const i = t.ctrlRule[r];
3231
3258
  if (i.children === e)
@@ -3235,16 +3262,16 @@ function fi(t, e) {
3235
3262
  function bt(t) {
3236
3263
  return !!t.rule.__ctrl;
3237
3264
  }
3238
- function ci(t) {
3265
+ function hi(t) {
3239
3266
  C(t.prototype, {
3240
3267
  setValue(e, r, i, s) {
3241
3268
  e.deleted || (e.rule.value = r, this.changeStatus = !0, this.nextRefresh(), this.$render.clearCache(e), this.setFormData(e, i), this.syncValue(), this.valueChange(e, r), this.vm.$emit("change", e.field, r, e.origin, this.api, s || !1), this.effect(e, "value"), this.targetHook(e, "value", { value: r }), this.emitEvent("change", e.field, r, {
3242
3269
  rule: e.origin,
3243
3270
  api: this.api,
3244
3271
  setFlag: s || !1
3245
- }), s && A(() => {
3246
- A(() => {
3247
- A(() => {
3272
+ }), s && V(() => {
3273
+ V(() => {
3274
+ V(() => {
3248
3275
  this.api.clearValidateState(e.id);
3249
3276
  });
3250
3277
  });
@@ -3268,7 +3295,7 @@ function ci(t) {
3268
3295
  setFormData(e, r) {
3269
3296
  e.modelValue = r;
3270
3297
  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);
3298
+ i && (this.subRuleData[i.id] || F(this.subRuleData, i.id, {}), F(this.subRuleData[i.id], e.field, e.rule.value)), F(this.formData, e.id, r);
3272
3299
  },
3273
3300
  rmSubRuleData(e) {
3274
3301
  const r = e.getParentGroup();
@@ -3279,13 +3306,13 @@ function ci(t) {
3279
3306
  },
3280
3307
  syncForm() {
3281
3308
  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;
3309
+ this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Ae(this.appendData, n)), s), e), r.reduce((s, n) => {
3310
+ let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
3311
+ return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = Ae(o.rule, "value"), s;
3285
3312
  }, e), this.form = ie(e), this.ignoreFields = i, this.syncValue();
3286
3313
  },
3287
3314
  isIgnore(e) {
3288
- return e.ignore === !0 || e.ignore === "hidden" && e.hidden || this.options.ignoreHiddenFields && e.hidden;
3315
+ return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
3289
3316
  },
3290
3317
  appendValue(e) {
3291
3318
  (!e.field || !E(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
@@ -3341,7 +3368,7 @@ function ci(t) {
3341
3368
  function vt(t, e) {
3342
3369
  return typeof e == "function" ? "" + e : e;
3343
3370
  }
3344
- const De = {
3371
+ const je = {
3345
3372
  init(t) {
3346
3373
  },
3347
3374
  toFormValue(t, e) {
@@ -3360,8 +3387,8 @@ const De = {
3360
3387
  },
3361
3388
  mergeProp(t) {
3362
3389
  }
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) {
3390
+ }, di = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Re = Symbol("oldValue");
3391
+ function pi(t) {
3365
3392
  C(t.prototype, {
3366
3393
  getCtx(e) {
3367
3394
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
@@ -3396,7 +3423,7 @@ function di(t) {
3396
3423
  if (n)
3397
3424
  return n;
3398
3425
  }
3399
- return r[e.originType] || r[q(e.type)] || r[e.trueType] || De;
3426
+ return r[e.originType] || r[q(e.type)] || r[e.trueType] || je;
3400
3427
  },
3401
3428
  bindParser(e) {
3402
3429
  e.setParser(this.getParser(e));
@@ -3409,8 +3436,8 @@ function di(t) {
3409
3436
  this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
3410
3437
  },
3411
3438
  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";
3439
+ if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && di.indexOf(i) === -1).forEach((i) => {
3440
+ const s = Ae(e.rule, i), n = i === "children";
3414
3441
  e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3415
3442
  let l = s.value;
3416
3443
  if (!this.isBreakWatch()) {
@@ -3418,9 +3445,9 @@ function di(t) {
3418
3445
  this.$render.clearCache(e), this.nextRefresh();
3419
3446
  return;
3420
3447
  }
3421
- if (this.watching = !0, A(() => {
3448
+ if (this.watching = !0, V(() => {
3422
3449
  this.targetHook(e, "watch", { key: i, oldValue: a, newValue: l });
3423
- }), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(), A(() => {
3450
+ }), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(), V(() => {
3424
3451
  this.targetHook(e, "hidden", { value: l });
3425
3452
  })), i === "ignore" && e.input || i === "hidden" && e.input && (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields))
3426
3453
  this.syncForm();
@@ -3431,21 +3458,21 @@ function di(t) {
3431
3458
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3432
3459
  }
3433
3460
  }, { deep: !n, sync: n }));
3434
- }), e.refRule.__$title = ge(() => {
3461
+ }), e.refRule.__$title = ye(() => {
3435
3462
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3436
3463
  if (i) {
3437
3464
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3438
3465
  s && (i = this.api.t(s[1]));
3439
3466
  }
3440
3467
  return i;
3441
- }), e.refRule.__$info = ge(() => {
3468
+ }), e.refRule.__$info = ye(() => {
3442
3469
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3443
3470
  if (i) {
3444
3471
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3445
3472
  s && (i = this.api.t(s[1]));
3446
3473
  }
3447
3474
  return i;
3448
- }), e.refRule.__$validate = ge(() => {
3475
+ }), e.refRule.__$validate = ye(() => {
3449
3476
  const i = (s) => {
3450
3477
  var o, a;
3451
3478
  const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
@@ -3477,7 +3504,7 @@ function di(t) {
3477
3504
  return n;
3478
3505
  });
3479
3506
  }), e.input) {
3480
- const i = je(e.rule, "value");
3507
+ const i = Ae(e.rule, "value");
3481
3508
  e.watch.push(B(() => i.value, () => {
3482
3509
  let s = e.parser.toFormValue(i.value, e);
3483
3510
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3486,16 +3513,16 @@ function di(t) {
3486
3513
  this.bus.$once("load-end", () => {
3487
3514
  let i = e.rule.computed;
3488
3515
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3489
- const n = ge(() => {
3516
+ const n = ye(() => {
3490
3517
  const a = i[s];
3491
3518
  if (!a) return;
3492
3519
  const l = this.compute(e, a);
3493
- return a.linkage && l === ke ? ke : l;
3520
+ return a.linkage && l === Re ? Re : l;
3494
3521
  }), o = (a) => {
3495
3522
  s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : se(e.rule, s, a);
3496
3523
  };
3497
3524
  (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : n.value !== L(e.rule, s)) && o(n.value), e.watch.push(B(n, (a, l) => {
3498
- a === ke || a === l || setTimeout(() => {
3525
+ a === Re || a === l || setTimeout(() => {
3499
3526
  o(a);
3500
3527
  });
3501
3528
  }, { deep: !0 }));
@@ -3545,7 +3572,7 @@ function di(t) {
3545
3572
  case "len":
3546
3573
  case "maxLen":
3547
3574
  case "minLen":
3548
- const a = (y) => n === "len" ? y === o : n === "maxLen" ? y <= o : y >= o;
3575
+ const a = (g) => n === "len" ? g === o : n === "maxLen" ? g <= o : g >= o;
3549
3576
  if (Array.isArray(r)) {
3550
3577
  if (!a(r.length))
3551
3578
  return n;
@@ -3587,7 +3614,7 @@ function di(t) {
3587
3614
  return n;
3588
3615
  break;
3589
3616
  case "hasKeys":
3590
- if (typeof r != "object" || Array.isArray(o) && o.some((y) => !(y in r)))
3617
+ if (typeof r != "object" || Array.isArray(o) && o.some((g) => !(g in r)))
3591
3618
  return n;
3592
3619
  break;
3593
3620
  case "email":
@@ -3625,22 +3652,22 @@ function di(t) {
3625
3652
  let u = !0;
3626
3653
  for (let f = 0; f < a.group.length; f++) {
3627
3654
  const d = a.group[f];
3628
- let g, m = null;
3655
+ let p, y = null;
3629
3656
  if (d.variable)
3630
- m = JSON.stringify(this.fc.getLoadData(d.variable) || "");
3657
+ y = JSON.stringify(this.fc.getLoadData(d.variable) || "");
3631
3658
  else if (d.field)
3632
- m = pt(d.field || "");
3659
+ y = pt(d.field || "");
3633
3660
  else if (!d.mode)
3634
3661
  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)
3662
+ let g = d.compare;
3663
+ if (g && (g = pt(g || "")), d.mode ? p = n(d) : ce[d.condition] ? h.Function(d.handler) ? p = O(() => d.handler(this.api, e.rule)) : p = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${y}, ${g || "$val"}); }}}}`).call(this.api.form, ce, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : p = !1, l && p)
3637
3664
  return !0;
3638
- l || (u = u && g);
3665
+ l || (u = u && p);
3639
3666
  }
3640
3667
  return l ? !1 : u;
3641
3668
  };
3642
3669
  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;
3670
+ return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : Re : o;
3644
3671
  } else if (h.Function(r))
3645
3672
  i = () => r(this.api.form, this.api);
3646
3673
  else {
@@ -3681,7 +3708,7 @@ function di(t) {
3681
3708
  if (!this.reloading) {
3682
3709
  if (e.parser.loadChildren !== !1) {
3683
3710
  const l = e.getPending("children", e.rule.children);
3684
- h.trueArray(l) && l.forEach((u) => u.__fc__ && this.rmCtx(u.__fc__));
3711
+ h.trueArray(l) && l.forEach((u) => u && u.__fc__ && this.rmCtx(u.__fc__));
3685
3712
  }
3686
3713
  e.root === this.rules && this.vm.renderRule();
3687
3714
  }
@@ -3691,7 +3718,7 @@ function di(t) {
3691
3718
  }
3692
3719
  });
3693
3720
  }
3694
- function pi(t) {
3721
+ function mi(t) {
3695
3722
  C(t.prototype, {
3696
3723
  mounted() {
3697
3724
  const e = () => {
@@ -3719,13 +3746,13 @@ function pi(t) {
3719
3746
  }
3720
3747
  });
3721
3748
  }
3722
- function mi(t) {
3749
+ function gi(t) {
3723
3750
  C(t.prototype, {
3724
3751
  useProvider() {
3725
3752
  const e = this.fc.providers;
3726
3753
  Object.keys(e).forEach((r) => {
3727
3754
  let i = e[r];
3728
- h.Function(i) && (i = i(this.fc)), i._c = yi(i), this.onEffect(i), this.providers[r] = i;
3755
+ h.Function(i) && (i = i(this.fc)), i._c = $i(i), this.onEffect(i), this.providers[r] = i;
3729
3756
  });
3730
3757
  },
3731
3758
  onEffect(e) {
@@ -3789,21 +3816,21 @@ function mi(t) {
3789
3816
  d = s;
3790
3817
  else
3791
3818
  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]);
3819
+ const p = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3820
+ e && (p.getProp = () => e.effectData(u), p.clearProp = () => e.clearEffectData(u), p.mergeProp = (y) => x(p.getProp(), [y]), p.id = e.id), this.bus.$emit(`p:${u}:${d}:${f.input ? 1 : 0}`, o, [p, r, this.api]);
3794
3821
  });
3795
3822
  }
3796
3823
  });
3797
3824
  }
3798
- function gi(t) {
3825
+ function yi(t) {
3799
3826
  return t.filter(function(e, r, i) {
3800
3827
  return i.indexOf(e, 0) === r;
3801
3828
  });
3802
3829
  }
3803
- function yi(t) {
3830
+ function $i(t) {
3804
3831
  const e = t.components;
3805
3832
  if (Array.isArray(e)) {
3806
- const r = gi(e.filter((i) => i !== "*"));
3833
+ const r = yi(e.filter((i) => i !== "*"));
3807
3834
  return r.length ? r : !1;
3808
3835
  } else return h.String(e) ? [e] : !1;
3809
3836
  }
@@ -3845,7 +3872,7 @@ function K(t) {
3845
3872
  }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
3846
3873
  const i = O(() => r(e, this));
3847
3874
  return i && i !== e && C(e, i), e;
3848
- }, Yr(this));
3875
+ }, xr(this));
3849
3876
  }
3850
3877
  C(K.prototype, {
3851
3878
  initData(t) {
@@ -3885,26 +3912,26 @@ C(K.prototype, {
3885
3912
  });
3886
3913
  }
3887
3914
  });
3888
- ri(K);
3889
3915
  ii(K);
3890
- si(K);
3891
- ai(K);
3892
- ci(K);
3893
- di(K);
3916
+ ni(K);
3917
+ oi(K);
3918
+ li(K);
3919
+ hi(K);
3894
3920
  pi(K);
3895
3921
  mi(K);
3896
- const $i = "fcFragment", Me = {
3897
- name: $i,
3922
+ gi(K);
3923
+ const bi = "fcFragment", Me = {
3924
+ name: bi,
3898
3925
  functional: !0,
3899
3926
  props: ["vnode"],
3900
3927
  render(t, e) {
3901
3928
  return e.props.vnode ? e.props.vnode : e.children;
3902
3929
  }
3903
3930
  };
3904
- function bi(t) {
3931
+ function vi(t) {
3905
3932
  return h.String(t) ? { domProps: { innerHTML: t } } : t;
3906
3933
  }
3907
- function vi() {
3934
+ function _i() {
3908
3935
  const t = {};
3909
3936
  function e(r) {
3910
3937
  r && this.setVm(r);
@@ -3915,11 +3942,11 @@ function vi() {
3915
3942
  },
3916
3943
  make(r, i, s) {
3917
3944
  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);
3945
+ return ($e.isReservedTag ? $e.isReservedTag(r) : (o = (n = $e) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
3919
3946
  },
3920
3947
  makeComponent(r, i, s) {
3921
3948
  var o;
3922
- let n = this.$h(r, bi(i), s || []);
3949
+ let n = this.$h(r, vi(i), s || []);
3923
3950
  if ((o = n == null ? void 0 : n.componentOptions) != null && o.propsData && (i != null && i.props)) {
3924
3951
  const a = Object.keys(n.componentOptions.propsData);
3925
3952
  n.data.attrs || (n.data.attrs = {}), Object.keys(i.props).forEach((l) => {
@@ -3936,7 +3963,7 @@ function vi() {
3936
3963
  },
3937
3964
  use(r) {
3938
3965
  Object.keys(r).forEach((i) => {
3939
- const s = $e(i), n = Gr(i).toLocaleLowerCase(), o = r[i];
3966
+ const s = be(i), n = Hr(i).toLocaleLowerCase(), o = r[i];
3940
3967
  [i, s, n].forEach((a) => {
3941
3968
  e.alias(i, o), e.prototype[a] = function(l, u) {
3942
3969
  return this.make(o, l, u);
@@ -3946,12 +3973,12 @@ function vi() {
3946
3973
  }
3947
3974
  }), e;
3948
3975
  }
3949
- function _i(t) {
3950
- class e extends zt {
3976
+ function Ci(t) {
3977
+ class e extends Jt {
3951
3978
  }
3952
3979
  return Object.assign(e.prototype, t), e;
3953
3980
  }
3954
- function zt(t) {
3981
+ function Jt(t) {
3955
3982
  C(this, {
3956
3983
  $handle: t,
3957
3984
  vm: t.vm,
@@ -3962,12 +3989,12 @@ function zt(t) {
3962
3989
  }
3963
3990
  }), this.updateKey(), this.init();
3964
3991
  }
3965
- C(zt.prototype, {
3992
+ C(Jt.prototype, {
3966
3993
  __init() {
3967
3994
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
3968
3995
  },
3969
3996
  updateKey() {
3970
- this.key = Ve();
3997
+ this.key = Pe();
3971
3998
  },
3972
3999
  //TODO interface
3973
4000
  init() {
@@ -4010,23 +4037,23 @@ C(zt.prototype, {
4010
4037
  render(t) {
4011
4038
  }
4012
4039
  });
4013
- const Ci = function(t) {
4040
+ const wi = function(t) {
4014
4041
  const e = {
4015
4042
  name: "loadData",
4016
4043
  _fn: [],
4017
4044
  loaded(r, i, s) {
4018
- this.deleted(r), A(() => {
4045
+ this.deleted(r), V(() => {
4019
4046
  let n = H(r.getValue());
4020
4047
  const o = [];
4021
4048
  n.forEach((a) => {
4022
4049
  if (a && (a.attr || a.template)) {
4023
4050
  let l = (d) => {
4024
- 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));
4028
- 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);
4051
+ let p;
4052
+ i && i.__fc__ && (p = i.__fc__.getParentGroup());
4053
+ let y;
4054
+ a.template ? y = t.$handle.loadStrVar(a.template, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null) : a.handler && h.Function(a.handler) ? y = a.handler(d, i, s) : y = t.$handle.loadStrVar(`{{${a.attr}}}`, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null), (y == null || y === "") && a.default != null && (y = a.default), a.copy !== !1 && (y = G(y));
4055
+ const g = a.modify ? i : r.getProp();
4056
+ a.to === "child" ? g.children ? F(g.children, 0, y) : F(g, "children", [y]) : se(g, a.to || "options", y), s.sync(i);
4030
4057
  }, u = (d) => l(d);
4031
4058
  const f = t.watchLoadData(u);
4032
4059
  l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
@@ -4041,7 +4068,7 @@ const Ci = function(t) {
4041
4068
  }
4042
4069
  };
4043
4070
  return e.watch = e.loaded, e;
4044
- }, wi = function(t) {
4071
+ }, Oi = function(t) {
4045
4072
  const e = {
4046
4073
  name: "t",
4047
4074
  _fn: [],
@@ -4053,13 +4080,13 @@ const Ci = function(t) {
4053
4080
  const l = n[a];
4054
4081
  if (l) {
4055
4082
  const u = typeof l == "object";
4056
- let f = (m) => {
4057
- let y = t.t(u ? l.attr : l, u ? l.params : null, m);
4083
+ let f = (y) => {
4084
+ let g = t.t(u ? l.attr : l, u ? l.params : null, y);
4058
4085
  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();
4086
+ a === "child" ? _.children ? F(_.children, 0, g) : F(_, "children", [g]) : se(_, a, g), s.sync(i);
4087
+ }, d = (y) => f(y);
4088
+ const p = t.watchLoadData(d);
4089
+ f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(p) : p();
4063
4090
  }
4064
4091
  }), this._fn[r.id] = o;
4065
4092
  },
@@ -4070,7 +4097,7 @@ const Ci = function(t) {
4070
4097
  }
4071
4098
  };
4072
4099
  return e.watch = e.loaded, e;
4073
- }, Jt = {
4100
+ }, Wt = {
4074
4101
  name: "componentValidate",
4075
4102
  load(t, e, r) {
4076
4103
  let i = t.getValue();
@@ -4093,9 +4120,9 @@ const Ci = function(t) {
4093
4120
  }
4094
4121
  },
4095
4122
  watch(...t) {
4096
- Jt.load(...t);
4123
+ Wt.load(...t);
4097
4124
  }
4098
- }, Oi = function(t) {
4125
+ }, Fi = function(t) {
4099
4126
  function e(s) {
4100
4127
  return h.String(s) && (s = {
4101
4128
  action: s,
@@ -4128,32 +4155,32 @@ const Ci = function(t) {
4128
4155
  if (!s.getValue())
4129
4156
  return s.clearProp(), o.sync(n), !0;
4130
4157
  };
4131
- i._fn[s.id] = t.watchLoadData(ne((d, g) => {
4132
- if (g && a.watch === !1)
4158
+ i._fn[s.id] = t.watchLoadData(ne((d, p) => {
4159
+ if (p && a.watch === !1)
4133
4160
  return i._fn[s.id]();
4134
- const m = t.$handle.loadFetchVar(G(a), d, n), y = U(v({
4161
+ const y = t.$handle.loadFetchVar(G(a), d, n), g = U(v({
4135
4162
  headers: {}
4136
- }, m), {
4163
+ }, y), {
4137
4164
  onSuccess(_, D) {
4138
4165
  if (f()) return;
4139
4166
  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));
4167
+ const I = W(y.parse);
4168
+ h.Function(I) ? ee = I : I && h.String(I) && (ee = (T) => L(T, I)), l(ee(_, n, o));
4142
4169
  },
4143
4170
  onError(_) {
4144
- l(void 0), !f() && (u || ((D) => tt(D.message || "fetch fail " + m.action)))(_, n, o);
4171
+ l(void 0), !f() && (u || ((D) => tt(D.message || "fetch fail " + y.action)))(_, n, o);
4145
4172
  }
4146
4173
  });
4147
- t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
4148
- if (h.Function(m.action)) {
4149
- m.action(n, o).then((_) => {
4150
- y.onSuccess(_, !0);
4174
+ t.$handle.beforeFetch(g, { rule: n, api: o }).then(() => {
4175
+ if (h.Function(y.action)) {
4176
+ y.action(n, o).then((_) => {
4177
+ g.onSuccess(_, !0);
4151
4178
  }).catch((_) => {
4152
- y.onError(_);
4179
+ g.onError(_);
4153
4180
  });
4154
4181
  return;
4155
4182
  }
4156
- O(() => t.create.fetch(y, { inject: s, rule: n, api: o }));
4183
+ O(() => t.create.fetch(g, { inject: s, rule: n, api: o }));
4157
4184
  }).catch((_) => {
4158
4185
  });
4159
4186
  }, a.wait || 600));
@@ -4172,11 +4199,11 @@ const Ci = function(t) {
4172
4199
  }
4173
4200
  };
4174
4201
  return i;
4175
- }, Fi = {
4176
- fetch: Oi,
4177
- loadData: Ci,
4178
- t: wi,
4179
- componentValidate: Jt
4202
+ }, ki = {
4203
+ fetch: Fi,
4204
+ loadData: wi,
4205
+ t: Oi,
4206
+ componentValidate: Wt
4180
4207
  };
4181
4208
  function Si(t) {
4182
4209
  t = t || /* @__PURE__ */ new Map();
@@ -4202,8 +4229,8 @@ function Si(t) {
4202
4229
  };
4203
4230
  return e;
4204
4231
  }
4205
- const ki = "html", Ri = {
4206
- name: ki,
4232
+ const Ri = "html", Ei = {
4233
+ name: Ri,
4207
4234
  loadChildren: !1,
4208
4235
  render(t, e) {
4209
4236
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
@@ -4212,7 +4239,7 @@ const ki = "html", Ri = {
4212
4239
  return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
4213
4240
  }
4214
4241
  };
4215
- function Ei(t) {
4242
+ function Di(t) {
4216
4243
  t = t + "=";
4217
4244
  const r = decodeURIComponent(document.cookie).split(";");
4218
4245
  for (let i = 0; i < r.length; i++) {
@@ -4230,7 +4257,7 @@ function Ei(t) {
4230
4257
  }
4231
4258
  return null;
4232
4259
  }
4233
- function Di(t) {
4260
+ function ji(t) {
4234
4261
  const e = localStorage.getItem(t);
4235
4262
  if (e)
4236
4263
  try {
@@ -4240,7 +4267,7 @@ function Di(t) {
4240
4267
  }
4241
4268
  return null;
4242
4269
  }
4243
- function ji(t) {
4270
+ function Ai(t) {
4244
4271
  const e = sessionStorage.getItem(t);
4245
4272
  if (e)
4246
4273
  try {
@@ -4258,15 +4285,15 @@ function nt(t, e) {
4258
4285
  return r.length ? i == null ? null : L(i, r) : i;
4259
4286
  }
4260
4287
  function Ii(t) {
4261
- return nt(Ei, t);
4262
- }
4263
- function Ai(t) {
4264
4288
  return nt(Di, t);
4265
4289
  }
4266
4290
  function Vi(t) {
4267
4291
  return nt(ji, t);
4268
4292
  }
4269
- const Pi = {
4293
+ function Pi(t) {
4294
+ return nt(Ai, t);
4295
+ }
4296
+ const Li = {
4270
4297
  en: {
4271
4298
  required: "{title} is required",
4272
4299
  validate: {
@@ -4316,17 +4343,17 @@ const Pi = {
4316
4343
  }
4317
4344
  }
4318
4345
  };
4319
- function Li(t, e) {
4346
+ function Bi(t, e) {
4320
4347
  let r;
4321
4348
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4322
4349
  }
4323
4350
  function Ue() {
4324
- return Li("name", ...arguments);
4351
+ return Bi("name", ...arguments);
4325
4352
  }
4326
- function Bi(t) {
4353
+ function Ti(t) {
4327
4354
  return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
4328
4355
  }
4329
- function Ti(t, e) {
4356
+ function Ni(t, e) {
4330
4357
  const r = new Vue({
4331
4358
  data() {
4332
4359
  return { rule: t, option: e || {} };
@@ -4337,81 +4364,81 @@ function Ti(t, e) {
4337
4364
  });
4338
4365
  return r.$mount(), r;
4339
4366
  }
4340
- function Ni(t) {
4367
+ function Mi(t) {
4341
4368
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4342
- It.push(...e), xe.push(...r), et.push(...i), Mt([...e, ...r, ...i]);
4369
+ At.push(...e), xe.push(...r), et.push(...i), Ut([...e, ...r, ...i]);
4343
4370
  }
4344
- let Mi = 1;
4345
- const M = {}, Re = Symbol("defValue");
4346
- function Wt(t) {
4371
+ let Ui = 1;
4372
+ const M = {}, Ee = Symbol("defValue");
4373
+ function Kt(t) {
4347
4374
  const e = {
4348
4375
  [Me.name]: Me
4349
4376
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4350
4377
  t.extendApi
4351
- ], u = v({}, Fi), f = Zr();
4378
+ ], u = v({}, ki), f = Qr();
4352
4379
  let d = { global: {} };
4353
- const g = t.isMobile === !0, m = ie({
4354
- $mobile: g
4355
- }), y = vi(), _ = {}, D = {};
4356
- Ni(t.attrs || {});
4380
+ const p = t.isMobile === !0, y = ie({
4381
+ $mobile: p
4382
+ }), g = _i(), _ = {}, D = {};
4383
+ Mi(t.attrs || {});
4357
4384
  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();
4385
+ const m = M[c];
4386
+ if (Array.isArray(m))
4387
+ return m.map(($) => $.api());
4388
+ if (m)
4389
+ return m.api();
4363
4390
  }
4364
- function P(c) {
4391
+ function I(c) {
4365
4392
  o.push(c);
4366
4393
  }
4367
4394
  function T() {
4368
4395
  const c = Ue(...arguments);
4369
4396
  c.id && c.prop && (i[c.id] = c.prop);
4370
4397
  }
4371
- function ce() {
4398
+ function he() {
4372
4399
  const c = Ue(...arguments);
4373
4400
  c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(v({}, c.prop), {
4374
4401
  name: c.id
4375
4402
  }));
4376
4403
  }
4377
- function Pe(c) {
4378
- y.use(c);
4404
+ function Le(c) {
4405
+ g.use(c);
4379
4406
  }
4380
- function he() {
4407
+ function de() {
4381
4408
  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);
4409
+ if (!c.id || !c.prop) return je;
4410
+ const m = q(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
4411
+ r[m] = Se($, b || je), f[m] = P(m), $.maker && C(f, $.maker);
4385
4412
  }
4386
- function F(c, p) {
4413
+ function k(c, m) {
4387
4414
  let $;
4388
4415
  if (h.String(c)) {
4389
- if ($ = c, p === void 0)
4390
- return ["form-create", "formcreate"].indexOf($) > -1 ? k() : e[$];
4416
+ if ($ = c, m === void 0)
4417
+ return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
4391
4418
  } else
4392
- $ = q(c.name), p = c;
4393
- if (!$ || !p) return;
4419
+ $ = q(c.name), m = c;
4420
+ if (!$ || !m) return;
4394
4421
  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);
4422
+ e[$] = m, e[b] = m, delete g.aliasMap[$], delete g.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && de($, m.formCreateParser);
4396
4423
  }
4397
- function k() {
4398
- return Kr(Be, e, i);
4424
+ function R() {
4425
+ return Xr(Te, e, i);
4399
4426
  }
4400
4427
  function N() {
4401
4428
  return Me;
4402
4429
  }
4403
- function de(c, p) {
4404
- return h.Function(c.install) ? c.install(z, p) : h.Function(c) && c(z, p), this;
4430
+ function pe(c, m) {
4431
+ return h.Function(c.install) ? c.install(z, m) : h.Function(c) && c(z, m), this;
4405
4432
  }
4406
- function z(c, p, $) {
4407
- let b = Ti(c, p || {});
4433
+ function z(c, m, $) {
4434
+ let b = Ni(c, m || {});
4408
4435
  const w = b.$refs.fc.formCreate;
4409
- return w.$parent = $, Bi(w.options).appendChild(b.$el), w.api();
4436
+ return w.$parent = $, Ti(w.options).appendChild(b.$el), w.api();
4410
4437
  }
4411
4438
  Se(z, D);
4412
- function Xt(c) {
4413
- let p = v({}, t);
4414
- return c ? p.inherit = {
4439
+ function Zt(c) {
4440
+ let m = v({}, t);
4441
+ return c ? m.inherit = {
4415
4442
  components: e,
4416
4443
  parsers: r,
4417
4444
  directives: i,
@@ -4420,67 +4447,67 @@ function Wt(t) {
4420
4447
  useApps: o,
4421
4448
  maker: f,
4422
4449
  formulas: _,
4423
- loadData: m
4424
- } : delete p.inherit, Wt(p);
4450
+ loadData: y
4451
+ } : delete m.inherit, Kt(m);
4425
4452
  }
4426
- function Zt(c, p) {
4427
- s[c] = p;
4453
+ function Qt(c, m) {
4454
+ s[c] = m;
4428
4455
  }
4429
- function Qt(c, p) {
4430
- _[c] = p;
4456
+ function Yt(c, m) {
4457
+ _[c] = m;
4431
4458
  }
4432
- function Yt(c, p) {
4459
+ function xt(c, m) {
4433
4460
  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 });
4461
+ m.parsers && Object.keys(m.parsers).forEach((w) => {
4462
+ b[w] = Se(m.parsers[w], je);
4463
+ }), m.name = c, n[c] = U(v(v({}, $), m), { parsers: b });
4437
4464
  }
4438
- function Ce(c) {
4439
- c && Object.keys(M).forEach((p) => {
4440
- (Array.isArray(M[p]) ? M[p] : [M[p]]).forEach((b) => {
4465
+ function we(c) {
4466
+ c && Object.keys(M).forEach((m) => {
4467
+ (Array.isArray(M[m]) ? M[m] : [M[m]]).forEach((b) => {
4441
4468
  b.bus.$emit("$loadData." + c);
4442
4469
  });
4443
4470
  });
4444
4471
  }
4445
- function Le(c, p) {
4446
- se(m, c, p), Ce(c);
4472
+ function Be(c, m) {
4473
+ se(y, c, m), we(c);
4447
4474
  }
4448
- function we(c, p) {
4449
- const $ = (...b) => O(() => p(...b));
4450
- $._driver = !0, Le(c, $);
4475
+ function Oe(c, m) {
4476
+ const $ = (...b) => O(() => m(...b));
4477
+ $._driver = !0, Be(c, $);
4451
4478
  }
4452
- function st(c, p) {
4479
+ function st(c, m) {
4453
4480
  const $ = (c || "").split(".");
4454
4481
  c = $.shift();
4455
4482
  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;
4483
+ if (E(y, c) || F(y, c, Ee), y[c] !== Ee) {
4484
+ let w = y[c];
4485
+ return w && w._driver ? w = w(b) : $.length && (w = L(w, $)), w == null || w === "" ? m : w;
4459
4486
  } else
4460
- return p;
4487
+ return m;
4461
4488
  }
4462
- function xt(c) {
4489
+ function er(c) {
4463
4490
  l.push(c);
4464
4491
  }
4465
- function er(c) {
4466
- delete m[c], Ce(c);
4492
+ function tr(c) {
4493
+ delete y[c], we(c);
4467
4494
  }
4468
- function tr(c, p) {
4469
- a.push({ name: c, callback: p });
4495
+ function rr(c, m) {
4496
+ a.push({ name: c, callback: m });
4470
4497
  }
4471
- function Be(c) {
4498
+ function Te(c) {
4472
4499
  C(this, {
4473
- id: Mi++,
4500
+ id: Ui++,
4474
4501
  create: z,
4475
4502
  vm: c,
4476
- manager: _i(t.manager),
4503
+ manager: Ci(t.manager),
4477
4504
  parsers: r,
4478
4505
  providers: u,
4479
4506
  modelFields: s,
4480
4507
  formulas: _,
4481
- isMobile: g,
4508
+ isMobile: p,
4482
4509
  rules: c.$options.propsData.rule,
4483
- name: c.$options.propsData.name || Ve(),
4510
+ name: c.$options.propsData.name || Pe(),
4484
4511
  inFor: c.$options.propsData.inFor,
4485
4512
  prop: {
4486
4513
  components: e,
@@ -4489,56 +4516,56 @@ function Wt(t) {
4489
4516
  get: null,
4490
4517
  drivers: n,
4491
4518
  renderDriver: null,
4492
- refreshData: Ce,
4493
- loadData: m,
4494
- CreateNode: y,
4519
+ refreshData: we,
4520
+ loadData: y,
4521
+ CreateNode: g,
4495
4522
  bus: new Si(),
4496
4523
  unwatch: [],
4497
- options: gr({}),
4524
+ options: yr({}),
4498
4525
  extendApiFn: l,
4499
4526
  fetchCache: /* @__PURE__ */ new WeakMap(),
4500
4527
  tmpData: ie({})
4501
- }), a.forEach((p) => {
4502
- this.bus.$on(p.name, p.callback);
4503
- }), A(() => {
4528
+ }), a.forEach((m) => {
4529
+ this.bus.$on(m.name, m.callback);
4530
+ }), V(() => {
4504
4531
  B(this.options, () => {
4505
4532
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4506
4533
  }, { deep: !0 });
4507
4534
  }), C(c.$options.components, e), C(c.$options.directives, i), this.$handle = new K(this), this.name && (this.inFor ? (M[this.name] || (M[this.name] = []), M[this.name].push(this)) : M[this.name] = this);
4508
4535
  }
4509
- Be.isMobile = g, C(Be.prototype, {
4536
+ Te.isMobile = p, C(Te.prototype, {
4510
4537
  init() {
4511
4538
  this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4512
4539
  this.initOptions(), this.$handle.api.refresh();
4513
4540
  }, { deep: !0 })), this.vm.$options.propsData.driver && (this.renderDriver = typeof this.vm.$options.propsData.driver == "object" ? this.vm.$options.propsData.driver : this.drivers[this.vm.$options.propsData.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.fc.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4514
4541
  },
4515
- targetFormDriver(c, ...p) {
4542
+ targetFormDriver(c, ...m) {
4516
4543
  if (this.renderDriver && this.renderDriver[c])
4517
- return O(() => this.renderDriver[c](...p));
4544
+ return O(() => this.renderDriver[c](...m));
4518
4545
  },
4519
- t(c, p, $) {
4546
+ t(c, m, $) {
4520
4547
  let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
4521
- return b == null && (b = ""), b && p && Object.keys(p).forEach((w) => {
4548
+ return b == null && (b = ""), b && m && Object.keys(m).forEach((w) => {
4522
4549
  const j = new RegExp(`{${w}}`, "g");
4523
- b = b.replace(j, p[w]);
4550
+ b = b.replace(j, m[w]);
4524
4551
  }), b;
4525
4552
  },
4526
4553
  globalDataDriver(c) {
4527
- let p = c.split(".");
4528
- const $ = p.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4554
+ let m = c.split(".");
4555
+ const $ = m.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
4529
4556
  if (b) {
4530
4557
  if (b.type === "static")
4531
- return L(b.data, p);
4558
+ return L(b.data, m);
4532
4559
  {
4533
4560
  let w;
4534
4561
  const j = this.fetchCache.get(b);
4535
4562
  if (j) {
4536
- if (j.status && (w = L(j.data, p)), !j.loading)
4563
+ if (j.status && (w = L(j.data, m)), !j.loading)
4537
4564
  return w;
4538
4565
  j.loading = !1, this.fetchCache.set(b, j);
4539
4566
  } else
4540
4567
  this.fetchCache.set(b, { status: !1 });
4541
- const R = ne(() => {
4568
+ const S = ne(() => {
4542
4569
  le();
4543
4570
  const J = this.fetchCache.get(b);
4544
4571
  this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (J && (J.loading = !0, this.fetchCache.set(b, J)), this.bus.$emit("$loadData.$globalData." + $)) : this.fetchCache.delete(b);
@@ -4548,11 +4575,11 @@ function Wt(t) {
4548
4575
  if (ue && b.watch === !1)
4549
4576
  return le();
4550
4577
  if (ue) {
4551
- R();
4578
+ S();
4552
4579
  return;
4553
4580
  }
4554
- const pe = this.$handle.loadFetchVar(We(b), J);
4555
- this.$handle.api.fetch(pe).then((te) => {
4581
+ const me = this.$handle.loadFetchVar(We(b), J);
4582
+ this.$handle.api.fetch(me).then((te) => {
4556
4583
  ae(te);
4557
4584
  }).catch((te) => {
4558
4585
  ae(null);
@@ -4567,31 +4594,31 @@ function Wt(t) {
4567
4594
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4568
4595
  },
4569
4596
  globalLanguageDriver(c) {
4570
- let p = this.vm.top.$props.locale, $;
4571
- if (p && typeof p == "object" && ($ = L(p, c)), $ == null) {
4597
+ let m = this.vm.top.$props.locale, $;
4598
+ if (m && typeof m == "object" && ($ = L(m, c)), $ == null) {
4572
4599
  const b = this.options.value.language || {}, w = this.getLocale();
4573
- $ = L(b[w] || {}, c), $ == null && ($ = L(Pi[w] || {}, c));
4600
+ $ = L(b[w] || {}, c), $ == null && ($ = L(Li[w] || {}, c));
4574
4601
  }
4575
4602
  return $;
4576
4603
  },
4577
4604
  globalVarDriver(c) {
4578
- let p = c.split(".");
4579
- const $ = p.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4605
+ let m = c.split(".");
4606
+ const $ = m.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
4580
4607
  if (b) {
4581
4608
  const w = h.Function(b) ? b : W(b.handle);
4582
4609
  if (w) {
4583
4610
  let j;
4584
- const R = this.watchLoadData((ae, X) => {
4585
- X ? (this.bus.$emit("$loadData.$var." + $), R()) : j = w(ae, this.$handle.api);
4611
+ const S = this.watchLoadData((ae, X) => {
4612
+ X ? (this.bus.$emit("$loadData.$var." + $), S()) : j = w(ae, this.$handle.api);
4586
4613
  });
4587
- return this.unwatch.push(R), L(j, p);
4614
+ return this.unwatch.push(S), L(j, m);
4588
4615
  }
4589
4616
  }
4590
4617
  },
4591
- setData(c, p, $) {
4592
- $ ? Le(c, p) : (se(this.vm.top.fc.tmpData, c, p), this.bus.$emit("$loadData." + c));
4618
+ setData(c, m, $) {
4619
+ $ ? Be(c, m) : (se(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
4593
4620
  },
4594
- getLoadData(c, p) {
4621
+ getLoadData(c, m) {
4595
4622
  let $ = null;
4596
4623
  if (c != null) {
4597
4624
  let b = c.split(".");
@@ -4617,41 +4644,41 @@ function Wt(t) {
4617
4644
  return this.$handle.preview;
4618
4645
  {
4619
4646
  const j = this.vm.top.fc.tmpData;
4620
- E(j, w) || S(j, w, Re), $ = j[w] !== Re ? L(j, c) : st(c), b = [];
4647
+ E(j, w) || F(j, w, Ee), $ = j[w] !== Ee ? L(j, c) : st(c), b = [];
4621
4648
  }
4622
4649
  }
4623
4650
  $ && b.length && ($ = L($, b));
4624
4651
  }
4625
- return $ == null || $ === "" ? p : $;
4652
+ return $ == null || $ === "" ? m : $;
4626
4653
  },
4627
- watchLoadData(c, p) {
4654
+ watchLoadData(c, m) {
4628
4655
  let $ = {};
4629
- const b = (R) => {
4656
+ const b = (S) => {
4630
4657
  this.get || (this.get = w), O(() => {
4631
- c(w, R);
4658
+ c(w, S);
4632
4659
  }), this.get === w && (this.get = void 0);
4633
- }, w = (R, ae) => {
4660
+ }, w = (S, ae) => {
4634
4661
  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));
4662
+ if (typeof S == "object" && (X = S.getValue, S = S.id), $[S])
4663
+ return $[S].val;
4664
+ const le = ye(() => X ? X() : this.getLoadData(S, ae)), J = S.split("."), ue = J.shift(), me = J.shift() || "", te = ne(() => {
4665
+ const fe = X ? X() : this.getLoadData(S, ae);
4666
+ if ($[S])
4667
+ ((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[S].val || JSON.stringify(fe) !== JSON.stringify($[S].val)) && ($[S].val = fe, b(!0));
4641
4668
  else return;
4642
- }, p || 0), ir = B(le, (Te) => {
4669
+ }, m || 0), nr = B(le, (fe) => {
4643
4670
  te();
4644
4671
  });
4645
- return this.bus.$on("$loadData." + ue, te), pe && this.bus.$on("$loadData." + ue + "." + pe, te), $[R] = {
4672
+ return this.bus.$on("$loadData." + ue, te), me && this.bus.$on("$loadData." + ue + "." + me, te), $[S] = {
4646
4673
  fn: () => {
4647
- this.bus.$off("$loadData." + ue, te), pe && this.bus.$off("$loadData." + ue + "." + pe, te), ir();
4674
+ this.bus.$off("$loadData." + ue, te), me && this.bus.$off("$loadData." + ue + "." + me, te), nr();
4648
4675
  },
4649
4676
  val: le.value
4650
4677
  }, le.value;
4651
4678
  };
4652
4679
  b(!1);
4653
4680
  const j = () => {
4654
- Object.keys($).forEach((R) => $[R].fn()), $ = {};
4681
+ Object.keys($).forEach((S) => $[S].fn()), $ = {};
4655
4682
  };
4656
4683
  return this.unwatch.push(j), j;
4657
4684
  },
@@ -4669,10 +4696,10 @@ function Wt(t) {
4669
4696
  }, G(d));
4670
4697
  this.isSub() && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$options.propsData.option || {}), this.updateOptions(c);
4671
4698
  },
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;
4699
+ mergeOptions(c, m, $) {
4700
+ return m = v({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4701
+ delete m[b];
4702
+ }), m.global && (c.global = Jr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
4676
4703
  },
4677
4704
  updateOptions(c) {
4678
4705
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4705,61 +4732,61 @@ function Wt(t) {
4705
4732
  C(c, {
4706
4733
  version: t.version,
4707
4734
  ui: t.ui,
4708
- isMobile: g,
4709
- extendApi: xt,
4735
+ isMobile: p,
4736
+ extendApi: er,
4710
4737
  getData: st,
4711
- setDataDriver: we,
4712
- setData: Le,
4713
- removeData: er,
4714
- refreshData: Ce,
4738
+ setDataDriver: Oe,
4739
+ setData: Be,
4740
+ removeData: tr,
4741
+ refreshData: we,
4715
4742
  maker: f,
4716
- component: F,
4743
+ component: k,
4717
4744
  directive: T,
4718
- setModelField: Zt,
4719
- setFormula: Qt,
4720
- setDriver: Yt,
4721
- register: ce,
4745
+ setModelField: Qt,
4746
+ setFormula: Yt,
4747
+ setDriver: xt,
4748
+ register: he,
4722
4749
  $vnode: N,
4723
- parser: he,
4724
- use: de,
4725
- factory: Xt,
4726
- componentAlias: Pe,
4750
+ parser: de,
4751
+ use: pe,
4752
+ factory: Zt,
4753
+ componentAlias: Le,
4727
4754
  copyRule: Lt,
4728
4755
  copyRules: Bt,
4729
4756
  mergeRule: x,
4730
- fetch: qt,
4731
- $form: k,
4757
+ fetch: Gt,
4758
+ $form: R,
4732
4759
  parseFn: W,
4733
4760
  parseJson: Pt,
4734
- toJson: ve,
4735
- useApp: P,
4761
+ toJson: _e,
4762
+ useApp: I,
4736
4763
  getApi: ee,
4737
- on: tr
4764
+ on: rr
4738
4765
  });
4739
4766
  }
4740
- function rr(c) {
4767
+ function ir(c) {
4741
4768
  C(c, {
4742
4769
  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);
4770
+ install(m, $) {
4771
+ if (d = v(v({}, d), $ || {}), m._installedFormCreate === !0) return;
4772
+ m._installedFormCreate = !0;
4773
+ const b = function(j, S = {}) {
4774
+ return z(j, S, this);
4748
4775
  };
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));
4776
+ ot(b), m.prototype.$formCreate = b;
4777
+ const w = R();
4778
+ m.component(w.name, w), m.component("FcFragment", N()), o.forEach((j) => {
4779
+ O(() => j(c, m));
4753
4780
  });
4754
4781
  }
4755
4782
  });
4756
4783
  }
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) {
4784
+ if (ot(D), ir(D), Oe("$cookie", Ii), Oe("$localStorage", Vi), Oe("$sessionStorage", Pi), g.use({ fragment: "fcFragment" }), t.install && z.use(t), de(Ei), t.inherit) {
4758
4785
  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);
4786
+ c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(y, c.loadData), c.formulas && C(_, c.formulas);
4760
4787
  }
4761
- const Oe = k();
4762
- return Se(Oe, D), Object.defineProperties(Oe, {
4788
+ const Fe = R();
4789
+ return Se(Fe, D), Object.defineProperties(Fe, {
4763
4790
  fetch: {
4764
4791
  get() {
4765
4792
  return D.fetch;
@@ -4768,7 +4795,7 @@ function Wt(t) {
4768
4795
  D.fetch = c;
4769
4796
  }
4770
4797
  }
4771
- }), Oe.util = D, Oe;
4798
+ }), Fe.util = D, Fe;
4772
4799
  }
4773
4800
  function qe(t) {
4774
4801
  if (h.Date(t))
@@ -4778,10 +4805,10 @@ function qe(t) {
4778
4805
  return e.toString() === "Invalid Date" ? t : e;
4779
4806
  }
4780
4807
  }
4781
- const _t = "datePicker", Ui = {
4808
+ const _t = "datePicker", qi = {
4782
4809
  name: _t,
4783
4810
  maker: function() {
4784
- return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = V(_t, { type: e.toLowerCase() }), t), {});
4811
+ return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = P(_t, { type: e.toLowerCase() }), t), {});
4785
4812
  }(),
4786
4813
  mergeProp(t) {
4787
4814
  let e = t.prop.props;
@@ -4810,54 +4837,54 @@ const _t = "datePicker", Ui = {
4810
4837
  mounted(t) {
4811
4838
  t.rule.value = this.toValue(t.$handle.getFormData(t), t);
4812
4839
  }
4813
- }, Ge = "hidden", qi = {
4840
+ }, Ge = "hidden", Gi = {
4814
4841
  name: Ge,
4815
4842
  maker: {
4816
- [Ge]: (t, e) => V(Ge)("", t, e)
4843
+ [Ge]: (t, e) => P(Ge)("", t, e)
4817
4844
  },
4818
4845
  render() {
4819
4846
  return [];
4820
4847
  }
4821
- }, He = "input", Gi = {
4848
+ }, He = "input", Hi = {
4822
4849
  name: He,
4823
4850
  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;
4851
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = P(He, { type: r }), e), {});
4852
+ return t.idate = P(He, { type: "date" }), t;
4826
4853
  }(),
4827
4854
  mergeProp(t) {
4828
4855
  let { props: e } = t.prop;
4829
4856
  e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4830
4857
  }
4831
- }, Ct = "slider", Hi = {
4858
+ }, Ct = "slider", zi = {
4832
4859
  name: Ct,
4833
4860
  maker: {
4834
- sliderRange: V(Ct, { range: !0 })
4861
+ sliderRange: P(Ct, { range: !0 })
4835
4862
  },
4836
4863
  toFormValue(t, e) {
4837
4864
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4838
4865
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4839
4866
  }
4840
- }, zi = {
4867
+ }, Ji = {
4841
4868
  name: "switch",
4842
4869
  mergeProp(t) {
4843
4870
  const e = t.prop.props.slot || {}, r = t.prop.scopedSlots || {};
4844
4871
  e.open && (r.open = () => e.open), e.close && (r.close = () => e.close), t.prop.scopedSlots = r;
4845
4872
  }
4846
- }, Ji = {
4873
+ }, Wi = {
4847
4874
  name: "FcRow",
4848
4875
  render(t, e) {
4849
4876
  return e.vNode.col({ props: { span: 24 } }, [
4850
4877
  e.vNode.row(e.prop, t)
4851
4878
  ]);
4852
4879
  }
4853
- }, Wi = [
4854
- Ui,
4880
+ }, Ki = [
4855
4881
  qi,
4856
4882
  Gi,
4857
4883
  Hi,
4858
4884
  zi,
4859
- Ji
4860
- ], Ki = {
4885
+ Ji,
4886
+ Wi
4887
+ ], Xi = {
4861
4888
  button: "iButton",
4862
4889
  icon: "Icon",
4863
4890
  slider: "Slider",
@@ -4889,7 +4916,7 @@ const _t = "datePicker", Ui = {
4889
4916
  resetBtnIcon: "md-refresh",
4890
4917
  infoIcon: "ios-information-circle-outline"
4891
4918
  };
4892
- function Xi() {
4919
+ function Zi() {
4893
4920
  return {
4894
4921
  type: "poptip",
4895
4922
  trigger: "hover",
@@ -4898,7 +4925,7 @@ function Xi() {
4898
4925
  icon: Ie.infoIcon
4899
4926
  };
4900
4927
  }
4901
- function Zi() {
4928
+ function Qi() {
4902
4929
  return {
4903
4930
  form: {
4904
4931
  inline: !1,
@@ -4936,14 +4963,14 @@ function wt(t, e) {
4936
4963
  function Z(t) {
4937
4964
  return t === !1;
4938
4965
  }
4939
- function Qi(t, e) {
4966
+ function Yi(t, e) {
4940
4967
  E(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4941
4968
  }
4942
4969
  function ze(t) {
4943
4970
  const e = v({}, t);
4944
4971
  return delete e.children, e;
4945
4972
  }
4946
- const Yi = {
4973
+ const xi = {
4947
4974
  validate() {
4948
4975
  const t = this.form();
4949
4976
  return t ? t.validate() : new Promise((e) => e());
@@ -4962,7 +4989,7 @@ const Yi = {
4962
4989
  },
4963
4990
  tidyOptions(t) {
4964
4991
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4965
- Qi(t, e);
4992
+ Yi(t, e);
4966
4993
  }), t;
4967
4994
  },
4968
4995
  tidyRule({ prop: t }) {
@@ -4970,7 +4997,7 @@ const Yi = {
4970
4997
  },
4971
4998
  mergeProp(t) {
4972
4999
  const e = {
4973
- info: Xi(),
5000
+ info: Zi(),
4974
5001
  title: {},
4975
5002
  col: { span: 24 },
4976
5003
  wrap: {}
@@ -4983,7 +5010,7 @@ const Yi = {
4983
5010
  !t.size && this.options.form.size && (t.size = this.options.form.size);
4984
5011
  },
4985
5012
  getDefaultOptions() {
4986
- return Zi();
5013
+ return Qi();
4987
5014
  },
4988
5015
  update() {
4989
5016
  const t = this.options.form;
@@ -5030,12 +5057,12 @@ const Yi = {
5030
5057
  return !(!e.title && !e.native || Z(e.show));
5031
5058
  },
5032
5059
  makeInfo(t, e, r) {
5033
- var u, f, d, g, m, y;
5060
+ var u, f, d, p, y, g;
5034
5061
  const i = v({}, t.title), s = v({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5035
5062
  title: (f = (u = r.refRule) == null ? void 0 : u.__$title) == null ? void 0 : f.value,
5036
5063
  rule: r.rule,
5037
5064
  options: this.options
5038
- }) : ((g = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : g.value) + (n.labelSuffix || n["label-suffix"] || "")];
5065
+ }) : ((p = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : p.value) + (n.labelSuffix || n["label-suffix"] || "")];
5039
5066
  if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
5040
5067
  const _ = {
5041
5068
  type: s.type || "poptip",
@@ -5045,7 +5072,7 @@ const Yi = {
5045
5072
  };
5046
5073
  delete _.props.icon, delete _.props.show, delete _.props.info, delete _.props.align, delete _.props.native;
5047
5074
  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, _]), [
5075
+ s.info && !E(_.props, D) && (_.props[D] = (g = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : g.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, _]), [
5049
5076
  this.$r({
5050
5077
  type: "icon",
5051
5078
  props: { type: s.icon === !0 ? Ie.infoIcon : s.icon, size: 16 },
@@ -5130,34 +5157,34 @@ const Yi = {
5130
5157
  key: `${this.key}b1`
5131
5158
  }, [e]);
5132
5159
  }
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);
5160
+ }, oe = {}, en = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5161
+ function tn(t) {
5162
+ en.forEach((e) => {
5163
+ t[e] = P(e);
5137
5164
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
5138
5165
  }
5139
- function tn(t) {
5166
+ function rn(t) {
5140
5167
  const e = "upload", r = {
5141
5168
  image: ["image", 0],
5142
5169
  file: ["file", 0],
5143
5170
  uploadFileOne: ["file", 1],
5144
5171
  uploadImageOne: ["image", 1]
5145
5172
  };
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;
5173
+ Object.keys(r).reduce((i, s) => (i[s] = P(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
5147
5174
  }
5148
- function rn(t) {
5175
+ function nn(t) {
5149
5176
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
5150
- Object.keys(r).reduce((i, s) => (i[s] = V(e, { type: r[s] }), i), t);
5177
+ Object.keys(r).reduce((i, s) => (i[s] = P(e, { type: r[s] }), i), t);
5151
5178
  }
5152
- function nn(t) {
5179
+ function sn(t) {
5153
5180
  const e = "timePicker";
5154
- t.time = V(e, { type: "time" }), t.timeRange = V(e, { type: "timerange" });
5181
+ t.time = P(e, { type: "time" }), t.timeRange = P(e, { type: "timerange" });
5155
5182
  }
5156
- function sn(t) {
5183
+ function on(t) {
5157
5184
  const e = "select";
5158
- t.selectMultiple = V(e, { multiple: !0 }), t.selectOne = V(e, { multiple: !1 });
5185
+ t.selectMultiple = P(e, { multiple: !0 }), t.selectOne = P(e, { multiple: !1 });
5159
5186
  }
5160
- function on(t) {
5187
+ function an(t) {
5161
5188
  const e = "frame", r = {
5162
5189
  frameInputs: ["input", 0],
5163
5190
  frameFiles: ["file", 0],
@@ -5166,18 +5193,18 @@ function on(t) {
5166
5193
  frameFileOne: ["file", 1],
5167
5194
  frameImageOne: ["image", 1]
5168
5195
  };
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;
5196
+ Object.keys(r).reduce((i, s) => (i[s] = P(e, (n) => n.props({ type: r[s][0], maxLength: r[s][1] })), i), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages;
5170
5197
  }
5171
- en(oe);
5172
5198
  tn(oe);
5173
5199
  rn(oe);
5174
- sn(oe);
5175
- on(oe);
5176
5200
  nn(oe);
5201
+ on(oe);
5202
+ an(oe);
5203
+ sn(oe);
5177
5204
  function Ot(t, e) {
5178
5205
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5179
5206
  }
5180
- function an(t, e) {
5207
+ function ln(t, e) {
5181
5208
  return {
5182
5209
  formEl() {
5183
5210
  return e.$manager.form();
@@ -5275,11 +5302,11 @@ function an(t, e) {
5275
5302
  }
5276
5303
  };
5277
5304
  }
5278
- const Kt = {
5305
+ const Xt = {
5279
5306
  name: "required",
5280
5307
  load(t, e, r) {
5281
5308
  var s, n;
5282
- const i = ln(t.getValue());
5309
+ const i = un(t.getValue());
5283
5310
  if (i.required === !1)
5284
5311
  t.clearProp(), r.clearValidateState([e.field]);
5285
5312
  else {
@@ -5300,28 +5327,28 @@ const Kt = {
5300
5327
  r.sync(e);
5301
5328
  },
5302
5329
  watch(...t) {
5303
- Kt.load(...t);
5330
+ Xt.load(...t);
5304
5331
  }
5305
5332
  };
5306
- function ln(t) {
5333
+ function un(t) {
5307
5334
  return h.Boolean(t) ? { required: t } : h.String(t) ? { message: t } : h.Undef(t) ? { required: !1 } : h.Function(t) ? { validator: t } : h.Object(t) ? t : {};
5308
5335
  }
5309
- function un(t) {
5310
- t.componentAlias(Ki), Mr.forEach((e) => {
5336
+ function fn(t) {
5337
+ t.componentAlias(Xi), Ur.forEach((e) => {
5311
5338
  t.component(e.name, e);
5312
- }), t.register(Kt), Wi.forEach((e) => {
5339
+ }), t.register(Xt), Ki.forEach((e) => {
5313
5340
  t.parser(e);
5314
5341
  }), Object.keys(oe).forEach((e) => {
5315
5342
  t.maker[e] = oe[e];
5316
5343
  });
5317
5344
  }
5318
- function fn() {
5319
- return Wt({
5345
+ function cn() {
5346
+ return Kt({
5320
5347
  ui: "view-design",
5321
- version: "2.7.8",
5322
- manager: Yi,
5323
- install: un,
5324
- extendApi: an,
5348
+ version: "2.7.9",
5349
+ manager: xi,
5350
+ install: fn,
5351
+ extendApi: ln,
5325
5352
  attrs: {
5326
5353
  normal: ["col", "wrap"],
5327
5354
  array: ["className"],
@@ -5329,10 +5356,10 @@ function fn() {
5329
5356
  }
5330
5357
  });
5331
5358
  }
5332
- const Ye = fn();
5359
+ const Ye = cn();
5333
5360
  typeof window != "undefined" && (window.formCreate = Ye, window.Vue && Ye.install(window.Vue));
5334
- const dn = Ye.maker;
5361
+ const pn = Ye.maker;
5335
5362
  export {
5336
5363
  Ye as default,
5337
- dn as maker
5364
+ pn as maker
5338
5365
  };