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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,61 +1,61 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/element-ui v2.7.0-alpha.0
4
- * (c) 2018-2024 xaboy
3
+ * @form-create/element-ui v2.7.1
4
+ * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
7
7
  * Released under the MIT License.
8
8
  */
9
- (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
+ }, Fr = "fcRadio", Or = {
500
+ name: Fr,
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,
1338
+ }, Lr = [
1339
+ _r,
1340
+ wr,
1342
1341
  Or,
1343
- kr,
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,89 +1414,89 @@ 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
+ }), y = new t(n), v = y.api(), w = p.value, D = () => {
1434
1434
  if (o) {
1435
- const F = Oe(n, o);
1435
+ const F = ke(n, o);
1436
1436
  if (F) {
1437
- let R;
1438
- w ? (R = U(F.getSubForm()), R.push(_)) : R = _, F.subForm(R);
1437
+ let S;
1438
+ w ? (S = H(F.getSubForm()), S.push(v)) : S = v, F.subForm(S);
1439
1439
  }
1440
1440
  }
1441
1441
  }, Y = () => {
1442
- const F = Oe(n, o);
1442
+ const F = ke(n, o);
1443
1443
  if (F)
1444
1444
  if (w) {
1445
- const R = U(F.getSubForm()), P = R.indexOf(_);
1446
- P > -1 && R.splice(P, 1);
1445
+ const S = H(F.getSubForm()), T = S.indexOf(v);
1446
+ T > -1 && S.splice(T, 1);
1447
1447
  } else
1448
1448
  F.subForm();
1449
1449
  };
1450
- let I = null;
1451
- sr(() => {
1450
+ let P = null;
1451
+ lr(() => {
1452
1452
  B(() => {
1453
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 || "";
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 && (F += `.${T}{${re}}`);
1460
+ }), s.option && s.option.style && (F += s.option.style), P || (P = document.createElement("style"), P.type = "text/css", document.head.appendChild(P)), P.innerHTML = F || "";
1461
1461
  }, () => {
1462
1462
  });
1463
1463
  });
