@form-create/element-ui 2.7.0-alpha.0 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,61 +1,61 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/element-ui v2.7.0-alpha.0
3
+ * @form-create/element-ui v2.7.0
4
4
  * (c) 2018-2024 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
7
7
  * Released under the MIT License.
8
8
  */
9
- (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode('._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;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 .el-upload{display:block}._fc-frame .fc-upload-btn,.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;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;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 .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;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;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 .el-form-item{margin-bottom:22px}.form-create{width:100%}.form-create.is-preview .fc-clock,.form-create .fc-none,.form-create.is-preview .el-form-item.is-required>.el-form-item__label-wrap>.el-form-item__label:before,.form-create.is-preview .el-form-item.is-required>.el-form-item__label:before{display:none!important}.fc-wrap-right>.el-form-item__label{display:flex;justify-content:flex-end}.fc-wrap-left>.el-form-item__label{display:flex;justify-content:flex-start}.fc-wrap-top.el-form-item{display:block}.fc-wrap-top.el-form-item>.el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.fc-wrap-top.el-form-item>.el-form-item__content{margin-left:0!important}.el-form--large .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small .fc-wrap-top.el-form-item>.el-form-item__label{line-height:20px;margin-bottom:4px}.fc-form-footer{margin-top:12px}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
- var Zt = Object.defineProperty, Yt = Object.defineProperties;
11
- var xt = Object.getOwnPropertyDescriptors;
12
- var it = Object.getOwnPropertySymbols;
13
- var er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable;
14
- var nt = (t, e, r) => e in t ? Zt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
9
+ (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode('._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;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 .el-upload{display:block}._fc-frame .fc-upload-btn,.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;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;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 .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;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;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 .el-form-item{margin-bottom:22px}.form-create{width:100%}.fc-form-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.form-create.is-preview .fc-clock,.form-create .fc-none,.form-create.is-preview .el-form-item.is-required>.el-form-item__label-wrap>.el-form-item__label:before,.form-create.is-preview .el-form-item.is-required>.el-form-item__label:before{display:none!important}.fc-wrap-right>.el-form-item__label{display:flex;justify-content:flex-end}.fc-wrap-left>.el-form-item__label{display:flex;justify-content:flex-start}.fc-wrap-top.el-form-item{display:block}.fc-wrap-top.el-form-item>.el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.fc-wrap-top.el-form-item>.el-form-item__content{margin-left:0!important}.el-form--large .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small .fc-wrap-top.el-form-item>.el-form-item__label{line-height:20px;margin-bottom:4px}.fc-form-footer{margin-top:12px}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
+ var er = Object.defineProperty, tr = Object.defineProperties;
11
+ var rr = Object.getOwnPropertyDescriptors;
12
+ var st = Object.getOwnPropertySymbols;
13
+ var ir = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable;
14
+ var ot = (t, e, r) => e in t ? er(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
- er.call(e, r) && nt(t, r, e[r]);
17
- if (it)
18
- for (var r of it(e))
19
- tr.call(e, r) && nt(t, r, e[r]);
16
+ ir.call(e, r) && ot(t, r, e[r]);
17
+ if (st)
18
+ for (var r of st(e))
19
+ nr.call(e, r) && ot(t, r, e[r]);
20
20
  return t;
21
- }, M = (t, e) => Yt(t, xt(e));
22
- import me, { getCurrentInstance as rr, provide as ir, inject as nr, toRefs as st, reactive as re, onBeforeMount as sr, watch as B, onMounted as or, onBeforeUnmount as ar, onUpdated as lr, nextTick as J, markRaw as de, computed as pe, toRef as ke, ref as ur } from "vue";
23
- function cr(t) {
21
+ }, N = (t, e) => tr(t, rr(e));
22
+ import de, { getCurrentInstance as sr, provide as or, inject as ar, toRefs as at, reactive as ee, onBeforeMount as lr, watch as B, onMounted as ur, onBeforeUnmount as cr, onUpdated as fr, nextTick as J, markRaw as fe, computed as he, toRef as Re, ref as hr } from "vue";
23
+ function dr(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
- function Ue() {
27
- return Ue = 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
- }, Ue.apply(this, arguments);
30
+ }, He.apply(this, arguments);
31
31
  }
32
- var fr = ["attrs", "props", "domProps"], hr = ["class", "style", "directives"], dr = ["on", "nativeOn"], pr = function(t) {
32
+ var pr = ["attrs", "props", "domProps"], mr = ["class", "style", "directives"], gr = ["on", "nativeOn"], yr = 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 (fr.indexOf(i) !== -1) e[i] = Ue({}, e[i], r[i]);
36
- else if (hr.indexOf(i) !== -1) {
35
+ else if (pr.indexOf(i) !== -1) e[i] = He({}, e[i], r[i]);
36
+ else if (mr.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 (dr.indexOf(i) !== -1)
39
+ } else if (gr.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] ? mr(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] ? $r(e[i][u], r[i][u]) : r[i][u];
45
45
  else e[i] = r[i];
46
46
  return e;
47
47
  }, {});
48
- }, mr = function(t, e) {
48
+ }, $r = function(t, e) {
49
49
  return function() {
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
- }, gr = pr;
53
- const A = /* @__PURE__ */ cr(gr);
54
- function Xe(t, e) {
52
+ }, vr = yr;
53
+ const V = /* @__PURE__ */ dr(vr);
54
+ function Qe(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => (r.push(t[i]), r), []);
56
56
  }
57
- const yr = "fcCheckbox", $r = {
58
- name: yr,
57
+ const br = "fcCheckbox", _r = {
58
+ name: br,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -101,7 +101,7 @@ const yr = "fcCheckbox", $r = {
101
101
  },
102
102
  render() {
103
103
  const t = arguments[0];
104
- return t("ElCheckboxGroup", A([{}, this.formCreateInject.prop, {}, {
104
+ return t("ElCheckboxGroup", V([{}, this.formCreateInject.prop, {}, {
105
105
  props: {
106
106
  value: this.trueValue
107
107
  }
@@ -111,23 +111,23 @@ const yr = "fcCheckbox", $r = {
111
111
  input: this.onInput
112
112
  }
113
113
  }]), [this.options().map((e, r) => {
114
- const i = v({}, e), s = this.type === "button" ? "ElCheckboxButton" : "ElCheckbox";
115
- return delete i.value, t(s, A([{}, {
114
+ const i = b({}, e), s = this.type === "button" ? "ElCheckboxButton" : "ElCheckbox";
115
+ return delete i.value, t(s, V([{}, {
116
116
  props: i
117
117
  }, {
118
118
  key: s + r + "-" + e.value
119
119
  }]));
120
- }), Xe(this.$slots)]);
120
+ }), Qe(this.$slots)]);
121
121
  },
122
122
  mounted() {
123
123
  this.$emit("fc.el", this.$refs.el);
124
124
  }
125
125
  };
126
- function U(t) {
126
+ function H(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
- const vr = "fcFrame", br = {
130
- name: vr,
129
+ const Cr = "fcFrame", wr = {
130
+ name: Cr,
131
131
  props: {
132
132
  formCreateInject: {
133
133
  type: Object,
@@ -248,7 +248,7 @@ const vr = "fcFrame", br = {
248
248
  },
249
249
  data() {
250
250
  return {
251
- fileList: U(this.value),
251
+ fileList: H(this.value),
252
252
  previewVisible: !1,
253
253
  frameVisible: !1,
254
254
  previewImage: ""
@@ -256,7 +256,7 @@ const vr = "fcFrame", br = {
256
256
  },
257
257
  watch: {
258
258
  value(t) {
259
- this.fileList = U(t);
259
+ this.fileList = H(t);
260
260
  },
261
261
  fileList(t) {
262
262
  const e = this.maxLength === 1 ? t[0] || "" : t;
@@ -285,7 +285,7 @@ const vr = "fcFrame", br = {
285
285
  value: this.fileList.map((r) => this.getSrc(r)).toString(),
286
286
  readonly: !0
287
287
  };
288
- return t("ElInput", A([{}, {
288
+ return t("ElInput", V([{}, {
289
289
  props: e
290
290
  }, {
291
291
  key: this.key("input")
@@ -295,7 +295,7 @@ const vr = "fcFrame", br = {
295
295
  on: {
296
296
  click: () => this.fileList = []
297
297
  }
298
- }) : null, t("ElButton", A([{
298
+ }) : null, t("ElButton", V([{
299
299
  attrs: {
300
300
  icon: this.icon
301
301
  }
@@ -452,7 +452,7 @@ const vr = "fcFrame", br = {
452
452
  this.$refs.frame && this.frameLoad(this.$refs.frame.contentWindow || {});
453
453
  }), t("div", {
454
454
  class: "_fc-frame"
455
- }, [r, t("el-dialog", A([{}, {
455
+ }, [r, t("el-dialog", V([{}, {
456
456
  props: {
457
457
  appendToBody: !0,
458
458
  modal: this.previewMask,
@@ -468,8 +468,8 @@ const vr = "fcFrame", br = {
468
468
  attrs: {
469
469
  src: this.previewImage
470
470
  }
471
- })]), t("el-dialog", A([{}, {
472
- props: M(v({
471
+ })]), t("el-dialog", V([{}, {
472
+ props: N(b({
473
473
  width: i,
474
474
  title: o,
475
475
  appendToBody: !0
@@ -496,8 +496,8 @@ const vr = "fcFrame", br = {
496
496
  mounted() {
497
497
  this.$on("fc.closeModal", this.closeModal);
498
498
  }
499
- }, _r = "fcRadio", Cr = {
500
- name: _r,
499
+ }, Or = "fcRadio", Fr = {
500
+ name: Or,
501
501
  props: {
502
502
  formCreateInject: {
503
503
  type: Object,
@@ -539,7 +539,7 @@ const vr = "fcFrame", br = {
539
539
  },
540
540
  render() {
541
541
  const t = arguments[0];
542
- return t("ElRadioGroup", A([{}, this.formCreateInject.prop, {
542
+ return t("ElRadioGroup", V([{}, this.formCreateInject.prop, {
543
543
  ref: "el"
544
544
  }, {
545
545
  props: {
@@ -550,18 +550,18 @@ const vr = "fcFrame", br = {
550
550
  input: this.onInput
551
551
  }
552
552
  }]), [this.options().map((e, r) => {
553
- const i = v({}, e), s = this.type === "button" ? "ElRadioButton" : "ElRadio";
554
- return delete i.value, t(s, A([{}, {
553
+ const i = b({}, e), s = this.type === "button" ? "ElRadioButton" : "ElRadio";
554
+ return delete i.value, t(s, V([{}, {
555
555
  props: i
556
556
  }, {
557
557
  key: s + r + "-" + e.value
558
558
  }]));
559
- }), Xe(this.$slots)]);
559
+ }), Qe(this.$slots)]);
560
560
  },
561
561
  mounted() {
562
562
  this.$emit("fc.el", this.$refs.el);
563
563
  }
564
- }, d = {
564
+ }, h = {
565
565
  type(t, e) {
566
566
  return Object.prototype.toString.call(t) === "[object " + e + "]";
567
567
  },
@@ -569,7 +569,7 @@ const vr = "fcFrame", br = {
569
569
  return t == null;
570
570
  },
571
571
  Element(t) {
572
- return typeof t == "object" && t !== null && t.nodeType === 1 && !d.Object(t);
572
+ return typeof t == "object" && t !== null && t.nodeType === 1 && !h.Object(t);
573
573
  },
574
574
  trueArray(t) {
575
575
  return Array.isArray(t) && t.length > 0;
@@ -587,15 +587,15 @@ const vr = "fcFrame", br = {
587
587
  }
588
588
  };
589
589
  ["Date", "Object", "String", "Boolean", "Array", "Number"].forEach((t) => {
590
- d[t] = function(e) {
591
- return d.type(e, t);
590
+ h[t] = function(e) {
591
+ return h.type(e, t);
592
592
  };
593
593
  });
594
594
  function E(t, e) {
595
595
  return {}.hasOwnProperty.call(t, e);
596
596
  }
597
- const wr = "fcSelect", Or = {
598
- name: wr,
597
+ const kr = "fcSelect", Er = {
598
+ name: kr,
599
599
  functional: !0,
600
600
  props: {
601
601
  formCreateInject: {
@@ -606,28 +606,28 @@ const wr = "fcSelect", Or = {
606
606
  render(t, e) {
607
607
  const r = (n, o) => {
608
608
  const a = n.slot;
609
- return t("ElOption", A([{}, {
609
+ return t("ElOption", V([{}, {
610
610
  props: n
611
611
  }, {
612
612
  key: "" + o + "-" + n.value
613
613
  }]), [a ? t("template", {
614
614
  slot: n.slotName || "default"
615
- }, [d.Function(a) ? n.slot(t) : a]) : null]);
615
+ }, [h.Function(a) ? n.slot(t) : a]) : null]);
616
616
  }, i = (n, o) => t("ElOptionGroup", {
617
617
  attrs: {
618
618
  label: n.label
619
619
  },
620
620
  key: "" + o + "-" + n.label
621
- }, [d.trueArray(n.options) && n.options.map((a, l) => r(a, l))]), s = e.props.formCreateInject.options;
622
- return t("ElSelect", A([{}, e.data, {
621
+ }, [h.trueArray(n.options) && n.options.map((a, l) => r(a, l))]), s = e.props.formCreateInject.options;
622
+ return t("ElSelect", V([{}, e.data, {
623
623
  ref: "el"
624
624
  }]), [(Array.isArray(s) ? s : []).map((n, o) => E(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
625
625
  },
626
626
  mounted() {
627
627
  this.$emit("fc.el", this.$refs.el);
628
628
  }
629
- }, Fr = "fcTree", kr = {
630
- name: Fr,
629
+ }, Rr = "fcTree", Sr = {
630
+ name: Rr,
631
631
  formCreateParser: {
632
632
  mergeProp(t) {
633
633
  const e = t.prop.props;
@@ -666,42 +666,42 @@ const wr = "fcSelect", Or = {
666
666
  t === "selected" ? e = this.$refs.tree.getCurrentKey() : e = this.$refs.tree.getCheckedKeys(), this.$emit("input", e);
667
667
  },
668
668
  setValue() {
669
- this.type.toLocaleLowerCase() === "selected" ? this.$refs.tree.setCurrentKey(this.value) : this.$refs.tree.setCheckedKeys(U(this.value));
669
+ this.type.toLocaleLowerCase() === "selected" ? this.$refs.tree.setCurrentKey(this.value) : this.$refs.tree.setCheckedKeys(H(this.value));
670
670
  }
671
671
  },
672
672
  render() {
673
673
  const t = arguments[0];
674
- return t("ElTree", A([{}, this.formCreateInject.prop, {
674
+ return t("ElTree", V([{}, this.formCreateInject.prop, {
675
675
  ref: "tree",
676
676
  on: {
677
677
  check: () => this.updateValue(),
678
678
  "node-click": () => this.updateValue()
679
679
  }
680
- }]), [Xe(this.$slots)]);
680
+ }]), [Qe(this.$slots)]);
681
681
  },
682
682
  mounted() {
683
683
  this.setValue(), this.$emit("fc.el", this.$refs.tree);
684
684
  }
685
685
  };
686
- function ot(t, e) {
686
+ function lt(t, e) {
687
687
  return typeof t == "object" ? t : {
688
688
  url: t,
689
689
  is_string: !0,
690
- name: Er(t),
690
+ name: Dr(t),
691
691
  uid: e
692
692
  };
693
693
  }
694
- function at(t) {
695
- return M(v({}, t), {
694
+ function ut(t) {
695
+ return N(b({}, t), {
696
696
  file: t,
697
697
  value: t
698
698
  });
699
699
  }
700
- function Er(t) {
700
+ function Dr(t) {
701
701
  return ("" + t).split("/").pop();
702
702
  }
703
- const Rr = "fcUpload", Sr = {
704
- name: Rr,
703
+ const jr = "fcUpload", Ar = {
704
+ name: jr,
705
705
  props: {
706
706
  formCreateInject: {
707
707
  type: Object,
@@ -748,11 +748,11 @@ const Rr = "fcUpload", Sr = {
748
748
  };
749
749
  },
750
750
  created() {
751
- this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = U(this.value).map(ot).map(at);
751
+ this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = H(this.value).map(lt).map(ut);
752
752
  },
753
753
  watch: {
754
754
  value(t) {
755
- this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = U(t).map(ot).map(at), this.uploadList = this.$refs.upload.uploadFiles);
755
+ this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = H(t).map(lt).map(ut), this.uploadList = this.$refs.upload.uploadFiles);
756
756
  },
757
757
  limit(t, e) {
758
758
  (e === 1 || t === 1) && this.update();
@@ -805,7 +805,7 @@ const Rr = "fcUpload", Sr = {
805
805
  },
806
806
  makeProgress(t, e) {
807
807
  const r = this.$createElement;
808
- return r("ElProgress", A([{}, {
808
+ return r("ElProgress", V([{}, {
809
809
  props: {
810
810
  percentage: t.percentage,
811
811
  type: "circle",
@@ -851,7 +851,7 @@ const Rr = "fcUpload", Sr = {
851
851
  },
852
852
  makeUpload() {
853
853
  const t = this.$createElement, e = !this.limit || this.limit > this.uploadList.length;
854
- return t("ElUpload", A([{}, this.formCreateInject.prop, {}, {
854
+ return t("ElUpload", V([{}, this.formCreateInject.prop, {}, {
855
855
  props: {
856
856
  listType: this.listType,
857
857
  showFileList: this.listType !== "picture"
@@ -877,7 +877,7 @@ const Rr = "fcUpload", Sr = {
877
877
  const t = arguments[0];
878
878
  return this.$refs.upload && (this.formCreateInject.prop.props.fileList = this.$refs.upload.fileList), t("div", {
879
879
  class: "_fc-upload"
880
- }, [[this.makeFiles(), this.makeUpload()], t("el-dialog", A([{}, {
880
+ }, [[this.makeFiles(), this.makeUpload()], t("el-dialog", V([{}, {
881
881
  props: {
882
882
  appendToBody: !0,
883
883
  modal: this.previewMask,
@@ -904,53 +904,53 @@ const Rr = "fcUpload", Sr = {
904
904
  }), this.$emit("fc.el", this.$refs.upload);
905
905
  }
906
906
  };
907
- function j(t, e, r) {
908
- me.set(t, e, r);
907
+ function k(t, e, r) {
908
+ de.set(t, e, r);
909
909
  }
910
- function oe(t, e) {
911
- (me.del || me.delete)(t, e);
910
+ function x(t, e) {
911
+ (de.del || de.delete)(t, e);
912
912
  }
913
913
  function $e(t, e = {}, r) {
914
914
  let i = !1;
915
915
  for (let s in e)
916
916
  if (Object.prototype.hasOwnProperty.call(e, s)) {
917
917
  let n = e[s];
918
- if ((i = Array.isArray(n)) || d.Object(n)) {
918
+ if ((i = Array.isArray(n)) || h.Object(n)) {
919
919
  let o = t[s] === void 0;
920
920
  if (i)
921
- i = !1, o && j(t, s, []);
921
+ i = !1, o && k(t, s, []);
922
922
  else if (n._clone && r !== void 0)
923
923
  if (r)
924
- n = n.getRule(), o && j(t, s, {});
924
+ n = n.getRule(), o && k(t, s, {});
925
925
  else {
926
- j(t, s, n._clone());
926
+ k(t, s, n._clone());
927
927
  continue;
928
928
  }
929
929
  else
930
- o && j(t, s, {});
930
+ o && k(t, s, {});
931
931
  t[s] = $e(t[s], n, r);
932
932
  } else
933
- 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));
933
+ 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));
934
934
  }
935
935
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
936
936
  }
937
- function G(t) {
937
+ function W(t) {
938
938
  return $e({}, { value: t }).value;
939
939
  }
940
- const Dr = Object.assign || function(t) {
940
+ const Vr = Object.assign || function(t) {
941
941
  for (let e, r = 1; r < arguments.length; r++)
942
942
  for (let i in e = arguments[r], e)
943
- Object.prototype.hasOwnProperty.call(e, i) && j(t, i, e[i]);
943
+ Object.prototype.hasOwnProperty.call(e, i) && k(t, i, e[i]);
944
944
  return t;
945
945
  };
946
- function b() {
947
- return Dr.apply(this, arguments);
946
+ function _() {
947
+ return Vr.apply(this, arguments);
948
948
  }
949
- function qe(t) {
950
- return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
949
+ function Ge(t) {
950
+ return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : b({}, t);
951
951
  }
952
- const jr = "fcGroup", Ar = {
953
- name: jr,
952
+ const Ir = "fcGroup", Pr = {
953
+ name: Ir,
954
954
  props: {
955
955
  field: String,
956
956
  rule: [Array, Object],
@@ -1037,7 +1037,7 @@ const jr = "fcGroup", Ar = {
1037
1037
  const n = i.$f.formData();
1038
1038
  i.$f.once("reloading", () => {
1039
1039
  i.$f.setValue(n);
1040
- }), i.rule = G(t);
1040
+ }), i.rule = W(t);
1041
1041
  }
1042
1042
  }
1043
1043
  });
@@ -1084,7 +1084,7 @@ const jr = "fcGroup", Ar = {
1084
1084
  if (i.filter((n) => r[n].$f).length !== i.length)
1085
1085
  return;
1086
1086
  const s = i.map((n) => {
1087
- const o = t === n ? e : v({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1087
+ const o = t === n ? e : b({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1088
1088
  return this.cache(n, a), a;
1089
1089
  });
1090
1090
  this.input(s);
@@ -1096,14 +1096,14 @@ const jr = "fcGroup", Ar = {
1096
1096
  }), this.cacheValue[t] !== JSON.stringify(r ? e[r] : e) && (this.cache(t, e), i && i.coverValue(e || {}));
1097
1097
  },
1098
1098
  addRule(t, e) {
1099
- const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? v({}, this.options) : {
1099
+ const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? b({}, this.options) : {
1100
1100
  submitBtn: !1,
1101
1101
  resetBtn: !1
1102
1102
  };
1103
1103
  if (this.defaultValue) {
1104
1104
  i.formData || (i.formData = {});
1105
- const s = G(this.defaultValue);
1106
- b(i.formData, this.field ? {
1105
+ const s = W(this.defaultValue);
1106
+ _(i.formData, this.field ? {
1107
1107
  [this.field]: s
1108
1108
  } : s);
1109
1109
  }
@@ -1209,7 +1209,7 @@ const jr = "fcGroup", Ar = {
1209
1209
  add: this.add
1210
1210
  }) : t("div", {
1211
1211
  key: "a_def",
1212
- class: "_fc-group-plus-minus _fc-group-add",
1212
+ class: "_fc-group-plus-minus _fc-group-add fc-clock",
1213
1213
  on: {
1214
1214
  click: this.add
1215
1215
  }
@@ -1221,7 +1221,7 @@ const jr = "fcGroup", Ar = {
1221
1221
  return t("div", {
1222
1222
  class: "_fc-group-container",
1223
1223
  key: o
1224
- }, [t(i, A([{
1224
+ }, [t(i, V([{
1225
1225
  key: o
1226
1226
  }, {
1227
1227
  on: {
@@ -1243,7 +1243,7 @@ const jr = "fcGroup", Ar = {
1243
1243
  }])), t("div", {
1244
1244
  class: "_fc-group-idx"
1245
1245
  }, [a + 1]), c.length ? t("div", {
1246
- class: "_fc-group-handle"
1246
+ class: "_fc-group-handle fc-clock"
1247
1247
  }, [c]) : null]);
1248
1248
  });
1249
1249
  return t("div", {
@@ -1251,8 +1251,8 @@ const jr = "fcGroup", Ar = {
1251
1251
  class: "_fc-group " + (s ? "_fc-group-disabled" : "")
1252
1252
  }, [n]);
1253
1253
  }
1254
- }, Vr = "fcSubForm", Ir = {
1255
- name: Vr,
1254
+ }, Tr = "fcSubForm", Br = {
1255
+ name: Tr,
1256
1256
  props: {
1257
1257
  rule: Array,
1258
1258
  options: Object,
@@ -1298,7 +1298,7 @@ const jr = "fcGroup", Ar = {
1298
1298
  submitBtn: !1,
1299
1299
  resetBtn: !1
1300
1300
  };
1301
- t.formData = v({}, this.value || {}), this.cacheRule = {
1301
+ t.formData = b({}, this.value || {}), this.cacheRule = {
1302
1302
  rule: this.rule,
1303
1303
  options: t
1304
1304
  };
@@ -1320,7 +1320,7 @@ const jr = "fcGroup", Ar = {
1320
1320
  rule: e,
1321
1321
  options: r
1322
1322
  } = this.cacheRule, i = this.type;
1323
- return t(i, A([{}, {
1323
+ return t(i, V([{}, {
1324
1324
  on: {
1325
1325
  "update:value": this.formData,
1326
1326
  "emit-event": this.emitEvent,
@@ -1335,17 +1335,17 @@ const jr = "fcGroup", Ar = {
1335
1335
  }
1336
1336
  }]));
1337
1337
  }
1338
- }, Pr = [
1339
- $r,
1340
- br,
1341
- Cr,
1342
- Or,
1343
- kr,
1338
+ }, Lr = [
1339
+ _r,
1340
+ wr,
1341
+ Fr,
1342
+ Er,
1344
1343
  Sr,
1345
1344
  Ar,
1346
- Ir
1345
+ Pr,
1346
+ Br
1347
1347
  ];
1348
- function ue(t, e) {
1348
+ function le(t, e) {
1349
1349
  var r = null;
1350
1350
  return function(...i) {
1351
1351
  r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
@@ -1355,15 +1355,15 @@ function ye(t) {
1355
1355
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1356
1356
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1357
1357
  }
1358
- const Oe = (t, e) => {
1358
+ const ke = (t, e) => {
1359
1359
  if (!(!t || t === e || !t.$props)) {
1360
1360
  if (t.$props.formCreateInject)
1361
1361
  return t.$props.formCreateInject;
1362
1362
  if (t.$parent)
1363
- return Oe(t.$parent, e);
1363
+ return ke(t.$parent, e);
1364
1364
  }
1365
1365
  };
1366
- function Br(t, e, r) {
1366
+ function Mr(t, e, r) {
1367
1367
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1368
1368
  return {
1369
1369
  name: i,
@@ -1414,100 +1414,100 @@ function Br(t, e, r) {
1414
1414
  return this.fc.render();
1415
1415
  },
1416
1416
  setup(s) {
1417
- const n = rr().proxy;
1418
- ir("parentFC", n);
1419
- const o = nr("parentFC", null);
1417
+ const n = sr().proxy;
1418
+ or("parentFC", n);
1419
+ const o = ar("parentFC", null);
1420
1420
  let a = o;
1421
1421
  if (o)
1422
1422
  for (; a.parent; )
1423
1423
  a = a.parent;
1424
1424
  else
1425
1425
  a = n;
1426
- const { rule: l, value: u, subForm: c, inFor: p } = st(s), m = re({
1426
+ const { rule: l, value: u, subForm: c, inFor: p } = at(s), m = ee({
1427
1427
  ctxInject: {},
1428
1428
  destroyed: !1,
1429
1429
  isShow: !0,
1430
1430
  unique: 1,
1431
1431
  renderRule: [...l.value || []],
1432
1432
  updateValue: JSON.stringify(u.value || {})
1433
- }), $ = new t(n), _ = $.api(), w = p.value, S = () => {
1433
+ }), $ = new t(n), v = $.api(), w = p.value, D = () => {
1434
1434
  if (o) {
1435
- const F = Oe(n, o);
1436
- if (F) {
1437
- let R;
1438
- w ? (R = U(F.getSubForm()), R.push(_)) : R = _, F.subForm(R);
1435
+ const O = ke(n, o);
1436
+ if (O) {
1437
+ let S;
1438
+ w ? (S = H(O.getSubForm()), S.push(v)) : S = v, O.subForm(S);
1439
1439
  }
1440
1440
  }
1441
1441
  }, Y = () => {
1442
- const F = Oe(n, o);
1443
- if (F)
1442
+ const O = ke(n, o);
1443
+ if (O)
1444
1444
  if (w) {
1445
- const R = U(F.getSubForm()), P = R.indexOf(_);
1446
- P > -1 && R.splice(P, 1);
1445
+ const S = H(O.getSubForm()), T = S.indexOf(v);
1446
+ T > -1 && S.splice(T, 1);
1447
1447
  } else
1448
- F.subForm();
1448
+ O.subForm();
1449
1449
  };
1450
- let I = null;
1451
- sr(() => {
1450
+ let P = null;
1451
+ lr(() => {
1452
1452
  B(() => {
1453
- let F = "";
1454
- const R = s.option && s.option.globalClass || {};
1455
- Object.keys(R).forEach((P) => {
1456
- let ne = "";
1457
- R[P].style && Object.keys(R[P].style).forEach((be) => {
1458
- ne += ye(be) + ":" + R[P].style[be] + ";";
1459
- }), R[P].content && (ne += R[P].content + ";"), ne && (F += `.${P}{${ne}}`);
1460
- }), s.option && s.option.style && (F += s.option.style), I || (I = document.createElement("style"), I.type = "text/css", document.head.appendChild(I)), I.innerHTML = F || "";
1453
+ let O = "";
1454
+ const S = s.option && s.option.globalClass || {};
1455
+ Object.keys(S).forEach((T) => {
1456
+ let re = "";
1457
+ S[T].style && Object.keys(S[T].style).forEach((be) => {
1458
+ re += ye(be) + ":" + S[T].style[be] + ";";
1459
+ }), S[T].content && (re += S[T].content + ";"), re && (O += `.${T}{${re}}`);
1460
+ }), s.option && s.option.style && (O += s.option.style), P || (P = document.createElement("style"), P.type = "text/css", document.head.appendChild(P)), P.innerHTML = O || "";
1461
1461
  }, () => {
1462
1462
  });
1463
1463
  });
1464
- const T = ue(() => {
1464
+ const L = le(() => {
1465
1465
  $.bus.$emit("$loadData.$topForm");
1466
- }, 100), Re = ue(() => {
1466
+ }, 100), De = le(() => {
1467
1467
  $.bus.$emit("$loadData.$form");
1468
- }, 100), ve = (F) => {
1469
- $.bus.$emit("change-$form." + F);
1468
+ }, 100), ve = (O) => {
1469
+ $.bus.$emit("change-$form." + O);
1470
1470
  };
1471
- return or(() => {
1472
- o && (_.top.bus.$on("$loadData.$form", T), _.top.bus.$on("change", ve)), $.mounted();
1473
- }), ar(() => {
1474
- o && (_.top.bus.$off("$loadData.$form", T), _.top.bus.$off("change", ve)), I && document.head.removeChild(I), Y(), m.destroyed = !0, $.unmount();
1475
- }), lr(() => {
1471
+ return ur(() => {
1472
+ o && (v.top.bus.$on("$loadData.$form", L), v.top.bus.$on("change", ve)), $.mounted();
1473
+ }), cr(() => {
1474
+ o && (v.top.bus.$off("$loadData.$form", L), v.top.bus.$off("change", ve)), P && document.head.removeChild(P), Y(), m.destroyed = !0, $.unmount();
1475
+ }), fr(() => {
1476
1476
  $.updated();
1477
- }), B(c, (F) => {
1478
- F ? S() : Y();
1479
- }, { immediate: !0 }), B(() => [...l.value], (F) => {
1480
- $.$handle.isBreakWatch() || F.length === m.renderRule.length && F.every((R) => m.renderRule.indexOf(R) > -1) || ($.$handle.updateAppendData(), $.$handle.reloadRule(l.value), n.renderRule());
1477
+ }), B(c, (O) => {
1478
+ O ? D() : Y();
1479
+ }, { immediate: !0 }), B(() => [...l.value], (O) => {
1480
+ $.$handle.isBreakWatch() || O.length === m.renderRule.length && O.every((S) => m.renderRule.indexOf(S) > -1) || ($.$handle.updateAppendData(), $.$handle.reloadRule(l.value), n.renderRule());
1481
1481
  }), B(() => s.option, () => {
1482
- $.initOptions(), _.refresh();
1482
+ $.initOptions(), v.refresh();
1483
1483
  }, { deep: !0 }), B(() => [s.disabled, s.preview], () => {
1484
- _.refresh();
1485
- }), B(u, (F) => {
1486
- JSON.stringify(F || {}) !== m.updateValue && (_.config.forceCoverValue ? _.coverValue(F || {}) : _.setValue(F || {}));
1484
+ v.refresh();
1485
+ }), B(u, (O) => {
1486
+ JSON.stringify(O || {}) !== m.updateValue && (v.config.forceCoverValue ? v.coverValue(O || {}) : v.setValue(O || {}));
1487
1487
  }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1488
- _.coverValue({}), $.$handle.updateAppendData(), J(() => {
1488
+ v.coverValue({}), $.$handle.updateAppendData(), J(() => {
1489
1489
  J(() => {
1490
- _.clearValidateState();
1490
+ v.clearValidateState();
1491
1491
  });
1492
1492
  });
1493
- }, { flush: "sync" }), M(v({
1494
- fc: de($),
1495
- parent: o && de(o),
1496
- top: de(a),
1497
- fapi: de(_)
1498
- }, st(m)), {
1499
- getGroupInject: () => Oe(n, o),
1493
+ }, { flush: "sync" }), N(b({
1494
+ fc: fe($),
1495
+ parent: o && fe(o),
1496
+ top: fe(a),
1497
+ fapi: fe(v)
1498
+ }, at(m)), {
1499
+ getGroupInject: () => ke(n, o),
1500
1500
  refresh() {
1501
1501
  ++m.unique;
1502
1502
  },
1503
1503
  renderRule() {
1504
1504
  m.renderRule = [...l.value || []];
1505
1505
  },
1506
- updateValue(F) {
1506
+ updateValue(O) {
1507
1507
  if (m.destroyed) return;
1508
- const R = JSON.stringify(F);
1509
- m.updateValue !== R && (m.updateValue = R, n.$emit("update:value", F), J(() => {
1510
- Re(), o || T();
1508
+ const S = JSON.stringify(O);
1509
+ m.updateValue !== S && (m.updateValue = S, n.$emit("update:value", O), J(() => {
1510
+ De(), o || L();
1511
1511
  }));
1512
1512
  }
1513
1513
  });
@@ -1517,15 +1517,15 @@ function Br(t, e, r) {
1517
1517
  }
1518
1518
  };
1519
1519
  }
1520
- const _t = ["attrs", "props", "domProps", "scopedSlots"], Ct = ["class", "style", "directives"], wt = ["on", "nativeOn", "hook"], z = (t, e = {}, r = {}) => {
1521
- const i = [..._t, ...r.normal || []], s = [...Ct, ...r.array || []], n = [...wt, ...r.functional || []], o = r.props || [];
1520
+ const Ot = ["attrs", "props", "domProps", "scopedSlots"], Ft = ["class", "style", "directives"], kt = ["on", "nativeOn", "hook"], z = (t, e = {}, r = {}) => {
1521
+ const i = [...Ot, ...r.normal || []], s = [...Ft, ...r.array || []], n = [...kt, ...r.functional || []], o = r.props || [];
1522
1522
  return t.reduce((a, l) => {
1523
1523
  for (const u in l)
1524
1524
  if (a[u])
1525
1525
  if (o.indexOf(u) > -1)
1526
1526
  a[u] = z([l[u]], a[u]);
1527
1527
  else if (i.indexOf(u) > -1)
1528
- a[u] = v(v({}, a[u]), l[u]);
1528
+ a[u] = b(b({}, a[u]), l[u]);
1529
1529
  else if (s.indexOf(u) > -1) {
1530
1530
  const c = a[u] instanceof Array ? a[u] : [a[u]], p = l[u] instanceof Array ? l[u] : [l[u]];
1531
1531
  a[u] = [...c, ...p];
@@ -1538,33 +1538,33 @@ const _t = ["attrs", "props", "domProps", "scopedSlots"], Ct = ["class", "style"
1538
1538
  a[u][c] = l[u][c];
1539
1539
  else if (u === "hook")
1540
1540
  for (let c in l[u])
1541
- a[u][c] ? a[u][c] = Tr(a[u][c], l[u][c]) : a[u][c] = l[u][c];
1541
+ a[u][c] ? a[u][c] = Nr(a[u][c], l[u][c]) : a[u][c] = l[u][c];
1542
1542
  else
1543
1543
  a[u] = l[u];
1544
1544
  else
1545
- 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];
1545
+ 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];
1546
1546
  return a;
1547
1547
  }, e);
1548
- }, Tr = (t, e) => function() {
1548
+ }, Nr = (t, e) => function() {
1549
1549
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1550
- }, Ot = ["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"], Qe = ["effect", "deep"];
1551
- function Ft() {
1552
- return [...Ot, ..._t, ...Ct, ...wt, ...ze, ...Qe];
1550
+ }, Et = ["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"];
1551
+ function Rt() {
1552
+ return [...Et, ...Ot, ...Ft, ...kt, ...Ze, ...Ye];
1553
1553
  }
1554
- function kt(t, e, r) {
1554
+ function St(t, e, r) {
1555
1555
  return `[form-create ${t}]: ${e}`;
1556
1556
  }
1557
- function Ze(t, e) {
1558
- console.error(kt("err", t));
1557
+ function xe(t, e) {
1558
+ console.error(St("err", t));
1559
1559
  }
1560
- function Lr(t) {
1561
- Ze(t.toString()), console.error(t);
1560
+ function Ur(t) {
1561
+ xe(t.toString()), console.error(t);
1562
1562
  }
1563
- function Et(t) {
1563
+ function Dt(t) {
1564
1564
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1565
1565
  }
1566
- const He = "[[FORM-CREATE-PREFIX-", Ge = "-FORM-CREATE-SUFFIX]]";
1567
- function Ye(t, e) {
1566
+ const Je = "[[FORM-CREATE-PREFIX-", We = "-FORM-CREATE-SUFFIX]]";
1567
+ function et(t, e) {
1568
1568
  return JSON.stringify($e(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1569
1569
  if (!(i && i._isVue === !0)) {
1570
1570
  if (typeof i != "function")
@@ -1572,19 +1572,19 @@ function Ye(t, e) {
1572
1572
  if (i.__json)
1573
1573
  return i.__json;
1574
1574
  if (i.__origin && (i = i.__origin), !i.__emit)
1575
- return He + i + Ge;
1575
+ return Je + i + We;
1576
1576
  }
1577
1577
  }, e);
1578
1578
  }
1579
- function Ve(t) {
1579
+ function Pe(t) {
1580
1580
  return new Function("return " + t)();
1581
1581
  }
1582
1582
  function Z(t, e) {
1583
- if (t && d.String(t) && t.length > 4) {
1583
+ if (t && h.String(t) && t.length > 4) {
1584
1584
  let r = t.trim(), i = !1;
1585
1585
  try {
1586
- if (r.indexOf(Ge) > 0 && r.indexOf(He) === 0)
1587
- r = r.replace(Ge, "").replace(He, ""), i = !0;
1586
+ if (r.indexOf(We) > 0 && r.indexOf(Je) === 0)
1587
+ r = r.replace(We, "").replace(Je, ""), i = !0;
1588
1588
  else if (r.indexOf("$FN:") === 0)
1589
1589
  r = r.substring(4), i = !0;
1590
1590
  else if (r.indexOf("$EXEC:") === 0)
@@ -1598,19 +1598,19 @@ function Z(t, e) {
1598
1598
  }, r.__json = t, r.__inject = !0, r;
1599
1599
  } else {
1600
1600
  if (r.indexOf("$FNX:") === 0)
1601
- return r = Ve("function($inject){" + r.substring(5) + "}"), r.__json = t, r.__inject = !0, r;
1601
+ return r = Pe("function($inject){" + r.substring(5) + "}"), r.__json = t, r.__inject = !0, r;
1602
1602
  (!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
1603
1603
  }
1604
1604
  if (!i) return t;
1605
1605
  let s;
1606
1606
  try {
1607
- s = Ve(r);
1607
+ s = Pe(r);
1608
1608
  } catch (n) {
1609
- s = Ve("function " + r);
1609
+ s = Pe("function " + r);
1610
1610
  }
1611
1611
  return s.__json = t, s;
1612
1612
  } catch (s) {
1613
- Ze(`解析失败:${r}
1613
+ xe(`解析失败:${r}
1614
1614
 
1615
1615
  err: ${s}`);
1616
1616
  return;
@@ -1618,23 +1618,23 @@ err: ${s}`);
1618
1618
  }
1619
1619
  return t;
1620
1620
  }
1621
- function Rt(t, e) {
1621
+ function jt(t, e) {
1622
1622
  return JSON.parse(t, function(r, i) {
1623
- return d.Undef(i) || !i.indexOf ? i : Z(i, e);
1623
+ return h.Undef(i) || !i.indexOf ? i : Z(i, e);
1624
1624
  });
1625
1625
  }
1626
- let Mr = 0;
1627
- function Ee() {
1628
- const t = 370 + ++Mr;
1626
+ let qr = 0;
1627
+ function Se() {
1628
+ const t = 370 + ++qr;
1629
1629
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1630
1630
  }
1631
- function ie(t, e, r) {
1631
+ function te(t, e, r) {
1632
1632
  let i = t, s;
1633
1633
  return (e || "").split(".").forEach((n) => {
1634
- s && ((!i[s] || typeof i[s] != "object") && j(i, s, {}), i = i[s]), s = n;
1635
- }), j(i, s, r), i;
1634
+ s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1635
+ }), k(i, s, r), i;
1636
1636
  }
1637
- function Je(t, e) {
1637
+ function Ke(t, e) {
1638
1638
  return {
1639
1639
  value: t,
1640
1640
  enumerable: !1,
@@ -1642,60 +1642,60 @@ function Je(t, e) {
1642
1642
  writable: !!e
1643
1643
  };
1644
1644
  }
1645
- function St(t, e) {
1646
- return Dt([t], e || !1)[0];
1645
+ function At(t, e) {
1646
+ return Vt([t], e || !1)[0];
1647
1647
  }
1648
- function Dt(t, e) {
1648
+ function Vt(t, e) {
1649
1649
  return $e([], [...t], e || !1);
1650
1650
  }
1651
1651
  function Q(t, e) {
1652
- return z(Array.isArray(e) ? e : [e], t, { array: ze, normal: Qe }), t;
1652
+ return z(Array.isArray(e) ? e : [e], t, { array: Ze, normal: Ye }), t;
1653
1653
  }
1654
- function lt(t) {
1655
- const e = d.Function(t.getRule) ? t.getRule() : t;
1654
+ function ct(t) {
1655
+ const e = h.Function(t.getRule) ? t.getRule() : t;
1656
1656
  return e.type || (e.type = "input"), e;
1657
1657
  }
1658
- function Nr(t, e) {
1658
+ function Hr(t, e) {
1659
1659
  return t ? (Object.keys(e || {}).forEach((r) => {
1660
1660
  e[r] && (t[r] = Q(t[r] || {}, e[r]));
1661
1661
  }), t) : e;
1662
1662
  }
1663
- function jt(t, e) {
1663
+ function It(t, e) {
1664
1664
  Object.defineProperties(t, Object.keys(e).reduce((r, i) => (r[i] = {
1665
1665
  get() {
1666
1666
  return e[i]();
1667
1667
  }
1668
1668
  }, r), {}));
1669
1669
  }
1670
- function ae(t) {
1670
+ function oe(t) {
1671
1671
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1672
1672
  }
1673
- function k(t, e) {
1673
+ function F(t, e) {
1674
1674
  try {
1675
1675
  e = t();
1676
1676
  } catch (r) {
1677
- Lr(r);
1677
+ Ur(r);
1678
1678
  }
1679
1679
  return e;
1680
1680
  }
1681
- function We(t, e) {
1681
+ function Xe(t, e) {
1682
1682
  let r = null;
1683
- return d.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => We(i, e)) : r = t, r && e && U(r).forEach((i) => {
1683
+ return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Xe(i, e)) : r = t, r && e && H(r).forEach((i) => {
1684
1684
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1685
1685
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1686
1686
  });
1687
1687
  }), r;
1688
1688
  }
1689
- function Ur(t, e) {
1690
- if (d.Object(t)) {
1689
+ function Gr(t, e) {
1690
+ if (h.Object(t)) {
1691
1691
  const r = {};
1692
1692
  return Object.keys(t).forEach((i) => {
1693
- r[i] = We(t[i], i);
1693
+ r[i] = Xe(t[i], i);
1694
1694
  }), r;
1695
1695
  } else
1696
- return We(t, e);
1696
+ return Xe(t, e);
1697
1697
  }
1698
- function Ie() {
1698
+ function Te() {
1699
1699
  const t = {}, e = (r) => r || "default";
1700
1700
  return {
1701
1701
  setSlot(r, i) {
@@ -1707,11 +1707,11 @@ function Ie() {
1707
1707
  return (t[r] || []).forEach((s) => {
1708
1708
  if (Array.isArray(s))
1709
1709
  i.push(...s);
1710
- else if (d.Function(s)) {
1710
+ else if (h.Function(s)) {
1711
1711
  const n = s();
1712
1712
  Array.isArray(n) ? i.push(...n) : i.push(n);
1713
- } else d.Undef(s) || i.push(s);
1714
- }), Ur(i, r);
1713
+ } else h.Undef(s) || i.push(s);
1714
+ }), Gr(i, r);
1715
1715
  },
1716
1716
  getSlots() {
1717
1717
  let r = [];
@@ -1724,34 +1724,34 @@ function Ie() {
1724
1724
  },
1725
1725
  mergeBag(r) {
1726
1726
  if (!r) return this;
1727
- const i = d.Function(r.getSlots) ? r.getSlots() : r;
1727
+ const i = h.Function(r.getSlots) ? r.getSlots() : r;
1728
1728
  return Array.isArray(r) || r.tag ? this.setSlot(void 0, () => r) : Array.isArray(i) ? this.setSlot(void 0, () => i) : Object.keys(i).forEach((s) => {
1729
1729
  this.setSlot(s, i[s]);
1730
1730
  }), this;
1731
1731
  }
1732
1732
  };
1733
1733
  }
1734
- function we(t, e) {
1734
+ function Oe(t, e) {
1735
1735
  return Object.setPrototypeOf(t, e), t;
1736
1736
  }
1737
- const ut = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, le = {
1738
- "==": (t, e) => JSON.stringify(t) === JSON.stringify(ut(t, e)),
1739
- "!=": (t, e) => !le["=="](t, e),
1737
+ const ft = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ae = {
1738
+ "==": (t, e) => JSON.stringify(t) === JSON.stringify(ft(t, e)),
1739
+ "!=": (t, e) => !ae["=="](t, e),
1740
1740
  ">": (t, e) => t > e,
1741
1741
  ">=": (t, e) => t >= e,
1742
1742
  "<": (t, e) => t < e,
1743
1743
  "<=": (t, e) => t <= e,
1744
1744
  on(t, e) {
1745
- return t && t.indexOf && t.indexOf(ut(t[0], e)) > -1;
1745
+ return t && t.indexOf && t.indexOf(ft(t[0], e)) > -1;
1746
1746
  },
1747
1747
  notOn(t, e) {
1748
- return !le.on(t, e);
1748
+ return !ae.on(t, e);
1749
1749
  },
1750
1750
  in(t, e) {
1751
1751
  return e && e.indexOf && e.indexOf(t) > -1;
1752
1752
  },
1753
1753
  notIn(t, e) {
1754
- return !le.in(t, e);
1754
+ return !ae.in(t, e);
1755
1755
  },
1756
1756
  between(t, e) {
1757
1757
  return t > e[0] && t < e[1];
@@ -1760,10 +1760,10 @@ const ut = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1760
1760
  return t < e[0] || t > e[1];
1761
1761
  },
1762
1762
  empty(t) {
1763
- return d.empty(t);
1763
+ return h.empty(t);
1764
1764
  },
1765
1765
  notEmpty(t) {
1766
- return !d.empty(t);
1766
+ return !h.empty(t);
1767
1767
  },
1768
1768
  pattern(t, e) {
1769
1769
  return new RegExp(e, "g").test(t);
@@ -1774,7 +1774,7 @@ function q(t, e) {
1774
1774
  t != null && (t = t[r]);
1775
1775
  }), t;
1776
1776
  }
1777
- function qr(t) {
1777
+ function Jr(t) {
1778
1778
  const e = /{{\s*(.*?)\s*}}/g;
1779
1779
  let r;
1780
1780
  const i = {};
@@ -1782,7 +1782,13 @@ function qr(t) {
1782
1782
  r[1] && (i[r[1]] = !0);
1783
1783
  return Object.keys(i);
1784
1784
  }
1785
- function At() {
1785
+ function ht(t) {
1786
+ let e = t.split("."), r = [], i = "";
1787
+ return e.forEach((s, n) => {
1788
+ n === 0 ? i = s : i += "." + s, r.push(i);
1789
+ }), r.join(" && ");
1790
+ }
1791
+ function Pt() {
1786
1792
  return {
1787
1793
  props: {},
1788
1794
  on: {},
@@ -1794,57 +1800,57 @@ function At() {
1794
1800
  value: void 0
1795
1801
  };
1796
1802
  }
1797
- function V(t, e) {
1803
+ function I(t, e) {
1798
1804
  return (r, i, s, n = {}) => {
1799
- const o = new xe(t, r, i, s, n);
1800
- return e && (d.Function(e) ? e(o) : o.props(e)), o;
1805
+ const o = new tt(t, r, i, s, n);
1806
+ return e && (h.Function(e) ? e(o) : o.props(e)), o;
1801
1807
  };
1802
1808
  }
1803
- function xe(t, e, r, i, s) {
1804
- this._data = b(At(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1809
+ function tt(t, e, r, i, s) {
1810
+ this._data = _(Pt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1805
1811
  }
1806
- b(xe.prototype, {
1812
+ _(tt.prototype, {
1807
1813
  getRule() {
1808
1814
  return this._data;
1809
1815
  },
1810
1816
  setProp(t, e) {
1811
- return j(this._data, t, e), this;
1817
+ return k(this._data, t, e), this;
1812
1818
  },
1813
1819
  _clone() {
1814
1820
  const t = new this.constructor();
1815
- return t._data = St(this._data), t;
1821
+ return t._data = At(this._data), t;
1816
1822
  }
1817
1823
  });
1818
- function Vt(t) {
1824
+ function Tt(t) {
1819
1825
  t.forEach((e) => {
1820
- xe.prototype[e] = function(r) {
1826
+ tt.prototype[e] = function(r) {
1821
1827
  return Q(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1822
1828
  };
1823
1829
  });
1824
1830
  }
1825
- Vt(Ft());
1826
- const It = V("");
1827
- function Hr(t, e, r) {
1828
- let i = It("", e);
1831
+ Tt(Rt());
1832
+ const Bt = I("");
1833
+ function Wr(t, e, r) {
1834
+ let i = Bt("", e);
1829
1835
  return i._data.type = t, i._data.title = r, i;
1830
1836
  }
1831
- function ct(t, e, r, i) {
1832
- let s = It("", r);
1837
+ function dt(t, e, r, i) {
1838
+ let s = Bt("", r);
1833
1839
  return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
1834
1840
  }
1835
- function Gr() {
1841
+ function Kr() {
1836
1842
  return {
1837
- create: Hr,
1838
- createTmp: ct,
1839
- template: ct,
1840
- factory: V
1843
+ create: Wr,
1844
+ createTmp: dt,
1845
+ template: dt,
1846
+ factory: I
1841
1847
  };
1842
1848
  }
1843
- function Jr(t, e, r) {
1849
+ function Xr(t, e, r) {
1844
1850
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1845
1851
  return s.status = r.status, s.url = t, s;
1846
1852
  }
1847
- function ft(t) {
1853
+ function pt(t) {
1848
1854
  const e = t.responseText || t.response;
1849
1855
  if (!e)
1850
1856
  return e;
@@ -1854,7 +1860,7 @@ function ft(t) {
1854
1860
  return e;
1855
1861
  }
1856
1862
  }
1857
- function Pt(t) {
1863
+ function Lt(t) {
1858
1864
  if (typeof XMLHttpRequest == "undefined")
1859
1865
  return;
1860
1866
  const e = new XMLHttpRequest();
@@ -1867,8 +1873,8 @@ function Pt(t) {
1867
1873
  t.onError(o);
1868
1874
  }, e.onload = function() {
1869
1875
  if (e.status < 200 || e.status >= 300)
1870
- return t.onError(Jr(r, t, e), ft(e));
1871
- t.onSuccess(ft(e));
1876
+ return t.onError(Xr(r, t, e), pt(e));
1877
+ t.onSuccess(pt(e));
1872
1878
  }, e.open(t.method || "get", r, !0);
1873
1879
  let i;
1874
1880
  t.data && ((t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data).map((n) => {
@@ -1879,13 +1885,13 @@ function Pt(t) {
1879
1885
  s[n] != null && e.setRequestHeader(n, s[n]);
1880
1886
  }), e.send(i);
1881
1887
  }
1882
- function ht(t, e, r) {
1888
+ function mt(t, e, r) {
1883
1889
  return new Promise((i, s) => {
1884
- (e || Pt)(M(v({}, t), {
1890
+ (e || Lt)(N(b({}, t), {
1885
1891
  onSuccess(n) {
1886
1892
  let o = (l) => l;
1887
1893
  const a = Z(t.parse);
1888
- d.Function(a) ? o = a : a && d.String(a) && (o = (l) => q(l, a)), i(o(n, void 0, r));
1894
+ h.Function(a) ? o = a : a && h.String(a) && (o = (l) => q(l, a)), i(o(n, void 0, r));
1889
1895
  },
1890
1896
  onError(n) {
1891
1897
  s(n);
@@ -1894,16 +1900,16 @@ function ht(t, e, r) {
1894
1900
  });
1895
1901
  }
1896
1902
  function ge(t) {
1897
- return G(t);
1903
+ return W(t);
1898
1904
  }
1899
- function Wr(t) {
1905
+ function zr(t) {
1900
1906
  function e(n) {
1901
- return d.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1907
+ return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1902
1908
  }
1903
1909
  function r(n, o, a) {
1904
1910
  e(n).forEach((l) => {
1905
1911
  t.getCtxs(l).forEach((u) => {
1906
- j(u.rule, o, a), t.$render.clearCache(u);
1912
+ k(u.rule, o, a), t.$render.clearCache(u);
1907
1913
  });
1908
1914
  });
1909
1915
  }
@@ -1971,7 +1977,7 @@ function Wr(t) {
1971
1977
  return o ? ge(o.rule.value) : t.options.appendValue !== !1 && E(t.appendData, n) ? ge(t.appendData[n]) : void 0;
1972
1978
  },
1973
1979
  coverValue(n) {
1974
- const o = v({}, n || {});
1980
+ const o = b({}, n || {});
1975
1981
  t.deferSyncValue(() => {
1976
1982
  t.appendData = {}, s.fields().forEach((a) => {
1977
1983
  const l = t.fieldCtx[a];
@@ -1981,7 +1987,7 @@ function Wr(t) {
1981
1987
  c.rule.value = u ? n[a] : void 0;
1982
1988
  }), delete o[a];
1983
1989
  }
1984
- }), b(t.appendData, o);
1990
+ }), _(t.appendData, o);
1985
1991
  }, !0);
1986
1992
  },
1987
1993
  setValue(n) {
@@ -2005,7 +2011,7 @@ function Wr(t) {
2005
2011
  }, !0), o ? o.origin : void 0;
2006
2012
  },
2007
2013
  removeRule(n) {
2008
- const o = n && ae(n);
2014
+ const o = n && oe(n);
2009
2015
  if (o)
2010
2016
  return o.rm(), o.origin;
2011
2017
  },
@@ -2055,7 +2061,7 @@ function Wr(t) {
2055
2061
  disabled(n, o) {
2056
2062
  e(o).forEach((a) => {
2057
2063
  t.getCtxs(a).forEach((l) => {
2058
- j(l.rule.props, "disabled", !!n);
2064
+ k(l.rule.props, "disabled", !!n);
2059
2065
  });
2060
2066
  }), t.refresh();
2061
2067
  },
@@ -2094,7 +2100,7 @@ function Wr(t) {
2094
2100
  n.forEach((a) => s.sync(a));
2095
2101
  return;
2096
2102
  }
2097
- let o = d.Object(n) ? ae(n) : t.getCtxs(n);
2103
+ let o = h.Object(n) ? oe(n) : t.getCtxs(n);
2098
2104
  o && (o = Array.isArray(o) ? o : [o], o.forEach((a) => {
2099
2105
  if (!a.deleted) {
2100
2106
  const l = t.subForm[a.id];
@@ -2113,7 +2119,7 @@ function Wr(t) {
2113
2119
  t.$manager.updateOptions(t.options), s.refresh();
2114
2120
  },
2115
2121
  hideForm: (n) => {
2116
- j(t.vm, "isShow", !n);
2122
+ k(t.vm, "isShow", !n);
2117
2123
  },
2118
2124
  changeStatus: () => t.changeStatus,
2119
2125
  clearChangeStatus: () => {
@@ -2121,7 +2127,7 @@ function Wr(t) {
2121
2127
  },
2122
2128
  updateRule(n, o) {
2123
2129
  t.getCtxs(n).forEach((a) => {
2124
- b(a.rule, o);
2130
+ _(a.rule, o);
2125
2131
  });
2126
2132
  },
2127
2133
  updateRules(n) {
@@ -2158,7 +2164,7 @@ function Wr(t) {
2158
2164
  },
2159
2165
  setEffect(n, o, a) {
2160
2166
  const l = t.getCtx(n);
2161
- l && o && (o[0] === "$" && (o = o.substr(1)), E(l.rule, "$" + o) && j(l.rule, "$" + o, a), E(l.rule, "effect") || j(l.rule, "effect", {}), j(l.rule.effect, o, a));
2167
+ l && o && (o[0] === "$" && (o = o.substr(1)), E(l.rule, "$" + o) && k(l.rule, "$" + o, a), E(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2162
2168
  },
2163
2169
  clearEffectData(n, o) {
2164
2170
  const a = t.getCtx(n);
@@ -2182,19 +2188,19 @@ function Wr(t) {
2182
2188
  });
2183
2189
  }), J(() => {
2184
2190
  s.clearValidateState();
2185
- }), n == null && (d.Function(t.options.onReset) && k(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2191
+ }), n == null && (h.Function(t.options.onReset) && F(() => t.options.onReset(s)), t.vm.$emit("reset", s));
2186
2192
  },
2187
2193
  method(n, o) {
2188
2194
  const a = s.el(n);
2189
2195
  if (!a || !a[o])
2190
- throw new Error(kt("err", `${o} 方法不存在`));
2196
+ throw new Error(St("err", `${o} 方法不存在`));
2191
2197
  return (...l) => a[o](...l);
2192
2198
  },
2193
2199
  exec(n, o, ...a) {
2194
- return k(() => s.method(n, o)(...a));
2200
+ return F(() => s.method(n, o)(...a));
2195
2201
  },
2196
2202
  toJson(n) {
2197
- return Ye(s.rule, n);
2203
+ return et(s.rule, n);
2198
2204
  },
2199
2205
  trigger(n, o, ...a) {
2200
2206
  const l = s.el(n);
@@ -2213,7 +2219,7 @@ function Wr(t) {
2213
2219
  return o ? t.subForm[o.id] : void 0;
2214
2220
  },
2215
2221
  getChildrenRuleList(n) {
2216
- const o = typeof n == "object", a = o ? ae(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2222
+ const o = typeof n == "object", a = o ? oe(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2217
2223
  if (!l)
2218
2224
  return [];
2219
2225
  const u = [];
@@ -2224,10 +2230,10 @@ function Wr(t) {
2224
2230
  })(a ? a.loadChildrenPending() : l.children), u;
2225
2231
  },
2226
2232
  getParentRule(n) {
2227
- return (typeof n == "object" ? ae(n) : t.getCtx(n)).parent.rule;
2233
+ return (typeof n == "object" ? oe(n) : t.getCtx(n)).parent.rule;
2228
2234
  },
2229
2235
  getParentSubRule(n) {
2230
- const a = typeof n == "object" ? ae(n) : t.getCtx(n);
2236
+ const a = typeof n == "object" ? oe(n) : t.getCtx(n);
2231
2237
  if (a) {
2232
2238
  const l = a.getParentGroup();
2233
2239
  if (l)
@@ -2262,7 +2268,7 @@ function Wr(t) {
2262
2268
  t.bus.$once("next-tick", n), t.refresh();
2263
2269
  },
2264
2270
  nextRefresh(n) {
2265
- t.nextRefresh(), n && k(n);
2271
+ t.nextRefresh(), n && F(n);
2266
2272
  },
2267
2273
  emit(n, ...o) {
2268
2274
  t.vm.$emit(n, ...o);
@@ -2273,22 +2279,22 @@ function Wr(t) {
2273
2279
  bus: t.bus,
2274
2280
  fetch(n) {
2275
2281
  return new Promise((o, a) => {
2276
- n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => ht(n, t.fc.create.fetch, s).then((l) => {
2277
- k(() => n.onSuccess && n.onSuccess(l)), o(l);
2282
+ n = W(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => mt(n, t.fc.create.fetch, s).then((l) => {
2283
+ F(() => n.onSuccess && n.onSuccess(l)), o(l);
2278
2284
  }).catch((l) => {
2279
- k(() => n.onError && n.onError(l)), a(l);
2285
+ F(() => n.onError && n.onError(l)), a(l);
2280
2286
  }));
2281
2287
  });
2282
2288
  },
2283
- watchFetch(n, o, a) {
2284
- return t.fc.watchLoadData((l, u) => {
2285
- let c = G(n);
2286
- c = t.loadFetchVar(c, l), t.beforeFetch(c).then(() => ht(c, t.fc.create.fetch, s).then((p) => {
2287
- k(() => c.onSuccess && c.onSuccess(p)), o && o(p, u);
2288
- }).catch((p) => {
2289
- k(() => c.onError && c.onError(p)), a && a(p);
2289
+ watchFetch(n, o, a, l) {
2290
+ return t.fc.watchLoadData((u, c) => {
2291
+ let p = W(n);
2292
+ p = t.loadFetchVar(p, u), !(l && l(p, c) === !1) && t.beforeFetch(p).then(() => mt(p, t.fc.create.fetch, s).then((m) => {
2293
+ F(() => p.onSuccess && p.onSuccess(m)), o && o(m, c);
2294
+ }).catch((m) => {
2295
+ F(() => p.onError && p.onError(m)), a && a(m);
2290
2296
  }));
2291
- });
2297
+ }, n.wait == null ? 1e3 : n.wait);
2292
2298
  },
2293
2299
  getData(n, o) {
2294
2300
  return t.fc.getLoadData(n, o);
@@ -2316,8 +2322,8 @@ function Wr(t) {
2316
2322
  };
2317
2323
  }), s.changeValue = s.changeField = s.setValue, s;
2318
2324
  }
2319
- function Kr(t) {
2320
- b(t.prototype, {
2325
+ function Qr(t) {
2326
+ _(t.prototype, {
2321
2327
  initCache() {
2322
2328
  this.clearCacheAll();
2323
2329
  },
@@ -2348,17 +2354,17 @@ function Kr(t) {
2348
2354
  }
2349
2355
  });
2350
2356
  }
2351
- function H(t) {
2357
+ function G(t) {
2352
2358
  const e = t.replace(/(-[a-z])/g, function(r) {
2353
2359
  return r.replace("-", "").toLocaleUpperCase();
2354
2360
  });
2355
- return Bt(e);
2361
+ return Mt(e);
2356
2362
  }
2357
- function Bt(t) {
2363
+ function Mt(t) {
2358
2364
  return t.replace(t[0], t[0].toLowerCase());
2359
2365
  }
2360
- function Xr(t) {
2361
- b(t.prototype, {
2366
+ function Zr(t) {
2367
+ _(t.prototype, {
2362
2368
  initRender() {
2363
2369
  this.cacheConfig = {};
2364
2370
  },
@@ -2375,7 +2381,7 @@ function Xr(t) {
2375
2381
  if (!this.vm.isShow)
2376
2382
  return;
2377
2383
  this.$manager.beforeRender();
2378
- const e = Ie();
2384
+ const e = Te();
2379
2385
  return this.sort.forEach((r) => {
2380
2386
  this.renderSlot(e, this.$handle.ctxs[r]);
2381
2387
  }), this.$manager.render(e);
@@ -2386,23 +2392,23 @@ function Xr(t) {
2386
2392
  })) : e.setSlot(r.rule.slot, this.renderCtx(r, i));
2387
2393
  },
2388
2394
  mergeGlobal(e) {
2389
- this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = pe(() => {
2395
+ this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = he(() => {
2390
2396
  const i = this.$handle.options.global;
2391
2397
  return Q({}, [i["*"], i[e.originType] || i[e.type] || i[e.type] || {}]);
2392
2398
  })), e.prop = Q({}, [this.cacheConfig[e.trueType].value, e.prop]));
2393
2399
  },
2394
2400
  setOptions(e) {
2395
2401
  const r = e.loadPending({ key: "options", origin: e.prop.options, def: [] });
2396
- e.prop.options = r, e.prop.optionsTo && r && ie(e.prop, e.prop.optionsTo, r);
2402
+ e.prop.options = r, e.prop.optionsTo && r && te(e.prop, e.prop.optionsTo, r);
2397
2403
  },
2398
2404
  deepSet(e) {
2399
2405
  const r = e.rule.deep;
2400
2406
  r && Object.keys(r).sort((i, s) => i.length < s.length ? -1 : 1).forEach((i) => {
2401
- ie(e.prop, i, r[i]);
2407
+ te(e.prop, i, r[i]);
2402
2408
  });
2403
2409
  },
2404
2410
  parseSide(e, r) {
2405
- return d.Object(e) ? Q({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2411
+ return h.Object(e) ? Q({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2406
2412
  },
2407
2413
  renderSides(e, r, i) {
2408
2414
  const s = r[i ? "rule" : "prop"];
@@ -2436,13 +2442,13 @@ function Xr(t) {
2436
2442
  model: n.model || {},
2437
2443
  slotValue: l
2438
2444
  };
2439
- l.length && i.slotUpdate && k(() => i.slotUpdate(u));
2445
+ l.length && i.slotUpdate && F(() => i.slotUpdate(u));
2440
2446
  let c = {};
2441
2447
  const p = e.loadChildrenPending();
2442
2448
  e.parser.renderChildren ? c = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (c = this.renderChildren(p, e));
2443
2449
  const m = this.getTypeSlot(e);
2444
2450
  let $;
2445
- return m ? (u.children = c, $ = m(u)) : $ = a ? e.parser.preview(qe(c), e) : e.parser.render(qe(c), 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), $;
2451
+ return m ? (u.children = c, $ = m(u)) : $ = a ? e.parser.preview(Ge(c), e) : e.parser.render(Ge(c), e), $ = this.renderSides($, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), $ = this.$manager.makeWrap(e, $)), e.none && (Array.isArray($) ? $ = $.map((v) => !v || !v.tag ? v : this.none(v)) : $ = this.none($)), o && this.setCache(e, () => this.stable($), r), $;
2446
2452
  }, this.setCache(e, s, r);
2447
2453
  }
2448
2454
  return (...s) => {
@@ -2504,12 +2510,12 @@ function Xr(t) {
2504
2510
  }
2505
2511
  });
2506
2512
  const i = r.ctxInject[e.id];
2507
- return b(i, {
2513
+ return _(i, {
2508
2514
  preview: e.prop.preview,
2509
2515
  options: e.prop.options,
2510
2516
  prop: function() {
2511
- const s = v({}, e.prop);
2512
- return s.on = s.on ? v({}, s.on) : {}, delete s.model, s;
2517
+ const s = b({}, e.prop);
2518
+ return s.on = s.on ? b({}, s.on) : {}, delete s.model, s;
2513
2519
  }(),
2514
2520
  children: e.loadChildrenPending()
2515
2521
  }), i;
@@ -2561,11 +2567,11 @@ function Xr(t) {
2561
2567
  this.$handle.setValue(e, e.parser.toValue(e.modelValue, e), e.modelValue);
2562
2568
  },
2563
2569
  renderChildren(e, r, i) {
2564
- if (!d.trueArray(e)) return [];
2565
- const s = Ie();
2570
+ if (!h.trueArray(e)) return [];
2571
+ const s = Te();
2566
2572
  return e.map((n) => {
2567
2573
  if (n) {
2568
- if (d.String(n)) return s.setSlot(null, i ? this.renderRule({
2574
+ if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
2569
2575
  type: "template",
2570
2576
  children: [n]
2571
2577
  }) : n);
@@ -2579,39 +2585,39 @@ function Xr(t) {
2579
2585
  },
2580
2586
  defaultRender(e, r) {
2581
2587
  const i = e.prop;
2582
- 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(Bt(i.type), i, r);
2588
+ 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(Mt(i.type), i, r);
2583
2589
  },
2584
2590
  renderRule(e, r, i) {
2585
2591
  if (!e) return;
2586
- if (d.String(e)) return e;
2592
+ if (h.String(e)) return e;
2587
2593
  let s;
2588
2594
  if (i)
2589
2595
  s = e.type;
2590
2596
  else if (s = e.is, e.type) {
2591
- s = H(e.type);
2597
+ s = G(e.type);
2592
2598
  const a = this.vNode.aliasMap[s];
2593
- a && (s = H(a));
2599
+ a && (s = G(a));
2594
2600
  }
2595
2601
  if (!s) return;
2596
- const n = Ie();
2597
- d.trueArray(e.children) && e.children.forEach((a) => {
2602
+ const n = Te();
2603
+ h.trueArray(e.children) && e.children.forEach((a) => {
2598
2604
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2599
2605
  });
2600
- const o = v({}, e);
2606
+ const o = b({}, e);
2601
2607
  return delete o.type, delete o.is, this.vNode.make(s, o, n.mergeBag(r).getSlots());
2602
2608
  }
2603
2609
  });
2604
2610
  }
2605
- let zr = 1;
2606
- function et(t) {
2607
- b(this, {
2611
+ let Yr = 1;
2612
+ function rt(t) {
2613
+ _(this, {
2608
2614
  $handle: t,
2609
2615
  fc: t.fc,
2610
2616
  vm: t.vm,
2611
2617
  $manager: t.$manager,
2612
2618
  vNode: new t.fc.CreateNode(t.vm),
2613
- id: zr++
2614
- }), jt(this, {
2619
+ id: Yr++
2620
+ }), It(this, {
2615
2621
  options() {
2616
2622
  return t.options;
2617
2623
  },
@@ -2620,10 +2626,10 @@ function et(t) {
2620
2626
  }
2621
2627
  }), this.initCache(), this.initRender();
2622
2628
  }
2623
- Kr(et);
2624
- Xr(et);
2625
- function Qr(t) {
2626
- b(t.prototype, {
2629
+ Qr(rt);
2630
+ Zr(rt);
2631
+ function xr(t) {
2632
+ _(t.prototype, {
2627
2633
  parseInjectEvent(e, r) {
2628
2634
  const i = e.inject || this.options.injectEvent;
2629
2635
  return this.parseEventLst(e, r, i);
@@ -2635,11 +2641,11 @@ function Qr(t) {
2635
2641
  }), r;
2636
2642
  },
2637
2643
  parseEvent(e, r, i, s) {
2638
- if (d.Function(r) && (i !== !1 && !d.Undef(i) || r.__inject))
2644
+ if (h.Function(r) && (i !== !1 && !h.Undef(i) || r.__inject))
2639
2645
  return this.inject(e, r, i);
2640
- if (!s && Array.isArray(r) && r[0] && (d.String(r[0]) || d.Function(r[0])))
2646
+ if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2641
2647
  return this.parseEventLst(e, r, i, !0);
2642
- if (d.String(r)) {
2648
+ if (h.String(r)) {
2643
2649
  const n = Z(r);
2644
2650
  if (n && r !== n)
2645
2651
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
@@ -2647,19 +2653,19 @@ function Qr(t) {
2647
2653
  },
2648
2654
  parseEmit(e, r) {
2649
2655
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: l } = s, u = s[r ? "emit" : "nativeEmit"] || [];
2650
- return d.trueArray(u) && u.forEach((c) => {
2656
+ return h.trueArray(u) && u.forEach((c) => {
2651
2657
  if (!c) return;
2652
2658
  let p, m = n || o || a;
2653
- if (d.Object(c) && (p = c.inject, c = c.name, m = c.prefix || m), m) {
2659
+ if (h.Object(c) && (p = c.inject, c = c.name, m = c.prefix || m), m) {
2654
2660
  r || (m = `native-${m}`);
2655
- const $ = ye(`${m}-${c}`), _ = (...w) => {
2661
+ const $ = ye(`${m}-${c}`), v = (...w) => {
2656
2662
  this.vm.$emit($, ...w), this.vm.$emit("emit-event", $, ...w), this.bus.$emit($, ...w);
2657
2663
  };
2658
- if (_.__emit = !0, !p && l === !1)
2659
- i[c] = _;
2664
+ if (v.__emit = !0, !p && l === !1)
2665
+ i[c] = v;
2660
2666
  else {
2661
2667
  let w = p || l || this.options.injectEvent;
2662
- i[c] = d.Undef(w) ? _ : this.inject(s, _, w);
2668
+ i[c] = h.Undef(w) ? v : this.inject(s, v, w);
2663
2669
  }
2664
2670
  }
2665
2671
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2689,7 +2695,7 @@ function Qr(t) {
2689
2695
  },
2690
2696
  loadStrVar(e, r) {
2691
2697
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2692
- const i = e, s = qr(e);
2698
+ const i = e, s = Jr(e);
2693
2699
  let n;
2694
2700
  if (s.forEach((o) => {
2695
2701
  const a = o.split("||"), l = a[0].trim();
@@ -2720,14 +2726,14 @@ function Qr(t) {
2720
2726
  }
2721
2727
  });
2722
2728
  }
2723
- const dt = ["hook:updated", "hook:mounted"];
2724
- function Zr(t) {
2725
- b(t.prototype, {
2729
+ const gt = ["hook:updated", "hook:mounted"];
2730
+ function ei(t) {
2731
+ _(t.prototype, {
2726
2732
  usePage() {
2727
2733
  const e = this.options.page;
2728
2734
  if (!e) return;
2729
- let r = 25, i = Yr(this.rules);
2730
- d.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), b(this, {
2735
+ let r = 25, i = ti(this.rules);
2736
+ h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), _(this, {
2731
2737
  first: r,
2732
2738
  limit: i,
2733
2739
  pageEnd: this.rules.length <= r
@@ -2735,17 +2741,17 @@ function Zr(t) {
2735
2741
  },
2736
2742
  pageLoad() {
2737
2743
  const e = () => {
2738
- 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());
2744
+ 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());
2739
2745
  };
2740
- this.vm.$on(dt, e);
2746
+ this.vm.$on(gt, e);
2741
2747
  }
2742
2748
  });
2743
2749
  }
2744
- function Yr(t) {
2750
+ function ti(t) {
2745
2751
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2746
2752
  }
2747
- function xr(t) {
2748
- b(t.prototype, {
2753
+ function ri(t) {
2754
+ _(t.prototype, {
2749
2755
  clearNextTick() {
2750
2756
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
2751
2757
  },
@@ -2759,16 +2765,16 @@ function xr(t) {
2759
2765
  }
2760
2766
  });
2761
2767
  }
2762
- function ei(t) {
2768
+ function ii(t) {
2763
2769
  Object.defineProperties(t.origin, {
2764
- __fc__: Je(de(t), !0)
2770
+ __fc__: Ke(fe(t), !0)
2765
2771
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2766
- __fc__: Je(de(t), !0)
2772
+ __fc__: Ke(fe(t), !0)
2767
2773
  });
2768
2774
  }
2769
- function Tt(t, e, r) {
2770
- const i = Ee(), s = !!e.field;
2771
- b(this, {
2775
+ function Nt(t, e, r) {
2776
+ const i = Se(), s = !!e.field;
2777
+ _(this, {
2772
2778
  id: i,
2773
2779
  ref: i,
2774
2780
  wrapRef: i + "fi",
@@ -2785,18 +2791,18 @@ function Tt(t, e, r) {
2785
2791
  parent: null,
2786
2792
  group: e.subRule ? this : null,
2787
2793
  cacheConfig: null,
2788
- prop: v({}, e),
2794
+ prop: b({}, e),
2789
2795
  computed: {},
2790
2796
  payload: {},
2791
2797
  refRule: {},
2792
2798
  input: s,
2793
2799
  el: void 0,
2794
2800
  exportEl: void 0,
2795
- defaultValue: s ? G(r) : void 0,
2801
+ defaultValue: s ? W(r) : void 0,
2796
2802
  field: e.field || void 0
2797
- }), this.updateKey(), ei(this), this.update(t, !0);
2803
+ }), this.updateKey(), ii(this), this.update(t, !0);
2798
2804
  }
2799
- b(Tt.prototype, {
2805
+ _(Nt.prototype, {
2800
2806
  getParentGroup() {
2801
2807
  let t = this.parent;
2802
2808
  for (; t; ) {
@@ -2828,8 +2834,8 @@ b(Tt.prototype, {
2828
2834
  return this.getPending(e, i);
2829
2835
  delete this.pending[e];
2830
2836
  let a = r;
2831
- if (d.Function(r)) {
2832
- let l = k(() => r({
2837
+ if (h.Function(r)) {
2838
+ let l = F(() => r({
2833
2839
  rule: this.rule,
2834
2840
  api: this.$api,
2835
2841
  update: (u) => {
@@ -2841,7 +2847,7 @@ b(Tt.prototype, {
2841
2847
  delete this.pending[e], n && n(u), this.$api && this.$api.sync(this.rule);
2842
2848
  }
2843
2849
  }));
2844
- l && d.Function(l.then) ? (l.then((u) => {
2850
+ l && h.Function(l.then) ? (l.then((u) => {
2845
2851
  const c = u || i;
2846
2852
  this.setPending(e, r, c), s && s(c), this.$api && this.$api.sync(this.rule);
2847
2853
  }).catch((u) => {
@@ -2856,7 +2862,7 @@ b(Tt.prototype, {
2856
2862
  setPending(t, e, r) {
2857
2863
  this.pending[t] = {
2858
2864
  origin: e,
2859
- value: re(r)
2865
+ value: ee(r)
2860
2866
  };
2861
2867
  },
2862
2868
  effectData(t) {
@@ -2866,20 +2872,20 @@ b(Tt.prototype, {
2866
2872
  t === void 0 ? this.payload = {} : delete this.payload[t];
2867
2873
  },
2868
2874
  updateKey(t) {
2869
- this.key = Ee(), t && this.parent && this.parent.updateKey(t);
2875
+ this.key = Se(), t && this.parent && this.parent.updateKey(t);
2870
2876
  },
2871
2877
  updateType() {
2872
- this.originType = this.rule.type, this.type = H(this.rule.type), this.trueType = this.$handle.getType(this.originType);
2878
+ this.originType = this.rule.type, this.type = G(this.rule.type), this.trueType = this.$handle.getType(this.originType);
2873
2879
  },
2874
2880
  setParser(t) {
2875
2881
  this.parser = t, t.init(this);
2876
2882
  },
2877
2883
  initProp() {
2878
- const t = v({}, this.rule);
2884
+ const t = b({}, this.rule);
2879
2885
  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 || []];
2880
2886
  },
2881
2887
  initNone() {
2882
- this.none = !(d.Undef(this.prop.display) || this.prop.display);
2888
+ this.none = !(h.Undef(this.prop.display) || this.prop.display);
2883
2889
  },
2884
2890
  injectValidate() {
2885
2891
  return this.prop.validate;
@@ -2900,7 +2906,7 @@ b(Tt.prototype, {
2900
2906
  this.$handle.watchCtx(this);
2901
2907
  },
2902
2908
  delete() {
2903
- this.unwatch(), this.unlink(), this.rmCtrl(), this.parent && this.parent.children.splice(this.parent.children.indexOf(this) >>> 0, 1), b(this, {
2909
+ this.unwatch(), this.unlink(), this.rmCtrl(), this.parent && this.parent.children.splice(this.parent.children.indexOf(this) >>> 0, 1), _(this, {
2904
2910
  deleted: !0,
2905
2911
  computed: {},
2906
2912
  parent: null,
@@ -2923,14 +2929,14 @@ b(Tt.prototype, {
2923
2929
  }
2924
2930
  this.$handle.noWatch(() => {
2925
2931
  this.$handle.deferSyncValue(() => {
2926
- this.rmCtrl(), t(), this.$handle.rmCtx(this), b(this, {
2932
+ this.rmCtrl(), t(), this.$handle.rmCtx(this), _(this, {
2927
2933
  root: []
2928
2934
  });
2929
2935
  }, this.input);
2930
2936
  });
2931
2937
  },
2932
2938
  update(t, e) {
2933
- b(this, {
2939
+ _(this, {
2934
2940
  deleted: !1,
2935
2941
  $handle: t,
2936
2942
  $render: t.$render,
@@ -2942,8 +2948,8 @@ b(Tt.prototype, {
2942
2948
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
2943
2949
  }
2944
2950
  });
2945
- function ti(t) {
2946
- b(t.prototype, {
2951
+ function ni(t) {
2952
+ _(t.prototype, {
2947
2953
  nextRefresh(e) {
2948
2954
  const r = this.loadedId;
2949
2955
  J(() => {
@@ -2951,10 +2957,10 @@ function ti(t) {
2951
2957
  });
2952
2958
  },
2953
2959
  parseRule(e) {
2954
- const r = lt(e);
2960
+ const r = ct(e);
2955
2961
  return Object.defineProperties(r, {
2956
- __origin__: Je(e, !0)
2957
- }), ri(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
2962
+ __origin__: Ke(e, !0)
2963
+ }), si(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
2958
2964
  i && this.loadFn(i, r);
2959
2965
  }), this.loadCtrl(r), r.update && (r.update = Z(r.update)), r;
2960
2966
  },
@@ -2970,9 +2976,9 @@ function ti(t) {
2970
2976
  },
2971
2977
  syncProp(e) {
2972
2978
  const r = e.rule;
2973
- d.trueArray(r.sync) && z([{
2974
- on: r.sync.reduce((i, s) => (i[`update:${s}`] = (n) => {
2975
- r.props[s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
2979
+ h.trueArray(r.sync) && z([{
2980
+ on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
2981
+ r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
2976
2982
  }, i), {})
2977
2983
  }], e.computed);
2978
2984
  },
@@ -2996,40 +3002,40 @@ function ti(t) {
2996
3002
  let l = this.sort.indexOf(a.__fc__.id);
2997
3003
  return l > -1 ? l : i(o - 1);
2998
3004
  }, s = (o, a) => {
2999
- d.trueArray(o) && this._loadRule(o, a);
3005
+ h.trueArray(o) && this._loadRule(o, a);
3000
3006
  }, n = e.map((o, a) => {
3001
- if (r && !d.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3007
+ if (r && !h.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3002
3008
  if (o.__fc__ && o.__fc__.root === e && this.ctxs[o.__fc__.id])
3003
3009
  return s(o.__fc__.loadChildrenPending(), o.__fc__), o.__fc__;
3004
- let l = lt(o);
3010
+ let l = ct(o);
3005
3011
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3006
3012
  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);
3007
3013
  let c, p = !1, m = !!o.__fc__, $ = l.value;
3008
3014
  if (m) {
3009
3015
  if (c = o.__fc__, $ = c.defaultValue, c.deleted) {
3010
- if (pt(c))
3016
+ if (yt(c))
3011
3017
  return;
3012
3018
  c.update(this);
3013
3019
  } else if (!c.check(this)) {
3014
- if (pt(c))
3020
+ if (yt(c))
3015
3021
  return;
3016
- e[a] = o = o._clone ? o._clone() : Rt(Ye(o)), c = null, p = !0;
3022
+ e[a] = o = o._clone ? o._clone() : jt(et(o)), c = null, p = !0;
3017
3023
  }
3018
3024
  }
3019
3025
  if (c)
3020
3026
  c.originType !== c.rule.type && c.updateType(), this.bindParser(c), this.appendValue(c.rule), c.parent && c.parent !== r && this.rmSubRuleData(c);
3021
3027
  else {
3022
- const S = this.parseRule(o);
3023
- c = new Tt(this, S, $), this.bindParser(c);
3028
+ const D = this.parseRule(o);
3029
+ c = new Nt(this, D, $), this.bindParser(c);
3024
3030
  }
3025
- [!1, !0].forEach((S) => this.parseEmit(c, S)), this.syncProp(c), c.parent = r || null, c.root = e, this.setCtx(c), !p && !m && (this.effect(c, "load"), this.targetHook(c, "load")), this.effect(c, "created");
3026
- const _ = c.loadChildrenPending();
3027
- if (c.parser.loadChildren === !1 || s(_, c), !r) {
3028
- const S = i(a);
3029
- S > -1 || !a ? this.sort.splice(S + 1, 0, c.id) : this.sort.push(c.id);
3031
+ [!1, !0].forEach((D) => this.parseEmit(c, D)), this.syncProp(c), c.parent = r || null, c.root = e, this.setCtx(c), !p && !m && (this.effect(c, "load"), this.targetHook(c, "load")), this.effect(c, "created");
3032
+ const v = c.loadChildrenPending();
3033
+ if (c.parser.loadChildren === !1 || s(v, c), !r) {
3034
+ const D = i(a);
3035
+ D > -1 || !a ? this.sort.splice(D + 1, 0, c.id) : this.sort.push(c.id);
3030
3036
  }
3031
3037
  const w = c.rule;
3032
- return c.updated || (c.updated = !0, d.Function(w.update) && this.bus.$once("load-end", () => {
3038
+ return c.updated || (c.updated = !0, h.Function(w.update) && this.bus.$once("load-end", () => {
3033
3039
  this.refreshUpdate(c, w.value, "init");
3034
3040
  }), this.effect(c, "loaded")), this.refreshControl(c) && (this.cycleLoad = !0), c;
3035
3041
  }).filter((o) => !!o);
@@ -3039,17 +3045,17 @@ function ti(t) {
3039
3045
  return e.input && e.rule.control && this.useCtrl(e);
3040
3046
  },
3041
3047
  useCtrl(e) {
3042
- const r = ii(e), i = [], s = this.api;
3048
+ const r = oi(e), i = [], s = this.api;
3043
3049
  if (!r.length) return !1;
3044
3050
  for (let a = 0; a < r.length; a++) {
3045
3051
  const l = r[a], u = l.handle || function(p) {
3046
- return (le[l.condition || "=="] || le["=="])(p, l.value);
3052
+ return (ae[l.condition || "=="] || ae["=="])(p, l.value);
3047
3053
  };
3048
- if (!d.trueArray(l.rule)) continue;
3049
- const c = M(v({}, l), {
3050
- valid: k(() => u(e.rule.value, s)),
3051
- ctrl: ni(e, l.rule),
3052
- isHidden: d.String(l.rule[0])
3054
+ if (!h.trueArray(l.rule)) continue;
3055
+ const c = N(b({}, l), {
3056
+ valid: F(() => u(e.rule.value, s)),
3057
+ ctrl: ai(e, l.rule),
3058
+ isHidden: h.String(l.rule[0])
3053
3059
  });
3054
3060
  c.valid && c.ctrl || !c.valid && !c.ctrl && !c.isHidden || i.push(c);
3055
3061
  }
@@ -3057,14 +3063,14 @@ function ti(t) {
3057
3063
  const n = [];
3058
3064
  let o = !1;
3059
3065
  return this.deferSyncValue(() => {
3060
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: c, append: p, child: m, ctrl: $, method: _ }) => {
3066
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: c, append: p, child: m, ctrl: $, method: v }) => {
3061
3067
  if (a) {
3062
3068
  l ? e.ctrlRule.push({
3063
3069
  __ctrl: !0,
3064
3070
  children: u,
3065
3071
  valid: l
3066
3072
  }) : $ && e.ctrlRule.splice(e.ctrlRule.indexOf($) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3067
- _ === "disabled" || _ === "enabled" ? this.api.disabled(!l, u) : _ === "display" ? this.api.display(l, u) : _ === "required" ? (u.forEach((w) => {
3073
+ v === "disabled" || v === "enabled" ? this.api.disabled(!l, u) : v === "display" ? this.api.display(l, u) : v === "required" ? (u.forEach((w) => {
3068
3074
  this.api.setEffect(w, "required", l);
3069
3075
  }), l || this.api.clearValidateState(u)) : this.api.hidden(!l, u);
3070
3076
  });
@@ -3083,7 +3089,7 @@ function ti(t) {
3083
3089
  });
3084
3090
  } else {
3085
3091
  e.ctrlRule.splice(e.ctrlRule.indexOf($), 1);
3086
- const w = ae($);
3092
+ const w = oe($);
3087
3093
  w && w.rm();
3088
3094
  }
3089
3095
  });
@@ -3098,7 +3104,7 @@ function ti(t) {
3098
3104
  },
3099
3105
  _reloadRule(e) {
3100
3106
  e || (e = this.rules);
3101
- const r = v({}, this.ctxs);
3107
+ const r = b({}, this.ctxs);
3102
3108
  this.clearNextTick(), this.initData(e), this.fc.rules = e, this.deferSyncValue(() => {
3103
3109
  this.bus.$once("load-end", () => {
3104
3110
  Object.keys(r).filter((i) => this.ctxs[i] === void 0).forEach((i) => this.rmCtx(r[i])), this.$render.clearCacheAll();
@@ -3111,28 +3117,28 @@ function ti(t) {
3111
3117
  }
3112
3118
  });
3113
3119
  }
3114
- function ri(t) {
3115
- const e = At();
3120
+ function si(t) {
3121
+ const e = Pt();
3116
3122
  return Object.keys(e).forEach((r) => {
3117
- E(t, r) || j(t, r, e[r]);
3123
+ E(t, r) || k(t, r, e[r]);
3118
3124
  }), t;
3119
3125
  }
3120
- function ii(t) {
3126
+ function oi(t) {
3121
3127
  const e = t.rule.control || [];
3122
- return d.Object(e) ? [e] : e;
3128
+ return h.Object(e) ? [e] : e;
3123
3129
  }
3124
- function ni(t, e) {
3130
+ function ai(t, e) {
3125
3131
  for (let r = 0; r < t.ctrlRule.length; r++) {
3126
3132
  const i = t.ctrlRule[r];
3127
3133
  if (i.children === e)
3128
3134
  return i;
3129
3135
  }
3130
3136
  }
3131
- function pt(t) {
3137
+ function yt(t) {
3132
3138
  return !!t.rule.__ctrl;
3133
3139
  }
3134
- function si(t) {
3135
- b(t.prototype, {
3140
+ function li(t) {
3141
+ _(t.prototype, {
3136
3142
  setValue(e, r, i, s) {
3137
3143
  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, {
3138
3144
  rule: e.origin,
@@ -3158,21 +3164,21 @@ function si(t) {
3158
3164
  setFormData(e, r) {
3159
3165
  e.modelValue = r;
3160
3166
  const i = e.getParentGroup();
3161
- i && (this.subRuleData[i.id] || (this.subRuleData[i.id] = {}), this.subRuleData[i.id][e.field] = e.rule.value), j(this.formData, e.id, r);
3167
+ 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);
3162
3168
  },
3163
3169
  rmSubRuleData(e) {
3164
3170
  const r = e.getParentGroup();
3165
- r && this.subRuleData[r.id] && delete this.subRuleData[r.id][e.field];
3171
+ r && this.subRuleData[r.id] && x(this.subRuleData[r.id], e.field);
3166
3172
  },
3167
3173
  getFormData(e) {
3168
3174
  return this.formData[e.id];
3169
3175
  },
3170
3176
  syncForm() {
3171
3177
  const e = {}, r = this.fields(), i = [];
3172
- 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) => {
3178
+ 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) => {
3173
3179
  const o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a.rule))[0] || this.fieldCtx[n][0];
3174
- return this.isIgnore(o.rule) && i.push(n), s[n] = ke(o.rule, "value"), s;
3175
- }, e), this.form = re(e), this.ignoreFields = i, this.syncValue();
3180
+ return this.isIgnore(o.rule) && i.push(n), s[n] = Re(o.rule, "value"), s;
3181
+ }, e), this.form = ee(e), this.ignoreFields = i, this.syncValue();
3176
3182
  },
3177
3183
  isIgnore(e) {
3178
3184
  return e.ignore === !0 || e.ignore === "hidden" && e.hidden || this.options.ignoreHiddenFields && e.hidden;
@@ -3184,7 +3190,7 @@ function si(t) {
3184
3190
  this.subForm[e.id] = r;
3185
3191
  },
3186
3192
  deferSyncValue(e, r) {
3187
- this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), k(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
3193
+ this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), F(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
3188
3194
  },
3189
3195
  syncValue() {
3190
3196
  if (this.deferSyncFn)
@@ -3195,14 +3201,14 @@ function si(t) {
3195
3201
  }), this.vm.updateValue(e);
3196
3202
  },
3197
3203
  isChange(e, r) {
3198
- return JSON.stringify(this.getFormData(e), mt) !== JSON.stringify(r, mt);
3204
+ return JSON.stringify(this.getFormData(e), $t) !== JSON.stringify(r, $t);
3199
3205
  },
3200
3206
  isQuote(e, r) {
3201
- return (d.Object(r) || Array.isArray(r)) && r === e.rule.value;
3207
+ return (h.Object(r) || Array.isArray(r)) && r === e.rule.value;
3202
3208
  },
3203
3209
  refreshUpdate(e, r, i, s) {
3204
- if (d.Function(e.rule.update)) {
3205
- const n = k(() => e.rule.update(r, e.origin, this.api, {
3210
+ if (h.Function(e.rule.update)) {
3211
+ const n = F(() => e.rule.update(r, e.origin, this.api, {
3206
3212
  origin: i || "change",
3207
3213
  linkField: s
3208
3214
  }));
@@ -3218,7 +3224,7 @@ function si(t) {
3218
3224
  },
3219
3225
  appendLink(e) {
3220
3226
  const r = e.rule.link;
3221
- d.trueArray(r) && r.forEach((i) => {
3227
+ h.trueArray(r) && r.forEach((i) => {
3222
3228
  const s = () => this.refreshRule(e, e.rule.value, "link", i);
3223
3229
  this.bus.$on("change-" + i, s), e.linkOn.push(() => this.bus.$off("change-" + i, s));
3224
3230
  });
@@ -3228,10 +3234,10 @@ function si(t) {
3228
3234
  }
3229
3235
  });
3230
3236
  }
3231
- function mt(t, e) {
3237
+ function $t(t, e) {
3232
3238
  return typeof e == "function" ? "" + e : e;
3233
3239
  }
3234
- const Fe = {
3240
+ const Ee = {
3235
3241
  init(t) {
3236
3242
  },
3237
3243
  toFormValue(t, e) {
@@ -3250,9 +3256,9 @@ const Fe = {
3250
3256
  },
3251
3257
  mergeProp(t) {
3252
3258
  }
3253
- }, oi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"];
3254
- function ai(t) {
3255
- b(t.prototype, {
3259
+ }, ui = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"];
3260
+ function ci(t) {
3261
+ _(t.prototype, {
3256
3262
  getCtx(e) {
3257
3263
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
3258
3264
  },
@@ -3282,26 +3288,26 @@ function ai(t) {
3282
3288
  getParser(e) {
3283
3289
  const r = this.fc.parsers, i = this.fc.renderDriver;
3284
3290
  if (i) {
3285
- const s = i.parsers || {}, n = s[e.originType] || s[H(e.type)] || s[e.trueType];
3291
+ const s = i.parsers || {}, n = s[e.originType] || s[G(e.type)] || s[e.trueType];
3286
3292
  if (n)
3287
3293
  return n;
3288
3294
  }
3289
- return r[e.originType] || r[H(e.type)] || r[e.trueType] || Fe;
3295
+ return r[e.originType] || r[G(e.type)] || r[e.trueType] || Ee;
3290
3296
  },
3291
3297
  bindParser(e) {
3292
3298
  e.setParser(this.getParser(e));
3293
3299
  },
3294
3300
  getType(e) {
3295
- const r = this.fc.CreateNode.aliasMap, i = r[e] || r[H(e)] || e;
3296
- return H(i);
3301
+ const r = this.fc.CreateNode.aliasMap, i = r[e] || r[G(e)] || e;
3302
+ return G(i);
3297
3303
  },
3298
3304
  noWatch(e) {
3299
- this.noWatchFn || (this.noWatchFn = e), k(e), this.noWatchFn === e && (this.noWatchFn = null);
3305
+ this.noWatchFn || (this.noWatchFn = e), F(e), this.noWatchFn === e && (this.noWatchFn = null);
3300
3306
  },
3301
3307
  watchCtx(e) {
3302
- if (Ft().filter((i) => i[0] !== "_" && i[0] !== "$" && oi.indexOf(i) === -1).forEach((i) => {
3303
- const s = ke(e.rule, i), n = i === "children";
3304
- e.refRule[i] = s, e.watch.push(B(n ? () => d.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3308
+ if (Rt().filter((i) => i[0] !== "_" && i[0] !== "$" && ui.indexOf(i) === -1).forEach((i) => {
3309
+ const s = Re(e.rule, i), n = i === "children";
3310
+ e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3305
3311
  let l = s.value;
3306
3312
  if (!this.isBreakWatch()) {
3307
3313
  if (n && e.parser.loadChildren === !1) {
@@ -3317,31 +3323,31 @@ function ai(t) {
3317
3323
  else if (i === "link") {
3318
3324
  e.link();
3319
3325
  return;
3320
- } 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));
3326
+ } 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));
3321
3327
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3322
3328
  }
3323
3329
  }, { deep: !n, sync: n }));
3324
- }), e.refRule.__$title = pe(() => {
3330
+ }), e.refRule.__$title = he(() => {
3325
3331
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3326
3332
  if (i) {
3327
3333
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3328
3334
  s && (i = this.api.t(s[1]));
3329
3335
  }
3330
3336
  return i;
3331
- }), e.refRule.__$info = pe(() => {
3337
+ }), e.refRule.__$info = he(() => {
3332
3338
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3333
3339
  if (i) {
3334
3340
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3335
3341
  s && (i = this.api.t(s[1]));
3336
3342
  }
3337
3343
  return i;
3338
- }), e.refRule.__$validate = pe(() => U(e.rule.validate).map((i) => {
3339
- const s = v({}, i);
3344
+ }), e.refRule.__$validate = he(() => H(e.rule.validate).map((i) => {
3345
+ const s = b({}, i);
3340
3346
  if (s.message) {
3341
3347
  const n = s.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3342
3348
  n && (s.message = this.api.t(n[1], { title: e.refRule.__$title.value }));
3343
3349
  }
3344
- if (d.Function(s.validator)) {
3350
+ if (h.Function(s.validator)) {
3345
3351
  const n = e;
3346
3352
  return s.validator = function(...o) {
3347
3353
  return i.validator.call({
@@ -3355,7 +3361,7 @@ function ai(t) {
3355
3361
  }
3356
3362
  return s;
3357
3363
  })), e.input) {
3358
- const i = ke(e.rule, "value");
3364
+ const i = Re(e.rule, "value");
3359
3365
  e.watch.push(B(() => i.value, () => {
3360
3366
  let s = e.parser.toFormValue(i.value, e);
3361
3367
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3365,13 +3371,13 @@ function ai(t) {
3365
3371
  let i = e.rule.computed;
3366
3372
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3367
3373
  let n;
3368
- const o = pe(() => {
3374
+ const o = he(() => {
3369
3375
  const l = i[s];
3370
3376
  if (!l) return;
3371
3377
  const u = this.compute(e, l);
3372
3378
  return l.linkage && u === void 0 ? n : u;
3373
3379
  }), a = (l) => {
3374
- s === "value" ? this.onInput(e, l) : s[0] === "$" ? this.api.setEffect(e.id, s, l) : ie(e.rule, s, l);
3380
+ s === "value" ? this.onInput(e, l) : s[0] === "$" ? this.api.setEffect(e.id, s, l) : te(e.rule, s, l);
3375
3381
  };
3376
3382
  (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : o.value !== q(e.rule, s)) && a(o.value), e.watch.push(B(o, (l) => {
3377
3383
  n = l, setTimeout(() => {
@@ -3385,28 +3391,35 @@ function ai(t) {
3385
3391
  let i;
3386
3392
  if (typeof r == "object") {
3387
3393
  const s = e.getParentGroup(), n = (a) => {
3388
- if (a = Array.isArray(a) ? { mode: "AND", group: a } : a, !d.trueArray(a.group))
3394
+ if (a = Array.isArray(a) ? { mode: "AND", group: a } : a, !h.trueArray(a.group))
3389
3395
  return !0;
3390
3396
  const l = a.mode === "OR";
3391
3397
  let u = !0;
3392
3398
  for (let c = 0; c < a.group.length; c++) {
3393
3399
  const p = a.group[c];
3394
- let m, $ = p.field;
3395
- if (p.variable && ($ = JSON.stringify(this.fc.getLoadData(p.variable) || "")), p.mode ? m = n(p) : le[p.condition] ? d.Function(p.handler) ? m = k(() => p.handler(this.api, e.rule)) : m = new Function("$condition", "$val", "$form", "$group", "$rule", `with($form){with(this){with($group){ return $condition['${p.condition}'](${$}, ${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)
3400
+ let m, $ = null;
3401
+ if (p.variable)
3402
+ $ = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3403
+ else if (p.field)
3404
+ $ = ht(p.field || "");
3405
+ else
3406
+ return !0;
3407
+ let v = p.compare;
3408
+ 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}'](${$}, ${v || "$val"}); }}}`).call(this.api.form, ae, p.value, this.api.top.form, s ? this.subRuleData[s.id] || {} : {}, e.rule) : m = !1, l && m)
3396
3409
  return !0;
3397
3410
  l || (u = u && m);
3398
3411
  }
3399
3412
  return l ? !1 : u;
3400
3413
  };
3401
3414
  let o = n(r);
3402
- return o = r.invert === !0 ? !o : o, r.linkage ? o ? k(() => this.computeValue(r.linkage, e, s), void 0) : void 0 : o;
3403
- } else if (d.Function(r))
3415
+ return o = r.invert === !0 ? !o : o, r.linkage ? o ? F(() => this.computeValue(r.linkage, e, s), void 0) : void 0 : o;
3416
+ } else if (h.Function(r))
3404
3417
  i = () => r(this.api.form, this.api);
3405
3418
  else {
3406
3419
  const s = e.getParentGroup();
3407
3420
  i = () => this.computeValue(r, e, s);
3408
3421
  }
3409
- return k(i, void 0);
3422
+ return F(i, void 0);
3410
3423
  },
3411
3424
  computeValue(e, r, i) {
3412
3425
  const s = this, n = Object.keys(this.fc.formulas).reduce((o, a) => (o[a] = function(...l) {
@@ -3422,25 +3435,25 @@ function ai(t) {
3422
3435
  updateChildren(e, r, i) {
3423
3436
  this.deferSyncValue(() => {
3424
3437
  i && i.forEach((s) => {
3425
- (r || []).indexOf(s) === -1 && s && !d.String(s) && s.__fc__ && s.__fc__.parent === e && this.rmCtx(s.__fc__);
3426
- }), d.trueArray(r) && (this.loadChildren(r, e), this.bus.$emit("update", this.api));
3438
+ (r || []).indexOf(s) === -1 && s && !h.String(s) && s.__fc__ && s.__fc__.parent === e && this.rmCtx(s.__fc__);
3439
+ }), h.trueArray(r) && (this.loadChildren(r, e), this.bus.$emit("update", this.api));
3427
3440
  });
3428
3441
  },
3429
3442
  rmSub(e) {
3430
- d.trueArray(e) && e.forEach((r) => {
3443
+ h.trueArray(e) && e.forEach((r) => {
3431
3444
  r && r.__fc__ && this.rmCtx(r.__fc__);
3432
3445
  });
3433
3446
  },
3434
3447
  rmCtx(e) {
3435
3448
  if (e.deleted) return;
3436
3449
  const { id: r, field: i, input: s, name: n } = e;
3437
- oe(this.ctxs, r), oe(this.formData, r), oe(this.subForm, r), oe(this.vm.ctxInject, r);
3450
+ x(this.ctxs, r), x(this.formData, r), x(this.subForm, r), x(this.vm.ctxInject, r);
3438
3451
  const o = e.getParentGroup();
3439
- 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 && !E(this.fieldCtx, i) && oe(this.form, i), this.deferSyncValue(() => {
3452
+ o && this.subRuleData[o.id] && x(this.subRuleData[o.id], i), e.group && x(this.subRuleData, r), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !E(this.fieldCtx, i) && x(this.form, i), this.deferSyncValue(() => {
3440
3453
  if (!this.reloading) {
3441
3454
  if (e.parser.loadChildren !== !1) {
3442
3455
  const l = e.getPending("children", e.rule.children);
3443
- d.trueArray(l) && l.forEach((u) => u.__fc__ && this.rmCtx(u.__fc__));
3456
+ h.trueArray(l) && l.forEach((u) => u.__fc__ && this.rmCtx(u.__fc__));
3444
3457
  }
3445
3458
  e.root === this.rules && this.vm.renderRule();
3446
3459
  }
@@ -3450,8 +3463,8 @@ function ai(t) {
3450
3463
  }
3451
3464
  });
3452
3465
  }
3453
- function li(t) {
3454
- b(t.prototype, {
3466
+ function fi(t) {
3467
+ _(t.prototype, {
3455
3468
  mounted() {
3456
3469
  const e = () => {
3457
3470
  this.isMounted = !0, this.lifecycle("mounted");
@@ -3462,10 +3475,10 @@ function li(t) {
3462
3475
  this.fc.targetFormDriver(e, this.api, this.fc), this.vm.$emit(e, this.api), this.emitEvent(e, this.api);
3463
3476
  },
3464
3477
  emitEvent(e, ...r) {
3465
- const i = this.options[e] || this.options[H("on-" + e)];
3478
+ const i = this.options[e] || this.options[G("on-" + e)];
3466
3479
  if (i) {
3467
3480
  const s = Z(i);
3468
- d.Function(s) && k(() => s(...r));
3481
+ h.Function(s) && F(() => s(...r));
3469
3482
  }
3470
3483
  this.bus.$emit(e, ...r);
3471
3484
  },
@@ -3473,18 +3486,18 @@ function li(t) {
3473
3486
  var n, o;
3474
3487
  let s = (o = (n = e.prop) == null ? void 0 : n.hook) == null ? void 0 : o[r];
3475
3488
  s && (s = Array.isArray(s) ? s : [s], s.forEach((a) => {
3476
- k(() => a(M(v({}, i || {}), { rule: e.rule, api: this.api })));
3489
+ F(() => a(N(b({}, i || {}), { rule: e.rule, api: this.api })));
3477
3490
  }));
3478
3491
  }
3479
3492
  });
3480
3493
  }
3481
- function ui(t) {
3482
- b(t.prototype, {
3494
+ function hi(t) {
3495
+ _(t.prototype, {
3483
3496
  useProvider() {
3484
3497
  const e = this.fc.providers;
3485
3498
  Object.keys(e).forEach((r) => {
3486
3499
  let i = e[r];
3487
- d.Function(i) && (i = i(this.fc)), i._c = fi(i), this.onEffect(i), this.providers[r] = i;
3500
+ h.Function(i) && (i = i(this.fc)), i._c = pi(i), this.onEffect(i), this.providers[r] = i;
3488
3501
  });
3489
3502
  },
3490
3503
  onEffect(e) {
@@ -3537,7 +3550,7 @@ function ui(t) {
3537
3550
  },
3538
3551
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
3539
3552
  if (!s || ["fcFragment", "fragment"].indexOf(s) > -1) return;
3540
- const l = n || Object.keys(r).reduce((u, c) => (c[0] === "$" && (u[c.substr(1)] = r[c]), u), v({}, r.effect || {}));
3553
+ const l = n || Object.keys(r).reduce((u, c) => (c[0] === "$" && (u[c.substr(1)] = r[c]), u), b({}, r.effect || {}));
3541
3554
  Object.keys(l).forEach((u) => {
3542
3555
  const c = this.providers[u];
3543
3556
  if (!c || c.input && !i) return;
@@ -3548,26 +3561,26 @@ function ui(t) {
3548
3561
  p = s;
3549
3562
  else
3550
3563
  return;
3551
- const m = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3564
+ const m = b({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3552
3565
  e && (m.getProp = () => e.effectData(u), m.clearProp = () => e.clearEffectData(u), m.mergeProp = ($) => Q(m.getProp(), [$]), m.id = e.id), this.bus.$emit(`p:${u}:${p}:${c.input ? 1 : 0}`, o, [m, r, this.api]);
3553
3566
  });
3554
3567
  }
3555
3568
  });
3556
3569
  }
3557
- function ci(t) {
3570
+ function di(t) {
3558
3571
  return t.filter(function(e, r, i) {
3559
3572
  return i.indexOf(e, 0) === r;
3560
3573
  });
3561
3574
  }
3562
- function fi(t) {
3575
+ function pi(t) {
3563
3576
  const e = t.components;
3564
3577
  if (Array.isArray(e)) {
3565
- const r = ci(e.filter((i) => i !== "*"));
3578
+ const r = di(e.filter((i) => i !== "*"));
3566
3579
  return r.length ? r : !1;
3567
- } else return d.String(e) ? [e] : !1;
3580
+ } else return h.String(e) ? [e] : !1;
3568
3581
  }
3569
- function W(t) {
3570
- jt(this, {
3582
+ function K(t) {
3583
+ It(this, {
3571
3584
  options() {
3572
3585
  return t.options.value || {};
3573
3586
  },
@@ -3577,7 +3590,7 @@ function W(t) {
3577
3590
  preview() {
3578
3591
  return t.vm.$options.propsData.preview != null ? t.vm.$options.propsData.preview : t.options.value.preview || !1;
3579
3592
  }
3580
- }), b(this, {
3593
+ }), _(this, {
3581
3594
  fc: t,
3582
3595
  vm: t.vm,
3583
3596
  watching: !1,
@@ -3586,10 +3599,10 @@ function W(t) {
3586
3599
  noWatchFn: null,
3587
3600
  deferSyncFn: null,
3588
3601
  isMounted: !1,
3589
- formData: re({}),
3590
- subRuleData: re({}),
3602
+ formData: ee({}),
3603
+ subRuleData: ee({}),
3591
3604
  subForm: {},
3592
- form: re({}),
3605
+ form: ee({}),
3593
3606
  appendData: {},
3594
3607
  ignoreFields: [],
3595
3608
  providers: {},
@@ -3601,11 +3614,14 @@ function W(t) {
3601
3614
  nextReload: () => {
3602
3615
  this.lifecycle("reload");
3603
3616
  }
3604
- }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new et(this), this.api = t.extendApiFn.reduce((e, r) => (b(e, k(() => r(e, this) || e, {})), e), Wr(this));
3617
+ }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3618
+ const i = F(() => r(e, this));
3619
+ return i && i !== e && _(e, i), e;
3620
+ }, zr(this));
3605
3621
  }
3606
- b(W.prototype, {
3622
+ _(K.prototype, {
3607
3623
  initData(t) {
3608
- b(this, {
3624
+ _(this, {
3609
3625
  ctxs: {},
3610
3626
  fieldCtx: {},
3611
3627
  nameCtx: {},
@@ -3617,63 +3633,63 @@ b(W.prototype, {
3617
3633
  this.updateAppendData(), this.useProvider(), this.usePage(), this.loadRule(), this.$manager.__init(), this.lifecycle("created");
3618
3634
  },
3619
3635
  updateAppendData() {
3620
- this.appendData = v(v(v({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3636
+ this.appendData = b(b(b({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3621
3637
  },
3622
3638
  isBreakWatch() {
3623
3639
  return this.loading || this.noWatchFn || this.reloading;
3624
3640
  },
3625
3641
  beforeFetch(t) {
3626
3642
  return new Promise((e) => {
3627
- const r = this.options.beforeFetch && k(() => this.options.beforeFetch(t, { api: this.api }));
3628
- r && d.Function(r.then) ? r.then(e) : e();
3643
+ const r = this.options.beforeFetch && F(() => this.options.beforeFetch(t, { api: this.api }));
3644
+ r && h.Function(r.then) ? r.then(e) : e();
3629
3645
  });
3630
3646
  }
3631
3647
  });
3632
- Qr(W);
3633
- Zr(W);
3634
- xr(W);
3635
- ti(W);
3636
- si(W);
3637
- ai(W);
3638
- li(W);
3639
- ui(W);
3640
- const hi = "fcFragment", Pe = {
3641
- name: hi,
3648
+ xr(K);
3649
+ ei(K);
3650
+ ri(K);
3651
+ ni(K);
3652
+ li(K);
3653
+ ci(K);
3654
+ fi(K);
3655
+ hi(K);
3656
+ const mi = "fcFragment", Be = {
3657
+ name: mi,
3642
3658
  functional: !0,
3643
3659
  props: ["vnode"],
3644
3660
  render(t, e) {
3645
3661
  return e.props.vnode ? e.props.vnode : e.children;
3646
3662
  }
3647
3663
  };
3648
- function di(t) {
3649
- return d.String(t) ? { domProps: { innerHTML: t } } : t;
3664
+ function gi(t) {
3665
+ return h.String(t) ? { domProps: { innerHTML: t } } : t;
3650
3666
  }
3651
- function pi() {
3667
+ function yi() {
3652
3668
  const t = {};
3653
3669
  function e(r) {
3654
3670
  r && this.setVm(r);
3655
3671
  }
3656
- return b(e.prototype, {
3672
+ return _(e.prototype, {
3657
3673
  setVm(r) {
3658
- this.vm = r, this.$h = r.$createElement;
3674
+ this.vm = r, this.h = this.$h = r.$createElement;
3659
3675
  },
3660
3676
  make(r, i, s) {
3661
3677
  var n, o, a;
3662
- return (me.isReservedTag ? me.isReservedTag(r) : (o = (n = me) == 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);
3678
+ return (de.isReservedTag ? de.isReservedTag(r) : (o = (n = de) == 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);
3663
3679
  },
3664
3680
  makeComponent(r, i, s) {
3665
- let n = this.$h(r, di(i), s || []);
3681
+ let n = this.$h(r, gi(i), s || []);
3666
3682
  return n.context = this.vm, n;
3667
3683
  },
3668
3684
  aliasMap: t
3669
- }), b(e, {
3685
+ }), _(e, {
3670
3686
  aliasMap: t,
3671
3687
  alias(r, i) {
3672
3688
  t[r] = i;
3673
3689
  },
3674
3690
  use(r) {
3675
3691
  Object.keys(r).forEach((i) => {
3676
- const s = ye(i), n = Et(i).toLocaleLowerCase(), o = r[i];
3692
+ const s = ye(i), n = Dt(i).toLocaleLowerCase(), o = r[i];
3677
3693
  [i, s, n].forEach((a) => {
3678
3694
  e.alias(i, o), e.prototype[a] = function(l, u) {
3679
3695
  return this.make(o, l, u);
@@ -3683,13 +3699,13 @@ function pi() {
3683
3699
  }
3684
3700
  }), e;
3685
3701
  }
3686
- function mi(t) {
3687
- class e extends Lt {
3702
+ function $i(t) {
3703
+ class e extends Ut {
3688
3704
  }
3689
3705
  return Object.assign(e.prototype, t), e;
3690
3706
  }
3691
- function Lt(t) {
3692
- b(this, {
3707
+ function Ut(t) {
3708
+ _(this, {
3693
3709
  $handle: t,
3694
3710
  vm: t.vm,
3695
3711
  options: {},
@@ -3699,12 +3715,12 @@ function Lt(t) {
3699
3715
  }
3700
3716
  }), this.updateKey(), this.init();
3701
3717
  }
3702
- b(Lt.prototype, {
3718
+ _(Ut.prototype, {
3703
3719
  __init() {
3704
3720
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
3705
3721
  },
3706
3722
  updateKey() {
3707
- this.key = Ee();
3723
+ this.key = Se();
3708
3724
  },
3709
3725
  //TODO interface
3710
3726
  init() {
@@ -3744,24 +3760,24 @@ b(Lt.prototype, {
3744
3760
  render(t) {
3745
3761
  }
3746
3762
  });
3747
- const gi = function(t) {
3763
+ const vi = function(t) {
3748
3764
  const e = {
3749
3765
  name: "loadData",
3750
3766
  _fn: [],
3751
3767
  mounted(r, i, s) {
3752
3768
  this.deleted(r);
3753
- let n = U(r.getValue());
3769
+ let n = H(r.getValue());
3754
3770
  const o = [];
3755
3771
  n.forEach((a) => {
3756
3772
  if (a && (a.attr || a.template)) {
3757
3773
  let l = (p) => {
3758
3774
  let m;
3759
- a.template ? m = t.$handle.loadStrVar(a.template, p) : m = p(a.attr, a.default), a.copy !== !1 && (m = G(m));
3775
+ a.template ? m = t.$handle.loadStrVar(a.template, p) : m = p(a.attr, a.default), a.copy !== !1 && (m = W(m));
3760
3776
  const $ = a.modify ? i : r.getProp();
3761
- a.to === "child" ? $.children ? $.children[0] = m : $.children = [m] : ie($, a.to || "options", m), s.sync(i);
3777
+ a.to === "child" ? $.children ? k($.children, 0, m) : k($, "children", [m]) : te($, a.to || "options", m), s.sync(i);
3762
3778
  }, u = (p) => l(p);
3763
3779
  const c = t.watchLoadData(u);
3764
- l = ue(l, a.wait || 300), a.watch !== !1 ? o.push(c) : c();
3780
+ l = le(l, a.wait || 300), a.watch !== !1 ? o.push(c) : c();
3765
3781
  }
3766
3782
  }), this._fn[r.id] = o;
3767
3783
  },
@@ -3772,7 +3788,7 @@ const gi = function(t) {
3772
3788
  }
3773
3789
  };
3774
3790
  return e.watch = e.mounted, e;
3775
- }, yi = function(t) {
3791
+ }, bi = function(t) {
3776
3792
  const e = {
3777
3793
  name: "t",
3778
3794
  _fn: [],
@@ -3785,12 +3801,12 @@ const gi = function(t) {
3785
3801
  if (l) {
3786
3802
  const u = typeof l == "object";
3787
3803
  let c = ($) => {
3788
- let _ = t.t(u ? l.attr : l, u ? l.params : null, $);
3804
+ let v = t.t(u ? l.attr : l, u ? l.params : null, $);
3789
3805
  const w = u && l.modify ? i : r.getProp();
3790
- a === "child" ? w.children ? w.children[0] = _ : w.children = [_] : ie(w, a, _), s.sync(i);
3806
+ a === "child" ? w.children ? k(w.children, 0, v) : k(w, "children", [v]) : te(w, a, v), s.sync(i);
3791
3807
  }, p = ($) => c($);
3792
3808
  const m = t.watchLoadData(p);
3793
- c = ue(c, l.wait || 300), l.watch !== !1 ? o.push(m) : m();
3809
+ c = le(c, l.wait || 300), l.watch !== !1 ? o.push(m) : m();
3794
3810
  }
3795
3811
  }), this._fn[r.id] = o;
3796
3812
  },
@@ -3801,20 +3817,20 @@ const gi = function(t) {
3801
3817
  }
3802
3818
  };
3803
3819
  return e.watch = e.loaded, e;
3804
- }, Mt = {
3820
+ }, qt = {
3805
3821
  name: "componentValidate",
3806
3822
  load(t, e, r) {
3807
3823
  let i = t.getValue();
3808
3824
  if (!i || i.method === !1)
3809
3825
  t.clearProp(), r.clearValidateState([e.field]);
3810
3826
  else {
3811
- d.Object(i) || (i = { method: i });
3827
+ h.Object(i) || (i = { method: i });
3812
3828
  const s = i.method;
3813
- delete i.method, t.getProp().validate = [M(v({}, i), {
3829
+ delete i.method, t.getProp().validate = [N(b({}, i), {
3814
3830
  validator(...n) {
3815
- const o = ae(e);
3831
+ const o = oe(e);
3816
3832
  if (o)
3817
- return r.exec(o.id, d.String(s) ? s : "formCreateValidate", ...n, {
3833
+ return r.exec(o.id, h.String(s) ? s : "formCreateValidate", ...n, {
3818
3834
  attr: t,
3819
3835
  rule: e,
3820
3836
  api: r
@@ -3824,26 +3840,26 @@ const gi = function(t) {
3824
3840
  }
3825
3841
  },
3826
3842
  watch(...t) {
3827
- Mt.load(...t);
3843
+ qt.load(...t);
3828
3844
  }
3829
- }, $i = function(t) {
3845
+ }, _i = function(t) {
3830
3846
  function e(s) {
3831
- return d.String(s) && (s = {
3847
+ return h.String(s) && (s = {
3832
3848
  action: s,
3833
3849
  to: "options"
3834
3850
  }), s;
3835
3851
  }
3836
3852
  function r(s, n, o) {
3837
3853
  let a = s.value;
3838
- i.deleted(s), d.Function(a) && (a = a(n, o)), a = e(a);
3854
+ i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
3839
3855
  const l = (p) => {
3840
- p === void 0 ? s.clearProp() : ie(s.getProp(), a.to || "options", p), o.sync(n);
3856
+ p === void 0 ? s.clearProp() : te(s.getProp(), a.to || "options", p), o.sync(n);
3841
3857
  };
3842
3858
  if (!a || !a.action && !a.key) {
3843
3859
  l(void 0);
3844
3860
  return;
3845
3861
  }
3846
- if (a = G(a), a.to || (a.to = "options"), a.key) {
3862
+ if (a = W(a), a.to || (a.to = "options"), a.key) {
3847
3863
  const p = t.$handle.options.globalData[a.key];
3848
3864
  if (!p) {
3849
3865
  l(void 0);
@@ -3853,38 +3869,38 @@ const gi = function(t) {
3853
3869
  l(p.data);
3854
3870
  return;
3855
3871
  } else
3856
- a = v(v({}, a), p);
3872
+ a = b(b({}, a), p);
3857
3873
  }
3858
3874
  const u = a.onError, c = () => {
3859
3875
  if (!s.getValue())
3860
3876
  return s.clearProp(), o.sync(n), !0;
3861
3877
  };
3862
- i._fn[s.id] = t.watchLoadData(ue((p, m) => {
3878
+ i._fn[s.id] = t.watchLoadData(le((p, m) => {
3863
3879
  if (m && a.watch === !1)
3864
3880
  return i._fn[s.id]();
3865
- const $ = t.$handle.loadFetchVar(G(a), p), _ = M(v({
3881
+ const $ = t.$handle.loadFetchVar(W(a), p), v = N(b({
3866
3882
  headers: {}
3867
3883
  }, $), {
3868
- onSuccess(w, S) {
3884
+ onSuccess(w, D) {
3869
3885
  if (c()) return;
3870
- let Y = (T) => S ? T : E(T, "data") ? T.data : T;
3871
- const I = Z($.parse);
3872
- d.Function(I) ? Y = I : I && d.String(I) && (Y = (T) => q(T, I)), l(Y(w, n, o)), o.sync(n);
3886
+ let Y = (L) => D ? L : E(L, "data") ? L.data : L;
3887
+ const P = Z($.parse);
3888
+ h.Function(P) ? Y = P : P && h.String(P) && (Y = (L) => q(L, P)), l(Y(w, n, o)), o.sync(n);
3873
3889
  },
3874
3890
  onError(w) {
3875
- l(void 0), !c() && (u || ((S) => Ze(S.message || "fetch fail " + $.action)))(w, n, o);
3891
+ l(void 0), !c() && (u || ((D) => xe(D.message || "fetch fail " + $.action)))(w, n, o);
3876
3892
  }
3877
3893
  });
3878
- t.$handle.beforeFetch(_, { rule: n, api: o }).then(() => {
3879
- if (d.Function($.action)) {
3894
+ t.$handle.beforeFetch(v, { rule: n, api: o }).then(() => {
3895
+ if (h.Function($.action)) {
3880
3896
  $.action(n, o).then((w) => {
3881
- _.onSuccess(w, !0);
3897
+ v.onSuccess(w, !0);
3882
3898
  }).catch((w) => {
3883
- _.onError(w);
3899
+ v.onError(w);
3884
3900
  });
3885
3901
  return;
3886
3902
  }
3887
- k(() => t.create.fetch(_, { inject: s, rule: n, api: o }));
3903
+ F(() => t.create.fetch(v, { inject: s, rule: n, api: o }));
3888
3904
  });
3889
3905
  }, a.wait || 600));
3890
3906
  }
@@ -3902,13 +3918,13 @@ const gi = function(t) {
3902
3918
  }
3903
3919
  };
3904
3920
  return i;
3905
- }, vi = {
3906
- fetch: $i,
3907
- loadData: gi,
3908
- t: yi,
3909
- componentValidate: Mt
3921
+ }, Ci = {
3922
+ fetch: _i,
3923
+ loadData: vi,
3924
+ t: bi,
3925
+ componentValidate: qt
3910
3926
  };
3911
- function bi(t) {
3927
+ function wi(t) {
3912
3928
  t = t || /* @__PURE__ */ new Map();
3913
3929
  const e = {
3914
3930
  $on(r, i) {
@@ -3932,17 +3948,17 @@ function bi(t) {
3932
3948
  };
3933
3949
  return e;
3934
3950
  }
3935
- const _i = "html", Ci = {
3936
- name: _i,
3951
+ const Oi = "html", Fi = {
3952
+ name: Oi,
3937
3953
  loadChildren: !1,
3938
3954
  render(t, e) {
3939
3955
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
3940
3956
  },
3941
3957
  renderChildren(t) {
3942
- return Array.isArray(t) ? t.filter((e) => d.String(e)).join("") : "";
3958
+ return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
3943
3959
  }
3944
3960
  };
3945
- function wi(t) {
3961
+ function ki(t) {
3946
3962
  t = t + "=";
3947
3963
  const r = decodeURIComponent(document.cookie).split(";");
3948
3964
  for (let i = 0; i < r.length; i++) {
@@ -3960,7 +3976,7 @@ function wi(t) {
3960
3976
  }
3961
3977
  return null;
3962
3978
  }
3963
- function Oi(t) {
3979
+ function Ei(t) {
3964
3980
  const e = localStorage.getItem(t);
3965
3981
  if (e)
3966
3982
  try {
@@ -3970,30 +3986,30 @@ function Oi(t) {
3970
3986
  }
3971
3987
  return null;
3972
3988
  }
3973
- function Nt(t, e) {
3989
+ function Ht(t, e) {
3974
3990
  if (!e)
3975
3991
  return null;
3976
3992
  const r = e.split(".");
3977
3993
  let i = t(r.shift());
3978
3994
  return r.length ? i == null ? null : q(i, r) : i;
3979
3995
  }
3980
- function Fi(t) {
3981
- return Nt(wi, t);
3996
+ function Ri(t) {
3997
+ return Ht(ki, t);
3982
3998
  }
3983
- function ki(t) {
3984
- return Nt(Oi, t);
3999
+ function Si(t) {
4000
+ return Ht(Ei, t);
3985
4001
  }
3986
- function Ei(t, e) {
4002
+ function Di(t, e) {
3987
4003
  let r;
3988
4004
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
3989
4005
  }
3990
- function Be() {
3991
- return Ei("name", ...arguments);
4006
+ function Le() {
4007
+ return Di("name", ...arguments);
3992
4008
  }
3993
- function Ri(t) {
3994
- return !t || !t.el ? window.document.body : d.Element(t.el) ? t.el : document.querySelector(t.el);
4009
+ function ji(t) {
4010
+ return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
3995
4011
  }
3996
- function Si(t, e) {
4012
+ function Ai(t, e) {
3997
4013
  const r = new Vue({
3998
4014
  data() {
3999
4015
  return { rule: t, option: e || {} };
@@ -4004,79 +4020,79 @@ function Si(t, e) {
4004
4020
  });
4005
4021
  return r.$mount(), r;
4006
4022
  }
4007
- function Di(t) {
4023
+ function Vi(t) {
4008
4024
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4009
- Ot.push(...e), ze.push(...r), Qe.push(...i), Vt([...e, ...r, ...i]);
4025
+ Et.push(...e), Ze.push(...r), Ye.push(...i), Tt([...e, ...r, ...i]);
4010
4026
  }
4011
- let ji = 1;
4012
- const N = {};
4013
- function Ut(t) {
4027
+ let Ii = 1;
4028
+ const U = {}, Fe = Symbol("defValue");
4029
+ function Gt(t) {
4014
4030
  const e = {
4015
- [Pe.name]: Pe
4031
+ [Be.name]: Be
4016
4032
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4017
4033
  t.extendApi
4018
- ], u = v({}, vi), c = Gr();
4034
+ ], u = b({}, Ci), c = Kr();
4019
4035
  let p = { global: {} };
4020
- const m = re({}), $ = pi(), _ = {}, w = t.isMobile === !0, S = {};
4021
- Di(t.attrs || {});
4036
+ const m = ee({}), $ = yi(), v = {}, w = t.isMobile === !0, D = {};
4037
+ Vi(t.attrs || {});
4022
4038
  function Y(f) {
4023
- const h = N[f];
4024
- if (Array.isArray(h))
4025
- return h.map((g) => g.api());
4026
- if (h)
4027
- return h.api();
4039
+ const d = U[f];
4040
+ if (Array.isArray(d))
4041
+ return d.map((g) => g.api());
4042
+ if (d)
4043
+ return d.api();
4028
4044
  }
4029
- function I(f) {
4045
+ function P(f) {
4030
4046
  o.push(f);
4031
4047
  }
4032
- function T() {
4033
- const f = Be(...arguments);
4048
+ function L() {
4049
+ const f = Le(...arguments);
4034
4050
  f.id && f.prop && (i[f.id] = f.prop);
4035
4051
  }
4036
- function Re() {
4037
- const f = Be(...arguments);
4038
- f.id && f.prop && (u[f.id] = d.Function(f.prop) ? f.prop : M(v({}, f.prop), {
4052
+ function De() {
4053
+ const f = Le(...arguments);
4054
+ f.id && f.prop && (u[f.id] = h.Function(f.prop) ? f.prop : N(b({}, f.prop), {
4039
4055
  name: f.id
4040
4056
  }));
4041
4057
  }
4042
4058
  function ve(f) {
4043
4059
  $.use(f);
4044
4060
  }
4045
- function F() {
4046
- const f = Be(...arguments);
4047
- if (!f.id || !f.prop) return Fe;
4048
- const h = H(f.id), g = f.prop, y = g.merge === !0 ? r[h] : void 0;
4049
- r[h] = we(g, y || Fe), c[h] = V(h), g.maker && b(c, g.maker);
4061
+ function O() {
4062
+ const f = Le(...arguments);
4063
+ if (!f.id || !f.prop) return Ee;
4064
+ const d = G(f.id), g = f.prop, y = g.merge === !0 ? r[d] : void 0;
4065
+ r[d] = Oe(g, y || Ee), c[d] = I(d), g.maker && _(c, g.maker);
4050
4066
  }
4051
- function R(f, h) {
4067
+ function S(f, d) {
4052
4068
  let g;
4053
- if (d.String(f)) {
4054
- if (g = f, h === void 0)
4055
- return ["form-create", "formcreate"].indexOf(g) > -1 ? P() : e[g];
4069
+ if (h.String(f)) {
4070
+ if (g = f, d === void 0)
4071
+ return ["form-create", "formcreate"].indexOf(g) > -1 ? T() : e[g];
4056
4072
  } else
4057
- g = H(f.name), h = f;
4058
- if (!g || !h) return;
4059
- const y = H(g);
4060
- e[g] = h, e[y] = h, delete $.aliasMap[g], delete $.aliasMap[y], delete r[g], delete r[y], h.formCreateParser && F(g, h.formCreateParser);
4073
+ g = G(f.name), d = f;
4074
+ if (!g || !d) return;
4075
+ const y = G(g);
4076
+ e[g] = d, e[y] = d, delete $.aliasMap[g], delete $.aliasMap[y], delete r[g], delete r[y], d.formCreateParser && O(g, d.formCreateParser);
4061
4077
  }
4062
- function P() {
4063
- return Br(je, e, i);
4078
+ function T() {
4079
+ return Mr(Ve, e, i);
4064
4080
  }
4065
- function ne() {
4066
- return Pe;
4081
+ function re() {
4082
+ return Be;
4067
4083
  }
4068
- function be(f, h) {
4069
- return d.Function(f.install) ? f.install(se, h) : d.Function(f) && f(se, h), this;
4084
+ function be(f, d) {
4085
+ return h.Function(f.install) ? f.install(ie, d) : h.Function(f) && f(ie, d), this;
4070
4086
  }
4071
- function se(f, h, g) {
4072
- let y = Si(f, h || {});
4087
+ function ie(f, d, g) {
4088
+ let y = Ai(f, d || {});
4073
4089
  const C = y.$refs.fc.formCreate;
4074
- return C.$parent = g, Ri(C.options).appendChild(y.$el), C.api();
4090
+ return C.$parent = g, ji(C.options).appendChild(y.$el), C.api();
4075
4091
  }
4076
- we(se, S);
4077
- function Ht(f) {
4078
- let h = v({}, t);
4079
- return f ? h.inherit = {
4092
+ Oe(ie, D);
4093
+ function Wt(f) {
4094
+ let d = b({}, t);
4095
+ return f ? d.inherit = {
4080
4096
  components: e,
4081
4097
  parsers: r,
4082
4098
  directives: i,
@@ -4084,68 +4100,68 @@ function Ut(t) {
4084
4100
  providers: u,
4085
4101
  useApps: o,
4086
4102
  maker: c,
4087
- formulas: _,
4103
+ formulas: v,
4088
4104
  loadData: m
4089
- } : delete h.inherit, Ut(h);
4105
+ } : delete d.inherit, Gt(d);
4090
4106
  }
4091
- function Gt(f, h) {
4092
- s[f] = h;
4107
+ function Kt(f, d) {
4108
+ s[f] = d;
4093
4109
  }
4094
- function Jt(f, h) {
4095
- _[f] = h;
4110
+ function Xt(f, d) {
4111
+ v[f] = d;
4096
4112
  }
4097
- function Wt(f, h) {
4113
+ function zt(f, d) {
4098
4114
  const g = n[f] || {}, y = g.parsers || {};
4099
- h.parsers && Object.keys(h.parsers).forEach((C) => {
4100
- y[C] = we(h.parsers[C], Fe);
4101
- }), h.name = f, n[f] = M(v(v({}, g), h), { parsers: y });
4115
+ d.parsers && Object.keys(d.parsers).forEach((C) => {
4116
+ y[C] = Oe(d.parsers[C], Ee);
4117
+ }), d.name = f, n[f] = N(b(b({}, g), d), { parsers: y });
4102
4118
  }
4103
4119
  function _e(f) {
4104
- f && Object.keys(N).forEach((h) => {
4105
- (Array.isArray(N[h]) ? N[h] : [N[h]]).forEach((y) => {
4120
+ f && Object.keys(U).forEach((d) => {
4121
+ (Array.isArray(U[d]) ? U[d] : [U[d]]).forEach((y) => {
4106
4122
  y.bus.$emit("$loadData." + f);
4107
4123
  });
4108
4124
  });
4109
4125
  }
4110
- function Se(f, h) {
4111
- ie(m, f, h), _e(f);
4126
+ function je(f, d) {
4127
+ te(m, f, d), _e(f);
4112
4128
  }
4113
- function De(f, h) {
4114
- const g = (...y) => k(() => h(...y));
4115
- g._driver = !0, Se(f, g);
4129
+ function Ae(f, d) {
4130
+ const g = (...y) => F(() => d(...y));
4131
+ g._driver = !0, je(f, g);
4116
4132
  }
4117
- function tt(f, h) {
4133
+ function it(f, d) {
4118
4134
  const g = (f || "").split(".");
4119
4135
  f = g.shift();
4120
4136
  const y = g.join(".");
4121
- if (E(m, f)) {
4137
+ if (E(m, f) || k(m, f, Fe), m[f] !== Fe) {
4122
4138
  let C = m[f];
4123
- return C && C._driver ? C = C(y) : g.length && (C = q(C, g)), C == null || C === "" ? h : C;
4139
+ return C && C._driver ? C = C(y) : g.length && (C = q(C, g)), C == null || C === "" ? d : C;
4124
4140
  } else
4125
- return h;
4141
+ return d;
4126
4142
  }
4127
- function Kt(f) {
4143
+ function Qt(f) {
4128
4144
  l.push(f);
4129
4145
  }
4130
- function Xt(f) {
4146
+ function Zt(f) {
4131
4147
  delete m[f], _e(f);
4132
4148
  }
4133
- function zt(f, h) {
4134
- a.push({ name: f, callback: h });
4149
+ function Yt(f, d) {
4150
+ a.push({ name: f, callback: d });
4135
4151
  }
4136
- function je(f) {
4137
- b(this, {
4138
- id: ji++,
4139
- create: se,
4152
+ function Ve(f) {
4153
+ _(this, {
4154
+ id: Ii++,
4155
+ create: ie,
4140
4156
  vm: f,
4141
- manager: mi(t.manager),
4157
+ manager: $i(t.manager),
4142
4158
  parsers: r,
4143
4159
  providers: u,
4144
4160
  modelFields: s,
4145
- formulas: _,
4161
+ formulas: v,
4146
4162
  isMobile: w,
4147
4163
  rules: f.$options.propsData.rule,
4148
- name: f.$options.propsData.name || Ee(),
4164
+ name: f.$options.propsData.name || Se(),
4149
4165
  inFor: f.$options.propsData.inFor,
4150
4166
  prop: {
4151
4167
  components: e,
@@ -4153,76 +4169,77 @@ function Ut(t) {
4153
4169
  },
4154
4170
  drivers: n,
4155
4171
  renderDriver: null,
4172
+ get: null,
4156
4173
  refreshData: _e,
4157
4174
  loadData: m,
4158
4175
  CreateNode: $,
4159
- bus: new bi(),
4176
+ bus: new wi(),
4160
4177
  unwatch: [],
4161
- options: ur({}),
4178
+ options: hr({}),
4162
4179
  extendApiFn: l,
4163
4180
  fetchCache: /* @__PURE__ */ new WeakMap(),
4164
- tmpData: re({})
4165
- }), a.forEach((h) => {
4166
- this.bus.$on(h.name, h.callback);
4181
+ tmpData: ee({})
4182
+ }), a.forEach((d) => {
4183
+ this.bus.$on(d.name, d.callback);
4167
4184
  }), J(() => {
4168
4185
  B(this.options, () => {
4169
4186
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4170
4187
  }, { deep: !0 });
4171
- }), b(f.$options.components, e), b(f.$options.directives, i), this.$handle = new W(this), this.name && (this.inFor ? (N[this.name] || (N[this.name] = []), N[this.name].push(this)) : N[this.name] = this);
4188
+ }), _(f.$options.components, e), _(f.$options.directives, i), this.$handle = new K(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
4172
4189
  }
4173
- je.isMobile = w, b(je.prototype, {
4190
+ Ve.isMobile = w, _(Ve.prototype, {
4174
4191
  init() {
4175
4192
  this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4176
4193
  this.initOptions(), this.$handle.api.refresh();
4177
4194
  }, { 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();
4178
4195
  },
4179
- targetFormDriver(f, ...h) {
4196
+ targetFormDriver(f, ...d) {
4180
4197
  if (this.renderDriver && this.renderDriver[f])
4181
- return k(() => this.renderDriver[f](...h));
4198
+ return F(() => this.renderDriver[f](...d));
4182
4199
  },
4183
- t(f, h, g) {
4200
+ t(f, d, g) {
4184
4201
  let y = g ? g("$t." + f) : this.globalLanguageDriver(f);
4185
- return y == null && this.vm.$i18n ? this.vm.$i18n.t(f, h) : (y == null && (y = ""), y && h && Object.keys(h).forEach((C) => {
4186
- const O = new RegExp(`{${C}}`, "g");
4187
- y = y.replace(O, h[C]);
4202
+ return y == null && this.vm.$i18n ? this.vm.$i18n.t(f, d) : (y == null && (y = ""), y && d && Object.keys(d).forEach((C) => {
4203
+ const R = new RegExp(`{${C}}`, "g");
4204
+ y = y.replace(R, d[C]);
4188
4205
  }), y);
4189
4206
  },
4190
4207
  globalDataDriver(f) {
4191
- let h = f.split(".");
4192
- const g = h.shift(), y = this.options.value.globalData && this.options.value.globalData[g];
4208
+ let d = f.split(".");
4209
+ const g = d.shift(), y = this.options.value.globalData && this.options.value.globalData[g];
4193
4210
  if (y) {
4194
4211
  if (y.type === "static")
4195
- return q(y.data, h);
4212
+ return q(y.data, d);
4196
4213
  {
4197
4214
  let C;
4198
- const O = this.fetchCache.get(y);
4199
- if (O) {
4200
- if (O.status && (C = q(O.data, h)), !O.loading)
4215
+ const R = this.fetchCache.get(y);
4216
+ if (R) {
4217
+ if (R.status && (C = q(R.data, d)), !R.loading)
4201
4218
  return C;
4202
- O.loading = !1, this.fetchCache.set(y, O);
4219
+ R.loading = !1, this.fetchCache.set(y, R);
4203
4220
  } else
4204
4221
  this.fetchCache.set(y, { status: !1 });
4205
- const K = ue(() => {
4206
- ee();
4207
- const L = this.fetchCache.get(y);
4208
- 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);
4209
- }, y.wait || 600), x = (L) => {
4210
- this.fetchCache.set(y, { status: !0, data: L }), this.bus.$emit("$loadData.$globalData." + g);
4211
- }, fe = (L, te) => {
4212
- if (te && y.watch === !1)
4213
- return ee();
4214
- if (te) {
4215
- K();
4222
+ const A = le(() => {
4223
+ ce();
4224
+ const M = this.fetchCache.get(y);
4225
+ this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(y) !== -1 ? (M && (M.loading = !0, this.fetchCache.set(y, M)), this.bus.$emit("$loadData.$globalData." + g)) : this.fetchCache.delete(y);
4226
+ }, y.wait || 600), pe = (M) => {
4227
+ this.fetchCache.set(y, { status: !0, data: M }), this.bus.$emit("$loadData.$globalData." + g);
4228
+ }, me = (M, ne) => {
4229
+ if (ne && y.watch === !1)
4230
+ return ce();
4231
+ if (ne) {
4232
+ A();
4216
4233
  return;
4217
4234
  }
4218
- const Ae = this.$handle.loadFetchVar(qe(y), L);
4219
- this.$handle.api.fetch(Ae).then((he) => {
4220
- x(he);
4221
- }).catch((he) => {
4222
- x(null);
4235
+ const se = this.$handle.loadFetchVar(Ge(y), M);
4236
+ this.$handle.api.fetch(se).then((we) => {
4237
+ pe(we);
4238
+ }).catch((we) => {
4239
+ pe(null);
4223
4240
  });
4224
- }, ee = this.watchLoadData(fe);
4225
- return this.unwatch.push(ee), C;
4241
+ }, ce = this.watchLoadData(me);
4242
+ return this.unwatch.push(ce), C;
4226
4243
  }
4227
4244
  }
4228
4245
  },
@@ -4231,32 +4248,26 @@ function Ut(t) {
4231
4248
  return f && typeof f == "object" ? f.name : typeof f == "string" ? f : this.vm.$i18n && this.vm.$i18n.locale ? this.vm.$i18n.locale : "zh-cn";
4232
4249
  },
4233
4250
  globalLanguageDriver(f) {
4234
- let h = this.vm.top.$props.locale, g;
4235
- if (h && typeof h == "object" && (g = q(h, f)), g == null) {
4251
+ let d = this.vm.top.$props.locale, g;
4252
+ if (d && typeof d == "object" && (g = q(d, f)), g == null) {
4236
4253
  const y = this.options.value.language || {}, C = this.getLocale();
4237
4254
  g = q(y[C], f);
4238
4255
  }
4239
4256
  return g;
4240
4257
  },
4241
4258
  globalVarDriver(f) {
4242
- const g = f.split(".").shift(), y = this.options.value.globalVariable && this.options.value.globalVariable[g];
4259
+ let d = f.split(".");
4260
+ const g = d.shift(), y = this.options.value.globalVariable && this.options.value.globalVariable[g];
4243
4261
  if (y) {
4244
- const C = d.Function(y) ? y : y.handle;
4245
- if (C) {
4246
- let O;
4247
- const K = this.watchLoadData((x, fe) => {
4248
- if (fe)
4249
- return K(), this.bus.$emit("$loadData.$var." + g), O;
4250
- O = k(() => C(x, this.$handle.api));
4251
- });
4252
- return this.unwatch.push(K), O;
4253
- }
4262
+ const C = h.Function(y) ? y : y.handle;
4263
+ if (C)
4264
+ return q(F(() => C(this.get || ((...R) => this.getLoadData(...R)), this.$handle.api)), d);
4254
4265
  }
4255
4266
  },
4256
- setData(f, h, g) {
4257
- g ? Se(f, h) : (ie(this.vm.top.fc.tmpData, f, h), this.bus.$emit("$loadData." + f));
4267
+ setData(f, d, g) {
4268
+ g ? je(f, d) : (te(this.vm.top.fc.tmpData, f, d), this.bus.$emit("$loadData." + f));
4258
4269
  },
4259
- getLoadData(f, h) {
4270
+ getLoadData(f, d) {
4260
4271
  let g = null;
4261
4272
  if (f != null) {
4262
4273
  let y = f.split(".");
@@ -4276,61 +4287,61 @@ function Ut(t) {
4276
4287
  else if (C === "$t")
4277
4288
  g = this.globalLanguageDriver(y.join(".")), y = [];
4278
4289
  else {
4279
- const O = this.vm.top.fc.tmpData;
4280
- g = E(O, C) ? q(O, f) : tt(f), y = [];
4290
+ const R = this.vm.top.fc.tmpData;
4291
+ E(R, C) || k(R, C, Fe), g = R[C] !== Fe ? q(R, f) : it(f), y = [];
4281
4292
  }
4282
4293
  g && y.length && (g = q(g, y));
4283
4294
  }
4284
- return g == null || g === "" ? h : g;
4285
- },
4286
- watchLoadData(f) {
4287
- let h = {};
4288
- const g = (O) => {
4289
- k(() => {
4290
- f(y, O);
4291
- });
4292
- }, y = (O, K) => {
4293
- if (h[O])
4294
- return h[O].val;
4295
- const x = pe(() => this.getLoadData(O, K)), fe = O.split("."), ee = fe.shift(), L = fe.shift() || "", te = ue(() => {
4296
- const he = this.getLoadData(O, K);
4297
- if (h[O])
4298
- JSON.stringify(he) !== JSON.stringify(h[O].val) && (h[O].val = he, g(!0));
4295
+ return g == null || g === "" ? d : g;
4296
+ },
4297
+ watchLoadData(f, d) {
4298
+ let g = {};
4299
+ const y = (A) => {
4300
+ this.get || (this.get = C), F(() => {
4301
+ f(C, A);
4302
+ }), this.get === C && (this.get = void 0);
4303
+ }, C = (A, pe) => {
4304
+ if (g[A])
4305
+ return g[A].val;
4306
+ const me = he(() => this.getLoadData(A, pe)), ce = A.split("."), M = ce.shift(), ne = ce.shift() || "", se = le(() => {
4307
+ const Ie = this.getLoadData(A, pe);
4308
+ if (g[A])
4309
+ JSON.stringify(Ie) !== JSON.stringify(g[A].val) && (g[A].val = Ie, y(!0));
4299
4310
  else return;
4300
- }, 0), Ae = B(x, (he) => {
4301
- te();
4311
+ }, d || 0), we = B(me, (Ie) => {
4312
+ se();
4302
4313
  });
4303
- return this.bus.$on("$loadData." + ee, te), L && this.bus.$on("$loadData." + ee + "." + L, te), h[O] = {
4314
+ return this.bus.$on("$loadData." + M, se), ne && this.bus.$on("$loadData." + M + "." + ne, se), g[A] = {
4304
4315
  fn: () => {
4305
- this.bus.$off("$loadData." + ee, te), L && this.bus.$off("$loadData." + ee + "." + L, te), Ae();
4316
+ this.bus.$off("$loadData." + M, se), ne && this.bus.$off("$loadData." + M + "." + ne, se), we();
4306
4317
  },
4307
- val: x.value
4308
- }, x.value;
4318
+ val: me.value
4319
+ }, me.value;
4309
4320
  };
4310
- g(!1);
4311
- const C = () => {
4312
- Object.keys(h).forEach((O) => h[O].fn()), h = {};
4321
+ y(!1);
4322
+ const R = () => {
4323
+ Object.keys(g).forEach((A) => g[A].fn()), g = {};
4313
4324
  };
4314
- return this.unwatch.push(C), C;
4325
+ return this.unwatch.push(R), R;
4315
4326
  },
4316
4327
  isSub() {
4317
4328
  return this.vm.parent && this.vm.extendOption;
4318
4329
  },
4319
4330
  initOptions() {
4320
4331
  this.options.value = {};
4321
- let f = v({
4332
+ let f = b({
4322
4333
  formData: {},
4323
4334
  submitBtn: {},
4324
4335
  resetBtn: {},
4325
4336
  globalEvent: {},
4326
4337
  globalData: {}
4327
- }, G(p));
4338
+ }, W(p));
4328
4339
  this.isSub() && (f = this.mergeOptions(f, this.vm.parent.fc.options.value || {}, !0)), f = this.mergeOptions(f, this.vm.$options.propsData.option || {}), this.updateOptions(f);
4329
4340
  },
4330
- mergeOptions(f, h, g) {
4331
- return h = G(h), g && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((y) => {
4332
- delete h[y];
4333
- }), h.global && (f.global = Nr(f.global, h.global), delete h.global), this.$handle.$manager.mergeOptions([h], f), f;
4341
+ mergeOptions(f, d, g) {
4342
+ return d = b({}, d || {}), g && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((y) => {
4343
+ delete d[y];
4344
+ }), d.global && (f.global = Hr(f.global, d.global), delete d.global), this.$handle.$manager.mergeOptions([d], f), f;
4334
4345
  },
4335
4346
  updateOptions(f) {
4336
4347
  this.options.value = this.mergeOptions(this.options.value, f), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4347,10 +4358,10 @@ function Ut(t) {
4347
4358
  unmount() {
4348
4359
  if (this.name)
4349
4360
  if (this.inFor) {
4350
- const f = N[this.name].indexOf(this);
4351
- N[this.name].splice(f, 1);
4361
+ const f = U[this.name].indexOf(this);
4362
+ U[this.name].splice(f, 1);
4352
4363
  } else
4353
- delete N[this.name];
4364
+ delete U[this.name];
4354
4365
  a.forEach((f) => {
4355
4366
  this.bus.$off(f.name, f.callback);
4356
4367
  }), this.tmpData = {}, this.unwatch.forEach((f) => f()), this.unwatch = [], this.$handle.reloadRule([]);
@@ -4359,76 +4370,76 @@ function Ut(t) {
4359
4370
  this.$handle.bindNextTick(() => this.bus.$emit("next-tick", this.$handle.api));
4360
4371
  }
4361
4372
  });
4362
- function rt(f) {
4363
- b(f, {
4373
+ function nt(f) {
4374
+ _(f, {
4364
4375
  version: t.version,
4365
4376
  ui: t.ui,
4366
4377
  isMobile: w,
4367
- extendApi: Kt,
4368
- getData: tt,
4369
- setDataDriver: De,
4370
- setData: Se,
4371
- removeData: Xt,
4378
+ extendApi: Qt,
4379
+ getData: it,
4380
+ setDataDriver: Ae,
4381
+ setData: je,
4382
+ removeData: Zt,
4372
4383
  refreshData: _e,
4373
4384
  maker: c,
4374
- component: R,
4375
- directive: T,
4376
- setModelField: Gt,
4377
- setFormula: Jt,
4378
- setDriver: Wt,
4379
- register: Re,
4380
- $vnode: ne,
4381
- parser: F,
4385
+ component: S,
4386
+ directive: L,
4387
+ setModelField: Kt,
4388
+ setFormula: Xt,
4389
+ setDriver: zt,
4390
+ register: De,
4391
+ $vnode: re,
4392
+ parser: O,
4382
4393
  use: be,
4383
- factory: Ht,
4394
+ factory: Wt,
4384
4395
  componentAlias: ve,
4385
- copyRule: St,
4386
- copyRules: Dt,
4396
+ copyRule: At,
4397
+ copyRules: Vt,
4387
4398
  mergeRule: Q,
4388
- fetch: Pt,
4389
- $form: P,
4399
+ fetch: Lt,
4400
+ $form: T,
4390
4401
  parseFn: Z,
4391
- parseJson: Rt,
4392
- toJson: Ye,
4393
- useApp: I,
4402
+ parseJson: jt,
4403
+ toJson: et,
4404
+ useApp: P,
4394
4405
  getApi: Y,
4395
- on: zt
4406
+ on: Yt
4396
4407
  });
4397
4408
  }
4398
- function Qt(f) {
4399
- b(f, {
4400
- create: se,
4401
- install(h, g) {
4402
- if (p = v(v({}, p), g || {}), h._installedFormCreate === !0) return;
4403
- h._installedFormCreate = !0;
4404
- const y = function(O, K = {}) {
4405
- return se(O, K, this);
4409
+ function xt(f) {
4410
+ _(f, {
4411
+ create: ie,
4412
+ install(d, g) {
4413
+ if (p = b(b({}, p), g || {}), d._installedFormCreate === !0) return;
4414
+ d._installedFormCreate = !0;
4415
+ const y = function(R, A = {}) {
4416
+ return ie(R, A, this);
4406
4417
  };
4407
- rt(y), h.prototype.$formCreate = y;
4408
- const C = P();
4409
- h.component(C.name, C), h.component("FcFragment", ne()), o.forEach((O) => {
4410
- k(() => O(f, h));
4418
+ nt(y), d.prototype.$formCreate = y;
4419
+ const C = T();
4420
+ d.component(C.name, C), d.component("FcFragment", re()), o.forEach((R) => {
4421
+ F(() => R(f, d));
4411
4422
  });
4412
4423
  }
4413
4424
  });
4414
4425
  }
4415
- if (rt(S), Qt(S), De("$cookie", Fi), De("$localStorage", ki), $.use({ fragment: "fcFragment" }), t.install && se.use(t), F(Ci), t.inherit) {
4426
+ if (nt(D), xt(D), Ae("$cookie", Ri), Ae("$localStorage", Si), $.use({ fragment: "fcFragment" }), t.install && ie.use(t), O(Fi), t.inherit) {
4416
4427
  const f = t.inherit;
4417
- f.components && b(e, f.components), f.parsers && b(r, f.parsers), f.directives && b(i, f.directives), f.modelFields && b(s, f.modelFields), f.providers && b(u, f.providers), f.useApps && b(o, f.useApps), f.maker && b(c, f.maker), f.loadData && b(m, f.loadData), f.formulas && b(_, f.formulas);
4428
+ f.components && _(e, f.components), f.parsers && _(r, f.parsers), f.directives && _(i, f.directives), f.modelFields && _(s, f.modelFields), f.providers && _(u, f.providers), f.useApps && _(o, f.useApps), f.maker && _(c, f.maker), f.loadData && _(m, f.loadData), f.formulas && _(v, f.formulas);
4418
4429
  }
4419
- const Ce = P();
4420
- return we(Ce, S), Object.defineProperties(Ce, {
4430
+ const Ce = T();
4431
+ return Oe(Ce, D), Object.defineProperties(Ce, {
4421
4432
  fetch: {
4422
4433
  get() {
4423
- return S.fetch;
4434
+ return D.fetch;
4424
4435
  },
4425
4436
  set(f) {
4426
- S.fetch = f;
4437
+ D.fetch = f;
4427
4438
  }
4428
4439
  }
4429
- }), Ce.util = S, Ce;
4440
+ }), Ce.util = D, Ce;
4430
4441
  }
4431
- const gt = {
4442
+ const vt = {
4432
4443
  date: "yyyy-MM-dd",
4433
4444
  month: "yyyy-MM",
4434
4445
  datetime: "yyyy-MM-dd HH:mm:ss",
@@ -4437,106 +4448,106 @@ const gt = {
4437
4448
  monthrange: "yyyy-MM",
4438
4449
  datetimerange: "yyyy-MM-dd HH:mm:ss",
4439
4450
  year: "yyyy"
4440
- }, yt = "datePicker", Ai = {
4441
- name: yt,
4451
+ }, bt = "datePicker", Pi = {
4452
+ name: bt,
4442
4453
  maker: function() {
4443
- return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = V(yt, { type: e.toLowerCase() }), t), {});
4454
+ return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = I(bt, { type: e.toLowerCase() }), t), {});
4444
4455
  }(),
4445
4456
  mergeProp(t) {
4446
4457
  const e = t.prop.props;
4447
- e.valueFormat || (e.valueFormat = gt[e.type] || gt.date);
4458
+ e.valueFormat || (e.valueFormat = vt[e.type] || vt.date);
4448
4459
  }
4449
- }, Te = "hidden", Vi = {
4450
- name: Te,
4460
+ }, Me = "hidden", Ti = {
4461
+ name: Me,
4451
4462
  maker: {
4452
- [Te]: (t, e) => V(Te)("", t, e)
4463
+ [Me]: (t, e) => I(Me)("", t, e)
4453
4464
  },
4454
4465
  render() {
4455
4466
  return [];
4456
4467
  }
4457
- }, Le = "input", Ii = {
4458
- name: Le,
4468
+ }, Ne = "input", Bi = {
4469
+ name: Ne,
4459
4470
  maker: function() {
4460
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = V(Le, { type: r }), e), {});
4461
- return t.idate = V(Le, { type: "date" }), t;
4471
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = I(Ne, { type: r }), e), {});
4472
+ return t.idate = I(Ne, { type: "date" }), t;
4462
4473
  }(),
4463
4474
  mergeProp(t) {
4464
4475
  let { props: e } = t.prop;
4465
4476
  e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4466
4477
  }
4467
- }, $t = "slider", Pi = {
4468
- name: $t,
4478
+ }, _t = "slider", Li = {
4479
+ name: _t,
4469
4480
  maker: {
4470
- sliderRange: V($t, { range: !0 })
4481
+ sliderRange: I(_t, { range: !0 })
4471
4482
  },
4472
4483
  toFormValue(t, e) {
4473
4484
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4474
4485
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4475
4486
  }
4476
- }, Me = "timePicker", Bi = {
4477
- name: Me,
4487
+ }, Ue = "timePicker", Mi = {
4488
+ name: Ue,
4478
4489
  maker: {
4479
- time: V(Me, (t) => t.props.isRange = !1),
4480
- timeRange: V(Me, (t) => t.props.isRange = !0)
4490
+ time: I(Ue, (t) => t.props.isRange = !1),
4491
+ timeRange: I(Ue, (t) => t.props.isRange = !0)
4481
4492
  },
4482
4493
  mergeProp(t) {
4483
4494
  const e = t.prop.props;
4484
4495
  e.valueFormat || (e.valueFormat = "HH:mm:ss");
4485
4496
  }
4486
- }, Ti = {
4497
+ }, Ni = {
4487
4498
  name: "FcRow",
4488
4499
  render(t, e) {
4489
4500
  return e.vNode.col({ props: { span: 24 } }, [
4490
4501
  e.vNode.row(e.prop, t)
4491
4502
  ]);
4492
4503
  }
4493
- }, Li = "select", Mi = {
4494
- name: Li,
4504
+ }, Ui = "select", qi = {
4505
+ name: Ui,
4495
4506
  toFormValue(t, e) {
4496
- return e.prop.props.multiple && !Array.isArray(t) ? U(t) : t;
4507
+ return e.prop.props.multiple && !Array.isArray(t) ? H(t) : t;
4497
4508
  }
4498
- }, Ni = [
4499
- Ai,
4500
- Vi,
4501
- Ii,
4509
+ }, Hi = [
4502
4510
  Pi,
4503
- Bi,
4504
4511
  Ti,
4505
- Mi
4506
- ], D = "el", Ui = {
4507
- button: D + "Button",
4512
+ Bi,
4513
+ Li,
4514
+ Mi,
4515
+ Ni,
4516
+ qi
4517
+ ], j = "el", Gi = {
4518
+ button: j + "Button",
4508
4519
  icon: "i",
4509
- slider: D + "Slider",
4510
- rate: D + "Rate",
4520
+ slider: j + "Slider",
4521
+ rate: j + "Rate",
4511
4522
  upload: "fcUpload",
4512
- cascader: D + "Cascader",
4513
- popover: D + "Popover",
4514
- tooltip: D + "Tooltip",
4515
- colorPicker: D + "ColorPicker",
4516
- timePicker: D + "TimePicker",
4517
- timeSelect: D + "TimeSelect",
4518
- datePicker: D + "DatePicker",
4519
- switch: D + "Switch",
4523
+ cascader: j + "Cascader",
4524
+ popover: j + "Popover",
4525
+ tooltip: j + "Tooltip",
4526
+ colorPicker: j + "ColorPicker",
4527
+ timePicker: j + "TimePicker",
4528
+ timeSelect: j + "TimeSelect",
4529
+ datePicker: j + "DatePicker",
4530
+ switch: j + "Switch",
4520
4531
  select: "fcSelect",
4521
4532
  checkbox: "fcCheckbox",
4522
4533
  radio: "fcRadio",
4523
- inputNumber: D + "InputNumber",
4524
- number: D + "InputNumber",
4525
- input: D + "Input",
4526
- formItem: D + "FormItem",
4527
- form: D + "Form",
4534
+ inputNumber: j + "InputNumber",
4535
+ number: j + "InputNumber",
4536
+ input: j + "Input",
4537
+ formItem: j + "FormItem",
4538
+ form: j + "Form",
4528
4539
  frame: "fcFrame",
4529
- col: D + "Col",
4530
- row: D + "Row",
4540
+ col: j + "Col",
4541
+ row: j + "Row",
4531
4542
  tree: "fcTree",
4532
- autoComplete: D + "Autocomplete",
4533
- auto: D + "Autocomplete",
4543
+ autoComplete: j + "Autocomplete",
4544
+ auto: j + "Autocomplete",
4534
4545
  group: "fcGroup",
4535
4546
  array: "fcGroup",
4536
4547
  object: "fcSubForm",
4537
4548
  subForm: "fcSubForm"
4538
4549
  };
4539
- function qi() {
4550
+ function Ji() {
4540
4551
  return {
4541
4552
  form: {
4542
4553
  inline: !1,
@@ -4570,23 +4581,23 @@ function qi() {
4570
4581
  }
4571
4582
  };
4572
4583
  }
4573
- function Hi(t) {
4584
+ function Wi(t) {
4574
4585
  return t.type === "tooltip";
4575
4586
  }
4576
- function vt(t, e) {
4577
- E(t, e) && d.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4587
+ function Ct(t, e) {
4588
+ E(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4578
4589
  }
4579
4590
  function X(t) {
4580
4591
  return t === !1;
4581
4592
  }
4582
- function Gi(t, e) {
4583
- E(t, e) && !d.Object(t[e]) && (t[e] = { show: !!t[e] });
4593
+ function Ki(t, e) {
4594
+ E(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4584
4595
  }
4585
- function Ne(t) {
4586
- const e = v({}, t);
4596
+ function qe(t) {
4597
+ const e = b({}, t);
4587
4598
  return delete e.children, e;
4588
4599
  }
4589
- const Ji = {
4600
+ const Xi = {
4590
4601
  validate() {
4591
4602
  const t = this.form();
4592
4603
  return t ? t.validate() : new Promise((e) => e());
@@ -4605,11 +4616,11 @@ const Ji = {
4605
4616
  },
4606
4617
  tidyOptions(t) {
4607
4618
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4608
- Gi(t, e);
4619
+ Ki(t, e);
4609
4620
  }), t;
4610
4621
  },
4611
4622
  tidyRule({ prop: t }) {
4612
- return vt(t, "title"), vt(t, "info"), t;
4623
+ return Ct(t, "title"), Ct(t, "info"), t;
4613
4624
  },
4614
4625
  mergeProp(t) {
4615
4626
  const e = {
@@ -4627,12 +4638,12 @@ const Ji = {
4627
4638
  });
4628
4639
  },
4629
4640
  getDefaultOptions() {
4630
- return qi();
4641
+ return Ji();
4631
4642
  },
4632
4643
  update() {
4633
4644
  const t = this.options.form;
4634
4645
  this.rule = {
4635
- props: v({}, t),
4646
+ props: b({}, t),
4636
4647
  nativeOn: {
4637
4648
  submit: (e) => {
4638
4649
  e.preventDefault();
@@ -4645,7 +4656,7 @@ const Ji = {
4645
4656
  },
4646
4657
  beforeRender() {
4647
4658
  const { key: t, ref: e, $handle: r } = this;
4648
- b(this.rule, { key: t, ref: e }), b(this.rule.props, {
4659
+ _(this.rule, { key: t, ref: e }), _(this.rule.props, {
4649
4660
  model: r.formData
4650
4661
  });
4651
4662
  },
@@ -4656,10 +4667,10 @@ const Ji = {
4656
4667
  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;
4657
4668
  delete r.wrap.title;
4658
4669
  const u = X(r.wrap.show) ? e : this.$r(z([r.wrap, {
4659
- props: M(v({
4660
- labelWidth: o === void 0 ? o : Et(o),
4670
+ props: N(b({
4671
+ labelWidth: o === void 0 ? o : Dt(o),
4661
4672
  label: n ? r.title.title : void 0
4662
- }, Ne(r.wrap || {})), {
4673
+ }, qe(r.wrap || {})), {
4663
4674
  prop: t.id,
4664
4675
  rules: t.injectValidate()
4665
4676
  }),
@@ -4667,7 +4678,7 @@ const Ji = {
4667
4678
  key: `${i}fi`,
4668
4679
  ref: t.wrapRef,
4669
4680
  type: "formItem"
4670
- }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
4681
+ }]), b({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
4671
4682
  return a === !0 || X(l) || X(s.show) ? u : this.makeCol(r, i, [u]);
4672
4683
  },
4673
4684
  isTitle(t) {
@@ -4676,7 +4687,7 @@ const Ji = {
4676
4687
  return !(!e.title && !e.native || X(e.show));
4677
4688
  },
4678
4689
  makeInfo(t, e, r) {
4679
- const i = v({}, t.title), s = v({}, t.info), n = Hi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
4690
+ const i = b({}, t.title), s = b({}, t.info), n = Wi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
4680
4691
  title: r.refRule.__$title.value,
4681
4692
  rule: r.rule,
4682
4693
  options: this.options
@@ -4685,7 +4696,7 @@ const Ji = {
4685
4696
  const c = {
4686
4697
  type: s.type || "popover",
4687
4698
  slot: "label",
4688
- props: Ne(s),
4699
+ props: qe(s),
4689
4700
  key: `${e}pop`
4690
4701
  };
4691
4702
  delete c.props.icon, delete c.props.show, delete c.props.info, delete c.props.align, delete c.props.native;
@@ -4700,7 +4711,7 @@ const Ji = {
4700
4711
  ]));
4701
4712
  }
4702
4713
  const u = z([i, {
4703
- props: Ne(i),
4714
+ props: qe(i),
4704
4715
  key: `${e}tit`,
4705
4716
  class: "fc-form-title",
4706
4717
  slot: i.slot || "label",
@@ -4743,7 +4754,7 @@ const Ji = {
4743
4754
  }, [e]);
4744
4755
  },
4745
4756
  makeResetBtn() {
4746
- const t = v({}, this.options.resetBtn), e = t.innerText;
4757
+ const t = b({}, this.options.resetBtn), e = t.innerText;
4747
4758
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
4748
4759
  type: "button",
4749
4760
  props: t,
@@ -4759,7 +4770,7 @@ const Ji = {
4759
4770
  }, [e]);
4760
4771
  },
4761
4772
  makeSubmitBtn() {
4762
- const t = v({}, this.options.submitBtn), e = t.innerText;
4773
+ const t = b({}, this.options.submitBtn), e = t.innerText;
4763
4774
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
4764
4775
  type: "button",
4765
4776
  props: t,
@@ -4775,35 +4786,35 @@ const Ji = {
4775
4786
  key: `${this.key}b1`
4776
4787
  }, [e]);
4777
4788
  }
4778
- }, ce = {};
4779
- Wi(ce);
4780
- Ki(ce);
4781
- Xi(ce);
4782
- zi(ce);
4783
- Qi(ce);
4784
- function Wi(t) {
4789
+ }, ue = {};
4790
+ zi(ue);
4791
+ Qi(ue);
4792
+ Zi(ue);
4793
+ Yi(ue);
4794
+ xi(ue);
4795
+ function zi(t) {
4785
4796
  ["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "radio", "rate"].forEach((e) => {
4786
- t[e] = V(e);
4797
+ t[e] = I(e);
4787
4798
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
4788
4799
  }
4789
- function Ki(t) {
4800
+ function Qi(t) {
4790
4801
  const e = "select", r = "multiple";
4791
- t.selectMultiple = V(e, { [r]: !0 }), t.selectOne = V(e, { [r]: !1 });
4802
+ t.selectMultiple = I(e, { [r]: !0 }), t.selectOne = I(e, { [r]: !1 });
4792
4803
  }
4793
- function Xi(t) {
4804
+ function Zi(t) {
4794
4805
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
4795
- Object.keys(r).reduce((i, s) => (i[s] = V(e, { type: r[s] }), i), t);
4806
+ Object.keys(r).reduce((i, s) => (i[s] = I(e, { type: r[s] }), i), t);
4796
4807
  }
4797
- function zi(t) {
4808
+ function Yi(t) {
4798
4809
  const e = "upload", r = {
4799
4810
  image: ["image", 0],
4800
4811
  file: ["file", 0],
4801
4812
  uploadFileOne: ["file", 1],
4802
4813
  uploadImageOne: ["image", 1]
4803
4814
  };
4804
- Object.keys(r).reduce((i, s) => (i[s] = V(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
4815
+ 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;
4805
4816
  }
4806
- function Qi(t) {
4817
+ function xi(t) {
4807
4818
  const e = {
4808
4819
  frameInputs: ["input", 0],
4809
4820
  frameFiles: ["file", 0],
@@ -4812,12 +4823,12 @@ function Qi(t) {
4812
4823
  frameFileOne: ["file", 1],
4813
4824
  frameImageOne: ["image", 1]
4814
4825
  };
4815
- return Object.keys(e).reduce((r, i) => (r[i] = V("frame", (s) => s.props({ type: e[i][0], maxLength: e[i][1] })), r), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages, t;
4826
+ return Object.keys(e).reduce((r, i) => (r[i] = I("frame", (s) => s.props({ type: e[i][0], maxLength: e[i][1] })), r), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages, t;
4816
4827
  }
4817
- function bt(t, e) {
4818
- return d.Boolean(t) ? t = { show: t } : !d.Undef(t) && !d.Object(t) && (t = { show: e }), t;
4828
+ function wt(t, e) {
4829
+ return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
4819
4830
  }
4820
- function Zi(t, e) {
4831
+ function en(t, e) {
4821
4832
  return {
4822
4833
  formEl() {
4823
4834
  return e.$manager.form();
@@ -4844,7 +4855,7 @@ function Zi(t, e) {
4844
4855
  const o = e.getFieldCtx(r);
4845
4856
  if (!o) return;
4846
4857
  const a = e.subForm[o.id], l = [e.$manager.validateField(o.id)];
4847
- U(a).forEach((u) => {
4858
+ H(a).forEach((u) => {
4848
4859
  l.push(u.validate());
4849
4860
  }), Promise.all(l).then(() => {
4850
4861
  s(null), i && i(null);
@@ -4893,36 +4904,36 @@ function Zi(t, e) {
4893
4904
  }
4894
4905
  },
4895
4906
  submitBtnProps: (r = {}) => {
4896
- let i = bt(e.options.submitBtn, !0);
4897
- b(i, r), e.options.submitBtn = i, t.refreshOptions();
4907
+ let i = wt(e.options.submitBtn, !0);
4908
+ _(i, r), e.options.submitBtn = i, t.refreshOptions();
4898
4909
  },
4899
4910
  resetBtnProps: (r = {}) => {
4900
- let i = bt(e.options.resetBtn, !1);
4901
- b(i, r), e.options.resetBtn = i, t.refreshOptions();
4911
+ let i = wt(e.options.resetBtn, !1);
4912
+ _(i, r), e.options.resetBtn = i, t.refreshOptions();
4902
4913
  },
4903
4914
  submit(r, i) {
4904
4915
  return new Promise((s, n) => {
4905
4916
  t.validate().then(() => {
4906
4917
  let o = t.formData();
4907
- d.Function(r) && k(() => r(o, t)), d.Function(e.options.onSubmit) && k(() => e.options.onSubmit(o, t)), e.vm.$emit("submit", o, t), s(o);
4918
+ 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);
4908
4919
  }).catch((...o) => {
4909
- d.Function(i) && k(() => i(t, ...o)), n(...o);
4920
+ h.Function(i) && F(() => i(t, ...o)), n(...o);
4910
4921
  });
4911
4922
  });
4912
4923
  }
4913
4924
  };
4914
4925
  }
4915
- const qt = {
4926
+ const Jt = {
4916
4927
  name: "required",
4917
4928
  load(t, e, r) {
4918
- const i = Yi(t.getValue());
4929
+ const i = tn(t.getValue());
4919
4930
  if (i.required === !1)
4920
4931
  t.clearProp(), r.clearValidateState([e.field]);
4921
4932
  else {
4922
- const s = v({
4933
+ const s = b({
4923
4934
  required: !0,
4924
4935
  validator(n, o, a) {
4925
- d.empty(o) ? a(s.message) : a();
4936
+ h.empty(o) ? a(s.message) : a();
4926
4937
  }
4927
4938
  }, i);
4928
4939
  if (!s.message)
@@ -4936,28 +4947,28 @@ const qt = {
4936
4947
  r.sync(e);
4937
4948
  },
4938
4949
  watch(...t) {
4939
- qt.load(...t);
4950
+ Jt.load(...t);
4940
4951
  }
4941
4952
  };
4942
- function Yi(t) {
4943
- 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 : {};
4953
+ function tn(t) {
4954
+ 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 : {};
4944
4955
  }
4945
- function xi(t) {
4946
- t.componentAlias(Ui), Pr.forEach((e) => {
4956
+ function rn(t) {
4957
+ t.componentAlias(Gi), Lr.forEach((e) => {
4947
4958
  t.component(e.name, e);
4948
- }), t.register(qt), Ni.forEach((e) => {
4959
+ }), t.register(Jt), Hi.forEach((e) => {
4949
4960
  t.parser(e);
4950
- }), Object.keys(ce).forEach((e) => {
4951
- t.maker[e] = ce[e];
4961
+ }), Object.keys(ue).forEach((e) => {
4962
+ t.maker[e] = ue[e];
4952
4963
  });
4953
4964
  }
4954
- function en() {
4955
- return Ut({
4965
+ function nn() {
4966
+ return Gt({
4956
4967
  ui: "element-ui",
4957
- version: "2.7.0-alpha.0",
4958
- manager: Ji,
4959
- extendApi: Zi,
4960
- install: xi,
4968
+ version: "2.7.0",
4969
+ manager: Xi,
4970
+ extendApi: en,
4971
+ install: rn,
4961
4972
  attrs: {
4962
4973
  normal: ["col", "wrap"],
4963
4974
  array: ["className"],
@@ -4965,10 +4976,10 @@ function en() {
4965
4976
  }
4966
4977
  });
4967
4978
  }
4968
- const Ke = en();
4969
- typeof window != "undefined" && (window.formCreate = Ke, window.Vue && Ke.install(window.Vue));
4970
- const nn = Ke.maker;
4979
+ const ze = nn();
4980
+ typeof window != "undefined" && (window.formCreate = ze, window.Vue && ze.install(window.Vue));
4981
+ const an = ze.maker;
4971
4982
  export {
4972
- Ke as default,
4973
- nn as maker
4983
+ ze as default,
4984
+ an as maker
4974
4985
  };