@form-create/view-design 2.7.0-alpha.0 → 2.7.1

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/view-design v2.7.0-alpha.0
4
- * (c) 2018-2024 xaboy
3
+ * @form-create/view-design v2.7.1
4
+ * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
7
7
  * Released under the MIT License.
8
8
  */
9
9
  (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode('._fc-frame .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;transition:opacity .3s}._fc-frame .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-frame .fc-files:hover .fc-upload-cover{opacity:1}._fc-frame .ivu-upload-list{margin-top:0}._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn,._fc-frame .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:2px 2px 5px #0000001a;margin-right:4px;box-sizing:border-box}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;transition:opacity .3s}._fc-upload .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-upload .fc-files:hover .fc-upload-cover{opacity:1}._fc-upload .ivu-upload-list{margin-top:0}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-upload .fc-upload-btn,._fc-upload .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:2px 2px 5px #0000001a;margin-right:4px;box-sizing:border-box}._fc-group{display:flex;min-height:42px;justify-content:center;flex-direction:column}._fc-group-disabled ._fc-group-btn,._fc-group-disabled ._fc-group-add{cursor:not-allowed}._fc-group-handle{display:flex;flex-direction:row;position:absolute;bottom:-15px;right:30px;border-radius:15px;border:1px dashed #d9d9d9;padding:3px 8px;background-color:#fff}._fc-group-btn{cursor:pointer}._fc-group-idx{position:absolute;bottom:-15px;left:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#eee;border-radius:15px;font-weight:700}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{position:relative;display:flex;flex-direction:column;border:1px dashed #d9d9d9;padding:20px 20px 25px;margin:5px 5px 25px;border-radius:5px}._fc-group-arrow{position:relative;width:20px;height:20px}._fc-group-arrow:before{content:"";position:absolute;top:8px;left:5px;width:9px;height:9px;border-left:2px solid #999;border-top:2px solid #999}._fc-group-arrow:before{transform:rotate(45deg)}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{width:20px;height:20px;position:relative;cursor:pointer}._fc-group-plus-minus:before,._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:60%;height:2px;background-color:#409eff;transform:translate(-50%,-50%)}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{cursor:pointer;width:25px;height:25px;border:1px solid rgb(64 158 255 / 50%);border-radius:15px}._fc-group-add._fc-group-plus-minus:before,._fc-group-add._fc-group-plus-minus:after{width:50%}.form-create .form-create .ivu-form-item{margin-bottom:24px}.form-create .form-create .ivu-form-item .ivu-form-item{margin-bottom:0}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
10
- var 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 Fr = "fcRadio", kr = {
515
+ name: Fr,
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 Ft(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 kt = Ft({
911
911
  fileIcon: "md-document",
912
912
  imgUpIcon: "md-images"
913
913
  });
914
- wt.v2 = Ct({
914
+ kt.v2 = Ft({
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 k(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 && k(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 && k(t, s, {});
936
936
  else {
937
- j(t, s, n._clone());
937
+ k(t, s, n._clone());
938
938
  continue;
939
939
  }
940
940
  else
941
- o && j(t, s, {});
941
+ o && k(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
+ k(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
945
945
  }
946
946
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
947
947
  }
948
- 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) && k(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
1349
  kr,
1351
- Rr,
1352
- Vr,
1353
- _t,
1354
- wt,
1355
- Ir
1350
+ Sr,
1351
+ Dr,
1352
+ Lr,
1353
+ Ot,
1354
+ kt,
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 Fe = (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 Fe(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
+ }), y = new t(n), v = y.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 = Fe(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 = Fe(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(() => {
1474
- $.bus.$emit("$loadData.$topForm");
1475
- }, 100), Ee = ue(() => {
1476
- $.bus.$emit("$loadData.$form");
1477
- }, 100), $e = (k) => {
1478
- $.bus.$emit("change-$form." + k);
1473
+ const L = le(() => {
1474
+ y.bus.$emit("$loadData.$topForm");
1475
+ }, 100), je = le(() => {
1476
+ y.bus.$emit("$loadData.$form");
1477
+ }, 100), $e = (O) => {
1478
+ y.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(() => {
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(() => {
1480
+ return cr(() => {
1481
+ o && (v.top.bus.$on("$loadData.$form", L), v.top.bus.$on("change", $e)), y.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, y.unmount();
1484
+ }), dr(() => {
1485
+ y.updated();
1486
+ }), B(f, (O) => {
1487
+ O ? j() : Z();
1488
+ }, { immediate: !0 }), B(() => [...l.value], (O) => {
1489
+ y.$handle.isBreakWatch() || O.length === m.renderRule.length && O.every((E) => m.renderRule.indexOf(E) > -1) || (y.$handle.updateAppendData(), y.$handle.reloadRule(l.value), n.renderRule());
1490
+ }), B(() => s.option, () => {
1491
+ y.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({}), y.$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(y),
1504
+ parent: o && fe(o),
1505
+ top: fe(a),
1506
+ fapi: fe(v)
1507
+ }, at(m)), {
1508
+ getGroupInject: () => Fe(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"], X = (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
- a[u] = K([l[u]], a[u]);
1535
+ a[u] = X([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
- function Q(t, e) {
1592
- if (t && d.String(t) && t.length > 4) {
1591
+ function W(t, e) {
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 : W(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") && k(i, s, {}), i = i[s]), s = n;
1644
+ }), k(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
- function X(t, e) {
1661
- return K(Array.isArray(e) ? e : [e], t, { array: Xe, normal: Qe }), t;
1660
+ function Q(t, e) {
1661
+ return X(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
- e[r] && (t[r] = X(t[r] || {}, e[r]));
1669
+ e[r] && (t[r] = Q(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
1682
  function F(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 k(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) {
1830
- return X(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1835
+ tt.prototype[e] = function(r) {
1836
+ return Q(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
- 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));
1902
+ const a = W(t.parse);
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
+ k(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
+ k(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
+ k(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) {
@@ -2140,7 +2146,7 @@ function zr(t) {
2140
2146
  },
2141
2147
  mergeRule: (n, o) => {
2142
2148
  t.getCtxs(n).forEach((a) => {
2143
- X(a.rule, o);
2149
+ Q(a.rule, o);
2144
2150
  });
2145
2151
  },
2146
2152
  mergeRules(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) && k(l.rule, "$" + o, a), R(l.rule, "effect") || k(l.rule, "effect", {}), k(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) && F(() => 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
2209
  return F(() => 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)
@@ -2257,7 +2263,7 @@ function zr(t) {
2257
2263
  getGlobalEvent(n) {
2258
2264
  let o = s.options.globalEvent[n];
2259
2265
  if (o)
2260
- return typeof o == "object" && (o = o.handle), Q(o);
2266
+ return typeof o == "object" && (o = o.handle), W(o);
2261
2267
  },
2262
2268
  getGlobalData(n) {
2263
2269
  return new Promise((o, a) => {
@@ -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) => {
2291
+ n = J(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => mt(n, t.fc.create.fetch, s).then((l) => {
2286
2292
  F(() => n.onSuccess && n.onSuccess(l)), o(l);
2287
2293
  }).catch((l) => {
2288
2294
  F(() => 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
+ F(() => p.onSuccess && p.onSuccess(m)), o && o(m, f);
2303
+ }).catch((m) => {
2304
+ F(() => 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
- return X({}, [i["*"], i[e.originType] || i[e.type] || i[e.type] || {}]);
2401
- })), e.prop = X({}, [this.cacheConfig[e.trueType].value, e.prop]));
2406
+ return Q({}, [i["*"], i[e.originType] || i[e.type] || i[e.type] || {}]);
2407
+ })), e.prop = Q({}, [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) ? Q({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2415
2421
  },
2416
2422
  renderSides(e, r, i) {
2417
2423
  const s = r[i ? "rule" : "prop"];
@@ -2450,8 +2456,8 @@ function Xr(t) {
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
- 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), $;
2459
+ let y;
2460
+ return m ? (u.children = f, y = m(u)) : y = a ? e.parser.preview(Je(f), e) : e.parser.render(Je(f), e), y = this.renderSides(y, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), y = this.$manager.makeWrap(e, y)), e.none && (Array.isArray(y) ? y = y.map((v) => !v || !v.tag ? v : this.none(v)) : y = this.none(y)), o && this.setCache(e, () => this.stable(y), r), y;
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;
@@ -2554,7 +2560,7 @@ function Xr(t) {
2554
2560
  on: {
2555
2561
  [e.prop.modelEmit]: () => this.onEmitInput(e)
2556
2562
  }
2557
- })), K(n, e.prop), e.prop;
2563
+ })), X(n, e.prop), e.prop;
2558
2564
  },
2559
2565
  onMounted(e) {
2560
2566
  e.el = this.vm.$refs[e.ref], e.el && ((e.el.$el || e.el).__rule__ = e.rule), e.parser.mounted(e), this.$handle.effect(e, "mounted"), this.$handle.targetHook(e, "mounted");
@@ -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,31 +2650,31 @@ 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)) {
2652
- const n = Q(r);
2657
+ if (h.String(r)) {
2658
+ const n = W(r);
2653
2659
  if (n && r !== n)
2654
2660
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2655
2661
  }
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) => {
2665
- this.vm.$emit($, ...w), this.vm.$emit("emit-event", $, ...w), this.bus.$emit($, ...w);
2670
+ const y = ge(`${m}-${f}`), v = (...w) => {
2671
+ this.vm.$emit(y, ...w), this.vm.$emit("emit-event", y, ...w), this.bus.$emit(y, ...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();
@@ -2713,30 +2719,25 @@ function Zr(t) {
2713
2719
  },
2714
2720
  loadFetchVar(e, r) {
2715
2721
  const i = (s) => this.loadStrVar(s, r);
2716
- if (e.action = i(e.action), e.headers) {
2717
- const s = {};
2718
- Object.keys(e.headers).forEach((n) => {
2719
- s[i(n)] = i(e.headers[n]);
2720
- }), e.headers = s;
2721
- }
2722
- if (e.data) {
2723
- const s = {};
2724
- Object.keys(e.data).forEach((n) => {
2725
- s[i(n)] = i(e.data[n]);
2726
- }), e.data = s;
2727
- }
2728
- return e;
2722
+ return e.action = i(e.action || ""), ["headers", "data", "query"].forEach((s) => {
2723
+ if (e[s]) {
2724
+ const n = {};
2725
+ Object.keys(e[s]).forEach((o) => {
2726
+ n[i(o)] = i(e[s][o]);
2727
+ }), e[s] = n;
2728
+ }
2729
+ }), e;
2729
2730
  }
2730
2731
  });
2731
2732
  }
2732
- const dt = ["hook:updated", "hook:mounted"];
2733
- function Yr(t) {
2734
- b(t.prototype, {
2733
+ const gt = ["hook:updated", "hook:mounted"];
2734
+ function ti(t) {
2735
+ _(t.prototype, {
2735
2736
  usePage() {
2736
2737
  const e = this.options.page;
2737
2738
  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, {
2739
+ let r = 25, i = ri(this.rules);
2740
+ h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), _(this, {
2740
2741
  first: r,
2741
2742
  limit: i,
2742
2743
  pageEnd: this.rules.length <= r
@@ -2744,17 +2745,17 @@ function Yr(t) {
2744
2745
  },
2745
2746
  pageLoad() {
2746
2747
  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());
2748
+ 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
2749
  };
2749
- this.vm.$on(dt, e);
2750
+ this.vm.$on(gt, e);
2750
2751
  }
2751
2752
  });
2752
2753
  }
2753
- function xr(t) {
2754
+ function ri(t) {
2754
2755
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2755
2756
  }
2756
- function ei(t) {
2757
- b(t.prototype, {
2757
+ function ii(t) {
2758
+ _(t.prototype, {
2758
2759
  clearNextTick() {
2759
2760
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
2760
2761
  },
@@ -2768,16 +2769,16 @@ function ei(t) {
2768
2769
  }
2769
2770
  });
2770
2771
  }
2771
- function ti(t) {
2772
+ function ni(t) {
2772
2773
  Object.defineProperties(t.origin, {
2773
- __fc__: We(he(t), !0)
2774
+ __fc__: Ke(fe(t), !0)
2774
2775
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2775
- __fc__: We(he(t), !0)
2776
+ __fc__: Ke(fe(t), !0)
2776
2777
  });
2777
2778
  }
2778
- function Nt(t, e, r) {
2779
- const i = Se(), s = !!e.field;
2780
- b(this, {
2779
+ function qt(t, e, r) {
2780
+ const i = De(), s = !!e.field;
2781
+ _(this, {
2781
2782
  id: i,
2782
2783
  ref: i,
2783
2784
  wrapRef: i + "fi",
@@ -2794,18 +2795,18 @@ function Nt(t, e, r) {
2794
2795
  parent: null,
2795
2796
  group: e.subRule ? this : null,
2796
2797
  cacheConfig: null,
2797
- prop: v({}, e),
2798
+ prop: b({}, e),
2798
2799
  computed: {},
2799
2800
  payload: {},
2800
2801
  refRule: {},
2801
2802
  input: s,
2802
2803
  el: void 0,
2803
2804
  exportEl: void 0,
2804
- defaultValue: s ? G(r) : void 0,
2805
+ defaultValue: s ? J(r) : void 0,
2805
2806
  field: e.field || void 0
2806
- }), this.updateKey(), ti(this), this.update(t, !0);
2807
+ }), this.updateKey(), ni(this), this.update(t, !0);
2807
2808
  }
2808
- b(Nt.prototype, {
2809
+ _(qt.prototype, {
2809
2810
  getParentGroup() {
2810
2811
  let t = this.parent;
2811
2812
  for (; t; ) {
@@ -2837,7 +2838,7 @@ b(Nt.prototype, {
2837
2838
  return this.getPending(e, i);
2838
2839
  delete this.pending[e];
2839
2840
  let a = r;
2840
- if (d.Function(r)) {
2841
+ if (h.Function(r)) {
2841
2842
  let l = F(() => r({
2842
2843
  rule: this.rule,
2843
2844
  api: this.$api,
@@ -2850,7 +2851,7 @@ b(Nt.prototype, {
2850
2851
  delete this.pending[e], n && n(u), this.$api && this.$api.sync(this.rule);
2851
2852
  }
2852
2853
  }));
2853
- l && d.Function(l.then) ? (l.then((u) => {
2854
+ l && h.Function(l.then) ? (l.then((u) => {
2854
2855
  const f = u || i;
2855
2856
  this.setPending(e, r, f), s && s(f), this.$api && this.$api.sync(this.rule);
2856
2857
  }).catch((u) => {
@@ -2865,7 +2866,7 @@ b(Nt.prototype, {
2865
2866
  setPending(t, e, r) {
2866
2867
  this.pending[t] = {
2867
2868
  origin: e,
2868
- value: te(r)
2869
+ value: x(r)
2869
2870
  };
2870
2871
  },
2871
2872
  effectData(t) {
@@ -2875,20 +2876,20 @@ b(Nt.prototype, {
2875
2876
  t === void 0 ? this.payload = {} : delete this.payload[t];
2876
2877
  },
2877
2878
  updateKey(t) {
2878
- this.key = Se(), t && this.parent && this.parent.updateKey(t);
2879
+ this.key = De(), t && this.parent && this.parent.updateKey(t);
2879
2880
  },
2880
2881
  updateType() {
2881
- this.originType = this.rule.type, this.type = U(this.rule.type), this.trueType = this.$handle.getType(this.originType);
2882
+ this.originType = this.rule.type, this.type = q(this.rule.type), this.trueType = this.$handle.getType(this.originType);
2882
2883
  },
2883
2884
  setParser(t) {
2884
2885
  this.parser = t, t.init(this);
2885
2886
  },
2886
2887
  initProp() {
2887
- const t = v({}, this.rule);
2888
- 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 || []];
2888
+ const t = b({}, this.rule);
2889
+ delete t.children, delete t.validate, this.prop = Q({}, [t, ...Object.keys(this.payload).map((e) => this.payload[e]), this.computed]), this.prop.validate = [...this.refRule.__$validate.value || [], ...this.prop.validate || []];
2889
2890
  },
2890
2891
  initNone() {
2891
- this.none = !(d.Undef(this.prop.display) || this.prop.display);
2892
+ this.none = !(h.Undef(this.prop.display) || this.prop.display);
2892
2893
  },
2893
2894
  injectValidate() {
2894
2895
  return this.prop.validate;
@@ -2909,7 +2910,7 @@ b(Nt.prototype, {
2909
2910
  this.$handle.watchCtx(this);
2910
2911
  },
2911
2912
  delete() {
2912
- this.unwatch(), this.unlink(), this.rmCtrl(), this.parent && this.parent.children.splice(this.parent.children.indexOf(this) >>> 0, 1), b(this, {
2913
+ this.unwatch(), this.unlink(), this.rmCtrl(), this.parent && this.parent.children.splice(this.parent.children.indexOf(this) >>> 0, 1), _(this, {
2913
2914
  deleted: !0,
2914
2915
  computed: {},
2915
2916
  parent: null,
@@ -2932,14 +2933,14 @@ b(Nt.prototype, {
2932
2933
  }
2933
2934
  this.$handle.noWatch(() => {
2934
2935
  this.$handle.deferSyncValue(() => {
2935
- this.rmCtrl(), t(), this.$handle.rmCtx(this), b(this, {
2936
+ this.rmCtrl(), t(), this.$handle.rmCtx(this), _(this, {
2936
2937
  root: []
2937
2938
  });
2938
2939
  }, this.input);
2939
2940
  });
2940
2941
  },
2941
2942
  update(t, e) {
2942
- b(this, {
2943
+ _(this, {
2943
2944
  deleted: !1,
2944
2945
  $handle: t,
2945
2946
  $render: t.$render,
@@ -2951,8 +2952,8 @@ b(Nt.prototype, {
2951
2952
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
2952
2953
  }
2953
2954
  });
2954
- function ri(t) {
2955
- b(t.prototype, {
2955
+ function si(t) {
2956
+ _(t.prototype, {
2956
2957
  nextRefresh(e) {
2957
2958
  const r = this.loadedId;
2958
2959
  H(() => {
@@ -2960,12 +2961,12 @@ function ri(t) {
2960
2961
  });
2961
2962
  },
2962
2963
  parseRule(e) {
2963
- const r = lt(e);
2964
+ const r = ft(e);
2964
2965
  return Object.defineProperties(r, {
2965
- __origin__: We(e, !0)
2966
- }), ii(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
2966
+ __origin__: Ke(e, !0)
2967
+ }), oi(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
2967
2968
  i && this.loadFn(i, r);
2968
- }), this.loadCtrl(r), r.update && (r.update = Q(r.update)), r;
2969
+ }), this.loadCtrl(r), r.update && (r.update = W(r.update)), r;
2969
2970
  },
2970
2971
  loadFn(e, r) {
2971
2972
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -2974,14 +2975,14 @@ function ri(t) {
2974
2975
  },
2975
2976
  loadCtrl(e) {
2976
2977
  e.control && e.control.forEach((r) => {
2977
- r.handle && (r.handle = Q(r.handle));
2978
+ r.handle && (r.handle = W(r.handle));
2978
2979
  });
2979
2980
  },
2980
2981
  syncProp(e) {
2981
2982
  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);
2983
+ h.trueArray(r.sync) && X([{
2984
+ on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
2985
+ r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
2985
2986
  }, i), {})
2986
2987
  }], e.computed);
2987
2988
  },
@@ -3005,40 +3006,40 @@ function ri(t) {
3005
3006
  let l = this.sort.indexOf(a.__fc__.id);
3006
3007
  return l > -1 ? l : i(o - 1);
3007
3008
  }, s = (o, a) => {
3008
- d.trueArray(o) && this._loadRule(o, a);
3009
+ h.trueArray(o) && this._loadRule(o, a);
3009
3010
  }, n = e.map((o, a) => {
3010
- if (r && !d.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3011
+ if (r && !h.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3011
3012
  if (o.__fc__ && o.__fc__.root === e && this.ctxs[o.__fc__.id])
3012
3013
  return s(o.__fc__.loadChildrenPending(), o.__fc__), o.__fc__;
3013
- let l = lt(o);
3014
+ let l = ft(o);
3014
3015
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3015
3016
  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
- let f, p = !1, m = !!o.__fc__, $ = l.value;
3017
+ let f, p = !1, m = !!o.__fc__, y = l.value;
3017
3018
  if (m) {
3018
- if (f = o.__fc__, $ = f.defaultValue, f.deleted) {
3019
- if (pt(f))
3019
+ if (f = o.__fc__, y = f.defaultValue, f.deleted) {
3020
+ if (yt(f))
3020
3021
  return;
3021
3022
  f.update(this);
3022
3023
  } else if (!f.check(this)) {
3023
- if (pt(f))
3024
+ if (yt(f))
3024
3025
  return;
3025
- e[a] = o = o._clone ? o._clone() : Dt(Ye(o)), f = null, p = !0;
3026
+ e[a] = o = o._clone ? o._clone() : At(et(o)), f = null, p = !0;
3026
3027
  }
3027
3028
  }
3028
3029
  if (f)
3029
3030
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3030
3031
  else {
3031
- const D = this.parseRule(o);
3032
- f = new Nt(this, D, $), this.bindParser(f);
3032
+ const j = this.parseRule(o);
3033
+ f = new qt(this, j, y), this.bindParser(f);
3033
3034
  }
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);
3035
+ [!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");
3036
+ const v = f.loadChildrenPending();
3037
+ if (f.parser.loadChildren === !1 || s(v, f), !r) {
3038
+ const j = i(a);
3039
+ j > -1 || !a ? this.sort.splice(j + 1, 0, f.id) : this.sort.push(f.id);
3039
3040
  }
3040
3041
  const w = f.rule;
3041
- return f.updated || (f.updated = !0, d.Function(w.update) && this.bus.$once("load-end", () => {
3042
+ return f.updated || (f.updated = !0, h.Function(w.update) && this.bus.$once("load-end", () => {
3042
3043
  this.refreshUpdate(f, w.value, "init");
3043
3044
  }), this.effect(f, "loaded")), this.refreshControl(f) && (this.cycleLoad = !0), f;
3044
3045
  }).filter((o) => !!o);
@@ -3048,17 +3049,17 @@ function ri(t) {
3048
3049
  return e.input && e.rule.control && this.useCtrl(e);
3049
3050
  },
3050
3051
  useCtrl(e) {
3051
- const r = ni(e), i = [], s = this.api;
3052
+ const r = ai(e), i = [], s = this.api;
3052
3053
  if (!r.length) return !1;
3053
3054
  for (let a = 0; a < r.length; a++) {
3054
3055
  const l = r[a], u = l.handle || function(p) {
3055
- return (le[l.condition || "=="] || le["=="])(p, l.value);
3056
+ return (ae[l.condition || "=="] || ae["=="])(p, l.value);
3056
3057
  };
3057
- if (!d.trueArray(l.rule)) continue;
3058
- const f = N(v({}, l), {
3058
+ if (!h.trueArray(l.rule)) continue;
3059
+ const f = U(b({}, l), {
3059
3060
  valid: F(() => u(e.rule.value, s)),
3060
- ctrl: si(e, l.rule),
3061
- isHidden: d.String(l.rule[0])
3061
+ ctrl: li(e, l.rule),
3062
+ isHidden: h.String(l.rule[0])
3062
3063
  });
3063
3064
  f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || i.push(f);
3064
3065
  }
@@ -3066,14 +3067,14 @@ function ri(t) {
3066
3067
  const n = [];
3067
3068
  let o = !1;
3068
3069
  return this.deferSyncValue(() => {
3069
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: m, ctrl: $, method: _ }) => {
3070
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: m, ctrl: y, method: v }) => {
3070
3071
  if (a) {
3071
3072
  l ? e.ctrlRule.push({
3072
3073
  __ctrl: !0,
3073
3074
  children: u,
3074
3075
  valid: l
3075
- }) : $ && 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) => {
3076
+ }) : y && e.ctrlRule.splice(e.ctrlRule.indexOf(y) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3077
+ v === "disabled" || v === "enabled" ? this.api.disabled(!l, u) : v === "display" ? this.api.display(l, u) : v === "required" ? (u.forEach((w) => {
3077
3078
  this.api.setEffect(w, "required", l);
3078
3079
  }), l || this.api.clearValidateState(u)) : this.api.hidden(!l, u);
3079
3080
  });
@@ -3091,8 +3092,8 @@ function ri(t) {
3091
3092
  f ? s.prepend(w, f, m) : p || m ? s.append(w, p || e.id, m) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, w);
3092
3093
  });
3093
3094
  } else {
3094
- e.ctrlRule.splice(e.ctrlRule.indexOf($), 1);
3095
- const w = ae($);
3095
+ e.ctrlRule.splice(e.ctrlRule.indexOf(y), 1);
3096
+ const w = oe(y);
3096
3097
  w && w.rm();
3097
3098
  }
3098
3099
  });
@@ -3107,7 +3108,7 @@ function ri(t) {
3107
3108
  },
3108
3109
  _reloadRule(e) {
3109
3110
  e || (e = this.rules);
3110
- const r = v({}, this.ctxs);
3111
+ const r = b({}, this.ctxs);
3111
3112
  this.clearNextTick(), this.initData(e), this.fc.rules = e, this.deferSyncValue(() => {
3112
3113
  this.bus.$once("load-end", () => {
3113
3114
  Object.keys(r).filter((i) => this.ctxs[i] === void 0).forEach((i) => this.rmCtx(r[i])), this.$render.clearCacheAll();
@@ -3120,28 +3121,28 @@ function ri(t) {
3120
3121
  }
3121
3122
  });
3122
3123
  }
3123
- function ii(t) {
3124
- const e = Vt();
3124
+ function oi(t) {
3125
+ const e = Lt();
3125
3126
  return Object.keys(e).forEach((r) => {
3126
- R(t, r) || j(t, r, e[r]);
3127
+ R(t, r) || k(t, r, e[r]);
3127
3128
  }), t;
3128
3129
  }
3129
- function ni(t) {
3130
+ function ai(t) {
3130
3131
  const e = t.rule.control || [];
3131
- return d.Object(e) ? [e] : e;
3132
+ return h.Object(e) ? [e] : e;
3132
3133
  }
3133
- function si(t, e) {
3134
+ function li(t, e) {
3134
3135
  for (let r = 0; r < t.ctrlRule.length; r++) {
3135
3136
  const i = t.ctrlRule[r];
3136
3137
  if (i.children === e)
3137
3138
  return i;
3138
3139
  }
3139
3140
  }
3140
- function pt(t) {
3141
+ function yt(t) {
3141
3142
  return !!t.rule.__ctrl;
3142
3143
  }
3143
- function oi(t) {
3144
- b(t.prototype, {
3144
+ function ui(t) {
3145
+ _(t.prototype, {
3145
3146
  setValue(e, r, i, s) {
3146
3147
  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
3148
  rule: e.origin,
@@ -3167,21 +3168,21 @@ function oi(t) {
3167
3168
  setFormData(e, r) {
3168
3169
  e.modelValue = r;
3169
3170
  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);
3171
+ i && (this.subRuleData[i.id] || k(this.subRuleData, i.id, {}), k(this.subRuleData[i.id], e.field, e.rule.value)), k(this.formData, e.id, r);
3171
3172
  },
3172
3173
  rmSubRuleData(e) {
3173
3174
  const r = e.getParentGroup();
3174
- r && this.subRuleData[r.id] && delete this.subRuleData[r.id][e.field];
3175
+ r && this.subRuleData[r.id] && Y(this.subRuleData[r.id], e.field);
3175
3176
  },
3176
3177
  getFormData(e) {
3177
3178
  return this.formData[e.id];
3178
3179
  },
3179
3180
  syncForm() {
3180
3181
  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) => {
3182
+ 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
3183
  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();
3184
+ return this.isIgnore(o.rule) && i.push(n), s[n] = Re(o.rule, "value"), s;
3185
+ }, e), this.form = x(e), this.ignoreFields = i, this.syncValue();
3185
3186
  },
3186
3187
  isIgnore(e) {
3187
3188
  return e.ignore === !0 || e.ignore === "hidden" && e.hidden || this.options.ignoreHiddenFields && e.hidden;
@@ -3204,13 +3205,13 @@ function oi(t) {
3204
3205
  }), this.vm.updateValue(e);
3205
3206
  },
3206
3207
  isChange(e, r) {
3207
- return JSON.stringify(this.getFormData(e), mt) !== JSON.stringify(r, mt);
3208
+ return JSON.stringify(this.getFormData(e), $t) !== JSON.stringify(r, $t);
3208
3209
  },
3209
3210
  isQuote(e, r) {
3210
- return (d.Object(r) || Array.isArray(r)) && r === e.rule.value;
3211
+ return (h.Object(r) || Array.isArray(r)) && r === e.rule.value;
3211
3212
  },
3212
3213
  refreshUpdate(e, r, i, s) {
3213
- if (d.Function(e.rule.update)) {
3214
+ if (h.Function(e.rule.update)) {
3214
3215
  const n = F(() => e.rule.update(r, e.origin, this.api, {
3215
3216
  origin: i || "change",
3216
3217
  linkField: s
@@ -3227,7 +3228,7 @@ function oi(t) {
3227
3228
  },
3228
3229
  appendLink(e) {
3229
3230
  const r = e.rule.link;
3230
- d.trueArray(r) && r.forEach((i) => {
3231
+ h.trueArray(r) && r.forEach((i) => {
3231
3232
  const s = () => this.refreshRule(e, e.rule.value, "link", i);
3232
3233
  this.bus.$on("change-" + i, s), e.linkOn.push(() => this.bus.$off("change-" + i, s));
3233
3234
  });
@@ -3237,10 +3238,10 @@ function oi(t) {
3237
3238
  }
3238
3239
  });
3239
3240
  }
3240
- function mt(t, e) {
3241
+ function $t(t, e) {
3241
3242
  return typeof e == "function" ? "" + e : e;
3242
3243
  }
3243
- const Oe = {
3244
+ const ke = {
3244
3245
  init(t) {
3245
3246
  },
3246
3247
  toFormValue(t, e) {
@@ -3259,9 +3260,9 @@ const Oe = {
3259
3260
  },
3260
3261
  mergeProp(t) {
3261
3262
  }
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, {
3263
+ }, fi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"];
3264
+ function ci(t) {
3265
+ _(t.prototype, {
3265
3266
  getCtx(e) {
3266
3267
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
3267
3268
  },
@@ -3291,26 +3292,26 @@ function li(t) {
3291
3292
  getParser(e) {
3292
3293
  const r = this.fc.parsers, i = this.fc.renderDriver;
3293
3294
  if (i) {
3294
- const s = i.parsers || {}, n = s[e.originType] || s[U(e.type)] || s[e.trueType];
3295
+ const s = i.parsers || {}, n = s[e.originType] || s[q(e.type)] || s[e.trueType];
3295
3296
  if (n)
3296
3297
  return n;
3297
3298
  }
3298
- return r[e.originType] || r[U(e.type)] || r[e.trueType] || Oe;
3299
+ return r[e.originType] || r[q(e.type)] || r[e.trueType] || ke;
3299
3300
  },
3300
3301
  bindParser(e) {
3301
3302
  e.setParser(this.getParser(e));
3302
3303
  },
3303
3304
  getType(e) {
3304
- const r = this.fc.CreateNode.aliasMap, i = r[e] || r[U(e)] || e;
3305
- return U(i);
3305
+ const r = this.fc.CreateNode.aliasMap, i = r[e] || r[q(e)] || e;
3306
+ return q(i);
3306
3307
  },
3307
3308
  noWatch(e) {
3308
3309
  this.noWatchFn || (this.noWatchFn = e), F(e), this.noWatchFn === e && (this.noWatchFn = null);
3309
3310
  },
3310
3311
  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) => {
3312
+ if (jt().filter((i) => i[0] !== "_" && i[0] !== "$" && fi.indexOf(i) === -1).forEach((i) => {
3313
+ const s = Re(e.rule, i), n = i === "children";
3314
+ e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3314
3315
  let l = s.value;
3315
3316
  if (!this.isBreakWatch()) {
3316
3317
  if (n && e.parser.loadChildren === !1) {
@@ -3326,31 +3327,31 @@ function li(t) {
3326
3327
  else if (i === "link") {
3327
3328
  e.link();
3328
3329
  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));
3330
+ } 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
3331
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3331
3332
  }
3332
3333
  }, { deep: !n, sync: n }));
3333
- }), e.refRule.__$title = de(() => {
3334
+ }), e.refRule.__$title = ce(() => {
3334
3335
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3335
3336
  if (i) {
3336
3337
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3337
3338
  s && (i = this.api.t(s[1]));
3338
3339
  }
3339
3340
  return i;
3340
- }), e.refRule.__$info = de(() => {
3341
+ }), e.refRule.__$info = ce(() => {
3341
3342
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3342
3343
  if (i) {
3343
3344
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3344
3345
  s && (i = this.api.t(s[1]));
3345
3346
  }
3346
3347
  return i;
3347
- }), e.refRule.__$validate = de(() => q(e.rule.validate).map((i) => {
3348
- const s = v({}, i);
3348
+ }), e.refRule.__$validate = ce(() => G(e.rule.validate).map((i) => {
3349
+ const s = b({}, i);
3349
3350
  if (s.message) {
3350
3351
  const n = s.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3351
3352
  n && (s.message = this.api.t(n[1], { title: e.refRule.__$title.value }));
3352
3353
  }
3353
- if (d.Function(s.validator)) {
3354
+ if (h.Function(s.validator)) {
3354
3355
  const n = e;
3355
3356
  return s.validator = function(...o) {
3356
3357
  return i.validator.call({
@@ -3364,8 +3365,8 @@ function li(t) {
3364
3365
  }
3365
3366
  return s;
3366
3367
  })), e.input) {
3367
- const i = ke(e.rule, "value");
3368
- e.watch.push(P(() => i.value, () => {
3368
+ const i = Re(e.rule, "value");
3369
+ e.watch.push(B(() => i.value, () => {
3369
3370
  let s = e.parser.toFormValue(i.value, e);
3370
3371
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
3371
3372
  }));
@@ -3374,15 +3375,15 @@ function li(t) {
3374
3375
  let i = e.rule.computed;
3375
3376
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3376
3377
  let n;
3377
- const o = de(() => {
3378
+ const o = ce(() => {
3378
3379
  const l = i[s];
3379
3380
  if (!l) return;
3380
3381
  const u = this.compute(e, l);
3381
3382
  return l.linkage && u === void 0 ? n : u;
3382
3383
  }), a = (l) => {
3383
- s === "value" ? this.onInput(e, l) : s[0] === "$" ? this.api.setEffect(e.id, s, l) : re(e.rule, s, l);
3384
+ s === "value" ? this.onInput(e, l) : s[0] === "$" ? this.api.setEffect(e.id, s, l) : ee(e.rule, s, l);
3384
3385
  };
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) => {
3386
+ (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
3387
  n = l, setTimeout(() => {
3387
3388
  a(l);
3388
3389
  });
@@ -3394,14 +3395,21 @@ function li(t) {
3394
3395
  let i;
3395
3396
  if (typeof r == "object") {
3396
3397
  const s = e.getParentGroup(), n = (a) => {
3397
- if (a = Array.isArray(a) ? { mode: "AND", group: a } : a, !d.trueArray(a.group))
3398
+ if (a = Array.isArray(a) ? { mode: "AND", group: a } : a, !h.trueArray(a.group))
3398
3399
  return !0;
3399
3400
  const l = a.mode === "OR";
3400
3401
  let u = !0;
3401
3402
  for (let f = 0; f < a.group.length; f++) {
3402
3403
  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)
3404
+ let m, y = null;
3405
+ if (p.variable)
3406
+ y = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3407
+ else if (p.field)
3408
+ y = ht(p.field || "");
3409
+ else
3410
+ return !0;
3411
+ let v = p.compare;
3412
+ if (v && (v = ht(v || "")), p.mode ? m = n(p) : ae[p.condition] ? h.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}'](${y}, ${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
3413
  return !0;
3406
3414
  l || (u = u && m);
3407
3415
  }
@@ -3409,7 +3417,7 @@ function li(t) {
3409
3417
  };
3410
3418
  let o = n(r);
3411
3419
  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))
3420
+ } else if (h.Function(r))
3413
3421
  i = () => r(this.api.form, this.api);
3414
3422
  else {
3415
3423
  const s = e.getParentGroup();
@@ -3431,25 +3439,25 @@ function li(t) {
3431
3439
  updateChildren(e, r, i) {
3432
3440
  this.deferSyncValue(() => {
3433
3441
  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));
3442
+ (r || []).indexOf(s) === -1 && s && !h.String(s) && s.__fc__ && s.__fc__.parent === e && this.rmCtx(s.__fc__);
3443
+ }), h.trueArray(r) && (this.loadChildren(r, e), this.bus.$emit("update", this.api));
3436
3444
  });
3437
3445
  },
3438
3446
  rmSub(e) {
3439
- d.trueArray(e) && e.forEach((r) => {
3447
+ h.trueArray(e) && e.forEach((r) => {
3440
3448
  r && r.__fc__ && this.rmCtx(r.__fc__);
3441
3449
  });
3442
3450
  },
3443
3451
  rmCtx(e) {
3444
3452
  if (e.deleted) return;
3445
3453
  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);
3454
+ Y(this.ctxs, r), Y(this.formData, r), Y(this.subForm, r), Y(this.vm.ctxInject, r);
3447
3455
  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(() => {
3456
+ 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
3457
  if (!this.reloading) {
3450
3458
  if (e.parser.loadChildren !== !1) {
3451
3459
  const l = e.getPending("children", e.rule.children);
3452
- d.trueArray(l) && l.forEach((u) => u.__fc__ && this.rmCtx(u.__fc__));
3460
+ h.trueArray(l) && l.forEach((u) => u.__fc__ && this.rmCtx(u.__fc__));
3453
3461
  }
3454
3462
  e.root === this.rules && this.vm.renderRule();
3455
3463
  }
@@ -3459,8 +3467,8 @@ function li(t) {
3459
3467
  }
3460
3468
  });
3461
3469
  }
3462
- function ui(t) {
3463
- b(t.prototype, {
3470
+ function hi(t) {
3471
+ _(t.prototype, {
3464
3472
  mounted() {
3465
3473
  const e = () => {
3466
3474
  this.isMounted = !0, this.lifecycle("mounted");
@@ -3471,10 +3479,10 @@ function ui(t) {
3471
3479
  this.fc.targetFormDriver(e, this.api, this.fc), this.vm.$emit(e, this.api), this.emitEvent(e, this.api);
3472
3480
  },
3473
3481
  emitEvent(e, ...r) {
3474
- const i = this.options[e] || this.options[U("on-" + e)];
3482
+ const i = this.options[e] || this.options[q("on-" + e)];
3475
3483
  if (i) {
3476
- const s = Q(i);
3477
- d.Function(s) && F(() => s(...r));
3484
+ const s = W(i);
3485
+ h.Function(s) && F(() => s(...r));
3478
3486
  }
3479
3487
  this.bus.$emit(e, ...r);
3480
3488
  },
@@ -3482,18 +3490,18 @@ function ui(t) {
3482
3490
  var n, o;
3483
3491
  let s = (o = (n = e.prop) == null ? void 0 : n.hook) == null ? void 0 : o[r];
3484
3492
  s && (s = Array.isArray(s) ? s : [s], s.forEach((a) => {
3485
- F(() => a(N(v({}, i || {}), { rule: e.rule, api: this.api })));
3493
+ F(() => a(U(b({}, i || {}), { rule: e.rule, api: this.api })));
3486
3494
  }));
3487
3495
  }
3488
3496
  });
3489
3497
  }
3490
- function fi(t) {
3491
- b(t.prototype, {
3498
+ function di(t) {
3499
+ _(t.prototype, {
3492
3500
  useProvider() {
3493
3501
  const e = this.fc.providers;
3494
3502
  Object.keys(e).forEach((r) => {
3495
3503
  let i = e[r];
3496
- d.Function(i) && (i = i(this.fc)), i._c = hi(i), this.onEffect(i), this.providers[r] = i;
3504
+ h.Function(i) && (i = i(this.fc)), i._c = mi(i), this.onEffect(i), this.providers[r] = i;
3497
3505
  });
3498
3506
  },
3499
3507
  onEffect(e) {
@@ -3517,7 +3525,7 @@ function fi(t) {
3517
3525
  }), Object.keys(e.rule).forEach((i) => {
3518
3526
  i[0] === "$" && (r[i.substr(1)] = () => e.rule[i]);
3519
3527
  }), Object.keys(r).forEach((i) => {
3520
- e.watch.push(P(r[i], (s) => {
3528
+ e.watch.push(B(r[i], (s) => {
3521
3529
  this.effect(e, "watch", { [i]: s });
3522
3530
  }, { deep: !0 }));
3523
3531
  });
@@ -3546,7 +3554,7 @@ function fi(t) {
3546
3554
  },
3547
3555
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
3548
3556
  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 || {}));
3557
+ const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), b({}, r.effect || {}));
3550
3558
  Object.keys(l).forEach((u) => {
3551
3559
  const f = this.providers[u];
3552
3560
  if (!f || f.input && !i) return;
@@ -3557,26 +3565,26 @@ function fi(t) {
3557
3565
  p = s;
3558
3566
  else
3559
3567
  return;
3560
- const m = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3561
- 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]);
3568
+ const m = b({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3569
+ e && (m.getProp = () => e.effectData(u), m.clearProp = () => e.clearEffectData(u), m.mergeProp = (y) => Q(m.getProp(), [y]), m.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [m, r, this.api]);
3562
3570
  });
3563
3571
  }
3564
3572
  });
3565
3573
  }
3566
- function ci(t) {
3574
+ function pi(t) {
3567
3575
  return t.filter(function(e, r, i) {
3568
3576
  return i.indexOf(e, 0) === r;
3569
3577
  });
3570
3578
  }
3571
- function hi(t) {
3579
+ function mi(t) {
3572
3580
  const e = t.components;
3573
3581
  if (Array.isArray(e)) {
3574
- const r = ci(e.filter((i) => i !== "*"));
3582
+ const r = pi(e.filter((i) => i !== "*"));
3575
3583
  return r.length ? r : !1;
3576
- } else return d.String(e) ? [e] : !1;
3584
+ } else return h.String(e) ? [e] : !1;
3577
3585
  }
3578
- function J(t) {
3579
- At(this, {
3586
+ function z(t) {
3587
+ Bt(this, {
3580
3588
  options() {
3581
3589
  return t.options.value || {};
3582
3590
  },
@@ -3586,7 +3594,7 @@ function J(t) {
3586
3594
  preview() {
3587
3595
  return t.vm.$options.propsData.preview != null ? t.vm.$options.propsData.preview : t.options.value.preview || !1;
3588
3596
  }
3589
- }), b(this, {
3597
+ }), _(this, {
3590
3598
  fc: t,
3591
3599
  vm: t.vm,
3592
3600
  watching: !1,
@@ -3595,10 +3603,10 @@ function J(t) {
3595
3603
  noWatchFn: null,
3596
3604
  deferSyncFn: null,
3597
3605
  isMounted: !1,
3598
- formData: te({}),
3599
- subRuleData: te({}),
3606
+ formData: x({}),
3607
+ subRuleData: x({}),
3600
3608
  subForm: {},
3601
- form: te({}),
3609
+ form: x({}),
3602
3610
  appendData: {},
3603
3611
  ignoreFields: [],
3604
3612
  providers: {},
@@ -3610,11 +3618,14 @@ function J(t) {
3610
3618
  nextReload: () => {
3611
3619
  this.lifecycle("reload");
3612
3620
  }
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));
3621
+ }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3622
+ const i = F(() => r(e, this));
3623
+ return i && i !== e && _(e, i), e;
3624
+ }, Qr(this));
3614
3625
  }
3615
- b(J.prototype, {
3626
+ _(z.prototype, {
3616
3627
  initData(t) {
3617
- b(this, {
3628
+ _(this, {
3618
3629
  ctxs: {},
3619
3630
  fieldCtx: {},
3620
3631
  nameCtx: {},
@@ -3626,7 +3637,7 @@ b(J.prototype, {
3626
3637
  this.updateAppendData(), this.useProvider(), this.usePage(), this.loadRule(), this.$manager.__init(), this.lifecycle("created");
3627
3638
  },
3628
3639
  updateAppendData() {
3629
- this.appendData = v(v(v({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3640
+ this.appendData = b(b(b({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3630
3641
  },
3631
3642
  isBreakWatch() {
3632
3643
  return this.loading || this.noWatchFn || this.reloading;
@@ -3634,55 +3645,55 @@ b(J.prototype, {
3634
3645
  beforeFetch(t) {
3635
3646
  return new Promise((e) => {
3636
3647
  const r = this.options.beforeFetch && F(() => this.options.beforeFetch(t, { api: this.api }));
3637
- r && d.Function(r.then) ? r.then(e) : e();
3648
+ r && h.Function(r.then) ? r.then(e) : e();
3638
3649
  });
3639
3650
  }
3640
3651
  });
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,
3652
+ ei(z);
3653
+ ti(z);
3654
+ ii(z);
3655
+ si(z);
3656
+ ui(z);
3657
+ ci(z);
3658
+ hi(z);
3659
+ di(z);
3660
+ const gi = "fcFragment", Te = {
3661
+ name: gi,
3651
3662
  functional: !0,
3652
3663
  props: ["vnode"],
3653
3664
  render(t, e) {
3654
3665
  return e.props.vnode ? e.props.vnode : e.children;
3655
3666
  }
3656
3667
  };
3657
- function pi(t) {
3658
- return d.String(t) ? { domProps: { innerHTML: t } } : t;
3668
+ function yi(t) {
3669
+ return h.String(t) ? { domProps: { innerHTML: t } } : t;
3659
3670
  }
3660
- function mi() {
3671
+ function $i() {
3661
3672
  const t = {};
3662
3673
  function e(r) {
3663
3674
  r && this.setVm(r);
3664
3675
  }
3665
- return b(e.prototype, {
3676
+ return _(e.prototype, {
3666
3677
  setVm(r) {
3667
- this.vm = r, this.$h = r.$createElement;
3678
+ this.vm = r, this.h = this.$h = r.$createElement;
3668
3679
  },
3669
3680
  make(r, i, s) {
3670
3681
  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);
3682
+ 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
3683
  },
3673
3684
  makeComponent(r, i, s) {
3674
- let n = this.$h(r, pi(i), s || []);
3685
+ let n = this.$h(r, yi(i), s || []);
3675
3686
  return n.context = this.vm, n;
3676
3687
  },
3677
3688
  aliasMap: t
3678
- }), b(e, {
3689
+ }), _(e, {
3679
3690
  aliasMap: t,
3680
3691
  alias(r, i) {
3681
3692
  t[r] = i;
3682
3693
  },
3683
3694
  use(r) {
3684
3695
  Object.keys(r).forEach((i) => {
3685
- const s = ge(i), n = Nr(i).toLocaleLowerCase(), o = r[i];
3696
+ const s = ge(i), n = qr(i).toLocaleLowerCase(), o = r[i];
3686
3697
  [i, s, n].forEach((a) => {
3687
3698
  e.alias(i, o), e.prototype[a] = function(l, u) {
3688
3699
  return this.make(o, l, u);
@@ -3692,13 +3703,13 @@ function mi() {
3692
3703
  }
3693
3704
  }), e;
3694
3705
  }
3695
- function gi(t) {
3696
- class e extends Mt {
3706
+ function vi(t) {
3707
+ class e extends Gt {
3697
3708
  }
3698
3709
  return Object.assign(e.prototype, t), e;
3699
3710
  }
3700
- function Mt(t) {
3701
- b(this, {
3711
+ function Gt(t) {
3712
+ _(this, {
3702
3713
  $handle: t,
3703
3714
  vm: t.vm,
3704
3715
  options: {},
@@ -3708,12 +3719,12 @@ function Mt(t) {
3708
3719
  }
3709
3720
  }), this.updateKey(), this.init();
3710
3721
  }
3711
- b(Mt.prototype, {
3722
+ _(Gt.prototype, {
3712
3723
  __init() {
3713
3724
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
3714
3725
  },
3715
3726
  updateKey() {
3716
- this.key = Se();
3727
+ this.key = De();
3717
3728
  },
3718
3729
  //TODO interface
3719
3730
  init() {
@@ -3735,7 +3746,7 @@ b(Mt.prototype, {
3735
3746
  return e(this.vm);
3736
3747
  },
3737
3748
  mergeOptions(t, e) {
3738
- return K(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3749
+ return X(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3739
3750
  },
3740
3751
  updateOptions(t) {
3741
3752
  this.$handle.fc.targetFormDriver("updateOptions", t, { handle: this.$handle, api: this.$handle.api }), this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
@@ -3753,24 +3764,24 @@ b(Mt.prototype, {
3753
3764
  render(t) {
3754
3765
  }
3755
3766
  });
3756
- const yi = function(t) {
3767
+ const bi = function(t) {
3757
3768
  const e = {
3758
3769
  name: "loadData",
3759
3770
  _fn: [],
3760
3771
  mounted(r, i, s) {
3761
3772
  this.deleted(r);
3762
- let n = q(r.getValue());
3773
+ let n = G(r.getValue());
3763
3774
  const o = [];
3764
3775
  n.forEach((a) => {
3765
3776
  if (a && (a.attr || a.template)) {
3766
3777
  let l = (p) => {
3767
3778
  let m;
3768
- a.template ? m = t.$handle.loadStrVar(a.template, p) : m = p(a.attr, a.default), a.copy !== !1 && (m = G(m));
3769
- const $ = a.modify ? i : r.getProp();
3770
- a.to === "child" ? $.children ? $.children[0] = m : $.children = [m] : re($, a.to || "options", m), s.sync(i);
3779
+ a.template ? m = t.$handle.loadStrVar(a.template, p) : a.handler && h.Function(a.handler) ? m = a.handler(p, i, s) : m = p(a.attr, a.default), a.copy !== !1 && (m = J(m));
3780
+ const y = a.modify ? i : r.getProp();
3781
+ a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : ee(y, a.to || "options", m), s.sync(i);
3771
3782
  }, u = (p) => l(p);
3772
3783
  const f = t.watchLoadData(u);
3773
- l = ue(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
3784
+ l = le(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
3774
3785
  }
3775
3786
  }), this._fn[r.id] = o;
3776
3787
  },
@@ -3781,7 +3792,7 @@ const yi = function(t) {
3781
3792
  }
3782
3793
  };
3783
3794
  return e.watch = e.mounted, e;
3784
- }, $i = function(t) {
3795
+ }, _i = function(t) {
3785
3796
  const e = {
3786
3797
  name: "t",
3787
3798
  _fn: [],
@@ -3793,13 +3804,13 @@ const yi = function(t) {
3793
3804
  const l = n[a];
3794
3805
  if (l) {
3795
3806
  const u = typeof l == "object";
3796
- let f = ($) => {
3797
- let _ = t.t(u ? l.attr : l, u ? l.params : null, $);
3807
+ let f = (y) => {
3808
+ let v = t.t(u ? l.attr : l, u ? l.params : null, y);
3798
3809
  const w = u && l.modify ? i : r.getProp();
3799
- a === "child" ? w.children ? w.children[0] = _ : w.children = [_] : re(w, a, _), s.sync(i);
3800
- }, p = ($) => f($);
3810
+ a === "child" ? w.children ? k(w.children, 0, v) : k(w, "children", [v]) : ee(w, a, v), s.sync(i);
3811
+ }, p = (y) => f(y);
3801
3812
  const m = t.watchLoadData(p);
3802
- f = ue(f, l.wait || 300), l.watch !== !1 ? o.push(m) : m();
3813
+ f = le(f, l.wait || 300), l.watch !== !1 ? o.push(m) : m();
3803
3814
  }
3804
3815
  }), this._fn[r.id] = o;
3805
3816
  },
@@ -3810,20 +3821,20 @@ const yi = function(t) {
3810
3821
  }
3811
3822
  };
3812
3823
  return e.watch = e.loaded, e;
3813
- }, Ut = {
3824
+ }, Ht = {
3814
3825
  name: "componentValidate",
3815
3826
  load(t, e, r) {
3816
3827
  let i = t.getValue();
3817
3828
  if (!i || i.method === !1)
3818
3829
  t.clearProp(), r.clearValidateState([e.field]);
3819
3830
  else {
3820
- d.Object(i) || (i = { method: i });
3831
+ h.Object(i) || (i = { method: i });
3821
3832
  const s = i.method;
3822
- delete i.method, t.getProp().validate = [N(v({}, i), {
3833
+ delete i.method, t.getProp().validate = [U(b({}, i), {
3823
3834
  validator(...n) {
3824
- const o = ae(e);
3835
+ const o = oe(e);
3825
3836
  if (o)
3826
- return r.exec(o.id, d.String(s) ? s : "formCreateValidate", ...n, {
3837
+ return r.exec(o.id, h.String(s) ? s : "formCreateValidate", ...n, {
3827
3838
  attr: t,
3828
3839
  rule: e,
3829
3840
  api: r
@@ -3833,26 +3844,26 @@ const yi = function(t) {
3833
3844
  }
3834
3845
  },
3835
3846
  watch(...t) {
3836
- Ut.load(...t);
3847
+ Ht.load(...t);
3837
3848
  }
3838
- }, vi = function(t) {
3849
+ }, Ci = function(t) {
3839
3850
  function e(s) {
3840
- return d.String(s) && (s = {
3851
+ return h.String(s) && (s = {
3841
3852
  action: s,
3842
3853
  to: "options"
3843
3854
  }), s;
3844
3855
  }
3845
3856
  function r(s, n, o) {
3846
3857
  let a = s.value;
3847
- i.deleted(s), d.Function(a) && (a = a(n, o)), a = e(a);
3858
+ i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
3848
3859
  const l = (p) => {
3849
- p === void 0 ? s.clearProp() : re(s.getProp(), a.to || "options", p), o.sync(n);
3860
+ p === void 0 ? s.clearProp() : ee(s.getProp(), a.to || "options", p), o.sync(n);
3850
3861
  };
3851
3862
  if (!a || !a.action && !a.key) {
3852
3863
  l(void 0);
3853
3864
  return;
3854
3865
  }
3855
- if (a = G(a), a.to || (a.to = "options"), a.key) {
3866
+ if (a = J(a), a.to || (a.to = "options"), a.key) {
3856
3867
  const p = t.$handle.options.globalData[a.key];
3857
3868
  if (!p) {
3858
3869
  l(void 0);
@@ -3862,38 +3873,38 @@ const yi = function(t) {
3862
3873
  l(p.data);
3863
3874
  return;
3864
3875
  } else
3865
- a = v(v({}, a), p);
3876
+ a = b(b({}, a), p);
3866
3877
  }
3867
3878
  const u = a.onError, f = () => {
3868
3879
  if (!s.getValue())
3869
3880
  return s.clearProp(), o.sync(n), !0;
3870
3881
  };
3871
- i._fn[s.id] = t.watchLoadData(ue((p, m) => {
3882
+ i._fn[s.id] = t.watchLoadData(le((p, m) => {
3872
3883
  if (m && a.watch === !1)
3873
3884
  return i._fn[s.id]();
3874
- const $ = t.$handle.loadFetchVar(G(a), p), _ = N(v({
3885
+ const y = t.$handle.loadFetchVar(J(a), p), v = U(b({
3875
3886
  headers: {}
3876
- }, $), {
3877
- onSuccess(w, D) {
3887
+ }, y), {
3888
+ onSuccess(w, j) {
3878
3889
  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);
3890
+ let Z = (L) => j ? L : R(L, "data") ? L.data : L;
3891
+ const V = W(y.parse);
3892
+ h.Function(V) ? Z = V : V && h.String(V) && (Z = (L) => M(L, V)), l(Z(w, n, o)), o.sync(n);
3882
3893
  },
3883
3894
  onError(w) {
3884
- l(void 0), !f() && (u || ((D) => Ze(D.message || "fetch fail " + $.action)))(w, n, o);
3895
+ l(void 0), !f() && (u || ((j) => xe(j.message || "fetch fail " + y.action)))(w, n, o);
3885
3896
  }
3886
3897
  });
3887
- t.$handle.beforeFetch(_, { rule: n, api: o }).then(() => {
3888
- if (d.Function($.action)) {
3889
- $.action(n, o).then((w) => {
3890
- _.onSuccess(w, !0);
3898
+ t.$handle.beforeFetch(v, { rule: n, api: o }).then(() => {
3899
+ if (h.Function(y.action)) {
3900
+ y.action(n, o).then((w) => {
3901
+ v.onSuccess(w, !0);
3891
3902
  }).catch((w) => {
3892
- _.onError(w);
3903
+ v.onError(w);
3893
3904
  });
3894
3905
  return;
3895
3906
  }
3896
- F(() => t.create.fetch(_, { inject: s, rule: n, api: o }));
3907
+ F(() => t.create.fetch(v, { inject: s, rule: n, api: o }));
3897
3908
  });
3898
3909
  }, a.wait || 600));
3899
3910
  }
@@ -3911,13 +3922,13 @@ const yi = function(t) {
3911
3922
  }
3912
3923
  };
3913
3924
  return i;
3914
- }, bi = {
3915
- fetch: vi,
3916
- loadData: yi,
3917
- t: $i,
3918
- componentValidate: Ut
3925
+ }, wi = {
3926
+ fetch: Ci,
3927
+ loadData: bi,
3928
+ t: _i,
3929
+ componentValidate: Ht
3919
3930
  };
3920
- function _i(t) {
3931
+ function Oi(t) {
3921
3932
  t = t || /* @__PURE__ */ new Map();
3922
3933
  const e = {
3923
3934
  $on(r, i) {
@@ -3941,17 +3952,17 @@ function _i(t) {
3941
3952
  };
3942
3953
  return e;
3943
3954
  }
3944
- const Ci = "html", wi = {
3945
- name: Ci,
3955
+ const Fi = "html", ki = {
3956
+ name: Fi,
3946
3957
  loadChildren: !1,
3947
3958
  render(t, e) {
3948
3959
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
3949
3960
  },
3950
3961
  renderChildren(t) {
3951
- return Array.isArray(t) ? t.filter((e) => d.String(e)).join("") : "";
3962
+ return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
3952
3963
  }
3953
3964
  };
3954
- function Oi(t) {
3965
+ function Ri(t) {
3955
3966
  t = t + "=";
3956
3967
  const r = decodeURIComponent(document.cookie).split(";");
3957
3968
  for (let i = 0; i < r.length; i++) {
@@ -3969,7 +3980,7 @@ function Oi(t) {
3969
3980
  }
3970
3981
  return null;
3971
3982
  }
3972
- function ki(t) {
3983
+ function Si(t) {
3973
3984
  const e = localStorage.getItem(t);
3974
3985
  if (e)
3975
3986
  try {
@@ -3979,30 +3990,30 @@ function ki(t) {
3979
3990
  }
3980
3991
  return null;
3981
3992
  }
3982
- function qt(t, e) {
3993
+ function Jt(t, e) {
3983
3994
  if (!e)
3984
3995
  return null;
3985
3996
  const r = e.split(".");
3986
3997
  let i = t(r.shift());
3987
3998
  return r.length ? i == null ? null : M(i, r) : i;
3988
3999
  }
3989
- function Fi(t) {
3990
- return qt(Oi, t);
4000
+ function Ei(t) {
4001
+ return Jt(Ri, t);
3991
4002
  }
3992
- function Ri(t) {
3993
- return qt(ki, t);
4003
+ function Di(t) {
4004
+ return Jt(Si, t);
3994
4005
  }
3995
- function Si(t, e) {
4006
+ function ji(t, e) {
3996
4007
  let r;
3997
4008
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
3998
4009
  }
3999
- function Le() {
4000
- return Si("name", ...arguments);
4010
+ function Ne() {
4011
+ return ji("name", ...arguments);
4001
4012
  }
4002
- function Ei(t) {
4003
- return !t || !t.el ? window.document.body : d.Element(t.el) ? t.el : document.querySelector(t.el);
4013
+ function Ii(t) {
4014
+ return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
4004
4015
  }
4005
- function Di(t, e) {
4016
+ function Ai(t, e) {
4006
4017
  const r = new Vue({
4007
4018
  data() {
4008
4019
  return { rule: t, option: e || {} };
@@ -4013,79 +4024,79 @@ function Di(t, e) {
4013
4024
  });
4014
4025
  return r.$mount(), r;
4015
4026
  }
4016
- function ji(t) {
4027
+ function Vi(t) {
4017
4028
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4018
- Rt.push(...e), Xe.push(...r), Qe.push(...i), Pt([...e, ...r, ...i]);
4029
+ Dt.push(...e), Ze.push(...r), Ye.push(...i), Tt([...e, ...r, ...i]);
4019
4030
  }
4020
- let Ii = 1;
4021
- const T = {};
4022
- function Gt(t) {
4031
+ let Pi = 1;
4032
+ const N = {}, Oe = Symbol("defValue");
4033
+ function Wt(t) {
4023
4034
  const e = {
4024
- [Be.name]: Be
4035
+ [Te.name]: Te
4025
4036
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4026
4037
  t.extendApi
4027
- ], u = v({}, bi), f = Jr();
4038
+ ], u = b({}, wi), f = Kr();
4028
4039
  let p = { global: {} };
4029
- const m = te({}), $ = mi(), _ = {}, w = t.isMobile === !0, D = {};
4030
- ji(t.attrs || {});
4040
+ const m = x({}), y = $i(), v = {}, w = t.isMobile === !0, j = {};
4041
+ Vi(t.attrs || {});
4031
4042
  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();
4043
+ const d = N[c];
4044
+ if (Array.isArray(d))
4045
+ return d.map((g) => g.api());
4046
+ if (d)
4047
+ return d.api();
4037
4048
  }
4038
- function A(c) {
4049
+ function V(c) {
4039
4050
  o.push(c);
4040
4051
  }
4041
- function B() {
4042
- const c = Le(...arguments);
4052
+ function L() {
4053
+ const c = Ne(...arguments);
4043
4054
  c.id && c.prop && (i[c.id] = c.prop);
4044
4055
  }
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), {
4056
+ function je() {
4057
+ const c = Ne(...arguments);
4058
+ c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(b({}, c.prop), {
4048
4059
  name: c.id
4049
4060
  }));
4050
4061
  }
4051
4062
  function $e(c) {
4052
- $.use(c);
4063
+ y.use(c);
4053
4064
  }
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);
4065
+ function O() {
4066
+ const c = Ne(...arguments);
4067
+ if (!c.id || !c.prop) return ke;
4068
+ const d = q(c.id), g = c.prop, $ = g.merge === !0 ? r[d] : void 0;
4069
+ r[d] = we(g, $ || ke), f[d] = A(d), g.maker && _(f, g.maker);
4059
4070
  }
4060
- function S(c, h) {
4071
+ function E(c, d) {
4061
4072
  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];
4073
+ if (h.String(c)) {
4074
+ if (g = c, d === void 0)
4075
+ return ["form-create", "formcreate"].indexOf(g) > -1 ? P() : e[g];
4065
4076
  } 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);
4077
+ g = q(c.name), d = c;
4078
+ if (!g || !d) return;
4079
+ const $ = q(g);
4080
+ e[g] = d, e[$] = d, delete y.aliasMap[g], delete y.aliasMap[$], delete r[g], delete r[$], d.formCreateParser && O(g, d.formCreateParser);
4070
4081
  }
4071
- function V() {
4072
- return Br(Ie, e, i);
4082
+ function P() {
4083
+ return Nr(Ve, e, i);
4073
4084
  }
4074
- function ne() {
4075
- return Be;
4085
+ function re() {
4086
+ return Te;
4076
4087
  }
4077
- function ve(c, h) {
4078
- return d.Function(c.install) ? c.install(se, h) : d.Function(c) && c(se, h), this;
4088
+ function ve(c, d) {
4089
+ return h.Function(c.install) ? c.install(ie, d) : h.Function(c) && c(ie, d), this;
4079
4090
  }
4080
- function se(c, h, g) {
4081
- let y = Di(c, h || {});
4082
- const C = y.$refs.fc.formCreate;
4083
- return C.$parent = g, Ei(C.options).appendChild(y.$el), C.api();
4091
+ function ie(c, d, g) {
4092
+ let $ = Ai(c, d || {});
4093
+ const C = $.$refs.fc.formCreate;
4094
+ return C.$parent = g, Ii(C.options).appendChild($.$el), C.api();
4084
4095
  }
4085
- Ce(se, D);
4086
- function Jt(c) {
4087
- let h = v({}, t);
4088
- return c ? h.inherit = {
4096
+ we(ie, j);
4097
+ function Kt(c) {
4098
+ let d = b({}, t);
4099
+ return c ? d.inherit = {
4089
4100
  components: e,
4090
4101
  parsers: r,
4091
4102
  directives: i,
@@ -4093,68 +4104,68 @@ function Gt(t) {
4093
4104
  providers: u,
4094
4105
  useApps: o,
4095
4106
  maker: f,
4096
- formulas: _,
4107
+ formulas: v,
4097
4108
  loadData: m
4098
- } : delete h.inherit, Gt(h);
4109
+ } : delete d.inherit, Wt(d);
4099
4110
  }
4100
- function Wt(c, h) {
4101
- s[c] = h;
4111
+ function Xt(c, d) {
4112
+ s[c] = d;
4102
4113
  }
4103
- function zt(c, h) {
4104
- _[c] = h;
4114
+ function Qt(c, d) {
4115
+ v[c] = d;
4105
4116
  }
4106
- function Kt(c, h) {
4107
- 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 });
4117
+ function Zt(c, d) {
4118
+ const g = n[c] || {}, $ = g.parsers || {};
4119
+ d.parsers && Object.keys(d.parsers).forEach((C) => {
4120
+ $[C] = we(d.parsers[C], ke);
4121
+ }), d.name = c, n[c] = U(b(b({}, g), d), { parsers: $ });
4111
4122
  }
4112
4123
  function be(c) {
4113
- c && Object.keys(T).forEach((h) => {
4114
- (Array.isArray(T[h]) ? T[h] : [T[h]]).forEach((y) => {
4115
- y.bus.$emit("$loadData." + c);
4124
+ c && Object.keys(N).forEach((d) => {
4125
+ (Array.isArray(N[d]) ? N[d] : [N[d]]).forEach(($) => {
4126
+ $.bus.$emit("$loadData." + c);
4116
4127
  });
4117
4128
  });
4118
4129
  }
4119
- function De(c, h) {
4120
- re(m, c, h), be(c);
4130
+ function Ie(c, d) {
4131
+ ee(m, c, d), be(c);
4121
4132
  }
4122
- function je(c, h) {
4123
- const g = (...y) => F(() => h(...y));
4124
- g._driver = !0, De(c, g);
4133
+ function Ae(c, d) {
4134
+ const g = (...$) => F(() => d(...$));
4135
+ g._driver = !0, Ie(c, g);
4125
4136
  }
4126
- function tt(c, h) {
4137
+ function it(c, d) {
4127
4138
  const g = (c || "").split(".");
4128
4139
  c = g.shift();
4129
- const y = g.join(".");
4130
- if (R(m, c)) {
4140
+ const $ = g.join(".");
4141
+ if (R(m, c) || k(m, c, Oe), m[c] !== Oe) {
4131
4142
  let C = m[c];
4132
- return C && C._driver ? C = C(y) : g.length && (C = M(C, g)), C == null || C === "" ? h : C;
4143
+ return C && C._driver ? C = C($) : g.length && (C = M(C, g)), C == null || C === "" ? d : C;
4133
4144
  } else
4134
- return h;
4145
+ return d;
4135
4146
  }
4136
- function Xt(c) {
4147
+ function Yt(c) {
4137
4148
  l.push(c);
4138
4149
  }
4139
- function Qt(c) {
4150
+ function xt(c) {
4140
4151
  delete m[c], be(c);
4141
4152
  }
4142
- function Zt(c, h) {
4143
- a.push({ name: c, callback: h });
4153
+ function er(c, d) {
4154
+ a.push({ name: c, callback: d });
4144
4155
  }
4145
- function Ie(c) {
4146
- b(this, {
4147
- id: Ii++,
4148
- create: se,
4156
+ function Ve(c) {
4157
+ _(this, {
4158
+ id: Pi++,
4159
+ create: ie,
4149
4160
  vm: c,
4150
- manager: gi(t.manager),
4161
+ manager: vi(t.manager),
4151
4162
  parsers: r,
4152
4163
  providers: u,
4153
4164
  modelFields: s,
4154
- formulas: _,
4165
+ formulas: v,
4155
4166
  isMobile: w,
4156
4167
  rules: c.$options.propsData.rule,
4157
- name: c.$options.propsData.name || Se(),
4168
+ name: c.$options.propsData.name || De(),
4158
4169
  inFor: c.$options.propsData.inFor,
4159
4170
  prop: {
4160
4171
  components: e,
@@ -4162,114 +4173,109 @@ function Gt(t) {
4162
4173
  },
4163
4174
  drivers: n,
4164
4175
  renderDriver: null,
4176
+ get: null,
4165
4177
  refreshData: be,
4166
4178
  loadData: m,
4167
- CreateNode: $,
4168
- bus: new _i(),
4179
+ CreateNode: y,
4180
+ bus: new Oi(),
4169
4181
  unwatch: [],
4170
- options: cr({}),
4182
+ options: pr({}),
4171
4183
  extendApiFn: l,
4172
4184
  fetchCache: /* @__PURE__ */ new WeakMap(),
4173
- tmpData: te({})
4174
- }), a.forEach((h) => {
4175
- this.bus.$on(h.name, h.callback);
4185
+ tmpData: x({})
4186
+ }), a.forEach((d) => {
4187
+ this.bus.$on(d.name, d.callback);
4176
4188
  }), H(() => {
4177
- P(this.options, () => {
4189
+ B(this.options, () => {
4178
4190
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4179
4191
  }, { 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);
4192
+ }), _(c.$options.components, e), _(c.$options.directives, i), this.$handle = new z(this), this.name && (this.inFor ? (N[this.name] || (N[this.name] = []), N[this.name].push(this)) : N[this.name] = this);
4181
4193
  }
4182
- Ie.isMobile = w, b(Ie.prototype, {
4194
+ Ve.isMobile = w, _(Ve.prototype, {
4183
4195
  init() {
4184
- this.isSub() && this.unwatch.push(P(() => this.vm.parent.fc.options.value, () => {
4196
+ this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4185
4197
  this.initOptions(), this.$handle.api.refresh();
4186
4198
  }, { 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
4199
  },
4188
- targetFormDriver(c, ...h) {
4200
+ targetFormDriver(c, ...d) {
4189
4201
  if (this.renderDriver && this.renderDriver[c])
4190
- return F(() => this.renderDriver[c](...h));
4202
+ return F(() => this.renderDriver[c](...d));
4191
4203
  },
4192
- t(c, h, g) {
4193
- 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]);
4197
- }), y);
4204
+ t(c, d, g) {
4205
+ let $ = g ? g("$t." + c) : this.globalLanguageDriver(c);
4206
+ return $ == null && ($ = ""), $ && d && Object.keys(d).forEach((C) => {
4207
+ const S = new RegExp(`{${C}}`, "g");
4208
+ $ = $.replace(S, d[C]);
4209
+ }), $;
4198
4210
  },
4199
4211
  globalDataDriver(c) {
4200
- let h = c.split(".");
4201
- const g = h.shift(), y = this.options.value.globalData && this.options.value.globalData[g];
4202
- if (y) {
4203
- if (y.type === "static")
4204
- return M(y.data, h);
4212
+ let d = c.split(".");
4213
+ const g = d.shift(), $ = this.options.value.globalData && this.options.value.globalData[g];
4214
+ if ($) {
4215
+ if ($.type === "static")
4216
+ return M($.data, d);
4205
4217
  {
4206
4218
  let C;
4207
- const O = this.fetchCache.get(y);
4208
- if (O) {
4209
- if (O.status && (C = M(O.data, h)), !O.loading)
4219
+ const S = this.fetchCache.get($);
4220
+ if (S) {
4221
+ if (S.status && (C = M(S.data, d)), !S.loading)
4210
4222
  return C;
4211
- O.loading = !1, this.fetchCache.set(y, O);
4223
+ S.loading = !1, this.fetchCache.set($, S);
4212
4224
  } else
4213
- 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();
4225
+ this.fetchCache.set($, { status: !1 });
4226
+ const I = le(() => {
4227
+ ue();
4228
+ const T = this.fetchCache.get($);
4229
+ this.options.value.globalData && Object.values(this.options.value.globalData).indexOf($) !== -1 ? (T && (T.loading = !0, this.fetchCache.set($, T)), this.bus.$emit("$loadData.$globalData." + g)) : this.fetchCache.delete($);
4230
+ }, $.wait || 600), de = (T) => {
4231
+ this.fetchCache.set($, { status: !0, data: T }), this.bus.$emit("$loadData.$globalData." + g);
4232
+ }, pe = (T, ne) => {
4233
+ if (ne && $.watch === !1)
4234
+ return ue();
4235
+ if (ne) {
4236
+ I();
4225
4237
  return;
4226
4238
  }
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);
4239
+ const se = this.$handle.loadFetchVar(Je($), T);
4240
+ this.$handle.api.fetch(se).then((Ce) => {
4241
+ de(Ce);
4242
+ }).catch((Ce) => {
4243
+ de(null);
4232
4244
  });
4233
- }, x = this.watchLoadData(fe);
4234
- return this.unwatch.push(x), C;
4245
+ }, ue = this.watchLoadData(pe);
4246
+ return this.unwatch.push(ue), C;
4235
4247
  }
4236
4248
  }
4237
4249
  },
4238
4250
  getLocale() {
4239
4251
  let c = this.vm.top.$props.locale;
4240
- return c && typeof c == "object" ? c.name : typeof c == "string" ? c : this.vm.$i18n && this.vm.$i18n.locale ? this.vm.$i18n.locale : "zh-cn";
4252
+ return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4241
4253
  },
4242
4254
  globalLanguageDriver(c) {
4243
- let h = this.vm.top.$props.locale, g;
4244
- if (h && typeof h == "object" && (g = M(h, c)), g == null) {
4245
- const y = this.options.value.language || {}, C = this.getLocale();
4246
- g = M(y[C], c);
4255
+ let d = this.vm.top.$props.locale, g;
4256
+ if (d && typeof d == "object" && (g = M(d, c)), g == null) {
4257
+ const $ = this.options.value.language || {}, C = this.getLocale();
4258
+ g = M($[C], c);
4247
4259
  }
4248
4260
  return g;
4249
4261
  },
4250
4262
  globalVarDriver(c) {
4251
- const g = c.split(".").shift(), y = this.options.value.globalVariable && this.options.value.globalVariable[g];
4252
- 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
- }
4263
+ let d = c.split(".");
4264
+ const g = d.shift(), $ = this.options.value.globalVariable && this.options.value.globalVariable[g];
4265
+ if ($) {
4266
+ const C = h.Function($) ? $ : W($.handle);
4267
+ if (C)
4268
+ return M(F(() => C(this.get || ((...S) => this.getLoadData(...S)), this.$handle.api)), d);
4263
4269
  }
4264
4270
  },
4265
- setData(c, h, g) {
4266
- g ? De(c, h) : (re(this.vm.top.fc.tmpData, c, h), this.bus.$emit("$loadData." + c));
4271
+ setData(c, d, g) {
4272
+ g ? Ie(c, d) : (ee(this.vm.top.fc.tmpData, c, d), this.bus.$emit("$loadData." + c));
4267
4273
  },
4268
- getLoadData(c, h) {
4274
+ getLoadData(c, d) {
4269
4275
  let g = null;
4270
4276
  if (c != null) {
4271
- let y = c.split(".");
4272
- const C = y.shift();
4277
+ let $ = c.split(".");
4278
+ const C = $.shift();
4273
4279
  if (C === "$topForm")
4274
4280
  g = this.$handle.api.top.formData();
4275
4281
  else if (C === "$form")
@@ -4277,69 +4283,69 @@ function Gt(t) {
4277
4283
  else if (C === "$options")
4278
4284
  g = this.options.value;
4279
4285
  else if (C === "$globalData")
4280
- g = this.globalDataDriver(y.join(".")), y = [];
4286
+ g = this.globalDataDriver($.join(".")), $ = [];
4281
4287
  else if (C === "$var")
4282
- g = this.globalVarDriver(y.join(".")), y = [];
4288
+ g = this.globalVarDriver($.join(".")), $ = [];
4283
4289
  else if (C === "$locale")
4284
- g = this.getLocale(), y = [];
4290
+ g = this.getLocale(), $ = [];
4285
4291
  else if (C === "$t")
4286
- g = this.globalLanguageDriver(y.join(".")), y = [];
4292
+ g = this.globalLanguageDriver($.join(".")), $ = [];
4287
4293
  else {
4288
- const O = this.vm.top.fc.tmpData;
4289
- g = R(O, C) ? M(O, c) : tt(c), y = [];
4294
+ const S = this.vm.top.fc.tmpData;
4295
+ R(S, C) || k(S, C, Oe), g = S[C] !== Oe ? M(S, c) : it(c), $ = [];
4290
4296
  }
4291
- g && y.length && (g = M(g, y));
4297
+ g && $.length && (g = M(g, $));
4292
4298
  }
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));
4299
+ return g == null || g === "" ? d : g;
4300
+ },
4301
+ watchLoadData(c, d) {
4302
+ let g = {};
4303
+ const $ = (I) => {
4304
+ this.get || (this.get = C), F(() => {
4305
+ c(C, I);
4306
+ }), this.get === C && (this.get = void 0);
4307
+ }, C = (I, de) => {
4308
+ if (g[I])
4309
+ return g[I].val;
4310
+ const pe = ce(() => this.getLoadData(I, de)), ue = I.split("."), T = ue.shift(), ne = ue.shift() || "", se = le(() => {
4311
+ const Pe = this.getLoadData(I, de);
4312
+ if (g[I])
4313
+ JSON.stringify(Pe) !== JSON.stringify(g[I].val) && (g[I].val = Pe, $(!0));
4308
4314
  else return;
4309
- }, 0), Ae = P(Y, (ce) => {
4310
- ee();
4315
+ }, d || 0), Ce = B(pe, (Pe) => {
4316
+ se();
4311
4317
  });
4312
- return this.bus.$on("$loadData." + x, ee), L && this.bus.$on("$loadData." + x + "." + L, ee), h[O] = {
4318
+ return this.bus.$on("$loadData." + T, se), ne && this.bus.$on("$loadData." + T + "." + ne, se), g[I] = {
4313
4319
  fn: () => {
4314
- this.bus.$off("$loadData." + x, ee), L && this.bus.$off("$loadData." + x + "." + L, ee), Ae();
4320
+ this.bus.$off("$loadData." + T, se), ne && this.bus.$off("$loadData." + T + "." + ne, se), Ce();
4315
4321
  },
4316
- val: Y.value
4317
- }, Y.value;
4322
+ val: pe.value
4323
+ }, pe.value;
4318
4324
  };
4319
- g(!1);
4320
- const C = () => {
4321
- Object.keys(h).forEach((O) => h[O].fn()), h = {};
4325
+ $(!1);
4326
+ const S = () => {
4327
+ Object.keys(g).forEach((I) => g[I].fn()), g = {};
4322
4328
  };
4323
- return this.unwatch.push(C), C;
4329
+ return this.unwatch.push(S), S;
4324
4330
  },
4325
4331
  isSub() {
4326
4332
  return this.vm.parent && this.vm.extendOption;
4327
4333
  },
4328
4334
  initOptions() {
4329
4335
  this.options.value = {};
4330
- let c = v({
4336
+ let c = b({
4331
4337
  formData: {},
4332
4338
  submitBtn: {},
4333
4339
  resetBtn: {},
4334
4340
  globalEvent: {},
4335
4341
  globalData: {}
4336
- }, G(p));
4342
+ }, J(p));
4337
4343
  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
4344
  },
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;
4345
+ mergeOptions(c, d, g) {
4346
+ return d = b({}, d || {}), g && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach(($) => {
4347
+ delete d[$];
4348
+ }), d.global && (c.global = Hr(c.global, d.global), delete d.global), this.$handle.$manager.mergeOptions([d], c), c;
4343
4349
  },
4344
4350
  updateOptions(c) {
4345
4351
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4356,10 +4362,10 @@ function Gt(t) {
4356
4362
  unmount() {
4357
4363
  if (this.name)
4358
4364
  if (this.inFor) {
4359
- const c = T[this.name].indexOf(this);
4360
- T[this.name].splice(c, 1);
4365
+ const c = N[this.name].indexOf(this);
4366
+ N[this.name].splice(c, 1);
4361
4367
  } else
4362
- delete T[this.name];
4368
+ delete N[this.name];
4363
4369
  a.forEach((c) => {
4364
4370
  this.bus.$off(c.name, c.callback);
4365
4371
  }), this.tmpData = {}, this.unwatch.forEach((c) => c()), this.unwatch = [], this.$handle.reloadRule([]);
@@ -4368,91 +4374,91 @@ function Gt(t) {
4368
4374
  this.$handle.bindNextTick(() => this.bus.$emit("next-tick", this.$handle.api));
4369
4375
  }
4370
4376
  });
4371
- function rt(c) {
4372
- b(c, {
4377
+ function nt(c) {
4378
+ _(c, {
4373
4379
  version: t.version,
4374
4380
  ui: t.ui,
4375
4381
  isMobile: w,
4376
- extendApi: Xt,
4377
- getData: tt,
4378
- setDataDriver: je,
4379
- setData: De,
4380
- removeData: Qt,
4382
+ extendApi: Yt,
4383
+ getData: it,
4384
+ setDataDriver: Ae,
4385
+ setData: Ie,
4386
+ removeData: xt,
4381
4387
  refreshData: be,
4382
4388
  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,
4389
+ component: E,
4390
+ directive: L,
4391
+ setModelField: Xt,
4392
+ setFormula: Qt,
4393
+ setDriver: Zt,
4394
+ register: je,
4395
+ $vnode: re,
4396
+ parser: O,
4391
4397
  use: ve,
4392
- factory: Jt,
4398
+ factory: Kt,
4393
4399
  componentAlias: $e,
4394
- copyRule: jt,
4395
- copyRules: It,
4396
- mergeRule: X,
4397
- fetch: Lt,
4398
- $form: V,
4399
- parseFn: Q,
4400
- parseJson: Dt,
4401
- toJson: Ye,
4402
- useApp: A,
4400
+ copyRule: Vt,
4401
+ copyRules: Pt,
4402
+ mergeRule: Q,
4403
+ fetch: Mt,
4404
+ $form: P,
4405
+ parseFn: W,
4406
+ parseJson: At,
4407
+ toJson: et,
4408
+ useApp: V,
4403
4409
  getApi: Z,
4404
- on: Zt
4410
+ on: er
4405
4411
  });
4406
4412
  }
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);
4413
+ function tr(c) {
4414
+ _(c, {
4415
+ create: ie,
4416
+ install(d, g) {
4417
+ if (p = b(b({}, p), g || {}), d._installedFormCreate === !0) return;
4418
+ d._installedFormCreate = !0;
4419
+ const $ = function(S, I = {}) {
4420
+ return ie(S, I, this);
4415
4421
  };
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));
4422
+ nt($), d.prototype.$formCreate = $;
4423
+ const C = P();
4424
+ d.component(C.name, C), d.component("FcFragment", re()), o.forEach((S) => {
4425
+ F(() => S(c, d));
4420
4426
  });
4421
4427
  }
4422
4428
  });
4423
4429
  }
4424
- if (rt(D), Yt(D), je("$cookie", Fi), je("$localStorage", Ri), $.use({ fragment: "fcFragment" }), t.install && se.use(t), k(wi), t.inherit) {
4430
+ if (nt(j), tr(j), Ae("$cookie", Ei), Ae("$localStorage", Di), y.use({ fragment: "fcFragment" }), t.install && ie.use(t), O(ki), t.inherit) {
4425
4431
  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);
4432
+ 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
4433
  }
4428
- const _e = V();
4429
- return Ce(_e, D), Object.defineProperties(_e, {
4434
+ const _e = P();
4435
+ return we(_e, j), Object.defineProperties(_e, {
4430
4436
  fetch: {
4431
4437
  get() {
4432
- return D.fetch;
4438
+ return j.fetch;
4433
4439
  },
4434
4440
  set(c) {
4435
- D.fetch = c;
4441
+ j.fetch = c;
4436
4442
  }
4437
4443
  }
4438
- }), _e.util = D, _e;
4444
+ }), _e.util = j, _e;
4439
4445
  }
4440
- function Te(t) {
4441
- if (d.Date(t))
4446
+ function Me(t) {
4447
+ if (h.Date(t))
4442
4448
  return t;
4443
4449
  {
4444
4450
  let e = new Date(t);
4445
4451
  return e.toString() === "Invalid Date" ? t : e;
4446
4452
  }
4447
4453
  }
4448
- const gt = "datePicker", Ai = {
4449
- name: gt,
4454
+ const vt = "datePicker", Bi = {
4455
+ name: vt,
4450
4456
  maker: function() {
4451
- return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = I(gt, { type: e.toLowerCase() }), t), {});
4457
+ return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = A(vt, { type: e.toLowerCase() }), t), {});
4452
4458
  }(),
4453
4459
  mergeProp(t) {
4454
4460
  let e = t.prop.props;
4455
- e.startDate && (e.startDate = e.startDate && Te(e.startDate));
4461
+ e.startDate && (e.startDate = e.startDate && Me(e.startDate));
4456
4462
  },
4457
4463
  isRange(t) {
4458
4464
  return t.type.includes("range") || t.multiple;
@@ -4471,60 +4477,60 @@ const gt = "datePicker", Ai = {
4471
4477
  return this.isRange(e.el) ? r : r[0];
4472
4478
  } else {
4473
4479
  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;
4480
+ 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
4481
  }
4476
4482
  },
4477
4483
  mounted(t) {
4478
4484
  t.rule.value = this.toValue(t.$handle.getFormData(t), t);
4479
4485
  }
4480
- }, Ne = "hidden", Vi = {
4481
- name: Ne,
4486
+ }, Ue = "hidden", Li = {
4487
+ name: Ue,
4482
4488
  maker: {
4483
- [Ne]: (t, e) => I(Ne)("", t, e)
4489
+ [Ue]: (t, e) => A(Ue)("", t, e)
4484
4490
  },
4485
4491
  render() {
4486
4492
  return [];
4487
4493
  }
4488
- }, Me = "input", Pi = {
4489
- name: Me,
4494
+ }, qe = "input", Ti = {
4495
+ name: qe,
4490
4496
  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;
4497
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = A(qe, { type: r }), e), {});
4498
+ return t.idate = A(qe, { type: "date" }), t;
4493
4499
  }(),
4494
4500
  mergeProp(t) {
4495
4501
  let { props: e } = t.prop;
4496
4502
  e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4497
4503
  }
4498
- }, yt = "slider", Bi = {
4499
- name: yt,
4504
+ }, bt = "slider", Ni = {
4505
+ name: bt,
4500
4506
  maker: {
4501
- sliderRange: I(yt, { range: !0 })
4507
+ sliderRange: A(bt, { range: !0 })
4502
4508
  },
4503
4509
  toFormValue(t, e) {
4504
4510
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4505
4511
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4506
4512
  }
4507
- }, Li = {
4513
+ }, Mi = {
4508
4514
  name: "switch",
4509
4515
  mergeProp(t) {
4510
4516
  const e = t.prop.props.slot || {}, r = t.prop.scopedSlots || {};
4511
4517
  e.open && (r.open = () => e.open), e.close && (r.close = () => e.close), t.prop.scopedSlots = r;
4512
4518
  }
4513
- }, Ti = {
4519
+ }, Ui = {
4514
4520
  name: "FcRow",
4515
4521
  render(t, e) {
4516
4522
  return e.vNode.col({ props: { span: 24 } }, [
4517
4523
  e.vNode.row(e.prop, t)
4518
4524
  ]);
4519
4525
  }
4520
- }, Ni = [
4521
- Ai,
4522
- Vi,
4523
- Pi,
4526
+ }, qi = [
4524
4527
  Bi,
4525
4528
  Li,
4526
- Ti
4527
- ], Mi = {
4529
+ Ti,
4530
+ Ni,
4531
+ Mi,
4532
+ Ui
4533
+ ], Gi = {
4528
4534
  button: "iButton",
4529
4535
  icon: "Icon",
4530
4536
  slider: "Slider",
@@ -4551,21 +4557,21 @@ const gt = "datePicker", Ai = {
4551
4557
  array: "fcGroup",
4552
4558
  subForm: "fcSubForm",
4553
4559
  object: "fcSubForm"
4554
- }, Fe = {
4560
+ }, Se = {
4555
4561
  resetBtnType: "default",
4556
4562
  resetBtnIcon: "md-refresh",
4557
4563
  infoIcon: "ios-information-circle-outline"
4558
4564
  };
4559
- function Ui() {
4565
+ function Hi() {
4560
4566
  return {
4561
4567
  type: "poptip",
4562
4568
  trigger: "hover",
4563
4569
  placement: "top-start",
4564
4570
  wordWrap: !0,
4565
- icon: Fe.infoIcon
4571
+ icon: Se.infoIcon
4566
4572
  };
4567
4573
  }
4568
- function qi() {
4574
+ function Ji() {
4569
4575
  return {
4570
4576
  form: {
4571
4577
  inline: !1,
@@ -4587,9 +4593,9 @@ function qi() {
4587
4593
  click: void 0
4588
4594
  },
4589
4595
  resetBtn: {
4590
- type: Fe.resetBtnType,
4596
+ type: Se.resetBtnType,
4591
4597
  disabled: !1,
4592
- icon: Fe.resetBtnIcon,
4598
+ icon: Se.resetBtnIcon,
4593
4599
  innerText: "重置",
4594
4600
  loading: !1,
4595
4601
  show: !1,
@@ -4597,20 +4603,20 @@ function qi() {
4597
4603
  }
4598
4604
  };
4599
4605
  }
4600
- function $t(t, e) {
4601
- R(t, e) && d.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4606
+ function _t(t, e) {
4607
+ R(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4602
4608
  }
4603
- function z(t) {
4609
+ function K(t) {
4604
4610
  return t === !1;
4605
4611
  }
4606
- function Gi(t, e) {
4607
- R(t, e) && !d.Object(t[e]) && (t[e] = { show: !!t[e] });
4612
+ function Wi(t, e) {
4613
+ R(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4608
4614
  }
4609
- function Ue(t) {
4610
- const e = v({}, t);
4615
+ function Ge(t) {
4616
+ const e = b({}, t);
4611
4617
  return delete e.children, e;
4612
4618
  }
4613
- const Hi = {
4619
+ const zi = {
4614
4620
  validate() {
4615
4621
  const t = this.form();
4616
4622
  return t ? t.validate() : new Promise((e) => e());
@@ -4629,33 +4635,33 @@ const Hi = {
4629
4635
  },
4630
4636
  tidyOptions(t) {
4631
4637
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4632
- Gi(t, e);
4638
+ Wi(t, e);
4633
4639
  }), t;
4634
4640
  },
4635
4641
  tidyRule({ prop: t }) {
4636
- return $t(t, "title"), $t(t, "info"), t;
4642
+ return _t(t, "title"), _t(t, "info"), t;
4637
4643
  },
4638
4644
  mergeProp(t) {
4639
4645
  const e = {
4640
- info: Ui(),
4646
+ info: Hi(),
4641
4647
  title: {},
4642
4648
  col: { span: 24 },
4643
4649
  wrap: {}
4644
4650
  };
4645
4651
  ["info", "wrap", "col", "title"].forEach((r) => {
4646
- t.prop[r] = K([this.options[r] || {}, t.prop[r] || {}], e[r]);
4652
+ t.prop[r] = X([this.options[r] || {}, t.prop[r] || {}], e[r]);
4647
4653
  }), this.setSize(t.prop.props);
4648
4654
  },
4649
4655
  setSize(t) {
4650
4656
  !t.size && this.options.form.size && (t.size = this.options.form.size);
4651
4657
  },
4652
4658
  getDefaultOptions() {
4653
- return qi();
4659
+ return Ji();
4654
4660
  },
4655
4661
  update() {
4656
4662
  const t = this.options.form;
4657
4663
  this.rule = {
4658
- props: v({}, t),
4664
+ props: b({}, t),
4659
4665
  nativeOn: {
4660
4666
  submit: (e) => {
4661
4667
  e.preventDefault();
@@ -4668,20 +4674,20 @@ const Hi = {
4668
4674
  },
4669
4675
  beforeRender() {
4670
4676
  const { key: t, ref: e, $handle: r } = this;
4671
- b(this.rule, { key: t, ref: e }), b(this.rule.props, {
4677
+ _(this.rule, { key: t, ref: e }), _(this.rule.props, {
4672
4678
  model: r.formData
4673
4679
  });
4674
4680
  },
4675
4681
  render(t) {
4676
- return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, z(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
4682
+ return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, K(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
4677
4683
  },
4678
4684
  makeWrap(t, e) {
4679
4685
  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
4686
  delete r.wrap.title;
4681
- const u = z(r.wrap.show) ? e : this.$r(K([r.wrap, {
4682
- props: N(v({
4687
+ const u = K(r.wrap.show) ? e : this.$r(X([r.wrap, {
4688
+ props: U(b({
4683
4689
  labelWidth: o
4684
- }, Ue(r.wrap || {})), {
4690
+ }, Ge(r.wrap || {})), {
4685
4691
  prop: t.id,
4686
4692
  rules: t.injectValidate()
4687
4693
  }),
@@ -4689,40 +4695,40 @@ const Hi = {
4689
4695
  key: `${i}fi`,
4690
4696
  ref: t.wrapRef,
4691
4697
  type: "formItem"
4692
- }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
4693
- return a === !0 || z(l) || z(s.show) ? u : this.makeCol(r, i, [u]);
4698
+ }]), b({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
4699
+ return a === !0 || K(l) || K(s.show) ? u : this.makeCol(r, i, [u]);
4694
4700
  },
4695
4701
  isTitle(t) {
4696
4702
  if (this.options.form.title === !1) return !1;
4697
4703
  const e = t.title;
4698
- return !(!e.title && !e.native || z(e.show));
4704
+ return !(!e.title && !e.native || K(e.show));
4699
4705
  },
4700
4706
  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({
4707
+ const i = b({}, t.title), s = b({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
4702
4708
  title: r.refRule.__$title.value,
4703
4709
  rule: r.rule,
4704
4710
  options: this.options
4705
4711
  }) : r.refRule.__$title.value + (n.labelSuffix || n["label-suffix"] || "")];
4706
- if (!z(s.show) && (s.info || s.native) && !z(s.icon)) {
4712
+ if (!K(s.show) && (s.info || s.native) && !K(s.icon)) {
4707
4713
  const u = {
4708
4714
  type: s.type || "poptip",
4709
- props: Ue(s),
4715
+ props: Ge(s),
4710
4716
  key: `${e}pop`,
4711
4717
  slot: "label"
4712
4718
  };
4713
4719
  delete u.props.icon, delete u.props.show, delete u.props.info, delete u.props.align, delete u.props.native;
4714
4720
  const f = "content";
4715
- s.info && !R(u.props, f) && (u.props[f] = r.refRule.__$info.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(K([s, u]), [
4721
+ s.info && !R(u.props, f) && (u.props[f] = r.refRule.__$info.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(X([s, u]), [
4716
4722
  this.$r({
4717
4723
  type: "icon",
4718
- props: { type: s.icon === !0 ? Fe.infoIcon : s.icon, size: 16 },
4724
+ props: { type: s.icon === !0 ? Se.infoIcon : s.icon, size: 16 },
4719
4725
  style: "margin-top: -1px",
4720
4726
  key: `${e}i`
4721
4727
  })
4722
4728
  ]));
4723
4729
  }
4724
- const l = K([i, {
4725
- props: Ue(i),
4730
+ const l = X([i, {
4731
+ props: Ge(i),
4726
4732
  key: `${e}tit`,
4727
4733
  class: "fc-form-title",
4728
4734
  slot: i.slot || "label",
@@ -4750,7 +4756,7 @@ const Hi = {
4750
4756
  },
4751
4757
  makeFormBtn() {
4752
4758
  let t = [];
4753
- if (z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
4759
+ if (K(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), K(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
4754
4760
  return;
4755
4761
  const e = this.$r({
4756
4762
  type: "formItem",
@@ -4765,7 +4771,7 @@ const Hi = {
4765
4771
  }, [e]);
4766
4772
  },
4767
4773
  makeResetBtn() {
4768
- const t = v({}, this.options.resetBtn), e = t.innerText;
4774
+ const t = b({}, this.options.resetBtn), e = t.innerText;
4769
4775
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
4770
4776
  type: "button",
4771
4777
  props: t,
@@ -4781,7 +4787,7 @@ const Hi = {
4781
4787
  }, [e]);
4782
4788
  },
4783
4789
  makeSubmitBtn() {
4784
- const t = v({}, this.options.submitBtn), e = t.innerText;
4790
+ const t = b({}, this.options.submitBtn), e = t.innerText;
4785
4791
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
4786
4792
  type: "button",
4787
4793
  props: t,
@@ -4797,34 +4803,34 @@ const Hi = {
4797
4803
  key: `${this.key}b1`
4798
4804
  }, [e]);
4799
4805
  }
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);
4806
+ }, te = {}, Ki = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
4807
+ function Xi(t) {
4808
+ Ki.forEach((e) => {
4809
+ t[e] = A(e);
4804
4810
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
4805
4811
  }
4806
- function zi(t) {
4812
+ function Qi(t) {
4807
4813
  const e = "upload", r = {
4808
4814
  image: ["image", 0],
4809
4815
  file: ["file", 0],
4810
4816
  uploadFileOne: ["file", 1],
4811
4817
  uploadImageOne: ["image", 1]
4812
4818
  };
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;
4819
+ 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
4820
  }
4815
- function Ki(t) {
4821
+ function Zi(t) {
4816
4822
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
4817
- Object.keys(r).reduce((i, s) => (i[s] = I(e, { type: r[s] }), i), t);
4823
+ Object.keys(r).reduce((i, s) => (i[s] = A(e, { type: r[s] }), i), t);
4818
4824
  }
4819
- function Xi(t) {
4825
+ function Yi(t) {
4820
4826
  const e = "timePicker";
4821
- t.time = I(e, { type: "time" }), t.timeRange = I(e, { type: "timerange" });
4827
+ t.time = A(e, { type: "time" }), t.timeRange = A(e, { type: "timerange" });
4822
4828
  }
4823
- function Qi(t) {
4829
+ function xi(t) {
4824
4830
  const e = "select";
4825
- t.selectMultiple = I(e, { multiple: !0 }), t.selectOne = I(e, { multiple: !1 });
4831
+ t.selectMultiple = A(e, { multiple: !0 }), t.selectOne = A(e, { multiple: !1 });
4826
4832
  }
4827
- function Zi(t) {
4833
+ function en(t) {
4828
4834
  const e = "frame", r = {
4829
4835
  frameInputs: ["input", 0],
4830
4836
  frameFiles: ["file", 0],
@@ -4833,18 +4839,18 @@ function Zi(t) {
4833
4839
  frameFileOne: ["file", 1],
4834
4840
  frameImageOne: ["image", 1]
4835
4841
  };
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;
4842
+ 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
4843
  }
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;
4844
+ Xi(te);
4845
+ Qi(te);
4846
+ Zi(te);
4847
+ xi(te);
4848
+ en(te);
4849
+ Yi(te);
4850
+ function Ct(t, e) {
4851
+ return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
4846
4852
  }
4847
- function Yi(t, e) {
4853
+ function tn(t, e) {
4848
4854
  return {
4849
4855
  formEl() {
4850
4856
  return e.$manager.form();
@@ -4871,7 +4877,7 @@ function Yi(t, e) {
4871
4877
  const o = e.getFieldCtx(r);
4872
4878
  if (!o) return;
4873
4879
  const a = e.subForm[o.id], l = [e.$manager.validateField(o.id)];
4874
- q(a).forEach((u) => {
4880
+ G(a).forEach((u) => {
4875
4881
  l.push(u.validate());
4876
4882
  }), Promise.all(l).then(() => {
4877
4883
  s(null), i && i(null);
@@ -4920,36 +4926,36 @@ function Yi(t, e) {
4920
4926
  }
4921
4927
  },
4922
4928
  submitBtnProps: (r = {}) => {
4923
- let i = vt(e.options.submitBtn, !0);
4924
- b(i, r), e.options.submitBtn = i, t.refreshOptions();
4929
+ let i = Ct(e.options.submitBtn, !0);
4930
+ _(i, r), e.options.submitBtn = i, t.refreshOptions();
4925
4931
  },
4926
4932
  resetBtnProps: (r = {}) => {
4927
- let i = vt(e.options.resetBtn, !1);
4928
- b(i, r), e.options.resetBtn = i, t.refreshOptions();
4933
+ let i = Ct(e.options.resetBtn, !1);
4934
+ _(i, r), e.options.resetBtn = i, t.refreshOptions();
4929
4935
  },
4930
4936
  submit(r, i) {
4931
4937
  return new Promise((s, n) => {
4932
4938
  t.validate().then(() => {
4933
4939
  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);
4940
+ h.Function(r) && F(() => r(o, t)), h.Function(e.options.onSubmit) && F(() => e.options.onSubmit(o, t)), e.vm.emit("submit", o, t), s(o);
4935
4941
  }).catch((...o) => {
4936
- d.Function(i) && F(() => i(t, ...o)), n(...o);
4942
+ h.Function(i) && F(() => i(t, ...o)), n(...o);
4937
4943
  });
4938
4944
  });
4939
4945
  }
4940
4946
  };
4941
4947
  }
4942
- const Ht = {
4948
+ const zt = {
4943
4949
  name: "required",
4944
4950
  load(t, e, r) {
4945
- const i = xi(t.getValue());
4951
+ const i = rn(t.getValue());
4946
4952
  if (i.required === !1)
4947
4953
  t.clearProp(), r.clearValidateState([e.field]);
4948
4954
  else {
4949
- const s = v({
4955
+ const s = b({
4950
4956
  required: !0,
4951
4957
  validator(n, o, a) {
4952
- d.empty(o) ? a(s.message) : a();
4958
+ h.empty(o) ? a(s.message) : a();
4953
4959
  }
4954
4960
  }, i);
4955
4961
  if (!s.message)
@@ -4963,28 +4969,28 @@ const Ht = {
4963
4969
  r.sync(e);
4964
4970
  },
4965
4971
  watch(...t) {
4966
- Ht.load(...t);
4972
+ zt.load(...t);
4967
4973
  }
4968
4974
  };
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 : {};
4975
+ function rn(t) {
4976
+ 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
4977
  }
4972
- function en(t) {
4973
- t.componentAlias(Mi), Pr.forEach((e) => {
4978
+ function nn(t) {
4979
+ t.componentAlias(Gi), Tr.forEach((e) => {
4974
4980
  t.component(e.name, e);
4975
- }), t.register(Ht), Ni.forEach((e) => {
4981
+ }), t.register(zt), qi.forEach((e) => {
4976
4982
  t.parser(e);
4977
- }), Object.keys(ie).forEach((e) => {
4978
- t.maker[e] = ie[e];
4983
+ }), Object.keys(te).forEach((e) => {
4984
+ t.maker[e] = te[e];
4979
4985
  });
4980
4986
  }
4981
- function tn() {
4982
- return Gt({
4987
+ function sn() {
4988
+ return Wt({
4983
4989
  ui: "view-design",
4984
- version: "2.7.0-alpha.0",
4985
- manager: Hi,
4986
- install: en,
4987
- extendApi: Yi,
4990
+ version: "2.7.1",
4991
+ manager: zi,
4992
+ install: nn,
4993
+ extendApi: tn,
4988
4994
  attrs: {
4989
4995
  normal: ["col", "wrap"],
4990
4996
  array: ["className"],
@@ -4992,10 +4998,10 @@ function tn() {
4992
4998
  }
4993
4999
  });
4994
5000
  }
4995
- const Ke = tn();
4996
- typeof window != "undefined" && (window.formCreate = Ke, window.Vue && Ke.install(window.Vue));
4997
- const sn = Ke.maker;
5001
+ const Qe = sn();
5002
+ typeof window != "undefined" && (window.formCreate = Qe, window.Vue && Qe.install(window.Vue));
5003
+ const ln = Qe.maker;
4998
5004
  export {
4999
- Ke as default,
5000
- sn as maker
5005
+ Qe as default,
5006
+ ln as maker
5001
5007
  };