1464
- const T = ue(() => {
1465
- $.bus.$emit("$loadData.$topForm");
1466
- }, 100), Re = ue(() => {
1467
- $.bus.$emit("$loadData.$form");
1464
+ const L = le(() => {
1465
+ y.bus.$emit("$loadData.$topForm");
1466
+ }, 100), De = le(() => {
1467
+ y.bus.$emit("$loadData.$form");
1468
1468
  }, 100), ve = (F) => {
1469
- $.bus.$emit("change-$form." + F);
1469
+ y.bus.$emit("change-$form." + F);
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(() => {
1476
- $.updated();
1471
+ return ur(() => {
1472
+ o && (v.top.bus.$on("$loadData.$form", L), v.top.bus.$on("change", ve)), y.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, y.unmount();
1475
+ }), fr(() => {
1476
+ y.updated();
1477
1477
  }), B(c, (F) => {
1478
- F ? S() : Y();
1478
+ F ? D() : Y();
1479
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());
1480
+ y.$handle.isBreakWatch() || F.length === m.renderRule.length && F.every((S) => m.renderRule.indexOf(S) > -1) || (y.$handle.updateAppendData(), y.$handle.reloadRule(l.value), n.renderRule());
1481
1481
  }), B(() => s.option, () => {
1482
- $.initOptions(), _.refresh();
1482
+ y.initOptions(), v.refresh();
1483
1483
  }, { deep: !0 }), B(() => [s.disabled, s.preview], () => {
1484
- _.refresh();
1484
+ v.refresh();
1485
1485
  }), B(u, (F) => {
1486
- JSON.stringify(F || {}) !== m.updateValue && (_.config.forceCoverValue ? _.coverValue(F || {}) : _.setValue(F || {}));
1486
+ JSON.stringify(F || {}) !== m.updateValue && (v.config.forceCoverValue ? v.coverValue(F || {}) : v.setValue(F || {}));
1487
1487
  }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1488
- _.coverValue({}), $.$handle.updateAppendData(), J(() => {
1488
+ v.coverValue({}), y.$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(y),
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
  },
@@ -1505,9 +1505,9 @@ function Br(t, e, r) {
1505
1505
  },
1506
1506
  updateValue(F) {
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(F);
1509
+ m.updateValue !== S && (m.updateValue = S, n.$emit("update:value", F), 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 Ft = ["attrs", "props", "domProps", "scopedSlots"], Ot = ["class", "style", "directives"], kt = ["on", "nativeOn", "hook"], Q = (t, e = {}, r = {}) => {
1521
+ const i = [...Ft, ...r.normal || []], s = [...Ot, ...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
- a[u] = z([l[u]], a[u]);
1526
+ a[u] = Q([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, ...Ft, ...Ot, ...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
- function Z(t, e) {
1583
- if (t && d.String(t) && t.length > 4) {
1582
+ function K(t, e) {
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 : K(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
- function Q(t, e) {
1652
- return z(Array.isArray(e) ? e : [e], t, { array: ze, normal: Qe }), t;
1651
+ function Z(t, e) {
1652
+ return Q(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
- e[r] && (t[r] = Q(t[r] || {}, e[r]));
1660
+ e[r] && (t[r] = Z(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 O(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 Fe(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) {
1821
- return Q(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1826
+ tt.prototype[e] = function(r) {
1827
+ return Z(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
- 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));
1893
+ const a = K(t.parse);
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) {
@@ -2131,7 +2137,7 @@ function Wr(t) {
2131
2137
  },
2132
2138
  mergeRule: (n, o) => {
2133
2139
  t.getCtxs(n).forEach((a) => {
2134
- Q(a.rule, o);
2140
+ Z(a.rule, o);
2135
2141
  });
2136
2142
  },
2137
2143
  mergeRules(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) && O(() => 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 O(() => 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)
@@ -2248,7 +2254,7 @@ function Wr(t) {
2248
2254
  getGlobalEvent(n) {
2249
2255
  let o = s.options.globalEvent[n];
2250
2256
  if (o)
2251
- return typeof o == "object" && (o = o.handle), Z(o);
2257
+ return typeof o == "object" && (o = o.handle), K(o);
2252
2258
  },
2253
2259
  getGlobalData(n) {
2254
2260
  return new Promise((o, a) => {
@@ -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 && O(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
+ O(() => n.onSuccess && n.onSuccess(l)), o(l);
2278
2284
  }).catch((l) => {
2279
- k(() => n.onError && n.onError(l)), a(l);
2285
+ O(() => 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
+ O(() => p.onSuccess && p.onSuccess(m)), o && o(m, c);
2294
+ }).catch((m) => {
2295
+ O(() => 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
- return Q({}, [i["*"], i[e.originType] || i[e.type] || i[e.type] || {}]);
2392
- })), e.prop = Q({}, [this.cacheConfig[e.trueType].value, e.prop]));
2397
+ return Z({}, [i["*"], i[e.originType] || i[e.type] || i[e.type] || {}]);
2398
+ })), e.prop = Z({}, [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) ? Z({ 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 && O(() => 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
- 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), $;
2450
+ let y;
2451
+ return m ? (u.children = c, y = m(u)) : y = a ? e.parser.preview(Ge(c), e) : e.parser.render(Ge(c), e), y = this.renderSides(y, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), y = this.$manager.makeWrap(e, y)), e.none && (Array.isArray(y) ? y = y.map((v) => !v || !v.tag ? v : this.none(v)) : y = this.none(y)), o && this.setCache(e, () => this.stable(y), r), y;
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;
@@ -2545,7 +2551,7 @@ function Xr(t) {
2545
2551
  on: {
2546
2552
  [e.prop.modelEmit]: () => this.onEmitInput(e)
2547
2553
  }
2548
- })), z(n, e.prop), e.prop;
2554
+ })), Q(n, e.prop), e.prop;
2549
2555
  },
2550
2556
  onMounted(e) {
2551
2557
  e.el = this.vm.$refs[e.ref], e.el && ((e.el.$el || e.el).__rule__ = e.rule), e.parser.mounted(e), this.$handle.effect(e, "mounted"), this.$handle.targetHook(e, "mounted");
@@ -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,31 +2641,31 @@ 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)) {
2643
- const n = Z(r);
2648
+ if (h.String(r)) {
2649
+ const n = K(r);
2644
2650
  if (n && r !== n)
2645
2651
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2646
2652
  }
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) => {
2656
- this.vm.$emit($, ...w), this.vm.$emit("emit-event", $, ...w), this.bus.$emit($, ...w);
2661
+ const y = ye(`${m}-${c}`), v = (...w) => {
2662
+ this.vm.$emit(y, ...w), this.vm.$emit("emit-event", y, ...w), this.bus.$emit(y, ...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();
@@ -2704,30 +2710,25 @@ function Qr(t) {
2704
2710
  },
2705
2711
  loadFetchVar(e, r) {
2706
2712
  const i = (s) => this.loadStrVar(s, r);
2707
- if (e.action = i(e.action), e.headers) {
2708
- const s = {};
2709
- Object.keys(e.headers).forEach((n) => {
2710
- s[i(n)] = i(e.headers[n]);
2711
- }), e.headers = s;
2712
- }
2713
- if (e.data) {
2714
- const s = {};
2715
- Object.keys(e.data).forEach((n) => {
2716
- s[i(n)] = i(e.data[n]);
2717
- }), e.data = s;
2718
- }
2719
- return e;
2713
+ return e.action = i(e.action || ""), ["headers", "data", "query"].forEach((s) => {
2714
+ if (e[s]) {
2715
+ const n = {};
2716
+ Object.keys(e[s]).forEach((o) => {
2717
+ n[i(o)] = i(e[s][o]);
2718
+ }), e[s] = n;
2719
+ }
2720
+ }), e;
2720
2721
  }
2721
2722
  });
2722
2723
  }
2723
- const dt = ["hook:updated", "hook:mounted"];
2724
- function Zr(t) {
2725
- b(t.prototype, {
2724
+ const gt = ["hook:updated", "hook:mounted"];
2725
+ function ei(t) {
2726
+ _(t.prototype, {
2726
2727
  usePage() {
2727
2728
  const e = this.options.page;
2728
2729
  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, {
2730
+ let r = 25, i = ti(this.rules);
2731
+ h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), _(this, {
2731
2732
  first: r,
2732
2733
  limit: i,
2733
2734
  pageEnd: this.rules.length <= r
@@ -2735,17 +2736,17 @@ function Zr(t) {
2735
2736
  },
2736
2737
  pageLoad() {
2737
2738
  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());
2739
+ 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
2740
  };
2740
- this.vm.$on(dt, e);
2741
+ this.vm.$on(gt, e);
2741
2742
  }
2742
2743
  });
2743
2744
  }
2744
- function Yr(t) {
2745
+ function ti(t) {
2745
2746
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2746
2747
  }
2747
- function xr(t) {
2748
- b(t.prototype, {
2748
+ function ri(t) {
2749
+ _(t.prototype, {
2749
2750
  clearNextTick() {
2750
2751
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
2751
2752
  },
@@ -2759,16 +2760,16 @@ function xr(t) {
2759
2760
  }
2760
2761
  });
2761
2762
  }
2762
- function ei(t) {
2763
+ function ii(t) {
2763
2764
  Object.defineProperties(t.origin, {
2764
- __fc__: Je(de(t), !0)
2765
+ __fc__: Ke(fe(t), !0)
2765
2766
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2766
- __fc__: Je(de(t), !0)
2767
+ __fc__: Ke(fe(t), !0)
2767
2768
  });
2768
2769
  }
2769
- function Tt(t, e, r) {
2770
- const i = Ee(), s = !!e.field;
2771
- b(this, {
2770
+ function Nt(t, e, r) {
2771
+ const i = Se(), s = !!e.field;
2772
+ _(this, {
2772
2773
  id: i,
2773
2774
  ref: i,
2774
2775
  wrapRef: i + "fi",
@@ -2785,18 +2786,18 @@ function Tt(t, e, r) {
2785
2786
  parent: null,
2786
2787
  group: e.subRule ? this : null,
2787
2788
  cacheConfig: null,
2788
- prop: v({}, e),
2789
+ prop: b({}, e),
2789
2790
  computed: {},
2790
2791
  payload: {},
2791
2792
  refRule: {},
2792
2793
  input: s,
2793
2794
  el: void 0,
2794
2795
  exportEl: void 0,
2795
- defaultValue: s ? G(r) : void 0,
2796
+ defaultValue: s ? W(r) : void 0,
2796
2797
  field: e.field || void 0
2797
- }), this.updateKey(), ei(this), this.update(t, !0);
2798
+ }), this.updateKey(), ii(this), this.update(t, !0);
2798
2799
  }
2799
- b(Tt.prototype, {
2800
+ _(Nt.prototype, {
2800
2801
  getParentGroup() {
2801
2802
  let t = this.parent;
2802
2803
  for (; t; ) {
@@ -2828,8 +2829,8 @@ b(Tt.prototype, {
2828
2829
  return this.getPending(e, i);
2829
2830
  delete this.pending[e];
2830
2831
  let a = r;
2831
- if (d.Function(r)) {
2832
- let l = k(() => r({
2832
+ if (h.Function(r)) {
2833
+ let l = O(() => r({
2833
2834
  rule: this.rule,
2834
2835
  api: this.$api,
2835
2836
  update: (u) => {
@@ -2841,7 +2842,7 @@ b(Tt.prototype, {
2841
2842
  delete this.pending[e], n && n(u), this.$api && this.$api.sync(this.rule);
2842
2843
  }
2843
2844
  }));
2844
- l && d.Function(l.then) ? (l.then((u) => {
2845
+ l && h.Function(l.then) ? (l.then((u) => {
2845
2846
  const c = u || i;
2846
2847
  this.setPending(e, r, c), s && s(c), this.$api && this.$api.sync(this.rule);
2847
2848
  }).catch((u) => {
@@ -2856,7 +2857,7 @@ b(Tt.prototype, {
2856
2857
  setPending(t, e, r) {
2857
2858
  this.pending[t] = {
2858
2859
  origin: e,
2859
- value: re(r)
2860
+ value: ee(r)
2860
2861
  };
2861
2862
  },
2862
2863
  effectData(t) {
@@ -2866,20 +2867,20 @@ b(Tt.prototype, {
2866
2867
  t === void 0 ? this.payload = {} : delete this.payload[t];
2867
2868
  },
2868
2869
  updateKey(t) {
2869
- this.key = Ee(), t && this.parent && this.parent.updateKey(t);
2870
+ this.key = Se(), t && this.parent && this.parent.updateKey(t);
2870
2871
  },
2871
2872
  updateType() {
2872
- this.originType = this.rule.type, this.type = H(this.rule.type), this.trueType = this.$handle.getType(this.originType);
2873
+ this.originType = this.rule.type, this.type = G(this.rule.type), this.trueType = this.$handle.getType(this.originType);
2873
2874
  },
2874
2875
  setParser(t) {
2875
2876
  this.parser = t, t.init(this);
2876
2877
  },
2877
2878
  initProp() {
2878
- const t = v({}, this.rule);
2879
- 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 || []];
2879
+ const t = b({}, this.rule);
2880
+ delete t.children, delete t.validate, this.prop = Z({}, [t, ...Object.keys(this.payload).map((e) => this.payload[e]), this.computed]), this.prop.validate = [...this.refRule.__$validate.value || [], ...this.prop.validate || []];
2880
2881
  },
2881
2882
  initNone() {
2882
- this.none = !(d.Undef(this.prop.display) || this.prop.display);
2883
+ this.none = !(h.Undef(this.prop.display) || this.prop.display);
2883
2884
  },
2884
2885
  injectValidate() {
2885
2886
  return this.prop.validate;
@@ -2900,7 +2901,7 @@ b(Tt.prototype, {
2900
2901
  this.$handle.watchCtx(this);
2901
2902
  },
2902
2903
  delete() {
2903
- this.unwatch(), this.unlink(), this.rmCtrl(), this.parent && this.parent.children.splice(this.parent.children.indexOf(this) >>> 0, 1), b(this, {
2904
+ this.unwatch(), this.unlink(), this.rmCtrl(), this.parent && this.parent.children.splice(this.parent.children.indexOf(this) >>> 0, 1), _(this, {
2904
2905
  deleted: !0,
2905
2906
  computed: {},
2906
2907
  parent: null,
@@ -2923,14 +2924,14 @@ b(Tt.prototype, {
2923
2924
  }
2924
2925
  this.$handle.noWatch(() => {
2925
2926
  this.$handle.deferSyncValue(() => {
2926
- this.rmCtrl(), t(), this.$handle.rmCtx(this), b(this, {
2927
+ this.rmCtrl(), t(), this.$handle.rmCtx(this), _(this, {
2927
2928
  root: []
2928
2929
  });
2929
2930
  }, this.input);
2930
2931
  });
2931
2932
  },
2932
2933
  update(t, e) {
2933
- b(this, {
2934
+ _(this, {
2934
2935
  deleted: !1,
2935
2936
  $handle: t,
2936
2937
  $render: t.$render,
@@ -2942,8 +2943,8 @@ b(Tt.prototype, {
2942
2943
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
2943
2944
  }
2944
2945
  });
2945
- function ti(t) {
2946
- b(t.prototype, {
2946
+ function ni(t) {
2947
+ _(t.prototype, {
2947
2948
  nextRefresh(e) {
2948
2949
  const r = this.loadedId;
2949
2950
  J(() => {
@@ -2951,12 +2952,12 @@ function ti(t) {
2951
2952
  });
2952
2953
  },
2953
2954
  parseRule(e) {
2954
- const r = lt(e);
2955
+ const r = ct(e);
2955
2956
  return Object.defineProperties(r, {
2956
- __origin__: Je(e, !0)
2957
- }), ri(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
2957
+ __origin__: Ke(e, !0)
2958
+ }), si(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
2958
2959
  i && this.loadFn(i, r);
2959
- }), this.loadCtrl(r), r.update && (r.update = Z(r.update)), r;
2960
+ }), this.loadCtrl(r), r.update && (r.update = K(r.update)), r;
2960
2961
  },
2961
2962
  loadFn(e, r) {
2962
2963
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -2965,14 +2966,14 @@ function ti(t) {
2965
2966
  },
2966
2967
  loadCtrl(e) {
2967
2968
  e.control && e.control.forEach((r) => {
2968
- r.handle && (r.handle = Z(r.handle));
2969
+ r.handle && (r.handle = K(r.handle));
2969
2970
  });
2970
2971
  },
2971
2972
  syncProp(e) {
2972
2973
  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);
2974
+ h.trueArray(r.sync) && Q([{
2975
+ on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
2976
+ r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
2976
2977
  }, i), {})
2977
2978
  }], e.computed);
2978
2979
  },
@@ -2996,40 +2997,40 @@ function ti(t) {
2996
2997
  let l = this.sort.indexOf(a.__fc__.id);
2997
2998
  return l > -1 ? l : i(o - 1);
2998
2999
  }, s = (o, a) => {
2999
- d.trueArray(o) && this._loadRule(o, a);
3000
+ h.trueArray(o) && this._loadRule(o, a);
3000
3001
  }, n = e.map((o, a) => {
3001
- if (r && !d.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3002
+ if (r && !h.Object(o) || !this.pageEnd && !r && a >= this.first) return;
3002
3003
  if (o.__fc__ && o.__fc__.root === e && this.ctxs[o.__fc__.id])
3003
3004
  return s(o.__fc__.loadChildrenPending(), o.__fc__), o.__fc__;
3004
- let l = lt(o);
3005
+ let l = ct(o);
3005
3006
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3006
3007
  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
- let c, p = !1, m = !!o.__fc__, $ = l.value;
3008
+ let c, p = !1, m = !!o.__fc__, y = l.value;
3008
3009
  if (m) {
3009
- if (c = o.__fc__, $ = c.defaultValue, c.deleted) {
3010
- if (pt(c))
3010
+ if (c = o.__fc__, y = c.defaultValue, c.deleted) {
3011
+ if (yt(c))
3011
3012
  return;
3012
3013
  c.update(this);
3013
3014
  } else if (!c.check(this)) {
3014
- if (pt(c))
3015
+ if (yt(c))
3015
3016
  return;
3016
- e[a] = o = o._clone ? o._clone() : Rt(Ye(o)), c = null, p = !0;
3017
+ e[a] = o = o._clone ? o._clone() : jt(et(o)), c = null, p = !0;
3017
3018
  }
3018
3019
  }
3019
3020
  if (c)
3020
3021
  c.originType !== c.rule.type && c.updateType(), this.bindParser(c), this.appendValue(c.rule), c.parent && c.parent !== r && this.rmSubRuleData(c);
3021
3022
  else {
3022
- const S = this.parseRule(o);
3023
- c = new Tt(this, S, $), this.bindParser(c);
3023
+ const D = this.parseRule(o);
3024
+ c = new Nt(this, D, y), this.bindParser(c);
3024
3025
  }
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);
3026
+ [!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");
3027
+ const v = c.loadChildrenPending();
3028
+ if (c.parser.loadChildren === !1 || s(v, c), !r) {
3029
+ const D = i(a);
3030
+ D > -1 || !a ? this.sort.splice(D + 1, 0, c.id) : this.sort.push(c.id);
3030
3031
  }
3031
3032
  const w = c.rule;
3032
- return c.updated || (c.updated = !0, d.Function(w.update) && this.bus.$once("load-end", () => {
3033
+ return c.updated || (c.updated = !0, h.Function(w.update) && this.bus.$once("load-end", () => {
3033
3034
  this.refreshUpdate(c, w.value, "init");
3034
3035
  }), this.effect(c, "loaded")), this.refreshControl(c) && (this.cycleLoad = !0), c;
3035
3036
  }).filter((o) => !!o);
@@ -3039,17 +3040,17 @@ function ti(t) {
3039
3040
  return e.input && e.rule.control && this.useCtrl(e);
3040
3041
  },
3041
3042
  useCtrl(e) {
3042
- const r = ii(e), i = [], s = this.api;
3043
+ const r = oi(e), i = [], s = this.api;
3043
3044
  if (!r.length) return !1;
3044
3045
  for (let a = 0; a < r.length; a++) {
3045
3046
  const l = r[a], u = l.handle || function(p) {
3046
- return (le[l.condition || "=="] || le["=="])(p, l.value);
3047
+ return (ae[l.condition || "=="] || ae["=="])(p, l.value);
3047
3048
  };
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])
3049
+ if (!h.trueArray(l.rule)) continue;
3050
+ const c = N(b({}, l), {
3051
+ valid: O(() => u(e.rule.value, s)),
3052
+ ctrl: ai(e, l.rule),
3053
+ isHidden: h.String(l.rule[0])
3053
3054
  });
3054
3055
  c.valid && c.ctrl || !c.valid && !c.ctrl && !c.isHidden || i.push(c);
3055
3056
  }
@@ -3057,14 +3058,14 @@ function ti(t) {
3057
3058
  const n = [];
3058
3059
  let o = !1;
3059
3060
  return this.deferSyncValue(() => {
3060
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: c, append: p, child: m, ctrl: $, method: _ }) => {
3061
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: c, append: p, child: m, ctrl: y, method: v }) => {
3061
3062
  if (a) {
3062
3063
  l ? e.ctrlRule.push({
3063
3064
  __ctrl: !0,
3064
3065
  children: u,
3065
3066
  valid: l
3066
- }) : $ && 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) => {
3067
+ }) : y && e.ctrlRule.splice(e.ctrlRule.indexOf(y) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3068
+ v === "disabled" || v === "enabled" ? this.api.disabled(!l, u) : v === "display" ? this.api.display(l, u) : v === "required" ? (u.forEach((w) => {
3068
3069
  this.api.setEffect(w, "required", l);
3069
3070
  }), l || this.api.clearValidateState(u)) : this.api.hidden(!l, u);
3070
3071
  });
@@ -3082,8 +3083,8 @@ function ti(t) {
3082
3083
  c ? s.prepend(w, c, m) : p || m ? s.append(w, p || e.id, m) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, w);
3083
3084
  });
3084
3085
  } else {
3085
- e.ctrlRule.splice(e.ctrlRule.indexOf($), 1);
3086
- const w = ae($);
3086
+ e.ctrlRule.splice(e.ctrlRule.indexOf(y), 1);
3087
+ const w = oe(y);
3087
3088
  w && w.rm();
3088
3089
  }
3089
3090
  });
@@ -3098,7 +3099,7 @@ function ti(t) {
3098
3099
  },
3099
3100
  _reloadRule(e) {
3100
3101
  e || (e = this.rules);
3101
- const r = v({}, this.ctxs);
3102
+ const r = b({}, this.ctxs);
3102
3103
  this.clearNextTick(), this.initData(e), this.fc.rules = e, this.deferSyncValue(() => {
3103
3104
  this.bus.$once("load-end", () => {
3104
3105
  Object.keys(r).filter((i) => this.ctxs[i] === void 0).forEach((i) => this.rmCtx(r[i])), this.$render.clearCacheAll();
@@ -3111,28 +3112,28 @@ function ti(t) {
3111
3112
  }
3112
3113
  });
3113
3114
  }
3114
- function ri(t) {
3115
- const e = At();
3115
+ function si(t) {
3116
+ const e = Pt();
3116
3117
  return Object.keys(e).forEach((r) => {
3117
- E(t, r) || j(t, r, e[r]);
3118
+ E(t, r) || k(t, r, e[r]);
3118
3119
  }), t;
3119
3120
  }
3120
- function ii(t) {
3121
+ function oi(t) {
3121
3122
  const e = t.rule.control || [];
3122
- return d.Object(e) ? [e] : e;
3123
+ return h.Object(e) ? [e] : e;
3123
3124
  }
3124
- function ni(t, e) {
3125
+ function ai(t, e) {
3125
3126
  for (let r = 0; r < t.ctrlRule.length; r++) {
3126
3127
  const i = t.ctrlRule[r];
3127
3128
  if (i.children === e)
3128
3129
  return i;
3129
3130
  }
3130
3131
  }
3131
- function pt(t) {
3132
+ function yt(t) {
3132
3133
  return !!t.rule.__ctrl;
3133
3134
  }
3134
- function si(t) {
3135
- b(t.prototype, {
3135
+ function li(t) {
3136
+ _(t.prototype, {
3136
3137
  setValue(e, r, i, s) {
3137
3138
  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
3139
  rule: e.origin,
@@ -3158,21 +3159,21 @@ function si(t) {
3158
3159
  setFormData(e, r) {
3159
3160
  e.modelValue = r;
3160
3161
  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);
3162
+ 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
3163
  },
3163
3164
  rmSubRuleData(e) {
3164
3165
  const r = e.getParentGroup();
3165
- r && this.subRuleData[r.id] && delete this.subRuleData[r.id][e.field];
3166
+ r && this.subRuleData[r.id] && x(this.subRuleData[r.id], e.field);
3166
3167
  },
3167
3168
  getFormData(e) {
3168
3169
  return this.formData[e.id];
3169
3170
  },
3170
3171
  syncForm() {
3171
3172
  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) => {
3173
+ 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
3174
  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();
3175
+ return this.isIgnore(o.rule) && i.push(n), s[n] = Re(o.rule, "value"), s;
3176
+ }, e), this.form = ee(e), this.ignoreFields = i, this.syncValue();
3176
3177
  },
3177
3178
  isIgnore(e) {
3178
3179
  return e.ignore === !0 || e.ignore === "hidden" && e.hidden || this.options.ignoreHiddenFields && e.hidden;
@@ -3184,7 +3185,7 @@ function si(t) {
3184
3185
  this.subForm[e.id] = r;
3185
3186
  },
3186
3187
  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());
3188
+ this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), O(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
3188
3189
  },
3189
3190
  syncValue() {
3190
3191
  if (this.deferSyncFn)
@@ -3195,14 +3196,14 @@ function si(t) {
3195
3196
  }), this.vm.updateValue(e);
3196
3197
  },
3197
3198
  isChange(e, r) {
3198
- return JSON.stringify(this.getFormData(e), mt) !== JSON.stringify(r, mt);
3199
+ return JSON.stringify(this.getFormData(e), $t) !== JSON.stringify(r, $t);
3199
3200
  },
3200
3201
  isQuote(e, r) {
3201
- return (d.Object(r) || Array.isArray(r)) && r === e.rule.value;
3202
+ return (h.Object(r) || Array.isArray(r)) && r === e.rule.value;
3202
3203
  },
3203
3204
  refreshUpdate(e, r, i, s) {
3204
- if (d.Function(e.rule.update)) {
3205
- const n = k(() => e.rule.update(r, e.origin, this.api, {
3205
+ if (h.Function(e.rule.update)) {
3206
+ const n = O(() => e.rule.update(r, e.origin, this.api, {
3206
3207
  origin: i || "change",
3207
3208
  linkField: s
3208
3209
  }));
@@ -3218,7 +3219,7 @@ function si(t) {
3218
3219
  },
3219
3220
  appendLink(e) {
3220
3221
  const r = e.rule.link;
3221
- d.trueArray(r) && r.forEach((i) => {
3222
+ h.trueArray(r) && r.forEach((i) => {
3222
3223
  const s = () => this.refreshRule(e, e.rule.value, "link", i);
3223
3224
  this.bus.$on("change-" + i, s), e.linkOn.push(() => this.bus.$off("change-" + i, s));
3224
3225
  });
@@ -3228,10 +3229,10 @@ function si(t) {
3228
3229
  }
3229
3230
  });
3230
3231
  }
3231
- function mt(t, e) {
3232
+ function $t(t, e) {
3232
3233
  return typeof e == "function" ? "" + e : e;
3233
3234
  }
3234
- const Fe = {
3235
+ const Ee = {
3235
3236
  init(t) {
3236
3237
  },
3237
3238
  toFormValue(t, e) {
@@ -3250,9 +3251,9 @@ const Fe = {
3250
3251
  },
3251
3252
  mergeProp(t) {
3252
3253
  }
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, {
3254
+ }, ui = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"];
3255
+ function ci(t) {
3256
+ _(t.prototype, {
3256
3257
  getCtx(e) {
3257
3258
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
3258
3259
  },
@@ -3282,26 +3283,26 @@ function ai(t) {
3282
3283
  getParser(e) {
3283
3284
  const r = this.fc.parsers, i = this.fc.renderDriver;
3284
3285
  if (i) {
3285
- const s = i.parsers || {}, n = s[e.originType] || s[H(e.type)] || s[e.trueType];
3286
+ const s = i.parsers || {}, n = s[e.originType] || s[G(e.type)] || s[e.trueType];
3286
3287
  if (n)
3287
3288
  return n;
3288
3289
  }
3289
- return r[e.originType] || r[H(e.type)] || r[e.trueType] || Fe;
3290
+ return r[e.originType] || r[G(e.type)] || r[e.trueType] || Ee;
3290
3291
  },
3291
3292
  bindParser(e) {
3292
3293
  e.setParser(this.getParser(e));
3293
3294
  },
3294
3295
  getType(e) {
3295
- const r = this.fc.CreateNode.aliasMap, i = r[e] || r[H(e)] || e;
3296
- return H(i);
3296
+ const r = this.fc.CreateNode.aliasMap, i = r[e] || r[G(e)] || e;
3297
+ return G(i);
3297
3298
  },
3298
3299
  noWatch(e) {
3299
- this.noWatchFn || (this.noWatchFn = e), k(e), this.noWatchFn === e && (this.noWatchFn = null);
3300
+ this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
3300
3301
  },
3301
3302
  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) => {
3303
+ if (Rt().filter((i) => i[0] !== "_" && i[0] !== "$" && ui.indexOf(i) === -1).forEach((i) => {
3304
+ const s = Re(e.rule, i), n = i === "children";
3305
+ e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3305
3306
  let l = s.value;
3306
3307
  if (!this.isBreakWatch()) {
3307
3308
  if (n && e.parser.loadChildren === !1) {
@@ -3317,31 +3318,31 @@ function ai(t) {
3317
3318
  else if (i === "link") {
3318
3319
  e.link();
3319
3320
  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));
3321
+ } 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
3322
  this.$render.clearCache(e), this.refresh(), this.watching = !1;
3322
3323
  }
3323
3324
  }, { deep: !n, sync: n }));
3324
- }), e.refRule.__$title = pe(() => {
3325
+ }), e.refRule.__$title = he(() => {
3325
3326
  let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
3326
3327
  if (i) {
3327
3328
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3328
3329
  s && (i = this.api.t(s[1]));
3329
3330
  }
3330
3331
  return i;
3331
- }), e.refRule.__$info = pe(() => {
3332
+ }), e.refRule.__$info = he(() => {
3332
3333
  let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
3333
3334
  if (i) {
3334
3335
  const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3335
3336
  s && (i = this.api.t(s[1]));
3336
3337
  }
3337
3338
  return i;
3338
- }), e.refRule.__$validate = pe(() => U(e.rule.validate).map((i) => {
3339
- const s = v({}, i);
3339
+ }), e.refRule.__$validate = he(() => H(e.rule.validate).map((i) => {
3340
+ const s = b({}, i);
3340
3341
  if (s.message) {
3341
3342
  const n = s.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3342
3343
  n && (s.message = this.api.t(n[1], { title: e.refRule.__$title.value }));
3343
3344
  }
3344
- if (d.Function(s.validator)) {
3345
+ if (h.Function(s.validator)) {
3345
3346
  const n = e;
3346
3347
  return s.validator = function(...o) {
3347
3348
  return i.validator.call({
@@ -3355,7 +3356,7 @@ function ai(t) {
3355
3356
  }
3356
3357
  return s;
3357
3358
  })), e.input) {
3358
- const i = ke(e.rule, "value");
3359
+ const i = Re(e.rule, "value");
3359
3360
  e.watch.push(B(() => i.value, () => {
3360
3361
  let s = e.parser.toFormValue(i.value, e);
3361
3362
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3365,13 +3366,13 @@ function ai(t) {
3365
3366
  let i = e.rule.computed;
3366
3367
  i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
3367
3368
  let n;
3368
- const o = pe(() => {
3369
+ const o = he(() => {
3369
3370
  const l = i[s];
3370
3371
  if (!l) return;
3371
3372
  const u = this.compute(e, l);
3372
3373
  return l.linkage && u === void 0 ? n : u;
3373
3374
  }), a = (l) => {
3374
- s === "value" ? this.onInput(e, l) : s[0] === "$" ? this.api.setEffect(e.id, s, l) : ie(e.rule, s, l);
3375
+ s === "value" ? this.onInput(e, l) : s[0] === "$" ? this.api.setEffect(e.id, s, l) : te(e.rule, s, l);
3375
3376
  };
3376
3377
  (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
3378
  n = l, setTimeout(() => {
@@ -3385,28 +3386,35 @@ function ai(t) {
3385
3386
  let i;
3386
3387
  if (typeof r == "object") {
3387
3388
  const s = e.getParentGroup(), n = (a) => {
3388
- if (a = Array.isArray(a) ? { mode: "AND", group: a } : a, !d.trueArray(a.group))
3389
+ if (a = Array.isArray(a) ? { mode: "AND", group: a } : a, !h.trueArray(a.group))
3389
3390
  return !0;
3390
3391
  const l = a.mode === "OR";
3391
3392
  let u = !0;
3392
3393
  for (let c = 0; c < a.group.length; c++) {
3393
3394
  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)
3395
+ let m, y = null;
3396
+ if (p.variable)
3397
+ y = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3398
+ else if (p.field)
3399
+ y = ht(p.field || "");
3400
+ else
3401
+ return !0;
3402
+ let v = p.compare;
3403
+ if (v && (v = ht(v || "")), p.mode ? m = n(p) : ae[p.condition] ? h.Function(p.handler) ? m = O(() => p.handler(this.api, e.rule)) : m = new Function("$condition", "$val", "$form", "$group", "$rule", `with($form){with(this){with($group){ return $condition['${p.condition}'](${y}, ${v || "$val"}); }}}`).call(this.api.form, ae, p.value, this.api.top.form, s ? this.subRuleData[s.id] || {} : {}, e.rule) : m = !1, l && m)
3396
3404
  return !0;
3397
3405
  l || (u = u && m);
3398
3406
  }
3399
3407
  return l ? !1 : u;
3400
3408
  };
3401
3409
  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))
3410
+ return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : void 0 : o;
3411
+ } else if (h.Function(r))
3404
3412
  i = () => r(this.api.form, this.api);
3405
3413
  else {
3406
3414
  const s = e.getParentGroup();
3407
3415
  i = () => this.computeValue(r, e, s);
3408
3416
  }
3409
- return k(i, void 0);
3417
+ return O(i, void 0);
3410
3418
  },
3411
3419
  computeValue(e, r, i) {
3412
3420
  const s = this, n = Object.keys(this.fc.formulas).reduce((o, a) => (o[a] = function(...l) {
@@ -3422,25 +3430,25 @@ function ai(t) {
3422
3430
  updateChildren(e, r, i) {
3423
3431
  this.deferSyncValue(() => {
3424
3432
  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));
3433
+ (r || []).indexOf(s) === -1 && s && !h.String(s) && s.__fc__ && s.__fc__.parent === e && this.rmCtx(s.__fc__);
3434
+ }), h.trueArray(r) && (this.loadChildren(r, e), this.bus.$emit("update", this.api));
3427
3435
  });
3428
3436
  },
3429
3437
  rmSub(e) {
3430
- d.trueArray(e) && e.forEach((r) => {
3438
+ h.trueArray(e) && e.forEach((r) => {
3431
3439
  r && r.__fc__ && this.rmCtx(r.__fc__);
3432
3440
  });
3433
3441
  },
3434
3442
  rmCtx(e) {
3435
3443
  if (e.deleted) return;
3436
3444
  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);
3445
+ x(this.ctxs, r), x(this.formData, r), x(this.subForm, r), x(this.vm.ctxInject, r);
3438
3446
  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(() => {
3447
+ 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
3448
  if (!this.reloading) {
3441
3449
  if (e.parser.loadChildren !== !1) {
3442
3450
  const l = e.getPending("children", e.rule.children);
3443
- d.trueArray(l) && l.forEach((u) => u.__fc__ && this.rmCtx(u.__fc__));
3451
+ h.trueArray(l) && l.forEach((u) => u.__fc__ && this.rmCtx(u.__fc__));
3444
3452
  }
3445
3453
  e.root === this.rules && this.vm.renderRule();
3446
3454
  }
@@ -3450,8 +3458,8 @@ function ai(t) {
3450
3458
  }
3451
3459
  });
3452
3460
  }
3453
- function li(t) {
3454
- b(t.prototype, {
3461
+ function fi(t) {
3462
+ _(t.prototype, {
3455
3463
  mounted() {
3456
3464
  const e = () => {
3457
3465
  this.isMounted = !0, this.lifecycle("mounted");
@@ -3462,10 +3470,10 @@ function li(t) {
3462
3470
  this.fc.targetFormDriver(e, this.api, this.fc), this.vm.$emit(e, this.api), this.emitEvent(e, this.api);
3463
3471
  },
3464
3472
  emitEvent(e, ...r) {
3465
- const i = this.options[e] || this.options[H("on-" + e)];
3473
+ const i = this.options[e] || this.options[G("on-" + e)];
3466
3474
  if (i) {
3467
- const s = Z(i);
3468
- d.Function(s) && k(() => s(...r));
3475
+ const s = K(i);
3476
+ h.Function(s) && O(() => s(...r));
3469
3477
  }
3470
3478
  this.bus.$emit(e, ...r);
3471
3479
  },
@@ -3473,18 +3481,18 @@ function li(t) {
3473
3481
  var n, o;
3474
3482
  let s = (o = (n = e.prop) == null ? void 0 : n.hook) == null ? void 0 : o[r];
3475
3483
  s && (s = Array.isArray(s) ? s : [s], s.forEach((a) => {
3476
- k(() => a(M(v({}, i || {}), { rule: e.rule, api: this.api })));
3484
+ O(() => a(N(b({}, i || {}), { rule: e.rule, api: this.api })));
3477
3485
  }));
3478
3486
  }
3479
3487
  });
3480
3488
  }
3481
- function ui(t) {
3482
- b(t.prototype, {
3489
+ function hi(t) {
3490
+ _(t.prototype, {
3483
3491
  useProvider() {
3484
3492
  const e = this.fc.providers;
3485
3493
  Object.keys(e).forEach((r) => {
3486
3494
  let i = e[r];
3487
- d.Function(i) && (i = i(this.fc)), i._c = fi(i), this.onEffect(i), this.providers[r] = i;
3495
+ h.Function(i) && (i = i(this.fc)), i._c = pi(i), this.onEffect(i), this.providers[r] = i;
3488
3496
  });
3489
3497
  },
3490
3498
  onEffect(e) {
@@ -3537,7 +3545,7 @@ function ui(t) {
3537
3545
  },
3538
3546
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
3539
3547
  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 || {}));
3548
+ const l = n || Object.keys(r).reduce((u, c) => (c[0] === "$" && (u[c.substr(1)] = r[c]), u), b({}, r.effect || {}));
3541
3549
  Object.keys(l).forEach((u) => {
3542
3550
  const c = this.providers[u];
3543
3551
  if (!c || c.input && !i) return;
@@ -3548,26 +3556,26 @@ function ui(t) {
3548
3556
  p = s;
3549
3557
  else
3550
3558
  return;
3551
- const m = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3552
- 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]);
3559
+ const m = b({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3560
+ e && (m.getProp = () => e.effectData(u), m.clearProp = () => e.clearEffectData(u), m.mergeProp = (y) => Z(m.getProp(), [y]), m.id = e.id), this.bus.$emit(`p:${u}:${p}:${c.input ? 1 : 0}`, o, [m, r, this.api]);
3553
3561
  });
3554
3562
  }
3555
3563
  });
3556
3564
  }
3557
- function ci(t) {
3565
+ function di(t) {
3558
3566
  return t.filter(function(e, r, i) {
3559
3567
  return i.indexOf(e, 0) === r;
3560
3568
  });
3561
3569
  }
3562
- function fi(t) {
3570
+ function pi(t) {
3563
3571
  const e = t.components;
3564
3572
  if (Array.isArray(e)) {
3565
- const r = ci(e.filter((i) => i !== "*"));
3573
+ const r = di(e.filter((i) => i !== "*"));
3566
3574
  return r.length ? r : !1;
3567
- } else return d.String(e) ? [e] : !1;
3575
+ } else return h.String(e) ? [e] : !1;
3568
3576
  }
3569
- function W(t) {
3570
- jt(this, {
3577
+ function X(t) {
3578
+ It(this, {
3571
3579
  options() {
3572
3580
  return t.options.value || {};
3573
3581
  },
@@ -3577,7 +3585,7 @@ function W(t) {
3577
3585
  preview() {
3578
3586
  return t.vm.$options.propsData.preview != null ? t.vm.$options.propsData.preview : t.options.value.preview || !1;
3579
3587
  }
3580
- }), b(this, {
3588
+ }), _(this, {
3581
3589
  fc: t,
3582
3590
  vm: t.vm,
3583
3591
  watching: !1,
@@ -3586,10 +3594,10 @@ function W(t) {
3586
3594
  noWatchFn: null,
3587
3595
  deferSyncFn: null,
3588
3596
  isMounted: !1,
3589
- formData: re({}),
3590
- subRuleData: re({}),
3597
+ formData: ee({}),
3598
+ subRuleData: ee({}),
3591
3599
  subForm: {},
3592
- form: re({}),
3600
+ form: ee({}),
3593
3601
  appendData: {},
3594
3602
  ignoreFields: [],
3595
3603
  providers: {},
@@ -3601,11 +3609,14 @@ function W(t) {
3601
3609
  nextReload: () => {
3602
3610
  this.lifecycle("reload");
3603
3611
  }
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));
3612
+ }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3613
+ const i = O(() => r(e, this));
3614
+ return i && i !== e && _(e, i), e;
3615
+ }, zr(this));
3605
3616
  }
3606
- b(W.prototype, {
3617
+ _(X.prototype, {
3607
3618
  initData(t) {
3608
- b(this, {
3619
+ _(this, {
3609
3620
  ctxs: {},
3610
3621
  fieldCtx: {},
3611
3622
  nameCtx: {},
@@ -3617,63 +3628,63 @@ b(W.prototype, {
3617
3628
  this.updateAppendData(), this.useProvider(), this.usePage(), this.loadRule(), this.$manager.__init(), this.lifecycle("created");
3618
3629
  },
3619
3630
  updateAppendData() {
3620
- this.appendData = v(v(v({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3631
+ this.appendData = b(b(b({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3621
3632
  },
3622
3633
  isBreakWatch() {
3623
3634
  return this.loading || this.noWatchFn || this.reloading;
3624
3635
  },
3625
3636
  beforeFetch(t) {
3626
3637
  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();
3638
+ const r = this.options.beforeFetch && O(() => this.options.beforeFetch(t, { api: this.api }));
3639
+ r && h.Function(r.then) ? r.then(e) : e();
3629
3640
  });
3630
3641
  }
3631
3642
  });
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,
3643
+ xr(X);
3644
+ ei(X);
3645
+ ri(X);
3646
+ ni(X);
3647
+ li(X);
3648
+ ci(X);
3649
+ fi(X);
3650
+ hi(X);
3651
+ const mi = "fcFragment", Be = {
3652
+ name: mi,
3642
3653
  functional: !0,
3643
3654
  props: ["vnode"],
3644
3655
  render(t, e) {
3645
3656
  return e.props.vnode ? e.props.vnode : e.children;
3646
3657
  }
3647
3658
  };
3648
- function di(t) {
3649
- return d.String(t) ? { domProps: { innerHTML: t } } : t;
3659
+ function gi(t) {
3660
+ return h.String(t) ? { domProps: { innerHTML: t } } : t;
3650
3661
  }
3651
- function pi() {
3662
+ function yi() {
3652
3663
  const t = {};
3653
3664
  function e(r) {
3654
3665
  r && this.setVm(r);
3655
3666
  }
3656
- return b(e.prototype, {
3667
+ return _(e.prototype, {
3657
3668
  setVm(r) {
3658
- this.vm = r, this.$h = r.$createElement;
3669
+ this.vm = r, this.h = this.$h = r.$createElement;
3659
3670
  },
3660
3671
  make(r, i, s) {
3661
3672
  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);
3673
+ 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
3674
  },
3664
3675
  makeComponent(r, i, s) {
3665
- let n = this.$h(r, di(i), s || []);
3676
+ let n = this.$h(r, gi(i), s || []);
3666
3677
  return n.context = this.vm, n;
3667
3678
  },
3668
3679
  aliasMap: t
3669
- }), b(e, {
3680
+ }), _(e, {
3670
3681
  aliasMap: t,
3671
3682
  alias(r, i) {
3672
3683
  t[r] = i;
3673
3684
  },
3674
3685
  use(r) {
3675
3686
  Object.keys(r).forEach((i) => {
3676
- const s = ye(i), n = Et(i).toLocaleLowerCase(), o = r[i];
3687
+ const s = ye(i), n = Dt(i).toLocaleLowerCase(), o = r[i];
3677
3688
  [i, s, n].forEach((a) => {
3678
3689
  e.alias(i, o), e.prototype[a] = function(l, u) {
3679
3690
  return this.make(o, l, u);
@@ -3683,13 +3694,13 @@ function pi() {
3683
3694
  }
3684
3695
  }), e;
3685
3696
  }
3686
- function mi(t) {
3687
- class e extends Lt {
3697
+ function $i(t) {
3698
+ class e extends Ut {
3688
3699
  }
3689
3700
  return Object.assign(e.prototype, t), e;
3690
3701
  }
3691
- function Lt(t) {
3692
- b(this, {
3702
+ function Ut(t) {
3703
+ _(this, {
3693
3704
  $handle: t,
3694
3705
  vm: t.vm,
3695
3706
  options: {},
@@ -3699,12 +3710,12 @@ function Lt(t) {
3699
3710
  }
3700
3711
  }), this.updateKey(), this.init();
3701
3712
  }
3702
- b(Lt.prototype, {
3713
+ _(Ut.prototype, {
3703
3714
  __init() {
3704
3715
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
3705
3716
  },
3706
3717
  updateKey() {
3707
- this.key = Ee();
3718
+ this.key = Se();
3708
3719
  },
3709
3720
  //TODO interface
3710
3721
  init() {
@@ -3726,7 +3737,7 @@ b(Lt.prototype, {
3726
3737
  return e(this.vm);
3727
3738
  },
3728
3739
  mergeOptions(t, e) {
3729
- return z(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3740
+ return Q(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3730
3741
  },
3731
3742
  updateOptions(t) {
3732
3743
  this.$handle.fc.targetFormDriver("updateOptions", t, { handle: this.$handle, api: this.$handle.api }), this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
@@ -3744,24 +3755,24 @@ b(Lt.prototype, {
3744
3755
  render(t) {
3745
3756
  }
3746
3757
  });
3747
- const gi = function(t) {
3758
+ const vi = function(t) {
3748
3759
  const e = {
3749
3760
  name: "loadData",
3750
3761
  _fn: [],
3751
3762
  mounted(r, i, s) {
3752
3763
  this.deleted(r);
3753
- let n = U(r.getValue());
3764
+ let n = H(r.getValue());
3754
3765
  const o = [];
3755
3766
  n.forEach((a) => {
3756
3767
  if (a && (a.attr || a.template)) {
3757
3768
  let l = (p) => {
3758
3769
  let m;
3759
- a.template ? m = t.$handle.loadStrVar(a.template, p) : m = p(a.attr, a.default), a.copy !== !1 && (m = G(m));
3760
- const $ = a.modify ? i : r.getProp();
3761
- a.to === "child" ? $.children ? $.children[0] = m : $.children = [m] : ie($, a.to || "options", m), s.sync(i);
3770
+ a.template ? m = t.$handle.loadStrVar(a.template, p) : a.handler && h.Function(a.handler) ? m = a.handler(p, i, s) : m = p(a.attr, a.default), a.copy !== !1 && (m = W(m));
3771
+ const y = a.modify ? i : r.getProp();
3772
+ a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : te(y, a.to || "options", m), s.sync(i);
3762
3773
  }, u = (p) => l(p);
3763
3774
  const c = t.watchLoadData(u);
3764
- l = ue(l, a.wait || 300), a.watch !== !1 ? o.push(c) : c();
3775
+ l = le(l, a.wait || 300), a.watch !== !1 ? o.push(c) : c();
3765
3776
  }
3766
3777
  }), this._fn[r.id] = o;
3767
3778
  },
@@ -3772,7 +3783,7 @@ const gi = function(t) {
3772
3783
  }
3773
3784
  };
3774
3785
  return e.watch = e.mounted, e;
3775
- }, yi = function(t) {
3786
+ }, bi = function(t) {
3776
3787
  const e = {
3777
3788
  name: "t",
3778
3789
  _fn: [],
@@ -3784,13 +3795,13 @@ const gi = function(t) {
3784
3795
  const l = n[a];
3785
3796
  if (l) {
3786
3797
  const u = typeof l == "object";
3787
- let c = ($) => {
3788
- let _ = t.t(u ? l.attr : l, u ? l.params : null, $);
3798
+ let c = (y) => {
3799
+ let v = t.t(u ? l.attr : l, u ? l.params : null, y);
3789
3800
  const w = u && l.modify ? i : r.getProp();
3790
- a === "child" ? w.children ? w.children[0] = _ : w.children = [_] : ie(w, a, _), s.sync(i);
3791
- }, p = ($) => c($);
3801
+ a === "child" ? w.children ? k(w.children, 0, v) : k(w, "children", [v]) : te(w, a, v), s.sync(i);
3802
+ }, p = (y) => c(y);
3792
3803
  const m = t.watchLoadData(p);
3793
- c = ue(c, l.wait || 300), l.watch !== !1 ? o.push(m) : m();
3804
+ c = le(c, l.wait || 300), l.watch !== !1 ? o.push(m) : m();
3794
3805
  }
3795
3806
  }), this._fn[r.id] = o;
3796
3807
  },
@@ -3801,20 +3812,20 @@ const gi = function(t) {
3801
3812
  }
3802
3813
  };
3803
3814
  return e.watch = e.loaded, e;
3804
- }, Mt = {
3815
+ }, qt = {
3805
3816
  name: "componentValidate",
3806
3817
  load(t, e, r) {
3807
3818
  let i = t.getValue();
3808
3819
  if (!i || i.method === !1)
3809
3820
  t.clearProp(), r.clearValidateState([e.field]);
3810
3821
  else {
3811
- d.Object(i) || (i = { method: i });
3822
+ h.Object(i) || (i = { method: i });
3812
3823
  const s = i.method;
3813
- delete i.method, t.getProp().validate = [M(v({}, i), {
3824
+ delete i.method, t.getProp().validate = [N(b({}, i), {
3814
3825
  validator(...n) {
3815
- const o = ae(e);
3826
+ const o = oe(e);
3816
3827
  if (o)
3817
- return r.exec(o.id, d.String(s) ? s : "formCreateValidate", ...n, {
3828
+ return r.exec(o.id, h.String(s) ? s : "formCreateValidate", ...n, {
3818
3829
  attr: t,
3819
3830
  rule: e,
3820
3831
  api: r
@@ -3824,26 +3835,26 @@ const gi = function(t) {
3824
3835
  }
3825
3836
  },
3826
3837
  watch(...t) {
3827
- Mt.load(...t);
3838
+ qt.load(...t);
3828
3839
  }
3829
- }, $i = function(t) {
3840
+ }, _i = function(t) {
3830
3841
  function e(s) {
3831
- return d.String(s) && (s = {
3842
+ return h.String(s) && (s = {
3832
3843
  action: s,
3833
3844
  to: "options"
3834
3845
  }), s;
3835
3846
  }
3836
3847
  function r(s, n, o) {
3837
3848
  let a = s.value;
3838
- i.deleted(s), d.Function(a) && (a = a(n, o)), a = e(a);
3849
+ i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
3839
3850
  const l = (p) => {
3840
- p === void 0 ? s.clearProp() : ie(s.getProp(), a.to || "options", p), o.sync(n);
3851
+ p === void 0 ? s.clearProp() : te(s.getProp(), a.to || "options", p), o.sync(n);
3841
3852
  };
3842
3853
  if (!a || !a.action && !a.key) {
3843
3854
  l(void 0);
3844
3855
  return;
3845
3856
  }
3846
- if (a = G(a), a.to || (a.to = "options"), a.key) {
3857
+ if (a = W(a), a.to || (a.to = "options"), a.key) {
3847
3858
  const p = t.$handle.options.globalData[a.key];
3848
3859
  if (!p) {
3849
3860
  l(void 0);
@@ -3853,38 +3864,38 @@ const gi = function(t) {
3853
3864
  l(p.data);
3854
3865
  return;
3855
3866
  } else
3856
- a = v(v({}, a), p);
3867
+ a = b(b({}, a), p);
3857
3868
  }
3858
3869
  const u = a.onError, c = () => {
3859
3870
  if (!s.getValue())
3860
3871
  return s.clearProp(), o.sync(n), !0;
3861
3872
  };
3862
- i._fn[s.id] = t.watchLoadData(ue((p, m) => {
3873
+ i._fn[s.id] = t.watchLoadData(le((p, m) => {
3863
3874
  if (m && a.watch === !1)
3864
3875
  return i._fn[s.id]();
3865
- const $ = t.$handle.loadFetchVar(G(a), p), _ = M(v({
3876
+ const y = t.$handle.loadFetchVar(W(a), p), v = N(b({
3866
3877
  headers: {}
3867
- }, $), {
3868
- onSuccess(w, S) {
3878
+ }, y), {
3879
+ onSuccess(w, D) {
3869
3880
  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);
3881
+ let Y = (L) => D ? L : E(L, "data") ? L.data : L;
3882
+ const P = K(y.parse);
3883
+ h.Function(P) ? Y = P : P && h.String(P) && (Y = (L) => q(L, P)), l(Y(w, n, o)), o.sync(n);
3873
3884
  },
3874
3885
  onError(w) {
3875
- l(void 0), !c() && (u || ((S) => Ze(S.message || "fetch fail " + $.action)))(w, n, o);
3886
+ l(void 0), !c() && (u || ((D) => xe(D.message || "fetch fail " + y.action)))(w, n, o);
3876
3887
  }
3877
3888
  });
3878
- t.$handle.beforeFetch(_, { rule: n, api: o }).then(() => {
3879
- if (d.Function($.action)) {
3880
- $.action(n, o).then((w) => {
3881
- _.onSuccess(w, !0);
3889
+ t.$handle.beforeFetch(v, { rule: n, api: o }).then(() => {
3890
+ if (h.Function(y.action)) {
3891
+ y.action(n, o).then((w) => {
3892
+ v.onSuccess(w, !0);
3882
3893
  }).catch((w) => {
3883
- _.onError(w);
3894
+ v.onError(w);
3884
3895
  });
3885
3896
  return;
3886
3897
  }
3887
- k(() => t.create.fetch(_, { inject: s, rule: n, api: o }));
3898
+ O(() => t.create.fetch(v, { inject: s, rule: n, api: o }));
3888
3899
  });
3889
3900
  }, a.wait || 600));
3890
3901
  }
@@ -3902,13 +3913,13 @@ const gi = function(t) {
3902
3913
  }
3903
3914
  };
3904
3915
  return i;
3905
- }, vi = {
3906
- fetch: $i,
3907
- loadData: gi,
3908
- t: yi,
3909
- componentValidate: Mt
3916
+ }, Ci = {
3917
+ fetch: _i,
3918
+ loadData: vi,
3919
+ t: bi,
3920
+ componentValidate: qt
3910
3921
  };
3911
- function bi(t) {
3922
+ function wi(t) {
3912
3923
  t = t || /* @__PURE__ */ new Map();
3913
3924
  const e = {
3914
3925
  $on(r, i) {
@@ -3932,17 +3943,17 @@ function bi(t) {
3932
3943
  };
3933
3944
  return e;
3934
3945
  }
3935
- const _i = "html", Ci = {
3936
- name: _i,
3946
+ const Fi = "html", Oi = {
3947
+ name: Fi,
3937
3948
  loadChildren: !1,
3938
3949
  render(t, e) {
3939
3950
  return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
3940
3951
  },
3941
3952
  renderChildren(t) {
3942
- return Array.isArray(t) ? t.filter((e) => d.String(e)).join("") : "";
3953
+ return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
3943
3954
  }
3944
3955
  };
3945
- function wi(t) {
3956
+ function ki(t) {
3946
3957
  t = t + "=";
3947
3958
  const r = decodeURIComponent(document.cookie).split(";");
3948
3959
  for (let i = 0; i < r.length; i++) {
@@ -3960,7 +3971,7 @@ function wi(t) {
3960
3971
  }
3961
3972
  return null;
3962
3973
  }
3963
- function Oi(t) {
3974
+ function Ei(t) {
3964
3975
  const e = localStorage.getItem(t);
3965
3976
  if (e)
3966
3977
  try {
@@ -3970,30 +3981,30 @@ function Oi(t) {
3970
3981
  }
3971
3982
  return null;
3972
3983
  }
3973
- function Nt(t, e) {
3984
+ function Ht(t, e) {
3974
3985
  if (!e)
3975
3986
  return null;
3976
3987
  const r = e.split(".");
3977
3988
  let i = t(r.shift());
3978
3989
  return r.length ? i == null ? null : q(i, r) : i;
3979
3990
  }
3980
- function Fi(t) {
3981
- return Nt(wi, t);
3991
+ function Ri(t) {
3992
+ return Ht(ki, t);
3982
3993
  }
3983
- function ki(t) {
3984
- return Nt(Oi, t);
3994
+ function Si(t) {
3995
+ return Ht(Ei, t);
3985
3996
  }
3986
- function Ei(t, e) {
3997
+ function Di(t, e) {
3987
3998
  let r;
3988
3999
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
3989
4000
  }
3990
- function Be() {
3991
- return Ei("name", ...arguments);
4001
+ function Le() {
4002
+ return Di("name", ...arguments);
3992
4003
  }
3993
- function Ri(t) {
3994
- return !t || !t.el ? window.document.body : d.Element(t.el) ? t.el : document.querySelector(t.el);
4004
+ function ji(t) {
4005
+ return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
3995
4006
  }
3996
- function Si(t, e) {
4007
+ function Ai(t, e) {
3997
4008
  const r = new Vue({
3998
4009
  data() {
3999
4010
  return { rule: t, option: e || {} };
@@ -4004,79 +4015,79 @@ function Si(t, e) {
4004
4015
  });
4005
4016
  return r.$mount(), r;
4006
4017
  }
4007
- function Di(t) {
4018
+ function Vi(t) {
4008
4019
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4009
- Ot.push(...e), ze.push(...r), Qe.push(...i), Vt([...e, ...r, ...i]);
4020
+ Et.push(...e), Ze.push(...r), Ye.push(...i), Tt([...e, ...r, ...i]);
4010
4021
  }
4011
- let ji = 1;
4012
- const N = {};
4013
- function Ut(t) {
4022
+ let Ii = 1;
4023
+ const U = {}, Oe = Symbol("defValue");
4024
+ function Gt(t) {
4014
4025
  const e = {
4015
- [Pe.name]: Pe
4026
+ [Be.name]: Be
4016
4027
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4017
4028
  t.extendApi
4018
- ], u = v({}, vi), c = Gr();
4029
+ ], u = b({}, Ci), c = Kr();
4019
4030
  let p = { global: {} };
4020
- const m = re({}), $ = pi(), _ = {}, w = t.isMobile === !0, S = {};
4021
- Di(t.attrs || {});
4031
+ const m = ee({}), y = yi(), v = {}, w = t.isMobile === !0, D = {};
4032
+ Vi(t.attrs || {});
4022
4033
  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();
4034
+ const d = U[f];
4035
+ if (Array.isArray(d))
4036
+ return d.map((g) => g.api());
4037
+ if (d)
4038
+ return d.api();
4028
4039
  }
4029
- function I(f) {
4040
+ function P(f) {
4030
4041
  o.push(f);
4031
4042
  }
4032
- function T() {
4033
- const f = Be(...arguments);
4043
+ function L() {
4044
+ const f = Le(...arguments);
4034
4045
  f.id && f.prop && (i[f.id] = f.prop);
4035
4046
  }
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), {
4047
+ function De() {
4048
+ const f = Le(...arguments);
4049
+ f.id && f.prop && (u[f.id] = h.Function(f.prop) ? f.prop : N(b({}, f.prop), {
4039
4050
  name: f.id
4040
4051
  }));
4041
4052
  }
4042
4053
  function ve(f) {
4043
- $.use(f);
4054
+ y.use(f);
4044
4055
  }
4045
4056
  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);
4057
+ const f = Le(...arguments);
4058
+ if (!f.id || !f.prop) return Ee;
4059
+ const d = G(f.id), g = f.prop, $ = g.merge === !0 ? r[d] : void 0;
4060
+ r[d] = Fe(g, $ || Ee), c[d] = I(d), g.maker && _(c, g.maker);
4050
4061
  }
4051
- function R(f, h) {
4062
+ function S(f, d) {
4052
4063
  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];
4064
+ if (h.String(f)) {
4065
+ if (g = f, d === void 0)
4066
+ return ["form-create", "formcreate"].indexOf(g) > -1 ? T() : e[g];
4056
4067
  } 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);
4068
+ g = G(f.name), d = f;
4069
+ if (!g || !d) return;
4070
+ const $ = G(g);
4071
+ e[g] = d, e[$] = d, delete y.aliasMap[g], delete y.aliasMap[$], delete r[g], delete r[$], d.formCreateParser && F(g, d.formCreateParser);
4061
4072
  }
4062
- function P() {
4063
- return Br(je, e, i);
4073
+ function T() {
4074
+ return Mr(Ve, e, i);
4064
4075
  }
4065
- function ne() {
4066
- return Pe;
4076
+ function re() {
4077
+ return Be;
4067
4078
  }
4068
- function be(f, h) {
4069
- return d.Function(f.install) ? f.install(se, h) : d.Function(f) && f(se, h), this;
4079
+ function be(f, d) {
4080
+ return h.Function(f.install) ? f.install(ie, d) : h.Function(f) && f(ie, d), this;
4070
4081
  }
4071
- function se(f, h, g) {
4072
- let y = Si(f, h || {});
4073
- const C = y.$refs.fc.formCreate;
4074
- return C.$parent = g, Ri(C.options).appendChild(y.$el), C.api();
4082
+ function ie(f, d, g) {
4083
+ let $ = Ai(f, d || {});
4084
+ const C = $.$refs.fc.formCreate;
4085
+ return C.$parent = g, ji(C.options).appendChild($.$el), C.api();
4075
4086
  }
4076
- we(se, S);
4077
- function Ht(f) {
4078
- let h = v({}, t);
4079
- return f ? h.inherit = {
4087
+ Fe(ie, D);
4088
+ function Wt(f) {
4089
+ let d = b({}, t);
4090
+ return f ? d.inherit = {
4080
4091
  components: e,
4081
4092
  parsers: r,
4082
4093
  directives: i,
@@ -4084,68 +4095,68 @@ function Ut(t) {
4084
4095
  providers: u,
4085
4096
  useApps: o,
4086
4097
  maker: c,
4087
- formulas: _,
4098
+ formulas: v,
4088
4099
  loadData: m
4089
- } : delete h.inherit, Ut(h);
4100
+ } : delete d.inherit, Gt(d);
4090
4101
  }
4091
- function Gt(f, h) {
4092
- s[f] = h;
4102
+ function Kt(f, d) {
4103
+ s[f] = d;
4093
4104
  }
4094
- function Jt(f, h) {
4095
- _[f] = h;
4105
+ function Xt(f, d) {
4106
+ v[f] = d;
4096
4107
  }
4097
- function Wt(f, h) {
4098
- 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 });
4108
+ function zt(f, d) {
4109
+ const g = n[f] || {}, $ = g.parsers || {};
4110
+ d.parsers && Object.keys(d.parsers).forEach((C) => {
4111
+ $[C] = Fe(d.parsers[C], Ee);
4112
+ }), d.name = f, n[f] = N(b(b({}, g), d), { parsers: $ });
4102
4113
  }
4103
4114
  function _e(f) {
4104
- f && Object.keys(N).forEach((h) => {
4105
- (Array.isArray(N[h]) ? N[h] : [N[h]]).forEach((y) => {
4106
- y.bus.$emit("$loadData." + f);
4115
+ f && Object.keys(U).forEach((d) => {
4116
+ (Array.isArray(U[d]) ? U[d] : [U[d]]).forEach(($) => {
4117
+ $.bus.$emit("$loadData." + f);
4107
4118
  });
4108
4119
  });
4109
4120
  }
4110
- function Se(f, h) {
4111
- ie(m, f, h), _e(f);
4121
+ function je(f, d) {
4122
+ te(m, f, d), _e(f);
4112
4123
  }
4113
- function De(f, h) {
4114
- const g = (...y) => k(() => h(...y));
4115
- g._driver = !0, Se(f, g);
4124
+ function Ae(f, d) {
4125
+ const g = (...$) => O(() => d(...$));
4126
+ g._driver = !0, je(f, g);
4116
4127
  }
4117
- function tt(f, h) {
4128
+ function it(f, d) {
4118
4129
  const g = (f || "").split(".");
4119
4130
  f = g.shift();
4120
- const y = g.join(".");
4121
- if (E(m, f)) {
4131
+ const $ = g.join(".");
4132
+ if (E(m, f) || k(m, f, Oe), m[f] !== Oe) {
4122
4133
  let C = m[f];
4123
- return C && C._driver ? C = C(y) : g.length && (C = q(C, g)), C == null || C === "" ? h : C;
4134
+ return C && C._driver ? C = C($) : g.length && (C = q(C, g)), C == null || C === "" ? d : C;
4124
4135
  } else
4125
- return h;
4136
+ return d;
4126
4137
  }
4127
- function Kt(f) {
4138
+ function Qt(f) {
4128
4139
  l.push(f);
4129
4140
  }
4130
- function Xt(f) {
4141
+ function Zt(f) {
4131
4142
  delete m[f], _e(f);
4132
4143
  }
4133
- function zt(f, h) {
4134
- a.push({ name: f, callback: h });
4144
+ function Yt(f, d) {
4145
+ a.push({ name: f, callback: d });
4135
4146
  }
4136
- function je(f) {
4137
- b(this, {
4138
- id: ji++,
4139
- create: se,
4147
+ function Ve(f) {
4148
+ _(this, {
4149
+ id: Ii++,
4150
+ create: ie,
4140
4151
  vm: f,
4141
- manager: mi(t.manager),
4152
+ manager: $i(t.manager),
4142
4153
  parsers: r,
4143
4154
  providers: u,
4144
4155
  modelFields: s,
4145
- formulas: _,
4156
+ formulas: v,
4146
4157
  isMobile: w,
4147
4158
  rules: f.$options.propsData.rule,
4148
- name: f.$options.propsData.name || Ee(),
4159
+ name: f.$options.propsData.name || Se(),
4149
4160
  inFor: f.$options.propsData.inFor,
4150
4161
  prop: {
4151
4162
  components: e,
@@ -4153,114 +4164,109 @@ function Ut(t) {
4153
4164
  },
4154
4165
  drivers: n,
4155
4166
  renderDriver: null,
4167
+ get: null,
4156
4168
  refreshData: _e,
4157
4169
  loadData: m,
4158
- CreateNode: $,
4159
- bus: new bi(),
4170
+ CreateNode: y,
4171
+ bus: new wi(),
4160
4172
  unwatch: [],
4161
- options: ur({}),
4173
+ options: hr({}),
4162
4174
  extendApiFn: l,
4163
4175
  fetchCache: /* @__PURE__ */ new WeakMap(),
4164
- tmpData: re({})
4165
- }), a.forEach((h) => {
4166
- this.bus.$on(h.name, h.callback);
4176
+ tmpData: ee({})
4177
+ }), a.forEach((d) => {
4178
+ this.bus.$on(d.name, d.callback);
4167
4179
  }), J(() => {
4168
4180
  B(this.options, () => {
4169
4181
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4170
4182
  }, { 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);
4183
+ }), _(f.$options.components, e), _(f.$options.directives, i), this.$handle = new X(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
4172
4184
  }
4173
- je.isMobile = w, b(je.prototype, {
4185
+ Ve.isMobile = w, _(Ve.prototype, {
4174
4186
  init() {
4175
4187
  this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4176
4188
  this.initOptions(), this.$handle.api.refresh();
4177
4189
  }, { 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
4190
  },
4179
- targetFormDriver(f, ...h) {
4191
+ targetFormDriver(f, ...d) {
4180
4192
  if (this.renderDriver && this.renderDriver[f])
4181
- return k(() => this.renderDriver[f](...h));
4193
+ return O(() => this.renderDriver[f](...d));
4182
4194
  },
4183
- t(f, h, g) {
4184
- 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]);
4188
- }), y);
4195
+ t(f, d, g) {
4196
+ let $ = g ? g("$t." + f) : this.globalLanguageDriver(f);
4197
+ return $ == null && ($ = ""), $ && d && Object.keys(d).forEach((C) => {
4198
+ const R = new RegExp(`{${C}}`, "g");
4199
+ $ = $.replace(R, d[C]);
4200
+ }), $;
4189
4201
  },
4190
4202
  globalDataDriver(f) {
4191
- let h = f.split(".");
4192
- const g = h.shift(), y = this.options.value.globalData && this.options.value.globalData[g];
4193
- if (y) {
4194
- if (y.type === "static")
4195
- return q(y.data, h);
4203
+ let d = f.split(".");
4204
+ const g = d.shift(), $ = this.options.value.globalData && this.options.value.globalData[g];
4205
+ if ($) {
4206
+ if ($.type === "static")
4207
+ return q($.data, d);
4196
4208
  {
4197
4209
  let C;
4198
- const O = this.fetchCache.get(y);
4199
- if (O) {
4200
- if (O.status && (C = q(O.data, h)), !O.loading)
4210
+ const R = this.fetchCache.get($);
4211
+ if (R) {
4212
+ if (R.status && (C = q(R.data, d)), !R.loading)
4201
4213
  return C;
4202
- O.loading = !1, this.fetchCache.set(y, O);
4214
+ R.loading = !1, this.fetchCache.set($, R);
4203
4215
  } else
4204
- 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();
4216
+ this.fetchCache.set($, { status: !1 });
4217
+ const A = le(() => {
4218
+ ce();
4219
+ const M = this.fetchCache.get($);
4220
+ this.options.value.globalData && Object.values(this.options.value.globalData).indexOf($) !== -1 ? (M && (M.loading = !0, this.fetchCache.set($, M)), this.bus.$emit("$loadData.$globalData." + g)) : this.fetchCache.delete($);
4221
+ }, $.wait || 600), pe = (M) => {
4222
+ this.fetchCache.set($, { status: !0, data: M }), this.bus.$emit("$loadData.$globalData." + g);
4223
+ }, me = (M, ne) => {
4224
+ if (ne && $.watch === !1)
4225
+ return ce();
4226
+ if (ne) {
4227
+ A();
4216
4228
  return;
4217
4229
  }
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);
4230
+ const se = this.$handle.loadFetchVar(Ge($), M);
4231
+ this.$handle.api.fetch(se).then((we) => {
4232
+ pe(we);
4233
+ }).catch((we) => {
4234
+ pe(null);
4223
4235
  });
4224
- }, ee = this.watchLoadData(fe);
4225
- return this.unwatch.push(ee), C;
4236
+ }, ce = this.watchLoadData(me);
4237
+ return this.unwatch.push(ce), C;
4226
4238
  }
4227
4239
  }
4228
4240
  },
4229
4241
  getLocale() {
4230
4242
  let f = this.vm.top.$props.locale;
4231
- return f && typeof f == "object" ? f.name : typeof f == "string" ? f : this.vm.$i18n && this.vm.$i18n.locale ? this.vm.$i18n.locale : "zh-cn";
4243
+ return f && typeof f == "object" ? f.name : typeof f == "string" ? f : "zh-cn";
4232
4244
  },
4233
4245
  globalLanguageDriver(f) {
4234
- let h = this.vm.top.$props.locale, g;
4235
- if (h && typeof h == "object" && (g = q(h, f)), g == null) {
4236
- const y = this.options.value.language || {}, C = this.getLocale();
4237
- g = q(y[C], f);
4246
+ let d = this.vm.top.$props.locale, g;
4247
+ if (d && typeof d == "object" && (g = q(d, f)), g == null) {
4248
+ const $ = this.options.value.language || {}, C = this.getLocale();
4249
+ g = q($[C], f);
4238
4250
  }
4239
4251
  return g;
4240
4252
  },
4241
4253
  globalVarDriver(f) {
4242
- const g = f.split(".").shift(), y = this.options.value.globalVariable && this.options.value.globalVariable[g];
4243
- 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
- }
4254
+ let d = f.split(".");
4255
+ const g = d.shift(), $ = this.options.value.globalVariable && this.options.value.globalVariable[g];
4256
+ if ($) {
4257
+ const C = h.Function($) ? $ : K($.handle);
4258
+ if (C)
4259
+ return q(O(() => C(this.get || ((...R) => this.getLoadData(...R)), this.$handle.api)), d);
4254
4260
  }
4255
4261
  },
4256
- setData(f, h, g) {
4257
- g ? Se(f, h) : (ie(this.vm.top.fc.tmpData, f, h), this.bus.$emit("$loadData." + f));
4262
+ setData(f, d, g) {
4263
+ g ? je(f, d) : (te(this.vm.top.fc.tmpData, f, d), this.bus.$emit("$loadData." + f));
4258
4264
  },
4259
- getLoadData(f, h) {
4265
+ getLoadData(f, d) {
4260
4266
  let g = null;
4261
4267
  if (f != null) {
4262
- let y = f.split(".");
4263
- const C = y.shift();
4268
+ let $ = f.split(".");
4269
+ const C = $.shift();
4264
4270
  if (C === "$topForm")
4265
4271
  g = this.$handle.api.top.formData();
4266
4272
  else if (C === "$form")
@@ -4268,69 +4274,69 @@ function Ut(t) {
4268
4274
  else if (C === "$options")
4269
4275
  g = this.options.value;
4270
4276
  else if (C === "$globalData")
4271
- g = this.globalDataDriver(y.join(".")), y = [];
4277
+ g = this.globalDataDriver($.join(".")), $ = [];
4272
4278
  else if (C === "$var")
4273
- g = this.globalVarDriver(y.join(".")), y = [];
4279
+ g = this.globalVarDriver($.join(".")), $ = [];
4274
4280
  else if (C === "$locale")
4275
- g = this.getLocale(), y = [];
4281
+ g = this.getLocale(), $ = [];
4276
4282
  else if (C === "$t")
4277
- g = this.globalLanguageDriver(y.join(".")), y = [];
4283
+ g = this.globalLanguageDriver($.join(".")), $ = [];
4278
4284
  else {
4279
- const O = this.vm.top.fc.tmpData;
4280
- g = E(O, C) ? q(O, f) : tt(f), y = [];
4285
+ const R = this.vm.top.fc.tmpData;
4286
+ E(R, C) || k(R, C, Oe), g = R[C] !== Oe ? q(R, f) : it(f), $ = [];
4281
4287
  }
4282
- g && y.length && (g = q(g, y));
4288
+ g && $.length && (g = q(g, $));
4283
4289
  }
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));
4290
+ return g == null || g === "" ? d : g;
4291
+ },
4292
+ watchLoadData(f, d) {
4293
+ let g = {};
4294
+ const $ = (A) => {
4295
+ this.get || (this.get = C), O(() => {
4296
+ f(C, A);
4297
+ }), this.get === C && (this.get = void 0);
4298
+ }, C = (A, pe) => {
4299
+ if (g[A])
4300
+ return g[A].val;
4301
+ const me = he(() => this.getLoadData(A, pe)), ce = A.split("."), M = ce.shift(), ne = ce.shift() || "", se = le(() => {
4302
+ const Ie = this.getLoadData(A, pe);
4303
+ if (g[A])
4304
+ JSON.stringify(Ie) !== JSON.stringify(g[A].val) && (g[A].val = Ie, $(!0));
4299
4305
  else return;
4300
- }, 0), Ae = B(x, (he) => {
4301
- te();
4306
+ }, d || 0), we = B(me, (Ie) => {
4307
+ se();
4302
4308
  });
4303
- return this.bus.$on("$loadData." + ee, te), L && this.bus.$on("$loadData." + ee + "." + L, te), h[O] = {
4309
+ return this.bus.$on("$loadData." + M, se), ne && this.bus.$on("$loadData." + M + "." + ne, se), g[A] = {
4304
4310
  fn: () => {
4305
- this.bus.$off("$loadData." + ee, te), L && this.bus.$off("$loadData." + ee + "." + L, te), Ae();
4311
+ this.bus.$off("$loadData." + M, se), ne && this.bus.$off("$loadData." + M + "." + ne, se), we();
4306
4312
  },
4307
- val: x.value
4308
- }, x.value;
4313
+ val: me.value
4314
+ }, me.value;
4309
4315
  };
4310
- g(!1);
4311
- const C = () => {
4312
- Object.keys(h).forEach((O) => h[O].fn()), h = {};
4316
+ $(!1);
4317
+ const R = () => {
4318
+ Object.keys(g).forEach((A) => g[A].fn()), g = {};
4313
4319
  };
4314
- return this.unwatch.push(C), C;
4320
+ return this.unwatch.push(R), R;
4315
4321
  },
4316
4322
  isSub() {
4317
4323
  return this.vm.parent && this.vm.extendOption;
4318
4324
  },
4319
4325
  initOptions() {
4320
4326
  this.options.value = {};
4321
- let f = v({
4327
+ let f = b({
4322
4328
  formData: {},
4323
4329
  submitBtn: {},
4324
4330
  resetBtn: {},
4325
4331
  globalEvent: {},
4326
4332
  globalData: {}
4327
- }, G(p));
4333
+ }, W(p));
4328
4334
  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
4335
  },
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;
4336
+ mergeOptions(f, d, g) {
4337
+ return d = b({}, d || {}), g && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach(($) => {
4338
+ delete d[$];
4339
+ }), d.global && (f.global = Hr(f.global, d.global), delete d.global), this.$handle.$manager.mergeOptions([d], f), f;
4334
4340
  },
4335
4341
  updateOptions(f) {
4336
4342
  this.options.value = this.mergeOptions(this.options.value, f), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4347,10 +4353,10 @@ function Ut(t) {
4347
4353
  unmount() {
4348
4354
  if (this.name)
4349
4355
  if (this.inFor) {
4350
- const f = N[this.name].indexOf(this);
4351
- N[this.name].splice(f, 1);
4356
+ const f = U[this.name].indexOf(this);
4357
+ U[this.name].splice(f, 1);
4352
4358
  } else
4353
- delete N[this.name];
4359
+ delete U[this.name];
4354
4360
  a.forEach((f) => {
4355
4361
  this.bus.$off(f.name, f.callback);
4356
4362
  }), this.tmpData = {}, this.unwatch.forEach((f) => f()), this.unwatch = [], this.$handle.reloadRule([]);
@@ -4359,76 +4365,76 @@ function Ut(t) {
4359
4365
  this.$handle.bindNextTick(() => this.bus.$emit("next-tick", this.$handle.api));
4360
4366
  }
4361
4367
  });
4362
- function rt(f) {
4363
- b(f, {
4368
+ function nt(f) {
4369
+ _(f, {
4364
4370
  version: t.version,
4365
4371
  ui: t.ui,
4366
4372
  isMobile: w,
4367
- extendApi: Kt,
4368
- getData: tt,
4369
- setDataDriver: De,
4370
- setData: Se,
4371
- removeData: Xt,
4373
+ extendApi: Qt,
4374
+ getData: it,
4375
+ setDataDriver: Ae,
4376
+ setData: je,
4377
+ removeData: Zt,
4372
4378
  refreshData: _e,
4373
4379
  maker: c,
4374
- component: R,
4375
- directive: T,
4376
- setModelField: Gt,
4377
- setFormula: Jt,
4378
- setDriver: Wt,
4379
- register: Re,
4380
- $vnode: ne,
4380
+ component: S,
4381
+ directive: L,
4382
+ setModelField: Kt,
4383
+ setFormula: Xt,
4384
+ setDriver: zt,
4385
+ register: De,
4386
+ $vnode: re,
4381
4387
  parser: F,
4382
4388
  use: be,
4383
- factory: Ht,
4389
+ factory: Wt,
4384
4390
  componentAlias: ve,
4385
- copyRule: St,
4386
- copyRules: Dt,
4387
- mergeRule: Q,
4388
- fetch: Pt,
4389
- $form: P,
4390
- parseFn: Z,
4391
- parseJson: Rt,
4392
- toJson: Ye,
4393
- useApp: I,
4391
+ copyRule: At,
4392
+ copyRules: Vt,
4393
+ mergeRule: Z,
4394
+ fetch: Lt,
4395
+ $form: T,
4396
+ parseFn: K,
4397
+ parseJson: jt,
4398
+ toJson: et,
4399
+ useApp: P,
4394
4400
  getApi: Y,
4395
- on: zt
4401
+ on: Yt
4396
4402
  });
4397
4403
  }
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);
4404
+ function xt(f) {
4405
+ _(f, {
4406
+ create: ie,
4407
+ install(d, g) {
4408
+ if (p = b(b({}, p), g || {}), d._installedFormCreate === !0) return;
4409
+ d._installedFormCreate = !0;
4410
+ const $ = function(R, A = {}) {
4411
+ return ie(R, A, this);
4406
4412
  };
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));
4413
+ nt($), d.prototype.$formCreate = $;
4414
+ const C = T();
4415
+ d.component(C.name, C), d.component("FcFragment", re()), o.forEach((R) => {
4416
+ O(() => R(f, d));
4411
4417
  });
4412
4418
  }
4413
4419
  });
4414
4420
  }
4415
- if (rt(S), Qt(S), De("$cookie", Fi), De("$localStorage", ki), $.use({ fragment: "fcFragment" }), t.install && se.use(t), F(Ci), t.inherit) {
4421
+ if (nt(D), xt(D), Ae("$cookie", Ri), Ae("$localStorage", Si), y.use({ fragment: "fcFragment" }), t.install && ie.use(t), F(Oi), t.inherit) {
4416
4422
  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);
4423
+ 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
4424
  }
4419
- const Ce = P();
4420
- return we(Ce, S), Object.defineProperties(Ce, {
4425
+ const Ce = T();
4426
+ return Fe(Ce, D), Object.defineProperties(Ce, {
4421
4427
  fetch: {
4422
4428
  get() {
4423
- return S.fetch;
4429
+ return D.fetch;
4424
4430
  },
4425
4431
  set(f) {
4426
- S.fetch = f;
4432
+ D.fetch = f;
4427
4433
  }
4428
4434
  }
4429
- }), Ce.util = S, Ce;
4435
+ }), Ce.util = D, Ce;
4430
4436
  }
4431
- const gt = {
4437
+ const vt = {
4432
4438
  date: "yyyy-MM-dd",
4433
4439
  month: "yyyy-MM",
4434
4440
  datetime: "yyyy-MM-dd HH:mm:ss",
@@ -4437,106 +4443,106 @@ const gt = {
4437
4443
  monthrange: "yyyy-MM",
4438
4444
  datetimerange: "yyyy-MM-dd HH:mm:ss",
4439
4445
  year: "yyyy"
4440
- }, yt = "datePicker", Ai = {
4441
- name: yt,
4446
+ }, bt = "datePicker", Pi = {
4447
+ name: bt,
4442
4448
  maker: function() {
4443
- return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = V(yt, { type: e.toLowerCase() }), t), {});
4449
+ return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = I(bt, { type: e.toLowerCase() }), t), {});
4444
4450
  }(),
4445
4451
  mergeProp(t) {
4446
4452
  const e = t.prop.props;
4447
- e.valueFormat || (e.valueFormat = gt[e.type] || gt.date);
4453
+ e.valueFormat || (e.valueFormat = vt[e.type] || vt.date);
4448
4454
  }
4449
- }, Te = "hidden", Vi = {
4450
- name: Te,
4455
+ }, Me = "hidden", Ti = {
4456
+ name: Me,
4451
4457
  maker: {
4452
- [Te]: (t, e) => V(Te)("", t, e)
4458
+ [Me]: (t, e) => I(Me)("", t, e)
4453
4459
  },
4454
4460
  render() {
4455
4461
  return [];
4456
4462
  }
4457
- }, Le = "input", Ii = {
4458
- name: Le,
4463
+ }, Ne = "input", Bi = {
4464
+ name: Ne,
4459
4465
  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;
4466
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = I(Ne, { type: r }), e), {});
4467
+ return t.idate = I(Ne, { type: "date" }), t;
4462
4468
  }(),
4463
4469
  mergeProp(t) {
4464
4470
  let { props: e } = t.prop;
4465
4471
  e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4466
4472
  }
4467
- }, $t = "slider", Pi = {
4468
- name: $t,
4473
+ }, _t = "slider", Li = {
4474
+ name: _t,
4469
4475
  maker: {
4470
- sliderRange: V($t, { range: !0 })
4476
+ sliderRange: I(_t, { range: !0 })
4471
4477
  },
4472
4478
  toFormValue(t, e) {
4473
4479
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4474
4480
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4475
4481
  }
4476
- }, Me = "timePicker", Bi = {
4477
- name: Me,
4482
+ }, Ue = "timePicker", Mi = {
4483
+ name: Ue,
4478
4484
  maker: {
4479
- time: V(Me, (t) => t.props.isRange = !1),
4480
- timeRange: V(Me, (t) => t.props.isRange = !0)
4485
+ time: I(Ue, (t) => t.props.isRange = !1),
4486
+ timeRange: I(Ue, (t) => t.props.isRange = !0)
4481
4487
  },
4482
4488
  mergeProp(t) {
4483
4489
  const e = t.prop.props;
4484
4490
  e.valueFormat || (e.valueFormat = "HH:mm:ss");
4485
4491
  }
4486
- }, Ti = {
4492
+ }, Ni = {
4487
4493
  name: "FcRow",
4488
4494
  render(t, e) {
4489
4495
  return e.vNode.col({ props: { span: 24 } }, [
4490
4496
  e.vNode.row(e.prop, t)
4491
4497
  ]);
4492
4498
  }
4493
- }, Li = "select", Mi = {
4494
- name: Li,
4499
+ }, Ui = "select", qi = {
4500
+ name: Ui,
4495
4501
  toFormValue(t, e) {
4496
- return e.prop.props.multiple && !Array.isArray(t) ? U(t) : t;
4502
+ return e.prop.props.multiple && !Array.isArray(t) ? H(t) : t;
4497
4503
  }
4498
- }, Ni = [
4499
- Ai,
4500
- Vi,
4501
- Ii,
4504
+ }, Hi = [
4502
4505
  Pi,
4503
- Bi,
4504
4506
  Ti,
4505
- Mi
4506
- ], D = "el", Ui = {
4507
- button: D + "Button",
4507
+ Bi,
4508
+ Li,
4509
+ Mi,
4510
+ Ni,
4511
+ qi
4512
+ ], j = "el", Gi = {
4513
+ button: j + "Button",
4508
4514
  icon: "i",
4509
- slider: D + "Slider",
4510
- rate: D + "Rate",
4515
+ slider: j + "Slider",
4516
+ rate: j + "Rate",
4511
4517
  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",
4518
+ cascader: j + "Cascader",
4519
+ popover: j + "Popover",
4520
+ tooltip: j + "Tooltip",
4521
+ colorPicker: j + "ColorPicker",
4522
+ timePicker: j + "TimePicker",
4523
+ timeSelect: j + "TimeSelect",
4524
+ datePicker: j + "DatePicker",
4525
+ switch: j + "Switch",
4520
4526
  select: "fcSelect",
4521
4527
  checkbox: "fcCheckbox",
4522
4528
  radio: "fcRadio",
4523
- inputNumber: D + "InputNumber",
4524
- number: D + "InputNumber",
4525
- input: D + "Input",
4526
- formItem: D + "FormItem",
4527
- form: D + "Form",
4529
+ inputNumber: j + "InputNumber",
4530
+ number: j + "InputNumber",
4531
+ input: j + "Input",
4532
+ formItem: j + "FormItem",
4533
+ form: j + "Form",
4528
4534
  frame: "fcFrame",
4529
- col: D + "Col",
4530
- row: D + "Row",
4535
+ col: j + "Col",
4536
+ row: j + "Row",
4531
4537
  tree: "fcTree",
4532
- autoComplete: D + "Autocomplete",
4533
- auto: D + "Autocomplete",
4538
+ autoComplete: j + "Autocomplete",
4539
+ auto: j + "Autocomplete",
4534
4540
  group: "fcGroup",
4535
4541
  array: "fcGroup",
4536
4542
  object: "fcSubForm",
4537
4543
  subForm: "fcSubForm"
4538
4544
  };
4539
- function qi() {
4545
+ function Ji() {
4540
4546
  return {
4541
4547
  form: {
4542
4548
  inline: !1,
@@ -4570,23 +4576,23 @@ function qi() {
4570
4576
  }
4571
4577
  };
4572
4578
  }
4573
- function Hi(t) {
4579
+ function Wi(t) {
4574
4580
  return t.type === "tooltip";
4575
4581
  }
4576
- function vt(t, e) {
4577
- E(t, e) && d.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4582
+ function Ct(t, e) {
4583
+ E(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4578
4584
  }
4579
- function X(t) {
4585
+ function z(t) {
4580
4586
  return t === !1;
4581
4587
  }
4582
- function Gi(t, e) {
4583
- E(t, e) && !d.Object(t[e]) && (t[e] = { show: !!t[e] });
4588
+ function Ki(t, e) {
4589
+ E(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4584
4590
  }
4585
- function Ne(t) {
4586
- const e = v({}, t);
4591
+ function qe(t) {
4592
+ const e = b({}, t);
4587
4593
  return delete e.children, e;
4588
4594
  }
4589
- const Ji = {
4595
+ const Xi = {
4590
4596
  validate() {
4591
4597
  const t = this.form();
4592
4598
  return t ? t.validate() : new Promise((e) => e());
@@ -4605,11 +4611,11 @@ const Ji = {
4605
4611
  },
4606
4612
  tidyOptions(t) {
4607
4613
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4608
- Gi(t, e);
4614
+ Ki(t, e);
4609
4615
  }), t;
4610
4616
  },
4611
4617
  tidyRule({ prop: t }) {
4612
- return vt(t, "title"), vt(t, "info"), t;
4618
+ return Ct(t, "title"), Ct(t, "info"), t;
4613
4619
  },
4614
4620
  mergeProp(t) {
4615
4621
  const e = {
@@ -4623,16 +4629,16 @@ const Ji = {
4623
4629
  wrap: {}
4624
4630
  };
4625
4631
  ["info", "wrap", "col", "title"].forEach((r) => {
4626
- t.prop[r] = z([this.options[r] || {}, t.prop[r] || {}], e[r]);
4632
+ t.prop[r] = Q([this.options[r] || {}, t.prop[r] || {}], e[r]);
4627
4633
  });
4628
4634
  },
4629
4635
  getDefaultOptions() {
4630
- return qi();
4636
+ return Ji();
4631
4637
  },
4632
4638
  update() {
4633
4639
  const t = this.options.form;
4634
4640
  this.rule = {
4635
- props: v({}, t),
4641
+ props: b({}, t),
4636
4642
  nativeOn: {
4637
4643
  submit: (e) => {
4638
4644
  e.preventDefault();
@@ -4645,21 +4651,21 @@ const Ji = {
4645
4651
  },
4646
4652
  beforeRender() {
4647
4653
  const { key: t, ref: e, $handle: r } = this;
4648
- b(this.rule, { key: t, ref: e }), b(this.rule.props, {
4654
+ _(this.rule, { key: t, ref: e }), _(this.rule.props, {
4649
4655
  model: r.formData
4650
4656
  });
4651
4657
  },
4652
4658
  render(t) {
4653
- return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, X(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
4659
+ return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, z(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
4654
4660
  },
4655
4661
  makeWrap(t, e) {
4656
4662
  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
4663
  delete r.wrap.title;
4658
- const u = X(r.wrap.show) ? e : this.$r(z([r.wrap, {
4659
- props: M(v({
4660
- labelWidth: o === void 0 ? o : Et(o),
4664
+ const u = z(r.wrap.show) ? e : this.$r(Q([r.wrap, {
4665
+ props: N(b({
4666
+ labelWidth: o === void 0 ? o : Dt(o),
4661
4667
  label: n ? r.title.title : void 0
4662
- }, Ne(r.wrap || {})), {
4668
+ }, qe(r.wrap || {})), {
4663
4669
  prop: t.id,
4664
4670
  rules: t.injectValidate()
4665
4671
  }),
@@ -4667,30 +4673,30 @@ const Ji = {
4667
4673
  key: `${i}fi`,
4668
4674
  ref: t.wrapRef,
4669
4675
  type: "formItem"
4670
- }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
4671
- return a === !0 || X(l) || X(s.show) ? u : this.makeCol(r, i, [u]);
4676
+ }]), b({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
4677
+ return a === !0 || z(l) || z(s.show) ? u : this.makeCol(r, i, [u]);
4672
4678
  },
4673
4679
  isTitle(t) {
4674
4680
  if (this.options.form.title === !1) return !1;
4675
4681
  const e = t.title;
4676
- return !(!e.title && !e.native || X(e.show));
4682
+ return !(!e.title && !e.native || z(e.show));
4677
4683
  },
4678
4684
  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({
4685
+ const i = b({}, t.title), s = b({}, t.info), n = Wi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
4680
4686
  title: r.refRule.__$title.value,
4681
4687
  rule: r.rule,
4682
4688
  options: this.options
4683
4689
  }) : r.refRule.__$title.value + (o.labelSuffix || o["label-suffix"] || "")];
4684
- if (!X(s.show) && (s.info || s.native) && !X(s.icon)) {
4690
+ if (!z(s.show) && (s.info || s.native) && !z(s.icon)) {
4685
4691
  const c = {
4686
4692
  type: s.type || "popover",
4687
4693
  slot: "label",
4688
- props: Ne(s),
4694
+ props: qe(s),
4689
4695
  key: `${e}pop`
4690
4696
  };
4691
4697
  delete c.props.icon, delete c.props.show, delete c.props.info, delete c.props.align, delete c.props.native;
4692
4698
  const p = "content";
4693
- s.info && !E(c.props, p) && (c.props[p] = r.refRule.__$info.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(z([s, c]), [
4699
+ s.info && !E(c.props, p) && (c.props[p] = r.refRule.__$info.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(Q([s, c]), [
4694
4700
  this.$r({
4695
4701
  type: "i",
4696
4702
  slot: n ? "default" : "reference",
@@ -4699,8 +4705,8 @@ const Ji = {
4699
4705
  })
4700
4706
  ]));
4701
4707
  }
4702
- const u = z([i, {
4703
- props: Ne(i),
4708
+ const u = Q([i, {
4709
+ props: qe(i),
4704
4710
  key: `${e}tit`,
4705
4711
  class: "fc-form-title",
4706
4712
  slot: i.slot || "label",
@@ -4728,7 +4734,7 @@ const Ji = {
4728
4734
  },
4729
4735
  makeFormBtn() {
4730
4736
  let t = [];
4731
- if (X(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), X(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
4737
+ if (z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
4732
4738
  return;
4733
4739
  const e = this.$r({
4734
4740
  type: "formItem",
@@ -4743,7 +4749,7 @@ const Ji = {
4743
4749
  }, [e]);
4744
4750
  },
4745
4751
  makeResetBtn() {
4746
- const t = v({}, this.options.resetBtn), e = t.innerText;
4752
+ const t = b({}, this.options.resetBtn), e = t.innerText;
4747
4753
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
4748
4754
  type: "button",
4749
4755
  props: t,
@@ -4759,7 +4765,7 @@ const Ji = {
4759
4765
  }, [e]);
4760
4766
  },
4761
4767
  makeSubmitBtn() {
4762
- const t = v({}, this.options.submitBtn), e = t.innerText;
4768
+ const t = b({}, this.options.submitBtn), e = t.innerText;
4763
4769
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
4764
4770
  type: "button",
4765
4771
  props: t,
@@ -4775,35 +4781,35 @@ const Ji = {
4775
4781
  key: `${this.key}b1`
4776
4782
  }, [e]);
4777
4783
  }
4778
- }, ce = {};
4779
- Wi(ce);
4780
- Ki(ce);
4781
- Xi(ce);
4782
- zi(ce);
4783
- Qi(ce);
4784
- function Wi(t) {
4784
+ }, ue = {};
4785
+ zi(ue);
4786
+ Qi(ue);
4787
+ Zi(ue);
4788
+ Yi(ue);
4789
+ xi(ue);
4790
+ function zi(t) {
4785
4791
  ["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "radio", "rate"].forEach((e) => {
4786
- t[e] = V(e);
4792
+ t[e] = I(e);
4787
4793
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
4788
4794
  }
4789
- function Ki(t) {
4795
+ function Qi(t) {
4790
4796
  const e = "select", r = "multiple";
4791
- t.selectMultiple = V(e, { [r]: !0 }), t.selectOne = V(e, { [r]: !1 });
4797
+ t.selectMultiple = I(e, { [r]: !0 }), t.selectOne = I(e, { [r]: !1 });
4792
4798
  }
4793
- function Xi(t) {
4799
+ function Zi(t) {
4794
4800
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
4795
- Object.keys(r).reduce((i, s) => (i[s] = V(e, { type: r[s] }), i), t);
4801
+ Object.keys(r).reduce((i, s) => (i[s] = I(e, { type: r[s] }), i), t);
4796
4802
  }
4797
- function zi(t) {
4803
+ function Yi(t) {
4798
4804
  const e = "upload", r = {
4799
4805
  image: ["image", 0],
4800
4806
  file: ["file", 0],
4801
4807
  uploadFileOne: ["file", 1],
4802
4808
  uploadImageOne: ["image", 1]
4803
4809
  };
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;
4810
+ 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
4811
  }
4806
- function Qi(t) {
4812
+ function xi(t) {
4807
4813
  const e = {
4808
4814
  frameInputs: ["input", 0],
4809
4815
  frameFiles: ["file", 0],
@@ -4812,12 +4818,12 @@ function Qi(t) {
4812
4818
  frameFileOne: ["file", 1],
4813
4819
  frameImageOne: ["image", 1]
4814
4820
  };
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;
4821
+ 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
4822
  }
4817
- function bt(t, e) {
4818
- return d.Boolean(t) ? t = { show: t } : !d.Undef(t) && !d.Object(t) && (t = { show: e }), t;
4823
+ function wt(t, e) {
4824
+ return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
4819
4825
  }
4820
- function Zi(t, e) {
4826
+ function en(t, e) {
4821
4827
  return {
4822
4828
  formEl() {
4823
4829
  return e.$manager.form();
@@ -4844,7 +4850,7 @@ function Zi(t, e) {
4844
4850
  const o = e.getFieldCtx(r);
4845
4851
  if (!o) return;
4846
4852
  const a = e.subForm[o.id], l = [e.$manager.validateField(o.id)];
4847
- U(a).forEach((u) => {
4853
+ H(a).forEach((u) => {
4848
4854
  l.push(u.validate());
4849
4855
  }), Promise.all(l).then(() => {
4850
4856
  s(null), i && i(null);
@@ -4893,36 +4899,36 @@ function Zi(t, e) {
4893
4899
  }
4894
4900
  },
4895
4901
  submitBtnProps: (r = {}) => {
4896
- let i = bt(e.options.submitBtn, !0);
4897
- b(i, r), e.options.submitBtn = i, t.refreshOptions();
4902
+ let i = wt(e.options.submitBtn, !0);
4903
+ _(i, r), e.options.submitBtn = i, t.refreshOptions();
4898
4904
  },
4899
4905
  resetBtnProps: (r = {}) => {
4900
- let i = bt(e.options.resetBtn, !1);
4901
- b(i, r), e.options.resetBtn = i, t.refreshOptions();
4906
+ let i = wt(e.options.resetBtn, !1);
4907
+ _(i, r), e.options.resetBtn = i, t.refreshOptions();
4902
4908
  },
4903
4909
  submit(r, i) {
4904
4910
  return new Promise((s, n) => {
4905
4911
  t.validate().then(() => {
4906
4912
  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);
4913
+ h.Function(r) && O(() => r(o, t)), h.Function(e.options.onSubmit) && O(() => e.options.onSubmit(o, t)), e.vm.$emit("submit", o, t), s(o);
4908
4914
  }).catch((...o) => {
4909
- d.Function(i) && k(() => i(t, ...o)), n(...o);
4915
+ h.Function(i) && O(() => i(t, ...o)), n(...o);
4910
4916
  });
4911
4917
  });
4912
4918
  }
4913
4919
  };
4914
4920
  }
4915
- const qt = {
4921
+ const Jt = {
4916
4922
  name: "required",
4917
4923
  load(t, e, r) {
4918
- const i = Yi(t.getValue());
4924
+ const i = tn(t.getValue());
4919
4925
  if (i.required === !1)
4920
4926
  t.clearProp(), r.clearValidateState([e.field]);
4921
4927
  else {
4922
- const s = v({
4928
+ const s = b({
4923
4929
  required: !0,
4924
4930
  validator(n, o, a) {
4925
- d.empty(o) ? a(s.message) : a();
4931
+ h.empty(o) ? a(s.message) : a();
4926
4932
  }
4927
4933
  }, i);
4928
4934
  if (!s.message)
@@ -4936,28 +4942,28 @@ const qt = {
4936
4942
  r.sync(e);
4937
4943
  },
4938
4944
  watch(...t) {
4939
- qt.load(...t);
4945
+ Jt.load(...t);
4940
4946
  }
4941
4947
  };
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 : {};
4948
+ function tn(t) {
4949
+ 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
4950
  }
4945
- function xi(t) {
4946
- t.componentAlias(Ui), Pr.forEach((e) => {
4951
+ function rn(t) {
4952
+ t.componentAlias(Gi), Lr.forEach((e) => {
4947
4953
  t.component(e.name, e);
4948
- }), t.register(qt), Ni.forEach((e) => {
4954
+ }), t.register(Jt), Hi.forEach((e) => {
4949
4955
  t.parser(e);
4950
- }), Object.keys(ce).forEach((e) => {
4951
- t.maker[e] = ce[e];
4956
+ }), Object.keys(ue).forEach((e) => {
4957
+ t.maker[e] = ue[e];
4952
4958
  });
4953
4959
  }
4954
- function en() {
4955
- return Ut({
4960
+ function nn() {
4961
+ return Gt({
4956
4962
  ui: "element-ui",
4957
- version: "2.7.0-alpha.0",
4958
- manager: Ji,
4959
- extendApi: Zi,
4960
- install: xi,
4963
+ version: "2.7.1",
4964
+ manager: Xi,
4965
+ extendApi: en,
4966
+ install: rn,
4961
4967
  attrs: {
4962
4968
  normal: ["col", "wrap"],
4963
4969
  array: ["className"],
@@ -4965,10 +4971,10 @@ function en() {
4965
4971
  }
4966
4972
  });
4967
4973
  }
4968
- const Ke = en();
4969
- typeof window != "undefined" && (window.formCreate = Ke, window.Vue && Ke.install(window.Vue));
4970
- const nn = Ke.maker;
4974
+ const ze = nn();
4975
+ typeof window != "undefined" && (window.formCreate = ze, window.Vue && ze.install(window.Vue));
4976
+ const an = ze.maker;
4971
4977
  export {
4972
- Ke as default,
4973
- nn as maker
4978
+ ze as default,
4979
+ an as maker
4974
4980
  };