@form-create/iview 2.7.0-alpha.0 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,61 +1,61 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/iview v2.7.0-alpha.0
3
+ * @form-create/iview v2.7.0
4
4
  * (c) 2018-2024 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 xt = Object.defineProperty, er = Object.defineProperties;
11
- var tr = Object.getOwnPropertyDescriptors;
12
- var it = Object.getOwnPropertySymbols;
13
- var rr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable;
14
- var nt = (t, e, r) => e in t ? xt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
10
+ var rr = Object.defineProperty, ir = Object.defineProperties;
11
+ var nr = Object.getOwnPropertyDescriptors;
12
+ var st = Object.getOwnPropertySymbols;
13
+ var sr = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable;
14
+ var ot = (t, e, r) => e in t ? rr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, b = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
- rr.call(e, r) && nt(t, r, e[r]);
17
- if (it)
18
- for (var r of it(e))
19
- ir.call(e, r) && nt(t, r, e[r]);
16
+ sr.call(e, r) && ot(t, r, e[r]);
17
+ if (st)
18
+ for (var r of st(e))
19
+ or.call(e, r) && ot(t, r, e[r]);
20
20
  return t;
21
- }, N = (t, e) => er(t, tr(e));
22
- import pe, { getCurrentInstance as nr, provide as sr, inject as or, toRefs as st, reactive as te, onBeforeMount as ar, watch as P, onMounted as lr, onBeforeUnmount as ur, onUpdated as fr, nextTick as H, markRaw as he, computed as de, toRef as ke, ref as cr } from "vue";
23
- function hr(t) {
21
+ }, U = (t, e) => ir(t, nr(e));
22
+ import he, { getCurrentInstance as ar, provide as lr, inject as ur, toRefs as at, reactive as x, onBeforeMount as fr, watch as B, onMounted as cr, onBeforeUnmount as hr, onUpdated as dr, nextTick as H, markRaw as fe, computed as ce, toRef as Re, ref as pr } from "vue";
23
+ function mr(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
- function qe() {
27
- return qe = Object.assign ? Object.assign.bind() : function(t) {
26
+ function He() {
27
+ return He = Object.assign ? Object.assign.bind() : function(t) {
28
28
  for (var e, r = 1; r < arguments.length; r++) for (var i in e = arguments[r], e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
29
29
  return t;
30
- }, qe.apply(this, arguments);
30
+ }, He.apply(this, arguments);
31
31
  }
32
- var dr = ["attrs", "props", "domProps"], pr = ["class", "style", "directives"], mr = ["on", "nativeOn"], gr = function(t) {
32
+ var gr = ["attrs", "props", "domProps"], yr = ["class", "style", "directives"], $r = ["on", "nativeOn"], vr = 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 (dr.indexOf(i) !== -1) e[i] = qe({}, e[i], r[i]);
36
- else if (pr.indexOf(i) !== -1) {
35
+ else if (gr.indexOf(i) !== -1) e[i] = He({}, e[i], r[i]);
36
+ else if (yr.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 (mr.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] ? yr(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] ? br(e[i][u], r[i][u]) : r[i][u];
45
45
  else e[i] = r[i];
46
46
  return e;
47
47
  }, {});
48
- }, yr = function(t, e) {
48
+ }, br = function(t, e) {
49
49
  return function() {
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
- }, $r = gr;
53
- const E = /* @__PURE__ */ hr($r);
54
- function Re(t, e) {
52
+ }, _r = vr;
53
+ const D = /* @__PURE__ */ mr(_r);
54
+ function Ee(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 vr = "fcCheckbox", br = {
58
- name: vr,
57
+ const Cr = "fcCheckbox", wr = {
58
+ name: Cr,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -100,7 +100,7 @@ const vr = "fcCheckbox", br = {
100
100
  },
101
101
  render() {
102
102
  const t = arguments[0];
103
- return t("CheckboxGroup", E([{}, this.formCreateInject.prop, {
103
+ return t("CheckboxGroup", D([{}, this.formCreateInject.prop, {
104
104
  ref: "el"
105
105
  }, {
106
106
  props: {
@@ -111,25 +111,25 @@ const vr = "fcCheckbox", br = {
111
111
  input: this.onInput
112
112
  }
113
113
  }]), [this.options().map((e, r) => {
114
- const i = v({}, e);
115
- return delete i.value, t("Checkbox", E([{}, {
114
+ const i = b({}, e);
115
+ return delete i.value, t("Checkbox", D([{}, {
116
116
  props: i
117
117
  }, {
118
118
  key: "" + r + "-" + e.value
119
119
  }]));
120
- }), Re(this.$slots)]);
120
+ }), Ee(this.$slots)]);
121
121
  },
122
122
  mounted() {
123
123
  this.$emit("fc.el", this.$refs.el);
124
124
  }
125
125
  };
126
- function q(t) {
126
+ function G(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
- const _r = "fcFrame";
130
- function bt(t) {
129
+ const Or = "fcFrame";
130
+ function wt(t) {
131
131
  return {
132
- name: _r,
132
+ name: Or,
133
133
  props: {
134
134
  formCreateInject: {
135
135
  type: Object,
@@ -250,7 +250,7 @@ function bt(t) {
250
250
  },
251
251
  data() {
252
252
  return {
253
- fileList: q(this.value),
253
+ fileList: G(this.value),
254
254
  previewVisible: !1,
255
255
  frameVisible: !1,
256
256
  previewImage: ""
@@ -258,7 +258,7 @@ function bt(t) {
258
258
  },
259
259
  watch: {
260
260
  value(e) {
261
- this.fileList = q(e);
261
+ this.fileList = G(e);
262
262
  },
263
263
  fileList(e) {
264
264
  const r = this.maxLength === 1 ? e[0] || "" : e;
@@ -286,7 +286,7 @@ function bt(t) {
286
286
  readonly: !0,
287
287
  clearable: !1
288
288
  };
289
- return e("Input", E([{}, {
289
+ return e("Input", D([{}, {
290
290
  props: r
291
291
  }, {}, {
292
292
  on: {
@@ -325,7 +325,7 @@ function bt(t) {
325
325
  },
326
326
  makeHandleIcon(e, r) {
327
327
  const i = this.$createElement;
328
- return i("icon", E([{}, {
328
+ return i("icon", D([{}, {
329
329
  props: {
330
330
  type: this.handleIcon === !0 || this.handleIcon === void 0 ? "ios-eye-outline" : this.handleIcon
331
331
  }
@@ -338,7 +338,7 @@ function bt(t) {
338
338
  },
339
339
  makeRemoveIcon(e, r) {
340
340
  const i = this.$createElement;
341
- return i("icon", E([{}, {
341
+ return i("icon", D([{}, {
342
342
  props: {
343
343
  type: "ios-trash-outline"
344
344
  }
@@ -351,7 +351,7 @@ function bt(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", E([{}, {
354
+ return this.makeGroup(this.fileList.map((r, i) => this.makeItem(i, [e("icon", D([{}, {
355
355
  props: {
356
356
  type: t.fileIcon,
357
357
  size: 40
@@ -378,7 +378,7 @@ function bt(t) {
378
378
  click: () => this.showModel()
379
379
  },
380
380
  key: this.key("btn")
381
- }, [e("icon", E([{}, {
381
+ }, [e("icon", D([{}, {
382
382
  props: {
383
383
  type: this.icon,
384
384
  size: 20
@@ -450,7 +450,7 @@ function bt(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", E([{}, {
453
+ }, [i, e("Modal", D([{}, {
454
454
  props: {
455
455
  mask: this.previewMask,
456
456
  title: l,
@@ -468,8 +468,8 @@ function bt(t) {
468
468
  attrs: {
469
469
  src: this.previewImage
470
470
  }
471
- })]), e("Modal", E([{}, {
472
- props: v({
471
+ })]), e("Modal", D([{}, {
472
+ props: b({
473
473
  width: s,
474
474
  title: a
475
475
  }, this.modal)
@@ -503,16 +503,16 @@ function bt(t) {
503
503
  }
504
504
  };
505
505
  }
506
- const _t = bt({
506
+ const Ot = wt({
507
507
  fileIcon: "md-document",
508
508
  fileUpIcon: "ios-folder-open"
509
509
  });
510
- _t.v2 = bt({
510
+ Ot.v2 = wt({
511
511
  fileIcon: "document-text",
512
512
  fileUpIcon: "folder"
513
513
  });
514
- const Cr = "fcRadio", wr = {
515
- name: Cr,
514
+ const kr = "fcRadio", Fr = {
515
+ name: kr,
516
516
  props: {
517
517
  formCreateInject: {
518
518
  type: Object,
@@ -553,7 +553,7 @@ const Cr = "fcRadio", wr = {
553
553
  },
554
554
  render() {
555
555
  const t = arguments[0];
556
- return t("RadioGroup", E([{}, this.formCreateInject.prop, {}, {
556
+ return t("RadioGroup", D([{}, this.formCreateInject.prop, {}, {
557
557
  props: {
558
558
  value: this.trueValue
559
559
  }
@@ -563,18 +563,18 @@ const Cr = "fcRadio", wr = {
563
563
  input: this.onInput
564
564
  }
565
565
  }]), [this.options().map((e, r) => {
566
- const i = v({}, e);
567
- return delete i.value, t("Radio", E([{}, {
566
+ const i = b({}, e);
567
+ return delete i.value, t("Radio", D([{}, {
568
568
  props: i
569
569
  }, {
570
570
  key: "" + r + "-" + e.value
571
571
  }]));
572
- }), Re(this.$slots)]);
572
+ }), Ee(this.$slots)]);
573
573
  },
574
574
  mounted() {
575
575
  this.$emit("fc.el", this.$refs.el);
576
576
  }
577
- }, d = {
577
+ }, h = {
578
578
  type(t, e) {
579
579
  return Object.prototype.toString.call(t) === "[object " + e + "]";
580
580
  },
@@ -582,7 +582,7 @@ const Cr = "fcRadio", wr = {
582
582
  return t == null;
583
583
  },
584
584
  Element(t) {
585
- return typeof t == "object" && t !== null && t.nodeType === 1 && !d.Object(t);
585
+ return typeof t == "object" && t !== null && t.nodeType === 1 && !h.Object(t);
586
586
  },
587
587
  trueArray(t) {
588
588
  return Array.isArray(t) && t.length > 0;
@@ -600,15 +600,15 @@ const Cr = "fcRadio", wr = {
600
600
  }
601
601
  };
602
602
  ["Date", "Object", "String", "Boolean", "Array", "Number"].forEach((t) => {
603
- d[t] = function(e) {
604
- return d.type(e, t);
603
+ h[t] = function(e) {
604
+ return h.type(e, t);
605
605
  };
606
606
  });
607
607
  function R(t, e) {
608
608
  return {}.hasOwnProperty.call(t, e);
609
609
  }
610
- const Or = "fcSelect", kr = {
611
- name: Or,
610
+ const Rr = "fcSelect", Sr = {
611
+ name: Rr,
612
612
  functional: !0,
613
613
  props: {
614
614
  formCreateInject: {
@@ -619,28 +619,28 @@ const Or = "fcSelect", kr = {
619
619
  render(t, e) {
620
620
  const r = (n, o) => {
621
621
  const a = n.slot;
622
- return t("Option", E([{}, {
622
+ return t("Option", D([{}, {
623
623
  props: n
624
624
  }, {
625
625
  key: "" + o + "-" + n.value
626
626
  }]), [a ? t("template", {
627
627
  slot: n.slotName || "default"
628
- }, [d.Function(a) ? n.slot(t) : a]) : null]);
628
+ }, [h.Function(a) ? n.slot(t) : a]) : null]);
629
629
  }, i = (n, o) => t("OptionGroup", {
630
630
  attrs: {
631
631
  label: n.label
632
632
  },
633
633
  key: "" + o + "-" + n.label
634
- }, [d.trueArray(n.options) && n.options.map((a, l) => r(a, l))]), s = e.props.formCreateInject.options;
635
- return t("Select", E([{}, e.data, {
634
+ }, [h.trueArray(n.options) && n.options.map((a, l) => r(a, l))]), s = e.props.formCreateInject.options;
635
+ return t("Select", D([{}, e.data, {
636
636
  ref: "el"
637
637
  }]), [(Array.isArray(s) ? s : []).map((n, o) => R(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
- }, Fr = "fcTree", Rr = {
643
- name: Fr,
642
+ }, Er = "fcTree", Dr = {
643
+ name: Er,
644
644
  props: {
645
645
  formCreateInject: {
646
646
  type: Object,
@@ -670,7 +670,7 @@ const Or = "fcSelect", kr = {
670
670
  },
671
671
  methods: {
672
672
  setStatus(t) {
673
- const e = q(t), r = this.formCreateInject.prop.props.data;
673
+ const e = G(t), r = this.formCreateInject.prop.props.data;
674
674
  this.type === "selected" ? this.checked(r, e, "selected") : this.checked(r, e, "checked"), this.$forceUpdate();
675
675
  },
676
676
  checked(t, e, r) {
@@ -684,36 +684,36 @@ const Or = "fcSelect", kr = {
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", E([{}, this.formCreateInject.prop, {
687
+ return this.type === "selected" ? e["on-select-change"] = this.onInput : e["on-check-change"] = this.onInput, t("Tree", D([{}, this.formCreateInject.prop, {
688
688
  ref: "tree"
689
689
  }, {
690
690
  on: e
691
- }]), [Re(this.$slots)]);
691
+ }]), [Ee(this.$slots)]);
692
692
  },
693
693
  mounted() {
694
694
  this.$emit("fc.el", this.$refs.tree);
695
695
  }
696
696
  };
697
- function ot(t) {
697
+ function lt(t) {
698
698
  return typeof t == "object" ? t : {
699
699
  url: t,
700
700
  is_string: !0,
701
- name: Sr(t)
701
+ name: jr(t)
702
702
  };
703
703
  }
704
- function at(t) {
705
- return N(v({}, t), {
704
+ function ut(t) {
705
+ return U(b({}, t), {
706
706
  file: t,
707
707
  value: t
708
708
  });
709
709
  }
710
- function Sr(t) {
710
+ function jr(t) {
711
711
  return ("" + t).split("/").pop();
712
712
  }
713
- const Er = "fcUpload";
714
- function Ct(t) {
713
+ const Ir = "fcUpload";
714
+ function kt(t) {
715
715
  return {
716
- name: Er,
716
+ name: Ir,
717
717
  props: {
718
718
  formCreateInject: {
719
719
  type: Object,
@@ -754,11 +754,11 @@ function Ct(t) {
754
754
  };
755
755
  },
756
756
  created() {
757
- this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = !1), this.formCreateInject.prop.props.defaultFileList = q(this.value).map(ot).map(at);
757
+ this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = !1), this.formCreateInject.prop.props.defaultFileList = G(this.value).map(lt).map(ut);
758
758
  },
759
759
  watch: {
760
760
  value(e) {
761
- this.$refs.upload.fileList.every((r) => !r.status || r.status === "finished") && (this.$refs.upload.fileList = q(e).map(ot).map(at), this.uploadList = this.$refs.upload.fileList);
761
+ this.$refs.upload.fileList.every((r) => !r.status || r.status === "finished") && (this.$refs.upload.fileList = G(e).map(lt).map(ut), this.uploadList = this.$refs.upload.fileList);
762
762
  },
763
763
  maxLength(e, r) {
764
764
  (r === 1 || e === 1) && this.update();
@@ -784,7 +784,7 @@ function Ct(t) {
784
784
  src: e.url
785
785
  },
786
786
  key: this.key("img" + r)
787
- }) : i("icon", E([{}, {
787
+ }) : i("icon", D([{}, {
788
788
  props: {
789
789
  type: t.fileIcon,
790
790
  size: 40
@@ -819,7 +819,7 @@ function Ct(t) {
819
819
  },
820
820
  makeProgress(e, r) {
821
821
  const i = this.$createElement;
822
- return i("Progress", E([{}, {
822
+ return i("Progress", D([{}, {
823
823
  props: {
824
824
  percent: e.percentage,
825
825
  hideInfo: !0
@@ -849,7 +849,7 @@ function Ct(t) {
849
849
  },
850
850
  makeUpload() {
851
851
  const e = this.$createElement, r = !this.maxLength || this.maxLength > this.uploadList.length;
852
- return e("Upload", E([{}, this.formCreateInject.prop, {}, {
852
+ return e("Upload", D([{}, this.formCreateInject.prop, {}, {
853
853
  style: {
854
854
  display: "inline-block"
855
855
  },
@@ -859,12 +859,12 @@ function Ct(t) {
859
859
  slot: "default"
860
860
  }, [this.$slots.default || e("div", {
861
861
  class: "fc-upload-btn"
862
- }, [e("icon", E([{}, {
862
+ }, [e("icon", D([{}, {
863
863
  props: {
864
864
  type: this.uploadType === "file" ? "ios-cloud-upload-outline" : t.imgUpIcon,
865
865
  size: 20
866
866
  }
867
- }]))])]) : null, Re(this.$slots, ["default"])]);
867
+ }]))])]) : null, Ee(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 Ct(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", E([{}, {
881
+ }, [[this.formCreateInject.prop.props.showUploadList ? [] : this.makeFiles(), this.makeUpload()], e("Modal", D([{}, {
882
882
  props: {
883
883
  title: this.modalTitle,
884
884
  footerHide: !0
@@ -907,61 +907,61 @@ function Ct(t) {
907
907
  }
908
908
  };
909
909
  }
910
- const wt = Ct({
910
+ const Ft = kt({
911
911
  fileIcon: "md-document",
912
912
  imgUpIcon: "md-images"
913
913
  });
914
- wt.v2 = Ct({
914
+ Ft.v2 = kt({
915
915
  fileIcon: "document-text",
916
916
  imgUpIcon: "image"
917
917
  });
918
- function j(t, e, r) {
919
- pe.set(t, e, r);
918
+ function F(t, e, r) {
919
+ he.set(t, e, r);
920
920
  }
921
- function oe(t, e) {
922
- (pe.del || pe.delete)(t, e);
921
+ function Y(t, e) {
922
+ (he.del || he.delete)(t, e);
923
923
  }
924
924
  function ye(t, e = {}, r) {
925
925
  let i = !1;
926
926
  for (let s in e)
927
927
  if (Object.prototype.hasOwnProperty.call(e, s)) {
928
928
  let n = e[s];
929
- if ((i = Array.isArray(n)) || d.Object(n)) {
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 && j(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 && j(t, s, {});
935
+ n = n.getRule(), o && F(t, s, {});
936
936
  else {
937
- j(t, s, n._clone());
937
+ F(t, s, n._clone());
938
938
  continue;
939
939
  }
940
940
  else
941
- o && j(t, s, {});
941
+ o && F(t, s, {});
942
942
  t[s] = ye(t[s], n, r);
943
943
  } else
944
- j(t, s, n), d.Undef(n) || (d.Undef(n.__json) || (t[s].__json = n.__json), d.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
- function G(t) {
948
+ function J(t) {
949
949
  return ye({}, { value: t }).value;
950
950
  }
951
- const Dr = Object.assign || function(t) {
951
+ const Ar = 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) && j(t, i, e[i]);
954
+ Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
955
955
  return t;
956
956
  };
957
- function b() {
958
- return Dr.apply(this, arguments);
957
+ function _() {
958
+ return Ar.apply(this, arguments);
959
959
  }
960
- function Ge(t) {
961
- return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
960
+ function Je(t) {
961
+ return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : b({}, t);
962
962
  }
963
- const jr = "fcGroup", Ir = {
964
- name: jr,
963
+ const Vr = "fcGroup", Pr = {
964
+ name: Vr,
965
965
  props: {
966
966
  field: String,
967
967
  rule: [Array, Object],
@@ -1048,7 +1048,7 @@ const jr = "fcGroup", Ir = {
1048
1048
  const n = i.$f.formData();
1049
1049
  i.$f.once("reloading", () => {
1050
1050
  i.$f.setValue(n);
1051
- }), i.rule = G(t);
1051
+ }), i.rule = J(t);
1052
1052
  }
1053
1053
  }
1054
1054
  });
@@ -1093,7 +1093,7 @@ const jr = "fcGroup", Ir = {
1093
1093
  if (i.filter((n) => r[n].$f).length !== i.length)
1094
1094
  return;
1095
1095
  const s = i.map((n) => {
1096
- const o = t === n ? e : v({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1096
+ const o = t === n ? e : b({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1097
1097
  return this.cache(n, a), a;
1098
1098
  });
1099
1099
  this.input(s);
@@ -1105,14 +1105,14 @@ const jr = "fcGroup", Ir = {
1105
1105
  }), this.cacheValue[t] !== JSON.stringify(r ? e[r] : e) && (this.cache(t, e), i && i.coverValue(e || {}));
1106
1106
  },
1107
1107
  addRule(t, e) {
1108
- const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? v({}, this.options) : {
1108
+ const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? b({}, this.options) : {
1109
1109
  submitBtn: !1,
1110
1110
  resetBtn: !1
1111
1111
  };
1112
1112
  if (this.defaultValue) {
1113
1113
  i.formData || (i.formData = {});
1114
- const s = G(this.defaultValue);
1115
- b(i.formData, this.field ? {
1114
+ const s = J(this.defaultValue);
1115
+ _(i.formData, this.field ? {
1116
1116
  [this.field]: s
1117
1117
  } : s);
1118
1118
  }
@@ -1218,7 +1218,7 @@ const jr = "fcGroup", Ir = {
1218
1218
  add: this.add
1219
1219
  }) : t("div", {
1220
1220
  key: "a_def",
1221
- class: "_fc-group-plus-minus _fc-group-add",
1221
+ class: "_fc-group-plus-minus _fc-group-add fc-clock",
1222
1222
  on: {
1223
1223
  click: this.add
1224
1224
  }
@@ -1230,7 +1230,7 @@ const jr = "fcGroup", Ir = {
1230
1230
  return t("div", {
1231
1231
  class: "_fc-group-container",
1232
1232
  key: o
1233
- }, [t(i, E([{
1233
+ }, [t(i, D([{
1234
1234
  key: o
1235
1235
  }, {
1236
1236
  on: {
@@ -1252,7 +1252,7 @@ const jr = "fcGroup", Ir = {
1252
1252
  }])), t("div", {
1253
1253
  class: "_fc-group-idx"
1254
1254
  }, [a + 1]), f.length ? t("div", {
1255
- class: "_fc-group-handle"
1255
+ class: "_fc-group-handle fc-clock"
1256
1256
  }, [f]) : null]);
1257
1257
  });
1258
1258
  return t("div", {
@@ -1260,8 +1260,8 @@ const jr = "fcGroup", Ir = {
1260
1260
  class: "_fc-group " + (s ? "_fc-group-disabled" : "")
1261
1261
  }, [n]);
1262
1262
  }
1263
- }, Ar = "fcSubForm", Vr = {
1264
- name: Ar,
1263
+ }, Br = "fcSubForm", Lr = {
1264
+ name: Br,
1265
1265
  props: {
1266
1266
  rule: Array,
1267
1267
  options: Object,
@@ -1307,7 +1307,7 @@ const jr = "fcGroup", Ir = {
1307
1307
  submitBtn: !1,
1308
1308
  resetBtn: !1
1309
1309
  };
1310
- t.formData = v({}, this.value || {}), this.cacheRule = {
1310
+ t.formData = b({}, this.value || {}), this.cacheRule = {
1311
1311
  rule: this.rule,
1312
1312
  options: t
1313
1313
  };
@@ -1329,7 +1329,7 @@ const jr = "fcGroup", Ir = {
1329
1329
  rule: e,
1330
1330
  options: r
1331
1331
  } = this.cacheRule, i = this.type;
1332
- return t(i, E([{}, {
1332
+ return t(i, D([{}, {
1333
1333
  on: {
1334
1334
  "update:value": this.formData,
1335
1335
  "emit-event": this.emitEvent,
@@ -1344,17 +1344,17 @@ const jr = "fcGroup", Ir = {
1344
1344
  }
1345
1345
  }]));
1346
1346
  }
1347
- }, Pr = [
1348
- br,
1347
+ }, Tr = [
1349
1348
  wr,
1350
- kr,
1351
- Rr,
1352
- Vr,
1353
- _t,
1354
- wt,
1355
- Ir
1349
+ Fr,
1350
+ Sr,
1351
+ Dr,
1352
+ Lr,
1353
+ Ot,
1354
+ Ft,
1355
+ Pr
1356
1356
  ];
1357
- function ue(t, e) {
1357
+ function le(t, e) {
1358
1358
  var r = null;
1359
1359
  return function(...i) {
1360
1360
  r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
@@ -1364,15 +1364,15 @@ function ge(t) {
1364
1364
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1365
1365
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1366
1366
  }
1367
- const we = (t, e) => {
1367
+ const ke = (t, e) => {
1368
1368
  if (!(!t || t === e || !t.$props)) {
1369
1369
  if (t.$props.formCreateInject)
1370
1370
  return t.$props.formCreateInject;
1371
1371
  if (t.$parent)
1372
- return we(t.$parent, e);
1372
+ return ke(t.$parent, e);
1373
1373
  }
1374
1374
  };
1375
- function Br(t, e, r) {
1375
+ function Nr(t, e, r) {
1376
1376
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1377
1377
  return {
1378
1378
  name: i,
@@ -1423,100 +1423,100 @@ function Br(t, e, r) {
1423
1423
  return this.fc.render();
1424
1424
  },
1425
1425
  setup(s) {
1426
- const n = nr().proxy;
1427
- sr("parentFC", n);
1428
- const o = or("parentFC", null);
1426
+ const n = ar().proxy;
1427
+ lr("parentFC", n);
1428
+ const o = ur("parentFC", null);
1429
1429
  let a = o;
1430
1430
  if (o)
1431
1431
  for (; a.parent; )
1432
1432
  a = a.parent;
1433
1433
  else
1434
1434
  a = n;
1435
- const { rule: l, value: u, subForm: f, inFor: p } = st(s), m = te({
1435
+ const { rule: l, value: u, subForm: f, inFor: p } = at(s), m = x({
1436
1436
  ctxInject: {},
1437
1437
  destroyed: !1,
1438
1438
  isShow: !0,
1439
1439
  unique: 1,
1440
1440
  renderRule: [...l.value || []],
1441
1441
  updateValue: JSON.stringify(u.value || {})
1442
- }), $ = new t(n), _ = $.api(), w = p.value, D = () => {
1442
+ }), $ = new t(n), v = $.api(), w = p.value, j = () => {
1443
1443
  if (o) {
1444
- const k = we(n, o);
1445
- if (k) {
1446
- let S;
1447
- w ? (S = q(k.getSubForm()), S.push(_)) : S = _, k.subForm(S);
1444
+ const O = ke(n, o);
1445
+ if (O) {
1446
+ let E;
1447
+ w ? (E = G(O.getSubForm()), E.push(v)) : E = v, O.subForm(E);
1448
1448
  }
1449
1449
  }
1450
1450
  }, Z = () => {
1451
- const k = we(n, o);
1452
- if (k)
1451
+ const O = ke(n, o);
1452
+ if (O)
1453
1453
  if (w) {
1454
- const S = q(k.getSubForm()), V = S.indexOf(_);
1455
- V > -1 && S.splice(V, 1);
1454
+ const E = G(O.getSubForm()), P = E.indexOf(v);
1455
+ P > -1 && E.splice(P, 1);
1456
1456
  } else
1457
- k.subForm();
1457
+ O.subForm();
1458
1458
  };
1459
- let A = null;
1460
- ar(() => {
1461
- P(() => {
1462
- let k = "";
1463
- const S = s.option && s.option.globalClass || {};
1464
- Object.keys(S).forEach((V) => {
1465
- let ne = "";
1466
- S[V].style && Object.keys(S[V].style).forEach((ve) => {
1467
- ne += ge(ve) + ":" + S[V].style[ve] + ";";
1468
- }), S[V].content && (ne += S[V].content + ";"), ne && (k += `.${V}{${ne}}`);
1469
- }), s.option && s.option.style && (k += s.option.style), A || (A = document.createElement("style"), A.type = "text/css", document.head.appendChild(A)), A.innerHTML = k || "";
1459
+ let V = null;
1460
+ fr(() => {
1461
+ B(() => {
1462
+ let O = "";
1463
+ const E = s.option && s.option.globalClass || {};
1464
+ Object.keys(E).forEach((P) => {
1465
+ let re = "";
1466
+ E[P].style && Object.keys(E[P].style).forEach((ve) => {
1467
+ re += ge(ve) + ":" + E[P].style[ve] + ";";
1468
+ }), E[P].content && (re += E[P].content + ";"), re && (O += `.${P}{${re}}`);
1469
+ }), s.option && s.option.style && (O += s.option.style), V || (V = document.createElement("style"), V.type = "text/css", document.head.appendChild(V)), V.innerHTML = O || "";
1470
1470
  }, () => {
1471
1471
  });
1472
1472
  });
1473
- const B = ue(() => {
1473
+ const L = le(() => {
1474
1474
  $.bus.$emit("$loadData.$topForm");
1475
- }, 100), Ee = ue(() => {
1475
+ }, 100), je = le(() => {
1476
1476
  $.bus.$emit("$loadData.$form");
1477
- }, 100), $e = (k) => {
1478
- $.bus.$emit("change-$form." + k);
1477
+ }, 100), $e = (O) => {
1478
+ $.bus.$emit("change-$form." + O);
1479
1479
  };
1480
- return lr(() => {
1481
- o && (_.top.bus.$on("$loadData.$form", B), _.top.bus.$on("change", $e)), $.mounted();
1482
- }), ur(() => {
1483
- o && (_.top.bus.$off("$loadData.$form", B), _.top.bus.$off("change", $e)), A && document.head.removeChild(A), Z(), m.destroyed = !0, $.unmount();
1484
- }), fr(() => {
1480
+ return cr(() => {
1481
+ o && (v.top.bus.$on("$loadData.$form", L), v.top.bus.$on("change", $e)), $.mounted();
1482
+ }), hr(() => {
1483
+ o && (v.top.bus.$off("$loadData.$form", L), v.top.bus.$off("change", $e)), V && document.head.removeChild(V), Z(), m.destroyed = !0, $.unmount();
1484
+ }), dr(() => {
1485
1485
  $.updated();
1486
- }), P(f, (k) => {
1487
- k ? D() : Z();
1488
- }, { immediate: !0 }), P(() => [...l.value], (k) => {
1489
- $.$handle.isBreakWatch() || k.length === m.renderRule.length && k.every((S) => m.renderRule.indexOf(S) > -1) || ($.$handle.updateAppendData(), $.$handle.reloadRule(l.value), n.renderRule());
1490
- }), P(() => s.option, () => {
1491
- $.initOptions(), _.refresh();
1492
- }, { deep: !0 }), P(() => [s.disabled, s.preview], () => {
1493
- _.refresh();
1494
- }), P(u, (k) => {
1495
- JSON.stringify(k || {}) !== m.updateValue && (_.config.forceCoverValue ? _.coverValue(k || {}) : _.setValue(k || {}));
1496
- }, { deep: !0, flush: "post" }), P(() => s.index, () => {
1497
- _.coverValue({}), $.$handle.updateAppendData(), H(() => {
1486
+ }), B(f, (O) => {
1487
+ O ? j() : Z();
1488
+ }, { immediate: !0 }), B(() => [...l.value], (O) => {
1489
+ $.$handle.isBreakWatch() || O.length === m.renderRule.length && O.every((E) => m.renderRule.indexOf(E) > -1) || ($.$handle.updateAppendData(), $.$handle.reloadRule(l.value), n.renderRule());
1490
+ }), B(() => s.option, () => {
1491
+ $.initOptions(), v.refresh();
1492
+ }, { deep: !0 }), B(() => [s.disabled, s.preview], () => {
1493
+ v.refresh();
1494
+ }), B(u, (O) => {
1495
+ JSON.stringify(O || {}) !== m.updateValue && (v.config.forceCoverValue ? v.coverValue(O || {}) : v.setValue(O || {}));
1496
+ }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1497
+ v.coverValue({}), $.$handle.updateAppendData(), H(() => {
1498
1498
  H(() => {
1499
- _.clearValidateState();
1499
+ v.clearValidateState();
1500
1500
  });
1501
1501
  });
1502
- }, { flush: "sync" }), N(v({
1503
- fc: he($),
1504
- parent: o && he(o),
1505
- top: he(a),
1506
- fapi: he(_)
1507
- }, st(m)), {
1508
- getGroupInject: () => we(n, o),
1502
+ }, { flush: "sync" }), U(b({
1503
+ fc: fe($),
1504
+ parent: o && fe(o),
1505
+ top: fe(a),
1506
+ fapi: fe(v)
1507
+ }, at(m)), {
1508
+ getGroupInject: () => ke(n, o),
1509
1509
  refresh() {
1510
1510
  ++m.unique;
1511
1511
  },
1512
1512
  renderRule() {
1513
1513
  m.renderRule = [...l.value || []];
1514
1514
  },
1515
- updateValue(k) {
1515
+ updateValue(O) {
1516
1516
  if (m.destroyed) return;
1517
- const S = JSON.stringify(k);
1518
- m.updateValue !== S && (m.updateValue = S, n.$emit("update:value", k), H(() => {
1519
- Ee(), o || B();
1517
+ const E = JSON.stringify(O);
1518
+ m.updateValue !== E && (m.updateValue = E, n.$emit("update:value", O), H(() => {
1519
+ je(), o || L();
1520
1520
  }));
1521
1521
  }
1522
1522
  });
@@ -1526,15 +1526,15 @@ function Br(t, e, r) {
1526
1526
  }
1527
1527
  };
1528
1528
  }
1529
- const Ot = ["attrs", "props", "domProps", "scopedSlots"], kt = ["class", "style", "directives"], Ft = ["on", "nativeOn", "hook"], K = (t, e = {}, r = {}) => {
1530
- const i = [...Ot, ...r.normal || []], s = [...kt, ...r.array || []], n = [...Ft, ...r.functional || []], o = r.props || [];
1529
+ const Rt = ["attrs", "props", "domProps", "scopedSlots"], St = ["class", "style", "directives"], Et = ["on", "nativeOn", "hook"], K = (t, e = {}, r = {}) => {
1530
+ const i = [...Rt, ...r.normal || []], s = [...St, ...r.array || []], n = [...Et, ...r.functional || []], o = r.props || [];
1531
1531
  return t.reduce((a, l) => {
1532
1532
  for (const u in l)
1533
1533
  if (a[u])
1534
1534
  if (o.indexOf(u) > -1)
1535
1535
  a[u] = K([l[u]], a[u]);
1536
1536
  else if (i.indexOf(u) > -1)
1537
- a[u] = v(v({}, a[u]), l[u]);
1537
+ a[u] = b(b({}, a[u]), l[u]);
1538
1538
  else if (s.indexOf(u) > -1) {
1539
1539
  const f = a[u] instanceof Array ? a[u] : [a[u]], p = l[u] instanceof Array ? l[u] : [l[u]];
1540
1540
  a[u] = [...f, ...p];
@@ -1547,33 +1547,33 @@ const Ot = ["attrs", "props", "domProps", "scopedSlots"], kt = ["class", "style"
1547
1547
  a[u][f] = l[u][f];
1548
1548
  else if (u === "hook")
1549
1549
  for (let f in l[u])
1550
- a[u][f] ? a[u][f] = Lr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1550
+ a[u][f] ? a[u][f] = Mr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1551
1551
  else
1552
1552
  a[u] = l[u];
1553
1553
  else
1554
- 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];
1554
+ i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = b({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? b({}, l[u]) : l[u] : a[u] = l[u];
1555
1555
  return a;
1556
1556
  }, e);
1557
- }, Lr = (t, e) => function() {
1557
+ }, Mr = (t, e) => function() {
1558
1558
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1559
- }, Rt = ["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"], Qe = ["effect", "deep"];
1560
- function St() {
1561
- return [...Rt, ...Ot, ...kt, ...Ft, ...Xe, ...Qe];
1559
+ }, Dt = ["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"], Ze = ["validate", "children", "control"], Ye = ["effect", "deep"];
1560
+ function jt() {
1561
+ return [...Dt, ...Rt, ...St, ...Et, ...Ze, ...Ye];
1562
1562
  }
1563
- function Et(t, e, r) {
1563
+ function It(t, e, r) {
1564
1564
  return `[form-create ${t}]: ${e}`;
1565
1565
  }
1566
- function Ze(t, e) {
1567
- console.error(Et("err", t));
1566
+ function xe(t, e) {
1567
+ console.error(It("err", t));
1568
1568
  }
1569
- function Tr(t) {
1570
- Ze(t.toString()), console.error(t);
1569
+ function Ur(t) {
1570
+ xe(t.toString()), console.error(t);
1571
1571
  }
1572
- function Nr(t) {
1572
+ function qr(t) {
1573
1573
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1574
1574
  }
1575
- const He = "[[FORM-CREATE-PREFIX-", Je = "-FORM-CREATE-SUFFIX]]";
1576
- function Ye(t, e) {
1575
+ const We = "[[FORM-CREATE-PREFIX-", ze = "-FORM-CREATE-SUFFIX]]";
1576
+ function et(t, e) {
1577
1577
  return JSON.stringify(ye(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1578
1578
  if (!(i && i._isVue === !0)) {
1579
1579
  if (typeof i != "function")
@@ -1581,19 +1581,19 @@ function Ye(t, e) {
1581
1581
  if (i.__json)
1582
1582
  return i.__json;
1583
1583
  if (i.__origin && (i = i.__origin), !i.__emit)
1584
- return He + i + Je;
1584
+ return We + i + ze;
1585
1585
  }
1586
1586
  }, e);
1587
1587
  }
1588
- function Ve(t) {
1588
+ function Be(t) {
1589
1589
  return new Function("return " + t)();
1590
1590
  }
1591
1591
  function Q(t, e) {
1592
- if (t && d.String(t) && t.length > 4) {
1592
+ if (t && h.String(t) && t.length > 4) {
1593
1593
  let r = t.trim(), i = !1;
1594
1594
  try {
1595
- if (r.indexOf(Je) > 0 && r.indexOf(He) === 0)
1596
- r = r.replace(Je, "").replace(He, ""), i = !0;
1595
+ if (r.indexOf(ze) > 0 && r.indexOf(We) === 0)
1596
+ r = r.replace(ze, "").replace(We, ""), i = !0;
1597
1597
  else if (r.indexOf("$FN:") === 0)
1598
1598
  r = r.substring(4), i = !0;
1599
1599
  else if (r.indexOf("$EXEC:") === 0)
@@ -1607,19 +1607,19 @@ function Q(t, e) {
1607
1607
  }, r.__json = t, r.__inject = !0, r;
1608
1608
  } else {
1609
1609
  if (r.indexOf("$FNX:") === 0)
1610
- return r = Ve("function($inject){" + r.substring(5) + "}"), r.__json = t, r.__inject = !0, r;
1610
+ return r = Be("function($inject){" + r.substring(5) + "}"), r.__json = t, r.__inject = !0, r;
1611
1611
  (!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
1612
1612
  }
1613
1613
  if (!i) return t;
1614
1614
  let s;
1615
1615
  try {
1616
- s = Ve(r);
1616
+ s = Be(r);
1617
1617
  } catch (n) {
1618
- s = Ve("function " + r);
1618
+ s = Be("function " + r);
1619
1619
  }
1620
1620
  return s.__json = t, s;
1621
1621
  } catch (s) {
1622
- Ze(`解析失败:${r}
1622
+ xe(`解析失败:${r}
1623
1623
 
1624
1624
  err: ${s}`);
1625
1625
  return;
@@ -1627,23 +1627,23 @@ err: ${s}`);
1627
1627
  }
1628
1628
  return t;
1629
1629
  }
1630
- function Dt(t, e) {
1630
+ function At(t, e) {
1631
1631
  return JSON.parse(t, function(r, i) {
1632
- return d.Undef(i) || !i.indexOf ? i : Q(i, e);
1632
+ return h.Undef(i) || !i.indexOf ? i : Q(i, e);
1633
1633
  });
1634
1634
  }
1635
- let Mr = 0;
1636
- function Se() {
1637
- const t = 370 + ++Mr;
1635
+ let Gr = 0;
1636
+ function De() {
1637
+ const t = 370 + ++Gr;
1638
1638
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1639
1639
  }
1640
- function re(t, e, r) {
1640
+ function ee(t, e, r) {
1641
1641
  let i = t, s;
1642
1642
  return (e || "").split(".").forEach((n) => {
1643
- s && ((!i[s] || typeof i[s] != "object") && j(i, s, {}), i = i[s]), s = n;
1644
- }), j(i, s, r), i;
1643
+ s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
1644
+ }), F(i, s, r), i;
1645
1645
  }
1646
- function We(t, e) {
1646
+ function Ke(t, e) {
1647
1647
  return {
1648
1648
  value: t,
1649
1649
  enumerable: !1,
@@ -1651,60 +1651,60 @@ function We(t, e) {
1651
1651
  writable: !!e
1652
1652
  };
1653
1653
  }
1654
- function jt(t, e) {
1655
- return It([t], e || !1)[0];
1654
+ function Vt(t, e) {
1655
+ return Pt([t], e || !1)[0];
1656
1656
  }
1657
- function It(t, e) {
1657
+ function Pt(t, e) {
1658
1658
  return ye([], [...t], e || !1);
1659
1659
  }
1660
1660
  function X(t, e) {
1661
- return K(Array.isArray(e) ? e : [e], t, { array: Xe, normal: Qe }), t;
1661
+ return K(Array.isArray(e) ? e : [e], t, { array: Ze, normal: Ye }), t;
1662
1662
  }
1663
- function lt(t) {
1664
- const e = d.Function(t.getRule) ? t.getRule() : t;
1663
+ function ft(t) {
1664
+ const e = h.Function(t.getRule) ? t.getRule() : t;
1665
1665
  return e.type || (e.type = "input"), e;
1666
1666
  }
1667
- function Ur(t, e) {
1667
+ function Hr(t, e) {
1668
1668
  return t ? (Object.keys(e || {}).forEach((r) => {
1669
1669
  e[r] && (t[r] = X(t[r] || {}, e[r]));
1670
1670
  }), t) : e;
1671
1671
  }
1672
- function At(t, e) {
1672
+ function Bt(t, e) {
1673
1673
  Object.defineProperties(t, Object.keys(e).reduce((r, i) => (r[i] = {
1674
1674
  get() {
1675
1675
  return e[i]();
1676
1676
  }
1677
1677
  }, r), {}));
1678
1678
  }
1679
- function ae(t) {
1679
+ function oe(t) {
1680
1680
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1681
1681
  }
1682
- function F(t, e) {
1682
+ function k(t, e) {
1683
1683
  try {
1684
1684
  e = t();
1685
1685
  } catch (r) {
1686
- Tr(r);
1686
+ Ur(r);
1687
1687
  }
1688
1688
  return e;
1689
1689
  }
1690
- function ze(t, e) {
1690
+ function Xe(t, e) {
1691
1691
  let r = null;
1692
- return d.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => ze(i, e)) : r = t, r && e && q(r).forEach((i) => {
1692
+ return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Xe(i, e)) : r = t, r && e && G(r).forEach((i) => {
1693
1693
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1694
1694
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1695
1695
  });
1696
1696
  }), r;
1697
1697
  }
1698
- function qr(t, e) {
1699
- if (d.Object(t)) {
1698
+ function Jr(t, e) {
1699
+ if (h.Object(t)) {
1700
1700
  const r = {};
1701
1701
  return Object.keys(t).forEach((i) => {
1702
- r[i] = ze(t[i], i);
1702
+ r[i] = Xe(t[i], i);
1703
1703
  }), r;
1704
1704
  } else
1705
- return ze(t, e);
1705
+ return Xe(t, e);
1706
1706
  }
1707
- function Pe() {
1707
+ function Le() {
1708
1708
  const t = {}, e = (r) => r || "default";
1709
1709
  return {
1710
1710
  setSlot(r, i) {
@@ -1716,11 +1716,11 @@ function Pe() {
1716
1716
  return (t[r] || []).forEach((s) => {
1717
1717
  if (Array.isArray(s))
1718
1718
  i.push(...s);
1719
- else if (d.Function(s)) {
1719
+ else if (h.Function(s)) {
1720
1720
  const n = s();
1721
1721
  Array.isArray(n) ? i.push(...n) : i.push(n);
1722
- } else d.Undef(s) || i.push(s);
1723
- }), qr(i, r);
1722
+ } else h.Undef(s) || i.push(s);
1723
+ }), Jr(i, r);
1724
1724
  },
1725
1725
  getSlots() {
1726
1726
  let r = [];
@@ -1733,34 +1733,34 @@ function Pe() {
1733
1733
  },
1734
1734
  mergeBag(r) {
1735
1735
  if (!r) return this;
1736
- const i = d.Function(r.getSlots) ? r.getSlots() : r;
1736
+ const i = h.Function(r.getSlots) ? r.getSlots() : r;
1737
1737
  return Array.isArray(r) || r.tag ? this.setSlot(void 0, () => r) : Array.isArray(i) ? this.setSlot(void 0, () => i) : Object.keys(i).forEach((s) => {
1738
1738
  this.setSlot(s, i[s]);
1739
1739
  }), this;
1740
1740
  }
1741
1741
  };
1742
1742
  }
1743
- function Ce(t, e) {
1743
+ function we(t, e) {
1744
1744
  return Object.setPrototypeOf(t, e), t;
1745
1745
  }
1746
- const ut = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, le = {
1747
- "==": (t, e) => JSON.stringify(t) === JSON.stringify(ut(t, e)),
1748
- "!=": (t, e) => !le["=="](t, e),
1746
+ const ct = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ae = {
1747
+ "==": (t, e) => JSON.stringify(t) === JSON.stringify(ct(t, e)),
1748
+ "!=": (t, e) => !ae["=="](t, e),
1749
1749
  ">": (t, e) => t > e,
1750
1750
  ">=": (t, e) => t >= e,
1751
1751
  "<": (t, e) => t < e,
1752
1752
  "<=": (t, e) => t <= e,
1753
1753
  on(t, e) {
1754
- return t && t.indexOf && t.indexOf(ut(t[0], e)) > -1;
1754
+ return t && t.indexOf && t.indexOf(ct(t[0], e)) > -1;
1755
1755
  },
1756
1756
  notOn(t, e) {
1757
- return !le.on(t, e);
1757
+ return !ae.on(t, e);
1758
1758
  },
1759
1759
  in(t, e) {
1760
1760
  return e && e.indexOf && e.indexOf(t) > -1;
1761
1761
  },
1762
1762
  notIn(t, e) {
1763
- return !le.in(t, e);
1763
+ return !ae.in(t, e);
1764
1764
  },
1765
1765
  between(t, e) {
1766
1766
  return t > e[0] && t < e[1];
@@ -1769,10 +1769,10 @@ const ut = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1769
1769
  return t < e[0] || t > e[1];
1770
1770
  },
1771
1771
  empty(t) {
1772
- return d.empty(t);
1772
+ return h.empty(t);
1773
1773
  },
1774
1774
  notEmpty(t) {
1775
- return !d.empty(t);
1775
+ return !h.empty(t);
1776
1776
  },
1777
1777
  pattern(t, e) {
1778
1778
  return new RegExp(e, "g").test(t);
@@ -1783,7 +1783,7 @@ function M(t, e) {
1783
1783
  t != null && (t = t[r]);
1784
1784
  }), t;
1785
1785
  }
1786
- function Gr(t) {
1786
+ function Wr(t) {
1787
1787
  const e = /{{\s*(.*?)\s*}}/g;
1788
1788
  let r;
1789
1789
  const i = {};
@@ -1791,7 +1791,13 @@ function Gr(t) {
1791
1791
  r[1] && (i[r[1]] = !0);
1792
1792
  return Object.keys(i);
1793
1793
  }
1794
- function Vt() {
1794
+ function ht(t) {
1795
+ let e = t.split("."), r = [], i = "";
1796
+ return e.forEach((s, n) => {
1797
+ n === 0 ? i = s : i += "." + s, r.push(i);
1798
+ }), r.join(" && ");
1799
+ }
1800
+ function Lt() {
1795
1801
  return {
1796
1802
  props: {},
1797
1803
  on: {},
@@ -1803,57 +1809,57 @@ function Vt() {
1803
1809
  value: void 0
1804
1810
  };
1805
1811
  }
1806
- function I(t, e) {
1812
+ function A(t, e) {
1807
1813
  return (r, i, s, n = {}) => {
1808
- const o = new xe(t, r, i, s, n);
1809
- return e && (d.Function(e) ? e(o) : o.props(e)), o;
1814
+ const o = new tt(t, r, i, s, n);
1815
+ return e && (h.Function(e) ? e(o) : o.props(e)), o;
1810
1816
  };
1811
1817
  }
1812
- function xe(t, e, r, i, s) {
1813
- this._data = b(Vt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1818
+ function tt(t, e, r, i, s) {
1819
+ this._data = _(Lt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1814
1820
  }
1815
- b(xe.prototype, {
1821
+ _(tt.prototype, {
1816
1822
  getRule() {
1817
1823
  return this._data;
1818
1824
  },
1819
1825
  setProp(t, e) {
1820
- return j(this._data, t, e), this;
1826
+ return F(this._data, t, e), this;
1821
1827
  },
1822
1828
  _clone() {
1823
1829
  const t = new this.constructor();
1824
- return t._data = jt(this._data), t;
1830
+ return t._data = Vt(this._data), t;
1825
1831
  }
1826
1832
  });
1827
- function Pt(t) {
1833
+ function Tt(t) {
1828
1834
  t.forEach((e) => {
1829
- xe.prototype[e] = function(r) {
1835
+ tt.prototype[e] = function(r) {
1830
1836
  return X(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1831
1837
  };
1832
1838
  });
1833
1839
  }
1834
- Pt(St());
1835
- const Bt = I("");
1836
- function Hr(t, e, r) {
1837
- let i = Bt("", e);
1840
+ Tt(jt());
1841
+ const Nt = A("");
1842
+ function zr(t, e, r) {
1843
+ let i = Nt("", e);
1838
1844
  return i._data.type = t, i._data.title = r, i;
1839
1845
  }
1840
- function ft(t, e, r, i) {
1841
- let s = Bt("", r);
1846
+ function dt(t, e, r, i) {
1847
+ let s = Nt("", r);
1842
1848
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1843
1849
  }
1844
- function Jr() {
1850
+ function Kr() {
1845
1851
  return {
1846
- create: Hr,
1847
- createTmp: ft,
1848
- template: ft,
1849
- factory: I
1852
+ create: zr,
1853
+ createTmp: dt,
1854
+ template: dt,
1855
+ factory: A
1850
1856
  };
1851
1857
  }
1852
- function Wr(t, e, r) {
1858
+ function Xr(t, e, r) {
1853
1859
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1854
1860
  return s.status = r.status, s.url = t, s;
1855
1861
  }
1856
- function ct(t) {
1862
+ function pt(t) {
1857
1863
  const e = t.responseText || t.response;
1858
1864
  if (!e)
1859
1865
  return e;
@@ -1863,7 +1869,7 @@ function ct(t) {
1863
1869
  return e;
1864
1870
  }
1865
1871
  }
1866
- function Lt(t) {
1872
+ function Mt(t) {
1867
1873
  if (typeof XMLHttpRequest == "undefined")
1868
1874
  return;
1869
1875
  const e = new XMLHttpRequest();
@@ -1876,8 +1882,8 @@ function Lt(t) {
1876
1882
  t.onError(o);
1877
1883
  }, e.onload = function() {
1878
1884
  if (e.status < 200 || e.status >= 300)
1879
- return t.onError(Wr(r, t, e), ct(e));
1880
- t.onSuccess(ct(e));
1885
+ return t.onError(Xr(r, t, e), pt(e));
1886
+ t.onSuccess(pt(e));
1881
1887
  }, e.open(t.method || "get", r, !0);
1882
1888
  let i;
1883
1889
  t.data && ((t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data).map((n) => {
@@ -1888,13 +1894,13 @@ function Lt(t) {
1888
1894
  s[n] != null && e.setRequestHeader(n, s[n]);
1889
1895
  }), e.send(i);
1890
1896
  }
1891
- function ht(t, e, r) {
1897
+ function mt(t, e, r) {
1892
1898
  return new Promise((i, s) => {
1893
- (e || Lt)(N(v({}, t), {
1899
+ (e || Mt)(U(b({}, t), {
1894
1900
  onSuccess(n) {
1895
1901
  let o = (l) => l;
1896
1902
  const a = Q(t.parse);
1897
- d.Function(a) ? o = a : a && d.String(a) && (o = (l) => M(l, a)), i(o(n, void 0, r));
1903
+ h.Function(a) ? o = a : a && h.String(a) && (o = (l) => M(l, a)), i(o(n, void 0, r));
1898
1904
  },
1899
1905
  onError(n) {
1900
1906
  s(n);
@@ -1903,16 +1909,16 @@ function ht(t, e, r) {
1903
1909
  });
1904
1910
  }
1905
1911
  function me(t) {
1906
- return G(t);
1912
+ return J(t);
1907
1913
  }
1908
- function zr(t) {
1914
+ function Qr(t) {
1909
1915
  function e(n) {
1910
- return d.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1916
+ return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1911
1917
  }
1912
1918
  function r(n, o, a) {
1913
1919
  e(n).forEach((l) => {
1914
1920
  t.getCtxs(l).forEach((u) => {
1915
- j(u.rule, o, a), t.$render.clearCache(u);
1921
+ F(u.rule, o, a), t.$render.clearCache(u);
1916
1922
  });
1917
1923
  });
1918
1924
  }
@@ -1980,7 +1986,7 @@ function zr(t) {
1980
1986
  return o ? me(o.rule.value) : t.options.appendValue !== !1 && R(t.appendData, n) ? me(t.appendData[n]) : void 0;
1981
1987
  },
1982
1988
  coverValue(n) {
1983
- const o = v({}, n || {});
1989
+ const o = b({}, n || {});
1984
1990
  t.deferSyncValue(() => {
1985
1991
  t.appendData = {}, s.fields().forEach((a) => {
1986
1992
  const l = t.fieldCtx[a];
@@ -1990,7 +1996,7 @@ function zr(t) {
1990
1996
  f.rule.value = u ? n[a] : void 0;
1991
1997
  }), delete o[a];
1992
1998
  }
1993
- }), b(t.appendData, o);
1999
+ }), _(t.appendData, o);
1994
2000
  }, !0);
1995
2001
  },
1996
2002
  setValue(n) {
@@ -2014,7 +2020,7 @@ function zr(t) {
2014
2020
  }, !0), o ? o.origin : void 0;
2015
2021
  },
2016
2022
  removeRule(n) {
2017
- const o = n && ae(n);
2023
+ const o = n && oe(n);
2018
2024
  if (o)
2019
2025
  return o.rm(), o.origin;
2020
2026
  },
@@ -2064,7 +2070,7 @@ function zr(t) {
2064
2070
  disabled(n, o) {
2065
2071
  e(o).forEach((a) => {
2066
2072
  t.getCtxs(a).forEach((l) => {
2067
- j(l.rule.props, "disabled", !!n);
2073
+ F(l.rule.props, "disabled", !!n);
2068
2074
  });
2069
2075
  }), t.refresh();
2070
2076
  },
@@ -2103,7 +2109,7 @@ function zr(t) {
2103
2109
  n.forEach((a) => s.sync(a));
2104
2110
  return;
2105
2111
  }
2106
- let o = d.Object(n) ? ae(n) : t.getCtxs(n);
2112
+ let o = h.Object(n) ? oe(n) : t.getCtxs(n);
2107
2113
  o && (o = Array.isArray(o) ? o : [o], o.forEach((a) => {
2108
2114
  if (!a.deleted) {
2109
2115
  const l = t.subForm[a.id];
@@ -2122,7 +2128,7 @@ function zr(t) {
2122
2128
  t.$manager.updateOptions(t.options), s.refresh();
2123
2129
  },
2124
2130
  hideForm: (n) => {
2125
- j(t.vm, "isShow", !n);
2131
+ F(t.vm, "isShow", !n);
2126
2132
  },
2127
2133
  changeStatus: () => t.changeStatus,
2128
2134
  clearChangeStatus: () => {
@@ -2130,7 +2136,7 @@ function zr(t) {
2130
2136
  },
2131
2137
  updateRule(n, o) {
2132
2138
  t.getCtxs(n).forEach((a) => {
2133
- b(a.rule, o);
2139
+ _(a.rule, o);
2134
2140
  });
2135
2141
  },
2136
2142
  updateRules(n) {
@@ -2167,7 +2173,7 @@ function zr(t) {
2167
2173
  },
2168
2174
  setEffect(n, o, a) {
2169
2175
  const l = t.getCtx(n);
2170
- l && o && (o[0] === "$" && (o = o.substr(1)), R(l.rule, "$" + o) && j(l.rule, "$" + o, a), R(l.rule, "effect") || j(l.rule, "effect", {}), j(l.rule.effect, o, a));
2176
+ l && o && (o[0] === "$" && (o = o.substr(1)), R(l.rule, "$" + o) && F(l.rule, "$" + o, a), R(l.rule, "effect") || F(l.rule, "effect", {}), F(l.rule.effect, o, a));
2171
2177
  },
2172
2178
  clearEffectData(n, o) {
2173
2179
  const a = t.getCtx(n);
@@ -2191,19 +2197,19 @@ function zr(t) {
2191
2197
  });
2192
2198
  }), H(() => {
2193
2199
  s.clearValidateState();
2194
- }), n == null && (d.Function(t.options.onReset) && F(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2200
+ }), n == null && (h.Function(t.options.onReset) && k(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2195
2201
  },
2196
2202
  method(n, o) {
2197
2203
  const a = s.el(n);
2198
2204
  if (!a || !a[o])
2199
- throw new Error(Et("err", `${o} 方法不存在`));
2205
+ throw new Error(It("err", `${o} 方法不存在`));
2200
2206
  return (...l) => a[o](...l);
2201
2207
  },
2202
2208
  exec(n, o, ...a) {
2203
- return F(() => s.method(n, o)(...a));
2209
+ return k(() => s.method(n, o)(...a));
2204
2210
  },
2205
2211
  toJson(n) {
2206
- return Ye(s.rule, n);
2212
+ return et(s.rule, n);
2207
2213
  },
2208
2214
  trigger(n, o, ...a) {
2209
2215
  const l = s.el(n);
@@ -2222,7 +2228,7 @@ function zr(t) {
2222
2228
  return o ? t.subForm[o.id] : void 0;
2223
2229
  },
2224
2230
  getChildrenRuleList(n) {
2225
- const o = typeof n == "object", a = o ? ae(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2231
+ const o = typeof n == "object", a = o ? oe(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2226
2232
  if (!l)
2227
2233
  return [];
2228
2234
  const u = [];
@@ -2233,10 +2239,10 @@ function zr(t) {
2233
2239
  })(a ? a.loadChildrenPending() : l.children), u;
2234
2240
  },
2235
2241
  getParentRule(n) {
2236
- return (typeof n == "object" ? ae(n) : t.getCtx(n)).parent.rule;
2242
+ return (typeof n == "object" ? oe(n) : t.getCtx(n)).parent.rule;
2237
2243
  },
2238
2244
  getParentSubRule(n) {
2239
- const a = typeof n == "object" ? ae(n) : t.getCtx(n);
2245
+ const a = typeof n == "object" ? oe(n) : t.getCtx(n);
2240
2246
  if (a) {
2241
2247
  const l = a.getParentGroup();
2242
2248
  if (l)
@@ -2271,7 +2277,7 @@ function zr(t) {
2271
2277
  t.bus.$once("next-tick", n), t.refresh();
2272
2278
  },
2273
2279
  nextRefresh(n) {
2274
- t.nextRefresh(), n && F(n);
2280
+ t.nextRefresh(), n && k(n);
2275
2281
  },
2276
2282
  emit(n, ...o) {
2277
2283
  t.vm.$emit(n, ...o);
@@ -2282,22 +2288,22 @@ function zr(t) {
2282
2288
  bus: t.bus,
2283
2289
  fetch(n) {
2284
2290
  return new Promise((o, a) => {
2285
- n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => ht(n, t.fc.create.fetch, s).then((l) => {
2286
- F(() => n.onSuccess && n.onSuccess(l)), o(l);
2291
+ n = J(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => mt(n, t.fc.create.fetch, s).then((l) => {
2292
+ k(() => n.onSuccess && n.onSuccess(l)), o(l);
2287
2293
  }).catch((l) => {
2288
- F(() => n.onError && n.onError(l)), a(l);
2294
+ k(() => n.onError && n.onError(l)), a(l);
2289
2295
  }));
2290
2296
  });
2291
2297
  },
2292
- watchFetch(n, o, a) {
2293
- return t.fc.watchLoadData((l, u) => {
2294
- let f = G(n);
2295
- f = t.loadFetchVar(f, l), t.beforeFetch(f).then(() => ht(f, t.fc.create.fetch, s).then((p) => {
2296
- F(() => f.onSuccess && f.onSuccess(p)), o && o(p, u);
2297
- }).catch((p) => {
2298
- F(() => f.onError && f.onError(p)), a && a(p);
2298
+ watchFetch(n, o, a, l) {
2299
+ return t.fc.watchLoadData((u, f) => {
2300
+ let p = J(n);
2301
+ p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => mt(p, t.fc.create.fetch, s).then((m) => {
2302
+ k(() => p.onSuccess && p.onSuccess(m)), o && o(m, f);
2303
+ }).catch((m) => {
2304
+ k(() => p.onError && p.onError(m)), a && a(m);
2299
2305
  }));
2300
- });
2306
+ }, n.wait == null ? 1e3 : n.wait);
2301
2307
  },
2302
2308
  getData(n, o) {
2303
2309
  return t.fc.getLoadData(n, o);
@@ -2325,8 +2331,8 @@ function zr(t) {
2325
2331
  };
2326
2332
  }), s.changeValue = s.changeField = s.setValue, s;
2327
2333
  }
2328
- function Kr(t) {
2329
- b(t.prototype, {
2334
+ function Zr(t) {
2335
+ _(t.prototype, {
2330
2336
  initCache() {
2331
2337
  this.clearCacheAll();
2332
2338
  },
@@ -2357,17 +2363,17 @@ function Kr(t) {
2357
2363
  }
2358
2364
  });
2359
2365
  }
2360
- function U(t) {
2366
+ function q(t) {
2361
2367
  const e = t.replace(/(-[a-z])/g, function(r) {
2362
2368
  return r.replace("-", "").toLocaleUpperCase();
2363
2369
  });
2364
- return Tt(e);
2370
+ return Ut(e);
2365
2371
  }
2366
- function Tt(t) {
2372
+ function Ut(t) {
2367
2373
  return t.replace(t[0], t[0].toLowerCase());
2368
2374
  }
2369
- function Xr(t) {
2370
- b(t.prototype, {
2375
+ function Yr(t) {
2376
+ _(t.prototype, {
2371
2377
  initRender() {
2372
2378
  this.cacheConfig = {};
2373
2379
  },
@@ -2384,7 +2390,7 @@ function Xr(t) {
2384
2390
  if (!this.vm.isShow)
2385
2391
  return;
2386
2392
  this.$manager.beforeRender();
2387
- const e = Pe();
2393
+ const e = Le();
2388
2394
  return this.sort.forEach((r) => {
2389
2395
  this.renderSlot(e, this.$handle.ctxs[r]);
2390
2396
  }), this.$manager.render(e);
@@ -2395,23 +2401,23 @@ function Xr(t) {
2395
2401
  })) : e.setSlot(r.rule.slot, this.renderCtx(r, i));
2396
2402
  },
2397
2403
  mergeGlobal(e) {
2398
- this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = de(() => {
2404
+ this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ce(() => {
2399
2405
  const i = this.$handle.options.global;
2400
2406
  return X({}, [i["*"], i[e.originType] || i[e.type] || i[e.type] || {}]);
2401
2407
  })), e.prop = X({}, [this.cacheConfig[e.trueType].value, e.prop]));
2402
2408
  },
2403
2409
  setOptions(e) {
2404
2410
  const r = e.loadPending({ key: "options", origin: e.prop.options, def: [] });
2405
- e.prop.options = r, e.prop.optionsTo && r && re(e.prop, e.prop.optionsTo, r);
2411
+ e.prop.options = r, e.prop.optionsTo && r && ee(e.prop, e.prop.optionsTo, r);
2406
2412
  },
2407
2413
  deepSet(e) {
2408
2414
  const r = e.rule.deep;
2409
2415
  r && Object.keys(r).sort((i, s) => i.length < s.length ? -1 : 1).forEach((i) => {
2410
- re(e.prop, i, r[i]);
2416
+ ee(e.prop, i, r[i]);
2411
2417
  });
2412
2418
  },
2413
2419
  parseSide(e, r) {
2414
- return d.Object(e) ? X({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2420
+ return h.Object(e) ? X({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2415
2421
  },
2416
2422
  renderSides(e, r, i) {
2417
2423
  const s = r[i ? "rule" : "prop"];
@@ -2445,13 +2451,13 @@ function Xr(t) {
2445
2451
  model: n.model || {},
2446
2452
  slotValue: l
2447
2453
  };
2448
- l.length && i.slotUpdate && F(() => i.slotUpdate(u));
2454
+ l.length && i.slotUpdate && k(() => i.slotUpdate(u));
2449
2455
  let f = {};
2450
2456
  const p = e.loadChildrenPending();
2451
2457
  e.parser.renderChildren ? f = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(p, e));
2452
2458
  const m = this.getTypeSlot(e);
2453
2459
  let $;
2454
- return m ? (u.children = f, $ = m(u)) : $ = a ? e.parser.preview(Ge(f), e) : e.parser.render(Ge(f), e), $ = this.renderSides($, e), !(!e.input && d.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), $ = this.$manager.makeWrap(e, $)), e.none && (Array.isArray($) ? $ = $.map((_) => !_ || !_.tag ? _ : this.none(_)) : $ = this.none($)), o && this.setCache(e, () => this.stable($), r), $;
2460
+ return m ? (u.children = f, $ = m(u)) : $ = a ? e.parser.preview(Je(f), e) : e.parser.render(Je(f), e), $ = this.renderSides($, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), $ = this.$manager.makeWrap(e, $)), e.none && (Array.isArray($) ? $ = $.map((v) => !v || !v.tag ? v : this.none(v)) : $ = this.none($)), o && this.setCache(e, () => this.stable($), r), $;
2455
2461
  }, this.setCache(e, s, r);
2456
2462
  }
2457
2463
  return (...s) => {
@@ -2513,12 +2519,12 @@ function Xr(t) {
2513
2519
  }
2514
2520
  });
2515
2521
  const i = r.ctxInject[e.id];
2516
- return b(i, {
2522
+ return _(i, {
2517
2523
  preview: e.prop.preview,
2518
2524
  options: e.prop.options,
2519
2525
  prop: function() {
2520
- const s = v({}, e.prop);
2521
- return s.on = s.on ? v({}, s.on) : {}, delete s.model, s;
2526
+ const s = b({}, e.prop);
2527
+ return s.on = s.on ? b({}, s.on) : {}, delete s.model, s;
2522
2528
  }(),
2523
2529
  children: e.loadChildrenPending()
2524
2530
  }), i;
@@ -2570,11 +2576,11 @@ function Xr(t) {
2570
2576
  this.$handle.setValue(e, e.parser.toValue(e.modelValue, e), e.modelValue);
2571
2577
  },
2572
2578
  renderChildren(e, r, i) {
2573
- if (!d.trueArray(e)) return [];
2574
- const s = Pe();
2579
+ if (!h.trueArray(e)) return [];
2580
+ const s = Le();
2575
2581
  return e.map((n) => {
2576
2582
  if (n) {
2577
- if (d.String(n)) return s.setSlot(null, i ? this.renderRule({
2583
+ if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
2578
2584
  type: "template",
2579
2585
  children: [n]
2580
2586
  }) : n);
@@ -2588,39 +2594,39 @@ function Xr(t) {
2588
2594
  },
2589
2595
  defaultRender(e, r) {
2590
2596
  const i = e.prop;
2591
- 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(Tt(i.type), i, r);
2597
+ 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(Ut(i.type), i, r);
2592
2598
  },
2593
2599
  renderRule(e, r, i) {
2594
2600
  if (!e) return;
2595
- if (d.String(e)) return e;
2601
+ if (h.String(e)) return e;
2596
2602
  let s;
2597
2603
  if (i)
2598
2604
  s = e.type;
2599
2605
  else if (s = e.is, e.type) {
2600
- s = U(e.type);
2606
+ s = q(e.type);
2601
2607
  const a = this.vNode.aliasMap[s];
2602
- a && (s = U(a));
2608
+ a && (s = q(a));
2603
2609
  }
2604
2610
  if (!s) return;
2605
- const n = Pe();
2606
- d.trueArray(e.children) && e.children.forEach((a) => {
2611
+ const n = Le();
2612
+ h.trueArray(e.children) && e.children.forEach((a) => {
2607
2613
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2608
2614
  });
2609
- const o = v({}, e);
2615
+ const o = b({}, e);
2610
2616
  return delete o.type, delete o.is, this.vNode.make(s, o, n.mergeBag(r).getSlots());
2611
2617
  }
2612
2618
  });
2613
2619
  }
2614
- let Qr = 1;
2615
- function et(t) {
2616
- b(this, {
2620
+ let xr = 1;
2621
+ function rt(t) {
2622
+ _(this, {
2617
2623
  $handle: t,
2618
2624
  fc: t.fc,
2619
2625
  vm: t.vm,
2620
2626
  $manager: t.$manager,
2621
2627
  vNode: new t.fc.CreateNode(t.vm),
2622
- id: Qr++
2623
- }), At(this, {
2628
+ id: xr++
2629
+ }), Bt(this, {
2624
2630
  options() {
2625
2631
  return t.options;
2626
2632
  },
@@ -2629,10 +2635,10 @@ function et(t) {
2629
2635
  }
2630
2636
  }), this.initCache(), this.initRender();
2631
2637
  }
2632
- Kr(et);
2633
- Xr(et);
2634
- function Zr(t) {
2635
- b(t.prototype, {
2638
+ Zr(rt);
2639
+ Yr(rt);
2640
+ function ei(t) {
2641
+ _(t.prototype, {
2636
2642
  parseInjectEvent(e, r) {
2637
2643
  const i = e.inject || this.options.injectEvent;
2638
2644
  return this.parseEventLst(e, r, i);
@@ -2644,11 +2650,11 @@ function Zr(t) {
2644
2650
  }), r;
2645
2651
  },
2646
2652
  parseEvent(e, r, i, s) {
2647
- if (d.Function(r) && (i !== !1 && !d.Undef(i) || r.__inject))
2653
+ if (h.Function(r) && (i !== !1 && !h.Undef(i) || r.__inject))
2648
2654
  return this.inject(e, r, i);
2649
- if (!s && Array.isArray(r) && r[0] && (d.String(r[0]) || d.Function(r[0])))
2655
+ if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2650
2656
  return this.parseEventLst(e, r, i, !0);
2651
- if (d.String(r)) {
2657
+ if (h.String(r)) {
2652
2658
  const n = Q(r);
2653
2659
  if (n && r !== n)
2654
2660
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
@@ -2656,19 +2662,19 @@ function Zr(t) {
2656
2662
  },
2657
2663
  parseEmit(e, r) {
2658
2664
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: l } = s, u = s[r ? "emit" : "nativeEmit"] || [];
2659
- return d.trueArray(u) && u.forEach((f) => {
2665
+ return h.trueArray(u) && u.forEach((f) => {
2660
2666
  if (!f) return;
2661
2667
  let p, m = n || o || a;
2662
- if (d.Object(f) && (p = f.inject, f = f.name, m = f.prefix || m), m) {
2668
+ if (h.Object(f) && (p = f.inject, f = f.name, m = f.prefix || m), m) {
2663
2669
  r || (m = `native-${m}`);
2664
- const $ = ge(`${m}-${f}`), _ = (...w) => {
2670
+ const $ = ge(`${m}-${f}`), v = (...w) => {
2665
2671
  this.vm.$emit($, ...w), this.vm.$emit("emit-event", $, ...w), this.bus.$emit($, ...w);
2666
2672
  };
2667
- if (_.__emit = !0, !p && l === !1)
2668
- i[f] = _;
2673
+ if (v.__emit = !0, !p && l === !1)
2674
+ i[f] = v;
2669
2675
  else {
2670
2676
  let w = p || l || this.options.injectEvent;
2671
- i[f] = d.Undef(w) ? _ : this.inject(s, _, w);
2677
+ i[f] = h.Undef(w) ? v : this.inject(s, v, w);
2672
2678
  }
2673
2679
  }
2674
2680
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2698,7 +2704,7 @@ function Zr(t) {
2698
2704
  },
2699
2705
  loadStrVar(e, r) {
2700
2706
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2701
- const i = e, s = Gr(e);
2707
+ const i = e, s = Wr(e);
2702
2708
  let n;
2703
2709
  if (s.forEach((o) => {
2704
2710
  const a = o.split("||"), l = a[0].trim();
@@ -2729,14 +2735,14 @@ function Zr(t) {
2729
2735
  }
2730
2736
  });
2731
2737
  }
2732
- const dt = ["hook:updated", "hook:mounted"];
2733
- function Yr(t) {
2734
- b(t.prototype, {
2738
+ const gt = ["hook:updated", "hook:mounted"];
2739
+ function ti(t) {
2740
+ _(t.prototype, {
2735
2741
  usePage() {
2736
2742
  const e = this.options.page;
2737
2743
  if (!e) return;
2738
- let r = 25, i = xr(this.rules);
2739
- d.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), b(this, {
2744
+ let r = 25, i = ri(this.rules);
2745
+ h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), _(this, {
2740
2746
  first: r,
2741
2747
  limit: i,
2742
2748
  pageEnd: this.rules.length <= r
@@ -2744,17 +2750,17 @@ function Yr(t) {
2744
2750
  },
2745
2751
  pageLoad() {
2746
2752
  const e = () => {
2747
- this.pageEnd ? (this.vm.$off(dt, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2753
+ this.pageEnd ? (this.vm.$off(gt, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2748
2754
  };
2749
- this.vm.$on(dt, e);
2755
+ this.vm.$on(gt, e);
2750
2756
  }
2751
2757
  });
2752
2758
  }
2753
- function xr(t) {
2759
+ function ri(t) {
2754
2760
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2755
2761
  }
2756
- function ei(t) {
2757
- b(t.prototype, {
2762
+ function ii(t) {
2763
+ _(t.prototype, {
2758
2764
  clearNextTick() {
2759
2765
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
2760
2766
  },
@@ -2768,16 +2774,16 @@ function ei(t) {
2768
2774
  }
2769
2775
  });
2770
2776
  }
2771
- function ti(t) {
2777
+ function ni(t) {
2772
2778
  Object.defineProperties(t.origin, {
2773
- __fc__: We(he(t), !0)
2779
+ __fc__: Ke(fe(t), !0)
2774
2780
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2775
- __fc__: We(he(t), !0)
2781
+ __fc__: Ke(fe(t), !0)
2776
2782
  });
2777
2783
  }
2778
- function Nt(t, e, r) {
2779
- const i = Se(), s = !!e.field;
2780
- b(this, {
2784
+ function qt(t, e, r) {
2785
+ const i = De(), s = !!e.field;
2786
+ _(this, {
2781
2787
  id: i,
2782
2788
  ref: i,
2783
2789
  wrapRef: i + "fi",
@@ -2794,18 +2800,18 @@ function Nt(t, e, r) {
2794
2800
  parent: null,
2795
2801
  group: e.subRule ? this : null,
2796
2802
  cacheConfig: null,
2797
- prop: v({}, e),
2803
+ prop: b({}, e),
2798
2804
  computed: {},
2799
2805
  payload: {},
2800
2806
  refRule: {},
2801
2807
  input: s,
2802
2808
  el: void 0,
2803
2809
  exportEl: void 0,
2804
- defaultValue: s ? G(r) : void 0,
2810
+ defaultValue: s ? J(r) : void 0,
2805
2811
  field: e.field || void 0
2806
- }), this.updateKey(), ti(this), this.update(t, !0);
2812
+ }), this.updateKey(), ni(this), this.update(t, !0);
2807
2813
  }
2808
- b(Nt.prototype, {
2814
+ _(qt.prototype, {
2809
2815
  getParentGroup() {
2810
2816
  let t = this.parent;
2811
2817
  for (; t; ) {
@@ -2837,8 +2843,8 @@ b(Nt.prototype, {
2837
2843
  return this.getPending(e, i);
2838
2844
  delete this.pending[e];
2839
2845
  let a = r;
2840
- if (d.Function(r)) {
2841
- let l = F(() => r({
2846
+ if (h.Function(r)) {
2847
+ let l = k(() => r({
2842
2848
  rule: this.rule,
2843
2849
  api: this.$api,
2844
2850
  update: (u) => {
@@ -2850,7 +2856,7 @@ b(Nt.prototype, {
2850
2856
  delete this.pending[e], n && n(u), this.$api && this.$api.sync(this.rule);
2851
2857
  }
2852
2858
  }));
2853
- l && d.Function(l.then) ? (l.then((u) => {
2859
+ l && h.Function(l.then) ? (l.then((u) => {
2854
2860
  const f = u || i;
2855
2861
  this.setPending(e, r, f), s && s(f), this.$api && this.$api.sync(this.rule);
2856
2862
  }).catch((u) => {
@@ -2865,7 +2871,7 @@ b(Nt.prototype, {
2865
2871
  setPending(t, e, r) {
2866
2872
  this.pending[t] = {
2867
2873
  origin: e,
2868
- value: te(r)
2874
+ value: x(r)
2869
2875
  };
2870
2876
  },
2871
2877
  effectData(t) {
@@ -2875,20 +2881,20 @@ b(Nt.prototype, {
2875
2881
  t === void 0 ? this.payload = {} : delete this.payload[t];
2876
2882
  },
2877
2883
  updateKey(t) {
2878
- this.key = Se(), t && this.parent && this.parent.updateKey(t);
2884
+ this.key = De(), t && this.parent && this.parent.updateKey(t);
2879
2885
  },
2880
2886
  updateType() {
2881
- this.originType = this.rule.type, this.type = U(this.rule.type), this.trueType = this.$handle.getType(this.originType);
2887
+ this.originType = this.rule.type, this.type = q(this.rule.type), this.trueType = this.$handle.getType(this.originType);
2882
2888
  },
2883
2889
  setParser(t) {
2884
2890
  this.parser = t, t.init(this);
2885
2891
  },
2886
2892
  initProp() {
2887
- const t = v({}, this.rule);
2893
+ const t = b({}, this.rule);
2888
2894
  delete t.children, delete t.validate, this.prop = X({}, [t, ...Object.keys(this.payload).map((e) => this.payload[e]), this.computed]), this.prop.validate = [...this.refRule.__$validate.value || [], ...this.prop.validate || []];
2889
2895
  },
2890
2896
  initNone() {
2891
- this.none = !(d.Undef(this.prop.display) || this.prop.display);
2897
+ this.none = !(h.Undef(this.prop.display) || this.prop.display);
2892
2898
  },
2893
2899
  injectValidate() {
2894
2900
  return this.prop.validate;
@@ -2909,7 +2915,7 @@ b(Nt.prototype, {
2909
2915
  this.$handle.watchCtx(this);
2910
2916
  },
2911
2917
  delete() {
2912
- this.unwatch(), this.unlink(), this.rmCtrl(), this.parent && this.parent.children.splice(this.parent.children.indexOf(this) >>> 0, 1), b(this, {
2918
+ this.unwatch(), this.unlink(), this.rmCtrl(), this.parent && this.parent.children.splice(this.parent.children.indexOf(this) >>> 0, 1), _(this, {
2913
2919
  deleted: !0,
2914
2920
  computed: {},
2915
2921
  parent: null,
@@ -2932,14 +2938,14 @@ b(Nt.prototype, {
2932
2938
  }
2933
2939
  this.$handle.noWatch(() => {
2934
2940
  this.$handle.deferSyncValue(() => {
2935
- this.rmCtrl(), t(), this.$handle.rmCtx(this), b(this, {
2941
+ this.rmCtrl(), t(), this.$handle.rmCtx(this), _(this, {
2936
2942
  root: []
2937
2943
  });
2938
2944
  }, this.input);
2939
2945
  });
2940
2946
  },
2941
2947
  update(t, e) {
2942
- b(this, {
2948
+ _(this, {
2943
2949
  deleted: !1,
2944
2950
  $handle: t,
2945
2951
  $render: t.$render,
@@ -2951,8 +2957,8 @@ b(Nt.prototype, {
2951
2957
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
2952
2958
  }
2953
2959
  });
2954
- function ri(t) {
2955
- b(t.prototype, {
2960
+ function si(t) {
2961
+ _(t.prototype, {
2956
2962
  nextRefresh(e) {
2957
2963
  const r = this.loadedId;
2958
2964
  H(() => {
@@ -2960,10 +2966,10 @@ function ri(t) {
2960
2966
  });
2961
2967
  },
2962
2968
  parseRule(e) {
2963
- const r = lt(e);
2969
+ const r = ft(e);
2964
2970
  return Object.defineProperties(r, {
2965
- __origin__: We(e, !0)
2966
- }), ii(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
2971
+ __origin__: Ke(e, !0)
2972
+ }), oi(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
2967
2973
  i && this.loadFn(i, r);
2968
2974
  }), this.loadCtrl(r), r.update && (r.update = Q(r.update)), r;
2969
2975
  },
@@ -2979,9 +2985,9 @@ function ri(t) {
2979
2985
  },
2980
2986
  syncProp(e) {
2981
2987
  const r = e.rule;
2982
- d.trueArray(r.sync) && K([{
2983
- on: r.sync.reduce((i, s) => (i[`update:${s}`] = (n) => {
2984
- r.props[s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
2988
+ h.trueArray(r.sync) && K([{
2989
+ on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
2990
+ r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
2985
2991
  }, i), {})
2986
2992
  }], e.computed);
2987
2993
  },
@@ -3005,40 +3011,40 @@ function ri(t) {
3005
3011
  let l = this.sort.indexOf(a.__fc__.id);
3006
3012
  return l > -1 ? l : i(o - 1);
3007
3013
  }, s = (o, a) => {
3008
- d.trueArray(o) && this._loadRule(o, a);
3014
+ h.trueArray(o) && this._loadRule(o, a);
3009
3015
  }, n = e.map((o, a) => {
3010
- if (r && !d.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3016
+ if (r && !h.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3011
3017
  if (o.__fc__ && o.__fc__.root === e && this.ctxs[o.__fc__.id])
3012
3018
  return s(o.__fc__.loadChildrenPending(), o.__fc__), o.__fc__;
3013
- let l = lt(o);
3019
+ let l = ft(o);
3014
3020
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3015
3021
  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);
3016
3022
  let f, p = !1, m = !!o.__fc__, $ = l.value;
3017
3023
  if (m) {
3018
3024
  if (f = o.__fc__, $ = f.defaultValue, f.deleted) {
3019
- if (pt(f))
3025
+ if (yt(f))
3020
3026
  return;
3021
3027
  f.update(this);
3022
3028
  } else if (!f.check(this)) {
3023
- if (pt(f))
3029
+ if (yt(f))
3024
3030
  return;
3025
- e[a] = o = o._clone ? o._clone() : Dt(Ye(o)), f = null, p = !0;
3031
+ e[a] = o = o._clone ? o._clone() : At(et(o)), f = null, p = !0;
3026
3032
  }
3027
3033
  }
3028
3034
  if (f)
3029
3035
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3030
3036
  else {
3031
- const D = this.parseRule(o);
3032
- f = new Nt(this, D, $), this.bindParser(f);
3037
+ const j = this.parseRule(o);
3038
+ f = new qt(this, j, $), this.bindParser(f);
3033
3039
  }
3034
- [!1, !0].forEach((D) => this.parseEmit(f, D)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !p && !m && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3035
- const _ = f.loadChildrenPending();
3036
- if (f.parser.loadChildren === !1 || s(_, f), !r) {
3037
- const D = i(a);
3038
- D > -1 || !a ? this.sort.splice(D + 1, 0, f.id) : this.sort.push(f.id);
3040
+ [!1, !0].forEach((j) => this.parseEmit(f, j)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !p && !m && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3041
+ const v = f.loadChildrenPending();
3042
+ if (f.parser.loadChildren === !1 || s(v, f), !r) {
3043
+ const j = i(a);
3044
+ j > -1 || !a ? this.sort.splice(j + 1, 0, f.id) : this.sort.push(f.id);
3039
3045
  }
3040
3046
  const w = f.rule;
3041
- return f.updated || (f.updated = !0, d.Function(w.update) && this.bus.$once("load-end", () => {
3047
+ return f.updated || (f.updated = !0, h.Function(w.update) && this.bus.$once("load-end", () => {
3042
3048
  this.refreshUpdate(f, w.value, "init");
3043
3049
  }), this.effect(f, "loaded")), this.refreshControl(f) && (this.cycleLoad = !0), f;
3044
3050
  }).filter((o) => !!o);
@@ -3048,17 +3054,17 @@ function ri(t) {
3048
3054
  return e.input && e.rule.control && this.useCtrl(e);
3049
3055
  },
3050
3056
  useCtrl(e) {
3051
- const r = ni(e), i = [], s = this.api;
3057
+ const r = ai(e), i = [], s = this.api;
3052
3058
  if (!r.length) return !1;
3053
3059
  for (let a = 0; a < r.length; a++) {
3054
3060
  const l = r[a], u = l.handle || function(p) {
3055
- return (le[l.condition || "=="] || le["=="])(p, l.value);
3061
+ return (ae[l.condition || "=="] || ae["=="])(p, l.value);
3056
3062
  };
3057
- if (!d.trueArray(l.rule)) continue;
3058
- const f = N(v({}, l), {
3059
- valid: F(() => u(e.rule.value, s)),
3060
- ctrl: si(e, l.rule),
3061
- isHidden: d.String(l.rule[0])
3063
+ if (!h.trueArray(l.rule)) continue;
3064
+ const f = U(b({}, l), {
3065
+ valid: k(() => u(e.rule.value, s)),
3066
+ ctrl: li(e, l.rule),
3067
+ isHidden: h.String(l.rule[0])
3062
3068
  });
3063
3069
  f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || i.push(f);
3064
3070
  }
@@ -3066,14 +3072,14 @@ function ri(t) {
3066
3072
  const n = [];
3067
3073
  let o = !1;
3068
3074
  return this.deferSyncValue(() => {
3069
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: m, ctrl: $, method: _ }) => {
3075
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: m, ctrl: $, method: v }) => {
3070
3076
  if (a) {
3071
3077
  l ? e.ctrlRule.push({
3072
3078
  __ctrl: !0,
3073
3079
  children: u,
3074
3080
  valid: l
3075
3081
  }) : $ && e.ctrlRule.splice(e.ctrlRule.indexOf($) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3076
- _ === "disabled" || _ === "enabled" ? this.api.disabled(!l, u) : _ === "display" ? this.api.display(l, u) : _ === "required" ? (u.forEach((w) => {
3082
+ v === "disabled" || v === "enabled" ? this.api.disabled(!l, u) : v === "display" ? this.api.display(l, u) : v === "required" ? (u.forEach((w) => {
3077
3083
  this.api.setEffect(w, "required", l);
3078
3084
  }), l || this.api.clearValidateState(u)) : this.api.hidden(!l, u);
3079
3085
  });
@@ -3092,7 +3098,7 @@ function ri(t) {
3092
3098
  });
3093
3099
  } else {
3094
3100
  e.ctrlRule.splice(e.ctrlRule.indexOf($), 1);
3095
- const w = ae($);
3101
+ const w = oe($);
3096
3102
  w && w.rm();
3097
3103
  }
3098
3104
  });
@@ -3107,7 +3113,7 @@ function ri(t) {
3107
3113
  },
3108
3114
  _reloadRule(e) {
3109
3115
  e || (e = this.rules);
3110
- const r = v({}, this.ctxs);
3116
+ const r = b({}, this.ctxs);
3111
3117
  this.clearNextTick(), this.initData(e), this.fc.rules = e, this.deferSyncValue(() => {
3112
3118
  this.bus.$once("load-end", () => {
3113
3119
  Object.keys(r).filter((i) => this.ctxs[i] === void 0).forEach((i) => this.rmCtx(r[i])), this.$render.clearCacheAll();
@@ -3120,28 +3126,28 @@ function ri(t) {
3120
3126
  }
3121
3127
  });
3122
3128
  }
3123
- function ii(t) {
3124
- const e = Vt();
3129
+ function oi(t) {
3130
+ const e = Lt();
3125
3131
  return Object.keys(e).forEach((r) => {
3126
- R(t, r) || j(t, r, e[r]);
3132
+ R(t, r) || F(t, r, e[r]);
3127
3133
  }), t;
3128
3134
  }
3129
- function ni(t) {
3135
+ function ai(t) {
3130
3136
  const e = t.rule.control || [];
3131
- return d.Object(e) ? [e] : e;
3137
+ return h.Object(e) ? [e] : e;
3132
3138
  }
3133
- function si(t, e) {
3139
+ function li(t, e) {
3134
3140
  for (let r = 0; r < t.ctrlRule.length; r++) {
3135
3141
  const i = t.ctrlRule[r];
3136
3142
  if (i.children === e)
3137
3143
  return i;
3138
3144
  }
3139
3145
  }
3140
- function pt(t) {
3146
+ function yt(t) {
3141
3147
  return !!t.rule.__ctrl;
3142
3148
  }
3143
- function oi(t) {
3144
- b(t.prototype, {
3149
+ function ui(t) {
3150
+ _(t.prototype, {
3145
3151
  setValue(e, r, i, s) {
3146
3152
  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, {
3147
3153
  rule: e.origin,
@@ -3167,21 +3173,21 @@ function oi(t) {
3167
3173
  setFormData(e, r) {
3168
3174
  e.modelValue = r;
3169
3175
  const i = e.getParentGroup();
3170
- i && (this.subRuleData[i.id] || (this.subRuleData[i.id] = {}), this.subRuleData[i.id][e.field] = e.rule.value), j(this.formData, e.id, r);
3176
+ 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);
3171
3177
  },
3172
3178
  rmSubRuleData(e) {
3173
3179
  const r = e.getParentGroup();
3174
- r && this.subRuleData[r.id] && delete this.subRuleData[r.id][e.field];
3180
+ r && this.subRuleData[r.id] && Y(this.subRuleData[r.id], e.field);
3175
3181
  },
3176
3182
  getFormData(e) {
3177
3183
  return this.formData[e.id];
3178
3184
  },
3179
3185
  syncForm() {
3180
3186
  const e = {}, r = this.fields(), i = [];
3181
- this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = ke(this.appendData, n)), s), e), r.reduce((s, n) => {
3187
+ this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Re(this.appendData, n)), s), e), r.reduce((s, n) => {
3182
3188
  const o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a.rule))[0] || this.fieldCtx[n][0];
3183
- return this.isIgnore(o.rule) && i.push(n), s[n] = ke(o.rule, "value"), s;
3184
- }, e), this.form = te(e), this.ignoreFields = i, this.syncValue();
3189
+ return this.isIgnore(o.rule) && i.push(n), s[n] = Re(o.rule, "value"), s;
3190
+ }, e), this.form = x(e), this.ignoreFields = i, this.syncValue();
3185
3191
  },
3186
3192
  isIgnore(e) {
3187
3193
  return e.ignore === !0 || e.ignore === "hidden" && e.hidden || this.options.ignoreHiddenFields && e.hidden;
@@ -3193,7 +3199,7 @@ function oi(t) {
3193
3199
  this.subForm[e.id] = r;
3194
3200
  },
3195
3201
  deferSyncValue(e, r) {
3196
- this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), F(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
3202
+ this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), k(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
3197
3203
  },
3198
3204
  syncValue() {
3199
3205
  if (this.deferSyncFn)
@@ -3204,14 +3210,14 @@ function oi(t) {
3204
3210
  }), this.vm.updateValue(e);
3205
3211
  },
3206
3212
  isChange(e, r) {
3207
- return JSON.stringify(this.getFormData(e), mt) !== JSON.stringify(r, mt);
3213
+ return JSON.stringify(this.getFormData(e), $t) !== JSON.stringify(r, $t);
3208
3214
  },
3209
3215
  isQuote(e, r) {
3210
- return (d.Object(r) || Array.isArray(r)) && r === e.rule.value;
3216
+ return (h.Object(r) || Array.isArray(r)) && r === e.rule.value;
3211
3217
  },
3212
3218
  refreshUpdate(e, r, i, s) {
3213
- if (d.Function(e.rule.update)) {
3214
- const n = F(() => e.rule.update(r, e.origin, this.api, {
3219
+ if (h.Function(e.rule.update)) {
3220
+ const n = k(() => e.rule.update(r, e.origin, this.api, {
3215
3221
  origin: i || "change",
3216
3222
  linkField: s
3217
3223
  }));
@@ -3227,7 +3233,7 @@ function oi(t) {
3227
3233
  },
3228
3234
  appendLink(e) {
3229
3235
  const r = e.rule.link;
3230
- d.trueArray(r) && r.forEach((i) => {
3236
+ h.trueArray(r) && r.forEach((i) => {
3231
3237
  const s = () => this.refreshRule(e, e.rule.value, "link", i);
3232
3238
  this.bus.$on("change-" + i, s), e.linkOn.push(() => this.bus.$off("change-" + i, s));
3233
3239
  });
@@ -3237,10 +3243,10 @@ function oi(t) {
3237
3243
  }
3238
3244
  });
3239
3245
  }
3240
- function mt(t, e) {
3246
+ function $t(t, e) {
3241
3247
  return typeof e == "function" ? "" + e : e;
3242
3248
  }
3243
- const Oe = {
3249
+ const Fe = {
3244
3250
  init(t) {
3245
3251
  },
3246
3252
  toFormValue(t, e) {
@@ -3259,9 +3265,9 @@ const Oe = {
3259
3265
  },
3260
3266
  mergeProp(t) {
3261
3267
  }
3262
- }, ai = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"];
3263
- function li(t) {
3264
- b(t.prototype, {
3268
+ }, fi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"];
3269
+ function ci(t) {
3270
+ _(t.prototype, {
3265
3271
  getCtx(e) {
3266
3272
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
3267
3273
  },
@@ -3291,26 +3297,26 @@ function li(t) {
3291
3297
  getParser(e) {
3292
3298
  const r = this.fc.parsers, i = this.fc.renderDriver;
3293
3299
  if (i) {
3294
- const s = i.parsers || {}, n = s[e.originType] || s[U(e.type)] || s[e.trueType];
3300
+ const s = i.parsers || {}, n = s[e.originType] || s[q(e.type)] || s[e.trueType];
3295
3301
  if (n)
3296
3302
  return n;
3297
3303
  }
3298
- return r[e.originType] || r[U(e.type)] || r[e.trueType] || Oe;
3304
+ return r[e.originType] || r[q(e.type)] || r[e.trueType] || Fe;
3299
3305
  },
3300
3306
  bindParser(e) {
3301
3307
  e.setParser(this.getParser(e));
3302
3308
  },
3303
3309
  getType(e) {
3304
- const r = this.fc.CreateNode.aliasMap, i = r[e] || r[U(e)] || e;
3305
- return U(i);
3310
+ const r = this.fc.CreateNode.aliasMap, i = r[e] || r[q(e)] || e;
3311
+ return q(i);
3306
3312
  },
3307
3313
  noWatch(e) {
3308
- this.noWatchFn || (this.noWatchFn = e), F(e), this.noWatchFn === e && (this.noWatchFn = null);
3314
+ this.noWatchFn || (this.noWatchFn = e), k(e), this.noWatchFn === e && (this.noWatchFn = null);
3309
3315
  },
3310
3316
  watchCtx(e) {
3311
- if (St().filter((i) => i[0] !== "_" && i[0] !== "$" && ai.indexOf(i) === -1).forEach((i) => {
3312
- const s = ke(e.rule, i), n = i === "children";
3313
- e.refRule[i] = s, e.watch.push(P(n ? () => d.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3317
+ if (jt().filter((i) => i[0] !== "_" && i[0] !== "$" && fi.indexOf(i) === -1).forEach((i) => {
3318
+ const s = Re(e.rule, i), n = i === "children";
3319
+ e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3314
3320
  let l = s.value;
3315
3321
  if (!this.isBreakWatch()) {
3316
3322
  if (n && e.parser.loadChildren === !1) {
@@ -3326,31 +3332,31 @@ function li(t) {
3326
3332
  else if (i === "link") {
3327
3333
  e.link();
3328
3334
  return;
3329
- } else ["props", "on", "nativeOn", "deep"].indexOf(i) > -1 ? (this.parseInjectEvent(e.rule, l || {}), i === "props" && e.input && this.setFormData(e, e.parser.toFormValue(e.rule.value, e))) : ["emit", "nativeEmit"].indexOf(i) > -1 ? this.parseEmit(e, i === "emit") : ["prefix", "suffix"].indexOf(i) > -1 ? l && this.loadFn(l, e.rule) : i === "type" ? (e.updateType(), this.bindParser(e)) : n && (d.Function(a) && (a = e.getPending("children", [])), d.Function(l) && (l = e.loadChildrenPending()), this.updateChildren(e, l, a));
3335
+ } else ["props", "on", "nativeOn", "deep"].indexOf(i) > -1 ? (this.parseInjectEvent(e.rule, l || {}), i === "props" && e.input && this.setFormData(e, e.parser.toFormValue(e.rule.value, e))) : ["emit", "nativeEmit"].indexOf(i) > -1 ? this.parseEmit(e, i === "emit") : ["prefix", "suffix"].indexOf(i) > -1 ? l && this.loadFn(l, e.rule) : i === "type" ? (e.updateType(), this.bindParser(e)) : n && (h.Function(a) && (a = e.getPending("children", [])), h.Function(l) && (l = e.loadChildrenPending()), this.updateChildren(e, l, a));
3330
3336
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3331
3337
  }
3332
3338
  }, { deep: !n, sync: n }));
3333
- }), e.refRule.__$title = de(() => {
3339
+ }), e.refRule.__$title = ce(() => {
3334
3340
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3335
3341
  if (i) {
3336
3342
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3337
3343
  s && (i = this.api.t(s[1]));
3338
3344
  }
3339
3345
  return i;
3340
- }), e.refRule.__$info = de(() => {
3346
+ }), e.refRule.__$info = ce(() => {
3341
3347
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3342
3348
  if (i) {
3343
3349
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3344
3350
  s && (i = this.api.t(s[1]));
3345
3351
  }
3346
3352
  return i;
3347
- }), e.refRule.__$validate = de(() => q(e.rule.validate).map((i) => {
3348
- const s = v({}, i);
3353
+ }), e.refRule.__$validate = ce(() => G(e.rule.validate).map((i) => {
3354
+ const s = b({}, i);
3349
3355
  if (s.message) {
3350
3356
  const n = s.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3351
3357
  n && (s.message = this.api.t(n[1], { title: e.refRule.__$title.value }));
3352
3358
  }
3353
- if (d.Function(s.validator)) {
3359
+ if (h.Function(s.validator)) {
3354
3360
  const n = e;
3355
3361
  return s.validator = function(...o) {
3356
3362
  return i.validator.call({
@@ -3364,8 +3370,8 @@ function li(t) {
3364
3370
  }
3365
3371
  return s;
3366
3372
  })), e.input) {
3367
- const i = ke(e.rule, "value");
3368
- e.watch.push(P(() => i.value, () => {
3373
+ const i = Re(e.rule, "value");
3374
+ e.watch.push(B(() => i.value, () => {
3369
3375
  let s = e.parser.toFormValue(i.value, e);
3370
3376
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
3371
3377
  }));
@@ -3374,15 +3380,15 @@ function li(t) {
3374
3380
  let i = e.rule.computed;
3375
3381
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3376
3382
  let n;
3377
- const o = de(() => {
3383
+ const o = ce(() => {
3378
3384
  const l = i[s];
3379
3385
  if (!l) return;
3380
3386
  const u = this.compute(e, l);
3381
3387
  return l.linkage && u === void 0 ? n : u;
3382
3388
  }), a = (l) => {
3383
- s === "value" ? this.onInput(e, l) : s[0] === "$" ? this.api.setEffect(e.id, s, l) : re(e.rule, s, l);
3389
+ s === "value" ? this.onInput(e, l) : s[0] === "$" ? this.api.setEffect(e.id, s, l) : ee(e.rule, s, l);
3384
3390
  };
3385
- (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : o.value !== M(e.rule, s)) && a(o.value), e.watch.push(P(o, (l) => {
3391
+ (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : o.value !== M(e.rule, s)) && a(o.value), e.watch.push(B(o, (l) => {
3386
3392
  n = l, setTimeout(() => {
3387
3393
  a(l);
3388
3394
  });
@@ -3394,28 +3400,35 @@ function li(t) {
3394
3400
  let i;
3395
3401
  if (typeof r == "object") {
3396
3402
  const s = e.getParentGroup(), n = (a) => {
3397
- if (a = Array.isArray(a) ? { mode: "AND", group: a } : a, !d.trueArray(a.group))
3403
+ if (a = Array.isArray(a) ? { mode: "AND", group: a } : a, !h.trueArray(a.group))
3398
3404
  return !0;
3399
3405
  const l = a.mode === "OR";
3400
3406
  let u = !0;
3401
3407
  for (let f = 0; f < a.group.length; f++) {
3402
3408
  const p = a.group[f];
3403
- let m, $ = p.field;
3404
- if (p.variable && ($ = JSON.stringify(this.fc.getLoadData(p.variable) || "")), p.mode ? m = n(p) : le[p.condition] ? d.Function(p.handler) ? m = F(() => p.handler(this.api, e.rule)) : m = new Function("$condition", "$val", "$form", "$group", "$rule", `with($form){with(this){with($group){ return $condition['${p.condition}'](${$}, ${p.compare ? p.compare : "$val"}); }}}`).call(this.api.form, le, p.value, this.api.top.form, s ? this.subRuleData[s.id] || {} : {}, e.rule) : m = !1, l && m)
3409
+ let m, $ = null;
3410
+ if (p.variable)
3411
+ $ = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3412
+ else if (p.field)
3413
+ $ = ht(p.field || "");
3414
+ else
3415
+ return !0;
3416
+ let v = p.compare;
3417
+ if (v && (v = ht(v || "")), p.mode ? m = n(p) : ae[p.condition] ? h.Function(p.handler) ? m = k(() => p.handler(this.api, e.rule)) : m = new Function("$condition", "$val", "$form", "$group", "$rule", `with($form){with(this){with($group){ return $condition['${p.condition}'](${$}, ${v || "$val"}); }}}`).call(this.api.form, ae, p.value, this.api.top.form, s ? this.subRuleData[s.id] || {} : {}, e.rule) : m = !1, l && m)
3405
3418
  return !0;
3406
3419
  l || (u = u && m);
3407
3420
  }
3408
3421
  return l ? !1 : u;
3409
3422
  };
3410
3423
  let o = n(r);
3411
- return o = r.invert === !0 ? !o : o, r.linkage ? o ? F(() => this.computeValue(r.linkage, e, s), void 0) : void 0 : o;
3412
- } else if (d.Function(r))
3424
+ return o = r.invert === !0 ? !o : o, r.linkage ? o ? k(() => this.computeValue(r.linkage, e, s), void 0) : void 0 : o;
3425
+ } else if (h.Function(r))
3413
3426
  i = () => r(this.api.form, this.api);
3414
3427
  else {
3415
3428
  const s = e.getParentGroup();
3416
3429
  i = () => this.computeValue(r, e, s);
3417
3430
  }
3418
- return F(i, void 0);
3431
+ return k(i, void 0);
3419
3432
  },
3420
3433
  computeValue(e, r, i) {
3421
3434
  const s = this, n = Object.keys(this.fc.formulas).reduce((o, a) => (o[a] = function(...l) {
@@ -3431,25 +3444,25 @@ function li(t) {
3431
3444
  updateChildren(e, r, i) {
3432
3445
  this.deferSyncValue(() => {
3433
3446
  i && i.forEach((s) => {
3434
- (r || []).indexOf(s) === -1 && s && !d.String(s) && s.__fc__ && s.__fc__.parent === e && this.rmCtx(s.__fc__);
3435
- }), d.trueArray(r) && (this.loadChildren(r, e), this.bus.$emit("update", this.api));
3447
+ (r || []).indexOf(s) === -1 && s && !h.String(s) && s.__fc__ && s.__fc__.parent === e && this.rmCtx(s.__fc__);
3448
+ }), h.trueArray(r) && (this.loadChildren(r, e), this.bus.$emit("update", this.api));
3436
3449
  });
3437
3450
  },
3438
3451
  rmSub(e) {
3439
- d.trueArray(e) && e.forEach((r) => {
3452
+ h.trueArray(e) && e.forEach((r) => {
3440
3453
  r && r.__fc__ && this.rmCtx(r.__fc__);
3441
3454
  });
3442
3455
  },
3443
3456
  rmCtx(e) {
3444
3457
  if (e.deleted) return;
3445
3458
  const { id: r, field: i, input: s, name: n } = e;
3446
- oe(this.ctxs, r), oe(this.formData, r), oe(this.subForm, r), oe(this.vm.ctxInject, r);
3459
+ Y(this.ctxs, r), Y(this.formData, r), Y(this.subForm, r), Y(this.vm.ctxInject, r);
3447
3460
  const o = e.getParentGroup();
3448
- o && this.subRuleData[o.id] && oe(this.subRuleData[o.id], i), e.group && oe(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !R(this.fieldCtx, i) && oe(this.form, i), this.deferSyncValue(() => {
3461
+ o && this.subRuleData[o.id] && Y(this.subRuleData[o.id], i), e.group && Y(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !R(this.fieldCtx, i) && Y(this.form, i), this.deferSyncValue(() => {
3449
3462
  if (!this.reloading) {
3450
3463
  if (e.parser.loadChildren !== !1) {
3451
3464
  const l = e.getPending("children", e.rule.children);
3452
- d.trueArray(l) && l.forEach((u) => u.__fc__ && this.rmCtx(u.__fc__));
3465
+ h.trueArray(l) && l.forEach((u) => u.__fc__ && this.rmCtx(u.__fc__));
3453
3466
  }
3454
3467
  e.root === this.rules && this.vm.renderRule();
3455
3468
  }
@@ -3459,8 +3472,8 @@ function li(t) {
3459
3472
  }
3460
3473
  });
3461
3474
  }
3462
- function ui(t) {
3463
- b(t.prototype, {
3475
+ function hi(t) {
3476
+ _(t.prototype, {
3464
3477
  mounted() {
3465
3478
  const e = () => {
3466
3479
  this.isMounted = !0, this.lifecycle("mounted");
@@ -3471,10 +3484,10 @@ function ui(t) {
3471
3484
  this.fc.targetFormDriver(e, this.api, this.fc), this.vm.$emit(e, this.api), this.emitEvent(e, this.api);
3472
3485
  },
3473
3486
  emitEvent(e, ...r) {
3474
- const i = this.options[e] || this.options[U("on-" + e)];
3487
+ const i = this.options[e] || this.options[q("on-" + e)];
3475
3488
  if (i) {
3476
3489
  const s = Q(i);
3477
- d.Function(s) && F(() => s(...r));
3490
+ h.Function(s) && k(() => s(...r));
3478
3491
  }
3479
3492
  this.bus.$emit(e, ...r);
3480
3493
  },
@@ -3482,18 +3495,18 @@ function ui(t) {
3482
3495
  var n, o;
3483
3496
  let s = (o = (n = e.prop) == null ? void 0 : n.hook) == null ? void 0 : o[r];
3484
3497
  s && (s = Array.isArray(s) ? s : [s], s.forEach((a) => {
3485
- F(() => a(N(v({}, i || {}), { rule: e.rule, api: this.api })));
3498
+ k(() => a(U(b({}, i || {}), { rule: e.rule, api: this.api })));
3486
3499
  }));
3487
3500
  }
3488
3501
  });
3489
3502
  }
3490
- function fi(t) {
3491
- b(t.prototype, {
3503
+ function di(t) {
3504
+ _(t.prototype, {
3492
3505
  useProvider() {
3493
3506
  const e = this.fc.providers;
3494
3507
  Object.keys(e).forEach((r) => {
3495
3508
  let i = e[r];
3496
- d.Function(i) && (i = i(this.fc)), i._c = hi(i), this.onEffect(i), this.providers[r] = i;
3509
+ h.Function(i) && (i = i(this.fc)), i._c = mi(i), this.onEffect(i), this.providers[r] = i;
3497
3510
  });
3498
3511
  },
3499
3512
  onEffect(e) {
@@ -3517,7 +3530,7 @@ function fi(t) {
3517
3530
  }), Object.keys(e.rule).forEach((i) => {
3518
3531
  i[0] === "$" && (r[i.substr(1)] = () => e.rule[i]);
3519
3532
  }), Object.keys(r).forEach((i) => {
3520
- e.watch.push(P(r[i], (s) => {
3533
+ e.watch.push(B(r[i], (s) => {
3521
3534
  this.effect(e, "watch", { [i]: s });
3522
3535
  }, { deep: !0 }));
3523
3536
  });
@@ -3546,7 +3559,7 @@ function fi(t) {
3546
3559
  },
3547
3560
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
3548
3561
  if (!s || ["fcFragment", "fragment"].indexOf(s) > -1) return;
3549
- const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), v({}, r.effect || {}));
3562
+ const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), b({}, r.effect || {}));
3550
3563
  Object.keys(l).forEach((u) => {
3551
3564
  const f = this.providers[u];
3552
3565
  if (!f || f.input && !i) return;
@@ -3557,26 +3570,26 @@ function fi(t) {
3557
3570
  p = s;
3558
3571
  else
3559
3572
  return;
3560
- const m = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3573
+ const m = b({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3561
3574
  e && (m.getProp = () => e.effectData(u), m.clearProp = () => e.clearEffectData(u), m.mergeProp = ($) => X(m.getProp(), [$]), m.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [m, r, this.api]);
3562
3575
  });
3563
3576
  }
3564
3577
  });
3565
3578
  }
3566
- function ci(t) {
3579
+ function pi(t) {
3567
3580
  return t.filter(function(e, r, i) {
3568
3581
  return i.indexOf(e, 0) === r;
3569
3582
  });
3570
3583
  }
3571
- function hi(t) {
3584
+ function mi(t) {
3572
3585
  const e = t.components;
3573
3586
  if (Array.isArray(e)) {
3574
- const r = ci(e.filter((i) => i !== "*"));
3587
+ const r = pi(e.filter((i) => i !== "*"));
3575
3588
  return r.length ? r : !1;
3576
- } else return d.String(e) ? [e] : !1;
3589
+ } else return h.String(e) ? [e] : !1;
3577
3590
  }
3578
- function J(t) {
3579
- At(this, {
3591
+ function W(t) {
3592
+ Bt(this, {
3580
3593
  options() {
3581
3594
  return t.options.value || {};
3582
3595
  },
@@ -3586,7 +3599,7 @@ function J(t) {
3586
3599
  preview() {
3587
3600
  return t.vm.$options.propsData.preview != null ? t.vm.$options.propsData.preview : t.options.value.preview || !1;
3588
3601
  }
3589
- }), b(this, {
3602
+ }), _(this, {
3590
3603
  fc: t,
3591
3604
  vm: t.vm,
3592
3605
  watching: !1,
@@ -3595,10 +3608,10 @@ function J(t) {
3595
3608
  noWatchFn: null,
3596
3609
  deferSyncFn: null,
3597
3610
  isMounted: !1,
3598
- formData: te({}),
3599
- subRuleData: te({}),
3611
+ formData: x({}),
3612
+ subRuleData: x({}),
3600
3613
  subForm: {},
3601
- form: te({}),
3614
+ form: x({}),
3602
3615
  appendData: {},
3603
3616
  ignoreFields: [],
3604
3617
  providers: {},
@@ -3610,11 +3623,14 @@ function J(t) {
3610
3623
  nextReload: () => {
3611
3624
  this.lifecycle("reload");
3612
3625
  }
3613
- }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new et(this), this.api = t.extendApiFn.reduce((e, r) => (b(e, F(() => r(e, this) || e, {})), e), zr(this));
3626
+ }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3627
+ const i = k(() => r(e, this));
3628
+ return i && i !== e && _(e, i), e;
3629
+ }, Qr(this));
3614
3630
  }
3615
- b(J.prototype, {
3631
+ _(W.prototype, {
3616
3632
  initData(t) {
3617
- b(this, {
3633
+ _(this, {
3618
3634
  ctxs: {},
3619
3635
  fieldCtx: {},
3620
3636
  nameCtx: {},
@@ -3626,63 +3642,63 @@ b(J.prototype, {
3626
3642
  this.updateAppendData(), this.useProvider(), this.usePage(), this.loadRule(), this.$manager.__init(), this.lifecycle("created");
3627
3643
  },
3628
3644
  updateAppendData() {
3629
- this.appendData = v(v(v({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3645
+ this.appendData = b(b(b({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3630
3646
  },
3631
3647
  isBreakWatch() {
3632
3648
  return this.loading || this.noWatchFn || this.reloading;
3633
3649
  },
3634
3650
  beforeFetch(t) {
3635
3651
  return new Promise((e) => {
3636
- const r = this.options.beforeFetch && F(() => this.options.beforeFetch(t, { api: this.api }));
3637
- r && d.Function(r.then) ? r.then(e) : e();
3652
+ const r = this.options.beforeFetch && k(() => this.options.beforeFetch(t, { api: this.api }));
3653
+ r && h.Function(r.then) ? r.then(e) : e();
3638
3654
  });
3639
3655
  }
3640
3656
  });
3641
- Zr(J);
3642
- Yr(J);
3643
- ei(J);
3644
- ri(J);
3645
- oi(J);
3646
- li(J);
3647
- ui(J);
3648
- fi(J);
3649
- const di = "fcFragment", Be = {
3650
- name: di,
3657
+ ei(W);
3658
+ ti(W);
3659
+ ii(W);
3660
+ si(W);
3661
+ ui(W);
3662
+ ci(W);
3663
+ hi(W);
3664
+ di(W);
3665
+ const gi = "fcFragment", Te = {
3666
+ name: gi,
3651
3667
  functional: !0,
3652
3668
  props: ["vnode"],
3653
3669
  render(t, e) {
3654
3670
  return e.props.vnode ? e.props.vnode : e.children;
3655
3671
  }
3656
3672
  };
3657
- function pi(t) {
3658
- return d.String(t) ? { domProps: { innerHTML: t } } : t;
3673
+ function yi(t) {
3674
+ return h.String(t) ? { domProps: { innerHTML: t } } : t;
3659
3675
  }
3660
- function mi() {
3676
+ function $i() {
3661
3677
  const t = {};
3662
3678
  function e(r) {
3663
3679
  r && this.setVm(r);
3664
3680
  }
3665
- return b(e.prototype, {
3681
+ return _(e.prototype, {
3666
3682
  setVm(r) {
3667
- this.vm = r, this.$h = r.$createElement;
3683
+ this.vm = r, this.h = this.$h = r.$createElement;
3668
3684
  },
3669
3685
  make(r, i, s) {
3670
3686
  var n, o, a;
3671
- return (pe.isReservedTag ? pe.isReservedTag(r) : (o = (n = pe) == 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);
3687
+ return (he.isReservedTag ? he.isReservedTag(r) : (o = (n = he) == 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);
3672
3688
  },
3673
3689
  makeComponent(r, i, s) {
3674
- let n = this.$h(r, pi(i), s || []);
3690
+ let n = this.$h(r, yi(i), s || []);
3675
3691
  return n.context = this.vm, n;
3676
3692
  },
3677
3693
  aliasMap: t
3678
- }), b(e, {
3694
+ }), _(e, {
3679
3695
  aliasMap: t,
3680
3696
  alias(r, i) {
3681
3697
  t[r] = i;
3682
3698
  },
3683
3699
  use(r) {
3684
3700
  Object.keys(r).forEach((i) => {
3685
- const s = ge(i), n = Nr(i).toLocaleLowerCase(), o = r[i];
3701
+ const s = ge(i), n = qr(i).toLocaleLowerCase(), o = r[i];
3686
3702
  [i, s, n].forEach((a) => {
3687
3703
  e.alias(i, o), e.prototype[a] = function(l, u) {
3688
3704
  return this.make(o, l, u);
@@ -3692,13 +3708,13 @@ function mi() {
3692
3708
  }
3693
3709
  }), e;
3694
3710
  }
3695
- function gi(t) {
3696
- class e extends Mt {
3711
+ function vi(t) {
3712
+ class e extends Gt {
3697
3713
  }
3698
3714
  return Object.assign(e.prototype, t), e;
3699
3715
  }
3700
- function Mt(t) {
3701
- b(this, {
3716
+ function Gt(t) {
3717
+ _(this, {
3702
3718
  $handle: t,
3703
3719
  vm: t.vm,
3704
3720
  options: {},
@@ -3708,12 +3724,12 @@ function Mt(t) {
3708
3724
  }
3709
3725
  }), this.updateKey(), this.init();
3710
3726
  }
3711
- b(Mt.prototype, {
3727
+ _(Gt.prototype, {
3712
3728
  __init() {
3713
3729
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
3714
3730
  },
3715
3731
  updateKey() {
3716
- this.key = Se();
3732
+ this.key = De();
3717
3733
  },
3718
3734
  //TODO interface
3719
3735
  init() {
@@ -3753,24 +3769,24 @@ b(Mt.prototype, {
3753
3769
  render(t) {
3754
3770
  }
3755
3771
  });
3756
- const yi = function(t) {
3772
+ const bi = function(t) {
3757
3773
  const e = {
3758
3774
  name: "loadData",
3759
3775
  _fn: [],
3760
3776
  mounted(r, i, s) {
3761
3777
  this.deleted(r);
3762
- let n = q(r.getValue());
3778
+ let n = G(r.getValue());
3763
3779
  const o = [];
3764
3780
  n.forEach((a) => {
3765
3781
  if (a && (a.attr || a.template)) {
3766
3782
  let l = (p) => {
3767
3783
  let m;
3768
- a.template ? m = t.$handle.loadStrVar(a.template, p) : m = p(a.attr, a.default), a.copy !== !1 && (m = G(m));
3784
+ a.template ? m = t.$handle.loadStrVar(a.template, p) : m = p(a.attr, a.default), a.copy !== !1 && (m = J(m));
3769
3785
  const $ = a.modify ? i : r.getProp();
3770
- a.to === "child" ? $.children ? $.children[0] = m : $.children = [m] : re($, a.to || "options", m), s.sync(i);
3786
+ a.to === "child" ? $.children ? F($.children, 0, m) : F($, "children", [m]) : ee($, a.to || "options", m), s.sync(i);
3771
3787
  }, u = (p) => l(p);
3772
3788
  const f = t.watchLoadData(u);
3773
- l = ue(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
3789
+ l = le(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
3774
3790
  }
3775
3791
  }), this._fn[r.id] = o;
3776
3792
  },
@@ -3781,7 +3797,7 @@ const yi = function(t) {
3781
3797
  }
3782
3798
  };
3783
3799
  return e.watch = e.mounted, e;
3784
- }, $i = function(t) {
3800
+ }, _i = function(t) {
3785
3801
  const e = {
3786
3802
  name: "t",
3787
3803
  _fn: [],
@@ -3794,12 +3810,12 @@ const yi = function(t) {
3794
3810
  if (l) {
3795
3811
  const u = typeof l == "object";
3796
3812
  let f = ($) => {
3797
- let _ = t.t(u ? l.attr : l, u ? l.params : null, $);
3813
+ let v = t.t(u ? l.attr : l, u ? l.params : null, $);
3798
3814
  const w = u && l.modify ? i : r.getProp();
3799
- a === "child" ? w.children ? w.children[0] = _ : w.children = [_] : re(w, a, _), s.sync(i);
3815
+ a === "child" ? w.children ? F(w.children, 0, v) : F(w, "children", [v]) : ee(w, a, v), s.sync(i);
3800
3816
  }, p = ($) => f($);
3801
3817
  const m = t.watchLoadData(p);
3802
- f = ue(f, l.wait || 300), l.watch !== !1 ? o.push(m) : m();
3818
+ f = le(f, l.wait || 300), l.watch !== !1 ? o.push(m) : m();
3803
3819
  }
3804
3820
  }), this._fn[r.id] = o;
3805
3821
  },
@@ -3810,20 +3826,20 @@ const yi = function(t) {
3810
3826
  }
3811
3827
  };
3812
3828
  return e.watch = e.loaded, e;
3813
- }, Ut = {
3829
+ }, Ht = {
3814
3830
  name: "componentValidate",
3815
3831
  load(t, e, r) {
3816
3832
  let i = t.getValue();
3817
3833
  if (!i || i.method === !1)
3818
3834
  t.clearProp(), r.clearValidateState([e.field]);
3819
3835
  else {
3820
- d.Object(i) || (i = { method: i });
3836
+ h.Object(i) || (i = { method: i });
3821
3837
  const s = i.method;
3822
- delete i.method, t.getProp().validate = [N(v({}, i), {
3838
+ delete i.method, t.getProp().validate = [U(b({}, i), {
3823
3839
  validator(...n) {
3824
- const o = ae(e);
3840
+ const o = oe(e);
3825
3841
  if (o)
3826
- return r.exec(o.id, d.String(s) ? s : "formCreateValidate", ...n, {
3842
+ return r.exec(o.id, h.String(s) ? s : "formCreateValidate", ...n, {
3827
3843
  attr: t,
3828
3844
  rule: e,
3829
3845
  api: r
@@ -3833,26 +3849,26 @@ const yi = function(t) {
3833
3849
  }
3834
3850
  },
3835
3851
  watch(...t) {
3836
- Ut.load(...t);
3852
+ Ht.load(...t);
3837
3853
  }
3838
- }, vi = function(t) {
3854
+ }, Ci = function(t) {
3839
3855
  function e(s) {
3840
- return d.String(s) && (s = {
3856
+ return h.String(s) && (s = {
3841
3857
  action: s,
3842
3858
  to: "options"
3843
3859
  }), s;
3844
3860
  }
3845
3861
  function r(s, n, o) {
3846
3862
  let a = s.value;
3847
- i.deleted(s), d.Function(a) && (a = a(n, o)), a = e(a);
3863
+ i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
3848
3864
  const l = (p) => {
3849
- p === void 0 ? s.clearProp() : re(s.getProp(), a.to || "options", p), o.sync(n);
3865
+ p === void 0 ? s.clearProp() : ee(s.getProp(), a.to || "options", p), o.sync(n);
3850
3866
  };
3851
3867
  if (!a || !a.action && !a.key) {
3852
3868
  l(void 0);
3853
3869
  return;
3854
3870
  }
3855
- if (a = G(a), a.to || (a.to = "options"), a.key) {
3871
+ if (a = J(a), a.to || (a.to = "options"), a.key) {
3856
3872
  const p = t.$handle.options.globalData[a.key];
3857
3873
  if (!p) {
3858
3874
  l(void 0);
@@ -3862,38 +3878,38 @@ const yi = function(t) {
3862
3878
  l(p.data);
3863
3879
  return;
3864
3880
  } else
3865
- a = v(v({}, a), p);
3881
+ a = b(b({}, a), p);
3866
3882
  }
3867
3883
  const u = a.onError, f = () => {
3868
3884
  if (!s.getValue())
3869
3885
  return s.clearProp(), o.sync(n), !0;
3870
3886
  };
3871
- i._fn[s.id] = t.watchLoadData(ue((p, m) => {
3887
+ i._fn[s.id] = t.watchLoadData(le((p, m) => {
3872
3888
  if (m && a.watch === !1)
3873
3889
  return i._fn[s.id]();
3874
- const $ = t.$handle.loadFetchVar(G(a), p), _ = N(v({
3890
+ const $ = t.$handle.loadFetchVar(J(a), p), v = U(b({
3875
3891
  headers: {}
3876
3892
  }, $), {
3877
- onSuccess(w, D) {
3893
+ onSuccess(w, j) {
3878
3894
  if (f()) return;
3879
- let Z = (B) => D ? B : R(B, "data") ? B.data : B;
3880
- const A = Q($.parse);
3881
- d.Function(A) ? Z = A : A && d.String(A) && (Z = (B) => M(B, A)), l(Z(w, n, o)), o.sync(n);
3895
+ let Z = (L) => j ? L : R(L, "data") ? L.data : L;
3896
+ const V = Q($.parse);
3897
+ h.Function(V) ? Z = V : V && h.String(V) && (Z = (L) => M(L, V)), l(Z(w, n, o)), o.sync(n);
3882
3898
  },
3883
3899
  onError(w) {
3884
- l(void 0), !f() && (u || ((D) => Ze(D.message || "fetch fail " + $.action)))(w, n, o);
3900
+ l(void 0), !f() && (u || ((j) => xe(j.message || "fetch fail " + $.action)))(w, n, o);
3885
3901
  }
3886
3902
  });
3887
- t.$handle.beforeFetch(_, { rule: n, api: o }).then(() => {
3888
- if (d.Function($.action)) {
3903
+ t.$handle.beforeFetch(v, { rule: n, api: o }).then(() => {
3904
+ if (h.Function($.action)) {
3889
3905
  $.action(n, o).then((w) => {
3890
- _.onSuccess(w, !0);
3906
+ v.onSuccess(w, !0);
3891
3907
  }).catch((w) => {
3892
- _.onError(w);
3908
+ v.onError(w);
3893
3909
  });
3894
3910
  return;
3895
3911
  }
3896
- F(() => t.create.fetch(_, { inject: s, rule: n, api: o }));
3912
+ k(() => t.create.fetch(v, { inject: s, rule: n, api: o }));
3897
3913
  });
3898
3914
  }, a.wait || 600));
3899
3915
  }
@@ -3911,13 +3927,13 @@ const yi = function(t) {
3911
3927
  }
3912
3928
  };
3913
3929
  return i;
3914
- }, bi = {
3915
- fetch: vi,
3916
- loadData: yi,
3917
- t: $i,
3918
- componentValidate: Ut
3930
+ }, wi = {
3931
+ fetch: Ci,
3932
+ loadData: bi,
3933
+ t: _i,
3934
+ componentValidate: Ht
3919
3935
  };
3920
- function _i(t) {
3936
+ function Oi(t) {
3921
3937
  t = t || /* @__PURE__ */ new Map();
3922
3938
  const e = {
3923
3939
  $on(r, i) {
@@ -3941,17 +3957,17 @@ function _i(t) {
3941
3957
  };
3942
3958
  return e;
3943
3959
  }
3944
- const Ci = "html", wi = {
3945
- name: Ci,
3960
+ const ki = "html", Fi = {
3961
+ name: ki,
3946
3962
  loadChildren: !1,
3947
3963
  render(t, e) {
3948
3964
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
3949
3965
  },
3950
3966
  renderChildren(t) {
3951
- return Array.isArray(t) ? t.filter((e) => d.String(e)).join("") : "";
3967
+ return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
3952
3968
  }
3953
3969
  };
3954
- function Oi(t) {
3970
+ function Ri(t) {
3955
3971
  t = t + "=";
3956
3972
  const r = decodeURIComponent(document.cookie).split(";");
3957
3973
  for (let i = 0; i < r.length; i++) {
@@ -3969,7 +3985,7 @@ function Oi(t) {
3969
3985
  }
3970
3986
  return null;
3971
3987
  }
3972
- function ki(t) {
3988
+ function Si(t) {
3973
3989
  const e = localStorage.getItem(t);
3974
3990
  if (e)
3975
3991
  try {
@@ -3979,30 +3995,30 @@ function ki(t) {
3979
3995
  }
3980
3996
  return null;
3981
3997
  }
3982
- function qt(t, e) {
3998
+ function Jt(t, e) {
3983
3999
  if (!e)
3984
4000
  return null;
3985
4001
  const r = e.split(".");
3986
4002
  let i = t(r.shift());
3987
4003
  return r.length ? i == null ? null : M(i, r) : i;
3988
4004
  }
3989
- function Fi(t) {
3990
- return qt(Oi, t);
4005
+ function Ei(t) {
4006
+ return Jt(Ri, t);
3991
4007
  }
3992
- function Ri(t) {
3993
- return qt(ki, t);
4008
+ function Di(t) {
4009
+ return Jt(Si, t);
3994
4010
  }
3995
- function Si(t, e) {
4011
+ function ji(t, e) {
3996
4012
  let r;
3997
4013
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
3998
4014
  }
3999
- function Le() {
4000
- return Si("name", ...arguments);
4015
+ function Ne() {
4016
+ return ji("name", ...arguments);
4001
4017
  }
4002
- function Ei(t) {
4003
- return !t || !t.el ? window.document.body : d.Element(t.el) ? t.el : document.querySelector(t.el);
4018
+ function Ii(t) {
4019
+ return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
4004
4020
  }
4005
- function Di(t, e) {
4021
+ function Ai(t, e) {
4006
4022
  const r = new Vue({
4007
4023
  data() {
4008
4024
  return { rule: t, option: e || {} };
@@ -4013,79 +4029,79 @@ function Di(t, e) {
4013
4029
  });
4014
4030
  return r.$mount(), r;
4015
4031
  }
4016
- function ji(t) {
4032
+ function Vi(t) {
4017
4033
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4018
- Rt.push(...e), Xe.push(...r), Qe.push(...i), Pt([...e, ...r, ...i]);
4034
+ Dt.push(...e), Ze.push(...r), Ye.push(...i), Tt([...e, ...r, ...i]);
4019
4035
  }
4020
- let Ii = 1;
4021
- const T = {};
4022
- function Gt(t) {
4036
+ let Pi = 1;
4037
+ const N = {}, Oe = Symbol("defValue");
4038
+ function Wt(t) {
4023
4039
  const e = {
4024
- [Be.name]: Be
4040
+ [Te.name]: Te
4025
4041
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4026
4042
  t.extendApi
4027
- ], u = v({}, bi), f = Jr();
4043
+ ], u = b({}, wi), f = Kr();
4028
4044
  let p = { global: {} };
4029
- const m = te({}), $ = mi(), _ = {}, w = t.isMobile === !0, D = {};
4030
- ji(t.attrs || {});
4045
+ const m = x({}), $ = $i(), v = {}, w = t.isMobile === !0, j = {};
4046
+ Vi(t.attrs || {});
4031
4047
  function Z(c) {
4032
- const h = T[c];
4033
- if (Array.isArray(h))
4034
- return h.map((g) => g.api());
4035
- if (h)
4036
- return h.api();
4048
+ const d = N[c];
4049
+ if (Array.isArray(d))
4050
+ return d.map((g) => g.api());
4051
+ if (d)
4052
+ return d.api();
4037
4053
  }
4038
- function A(c) {
4054
+ function V(c) {
4039
4055
  o.push(c);
4040
4056
  }
4041
- function B() {
4042
- const c = Le(...arguments);
4057
+ function L() {
4058
+ const c = Ne(...arguments);
4043
4059
  c.id && c.prop && (i[c.id] = c.prop);
4044
4060
  }
4045
- function Ee() {
4046
- const c = Le(...arguments);
4047
- c.id && c.prop && (u[c.id] = d.Function(c.prop) ? c.prop : N(v({}, c.prop), {
4061
+ function je() {
4062
+ const c = Ne(...arguments);
4063
+ c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(b({}, c.prop), {
4048
4064
  name: c.id
4049
4065
  }));
4050
4066
  }
4051
4067
  function $e(c) {
4052
4068
  $.use(c);
4053
4069
  }
4054
- function k() {
4055
- const c = Le(...arguments);
4056
- if (!c.id || !c.prop) return Oe;
4057
- const h = U(c.id), g = c.prop, y = g.merge === !0 ? r[h] : void 0;
4058
- r[h] = Ce(g, y || Oe), f[h] = I(h), g.maker && b(f, g.maker);
4070
+ function O() {
4071
+ const c = Ne(...arguments);
4072
+ if (!c.id || !c.prop) return Fe;
4073
+ const d = q(c.id), g = c.prop, y = g.merge === !0 ? r[d] : void 0;
4074
+ r[d] = we(g, y || Fe), f[d] = A(d), g.maker && _(f, g.maker);
4059
4075
  }
4060
- function S(c, h) {
4076
+ function E(c, d) {
4061
4077
  let g;
4062
- if (d.String(c)) {
4063
- if (g = c, h === void 0)
4064
- return ["form-create", "formcreate"].indexOf(g) > -1 ? V() : e[g];
4078
+ if (h.String(c)) {
4079
+ if (g = c, d === void 0)
4080
+ return ["form-create", "formcreate"].indexOf(g) > -1 ? P() : e[g];
4065
4081
  } else
4066
- g = U(c.name), h = c;
4067
- if (!g || !h) return;
4068
- const y = U(g);
4069
- e[g] = h, e[y] = h, delete $.aliasMap[g], delete $.aliasMap[y], delete r[g], delete r[y], h.formCreateParser && k(g, h.formCreateParser);
4082
+ g = q(c.name), d = c;
4083
+ if (!g || !d) return;
4084
+ const y = q(g);
4085
+ e[g] = d, e[y] = d, delete $.aliasMap[g], delete $.aliasMap[y], delete r[g], delete r[y], d.formCreateParser && O(g, d.formCreateParser);
4070
4086
  }
4071
- function V() {
4072
- return Br(Ie, e, i);
4087
+ function P() {
4088
+ return Nr(Ve, e, i);
4073
4089
  }
4074
- function ne() {
4075
- return Be;
4090
+ function re() {
4091
+ return Te;
4076
4092
  }
4077
- function ve(c, h) {
4078
- return d.Function(c.install) ? c.install(se, h) : d.Function(c) && c(se, h), this;
4093
+ function ve(c, d) {
4094
+ return h.Function(c.install) ? c.install(ie, d) : h.Function(c) && c(ie, d), this;
4079
4095
  }
4080
- function se(c, h, g) {
4081
- let y = Di(c, h || {});
4096
+ function ie(c, d, g) {
4097
+ let y = Ai(c, d || {});
4082
4098
  const C = y.$refs.fc.formCreate;
4083
- return C.$parent = g, Ei(C.options).appendChild(y.$el), C.api();
4099
+ return C.$parent = g, Ii(C.options).appendChild(y.$el), C.api();
4084
4100
  }
4085
- Ce(se, D);
4086
- function Jt(c) {
4087
- let h = v({}, t);
4088
- return c ? h.inherit = {
4101
+ we(ie, j);
4102
+ function Kt(c) {
4103
+ let d = b({}, t);
4104
+ return c ? d.inherit = {
4089
4105
  components: e,
4090
4106
  parsers: r,
4091
4107
  directives: i,
@@ -4093,68 +4109,68 @@ function Gt(t) {
4093
4109
  providers: u,
4094
4110
  useApps: o,
4095
4111
  maker: f,
4096
- formulas: _,
4112
+ formulas: v,
4097
4113
  loadData: m
4098
- } : delete h.inherit, Gt(h);
4114
+ } : delete d.inherit, Wt(d);
4099
4115
  }
4100
- function Wt(c, h) {
4101
- s[c] = h;
4116
+ function Xt(c, d) {
4117
+ s[c] = d;
4102
4118
  }
4103
- function zt(c, h) {
4104
- _[c] = h;
4119
+ function Qt(c, d) {
4120
+ v[c] = d;
4105
4121
  }
4106
- function Kt(c, h) {
4122
+ function Zt(c, d) {
4107
4123
  const g = n[c] || {}, y = g.parsers || {};
4108
- h.parsers && Object.keys(h.parsers).forEach((C) => {
4109
- y[C] = Ce(h.parsers[C], Oe);
4110
- }), h.name = c, n[c] = N(v(v({}, g), h), { parsers: y });
4124
+ d.parsers && Object.keys(d.parsers).forEach((C) => {
4125
+ y[C] = we(d.parsers[C], Fe);
4126
+ }), d.name = c, n[c] = U(b(b({}, g), d), { parsers: y });
4111
4127
  }
4112
4128
  function be(c) {
4113
- c && Object.keys(T).forEach((h) => {
4114
- (Array.isArray(T[h]) ? T[h] : [T[h]]).forEach((y) => {
4129
+ c && Object.keys(N).forEach((d) => {
4130
+ (Array.isArray(N[d]) ? N[d] : [N[d]]).forEach((y) => {
4115
4131
  y.bus.$emit("$loadData." + c);
4116
4132
  });
4117
4133
  });
4118
4134
  }
4119
- function De(c, h) {
4120
- re(m, c, h), be(c);
4135
+ function Ie(c, d) {
4136
+ ee(m, c, d), be(c);
4121
4137
  }
4122
- function je(c, h) {
4123
- const g = (...y) => F(() => h(...y));
4124
- g._driver = !0, De(c, g);
4138
+ function Ae(c, d) {
4139
+ const g = (...y) => k(() => d(...y));
4140
+ g._driver = !0, Ie(c, g);
4125
4141
  }
4126
- function tt(c, h) {
4142
+ function it(c, d) {
4127
4143
  const g = (c || "").split(".");
4128
4144
  c = g.shift();
4129
4145
  const y = g.join(".");
4130
- if (R(m, c)) {
4146
+ if (R(m, c) || F(m, c, Oe), m[c] !== Oe) {
4131
4147
  let C = m[c];
4132
- return C && C._driver ? C = C(y) : g.length && (C = M(C, g)), C == null || C === "" ? h : C;
4148
+ return C && C._driver ? C = C(y) : g.length && (C = M(C, g)), C == null || C === "" ? d : C;
4133
4149
  } else
4134
- return h;
4150
+ return d;
4135
4151
  }
4136
- function Xt(c) {
4152
+ function Yt(c) {
4137
4153
  l.push(c);
4138
4154
  }
4139
- function Qt(c) {
4155
+ function xt(c) {
4140
4156
  delete m[c], be(c);
4141
4157
  }
4142
- function Zt(c, h) {
4143
- a.push({ name: c, callback: h });
4158
+ function er(c, d) {
4159
+ a.push({ name: c, callback: d });
4144
4160
  }
4145
- function Ie(c) {
4146
- b(this, {
4147
- id: Ii++,
4148
- create: se,
4161
+ function Ve(c) {
4162
+ _(this, {
4163
+ id: Pi++,
4164
+ create: ie,
4149
4165
  vm: c,
4150
- manager: gi(t.manager),
4166
+ manager: vi(t.manager),
4151
4167
  parsers: r,
4152
4168
  providers: u,
4153
4169
  modelFields: s,
4154
- formulas: _,
4170
+ formulas: v,
4155
4171
  isMobile: w,
4156
4172
  rules: c.$options.propsData.rule,
4157
- name: c.$options.propsData.name || Se(),
4173
+ name: c.$options.propsData.name || De(),
4158
4174
  inFor: c.$options.propsData.inFor,
4159
4175
  prop: {
4160
4176
  components: e,
@@ -4162,76 +4178,77 @@ function Gt(t) {
4162
4178
  },
4163
4179
  drivers: n,
4164
4180
  renderDriver: null,
4181
+ get: null,
4165
4182
  refreshData: be,
4166
4183
  loadData: m,
4167
4184
  CreateNode: $,
4168
- bus: new _i(),
4185
+ bus: new Oi(),
4169
4186
  unwatch: [],
4170
- options: cr({}),
4187
+ options: pr({}),
4171
4188
  extendApiFn: l,
4172
4189
  fetchCache: /* @__PURE__ */ new WeakMap(),
4173
- tmpData: te({})
4174
- }), a.forEach((h) => {
4175
- this.bus.$on(h.name, h.callback);
4190
+ tmpData: x({})
4191
+ }), a.forEach((d) => {
4192
+ this.bus.$on(d.name, d.callback);
4176
4193
  }), H(() => {
4177
- P(this.options, () => {
4194
+ B(this.options, () => {
4178
4195
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4179
4196
  }, { deep: !0 });
4180
- }), b(c.$options.components, e), b(c.$options.directives, i), this.$handle = new J(this), this.name && (this.inFor ? (T[this.name] || (T[this.name] = []), T[this.name].push(this)) : T[this.name] = this);
4197
+ }), _(c.$options.components, e), _(c.$options.directives, i), this.$handle = new W(this), this.name && (this.inFor ? (N[this.name] || (N[this.name] = []), N[this.name].push(this)) : N[this.name] = this);
4181
4198
  }
4182
- Ie.isMobile = w, b(Ie.prototype, {
4199
+ Ve.isMobile = w, _(Ve.prototype, {
4183
4200
  init() {
4184
- this.isSub() && this.unwatch.push(P(() => this.vm.parent.fc.options.value, () => {
4201
+ this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4185
4202
  this.initOptions(), this.$handle.api.refresh();
4186
4203
  }, { 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.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4187
4204
  },
4188
- targetFormDriver(c, ...h) {
4205
+ targetFormDriver(c, ...d) {
4189
4206
  if (this.renderDriver && this.renderDriver[c])
4190
- return F(() => this.renderDriver[c](...h));
4207
+ return k(() => this.renderDriver[c](...d));
4191
4208
  },
4192
- t(c, h, g) {
4209
+ t(c, d, g) {
4193
4210
  let y = g ? g("$t." + c) : this.globalLanguageDriver(c);
4194
- return y == null && this.vm.$i18n ? this.vm.$i18n.t(c, h) : (y == null && (y = ""), y && h && Object.keys(h).forEach((C) => {
4195
- const O = new RegExp(`{${C}}`, "g");
4196
- y = y.replace(O, h[C]);
4211
+ return y == null && this.vm.$i18n ? this.vm.$i18n.t(c, d) : (y == null && (y = ""), y && d && Object.keys(d).forEach((C) => {
4212
+ const S = new RegExp(`{${C}}`, "g");
4213
+ y = y.replace(S, d[C]);
4197
4214
  }), y);
4198
4215
  },
4199
4216
  globalDataDriver(c) {
4200
- let h = c.split(".");
4201
- const g = h.shift(), y = this.options.value.globalData && this.options.value.globalData[g];
4217
+ let d = c.split(".");
4218
+ const g = d.shift(), y = this.options.value.globalData && this.options.value.globalData[g];
4202
4219
  if (y) {
4203
4220
  if (y.type === "static")
4204
- return M(y.data, h);
4221
+ return M(y.data, d);
4205
4222
  {
4206
4223
  let C;
4207
- const O = this.fetchCache.get(y);
4208
- if (O) {
4209
- if (O.status && (C = M(O.data, h)), !O.loading)
4224
+ const S = this.fetchCache.get(y);
4225
+ if (S) {
4226
+ if (S.status && (C = M(S.data, d)), !S.loading)
4210
4227
  return C;
4211
- O.loading = !1, this.fetchCache.set(y, O);
4228
+ S.loading = !1, this.fetchCache.set(y, S);
4212
4229
  } else
4213
4230
  this.fetchCache.set(y, { status: !1 });
4214
- const W = ue(() => {
4215
- x();
4216
- const L = this.fetchCache.get(y);
4217
- this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(y) !== -1 ? (L && (L.loading = !0, this.fetchCache.set(y, L)), this.bus.$emit("$loadData.$globalData." + g)) : this.fetchCache.delete(y);
4218
- }, y.wait || 600), Y = (L) => {
4219
- this.fetchCache.set(y, { status: !0, data: L }), this.bus.$emit("$loadData.$globalData." + g);
4220
- }, fe = (L, ee) => {
4221
- if (ee && y.watch === !1)
4222
- return x();
4223
- if (ee) {
4224
- W();
4231
+ const I = le(() => {
4232
+ ue();
4233
+ const T = this.fetchCache.get(y);
4234
+ this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(y) !== -1 ? (T && (T.loading = !0, this.fetchCache.set(y, T)), this.bus.$emit("$loadData.$globalData." + g)) : this.fetchCache.delete(y);
4235
+ }, y.wait || 600), de = (T) => {
4236
+ this.fetchCache.set(y, { status: !0, data: T }), this.bus.$emit("$loadData.$globalData." + g);
4237
+ }, pe = (T, ne) => {
4238
+ if (ne && y.watch === !1)
4239
+ return ue();
4240
+ if (ne) {
4241
+ I();
4225
4242
  return;
4226
4243
  }
4227
- const Ae = this.$handle.loadFetchVar(Ge(y), L);
4228
- this.$handle.api.fetch(Ae).then((ce) => {
4229
- Y(ce);
4230
- }).catch((ce) => {
4231
- Y(null);
4244
+ const se = this.$handle.loadFetchVar(Je(y), T);
4245
+ this.$handle.api.fetch(se).then((Ce) => {
4246
+ de(Ce);
4247
+ }).catch((Ce) => {
4248
+ de(null);
4232
4249
  });
4233
- }, x = this.watchLoadData(fe);
4234
- return this.unwatch.push(x), C;
4250
+ }, ue = this.watchLoadData(pe);
4251
+ return this.unwatch.push(ue), C;
4235
4252
  }
4236
4253
  }
4237
4254
  },
@@ -4240,32 +4257,26 @@ function Gt(t) {
4240
4257
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : this.vm.$i18n && this.vm.$i18n.locale ? this.vm.$i18n.locale : "zh-cn";
4241
4258
  },
4242
4259
  globalLanguageDriver(c) {
4243
- let h = this.vm.top.$props.locale, g;
4244
- if (h && typeof h == "object" && (g = M(h, c)), g == null) {
4260
+ let d = this.vm.top.$props.locale, g;
4261
+ if (d && typeof d == "object" && (g = M(d, c)), g == null) {
4245
4262
  const y = this.options.value.language || {}, C = this.getLocale();
4246
4263
  g = M(y[C], c);
4247
4264
  }
4248
4265
  return g;
4249
4266
  },
4250
4267
  globalVarDriver(c) {
4251
- const g = c.split(".").shift(), y = this.options.value.globalVariable && this.options.value.globalVariable[g];
4268
+ let d = c.split(".");
4269
+ const g = d.shift(), y = this.options.value.globalVariable && this.options.value.globalVariable[g];
4252
4270
  if (y) {
4253
- const C = d.Function(y) ? y : y.handle;
4254
- if (C) {
4255
- let O;
4256
- const W = this.watchLoadData((Y, fe) => {
4257
- if (fe)
4258
- return W(), this.bus.$emit("$loadData.$var." + g), O;
4259
- O = F(() => C(Y, this.$handle.api));
4260
- });
4261
- return this.unwatch.push(W), O;
4262
- }
4271
+ const C = h.Function(y) ? y : y.handle;
4272
+ if (C)
4273
+ return M(k(() => C(this.get || ((...S) => this.getLoadData(...S)), this.$handle.api)), d);
4263
4274
  }
4264
4275
  },
4265
- setData(c, h, g) {
4266
- g ? De(c, h) : (re(this.vm.top.fc.tmpData, c, h), this.bus.$emit("$loadData." + c));
4276
+ setData(c, d, g) {
4277
+ g ? Ie(c, d) : (ee(this.vm.top.fc.tmpData, c, d), this.bus.$emit("$loadData." + c));
4267
4278
  },
4268
- getLoadData(c, h) {
4279
+ getLoadData(c, d) {
4269
4280
  let g = null;
4270
4281
  if (c != null) {
4271
4282
  let y = c.split(".");
@@ -4285,61 +4296,61 @@ function Gt(t) {
4285
4296
  else if (C === "$t")
4286
4297
  g = this.globalLanguageDriver(y.join(".")), y = [];
4287
4298
  else {
4288
- const O = this.vm.top.fc.tmpData;
4289
- g = R(O, C) ? M(O, c) : tt(c), y = [];
4299
+ const S = this.vm.top.fc.tmpData;
4300
+ R(S, C) || F(S, C, Oe), g = S[C] !== Oe ? M(S, c) : it(c), y = [];
4290
4301
  }
4291
4302
  g && y.length && (g = M(g, y));
4292
4303
  }
4293
- return g == null || g === "" ? h : g;
4294
- },
4295
- watchLoadData(c) {
4296
- let h = {};
4297
- const g = (O) => {
4298
- F(() => {
4299
- c(y, O);
4300
- });
4301
- }, y = (O, W) => {
4302
- if (h[O])
4303
- return h[O].val;
4304
- const Y = de(() => this.getLoadData(O, W)), fe = O.split("."), x = fe.shift(), L = fe.shift() || "", ee = ue(() => {
4305
- const ce = this.getLoadData(O, W);
4306
- if (h[O])
4307
- JSON.stringify(ce) !== JSON.stringify(h[O].val) && (h[O].val = ce, g(!0));
4304
+ return g == null || g === "" ? d : g;
4305
+ },
4306
+ watchLoadData(c, d) {
4307
+ let g = {};
4308
+ const y = (I) => {
4309
+ this.get || (this.get = C), k(() => {
4310
+ c(C, I);
4311
+ }), this.get === C && (this.get = void 0);
4312
+ }, C = (I, de) => {
4313
+ if (g[I])
4314
+ return g[I].val;
4315
+ const pe = ce(() => this.getLoadData(I, de)), ue = I.split("."), T = ue.shift(), ne = ue.shift() || "", se = le(() => {
4316
+ const Pe = this.getLoadData(I, de);
4317
+ if (g[I])
4318
+ JSON.stringify(Pe) !== JSON.stringify(g[I].val) && (g[I].val = Pe, y(!0));
4308
4319
  else return;
4309
- }, 0), Ae = P(Y, (ce) => {
4310
- ee();
4320
+ }, d || 0), Ce = B(pe, (Pe) => {
4321
+ se();
4311
4322
  });
4312
- return this.bus.$on("$loadData." + x, ee), L && this.bus.$on("$loadData." + x + "." + L, ee), h[O] = {
4323
+ return this.bus.$on("$loadData." + T, se), ne && this.bus.$on("$loadData." + T + "." + ne, se), g[I] = {
4313
4324
  fn: () => {
4314
- this.bus.$off("$loadData." + x, ee), L && this.bus.$off("$loadData." + x + "." + L, ee), Ae();
4325
+ this.bus.$off("$loadData." + T, se), ne && this.bus.$off("$loadData." + T + "." + ne, se), Ce();
4315
4326
  },
4316
- val: Y.value
4317
- }, Y.value;
4327
+ val: pe.value
4328
+ }, pe.value;
4318
4329
  };
4319
- g(!1);
4320
- const C = () => {
4321
- Object.keys(h).forEach((O) => h[O].fn()), h = {};
4330
+ y(!1);
4331
+ const S = () => {
4332
+ Object.keys(g).forEach((I) => g[I].fn()), g = {};
4322
4333
  };
4323
- return this.unwatch.push(C), C;
4334
+ return this.unwatch.push(S), S;
4324
4335
  },
4325
4336
  isSub() {
4326
4337
  return this.vm.parent && this.vm.extendOption;
4327
4338
  },
4328
4339
  initOptions() {
4329
4340
  this.options.value = {};
4330
- let c = v({
4341
+ let c = b({
4331
4342
  formData: {},
4332
4343
  submitBtn: {},
4333
4344
  resetBtn: {},
4334
4345
  globalEvent: {},
4335
4346
  globalData: {}
4336
- }, G(p));
4347
+ }, J(p));
4337
4348
  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);
4338
4349
  },
4339
- mergeOptions(c, h, g) {
4340
- return h = G(h), g && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((y) => {
4341
- delete h[y];
4342
- }), h.global && (c.global = Ur(c.global, h.global), delete h.global), this.$handle.$manager.mergeOptions([h], c), c;
4350
+ mergeOptions(c, d, g) {
4351
+ return d = b({}, d || {}), g && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((y) => {
4352
+ delete d[y];
4353
+ }), d.global && (c.global = Hr(c.global, d.global), delete d.global), this.$handle.$manager.mergeOptions([d], c), c;
4343
4354
  },
4344
4355
  updateOptions(c) {
4345
4356
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4356,10 +4367,10 @@ function Gt(t) {
4356
4367
  unmount() {
4357
4368
  if (this.name)
4358
4369
  if (this.inFor) {
4359
- const c = T[this.name].indexOf(this);
4360
- T[this.name].splice(c, 1);
4370
+ const c = N[this.name].indexOf(this);
4371
+ N[this.name].splice(c, 1);
4361
4372
  } else
4362
- delete T[this.name];
4373
+ delete N[this.name];
4363
4374
  a.forEach((c) => {
4364
4375
  this.bus.$off(c.name, c.callback);
4365
4376
  }), this.tmpData = {}, this.unwatch.forEach((c) => c()), this.unwatch = [], this.$handle.reloadRule([]);
@@ -4368,91 +4379,91 @@ function Gt(t) {
4368
4379
  this.$handle.bindNextTick(() => this.bus.$emit("next-tick", this.$handle.api));
4369
4380
  }
4370
4381
  });
4371
- function rt(c) {
4372
- b(c, {
4382
+ function nt(c) {
4383
+ _(c, {
4373
4384
  version: t.version,
4374
4385
  ui: t.ui,
4375
4386
  isMobile: w,
4376
- extendApi: Xt,
4377
- getData: tt,
4378
- setDataDriver: je,
4379
- setData: De,
4380
- removeData: Qt,
4387
+ extendApi: Yt,
4388
+ getData: it,
4389
+ setDataDriver: Ae,
4390
+ setData: Ie,
4391
+ removeData: xt,
4381
4392
  refreshData: be,
4382
4393
  maker: f,
4383
- component: S,
4384
- directive: B,
4385
- setModelField: Wt,
4386
- setFormula: zt,
4387
- setDriver: Kt,
4388
- register: Ee,
4389
- $vnode: ne,
4390
- parser: k,
4394
+ component: E,
4395
+ directive: L,
4396
+ setModelField: Xt,
4397
+ setFormula: Qt,
4398
+ setDriver: Zt,
4399
+ register: je,
4400
+ $vnode: re,
4401
+ parser: O,
4391
4402
  use: ve,
4392
- factory: Jt,
4403
+ factory: Kt,
4393
4404
  componentAlias: $e,
4394
- copyRule: jt,
4395
- copyRules: It,
4405
+ copyRule: Vt,
4406
+ copyRules: Pt,
4396
4407
  mergeRule: X,
4397
- fetch: Lt,
4398
- $form: V,
4408
+ fetch: Mt,
4409
+ $form: P,
4399
4410
  parseFn: Q,
4400
- parseJson: Dt,
4401
- toJson: Ye,
4402
- useApp: A,
4411
+ parseJson: At,
4412
+ toJson: et,
4413
+ useApp: V,
4403
4414
  getApi: Z,
4404
- on: Zt
4415
+ on: er
4405
4416
  });
4406
4417
  }
4407
- function Yt(c) {
4408
- b(c, {
4409
- create: se,
4410
- install(h, g) {
4411
- if (p = v(v({}, p), g || {}), h._installedFormCreate === !0) return;
4412
- h._installedFormCreate = !0;
4413
- const y = function(O, W = {}) {
4414
- return se(O, W, this);
4418
+ function tr(c) {
4419
+ _(c, {
4420
+ create: ie,
4421
+ install(d, g) {
4422
+ if (p = b(b({}, p), g || {}), d._installedFormCreate === !0) return;
4423
+ d._installedFormCreate = !0;
4424
+ const y = function(S, I = {}) {
4425
+ return ie(S, I, this);
4415
4426
  };
4416
- rt(y), h.prototype.$formCreate = y;
4417
- const C = V();
4418
- h.component(C.name, C), h.component("FcFragment", ne()), o.forEach((O) => {
4419
- F(() => O(c, h));
4427
+ nt(y), d.prototype.$formCreate = y;
4428
+ const C = P();
4429
+ d.component(C.name, C), d.component("FcFragment", re()), o.forEach((S) => {
4430
+ k(() => S(c, d));
4420
4431
  });
4421
4432
  }
4422
4433
  });
4423
4434
  }
4424
- if (rt(D), Yt(D), je("$cookie", Fi), je("$localStorage", Ri), $.use({ fragment: "fcFragment" }), t.install && se.use(t), k(wi), t.inherit) {
4435
+ if (nt(j), tr(j), Ae("$cookie", Ei), Ae("$localStorage", Di), $.use({ fragment: "fcFragment" }), t.install && ie.use(t), O(Fi), t.inherit) {
4425
4436
  const c = t.inherit;
4426
- c.components && b(e, c.components), c.parsers && b(r, c.parsers), c.directives && b(i, c.directives), c.modelFields && b(s, c.modelFields), c.providers && b(u, c.providers), c.useApps && b(o, c.useApps), c.maker && b(f, c.maker), c.loadData && b(m, c.loadData), c.formulas && b(_, c.formulas);
4437
+ c.components && _(e, c.components), c.parsers && _(r, c.parsers), c.directives && _(i, c.directives), c.modelFields && _(s, c.modelFields), c.providers && _(u, c.providers), c.useApps && _(o, c.useApps), c.maker && _(f, c.maker), c.loadData && _(m, c.loadData), c.formulas && _(v, c.formulas);
4427
4438
  }
4428
- const _e = V();
4429
- return Ce(_e, D), Object.defineProperties(_e, {
4439
+ const _e = P();
4440
+ return we(_e, j), Object.defineProperties(_e, {
4430
4441
  fetch: {
4431
4442
  get() {
4432
- return D.fetch;
4443
+ return j.fetch;
4433
4444
  },
4434
4445
  set(c) {
4435
- D.fetch = c;
4446
+ j.fetch = c;
4436
4447
  }
4437
4448
  }
4438
- }), _e.util = D, _e;
4449
+ }), _e.util = j, _e;
4439
4450
  }
4440
- function Te(t) {
4441
- if (d.Date(t))
4451
+ function Me(t) {
4452
+ if (h.Date(t))
4442
4453
  return t;
4443
4454
  {
4444
4455
  let e = new Date(t);
4445
4456
  return e.toString() === "Invalid Date" ? t : e;
4446
4457
  }
4447
4458
  }
4448
- const gt = "datePicker", Ai = {
4449
- name: gt,
4459
+ const vt = "datePicker", Bi = {
4460
+ name: vt,
4450
4461
  maker: function() {
4451
- return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = I(gt, { type: e.toLowerCase() }), t), {});
4462
+ return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = A(vt, { type: e.toLowerCase() }), t), {});
4452
4463
  }(),
4453
4464
  mergeProp(t) {
4454
4465
  let e = t.prop.props;
4455
- e.startDate && (e.startDate = e.startDate && Te(e.startDate));
4466
+ e.startDate && (e.startDate = e.startDate && Me(e.startDate));
4456
4467
  },
4457
4468
  isRange(t) {
4458
4469
  return t.type.includes("range") || t.multiple;
@@ -4471,60 +4482,60 @@ const gt = "datePicker", Ai = {
4471
4482
  return this.isRange(e.el) ? r : r[0];
4472
4483
  } else {
4473
4484
  let r = Array.isArray(t), i = e.prop.props, s, n = i.type || "date";
4474
- return ["daterange", "datetimerange"].indexOf(n) !== -1 ? r ? s = t.map((o) => o ? Te(o) : "") : s = ["", ""] : n === "date" && i.multiple === !0 ? s = toString(t) : (s = r ? t[0] || "" : t, s = s ? Te(s) : ""), s;
4485
+ return ["daterange", "datetimerange"].indexOf(n) !== -1 ? r ? s = t.map((o) => o ? Me(o) : "") : s = ["", ""] : n === "date" && i.multiple === !0 ? s = toString(t) : (s = r ? t[0] || "" : t, s = s ? Me(s) : ""), s;
4475
4486
  }
4476
4487
  },
4477
4488
  mounted(t) {
4478
4489
  t.rule.value = this.toValue(t.$handle.getFormData(t), t);
4479
4490
  }
4480
- }, Ne = "hidden", Vi = {
4481
- name: Ne,
4491
+ }, Ue = "hidden", Li = {
4492
+ name: Ue,
4482
4493
  maker: {
4483
- [Ne]: (t, e) => I(Ne)("", t, e)
4494
+ [Ue]: (t, e) => A(Ue)("", t, e)
4484
4495
  },
4485
4496
  render() {
4486
4497
  return [];
4487
4498
  }
4488
- }, Me = "input", Pi = {
4489
- name: Me,
4499
+ }, qe = "input", Ti = {
4500
+ name: qe,
4490
4501
  maker: function() {
4491
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = I(Me, { type: r }), e), {});
4492
- return t.idate = I(Me, { type: "date" }), t;
4502
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = A(qe, { type: r }), e), {});
4503
+ return t.idate = A(qe, { type: "date" }), t;
4493
4504
  }(),
4494
4505
  mergeProp(t) {
4495
4506
  let { props: e } = t.prop;
4496
4507
  e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4497
4508
  }
4498
- }, yt = "slider", Bi = {
4499
- name: yt,
4509
+ }, bt = "slider", Ni = {
4510
+ name: bt,
4500
4511
  maker: {
4501
- sliderRange: I(yt, { range: !0 })
4512
+ sliderRange: A(bt, { range: !0 })
4502
4513
  },
4503
4514
  toFormValue(t, e) {
4504
4515
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4505
4516
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4506
4517
  }
4507
- }, Li = {
4518
+ }, Mi = {
4508
4519
  name: "switch",
4509
4520
  mergeProp(t) {
4510
4521
  const e = t.prop.props.slot || {}, r = t.prop.scopedSlots || {};
4511
4522
  e.open && (r.open = () => e.open), e.close && (r.close = () => e.close), t.prop.scopedSlots = r;
4512
4523
  }
4513
- }, Ti = {
4524
+ }, Ui = {
4514
4525
  name: "FcRow",
4515
4526
  render(t, e) {
4516
4527
  return e.vNode.col({ props: { span: 24 } }, [
4517
4528
  e.vNode.row(e.prop, t)
4518
4529
  ]);
4519
4530
  }
4520
- }, Ni = [
4521
- Ai,
4522
- Vi,
4523
- Pi,
4531
+ }, qi = [
4524
4532
  Bi,
4525
4533
  Li,
4526
- Ti
4527
- ], Mi = {
4534
+ Ti,
4535
+ Ni,
4536
+ Mi,
4537
+ Ui
4538
+ ], Gi = {
4528
4539
  button: "iButton",
4529
4540
  icon: "Icon",
4530
4541
  slider: "Slider",
@@ -4551,21 +4562,21 @@ const gt = "datePicker", Ai = {
4551
4562
  array: "fcGroup",
4552
4563
  subForm: "fcSubForm",
4553
4564
  object: "fcSubForm"
4554
- }, Fe = {
4565
+ }, Se = {
4555
4566
  resetBtnType: "default",
4556
4567
  resetBtnIcon: "md-refresh",
4557
4568
  infoIcon: "ios-information-circle-outline"
4558
4569
  };
4559
- function Ui() {
4570
+ function Hi() {
4560
4571
  return {
4561
4572
  type: "poptip",
4562
4573
  trigger: "hover",
4563
4574
  placement: "top-start",
4564
4575
  wordWrap: !0,
4565
- icon: Fe.infoIcon
4576
+ icon: Se.infoIcon
4566
4577
  };
4567
4578
  }
4568
- function qi() {
4579
+ function Ji() {
4569
4580
  return {
4570
4581
  form: {
4571
4582
  inline: !1,
@@ -4587,9 +4598,9 @@ function qi() {
4587
4598
  click: void 0
4588
4599
  },
4589
4600
  resetBtn: {
4590
- type: Fe.resetBtnType,
4601
+ type: Se.resetBtnType,
4591
4602
  disabled: !1,
4592
- icon: Fe.resetBtnIcon,
4603
+ icon: Se.resetBtnIcon,
4593
4604
  innerText: "重置",
4594
4605
  loading: !1,
4595
4606
  show: !1,
@@ -4597,20 +4608,20 @@ function qi() {
4597
4608
  }
4598
4609
  };
4599
4610
  }
4600
- function $t(t, e) {
4601
- R(t, e) && d.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4611
+ function _t(t, e) {
4612
+ R(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4602
4613
  }
4603
4614
  function z(t) {
4604
4615
  return t === !1;
4605
4616
  }
4606
- function Gi(t, e) {
4607
- R(t, e) && !d.Object(t[e]) && (t[e] = { show: !!t[e] });
4617
+ function Wi(t, e) {
4618
+ R(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4608
4619
  }
4609
- function Ue(t) {
4610
- const e = v({}, t);
4620
+ function Ge(t) {
4621
+ const e = b({}, t);
4611
4622
  return delete e.children, e;
4612
4623
  }
4613
- const Hi = {
4624
+ const zi = {
4614
4625
  validate() {
4615
4626
  const t = this.form();
4616
4627
  return t ? t.validate() : new Promise((e) => e());
@@ -4629,15 +4640,15 @@ const Hi = {
4629
4640
  },
4630
4641
  tidyOptions(t) {
4631
4642
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4632
- Gi(t, e);
4643
+ Wi(t, e);
4633
4644
  }), t;
4634
4645
  },
4635
4646
  tidyRule({ prop: t }) {
4636
- return $t(t, "title"), $t(t, "info"), t;
4647
+ return _t(t, "title"), _t(t, "info"), t;
4637
4648
  },
4638
4649
  mergeProp(t) {
4639
4650
  const e = {
4640
- info: Ui(),
4651
+ info: Hi(),
4641
4652
  title: {},
4642
4653
  col: { span: 24 },
4643
4654
  wrap: {}
@@ -4650,12 +4661,12 @@ const Hi = {
4650
4661
  !t.size && this.options.form.size && (t.size = this.options.form.size);
4651
4662
  },
4652
4663
  getDefaultOptions() {
4653
- return qi();
4664
+ return Ji();
4654
4665
  },
4655
4666
  update() {
4656
4667
  const t = this.options.form;
4657
4668
  this.rule = {
4658
- props: v({}, t),
4669
+ props: b({}, t),
4659
4670
  nativeOn: {
4660
4671
  submit: (e) => {
4661
4672
  e.preventDefault();
@@ -4668,7 +4679,7 @@ const Hi = {
4668
4679
  },
4669
4680
  beforeRender() {
4670
4681
  const { key: t, ref: e, $handle: r } = this;
4671
- b(this.rule, { key: t, ref: e }), b(this.rule.props, {
4682
+ _(this.rule, { key: t, ref: e }), _(this.rule.props, {
4672
4683
  model: r.formData
4673
4684
  });
4674
4685
  },
@@ -4679,9 +4690,9 @@ const Hi = {
4679
4690
  const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r) && r.wrap.title !== !1, o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: l } = this.rule.props;
4680
4691
  delete r.wrap.title;
4681
4692
  const u = z(r.wrap.show) ? e : this.$r(K([r.wrap, {
4682
- props: N(v({
4693
+ props: U(b({
4683
4694
  labelWidth: o
4684
- }, Ue(r.wrap || {})), {
4695
+ }, Ge(r.wrap || {})), {
4685
4696
  prop: t.id,
4686
4697
  rules: t.injectValidate()
4687
4698
  }),
@@ -4689,7 +4700,7 @@ const Hi = {
4689
4700
  key: `${i}fi`,
4690
4701
  ref: t.wrapRef,
4691
4702
  type: "formItem"
4692
- }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
4703
+ }]), b({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
4693
4704
  return a === !0 || z(l) || z(s.show) ? u : this.makeCol(r, i, [u]);
4694
4705
  },
4695
4706
  isTitle(t) {
@@ -4698,7 +4709,7 @@ const Hi = {
4698
4709
  return !(!e.title && !e.native || z(e.show));
4699
4710
  },
4700
4711
  makeInfo(t, e, r) {
4701
- const i = v({}, t.title), s = v({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
4712
+ const i = b({}, t.title), s = b({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
4702
4713
  title: r.refRule.__$title.value,
4703
4714
  rule: r.rule,
4704
4715
  options: this.options
@@ -4706,7 +4717,7 @@ const Hi = {
4706
4717
  if (!z(s.show) && (s.info || s.native) && !z(s.icon)) {
4707
4718
  const u = {
4708
4719
  type: s.type || "poptip",
4709
- props: Ue(s),
4720
+ props: Ge(s),
4710
4721
  key: `${e}pop`,
4711
4722
  slot: "label"
4712
4723
  };
@@ -4715,14 +4726,14 @@ const Hi = {
4715
4726
  s.info && !R(u.props, f) && (u.props[f] = r.refRule.__$info.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(K([s, u]), [
4716
4727
  this.$r({
4717
4728
  type: "icon",
4718
- props: { type: s.icon === !0 ? Fe.infoIcon : s.icon, size: 16 },
4729
+ props: { type: s.icon === !0 ? Se.infoIcon : s.icon, size: 16 },
4719
4730
  style: "margin-top: -1px",
4720
4731
  key: `${e}i`
4721
4732
  })
4722
4733
  ]));
4723
4734
  }
4724
4735
  const l = K([i, {
4725
- props: Ue(i),
4736
+ props: Ge(i),
4726
4737
  key: `${e}tit`,
4727
4738
  class: "fc-form-title",
4728
4739
  slot: i.slot || "label",
@@ -4765,7 +4776,7 @@ const Hi = {
4765
4776
  }, [e]);
4766
4777
  },
4767
4778
  makeResetBtn() {
4768
- const t = v({}, this.options.resetBtn), e = t.innerText;
4779
+ const t = b({}, this.options.resetBtn), e = t.innerText;
4769
4780
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
4770
4781
  type: "button",
4771
4782
  props: t,
@@ -4781,7 +4792,7 @@ const Hi = {
4781
4792
  }, [e]);
4782
4793
  },
4783
4794
  makeSubmitBtn() {
4784
- const t = v({}, this.options.submitBtn), e = t.innerText;
4795
+ const t = b({}, this.options.submitBtn), e = t.innerText;
4785
4796
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
4786
4797
  type: "button",
4787
4798
  props: t,
@@ -4797,34 +4808,34 @@ const Hi = {
4797
4808
  key: `${this.key}b1`
4798
4809
  }, [e]);
4799
4810
  }
4800
- }, ie = {}, Ji = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
4801
- function Wi(t) {
4802
- Ji.forEach((e) => {
4803
- t[e] = I(e);
4811
+ }, te = {}, Ki = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
4812
+ function Xi(t) {
4813
+ Ki.forEach((e) => {
4814
+ t[e] = A(e);
4804
4815
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
4805
4816
  }
4806
- function zi(t) {
4817
+ function Qi(t) {
4807
4818
  const e = "upload", r = {
4808
4819
  image: ["image", 0],
4809
4820
  file: ["file", 0],
4810
4821
  uploadFileOne: ["file", 1],
4811
4822
  uploadImageOne: ["image", 1]
4812
4823
  };
4813
- Object.keys(r).reduce((i, s) => (i[s] = I(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
4824
+ Object.keys(r).reduce((i, s) => (i[s] = A(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
4814
4825
  }
4815
- function Ki(t) {
4826
+ function Zi(t) {
4816
4827
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
4817
- Object.keys(r).reduce((i, s) => (i[s] = I(e, { type: r[s] }), i), t);
4828
+ Object.keys(r).reduce((i, s) => (i[s] = A(e, { type: r[s] }), i), t);
4818
4829
  }
4819
- function Xi(t) {
4830
+ function Yi(t) {
4820
4831
  const e = "timePicker";
4821
- t.time = I(e, { type: "time" }), t.timeRange = I(e, { type: "timerange" });
4832
+ t.time = A(e, { type: "time" }), t.timeRange = A(e, { type: "timerange" });
4822
4833
  }
4823
- function Qi(t) {
4834
+ function xi(t) {
4824
4835
  const e = "select";
4825
- t.selectMultiple = I(e, { multiple: !0 }), t.selectOne = I(e, { multiple: !1 });
4836
+ t.selectMultiple = A(e, { multiple: !0 }), t.selectOne = A(e, { multiple: !1 });
4826
4837
  }
4827
- function Zi(t) {
4838
+ function en(t) {
4828
4839
  const e = "frame", r = {
4829
4840
  frameInputs: ["input", 0],
4830
4841
  frameFiles: ["file", 0],
@@ -4833,18 +4844,18 @@ function Zi(t) {
4833
4844
  frameFileOne: ["file", 1],
4834
4845
  frameImageOne: ["image", 1]
4835
4846
  };
4836
- Object.keys(r).reduce((i, s) => (i[s] = I(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;
4847
+ Object.keys(r).reduce((i, s) => (i[s] = A(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;
4837
4848
  }
4838
- Wi(ie);
4839
- zi(ie);
4840
- Ki(ie);
4841
- Qi(ie);
4842
- Zi(ie);
4843
- Xi(ie);
4844
- function vt(t, e) {
4845
- return d.Boolean(t) ? t = { show: t } : !d.Undef(t) && !d.Object(t) && (t = { show: e }), t;
4849
+ Xi(te);
4850
+ Qi(te);
4851
+ Zi(te);
4852
+ xi(te);
4853
+ en(te);
4854
+ Yi(te);
4855
+ function Ct(t, e) {
4856
+ return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
4846
4857
  }
4847
- function Yi(t, e) {
4858
+ function tn(t, e) {
4848
4859
  return {
4849
4860
  formEl() {
4850
4861
  return e.$manager.form();
@@ -4871,7 +4882,7 @@ function Yi(t, e) {
4871
4882
  const o = e.getFieldCtx(r);
4872
4883
  if (!o) return;
4873
4884
  const a = e.subForm[o.id], l = [e.$manager.validateField(o.id)];
4874
- q(a).forEach((u) => {
4885
+ G(a).forEach((u) => {
4875
4886
  l.push(u.validate());
4876
4887
  }), Promise.all(l).then(() => {
4877
4888
  s(null), i && i(null);
@@ -4920,36 +4931,36 @@ function Yi(t, e) {
4920
4931
  }
4921
4932
  },
4922
4933
  submitBtnProps: (r = {}) => {
4923
- let i = vt(e.options.submitBtn, !0);
4924
- b(i, r), e.options.submitBtn = i, t.refreshOptions();
4934
+ let i = Ct(e.options.submitBtn, !0);
4935
+ _(i, r), e.options.submitBtn = i, t.refreshOptions();
4925
4936
  },
4926
4937
  resetBtnProps: (r = {}) => {
4927
- let i = vt(e.options.resetBtn, !1);
4928
- b(i, r), e.options.resetBtn = i, t.refreshOptions();
4938
+ let i = Ct(e.options.resetBtn, !1);
4939
+ _(i, r), e.options.resetBtn = i, t.refreshOptions();
4929
4940
  },
4930
4941
  submit(r, i) {
4931
4942
  return new Promise((s, n) => {
4932
4943
  t.validate().then(() => {
4933
4944
  let o = t.formData();
4934
- d.Function(r) && F(() => r(o, t)), d.Function(e.options.onSubmit) && F(() => e.options.onSubmit(o, t)), e.vm.emit("submit", o, t), s(o);
4945
+ h.Function(r) && k(() => r(o, t)), h.Function(e.options.onSubmit) && k(() => e.options.onSubmit(o, t)), e.vm.emit("submit", o, t), s(o);
4935
4946
  }).catch((...o) => {
4936
- d.Function(i) && F(() => i(t, ...o)), n(...o);
4947
+ h.Function(i) && k(() => i(t, ...o)), n(...o);
4937
4948
  });
4938
4949
  });
4939
4950
  }
4940
4951
  };
4941
4952
  }
4942
- const Ht = {
4953
+ const zt = {
4943
4954
  name: "required",
4944
4955
  load(t, e, r) {
4945
- const i = xi(t.getValue());
4956
+ const i = rn(t.getValue());
4946
4957
  if (i.required === !1)
4947
4958
  t.clearProp(), r.clearValidateState([e.field]);
4948
4959
  else {
4949
- const s = v({
4960
+ const s = b({
4950
4961
  required: !0,
4951
4962
  validator(n, o, a) {
4952
- d.empty(o) ? a(s.message) : a();
4963
+ h.empty(o) ? a(s.message) : a();
4953
4964
  }
4954
4965
  }, i);
4955
4966
  if (!s.message)
@@ -4963,28 +4974,28 @@ const Ht = {
4963
4974
  r.sync(e);
4964
4975
  },
4965
4976
  watch(...t) {
4966
- Ht.load(...t);
4977
+ zt.load(...t);
4967
4978
  }
4968
4979
  };
4969
- function xi(t) {
4970
- return d.Boolean(t) ? { required: t } : d.String(t) ? { message: t } : d.Undef(t) ? { required: !1 } : d.Function(t) ? { validator: t } : d.Object(t) ? t : {};
4980
+ function rn(t) {
4981
+ 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 : {};
4971
4982
  }
4972
- function en(t) {
4973
- t.componentAlias(Mi), Pr.forEach((e) => {
4983
+ function nn(t) {
4984
+ t.componentAlias(Gi), Tr.forEach((e) => {
4974
4985
  t.component(e.name, e);
4975
- }), t.register(Ht), Ni.forEach((e) => {
4986
+ }), t.register(zt), qi.forEach((e) => {
4976
4987
  t.parser(e);
4977
- }), Object.keys(ie).forEach((e) => {
4978
- t.maker[e] = ie[e];
4988
+ }), Object.keys(te).forEach((e) => {
4989
+ t.maker[e] = te[e];
4979
4990
  });
4980
4991
  }
4981
- function tn() {
4982
- return Gt({
4992
+ function sn() {
4993
+ return Wt({
4983
4994
  ui: "iview",
4984
- version: "2.7.0-alpha.0",
4985
- manager: Hi,
4986
- install: en,
4987
- extendApi: Yi,
4995
+ version: "2.7.0",
4996
+ manager: zi,
4997
+ install: nn,
4998
+ extendApi: tn,
4988
4999
  attrs: {
4989
5000
  normal: ["col", "wrap"],
4990
5001
  array: ["className"],
@@ -4992,10 +5003,10 @@ function tn() {
4992
5003
  }
4993
5004
  });
4994
5005
  }
4995
- const Ke = tn();
4996
- typeof window != "undefined" && (window.formCreate = Ke, window.Vue && Ke.install(window.Vue));
4997
- const sn = Ke.maker;
5006
+ const Qe = sn();
5007
+ typeof window != "undefined" && (window.formCreate = Qe, window.Vue && Qe.install(window.Vue));
5008
+ const ln = Qe.maker;
4998
5009
  export {
4999
- Ke as default,
5000
- sn as maker
5010
+ Qe as default,
5011
+ ln as maker
5001
5012
  };