@form-create/element-ui 2.6.0-alpha.0 → 2.6.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,6 +1,6 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/element-ui v2.6.0
3
+ * @form-create/element-ui v2.6.1
4
4
  * (c) 2018-2024 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -11,28 +11,28 @@ var gt = Object.defineProperty, $t = Object.defineProperties;
11
11
  var vt = Object.getOwnPropertyDescriptors;
12
12
  var Fe = Object.getOwnPropertySymbols;
13
13
  var bt = Object.prototype.hasOwnProperty, Ct = Object.prototype.propertyIsEnumerable;
14
- var Se = (t, e, r) => e in t ? gt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, y = (t, e) => {
14
+ var Ee = (t, e, r) => e in t ? gt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, y = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
- bt.call(e, r) && Se(t, r, e[r]);
16
+ bt.call(e, r) && Ee(t, r, e[r]);
17
17
  if (Fe)
18
18
  for (var r of Fe(e))
19
- Ct.call(e, r) && Se(t, r, e[r]);
19
+ Ct.call(e, r) && Ee(t, r, e[r]);
20
20
  return t;
21
- }, q = (t, e) => $t(t, vt(e));
22
- import Y, { h as p } from "vue";
21
+ }, M = (t, e) => $t(t, vt(e));
22
+ import T from "vue";
23
23
  function _t(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
- function le() {
27
- return le = Object.assign ? Object.assign.bind() : function(t) {
26
+ function ae() {
27
+ return ae = 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
- }, le.apply(this, arguments);
30
+ }, ae.apply(this, arguments);
31
31
  }
32
32
  var kt = ["attrs", "props", "domProps"], Ot = ["class", "style", "directives"], wt = ["on", "nativeOn"], Ft = 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 (kt.indexOf(i) !== -1) e[i] = le({}, e[i], r[i]);
35
+ else if (kt.indexOf(i) !== -1) e[i] = ae({}, e[i], r[i]);
36
36
  else if (Ot.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);
@@ -41,21 +41,21 @@ var kt = ["attrs", "props", "domProps"], Ot = ["class", "style", "directives"],
41
41
  var a = e[i][o] instanceof Array ? e[i][o] : [e[i][o]], u = r[i][o] instanceof Array ? r[i][o] : [r[i][o]];
42
42
  e[i][o] = [].concat(a, u);
43
43
  } else e[i][o] = r[i][o];
44
- else if (i === "hook") for (var l in r[i]) e[i][l] = e[i][l] ? St(e[i][l], r[i][l]) : r[i][l];
44
+ else if (i === "hook") for (var l in r[i]) e[i][l] = e[i][l] ? Et(e[i][l], r[i][l]) : r[i][l];
45
45
  else e[i] = r[i];
46
46
  return e;
47
47
  }, {});
48
- }, St = function(t, e) {
48
+ }, Et = function(t, e) {
49
49
  return function() {
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
- }, Rt = Ft;
53
- const S = /* @__PURE__ */ _t(Rt);
52
+ }, St = Ft;
53
+ const F = /* @__PURE__ */ _t(St);
54
54
  function ee(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => ((!e || e.indexOf(i) === -1) && r.push(t[i]), r), []);
56
56
  }
57
- const Et = "fcCheckbox", jt = {
58
- name: Et,
57
+ const Rt = "fcCheckbox", jt = {
58
+ name: Rt,
59
59
  props: {
60
60
  formCreateInject: {
61
61
  type: Object,
@@ -100,7 +100,8 @@ const Et = "fcCheckbox", jt = {
100
100
  this.update();
101
101
  },
102
102
  render() {
103
- return p("ElCheckboxGroup", S([{}, this.formCreateInject.prop, {}, {
103
+ const t = arguments[0];
104
+ return t("ElCheckboxGroup", F([{}, this.formCreateInject.prop, {}, {
104
105
  props: {
105
106
  value: this.trueValue
106
107
  }
@@ -109,12 +110,12 @@ const Et = "fcCheckbox", jt = {
109
110
  on: {
110
111
  input: this.onInput
111
112
  }
112
- }]), [this.options().map((t, e) => {
113
- const r = y({}, t), i = this.type === "button" ? "ElCheckboxButton" : "ElCheckbox";
114
- return delete r.value, p(i, S([{}, {
115
- props: r
113
+ }]), [this.options().map((e, r) => {
114
+ const i = y({}, e), s = this.type === "button" ? "ElCheckboxButton" : "ElCheckbox";
115
+ return delete i.value, t(s, F([{}, {
116
+ props: i
116
117
  }, {
117
- key: i + e + "-" + t.value
118
+ key: s + r + "-" + e.value
118
119
  }]));
119
120
  }), ee(this.$slots)]);
120
121
  },
@@ -122,7 +123,7 @@ const Et = "fcCheckbox", jt = {
122
123
  this.$emit("fc.el", this.$refs.el);
123
124
  }
124
125
  };
125
- function I(t) {
126
+ function j(t) {
126
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
127
128
  }
128
129
  const It = "fcFrame", At = {
@@ -247,7 +248,7 @@ const It = "fcFrame", At = {
247
248
  },
248
249
  data() {
249
250
  return {
250
- fileList: I(this.value),
251
+ fileList: j(this.value),
251
252
  previewVisible: !1,
252
253
  frameVisible: !1,
253
254
  previewImage: ""
@@ -255,7 +256,7 @@ const It = "fcFrame", At = {
255
256
  },
256
257
  watch: {
257
258
  value(t) {
258
- this.fileList = I(t);
259
+ this.fileList = j(t);
259
260
  },
260
261
  fileList(t) {
261
262
  const e = this.maxLength === 1 ? t[0] || "" : t;
@@ -279,22 +280,22 @@ const It = "fcFrame", At = {
279
280
  this.disabled || this.onOpen() === !1 || (this.frameVisible = !0);
280
281
  },
281
282
  makeInput() {
282
- const t = {
283
+ const t = this.$createElement, e = {
283
284
  type: "text",
284
- value: this.fileList.map((e) => this.getSrc(e)).toString(),
285
+ value: this.fileList.map((r) => this.getSrc(r)).toString(),
285
286
  readonly: !0
286
287
  };
287
- return p("ElInput", S([{}, {
288
- props: t
288
+ return t("ElInput", F([{}, {
289
+ props: e
289
290
  }, {
290
291
  key: this.key("input")
291
- }]), [this.fileList.length ? p("i", {
292
+ }]), [this.fileList.length ? t("i", {
292
293
  slot: "suffix",
293
294
  class: "el-input__icon el-icon-circle-close",
294
295
  on: {
295
296
  click: () => this.fileList = []
296
297
  }
297
- }) : null, p("ElButton", S([{
298
+ }) : null, t("ElButton", F([{
298
299
  attrs: {
299
300
  icon: this.icon
300
301
  }
@@ -307,12 +308,14 @@ const It = "fcFrame", At = {
307
308
  }]))]);
308
309
  },
309
310
  makeGroup(t) {
310
- return (!this.maxLength || this.fileList.length < this.maxLength) && t.push(this.makeBtn()), p("div", {
311
+ const e = this.$createElement;
312
+ return (!this.maxLength || this.fileList.length < this.maxLength) && t.push(this.makeBtn()), e("div", {
311
313
  key: this.key("group")
312
314
  }, [...t]);
313
315
  },
314
316
  makeItem(t, e) {
315
- return p("div", {
317
+ const r = this.$createElement;
318
+ return r("div", {
316
319
  class: "fc-files",
317
320
  key: this.key("file" + t)
318
321
  }, [...e]);
@@ -323,16 +326,18 @@ const It = "fcFrame", At = {
323
326
  throw new Error("[frame]无效的字段值");
324
327
  },
325
328
  makeIcons(t, e) {
329
+ const r = this.$createElement;
326
330
  if (this.handleIcon !== !1 || this.allowRemove === !0) {
327
- const r = [];
328
- return (this.type !== "file" && this.handleIcon !== !1 || this.type === "file" && this.handleIcon) && r.push(this.makeHandleIcon(t, e)), this.allowRemove && r.push(this.makeRemoveIcon(t, e)), p("div", {
331
+ const i = [];
332
+ return (this.type !== "file" && this.handleIcon !== !1 || this.type === "file" && this.handleIcon) && i.push(this.makeHandleIcon(t, e)), this.allowRemove && i.push(this.makeRemoveIcon(t, e)), r("div", {
329
333
  class: "fc-upload-cover",
330
334
  key: this.key("uc")
331
- }, [r]);
335
+ }, [i]);
332
336
  }
333
337
  },
334
338
  makeHandleIcon(t, e) {
335
- return p("i", {
339
+ const r = this.$createElement;
340
+ return r("i", {
336
341
  class: this.handleIcon === !0 || this.handleIcon === void 0 ? "el-icon-view" : this.handleIcon,
337
342
  on: {
338
343
  click: () => this.handleClick(t)
@@ -341,7 +346,8 @@ const It = "fcFrame", At = {
341
346
  });
342
347
  },
343
348
  makeRemoveIcon(t, e) {
344
- return p("i", {
349
+ const r = this.$createElement;
350
+ return r("i", {
345
351
  class: "el-icon-delete",
346
352
  on: {
347
353
  click: () => this.handleRemove(t)
@@ -350,28 +356,31 @@ const It = "fcFrame", At = {
350
356
  });
351
357
  },
352
358
  makeFiles() {
353
- return this.makeGroup(this.fileList.map((t, e) => this.makeItem(e, [p("i", {
359
+ const t = this.$createElement;
360
+ return this.makeGroup(this.fileList.map((e, r) => this.makeItem(r, [t("i", {
354
361
  class: "el-icon-tickets",
355
362
  on: {
356
- click: () => this.handleClick(t)
363
+ click: () => this.handleClick(e)
357
364
  }
358
- }), this.makeIcons(t, e)])));
365
+ }), this.makeIcons(e, r)])));
359
366
  },
360
367
  makeImages() {
361
- return this.makeGroup(this.fileList.map((t, e) => this.makeItem(e, [p("img", {
368
+ const t = this.$createElement;
369
+ return this.makeGroup(this.fileList.map((e, r) => this.makeItem(r, [t("img", {
362
370
  attrs: {
363
- src: this.getSrc(t)
371
+ src: this.getSrc(e)
364
372
  }
365
- }), this.makeIcons(t, e)])));
373
+ }), this.makeIcons(e, r)])));
366
374
  },
367
375
  makeBtn() {
368
- return p("div", {
376
+ const t = this.$createElement;
377
+ return t("div", {
369
378
  class: "fc-upload-btn",
370
379
  on: {
371
380
  click: () => this.showModel()
372
381
  },
373
382
  key: this.key("btn")
374
- }, [p("i", {
383
+ }, [t("i", {
375
384
  class: this.icon
376
385
  })]);
377
386
  },
@@ -404,65 +413,65 @@ const It = "fcFrame", At = {
404
413
  }
405
414
  },
406
415
  makeFooter() {
407
- const {
408
- okBtnText: t,
409
- closeBtnText: e,
410
- closeBtn: r,
411
- okBtn: i,
412
- footer: s
416
+ const t = this.$createElement, {
417
+ okBtnText: e,
418
+ closeBtnText: r,
419
+ closeBtn: i,
420
+ okBtn: s,
421
+ footer: n
413
422
  } = this.$props;
414
- if (s)
415
- return p("div", {
423
+ if (n)
424
+ return t("div", {
416
425
  slot: "footer"
417
- }, [r ? p("ElButton", {
426
+ }, [i ? t("ElButton", {
418
427
  on: {
419
428
  click: () => this.onCancel() !== !1 && (this.frameVisible = !1)
420
429
  }
421
- }, [e]) : null, i ? p("ElButton", {
430
+ }, [r]) : null, s ? t("ElButton", {
422
431
  attrs: {
423
432
  type: "primary"
424
433
  },
425
434
  on: {
426
435
  click: () => this.onOk() !== !1 && this.closeModel()
427
436
  }
428
- }, [t]) : null]);
437
+ }, [e]) : null]);
429
438
  }
430
439
  },
431
440
  render() {
432
- const t = this.type;
433
- let e;
434
- t === "input" ? e = this.makeInput() : t === "image" ? e = this.makeImages() : e = this.makeFiles();
441
+ const t = arguments[0], e = this.type;
442
+ let r;
443
+ e === "input" ? r = this.makeInput() : e === "image" ? r = this.makeImages() : r = this.makeFiles();
435
444
  const {
436
- width: r = "30%",
437
- height: i,
438
- src: s,
439
- title: n,
440
- modalTitle: o
445
+ width: i = "30%",
446
+ height: s,
447
+ src: n,
448
+ title: o,
449
+ modalTitle: a
441
450
  } = this.$props;
442
451
  return this.$nextTick(() => {
443
452
  this.$refs.frame && this.frameLoad(this.$refs.frame.contentWindow || {});
444
- }), p("div", {
453
+ }), t("div", {
445
454
  class: "_fc-frame"
446
- }, [e, p("el-dialog", S([{}, {
455
+ }, [r, t("el-dialog", F([{}, {
447
456
  props: {
448
457
  appendToBody: !0,
449
458
  modal: this.previewMask,
450
- title: o,
459
+ title: a,
451
460
  visible: this.previewVisible
452
461
  }
453
462
  }, {
454
463
  on: {
455
464
  close: this.handleCancel
456
465
  }
457
- }]), [p("img", {
466
+ }]), [t("img", {
458
467
  style: "width: 100%",
459
468
  attrs: {
460
469
  src: this.previewImage
461
470
  }
462
- })]), p("el-dialog", S([{}, {
463
- props: q(y({
464
- width: r,
465
- title: n,
471
+ })]), t("el-dialog", F([{}, {
472
+ props: M(y({
473
+ width: i,
474
+ title: o,
466
475
  appendToBody: !0
467
476
  }, this.modal), {
468
477
  visible: this.frameVisible
@@ -471,14 +480,14 @@ const It = "fcFrame", At = {
471
480
  on: {
472
481
  close: () => this.closeModel(!0)
473
482
  }
474
- }]), [this.frameVisible || !this.reload ? p("iframe", {
483
+ }]), [this.frameVisible || !this.reload ? t("iframe", {
475
484
  ref: "frame",
476
485
  attrs: {
477
- src: s,
486
+ src: n,
478
487
  frameBorder: "0"
479
488
  },
480
489
  style: {
481
- height: i,
490
+ height: s,
482
491
  border: "0 none",
483
492
  width: "100%"
484
493
  }
@@ -529,7 +538,8 @@ const It = "fcFrame", At = {
529
538
  this.update();
530
539
  },
531
540
  render() {
532
- return p("ElRadioGroup", S([{}, this.formCreateInject.prop, {
541
+ const t = arguments[0];
542
+ return t("ElRadioGroup", F([{}, this.formCreateInject.prop, {
533
543
  ref: "el"
534
544
  }, {
535
545
  props: {
@@ -539,12 +549,12 @@ const It = "fcFrame", At = {
539
549
  on: {
540
550
  input: this.onInput
541
551
  }
542
- }]), [this.options().map((t, e) => {
543
- const r = y({}, t), i = this.type === "button" ? "ElRadioButton" : "ElRadio";
544
- return delete r.value, p(i, S([{}, {
545
- props: r
552
+ }]), [this.options().map((e, r) => {
553
+ const i = y({}, e), s = this.type === "button" ? "ElRadioButton" : "ElRadio";
554
+ return delete i.value, t(s, F([{}, {
555
+ props: i
546
556
  }, {
547
- key: i + e + "-" + t.value
557
+ key: s + r + "-" + e.value
548
558
  }]));
549
559
  }), ee(this.$slots)]);
550
560
  },
@@ -581,7 +591,7 @@ const It = "fcFrame", At = {
581
591
  return c.type(e, t);
582
592
  };
583
593
  });
584
- function w(t, e) {
594
+ function O(t, e) {
585
595
  return {}.hasOwnProperty.call(t, e);
586
596
  }
587
597
  const Tt = "fcSelect", Dt = {
@@ -596,7 +606,7 @@ const Tt = "fcSelect", Dt = {
596
606
  render(t, e) {
597
607
  const r = (n, o) => {
598
608
  const a = n.slot;
599
- return t("ElOption", S([{}, {
609
+ return t("ElOption", F([{}, {
600
610
  props: n
601
611
  }, {
602
612
  key: "" + o + "-" + n.value
@@ -609,9 +619,9 @@ const Tt = "fcSelect", Dt = {
609
619
  },
610
620
  key: "" + o + "-" + n.label
611
621
  }, [c.trueArray(n.options) && n.options.map((a, u) => r(a, u))]), s = e.props.formCreateInject.options;
612
- return t("ElSelect", S([{}, e.data, {
622
+ return t("ElSelect", F([{}, e.data, {
613
623
  ref: "el"
614
- }]), [(Array.isArray(s) ? s : []).map((n, o) => w(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
624
+ }]), [(Array.isArray(s) ? s : []).map((n, o) => O(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
615
625
  },
616
626
  mounted() {
617
627
  this.$emit("fc.el", this.$refs.el);
@@ -656,11 +666,12 @@ const Tt = "fcSelect", Dt = {
656
666
  t === "selected" ? e = this.$refs.tree.getCurrentKey() : e = this.$refs.tree.getCheckedKeys(), this.$emit("input", e);
657
667
  },
658
668
  setValue() {
659
- this.type.toLocaleLowerCase() === "selected" ? this.$refs.tree.setCurrentKey(this.value) : this.$refs.tree.setCheckedKeys(I(this.value));
669
+ this.type.toLocaleLowerCase() === "selected" ? this.$refs.tree.setCurrentKey(this.value) : this.$refs.tree.setCheckedKeys(j(this.value));
660
670
  }
661
671
  },
662
672
  render() {
663
- return p("ElTree", S([{}, this.formCreateInject.prop, {
673
+ const t = arguments[0];
674
+ return t("ElTree", F([{}, this.formCreateInject.prop, {
664
675
  ref: "tree",
665
676
  on: {
666
677
  check: () => this.updateValue(),
@@ -672,7 +683,7 @@ const Tt = "fcSelect", Dt = {
672
683
  this.setValue(), this.$emit("fc.el", this.$refs.tree);
673
684
  }
674
685
  };
675
- function Re(t, e) {
686
+ function Se(t, e) {
676
687
  return {
677
688
  url: t,
678
689
  name: Nt(t),
@@ -725,11 +736,11 @@ const Mt = "fcUpload", qt = {
725
736
  };
726
737
  },
727
738
  created() {
728
- this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = I(this.value).map(Re);
739
+ this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = j(this.value).map(Se);
729
740
  },
730
741
  watch: {
731
742
  value(t) {
732
- this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = I(t).map(Re), this.uploadList = this.$refs.upload.uploadFiles);
743
+ this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = j(t).map(Se), this.uploadList = this.$refs.upload.uploadFiles);
733
744
  },
734
745
  limit(t, e) {
735
746
  (e === 1 || t === 1) && this.update();
@@ -749,18 +760,20 @@ const Mt = "fcUpload", qt = {
749
760
  this.onHandle(t);
750
761
  },
751
762
  makeItem(t, e) {
752
- return this.uploadType === "image" ? p("img", {
763
+ const r = this.$createElement;
764
+ return this.uploadType === "image" ? r("img", {
753
765
  attrs: {
754
766
  src: t.url
755
767
  },
756
768
  key: this.key("img" + e)
757
- }) : p("i", {
769
+ }) : r("i", {
758
770
  class: "el-icon-tickets",
759
771
  key: this.key("i" + e)
760
772
  });
761
773
  },
762
774
  makeRemoveIcon(t, e) {
763
- return p("i", {
775
+ const r = this.$createElement;
776
+ return r("i", {
764
777
  class: "el-icon-delete",
765
778
  on: {
766
779
  click: () => this.onRemove(t)
@@ -769,7 +782,8 @@ const Mt = "fcUpload", qt = {
769
782
  });
770
783
  },
771
784
  makeHandleIcon(t, e) {
772
- return p("i", {
785
+ const r = this.$createElement;
786
+ return r("i", {
773
787
  class: this.handleIcon === !0 || this.handleIcon === void 0 ? "el-icon-view" : this.handleIcon,
774
788
  on: {
775
789
  click: () => this.handleClick(t)
@@ -778,7 +792,8 @@ const Mt = "fcUpload", qt = {
778
792
  });
779
793
  },
780
794
  makeProgress(t, e) {
781
- return p("ElProgress", S([{}, {
795
+ const r = this.$createElement;
796
+ return r("ElProgress", F([{}, {
782
797
  props: {
783
798
  percentage: t.percentage,
784
799
  type: "circle",
@@ -790,35 +805,36 @@ const Mt = "fcUpload", qt = {
790
805
  }]));
791
806
  },
792
807
  makeIcons(t, e) {
793
- const r = [];
808
+ const r = this.$createElement, i = [];
794
809
  if (this.allowRemove || this.handleIcon !== !1)
795
- return (this.uploadType !== "file" && this.handleIcon !== !1 || this.uploadType === "file" && this.handleIcon) && r.push(this.makeHandleIcon(t, e)), this.allowRemove && r.push(this.makeRemoveIcon(t, e)), p("div", {
810
+ return (this.uploadType !== "file" && this.handleIcon !== !1 || this.uploadType === "file" && this.handleIcon) && i.push(this.makeHandleIcon(t, e)), this.allowRemove && i.push(this.makeRemoveIcon(t, e)), r("div", {
796
811
  class: "fc-upload-cover"
797
- }, [r]);
812
+ }, [i]);
798
813
  },
799
814
  makeFiles() {
800
- return this.uploadList.map((t, e) => this.$scopedSlots.fileList ? this.$scopedSlots.fileList({
801
- file: t,
802
- index: e,
815
+ const t = this.$createElement;
816
+ return this.uploadList.map((e, r) => this.$scopedSlots.fileList ? this.$scopedSlots.fileList({
817
+ file: e,
818
+ index: r,
803
819
  vm: this
804
- }) : p("div", {
805
- key: this.key(e),
820
+ }) : t("div", {
821
+ key: this.key(r),
806
822
  class: "fc-files"
807
- }, [t.percentage !== void 0 && t.status !== "success" ? this.makeProgress(t, e) : [this.makeItem(t, e), this.makeIcons(t, e)]]));
823
+ }, [e.percentage !== void 0 && e.status !== "success" ? this.makeProgress(e, r) : [this.makeItem(e, r), this.makeIcons(e, r)]]));
808
824
  },
809
825
  makeUpload() {
810
- const t = !this.limit || this.limit > this.uploadList.length;
811
- return p("ElUpload", S([{}, this.formCreateInject.prop, {}, {
826
+ const t = this.$createElement, e = !this.limit || this.limit > this.uploadList.length;
827
+ return t("ElUpload", F([{}, this.formCreateInject.prop, {}, {
812
828
  style: {
813
829
  display: "inline-block"
814
830
  },
815
831
  key: this.key("upload"),
816
832
  ref: "upload"
817
- }]), [t ? p("template", {
833
+ }]), [e ? t("template", {
818
834
  slot: "default"
819
- }, [this.$slots.default || p("div", {
835
+ }, [this.$slots.default || t("div", {
820
836
  class: "fc-upload-btn"
821
- }, [p("i", {
837
+ }, [t("i", {
822
838
  class: "el-icon-upload2"
823
839
  })])]) : null, ee(this.$slots, ["default"])]);
824
840
  },
@@ -831,9 +847,10 @@ const Mt = "fcUpload", qt = {
831
847
  }
832
848
  },
833
849
  render() {
834
- return this.$refs.upload && (this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = this.$refs.upload.showFileList), this.formCreateInject.prop.props.fileList = this.$refs.upload.fileList), p("div", {
850
+ const t = arguments[0];
851
+ return this.$refs.upload && (this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = this.$refs.upload.showFileList), this.formCreateInject.prop.props.fileList = this.$refs.upload.fileList), t("div", {
835
852
  class: "_fc-upload"
836
- }, [[this.formCreateInject.prop.props.showFileList ? [] : this.makeFiles(), this.makeUpload()], p("el-dialog", S([{}, {
853
+ }, [[this.formCreateInject.prop.props.showFileList ? [] : this.makeFiles(), this.makeUpload()], t("el-dialog", F([{}, {
837
854
  props: {
838
855
  appendToBody: !0,
839
856
  modal: this.previewMask,
@@ -844,7 +861,7 @@ const Mt = "fcUpload", qt = {
844
861
  on: {
845
862
  close: this.handleCancel
846
863
  }
847
- }]), [p("img", {
864
+ }]), [t("img", {
848
865
  attrs: {
849
866
  alt: "example",
850
867
  src: this.previewImage
@@ -860,13 +877,13 @@ const Mt = "fcUpload", qt = {
860
877
  }), this.$emit("fc.el", this.$refs.upload);
861
878
  }
862
879
  };
863
- function F(t, e, r) {
864
- Y.set(t, e, r);
880
+ function w(t, e, r) {
881
+ T.set(t, e, r);
865
882
  }
866
- function N(t, e) {
867
- Y.delete(t, e);
883
+ function B(t, e) {
884
+ T.delete(t, e);
868
885
  }
869
- function G(t, e = {}, r) {
886
+ function W(t, e = {}, r) {
870
887
  let i = !1;
871
888
  for (let s in e)
872
889
  if (Object.prototype.hasOwnProperty.call(e, s)) {
@@ -874,32 +891,32 @@ function G(t, e = {}, r) {
874
891
  if ((i = Array.isArray(n)) || c.Object(n)) {
875
892
  let o = t[s] === void 0;
876
893
  if (i)
877
- i = !1, o && F(t, s, []);
894
+ i = !1, o && w(t, s, []);
878
895
  else if (n._clone && r !== void 0)
879
896
  if (r)
880
- n = n.getRule(), o && F(t, s, {});
897
+ n = n.getRule(), o && w(t, s, {});
881
898
  else {
882
- F(t, s, n._clone());
899
+ w(t, s, n._clone());
883
900
  continue;
884
901
  }
885
902
  else
886
- o && F(t, s, {});
887
- t[s] = G(t[s], n, r);
903
+ o && w(t, s, {});
904
+ t[s] = W(t[s], n, r);
888
905
  } else
889
- F(t, s, n), c.Undef(n) || (c.Undef(n.__json) || (t[s].__json = n.__json), c.Undef(n.__origin) || (t[s].__origin = n.__origin));
906
+ w(t, s, n), c.Undef(n) || (c.Undef(n.__json) || (t[s].__json = n.__json), c.Undef(n.__origin) || (t[s].__origin = n.__origin));
890
907
  }
891
908
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
892
909
  }
893
- function M(t) {
894
- return G({}, { value: t }).value;
910
+ function L(t) {
911
+ return W({}, { value: t }).value;
895
912
  }
896
913
  const Ut = Object.assign || function(t) {
897
914
  for (let e, r = 1; r < arguments.length; r++)
898
915
  for (let i in e = arguments[r], e)
899
- Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
916
+ Object.prototype.hasOwnProperty.call(e, i) && w(t, i, e[i]);
900
917
  return t;
901
918
  };
902
- function m() {
919
+ function p() {
903
920
  return Ut.apply(this, arguments);
904
921
  }
905
922
  const Ht = "fcGroup", xt = {
@@ -984,13 +1001,13 @@ const Ht = "fcGroup", xt = {
984
1001
  const s = i.$f.formData();
985
1002
  if (t === e)
986
1003
  i.$f.deferSyncValue(() => {
987
- G(i.rule, t), i.$f.setValue(s);
1004
+ W(i.rule, t), i.$f.setValue(s);
988
1005
  }, !0);
989
1006
  else {
990
1007
  const n = i.$f.formData();
991
1008
  i.$f.once("reloading", () => {
992
1009
  i.$f.setValue(n);
993
- }), i.rule = M(t);
1010
+ }), i.rule = L(t);
994
1011
  }
995
1012
  }
996
1013
  });
@@ -1024,7 +1041,7 @@ const Ht = "fcGroup", xt = {
1024
1041
  },
1025
1042
  methods: {
1026
1043
  _value(t) {
1027
- return t && w(t, this.field) ? t[this.field] : t;
1044
+ return t && O(t, this.field) ? t[this.field] : t;
1028
1045
  },
1029
1046
  cache(t, e) {
1030
1047
  this.cacheValue[t] = JSON.stringify(e);
@@ -1055,8 +1072,8 @@ const Ht = "fcGroup", xt = {
1055
1072
  };
1056
1073
  if (this.defaultValue) {
1057
1074
  i.formData || (i.formData = {});
1058
- const s = M(this.defaultValue);
1059
- m(i.formData, this.field ? {
1075
+ const s = L(this.defaultValue);
1076
+ p(i.formData, this.field ? {
1060
1077
  [this.field]: s
1061
1078
  } : s);
1062
1079
  }
@@ -1089,7 +1106,8 @@ const Ht = "fcGroup", xt = {
1089
1106
  r.splice(t, 1), this.input(r);
1090
1107
  },
1091
1108
  addIcon(t) {
1092
- return p("div", {
1109
+ const e = this.$createElement;
1110
+ return e("div", {
1093
1111
  class: "_fc-group-btn _fc-group-plus-minus",
1094
1112
  on: {
1095
1113
  click: this.add
@@ -1097,7 +1115,8 @@ const Ht = "fcGroup", xt = {
1097
1115
  });
1098
1116
  },
1099
1117
  delIcon(t, e) {
1100
- return p("div", {
1118
+ const r = this.$createElement;
1119
+ return r("div", {
1101
1120
  class: "_fc-group-btn _fc-group-plus-minus _fc-group-minus",
1102
1121
  on: {
1103
1122
  click: () => this.del(t, e)
@@ -1105,7 +1124,8 @@ const Ht = "fcGroup", xt = {
1105
1124
  });
1106
1125
  },
1107
1126
  sortUpIcon(t) {
1108
- return p("div", {
1127
+ const e = this.$createElement;
1128
+ return e("div", {
1109
1129
  class: "_fc-group-btn _fc-group-arrow _fc-group-up",
1110
1130
  on: {
1111
1131
  click: () => this.changeSort(t, -1)
@@ -1113,7 +1133,8 @@ const Ht = "fcGroup", xt = {
1113
1133
  });
1114
1134
  },
1115
1135
  sortDownIcon(t) {
1116
- return p("div", {
1136
+ const e = this.$createElement;
1137
+ return e("div", {
1117
1138
  class: "_fc-group-btn _fc-group-arrow _fc-group-down",
1118
1139
  on: {
1119
1140
  click: () => this.changeSort(t, 1)
@@ -1153,52 +1174,52 @@ const Ht = "fcGroup", xt = {
1153
1174
  this.addRule(e);
1154
1175
  },
1155
1176
  render() {
1156
- const t = this.sort, e = this.button, r = this.type, i = this.disabled, s = t.length === 0 ? this.$scopedSlots.default ? this.$scopedSlots.default({
1177
+ const t = arguments[0], e = this.sort, r = this.button, i = this.type, s = this.disabled, n = e.length === 0 ? this.$scopedSlots.default ? this.$scopedSlots.default({
1157
1178
  vm: this,
1158
1179
  add: this.add
1159
- }) : p("div", {
1180
+ }) : t("div", {
1160
1181
  key: "a_def",
1161
1182
  class: "_fc-group-plus-minus _fc-group-add",
1162
1183
  on: {
1163
1184
  click: this.add
1164
1185
  }
1165
- }) : t.map((n, o) => {
1186
+ }) : e.map((o, a) => {
1166
1187
  const {
1167
- rule: a,
1168
- options: u
1169
- } = this.cacheRule[n], l = e && !i ? this.makeIcon(t.length, o, n) : [];
1170
- return p("div", {
1188
+ rule: u,
1189
+ options: l
1190
+ } = this.cacheRule[o], f = r && !s ? this.makeIcon(e.length, a, o) : [];
1191
+ return t("div", {
1171
1192
  class: "_fc-group-container",
1172
- key: n
1173
- }, [p(r, S([{
1174
- key: n
1193
+ key: o
1194
+ }, [t(i, F([{
1195
+ key: o
1175
1196
  }, {
1176
1197
  on: {
1177
- "update:value": (f) => this.formData(n, f),
1178
- "emit-event": (f, ...g) => this.emitEvent(f, g, o, n),
1179
- input: (f) => this.add$f(o, n, f)
1198
+ "update:value": (m) => this.formData(o, m),
1199
+ "emit-event": (m, ...v) => this.emitEvent(m, v, a, o),
1200
+ input: (m) => this.add$f(a, o, m)
1180
1201
  }
1181
1202
  }, {}, {
1182
1203
  props: {
1183
- disabled: i,
1204
+ disabled: s,
1184
1205
  inFor: !0,
1185
1206
  value: this.field ? {
1186
- [this.field]: this._value(this.value[o])
1187
- } : this.value[o],
1188
- rule: a,
1189
- option: u,
1207
+ [this.field]: this._value(this.value[a])
1208
+ } : this.value[a],
1209
+ rule: u,
1210
+ option: l,
1190
1211
  extendOption: !0
1191
1212
  }
1192
- }])), p("div", {
1213
+ }])), t("div", {
1193
1214
  class: "_fc-group-idx"
1194
- }, [o + 1]), l.length ? p("div", {
1215
+ }, [a + 1]), f.length ? t("div", {
1195
1216
  class: "_fc-group-handle"
1196
- }, [l]) : null]);
1217
+ }, [f]) : null]);
1197
1218
  });
1198
- return p("div", {
1219
+ return t("div", {
1199
1220
  key: "con",
1200
- class: "_fc-group " + (i ? "_fc-group-disabled" : "")
1201
- }, [s]);
1221
+ class: "_fc-group " + (s ? "_fc-group-disabled" : "")
1222
+ }, [n]);
1202
1223
  }
1203
1224
  }, Jt = "fcSubForm", Kt = {
1204
1225
  name: Jt,
@@ -1265,11 +1286,11 @@ const Ht = "fcGroup", xt = {
1265
1286
  this.addRule(), this.type = this.formCreateInject.form.$form();
1266
1287
  },
1267
1288
  render() {
1268
- const {
1269
- rule: t,
1270
- options: e
1271
- } = this.cacheRule, r = this.type;
1272
- return p(r, S([{}, {
1289
+ const t = arguments[0], {
1290
+ rule: e,
1291
+ options: r
1292
+ } = this.cacheRule, i = this.type;
1293
+ return t(i, F([{}, {
1273
1294
  on: {
1274
1295
  "update:value": this.formData,
1275
1296
  "emit-event": this.emitEvent,
@@ -1277,8 +1298,8 @@ const Ht = "fcGroup", xt = {
1277
1298
  }
1278
1299
  }, {}, {
1279
1300
  props: {
1280
- rule: t,
1281
- option: e,
1301
+ rule: e,
1302
+ option: r,
1282
1303
  disabled: this.disabled,
1283
1304
  extendOption: !0
1284
1305
  }
@@ -1293,21 +1314,23 @@ const Ht = "fcGroup", xt = {
1293
1314
  qt,
1294
1315
  xt,
1295
1316
  Kt
1296
- ], Ee = "FormCreate", ue = (t, e) => {
1317
+ ], Re = "FormCreate", le = (t, e) => {
1297
1318
  if (!(!t || t === e)) {
1298
1319
  if (t.formCreateInject)
1299
1320
  return t.formCreateInject;
1300
1321
  if (t.$parent)
1301
- return ue(t.$parent, e);
1322
+ return le(t.$parent, e);
1302
1323
  }
1303
1324
  };
1304
- function Gt(t) {
1325
+ function Gt(t, e, r) {
1305
1326
  return {
1306
- name: Ee,
1307
- componentName: Ee,
1327
+ name: Re,
1328
+ componentName: Re,
1308
1329
  model: {
1309
1330
  prop: "api"
1310
1331
  },
1332
+ components: e,
1333
+ directives: r,
1311
1334
  provide() {
1312
1335
  return {
1313
1336
  $pfc: this
@@ -1361,14 +1384,14 @@ function Gt(t) {
1361
1384
  _renderRule() {
1362
1385
  this.renderRule = [...this.rule || []];
1363
1386
  },
1364
- _updateValue(e) {
1365
- this.destroyed || (this.updateValue = JSON.stringify(e), this.$emit("update:value", e));
1387
+ _updateValue(i) {
1388
+ this.destroyed || (this.updateValue = JSON.stringify(i), this.$emit("update:value", i));
1366
1389
  }
1367
1390
  },
1368
1391
  watch: {
1369
1392
  value: {
1370
- handler(e) {
1371
- JSON.stringify(e || {}) !== this.updateValue && (this.$f.config.forceCoverValue ? this.$f.coverValue(e || {}) : this.$f.setValue(e || {}));
1393
+ handler(i) {
1394
+ JSON.stringify(i || {}) !== this.updateValue && (this.$f.config.forceCoverValue ? this.$f.coverValue(i || {}) : this.$f.setValue(i || {}));
1372
1395
  },
1373
1396
  deep: !0
1374
1397
  },
@@ -1378,61 +1401,61 @@ function Gt(t) {
1378
1401
  },
1379
1402
  deep: !0
1380
1403
  },
1381
- rule(e) {
1382
- e.length === this.renderRule.length && e.every((r) => this.renderRule.indexOf(r) > -1) || (this.formCreate.$handle.reloadRule(e), this._renderRule());
1404
+ rule(i) {
1405
+ i.length === this.renderRule.length && i.every((s) => this.renderRule.indexOf(s) > -1) || (this.formCreate.$handle.reloadRule(i), this._renderRule());
1383
1406
  },
1384
1407
  disabled() {
1385
1408
  this.$f.refresh();
1386
1409
  }
1387
1410
  },
1388
1411
  beforeCreate() {
1389
- this.formCreate = new t(this), Object.keys(this.formCreate.prop).forEach((e) => {
1390
- m(this.$options[e], this.formCreate.prop[e]);
1412
+ this.formCreate = new t(this), Object.keys(this.formCreate.prop).forEach((i) => {
1413
+ p(this.$options[i], this.formCreate.prop[i]);
1391
1414
  }), this.$emit("beforeCreate", this.formCreate.api());
1392
1415
  },
1393
1416
  created() {
1394
- const e = this, r = this.formCreate.api(), i = () => {
1395
- if (e.$pfc) {
1396
- const n = ue(e, e.$pfc);
1397
- if (n) {
1398
- let o;
1399
- e.isMore ? (o = I(n.getSubForm()), o.push(r)) : o = r, n.subForm(o);
1417
+ const i = this, s = this.formCreate.api(), n = () => {
1418
+ if (i.$pfc) {
1419
+ const a = le(i, i.$pfc);
1420
+ if (a) {
1421
+ let u;
1422
+ i.isMore ? (u = j(a.getSubForm()), u.push(s)) : u = s, a.subForm(u);
1400
1423
  }
1401
1424
  }
1402
- }, s = () => {
1403
- const n = ue(e, e.$pfc);
1404
- if (n)
1405
- if (e.isMore) {
1406
- const o = I(n.getSubForm()), a = o.indexOf(r);
1407
- a > -1 && o.splice(a, 1);
1425
+ }, o = () => {
1426
+ const a = le(i, i.$pfc);
1427
+ if (a)
1428
+ if (i.isMore) {
1429
+ const u = j(a.getSubForm()), l = u.indexOf(s);
1430
+ l > -1 && u.splice(l, 1);
1408
1431
  } else
1409
- n.subForm();
1432
+ a.subForm();
1410
1433
  };
1411
- e.$on("hook:beforeDestroy", () => {
1412
- s();
1413
- }), this.$watch(() => this.subForm, (n) => {
1414
- n ? i() : s();
1434
+ i.$on("hook:beforeDestroy", () => {
1435
+ o();
1436
+ }), this.$watch(() => this.subForm, (a) => {
1437
+ a ? n() : o();
1415
1438
  }, { immediate: !0 });
1416
1439
  }
1417
1440
  };
1418
1441
  }
1419
- const Ge = ["attrs", "props", "domProps", "scopedSlots"], Xe = ["class", "style", "directives"], ze = ["on", "nativeOn"], B = (t, e = {}, r = {}) => {
1442
+ const Ge = ["attrs", "props", "domProps", "scopedSlots"], Xe = ["class", "style", "directives"], ze = ["on", "nativeOn"], D = (t, e = {}, r = {}) => {
1420
1443
  const i = [...Ge, ...r.normal || []], s = [...Xe, ...r.array || []], n = [...ze, ...r.functional || []], o = r.props || [];
1421
1444
  return t.reduce((a, u) => {
1422
1445
  for (const l in u)
1423
1446
  if (a[l])
1424
1447
  if (o.indexOf(l) > -1)
1425
- a[l] = B([u[l]], a[l]);
1448
+ a[l] = D([u[l]], a[l]);
1426
1449
  else if (i.indexOf(l) > -1)
1427
1450
  a[l] = y(y({}, a[l]), u[l]);
1428
1451
  else if (s.indexOf(l) > -1) {
1429
- const f = a[l] instanceof Array ? a[l] : [a[l]], g = u[l] instanceof Array ? u[l] : [u[l]];
1430
- a[l] = [...f, ...g];
1452
+ const f = a[l] instanceof Array ? a[l] : [a[l]], m = u[l] instanceof Array ? u[l] : [u[l]];
1453
+ a[l] = [...f, ...m];
1431
1454
  } else if (n.indexOf(l) > -1)
1432
1455
  for (const f in u[l])
1433
1456
  if (a[l][f]) {
1434
- const g = a[l][f] instanceof Array ? a[l][f] : [a[l][f]], b = u[l][f] instanceof Array ? u[l][f] : [u[l][f]];
1435
- a[l][f] = [...g, ...b];
1457
+ const m = a[l][f] instanceof Array ? a[l][f] : [a[l][f]], v = u[l][f] instanceof Array ? u[l][f] : [u[l][f]];
1458
+ a[l][f] = [...m, ...v];
1436
1459
  } else
1437
1460
  a[l][f] = u[l][f];
1438
1461
  else if (l === "hook")
@@ -1446,56 +1469,56 @@ const Ge = ["attrs", "props", "domProps", "scopedSlots"], Xe = ["class", "style"
1446
1469
  }, e);
1447
1470
  }, Xt = (t, e) => function() {
1448
1471
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1449
- }, Qe = ["type", "slot", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "preview", "component", "cache"], pe = ["validate", "children", "control"], me = ["effect", "deep"];
1472
+ }, Qe = ["type", "slot", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "preview", "component", "cache"], de = ["validate", "children", "control"], pe = ["effect", "deep"];
1450
1473
  function zt() {
1451
- return [...Qe, ...Ge, ...Xe, ...ze, ...pe, ...me];
1474
+ return [...Qe, ...Ge, ...Xe, ...ze, ...de, ...pe];
1452
1475
  }
1453
- function ye(t, e, r) {
1476
+ function me(t, e, r) {
1454
1477
  return `[form-create ${t}]: ${e}`;
1455
1478
  }
1456
1479
  function Qt(t, e) {
1457
- console.warn(ye("tip", t));
1480
+ console.warn(me("tip", t));
1458
1481
  }
1459
- function ge(t, e) {
1460
- console.error(ye("err", t));
1482
+ function ye(t, e) {
1483
+ console.error(me("err", t));
1461
1484
  }
1462
1485
  function Zt(t) {
1463
- ge(t.toString()), console.error(t);
1486
+ ye(t.toString()), console.error(t);
1464
1487
  }
1465
- const fe = "[[FORM-CREATE-PREFIX-", he = "-FORM-CREATE-SUFFIX]]", je = "$FN:", Ie = "$FNX:", K = "function";
1488
+ const ue = "[[FORM-CREATE-PREFIX-", he = "-FORM-CREATE-SUFFIX]]", je = "$FN:", Ie = "$FNX:", J = "function";
1466
1489
  function Ze(t, e) {
1467
- return JSON.stringify(G(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1490
+ return JSON.stringify(W(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1468
1491
  if (!(i && i._isVue === !0)) {
1469
- if (typeof i !== K)
1492
+ if (typeof i !== J)
1470
1493
  return i;
1471
1494
  if (i.__json)
1472
1495
  return i.__json;
1473
1496
  if (i.__origin && (i = i.__origin), !i.__emit)
1474
- return fe + i + he;
1497
+ return ue + i + he;
1475
1498
  }
1476
1499
  }, e);
1477
1500
  }
1478
1501
  function Ae(t) {
1479
1502
  return new Function("return " + t)();
1480
1503
  }
1481
- function U(t, e) {
1504
+ function q(t, e) {
1482
1505
  if (t && c.String(t) && t.length > 4) {
1483
1506
  let r = t.trim(), i = !1;
1484
1507
  try {
1485
- if (r.indexOf(he) > 0 && r.indexOf(fe) === 0)
1486
- r = r.replace(he, "").replace(fe, ""), i = !0;
1508
+ if (r.indexOf(he) > 0 && r.indexOf(ue) === 0)
1509
+ r = r.replace(he, "").replace(ue, ""), i = !0;
1487
1510
  else if (r.indexOf(je) === 0)
1488
1511
  r = r.replace(je, ""), i = !0;
1489
1512
  else {
1490
1513
  if (r.indexOf(Ie) === 0)
1491
1514
  return r = Ae("function($inject){" + r.replace(Ie, "") + "}"), r.__json = t, r.__inject = !0, r;
1492
- !e && r.indexOf(K) === 0 && r !== K && (i = !0);
1515
+ !e && r.indexOf(J) === 0 && r !== J && (i = !0);
1493
1516
  }
1494
1517
  if (!i) return t;
1495
- const s = Ae(r.indexOf(K) === -1 && r.indexOf("(") !== 0 ? K + " " + r : r);
1518
+ const s = Ae(r.indexOf(J) === -1 && r.indexOf("(") !== 0 ? J + " " + r : r);
1496
1519
  return s.__json = t, s;
1497
1520
  } catch (s) {
1498
- ge(`解析失败:${r}
1521
+ ye(`解析失败:${r}
1499
1522
 
1500
1523
  err: ${s}`);
1501
1524
  return;
@@ -1505,7 +1528,7 @@ err: ${s}`);
1505
1528
  }
1506
1529
  function Yt(t, e) {
1507
1530
  return JSON.parse(t, function(r, i) {
1508
- return c.Undef(i) || !i.indexOf ? i : U(i, e);
1531
+ return c.Undef(i) || !i.indexOf ? i : q(i, e);
1509
1532
  });
1510
1533
  }
1511
1534
  function Ye(t, e) {
@@ -1516,14 +1539,14 @@ function Ye(t, e) {
1516
1539
  writable: !!e
1517
1540
  };
1518
1541
  }
1519
- function $e(t) {
1542
+ function ge(t) {
1520
1543
  return et([t])[0];
1521
1544
  }
1522
1545
  function et(t, e) {
1523
- return G([], [...t], e || !1);
1546
+ return W([], [...t], e || !1);
1524
1547
  }
1525
- function H(t, e) {
1526
- return B(Array.isArray(e) ? e : [e], t, { array: pe, normal: me }), t;
1548
+ function U(t, e) {
1549
+ return D(Array.isArray(e) ? e : [e], t, { array: de, normal: pe }), t;
1527
1550
  }
1528
1551
  function Ve(t) {
1529
1552
  const e = c.Function(t.getRule) ? t.getRule() : t;
@@ -1531,7 +1554,7 @@ function Ve(t) {
1531
1554
  }
1532
1555
  function er(t, e) {
1533
1556
  return t ? (Object.keys(e || {}).forEach((r) => {
1534
- e[r] && (t[r] = H(t[r] || {}, e[r]));
1557
+ e[r] && (t[r] = U(t[r] || {}, e[r]));
1535
1558
  }), t) : e;
1536
1559
  }
1537
1560
  function tt(t, e) {
@@ -1541,10 +1564,10 @@ function tt(t, e) {
1541
1564
  }
1542
1565
  }, r), {}));
1543
1566
  }
1544
- function z(t) {
1567
+ function Q(t) {
1545
1568
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1546
1569
  }
1547
- function j(t, e) {
1570
+ function R(t, e) {
1548
1571
  try {
1549
1572
  e = t();
1550
1573
  } catch (r) {
@@ -1552,9 +1575,9 @@ function j(t, e) {
1552
1575
  }
1553
1576
  return e;
1554
1577
  }
1555
- const Pe = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, W = {
1578
+ const Pe = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, K = {
1556
1579
  "==": (t, e) => JSON.stringify(t) === JSON.stringify(Pe(t, e)),
1557
- "!=": (t, e) => !W["=="](t, e),
1580
+ "!=": (t, e) => !K["=="](t, e),
1558
1581
  ">": (t, e) => t > e,
1559
1582
  ">=": (t, e) => t >= e,
1560
1583
  "<": (t, e) => t < e,
@@ -1563,13 +1586,13 @@ const Pe = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1563
1586
  return t && t.indexOf && t.indexOf(Pe(t[0], e)) > -1;
1564
1587
  },
1565
1588
  notOn(t, e) {
1566
- return !W.on(t, e);
1589
+ return !K.on(t, e);
1567
1590
  },
1568
1591
  in(t, e) {
1569
1592
  return e && e.indexOf && e.indexOf(t) > -1;
1570
1593
  },
1571
1594
  notIn(t, e) {
1572
- return !W.in(t, e);
1595
+ return !K.in(t, e);
1573
1596
  },
1574
1597
  between(t, e) {
1575
1598
  return t > e[0] && t < e[1];
@@ -1599,36 +1622,36 @@ function rt() {
1599
1622
  value: void 0
1600
1623
  };
1601
1624
  }
1602
- function R(t, e) {
1625
+ function E(t, e) {
1603
1626
  return (r, i, s, n = {}) => {
1604
- const o = new ve(t, r, i, s, n);
1627
+ const o = new $e(t, r, i, s, n);
1605
1628
  return e && (c.Function(e) ? e(o) : o.props(e)), o;
1606
1629
  };
1607
1630
  }
1608
- function ve(t, e, r, i, s) {
1609
- this._data = m(rt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1631
+ function $e(t, e, r, i, s) {
1632
+ this._data = p(rt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
1610
1633
  }
1611
- m(ve.prototype, {
1634
+ p($e.prototype, {
1612
1635
  getRule() {
1613
1636
  return this._data;
1614
1637
  },
1615
1638
  setProp(t, e) {
1616
- return F(this._data, t, e), this;
1639
+ return w(this._data, t, e), this;
1617
1640
  },
1618
1641
  _clone() {
1619
1642
  const t = new this.constructor();
1620
- return t._data = $e(this._data), t;
1643
+ return t._data = ge(this._data), t;
1621
1644
  }
1622
1645
  });
1623
1646
  function it(t) {
1624
1647
  t.forEach((e) => {
1625
- ve.prototype[e] = function(r) {
1626
- return H(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1648
+ $e.prototype[e] = function(r) {
1649
+ return U(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1627
1650
  };
1628
1651
  });
1629
1652
  }
1630
1653
  it(zt());
1631
- const nt = R("");
1654
+ const nt = E("");
1632
1655
  function tr(t, e, r) {
1633
1656
  let i = nt("", e);
1634
1657
  return i._data.type = t, i._data.title = r, i;
@@ -1642,7 +1665,7 @@ function rr() {
1642
1665
  create: tr,
1643
1666
  createTmp: Te,
1644
1667
  template: Te,
1645
- factory: R
1668
+ factory: E
1646
1669
  };
1647
1670
  }
1648
1671
  function ir(t, e, r) {
@@ -1681,10 +1704,10 @@ function st(t) {
1681
1704
  }
1682
1705
  function nr(t) {
1683
1706
  return new Promise((e, r) => {
1684
- st(q(y({}, t), {
1707
+ st(M(y({}, t), {
1685
1708
  onSuccess(i) {
1686
1709
  let s = (o) => o;
1687
- const n = U(t.parse);
1710
+ const n = q(t.parse);
1688
1711
  c.Function(n) ? s = n : n && c.String(n) && (s = (o) => (n.split(".").forEach((a) => {
1689
1712
  o && (o = o[a]);
1690
1713
  }), o)), e(s(i));
@@ -1695,8 +1718,8 @@ function nr(t) {
1695
1718
  }));
1696
1719
  });
1697
1720
  }
1698
- function X(t) {
1699
- return M(t);
1721
+ function z(t) {
1722
+ return L(t);
1700
1723
  }
1701
1724
  function sr(t) {
1702
1725
  function e(n) {
@@ -1705,7 +1728,7 @@ function sr(t) {
1705
1728
  function r(n, o, a) {
1706
1729
  e(n).forEach((u) => {
1707
1730
  t.getCtxs(u).forEach((l) => {
1708
- F(l.rule, o, a), t.$render.clearCache(l);
1731
+ w(l.rule, o, a), t.$render.clearCache(l);
1709
1732
  });
1710
1733
  });
1711
1734
  }
@@ -1741,13 +1764,13 @@ function sr(t) {
1741
1764
  formData(n) {
1742
1765
  return e(n).reduce((o, a) => {
1743
1766
  const u = t.getFieldCtx(a);
1744
- return u && (o[u.field] = X(u.rule.value)), o;
1745
- }, t.options.appendValue !== !1 ? X(t.appendData) : {});
1767
+ return u && (o[u.field] = z(u.rule.value)), o;
1768
+ }, t.options.appendValue !== !1 ? z(t.appendData) : {});
1746
1769
  },
1747
1770
  getValue(n) {
1748
1771
  const o = t.getFieldCtx(n);
1749
1772
  if (o)
1750
- return X(o.rule.value);
1773
+ return z(o.rule.value);
1751
1774
  },
1752
1775
  coverValue(n) {
1753
1776
  const o = y({}, n || {});
@@ -1755,12 +1778,12 @@ function sr(t) {
1755
1778
  s.fields().forEach((a) => {
1756
1779
  const u = t.fieldCtx[a];
1757
1780
  if (u) {
1758
- const l = w(o, a);
1781
+ const l = O(o, a);
1759
1782
  u.forEach((f) => {
1760
1783
  f.rule.value = l ? o[a] : void 0;
1761
1784
  }), delete o[a];
1762
1785
  }
1763
- }), m(t.appendData, o);
1786
+ }), p(t.appendData, o);
1764
1787
  });
1765
1788
  },
1766
1789
  setValue(n) {
@@ -1784,7 +1807,7 @@ function sr(t) {
1784
1807
  }, !0), o ? o.origin : void 0;
1785
1808
  },
1786
1809
  removeRule(n) {
1787
- const o = n && z(n);
1810
+ const o = n && Q(n);
1788
1811
  if (o)
1789
1812
  return o.rm(), o.origin;
1790
1813
  },
@@ -1821,7 +1844,7 @@ function sr(t) {
1821
1844
  disabled(n, o) {
1822
1845
  e(o).forEach((a) => {
1823
1846
  t.getCtxs(a).forEach((u) => {
1824
- u.rule.props && F(u.rule.props, "disabled", !!n);
1847
+ u.rule.props && w(u.rule.props, "disabled", !!n);
1825
1848
  });
1826
1849
  }), t.refresh();
1827
1850
  },
@@ -1860,7 +1883,7 @@ function sr(t) {
1860
1883
  n.forEach((a) => s.sync(a));
1861
1884
  return;
1862
1885
  }
1863
- let o = c.Object(n) ? z(n) : t.getCtxs(n);
1886
+ let o = c.Object(n) ? Q(n) : t.getCtxs(n);
1864
1887
  o && (o = Array.isArray(o) ? o : [o], o.forEach((a) => {
1865
1888
  if (!a.deleted) {
1866
1889
  const u = t.subForm[a.id];
@@ -1879,7 +1902,7 @@ function sr(t) {
1879
1902
  t.$manager.updateOptions(t.options), s.refresh();
1880
1903
  },
1881
1904
  hideForm: (n) => {
1882
- F(t.vm, "isShow", !n);
1905
+ w(t.vm, "isShow", !n);
1883
1906
  },
1884
1907
  changeStatus: () => t.changeStatus,
1885
1908
  clearChangeStatus: () => {
@@ -1887,7 +1910,7 @@ function sr(t) {
1887
1910
  },
1888
1911
  updateRule(n, o) {
1889
1912
  t.getCtxs(n).forEach((a) => {
1890
- m(a.rule, o);
1913
+ p(a.rule, o);
1891
1914
  });
1892
1915
  },
1893
1916
  updateRules(n) {
@@ -1897,7 +1920,7 @@ function sr(t) {
1897
1920
  },
1898
1921
  mergeRule: (n, o) => {
1899
1922
  t.getCtxs(n).forEach((a) => {
1900
- H(a.rule, o);
1923
+ U(a.rule, o);
1901
1924
  });
1902
1925
  },
1903
1926
  mergeRules(n) {
@@ -1924,7 +1947,7 @@ function sr(t) {
1924
1947
  },
1925
1948
  setEffect(n, o, a) {
1926
1949
  const u = t.getCtx(n);
1927
- u && o && (o[0] === "$" && (o = o.substr(1)), w(u.rule, "$" + o) && F(u.rule, "$" + o, a), w(u.rule, "effect") || F(u.rule, "effect", {}), F(u.rule.effect, o, a));
1950
+ u && o && (o[0] === "$" && (o = o.substr(1)), O(u.rule, "$" + o) && w(u.rule, "$" + o, a), O(u.rule, "effect") || w(u.rule, "effect", {}), w(u.rule.effect, o, a));
1928
1951
  },
1929
1952
  clearEffectData(n, o) {
1930
1953
  const a = t.getCtx(n);
@@ -1944,18 +1967,20 @@ function sr(t) {
1944
1967
  resetFields(n) {
1945
1968
  e(n).forEach((o) => {
1946
1969
  t.getCtxs(o).forEach((a) => {
1947
- t.$render.clearCache(a), a.rule.value = X(a.defaultValue);
1970
+ t.$render.clearCache(a), a.rule.value = z(a.defaultValue);
1948
1971
  });
1949
- });
1972
+ }), t.vm.$nextTick(() => {
1973
+ s.clearValidateState();
1974
+ }), n == null && (c.Function(t.options.onReset) && R(() => t.options.onReset(s)), t.vm.$emit("reset", s));
1950
1975
  },
1951
1976
  method(n, o) {
1952
1977
  const a = s.el(n);
1953
1978
  if (!a || !a[o])
1954
- throw new Error(ye("err", `${o}方法不存在`));
1979
+ throw new Error(me("err", `${o}方法不存在`));
1955
1980
  return (...u) => a[o](...u);
1956
1981
  },
1957
1982
  exec(n, o, ...a) {
1958
- return j(() => s.method(n, o)(...a));
1983
+ return R(() => s.method(n, o)(...a));
1959
1984
  },
1960
1985
  toJson(n) {
1961
1986
  return Ze(s.rule, n);
@@ -1980,7 +2005,7 @@ function sr(t) {
1980
2005
  t.bus.$once("next-tick", n), t.refresh();
1981
2006
  },
1982
2007
  nextRefresh(n) {
1983
- t.nextRefresh(), n && j(n);
2008
+ t.nextRefresh(), n && R(n);
1984
2009
  },
1985
2010
  emit(n, ...o) {
1986
2011
  t.vm.$emit(n, ...o);
@@ -2011,7 +2036,7 @@ function sr(t) {
2011
2036
  }), s.changeValue = s.changeField = s.setValue, s;
2012
2037
  }
2013
2038
  function or(t) {
2014
- m(t.prototype, {
2039
+ p(t.prototype, {
2015
2040
  initCache() {
2016
2041
  this.clearCacheAll();
2017
2042
  },
@@ -2044,7 +2069,7 @@ function or(t) {
2044
2069
  }
2045
2070
  });
2046
2071
  }
2047
- function A(t) {
2072
+ function I(t) {
2048
2073
  const e = t.replace(/(-[a-z])/g, function(r) {
2049
2074
  return r.replace("-", "").toLocaleUpperCase();
2050
2075
  });
@@ -2056,7 +2081,7 @@ function ot(t) {
2056
2081
  function at(t) {
2057
2082
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
2058
2083
  }
2059
- function Q(t) {
2084
+ function Z(t) {
2060
2085
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
2061
2086
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
2062
2087
  }
@@ -2065,14 +2090,14 @@ function te() {
2065
2090
  const t = 370 + ++ar;
2066
2091
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
2067
2092
  }
2068
- function Z(t, e, r) {
2093
+ function Y(t, e, r) {
2069
2094
  let i = t, s;
2070
2095
  return (e || "").split(".").forEach((n) => {
2071
2096
  s && ((!i[s] || typeof i[s] != "object") && (i[s] = {}), i = i[s]), s = n;
2072
2097
  }), i[s] = r, i;
2073
2098
  }
2074
2099
  function lr(t) {
2075
- m(t.prototype, {
2100
+ p(t.prototype, {
2076
2101
  initRender() {
2077
2102
  this.tempList = {}, this.clearOrgChildren();
2078
2103
  },
@@ -2093,7 +2118,7 @@ function lr(t) {
2093
2118
  const r = (i) => {
2094
2119
  if (i) {
2095
2120
  let s;
2096
- return e.rule.field && (s = i.$scopedSlots["field-" + Q(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + Q(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2121
+ return e.rule.field && (s = i.$scopedSlots["field-" + Z(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + Z(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2097
2122
  }
2098
2123
  };
2099
2124
  return r(this.vm);
@@ -2113,36 +2138,36 @@ function lr(t) {
2113
2138
  const r = e.vm;
2114
2139
  if (r) {
2115
2140
  if (c.Function(r))
2116
- return j(() => e.vm(this.$handle.getInjectData(e)));
2141
+ return R(() => e.vm(this.$handle.getInjectData(e)));
2117
2142
  if (!r._isVue)
2118
- return new L(r);
2119
- } else return new L();
2143
+ return new T(r);
2144
+ } else return new T();
2120
2145
  return r;
2121
2146
  },
2122
2147
  mergeGlobal(e) {
2123
2148
  const r = this.$handle.options.global;
2124
- r && (e.cacheConfig || (e.cacheConfig = r[e.originType] || r[e.type] || r[e.trueType] || {}), e.prop = H({}, [r["*"], e.cacheConfig, e.prop]));
2149
+ r && (e.cacheConfig || (e.cacheConfig = r[e.originType] || r[e.type] || r[e.trueType] || {}), e.prop = U({}, [r["*"], e.cacheConfig, e.prop]));
2125
2150
  },
2126
2151
  setOptions(e) {
2127
- e.prop.optionsTo && e.prop.options && Z(e.prop, e.prop.optionsTo, e.prop.options);
2152
+ e.prop.optionsTo && e.prop.options && Y(e.prop, e.prop.optionsTo, e.prop.options);
2128
2153
  },
2129
2154
  deepSet(e) {
2130
2155
  const r = e.rule.deep;
2131
2156
  r && Object.keys(r).sort((i, s) => i.length < s.length ? -1 : 1).forEach((i) => {
2132
- Z(e.prop, i, r[i]);
2157
+ Y(e.prop, i, r[i]);
2133
2158
  });
2134
2159
  },
2135
2160
  setTempProps(e, r) {
2136
2161
  if (!e.$props) return;
2137
2162
  const { prop: i } = r, s = Object.keys(e.$props), n = this.injectProp(r), o = Object.keys(n);
2138
2163
  s.forEach((u) => {
2139
- w(i.props, u) ? e.$props[u] = i.props[u] : o.indexOf(u) > -1 && (e.$props[u] = n[u]);
2164
+ O(i.props, u) ? e.$props[u] = i.props[u] : o.indexOf(u) > -1 && (e.$props[u] = n[u]);
2140
2165
  });
2141
2166
  const a = e.$options.model && e.$options.model.prop || "value";
2142
2167
  s.indexOf(a) > -1 && (e.$props[a] = i.value);
2143
2168
  },
2144
2169
  renderTemp(e) {
2145
- if (!L.compile)
2170
+ if (!T.compile)
2146
2171
  return Qt("当前使用的Vue构建版本不支持compile,无法使用template功能"), [];
2147
2172
  const r = e.prop, { id: i, key: s } = e;
2148
2173
  if (!this.tempList[i]) {
@@ -2152,7 +2177,7 @@ function lr(t) {
2152
2177
  this.onInput(e, l);
2153
2178
  }), this.tempList[i] = {
2154
2179
  vm: u,
2155
- template: L.compile(r.template)
2180
+ template: T.compile(r.template)
2156
2181
  };
2157
2182
  }
2158
2183
  const { vm: n, template: o } = this.tempList[i];
@@ -2161,7 +2186,7 @@ function lr(t) {
2161
2186
  return c.Undef(a.data) && (a.data = {}), a.key = s, a.data.ref = e.ref, a.data.key = s, a;
2162
2187
  },
2163
2188
  parseSide(e, r) {
2164
- return c.Object(e) ? H({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2189
+ return c.Object(e) ? U({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2165
2190
  },
2166
2191
  renderSides(e, r, i) {
2167
2192
  const s = r[i ? "rule" : "prop"];
@@ -2187,7 +2212,7 @@ function lr(t) {
2187
2212
  else {
2188
2213
  e.initProp(), this.mergeGlobal(e), this.$manager.tidyRule(e), this.deepSet(e), this.setOptions(e), this.ctxProp(e);
2189
2214
  let u = e.prop;
2190
- u.preview = !!(w(u, "preview") ? u.preview : this.options.preview), u.props.formCreateInject = this.injectProp(e);
2215
+ u.preview = !!(O(u, "preview") ? u.preview : this.options.preview), u.props.formCreateInject = this.injectProp(e);
2191
2216
  const l = u.preview;
2192
2217
  if (u.hidden) {
2193
2218
  this.setCache(e, void 0, r);
@@ -2198,8 +2223,8 @@ function lr(t) {
2198
2223
  else {
2199
2224
  let f = [];
2200
2225
  e.parser.renderChildren ? f = e.parser.renderChildren(e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(e));
2201
- const g = this.getTypeSlot(e);
2202
- g ? s = g({
2226
+ const m = this.getTypeSlot(e);
2227
+ m ? s = m({
2203
2228
  rule: i,
2204
2229
  prop: u,
2205
2230
  preview: l,
@@ -2235,7 +2260,7 @@ function lr(t) {
2235
2260
  }, [r]);
2236
2261
  },
2237
2262
  injectProp(e) {
2238
- this.vm.ctxInject[e.id] || F(this.vm.ctxInject, e.id, {
2263
+ this.vm.ctxInject[e.id] || w(this.vm.ctxInject, e.id, {
2239
2264
  api: this.$handle.api,
2240
2265
  form: this.fc.create,
2241
2266
  subForm: (i) => {
@@ -2252,7 +2277,7 @@ function lr(t) {
2252
2277
  input: e.input
2253
2278
  });
2254
2279
  const r = this.vm.ctxInject[e.id];
2255
- return m(r, {
2280
+ return p(r, {
2256
2281
  preview: e.prop.preview,
2257
2282
  options: e.prop.options,
2258
2283
  children: e.rule.children,
@@ -2289,7 +2314,7 @@ function lr(t) {
2289
2314
  this.onInput(e, o);
2290
2315
  },
2291
2316
  expression: `formData.${e.id}`
2292
- }), B(n, e.prop), e.prop;
2317
+ }), D(n, e.prop), e.prop;
2293
2318
  },
2294
2319
  onMounted(e) {
2295
2320
  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");
@@ -2329,9 +2354,9 @@ function lr(t) {
2329
2354
  if (i)
2330
2355
  s = e.type;
2331
2356
  else if (s = e.is, e.type) {
2332
- s = A(e.type);
2357
+ s = I(e.type);
2333
2358
  const o = this.vNode.aliasMap[s];
2334
- o && (s = A(o));
2359
+ o && (s = I(o));
2335
2360
  }
2336
2361
  if (!s) return;
2337
2362
  let n = [[r]];
@@ -2339,8 +2364,8 @@ function lr(t) {
2339
2364
  }
2340
2365
  });
2341
2366
  }
2342
- function be(t) {
2343
- m(this, {
2367
+ function ve(t) {
2368
+ p(this, {
2344
2369
  $handle: t,
2345
2370
  fc: t.fc,
2346
2371
  vm: t.vm,
@@ -2355,10 +2380,10 @@ function be(t) {
2355
2380
  }
2356
2381
  }), this.initCache(), this.initRender();
2357
2382
  }
2358
- or(be);
2359
- lr(be);
2383
+ or(ve);
2384
+ lr(ve);
2360
2385
  function ur(t) {
2361
- m(t.prototype, {
2386
+ p(t.prototype, {
2362
2387
  parseInjectEvent(e, r) {
2363
2388
  const i = e.inject || this.options.injectEvent;
2364
2389
  return this.parseEventLst(e, r, i);
@@ -2375,7 +2400,7 @@ function ur(t) {
2375
2400
  if (!s && Array.isArray(r) && r[0] && (c.String(r[0]) || c.Function(r[0])))
2376
2401
  return this.parseEventLst(e, r, i, !0);
2377
2402
  if (c.String(r)) {
2378
- const n = U(r);
2403
+ const n = q(r);
2379
2404
  if (n && r !== n)
2380
2405
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2381
2406
  }
@@ -2384,17 +2409,17 @@ function ur(t) {
2384
2409
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: u } = s, l = s[r ? "emit" : "nativeEmit"] || [];
2385
2410
  return c.trueArray(l) && l.forEach((f) => {
2386
2411
  if (!f) return;
2387
- let g, b = n || o || a;
2388
- if (c.Object(f) && (g = f.inject, f = f.name, b = f.prefix || b), b) {
2389
- r || (b = `native-${b}`);
2390
- const _ = Q(`${b}-${f}`), v = (...k) => {
2412
+ let m, v = n || o || a;
2413
+ if (c.Object(f) && (m = f.inject, f = f.name, v = f.prefix || v), v) {
2414
+ r || (v = `native-${v}`);
2415
+ const _ = Z(`${v}-${f}`), g = (...k) => {
2391
2416
  this.vm.$emit(_, ...k), this.vm.$emit("emit-event", _, ...k);
2392
2417
  };
2393
- if (v.__emit = !0, !g && u === !1)
2394
- i[f] = v;
2418
+ if (g.__emit = !0, !m && u === !1)
2419
+ i[f] = g;
2395
2420
  else {
2396
- let k = g || u || this.options.injectEvent;
2397
- i[f] = c.Undef(k) ? v : this.inject(s, v, k);
2421
+ let k = m || u || this.options.injectEvent;
2422
+ i[f] = c.Undef(k) ? g : this.inject(s, g, k);
2398
2423
  }
2399
2424
  }
2400
2425
  }), e.computed[r ? "on" : "nativeOn"] = i, i;
@@ -2425,13 +2450,13 @@ function ur(t) {
2425
2450
  });
2426
2451
  }
2427
2452
  const Be = ["hook:updated", "hook:mounted"];
2428
- function fr(t) {
2429
- m(t.prototype, {
2453
+ function hr(t) {
2454
+ p(t.prototype, {
2430
2455
  usePage() {
2431
2456
  const e = this.options.page;
2432
2457
  if (!e) return;
2433
- let r = 25, i = hr(this.rules);
2434
- c.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), m(this, {
2458
+ let r = 25, i = cr(this.rules);
2459
+ c.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), p(this, {
2435
2460
  first: r,
2436
2461
  limit: i,
2437
2462
  pageEnd: this.rules.length <= r
@@ -2445,11 +2470,11 @@ function fr(t) {
2445
2470
  }
2446
2471
  });
2447
2472
  }
2448
- function hr(t) {
2473
+ function cr(t) {
2449
2474
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2450
2475
  }
2451
- function cr(t) {
2452
- m(t.prototype, {
2476
+ function fr(t) {
2477
+ p(t.prototype, {
2453
2478
  clearNextTick() {
2454
2479
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
2455
2480
  },
@@ -2470,7 +2495,7 @@ function dr(t) {
2470
2495
  }
2471
2496
  function lt(t, e, r) {
2472
2497
  const i = te();
2473
- m(this, {
2498
+ p(this, {
2474
2499
  id: i,
2475
2500
  ref: i,
2476
2501
  wrapRef: i + "fi",
@@ -2489,11 +2514,11 @@ function lt(t, e, r) {
2489
2514
  input: !!e.field,
2490
2515
  el: void 0,
2491
2516
  exportEl: void 0,
2492
- defaultValue: e.field ? M(r) : void 0,
2517
+ defaultValue: e.field ? L(r) : void 0,
2493
2518
  field: e.field || void 0
2494
- }), this.updateType(), this.updateKey(), dr(this), this.update(t, !0);
2519
+ }), this.updateKey(), dr(this), this.update(t, !0);
2495
2520
  }
2496
- m(lt.prototype, {
2521
+ p(lt.prototype, {
2497
2522
  effectData(t) {
2498
2523
  return this.payload[t] || (this.payload[t] = {}), this.payload[t];
2499
2524
  },
@@ -2504,17 +2529,17 @@ m(lt.prototype, {
2504
2529
  this.key = te(), t && this.parent && this.parent.updateKey(t);
2505
2530
  },
2506
2531
  updateType() {
2507
- this.originType = this.rule.type, this.type = A(this.rule.type);
2532
+ this.originType = this.rule.type, this.type = I(this.rule.type), this.trueType = this.$handle.getType(this.originType);
2508
2533
  },
2509
2534
  setParser(t) {
2510
2535
  this.parser = t, t.init(this);
2511
2536
  },
2512
2537
  initProp() {
2513
2538
  const t = y({}, this.rule);
2514
- delete t.children, this.prop = H({}, [t, ...Object.keys(this.payload).map((e) => this.payload[e]), this.computed]);
2539
+ delete t.children, this.prop = U({}, [t, ...Object.keys(this.payload).map((e) => this.payload[e]), this.computed]);
2515
2540
  },
2516
2541
  injectValidate() {
2517
- return I(this.prop.validate).map((t) => {
2542
+ return j(this.prop.validate).map((t) => {
2518
2543
  if (c.Function(t.validator)) {
2519
2544
  const e = y({}, t), r = this;
2520
2545
  return e.validator = function(...i) {
@@ -2546,7 +2571,7 @@ m(lt.prototype, {
2546
2571
  this.$handle.watchCtx(this);
2547
2572
  },
2548
2573
  delete() {
2549
- this.unwatch(), this.unlink(), this.rmCtrl(), m(this, {
2574
+ this.unwatch(), this.unlink(), this.rmCtrl(), p(this, {
2550
2575
  deleted: !0,
2551
2576
  prop: y({}, this.rule),
2552
2577
  computed: {},
@@ -2574,28 +2599,27 @@ m(lt.prototype, {
2574
2599
  }
2575
2600
  this.$handle.noWatch(() => {
2576
2601
  this.$handle.deferSyncValue(() => {
2577
- this.rmCtrl(), t(), this.$handle.rmCtx(this), m(this, {
2602
+ this.rmCtrl(), t(), this.$handle.rmCtx(this), p(this, {
2578
2603
  root: []
2579
2604
  });
2580
2605
  }, this.input);
2581
2606
  });
2582
2607
  },
2583
2608
  update(t, e) {
2584
- m(this, {
2609
+ p(this, {
2585
2610
  deleted: !1,
2586
2611
  $handle: t,
2587
2612
  $render: t.$render,
2588
2613
  $api: t.api,
2589
2614
  vm: t.vm,
2590
- trueType: t.getType(this.originType),
2591
2615
  vNode: t.$render.vNode,
2592
2616
  updated: !1,
2593
2617
  cacheValue: this.rule.value
2594
- }), !e && this.unwatch(), this.watchTo(), this.link();
2618
+ }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
2595
2619
  }
2596
2620
  });
2597
2621
  function pr(t) {
2598
- m(t.prototype, {
2622
+ p(t.prototype, {
2599
2623
  nextRefresh(e) {
2600
2624
  const r = this.loadedId;
2601
2625
  this.vm.$nextTick(() => {
@@ -2608,7 +2632,7 @@ function pr(t) {
2608
2632
  __origin__: Ye(e, !0)
2609
2633
  }), mr(r), this.appendValue(r), r.options = Array.isArray(r.options) ? r.options : [], [r, r.prefix, r.suffix].forEach((i) => {
2610
2634
  i && this.loadFn(i, r);
2611
- }), this.loadCtrl(r), r.update && (r.update = U(r.update)), r;
2635
+ }), this.loadCtrl(r), r.update && (r.update = q(r.update)), r;
2612
2636
  },
2613
2637
  loadFn(e, r) {
2614
2638
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -2617,12 +2641,12 @@ function pr(t) {
2617
2641
  },
2618
2642
  loadCtrl(e) {
2619
2643
  e.control && e.control.forEach((r) => {
2620
- r.handle && (r.handle = U(r.handle));
2644
+ r.handle && (r.handle = q(r.handle));
2621
2645
  });
2622
2646
  },
2623
2647
  syncProp(e) {
2624
2648
  const r = e.rule;
2625
- c.trueArray(r.sync) && B([{
2649
+ c.trueArray(r.sync) && D([{
2626
2650
  on: r.sync.reduce((i, s) => (i[`update:${s}`] = (n) => {
2627
2651
  r.props[s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
2628
2652
  }, i), {})
@@ -2657,31 +2681,31 @@ function pr(t) {
2657
2681
  let a = Ve(n);
2658
2682
  const u = () => !!(a.field && this.fieldCtx[a.field] && this.fieldCtx[a.field][0] !== n.__fc__);
2659
2683
  this.ruleEffect(a, "init", { repeat: u() }), u() && this.vm.$emit("repeat-field", n, this.api);
2660
- let l, f = !1, g = !!n.__fc__, b = a.value;
2661
- if (g) {
2662
- l = n.__fc__, b = l.defaultValue;
2663
- const v = !l.check(this);
2684
+ let l, f = !1, m = !!n.__fc__, v = a.value;
2685
+ if (m) {
2686
+ l = n.__fc__, v = l.defaultValue;
2687
+ const g = !l.check(this);
2664
2688
  if (l.deleted) {
2665
- if (v) {
2689
+ if (g) {
2666
2690
  if (Le(l))
2667
2691
  return;
2668
2692
  l.update(this);
2669
2693
  }
2670
- } else if (v) {
2694
+ } else if (g) {
2671
2695
  if (Le(l))
2672
2696
  return;
2673
- e[o] = n = n._clone ? n._clone() : $e(n), l = null, f = !0;
2697
+ e[o] = n = n._clone ? n._clone() : ge(n), l = null, f = !0;
2674
2698
  }
2675
2699
  }
2676
2700
  if (l)
2677
- l.originType !== l.rule.type && (l.updateType(), this.bindParser(l)), this.appendValue(l.rule);
2701
+ l.originType !== l.rule.type && l.updateType(), this.bindParser(l), this.appendValue(l.rule);
2678
2702
  else {
2679
- const v = this.parseRule(n);
2680
- l = new lt(this, v, b), this.bindParser(l);
2703
+ const g = this.parseRule(n);
2704
+ l = new lt(this, g, v), this.bindParser(l);
2681
2705
  }
2682
- if ([!1, !0].forEach((v) => this.parseEmit(l, v)), this.syncProp(l), l.parent = r || null, l.root = e, this.setCtx(l), !f && !g && this.effect(l, "load"), this.effect(l, "created"), l.parser.loadChildren === !1 || s(l.rule.children, l), !r) {
2683
- const v = i(o);
2684
- v > -1 || !o ? this.sort.splice(v + 1, 0, l.id) : this.sort.push(l.id);
2706
+ if ([!1, !0].forEach((g) => this.parseEmit(l, g)), this.syncProp(l), l.parent = r || null, l.root = e, this.setCtx(l), !f && !m && this.effect(l, "load"), this.effect(l, "created"), l.parser.loadChildren === !1 || s(l.rule.children, l), !r) {
2707
+ const g = i(o);
2708
+ g > -1 || !o ? this.sort.splice(g + 1, 0, l.id) : this.sort.push(l.id);
2685
2709
  }
2686
2710
  const _ = l.rule;
2687
2711
  return l.updated || (l.updated = !0, c.Function(_.update) && this.bus.$once("load-end", () => {
@@ -2696,12 +2720,12 @@ function pr(t) {
2696
2720
  const r = yr(e), i = [], s = this.api;
2697
2721
  if (!r.length) return !1;
2698
2722
  for (let a = 0; a < r.length; a++) {
2699
- const u = r[a], l = u.handle || function(g) {
2700
- return (W[u.condition || "=="] || W["=="])(g, u.value);
2723
+ const u = r[a], l = u.handle || function(m) {
2724
+ return (K[u.condition || "=="] || K["=="])(m, u.value);
2701
2725
  };
2702
2726
  if (!c.trueArray(u.rule)) continue;
2703
- const f = q(y({}, u), {
2704
- valid: j(() => l(e.rule.value, s)),
2727
+ const f = M(y({}, u), {
2728
+ valid: R(() => l(e.rule.value, s)),
2705
2729
  ctrl: gr(e, u.rule),
2706
2730
  isHidden: c.String(u.rule[0])
2707
2731
  });
@@ -2711,14 +2735,14 @@ function pr(t) {
2711
2735
  const n = [];
2712
2736
  let o = !1;
2713
2737
  return this.deferSyncValue(() => {
2714
- i.reverse().forEach(({ isHidden: a, valid: u, rule: l, prepend: f, append: g, child: b, ctrl: _, method: v }) => {
2738
+ i.reverse().forEach(({ isHidden: a, valid: u, rule: l, prepend: f, append: m, child: v, ctrl: _, method: g }) => {
2715
2739
  if (a) {
2716
2740
  u ? e.ctrlRule.push({
2717
2741
  __ctrl: !0,
2718
2742
  children: l,
2719
2743
  valid: u
2720
- }) : e.ctrlRule.splice(e.ctrlRule.indexOf(_), 1), n[u ? "push" : "unshift"](() => {
2721
- v === "disabled" ? this.api.disabled(!u, l) : v === "display" ? this.api.display(u, l) : v === "required" ? (l.forEach((k) => {
2744
+ }) : _ && e.ctrlRule.splice(e.ctrlRule.indexOf(_) >>> 0, 1), n[u ? "push" : "unshift"](() => {
2745
+ g === "disabled" || g === "enabled" ? this.api.disabled(!u, l) : g === "display" ? this.api.display(u, l) : g === "required" ? (l.forEach((k) => {
2722
2746
  this.api.setEffect(k, "required", u);
2723
2747
  }), u || this.api.clearValidateState(l)) : this.api.hidden(!u, l);
2724
2748
  });
@@ -2733,11 +2757,11 @@ function pr(t) {
2733
2757
  children: l
2734
2758
  };
2735
2759
  e.ctrlRule.push(k), this.bus.$once("load-start", () => {
2736
- f ? s.prepend(k, f, b) : g || b ? s.append(k, g || e.id, b) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, k);
2760
+ f ? s.prepend(k, f, v) : m || v ? s.append(k, m || e.id, v) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, k);
2737
2761
  });
2738
2762
  } else {
2739
2763
  e.ctrlRule.splice(e.ctrlRule.indexOf(_), 1);
2740
- const k = z(_);
2764
+ const k = Q(_);
2741
2765
  k && k.rm();
2742
2766
  }
2743
2767
  });
@@ -2766,7 +2790,7 @@ function pr(t) {
2766
2790
  function mr(t) {
2767
2791
  const e = rt();
2768
2792
  return Object.keys(e).forEach((r) => {
2769
- w(t, r) || F(t, r, e[r]);
2793
+ O(t, r) || w(t, r, e[r]);
2770
2794
  }), t;
2771
2795
  }
2772
2796
  function yr(t) {
@@ -2784,7 +2808,7 @@ function Le(t) {
2784
2808
  return !!t.rule.__ctrl;
2785
2809
  }
2786
2810
  function $r(t) {
2787
- m(t.prototype, {
2811
+ p(t.prototype, {
2788
2812
  getValue(e) {
2789
2813
  return c.Undef(e.cacheValue) && (e.cacheValue = e.parser.toValue(this.getFormData(e), e)), e.cacheValue;
2790
2814
  },
@@ -2800,7 +2824,7 @@ function $r(t) {
2800
2824
  e.input && (this.isQuote(e, i = e.parser.toValue(r, e)) || this.isChange(e, i)) && this.setValue(e, i, r);
2801
2825
  },
2802
2826
  setFormData(e, r) {
2803
- F(this.formData, e.id, r === null ? void 0 : r);
2827
+ w(this.formData, e.id, r === null ? void 0 : r);
2804
2828
  },
2805
2829
  getFormData(e) {
2806
2830
  return this.formData[e.id];
@@ -2808,7 +2832,7 @@ function $r(t) {
2808
2832
  validate() {
2809
2833
  return Me(this.vm.validate), this.fields().forEach((e) => {
2810
2834
  this.fieldCtx[e].forEach((r) => {
2811
- this.vm.validate[r.id] = I(r.rule.validate);
2835
+ this.vm.validate[r.id] = j(r.rule.validate);
2812
2836
  });
2813
2837
  }), this.vm.validate;
2814
2838
  },
@@ -2835,13 +2859,13 @@ function $r(t) {
2835
2859
  };
2836
2860
  },
2837
2861
  appendValue(e) {
2838
- !e.field || !w(this.appendData, e.field) || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
2862
+ !e.field || !O(this.appendData, e.field) || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
2839
2863
  },
2840
2864
  addSubForm(e, r) {
2841
2865
  this.subForm[e.id] = r;
2842
2866
  },
2843
2867
  deferSyncValue(e, r) {
2844
- this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), j(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncValue());
2868
+ this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), R(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncValue());
2845
2869
  },
2846
2870
  syncValue() {
2847
2871
  if (this.deferSyncFn)
@@ -2856,7 +2880,7 @@ function $r(t) {
2856
2880
  },
2857
2881
  refreshUpdate(e, r, i, s) {
2858
2882
  if (c.Function(e.rule.update)) {
2859
- const n = j(() => e.rule.update(r, e.origin, this.api, {
2883
+ const n = R(() => e.rule.update(r, e.origin, this.api, {
2860
2884
  origin: i || "change",
2861
2885
  linkField: s
2862
2886
  }));
@@ -2909,7 +2933,7 @@ const ce = {
2909
2933
  }
2910
2934
  }, vr = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "component", "cache"];
2911
2935
  function br(t) {
2912
- m(t.prototype, {
2936
+ p(t.prototype, {
2913
2937
  getCtx(e) {
2914
2938
  return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
2915
2939
  },
@@ -2938,17 +2962,17 @@ function br(t) {
2938
2962
  },
2939
2963
  getParser(e) {
2940
2964
  const r = this.fc.parsers;
2941
- return r[e.originType] || r[A(e.type)] || r[e.trueType] || ce;
2965
+ return r[e.originType] || r[I(e.type)] || r[e.trueType] || ce;
2942
2966
  },
2943
2967
  bindParser(e) {
2944
2968
  e.setParser(this.getParser(e));
2945
2969
  },
2946
2970
  getType(e) {
2947
- const r = this.fc.CreateNode.aliasMap, i = r[e] || r[A(e)] || e;
2948
- return A(i);
2971
+ const r = this.fc.CreateNode.aliasMap, i = r[e] || r[I(e)] || e;
2972
+ return I(i);
2949
2973
  },
2950
2974
  noWatch(e) {
2951
- this.noWatchFn || (this.noWatchFn = e), j(e), this.noWatchFn === e && (this.noWatchFn = null);
2975
+ this.noWatchFn || (this.noWatchFn = e), R(e), this.noWatchFn === e && (this.noWatchFn = null);
2952
2976
  },
2953
2977
  watchCtx(e) {
2954
2978
  const r = this.vm;
@@ -2993,7 +3017,7 @@ function br(t) {
2993
3017
  e.input && Object.defineProperty(e.rule, "value", {
2994
3018
  value: e.rule.value,
2995
3019
  writable: !0
2996
- }), N(this.ctxs, r), N(this.$render.tempList, r), N(this.$render.orgChildren, r), N(this.vm.ctxInject, r), N(this.formData, r), N(this.subForm, r), N(e, "cacheValue"), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !w(this.fieldCtx, i) && N(this.form, i), this.deferSyncValue(() => {
3020
+ }), B(this.ctxs, r), B(this.$render.tempList, r), B(this.$render.orgChildren, r), B(this.vm.ctxInject, r), B(this.formData, r), B(this.subForm, r), B(e, "cacheValue"), s && this.rmIdCtx(e, i, "field"), n && this.rmIdCtx(e, n, "name"), s && !O(this.fieldCtx, i) && B(this.form, i), this.deferSyncValue(() => {
2997
3021
  this.reloading || (e.parser.loadChildren !== !1 && c.trueArray(e.rule.children) && e.rule.children.forEach((a) => a.__fc__ && this.rmCtx(a.__fc__)), e.root === this.rules && this.vm._renderRule());
2998
3022
  }, s);
2999
3023
  const o = this.sort.indexOf(r);
@@ -3002,7 +3026,7 @@ function br(t) {
3002
3026
  });
3003
3027
  }
3004
3028
  function Cr(t) {
3005
- m(t.prototype, {
3029
+ p(t.prototype, {
3006
3030
  mounted() {
3007
3031
  const e = () => {
3008
3032
  this.isMounted = !0, this.lifecycle("mounted");
@@ -3013,17 +3037,17 @@ function Cr(t) {
3013
3037
  this.vm.$emit(e, this.api), this.emitEvent(e, this.api);
3014
3038
  },
3015
3039
  emitEvent(e, ...r) {
3016
- const i = this.options[e] || this.options[A("on-" + e)];
3040
+ const i = this.options[e] || this.options[I("on-" + e)];
3017
3041
  if (i) {
3018
- const s = U(i);
3019
- c.Function(s) && j(() => s(...r));
3042
+ const s = q(i);
3043
+ c.Function(s) && R(() => s(...r));
3020
3044
  }
3021
3045
  this.bus.$emit(e, ...r);
3022
3046
  }
3023
3047
  });
3024
3048
  }
3025
3049
  function _r(t) {
3026
- m(t.prototype, {
3050
+ p(t.prototype, {
3027
3051
  useProvider() {
3028
3052
  const e = this.fc.providers;
3029
3053
  Object.keys(e).forEach((r) => {
@@ -3045,7 +3069,7 @@ function _r(t) {
3045
3069
  let i = {
3046
3070
  required: () => {
3047
3071
  var s, n;
3048
- return (w(e.rule, "$required") ? e.rule.$required : (n = (s = e.rule) == null ? void 0 : s.effect) == null ? void 0 : n.required) || !1;
3072
+ return (O(e.rule, "$required") ? e.rule.$required : (n = (s = e.rule) == null ? void 0 : s.effect) == null ? void 0 : n.required) || !1;
3049
3073
  }
3050
3074
  };
3051
3075
  Object.keys(e.rule.effect || {}).forEach((s) => {
@@ -3075,9 +3099,9 @@ function _r(t) {
3075
3099
  }, r);
3076
3100
  },
3077
3101
  getEffect(e, r) {
3078
- if (w(e, "$" + r))
3102
+ if (O(e, "$" + r))
3079
3103
  return e["$" + r];
3080
- if (w(e, "effect") && w(e.effect, r))
3104
+ if (O(e, "effect") && O(e.effect, r))
3081
3105
  return e.effect[r];
3082
3106
  },
3083
3107
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
@@ -3086,15 +3110,15 @@ function _r(t) {
3086
3110
  Object.keys(u).forEach((l) => {
3087
3111
  const f = this.providers[l];
3088
3112
  if (!f || f.input && !i) return;
3089
- let g;
3113
+ let m;
3090
3114
  if (!f._c)
3091
- g = "*";
3115
+ m = "*";
3092
3116
  else if (f._used.indexOf(s) > -1)
3093
- g = s;
3117
+ m = s;
3094
3118
  else
3095
3119
  return;
3096
- const b = y({ value: u[l], getValue: () => this.getEffect(r, l) }, a || {});
3097
- e && (b.getProp = () => e.effectData(l), b.clearProp = () => e.clearEffectData(l), b.mergeProp = (_) => H(b.getProp(), [_]), b.id = e.id), this.bus.$emit(`p:${l}:${g}:${f.input ? 1 : 0}`, o, [b, r, this.api]);
3120
+ const v = y({ value: u[l], getValue: () => this.getEffect(r, l) }, a || {});
3121
+ e && (v.getProp = () => e.effectData(l), v.clearProp = () => e.clearEffectData(l), v.mergeProp = (_) => U(v.getProp(), [_]), v.id = e.id), this.bus.$emit(`p:${l}:${m}:${f.input ? 1 : 0}`, o, [v, r, this.api]);
3098
3122
  });
3099
3123
  }
3100
3124
  });
@@ -3111,8 +3135,8 @@ function Or(t) {
3111
3135
  return r.length ? r : !1;
3112
3136
  } else return c.String(e) ? [e] : !1;
3113
3137
  }
3114
- function P(t) {
3115
- m(this, {
3138
+ function V(t) {
3139
+ p(this, {
3116
3140
  fc: t,
3117
3141
  vm: t.vm,
3118
3142
  watching: !1,
@@ -3141,11 +3165,11 @@ function P(t) {
3141
3165
  bus() {
3142
3166
  return t.bus;
3143
3167
  }
3144
- }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new be(this), this.api = t.extendApi(sr(this), this);
3168
+ }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new ve(this), this.api = t.extendApi(sr(this), this);
3145
3169
  }
3146
- m(P.prototype, {
3170
+ p(V.prototype, {
3147
3171
  initData(t) {
3148
- m(this, {
3172
+ p(this, {
3149
3173
  ctxs: {},
3150
3174
  fieldCtx: {},
3151
3175
  nameCtx: {},
@@ -3158,20 +3182,20 @@ m(P.prototype, {
3158
3182
  },
3159
3183
  beforeFetch(t) {
3160
3184
  return new Promise((e) => {
3161
- const r = this.options.beforeFetch && j(() => this.options.beforeFetch(t, { api: this.api }));
3185
+ const r = this.options.beforeFetch && R(() => this.options.beforeFetch(t, { api: this.api }));
3162
3186
  r && c.Function(r.then) ? r.then(e) : e();
3163
3187
  });
3164
3188
  }
3165
3189
  });
3166
- ur(P);
3167
- fr(P);
3168
- cr(P);
3169
- pr(P);
3170
- $r(P);
3171
- br(P);
3172
- Cr(P);
3173
- _r(P);
3174
- const wr = "fcFragment", ie = {
3190
+ ur(V);
3191
+ hr(V);
3192
+ fr(V);
3193
+ pr(V);
3194
+ $r(V);
3195
+ br(V);
3196
+ Cr(V);
3197
+ _r(V);
3198
+ const wr = "fcFragment", re = {
3175
3199
  name: wr,
3176
3200
  functional: !0,
3177
3201
  props: ["vnode"],
@@ -3182,31 +3206,31 @@ const wr = "fcFragment", ie = {
3182
3206
  function Fr(t) {
3183
3207
  return c.String(t) ? { domProps: { innerHTML: t } } : t;
3184
3208
  }
3185
- function Sr() {
3209
+ function Er() {
3186
3210
  const t = {};
3187
3211
  function e(r) {
3188
3212
  r && this.setVm(r);
3189
3213
  }
3190
- return m(e.prototype, {
3214
+ return p(e.prototype, {
3191
3215
  setVm(r) {
3192
3216
  this.vm = r, this.$h = r.$createElement;
3193
3217
  },
3194
3218
  make(r, i, s) {
3195
- return Y.config.isReservedTag(r) && i.nativeOn && delete i.nativeOn, this.makeComponent(r, i, s);
3219
+ return T.config.isReservedTag(r) && i.nativeOn && delete i.nativeOn, this.makeComponent(r, i, s);
3196
3220
  },
3197
3221
  makeComponent(r, i, s) {
3198
3222
  let n = this.$h(r, Fr(i), s || []);
3199
3223
  return n.context = this.vm, n;
3200
3224
  },
3201
3225
  aliasMap: t
3202
- }), m(e, {
3226
+ }), p(e, {
3203
3227
  aliasMap: t,
3204
3228
  alias(r, i) {
3205
3229
  t[r] = i;
3206
3230
  },
3207
3231
  use(r) {
3208
3232
  Object.keys(r).forEach((i) => {
3209
- const s = Q(i), n = at(i).toLocaleLowerCase(), o = r[i];
3233
+ const s = Z(i), n = at(i).toLocaleLowerCase(), o = r[i];
3210
3234
  [i, s, n].forEach((a) => {
3211
3235
  e.alias(i, o), e.prototype[a] = function(u, l) {
3212
3236
  return this.make(o, u, l);
@@ -3216,13 +3240,13 @@ function Sr() {
3216
3240
  }
3217
3241
  }), e;
3218
3242
  }
3219
- function Rr(t) {
3243
+ function Sr(t) {
3220
3244
  class e extends ut {
3221
3245
  }
3222
3246
  return Object.assign(e.prototype, t), e;
3223
3247
  }
3224
3248
  function ut(t) {
3225
- m(this, {
3249
+ p(this, {
3226
3250
  $handle: t,
3227
3251
  vm: t.vm,
3228
3252
  options: {},
@@ -3232,7 +3256,7 @@ function ut(t) {
3232
3256
  }
3233
3257
  }), this.updateKey(), this.init();
3234
3258
  }
3235
- m(ut.prototype, {
3259
+ p(ut.prototype, {
3236
3260
  __init() {
3237
3261
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
3238
3262
  },
@@ -3259,7 +3283,7 @@ m(ut.prototype, {
3259
3283
  return e(this.vm);
3260
3284
  },
3261
3285
  mergeOptions(t, e) {
3262
- return B(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3286
+ return D(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3263
3287
  },
3264
3288
  updateOptions(t) {
3265
3289
  this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
@@ -3277,20 +3301,20 @@ m(ut.prototype, {
3277
3301
  render(t) {
3278
3302
  }
3279
3303
  });
3280
- const Er = function(t) {
3304
+ const Rr = function(t) {
3281
3305
  const e = {
3282
3306
  name: "loadData",
3283
3307
  _fn: [],
3284
3308
  created(r, i, s) {
3285
3309
  this.deleted(r);
3286
- let n = I(r.getValue());
3310
+ let n = j(r.getValue());
3287
3311
  const o = [];
3288
3312
  n.forEach((a) => {
3289
3313
  if (a) {
3290
3314
  const u = () => {
3291
3315
  a.watch !== !1 && (t.bus.$off("p.loadData." + a.attr, u), t.bus.$once("p.loadData." + a.attr, u));
3292
3316
  let l;
3293
- a.attr && (l = t.loadData[a.attr] || a.default, a.copy !== !1 && (l = M(l))), Z(r.getProp(), a.to || "options", l), s.sync(i);
3317
+ a.attr && (l = t.loadData[a.attr] || a.default, a.copy !== !1 && (l = L(l))), Y(r.getProp(), a.to || "options", l), s.sync(i);
3294
3318
  };
3295
3319
  o.push(() => t.bus.$off("p.loadData." + a.attr, u)), u();
3296
3320
  }
@@ -3303,13 +3327,13 @@ const Er = function(t) {
3303
3327
  }
3304
3328
  };
3305
3329
  return e.watch = e.created, e;
3306
- }, ft = {
3330
+ }, ht = {
3307
3331
  name: "componentValidate",
3308
3332
  load(t, e, r) {
3309
3333
  const i = t.getValue();
3310
3334
  i ? t.getProp().validate = [{
3311
3335
  validator(...s) {
3312
- const n = z(e);
3336
+ const n = Q(e);
3313
3337
  if (n)
3314
3338
  return r.exec(n.id, i === !0 ? "formCreateValidate" : i, ...s, {
3315
3339
  attr: t,
@@ -3320,7 +3344,7 @@ const Er = function(t) {
3320
3344
  }] : (t.clearProp(), r.clearValidateState([e.field]));
3321
3345
  },
3322
3346
  watch(...t) {
3323
- ft.load(...t);
3347
+ ht.load(...t);
3324
3348
  }
3325
3349
  }, jr = function(t) {
3326
3350
  function e(i) {
@@ -3331,41 +3355,41 @@ const Er = function(t) {
3331
3355
  }
3332
3356
  function r(i, s, n) {
3333
3357
  let o = i.value;
3334
- const a = (g) => {
3335
- g === void 0 ? (i.clearProp(), n.sync(s)) : Z(i.getProp(), o.to || "options", g);
3358
+ const a = (m) => {
3359
+ m === void 0 ? (i.clearProp(), n.sync(s)) : Y(i.getProp(), o.to || "options", m);
3336
3360
  };
3337
3361
  if (c.Function(o) && (o = o(s, n)), o = e(o), !o || !o.action) {
3338
3362
  a(void 0);
3339
3363
  return;
3340
3364
  }
3341
- o = M(o), o.to || (o.to = "options");
3365
+ o = L(o), o.to || (o.to = "options");
3342
3366
  const u = o.onError, l = () => {
3343
3367
  if (!i.getValue())
3344
3368
  return i.clearProp(), n.sync(s), !0;
3345
- }, f = q(y({
3369
+ }, f = M(y({
3346
3370
  headers: {}
3347
3371
  }, o), {
3348
- onSuccess(g, b) {
3372
+ onSuccess(m, v) {
3349
3373
  if (l()) return;
3350
- let _ = (v) => b ? v : w(v, "data") ? v.data : v;
3351
- c.Function(o.parse) ? _ = o.parse : o.parse && c.String(o.parse) && (_ = (v) => (o.parse.split(".").forEach((k) => {
3352
- v && (v = v[k]);
3353
- }), v)), a(_(g, s, n)), n.sync(s);
3374
+ let _ = (g) => v ? g : O(g, "data") ? g.data : g;
3375
+ c.Function(o.parse) ? _ = o.parse : o.parse && c.String(o.parse) && (_ = (g) => (o.parse.split(".").forEach((k) => {
3376
+ g && (g = g[k]);
3377
+ }), g)), a(_(m, s, n)), n.sync(s);
3354
3378
  },
3355
- onError(g) {
3356
- a(void 0), !l() && (u || ((b) => ge(b.message || "fetch fail " + o.action)))(g, s, n);
3379
+ onError(m) {
3380
+ a(void 0), !l() && (u || ((v) => ye(v.message || "fetch fail " + o.action)))(m, s, n);
3357
3381
  }
3358
3382
  });
3359
3383
  t.$handle.beforeFetch(f, { rule: s, api: n }).then(() => {
3360
3384
  if (c.Function(o.action)) {
3361
- o.action(s, n).then((g) => {
3362
- f.onSuccess(g, !0);
3363
- }).catch((g) => {
3364
- f.onError(g);
3385
+ o.action(s, n).then((m) => {
3386
+ f.onSuccess(m, !0);
3387
+ }).catch((m) => {
3388
+ f.onError(m);
3365
3389
  });
3366
3390
  return;
3367
3391
  }
3368
- j(() => t.create.fetch(f, { inject: i, rule: s, api: n }));
3392
+ R(() => t.create.fetch(f, { inject: i, rule: s, api: n }));
3369
3393
  });
3370
3394
  }
3371
3395
  return {
@@ -3377,7 +3401,7 @@ const Er = function(t) {
3377
3401
  r(...i);
3378
3402
  }
3379
3403
  };
3380
- }, ht = {
3404
+ }, ct = {
3381
3405
  name: "required",
3382
3406
  load(t, e, r) {
3383
3407
  const i = Ir(t.getValue());
@@ -3399,7 +3423,7 @@ const Er = function(t) {
3399
3423
  r.sync(e);
3400
3424
  },
3401
3425
  watch(...t) {
3402
- ht.load(...t);
3426
+ ct.load(...t);
3403
3427
  }
3404
3428
  };
3405
3429
  function Ir(t) {
@@ -3407,9 +3431,9 @@ function Ir(t) {
3407
3431
  }
3408
3432
  const Ar = {
3409
3433
  fetch: jr,
3410
- loadData: Er,
3411
- required: ht,
3412
- componentValidate: ft
3434
+ loadData: Rr,
3435
+ required: ct,
3436
+ componentValidate: ht
3413
3437
  }, Vr = "html", Pr = {
3414
3438
  name: Vr,
3415
3439
  loadChildren: !1,
@@ -3420,19 +3444,18 @@ const Ar = {
3420
3444
  return Array.isArray(t.rule.children) ? t.rule.children.filter((e) => c.String(e)).join("") : "";
3421
3445
  }
3422
3446
  };
3423
- let L = typeof window != "undefined" && window.Vue ? window.Vue : Y;
3424
3447
  function Tr(t, e) {
3425
3448
  let r;
3426
3449
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
3427
3450
  }
3428
- function ne() {
3451
+ function ie() {
3429
3452
  return Tr("name", ...arguments);
3430
3453
  }
3431
3454
  function qe(t) {
3432
3455
  return !t || !t.el ? window.document.body : c.Element(t.el) ? t.el : document.querySelector(t.el);
3433
3456
  }
3434
3457
  function Ue(t, e) {
3435
- const r = new L({
3458
+ const r = new T({
3436
3459
  data() {
3437
3460
  return { rule: t, option: e || {} };
3438
3461
  },
@@ -3444,84 +3467,85 @@ function Ue(t, e) {
3444
3467
  }
3445
3468
  function Dr(t) {
3446
3469
  const e = t.key || [], r = t.array || [], i = t.normal || [];
3447
- Qe.push(...e), pe.push(...r), me.push(...i), it([...e, ...r, ...i]);
3470
+ Qe.push(...e), de.push(...r), pe.push(...i), it([...e, ...r, ...i]);
3448
3471
  }
3449
3472
  let Br = 1;
3450
- const E = {};
3451
- function ct(t) {
3473
+ const S = {};
3474
+ function ft(t) {
3452
3475
  const e = {
3453
- [ie.name]: ie
3476
+ [re.name]: re
3454
3477
  }, r = {}, i = {}, s = y({}, Ar), n = rr();
3455
3478
  let o = { global: {} };
3456
- const a = {}, u = Sr();
3479
+ const a = {}, u = Er(), l = {};
3457
3480
  Dr(t.attrs || {});
3458
- function l(h) {
3459
- const d = E[h];
3481
+ function f(h) {
3482
+ const d = S[h];
3460
3483
  if (Array.isArray(d))
3461
3484
  return d.map(($) => $.api());
3462
3485
  if (d)
3463
3486
  return d.api();
3464
3487
  }
3465
- function f() {
3466
- const h = ne(...arguments);
3488
+ function m() {
3489
+ const h = ie(...arguments);
3467
3490
  h.id && h.prop && (i[h.id] = h.prop);
3468
3491
  }
3469
- function g() {
3470
- const h = ne(...arguments);
3471
- h.id && h.prop && (s[h.id] = q(y({}, h.prop), { name: h.id }));
3492
+ function v() {
3493
+ const h = ie(...arguments);
3494
+ h.id && h.prop && (s[h.id] = M(y({}, h.prop), { name: h.id }));
3472
3495
  }
3473
- function b(h) {
3496
+ function _(h) {
3474
3497
  u.use(h);
3475
3498
  }
3476
- function _() {
3477
- const h = ne(...arguments);
3499
+ function g() {
3500
+ const h = ie(...arguments);
3478
3501
  if (!h.id || !h.prop) return ce;
3479
- const d = A(h.id), $ = h.prop, C = $.merge === !0 ? r[d] : void 0;
3480
- r[d] = $, Object.setPrototypeOf($, C || ce), n[d] = R(d), $.maker && m(n, $.maker);
3502
+ const d = I(h.id), $ = h.prop, b = $.merge === !0 ? r[d] : void 0;
3503
+ r[d] = $, Object.setPrototypeOf($, b || ce), n[d] = E(d), $.maker && p(n, $.maker);
3481
3504
  }
3482
- function v(h, d) {
3505
+ function k(h, d) {
3483
3506
  let $;
3484
3507
  if (c.String(h)) {
3485
- if ($ = A(h), ["form-create", "formcreate"].indexOf($) > -1)
3486
- return re();
3508
+ if ($ = I(h), ["form-create", "formcreate"].indexOf($) > -1)
3509
+ return G();
3487
3510
  if (d === void 0)
3488
3511
  return e[$];
3489
3512
  } else
3490
- $ = A(h.name), d = h;
3513
+ $ = I(h.name), d = h;
3491
3514
  if (!$ || !d) return;
3492
- const C = A($);
3493
- e[$] = d, e[C] = d, delete u.aliasMap[$], delete u.aliasMap[C], delete r[$], delete r[C], d.formCreateParser && _($, d.formCreateParser);
3515
+ const b = I($);
3516
+ e[$] = d, e[b] = d, delete u.aliasMap[$], delete u.aliasMap[b], delete r[$], delete r[b], d.formCreateParser && g($, d.formCreateParser);
3494
3517
  }
3495
- function k(h) {
3496
- Object.keys(E).forEach((d) => {
3497
- (Array.isArray(E[d]) ? E[d] : [E[d]]).forEach((C) => {
3498
- C.bus.$emit("p.loadData." + h);
3518
+ function be(h) {
3519
+ Object.keys(S).forEach((d) => {
3520
+ (Array.isArray(S[d]) ? S[d] : [S[d]]).forEach((b) => {
3521
+ b.bus.$emit("p.loadData." + h);
3499
3522
  });
3500
3523
  });
3501
3524
  }
3502
3525
  function Ce(h, d) {
3503
- a[h] = d, k(h);
3526
+ a[h] = d, be(h);
3504
3527
  }
3505
3528
  function _e(h, d) {
3506
- return w(a, h) ? a[h] : d;
3529
+ return O(a, h) ? a[h] : d;
3507
3530
  }
3508
3531
  function dt(h) {
3509
- delete a[h], k(h);
3532
+ delete a[h], be(h);
3510
3533
  }
3511
- function re() {
3512
- return L.extend(Gt(Oe));
3534
+ function G() {
3535
+ return Gt(Oe, e, i);
3513
3536
  }
3514
3537
  function ke() {
3515
- return L.extend(ie);
3538
+ return re;
3516
3539
  }
3517
3540
  function pt(h, d) {
3518
- return c.Function(h.install) ? h.install(T, d) : c.Function(h) && h(T, d), this;
3541
+ return c.Function(h.install) ? h.install(N, d) : c.Function(h) && h(N, d), this;
3519
3542
  }
3520
- function T(h, d, $) {
3521
- let C = Ue(h, d || {});
3522
- const V = C.$refs.fc.formCreate;
3523
- return V.$parent = $, qe(V.options).appendChild(C.$el), V.api();
3543
+ function N(h, d, $) {
3544
+ let b = Ue(h, d || {});
3545
+ const A = b.$refs.fc.formCreate;
3546
+ return A.$parent = $, qe(A.options).appendChild(b.$el), A.api();
3524
3547
  }
3548
+ Object.setPrototypeOf(N, l);
3525
3549
  function mt(h) {
3526
3550
  let d = y({}, t);
3527
3551
  return h ? d.inherit = {
@@ -3531,15 +3555,15 @@ function ct(t) {
3531
3555
  providers: s,
3532
3556
  maker: n,
3533
3557
  loadData: a
3534
- } : delete d.inherit, ct(d);
3558
+ } : delete d.inherit, ft(d);
3535
3559
  }
3536
3560
  function Oe(h) {
3537
3561
  const d = h.$options.propsData.rule;
3538
- m(this, {
3562
+ p(this, {
3539
3563
  id: Br++,
3540
3564
  vm: h,
3541
- create: T,
3542
- manager: Rr(t.manager),
3565
+ create: N,
3566
+ manager: Sr(t.manager),
3543
3567
  parsers: r,
3544
3568
  providers: s,
3545
3569
  rules: Array.isArray(d) ? d : [],
@@ -3553,15 +3577,15 @@ function ct(t) {
3553
3577
  getData: _e,
3554
3578
  loadData: a,
3555
3579
  CreateNode: u,
3556
- bus: new L(),
3580
+ bus: new T(),
3557
3581
  unwatch: null,
3558
3582
  options: {},
3559
3583
  extendApi: t.extendApi || (($) => $)
3560
- }), this.init(), this.initOptions(), this.name && (this.inFor ? (E[this.name] || (E[this.name] = []), E[this.name].push(this)) : E[this.name] = this);
3584
+ }), this.init(), this.initOptions(), this.name && (this.inFor ? (S[this.name] || (S[this.name] = []), S[this.name].push(this)) : S[this.name] = this);
3561
3585
  }
3562
- m(Oe.prototype, {
3586
+ p(Oe.prototype, {
3563
3587
  init() {
3564
- const h = this.vm, d = new P(this);
3588
+ const h = this.vm, d = new V(this);
3565
3589
  this.$handle = d, h.$f = d.api, h.$emit("input", d.api), h.$on("hook:created", () => {
3566
3590
  this.isSub() && (this.unwatch = h.$watch(() => h.$pfc.option, () => {
3567
3591
  this.initOptions(), h.$f.refresh();
@@ -3571,10 +3595,10 @@ function ct(t) {
3571
3595
  }), h.$on("hook:beforeDestroy", () => {
3572
3596
  if (h.destroyed = !0, this.unwatch && this.unwatch(), d.reloadRule([]), this.name)
3573
3597
  if (this.inFor) {
3574
- const $ = E[this.name].indexOf(this);
3575
- E[this.name].splice($, 1), E[this.name].length || delete E[this.name];
3598
+ const $ = S[this.name].indexOf(this);
3599
+ S[this.name].splice($, 1), S[this.name].length || delete S[this.name];
3576
3600
  } else
3577
- delete E[this.name];
3601
+ delete S[this.name];
3578
3602
  }), h.$on("hook:updated", () => {
3579
3603
  d.bindNextTick(() => this.bus.$emit("next-tick", d.api));
3580
3604
  });
@@ -3584,12 +3608,12 @@ function ct(t) {
3584
3608
  },
3585
3609
  initOptions() {
3586
3610
  this.options = {};
3587
- let h = y({ formData: {}, submitBtn: {}, resetBtn: {} }, M(o));
3611
+ let h = y({ formData: {}, submitBtn: {}, resetBtn: {} }, L(o));
3588
3612
  this.isSub() && this.mergeOptions(this.options, this.vm.$pfc.$f.config || {}, !0), h = this.mergeOptions(h, this.vm.$options.propsData.option), this.updateOptions(h);
3589
3613
  },
3590
3614
  mergeOptions(h, d, $) {
3591
- return d = M(d), $ && ["page", "onSubmit", "mounted", "reload", "formData", "el"].forEach((C) => {
3592
- delete d[C];
3615
+ return d = L(d), $ && ["page", "onSubmit", "mounted", "reload", "formData", "el"].forEach((b) => {
3616
+ delete d[b];
3593
3617
  }), d.global && (h.global = er(h.global, d.global), delete d.global), this.$handle.$manager.mergeOptions([d], h), h;
3594
3618
  },
3595
3619
  updateOptions(h) {
@@ -3609,64 +3633,74 @@ function ct(t) {
3609
3633
  }
3610
3634
  });
3611
3635
  function we(h) {
3612
- m(h, {
3636
+ p(h, {
3613
3637
  version: t.version,
3614
3638
  ui: t.ui,
3615
3639
  setData: Ce,
3616
3640
  getData: _e,
3617
3641
  removeData: dt,
3618
3642
  maker: n,
3619
- component: v,
3620
- directive: f,
3621
- register: g,
3643
+ component: k,
3644
+ directive: m,
3645
+ register: v,
3622
3646
  $vnode: ke,
3623
- parser: _,
3647
+ parser: g,
3624
3648
  use: pt,
3625
3649
  factory: mt,
3626
- componentAlias: b,
3627
- copyRule: $e,
3650
+ componentAlias: _,
3651
+ copyRule: ge,
3628
3652
  copyRules: et,
3629
3653
  fetch: st,
3630
- $form: re,
3631
- parseFn: U,
3654
+ $form: G,
3655
+ parseFn: q,
3632
3656
  parseJson: Yt,
3633
3657
  toJson: Ze,
3634
- getApi: l,
3658
+ getApi: f,
3635
3659
  init(d, $ = {}) {
3636
- let C = Ue(d, $), V = C.$refs.fc.formCreate;
3660
+ let b = Ue(d, $), A = b.$refs.fc.formCreate;
3637
3661
  return {
3638
- mount(J) {
3639
- return J && c.Element(J) && (V.options.el = J), qe(V.options).appendChild(C.$el), V.api();
3662
+ mount(x) {
3663
+ return x && c.Element(x) && (A.options.el = x), qe(A.options).appendChild(b.$el), A.api();
3640
3664
  },
3641
3665
  remove() {
3642
- C.$el.parentNode && C.$el.parentNode.removeChild(C.$el);
3666
+ b.$el.parentNode && b.$el.parentNode.removeChild(b.$el);
3643
3667
  },
3644
3668
  destroy() {
3645
- this.remove(), C.$destroy();
3669
+ this.remove(), b.$destroy();
3646
3670
  },
3647
- $f: V.api()
3671
+ $f: A.api()
3648
3672
  };
3649
3673
  }
3650
3674
  });
3651
3675
  }
3652
3676
  function yt(h) {
3653
- m(h, {
3654
- create: T,
3677
+ p(h, {
3678
+ create: N,
3655
3679
  install(d, $) {
3656
3680
  if (o = y(y({}, o), $ || {}), d._installedFormCreate === !0) return;
3657
- d._installedFormCreate = !0, L = d;
3658
- const C = function(V, J = {}) {
3659
- return T(V, J, this);
3681
+ d._installedFormCreate = !0;
3682
+ const b = function(A, x = {}) {
3683
+ return N(A, x, this);
3660
3684
  };
3661
- we(C), d.prototype.$formCreate = C, d.component("FormCreate", re()), d.component("FcFragment", ke());
3685
+ we(b), d.prototype.$formCreate = b, d.component("FormCreate", G()), d.component("FcFragment", ke());
3662
3686
  }
3663
3687
  });
3664
3688
  }
3665
- if (we(T), yt(T), u.use({ fragment: "fcFragment" }), _(Pr), t.install && T.use(t), t.inherit) {
3689
+ if (we(l), yt(l), u.use({ fragment: "fcFragment" }), g(Pr), t.install && N.use(t), t.inherit) {
3666
3690
  const h = t.inherit;
3667
- h.components && m(e, h.components), h.parsers && m(r, h.parsers), h.directives && m(i, h.directives), h.providers && m(s, h.providers), h.maker && m(n, h.maker), h.loadData && m(a, h.loadData);
3691
+ h.components && p(e, h.components), h.parsers && p(r, h.parsers), h.directives && p(i, h.directives), h.providers && p(s, h.providers), h.maker && p(n, h.maker), h.loadData && p(a, h.loadData);
3668
3692
  }
3669
- return T;
3693
+ const X = G();
3694
+ return Object.setPrototypeOf(X, l), Object.defineProperties(X, {
3695
+ fetch: {
3696
+ get() {
3697
+ return l.fetch;
3698
+ },
3699
+ set(h) {
3700
+ l.fetch = h;
3701
+ }
3702
+ }
3703
+ }), X.util = l, X;
3670
3704
  }
3671
3705
  const He = {
3672
3706
  date: "yyyy-MM-dd",
@@ -3680,25 +3714,25 @@ const He = {
3680
3714
  }, xe = "datePicker", Lr = {
3681
3715
  name: xe,
3682
3716
  maker: function() {
3683
- return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = R(xe, { type: e.toLowerCase() }), t), {});
3717
+ return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = E(xe, { type: e.toLowerCase() }), t), {});
3684
3718
  }(),
3685
3719
  mergeProp(t) {
3686
3720
  const e = t.prop.props;
3687
3721
  e.valueFormat || (e.valueFormat = He[e.type] || He.date);
3688
3722
  }
3689
- }, se = "hidden", Nr = {
3690
- name: se,
3723
+ }, ne = "hidden", Nr = {
3724
+ name: ne,
3691
3725
  maker: {
3692
- [se]: (t, e) => R(se)("", t, e)
3726
+ [ne]: (t, e) => E(ne)("", t, e)
3693
3727
  },
3694
3728
  render() {
3695
3729
  return [];
3696
3730
  }
3697
- }, oe = "input", Mr = {
3698
- name: oe,
3731
+ }, se = "input", Mr = {
3732
+ name: se,
3699
3733
  maker: function() {
3700
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = R(oe, { type: r }), e), {});
3701
- return t.idate = R(oe, { type: "date" }), t;
3734
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = E(se, { type: r }), e), {});
3735
+ return t.idate = E(se, { type: "date" }), t;
3702
3736
  }(),
3703
3737
  mergeProp(t) {
3704
3738
  let { props: e } = t.prop;
@@ -3707,17 +3741,17 @@ const He = {
3707
3741
  }, Je = "slider", qr = {
3708
3742
  name: Je,
3709
3743
  maker: {
3710
- sliderRange: R(Je, { range: !0 })
3744
+ sliderRange: E(Je, { range: !0 })
3711
3745
  },
3712
3746
  toFormValue(t, e) {
3713
3747
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
3714
3748
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
3715
3749
  }
3716
- }, ae = "timePicker", Ur = {
3717
- name: ae,
3750
+ }, oe = "timePicker", Ur = {
3751
+ name: oe,
3718
3752
  maker: {
3719
- time: R(ae, (t) => t.props.isRange = !1),
3720
- timeRange: R(ae, (t) => t.props.isRange = !0)
3753
+ time: E(oe, (t) => t.props.isRange = !1),
3754
+ timeRange: E(oe, (t) => t.props.isRange = !0)
3721
3755
  },
3722
3756
  mergeProp(t) {
3723
3757
  const e = t.prop.props;
@@ -3733,7 +3767,7 @@ const He = {
3733
3767
  }, xr = "select", Jr = {
3734
3768
  name: xr,
3735
3769
  toFormValue(t, e) {
3736
- return e.prop.props.multiple && !Array.isArray(t) ? I(t) : t;
3770
+ return e.prop.props.multiple && !Array.isArray(t) ? j(t) : t;
3737
3771
  }
3738
3772
  }, Kr = [
3739
3773
  Lr,
@@ -3743,34 +3777,34 @@ const He = {
3743
3777
  Ur,
3744
3778
  Hr,
3745
3779
  Jr
3746
- ], O = "el", Wr = {
3747
- button: O + "Button",
3780
+ ], C = "el", Wr = {
3781
+ button: C + "Button",
3748
3782
  icon: "i",
3749
- slider: O + "Slider",
3750
- rate: O + "Rate",
3783
+ slider: C + "Slider",
3784
+ rate: C + "Rate",
3751
3785
  upload: "fcUpload",
3752
- cascader: O + "Cascader",
3753
- popover: O + "Popover",
3754
- tooltip: O + "Tooltip",
3755
- colorPicker: O + "ColorPicker",
3756
- timePicker: O + "TimePicker",
3757
- timeSelect: O + "TimeSelect",
3758
- datePicker: O + "DatePicker",
3759
- switch: O + "Switch",
3786
+ cascader: C + "Cascader",
3787
+ popover: C + "Popover",
3788
+ tooltip: C + "Tooltip",
3789
+ colorPicker: C + "ColorPicker",
3790
+ timePicker: C + "TimePicker",
3791
+ timeSelect: C + "TimeSelect",
3792
+ datePicker: C + "DatePicker",
3793
+ switch: C + "Switch",
3760
3794
  select: "fcSelect",
3761
3795
  checkbox: "fcCheckbox",
3762
3796
  radio: "fcRadio",
3763
- inputNumber: O + "InputNumber",
3764
- number: O + "InputNumber",
3765
- input: O + "Input",
3766
- formItem: O + "FormItem",
3767
- form: O + "Form",
3797
+ inputNumber: C + "InputNumber",
3798
+ number: C + "InputNumber",
3799
+ input: C + "Input",
3800
+ formItem: C + "FormItem",
3801
+ form: C + "Form",
3768
3802
  frame: "fcFrame",
3769
- col: O + "Col",
3770
- row: O + "Row",
3803
+ col: C + "Col",
3804
+ row: C + "Row",
3771
3805
  tree: "fcTree",
3772
- autoComplete: O + "Autocomplete",
3773
- auto: O + "Autocomplete",
3806
+ autoComplete: C + "Autocomplete",
3807
+ auto: C + "Autocomplete",
3774
3808
  group: "fcGroup",
3775
3809
  object: "fcSubForm",
3776
3810
  subForm: "fcSubForm"
@@ -3817,13 +3851,13 @@ function Qr(t, e) {
3817
3851
  return !zr.test(t) && (c.String(e) || c.Number(e));
3818
3852
  }
3819
3853
  function Ke(t, e) {
3820
- w(t, e) && c.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
3854
+ O(t, e) && c.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
3821
3855
  }
3822
- function D(t) {
3856
+ function P(t) {
3823
3857
  return t === !1;
3824
3858
  }
3825
3859
  function Zr(t, e) {
3826
- w(t, e) && !c.Object(t[e]) && (t[e] = { show: !!t[e] });
3860
+ O(t, e) && !c.Object(t[e]) && (t[e] = { show: !!t[e] });
3827
3861
  }
3828
3862
  const Yr = {
3829
3863
  validate() {
@@ -3852,7 +3886,7 @@ const Yr = {
3852
3886
  },
3853
3887
  mergeProp(t) {
3854
3888
  let e = t.prop.props;
3855
- t.prop = B([{
3889
+ t.prop = D([{
3856
3890
  attrs: Object.keys(e).reduce((r, i) => (Qr(i, e[i]) && (r[i] = e[i]), r), {}),
3857
3891
  info: this.options.info || {},
3858
3892
  wrap: this.options.wrap || {},
@@ -3888,17 +3922,17 @@ const Yr = {
3888
3922
  },
3889
3923
  beforeRender() {
3890
3924
  const { key: t, ref: e, $handle: r } = this;
3891
- m(this.rule, { key: t, ref: e }), m(this.rule.props, {
3925
+ p(this.rule, { key: t, ref: e }), p(this.rule.props, {
3892
3926
  model: r.formData
3893
3927
  // rules: $handle.validate(),
3894
3928
  });
3895
3929
  },
3896
3930
  render(t) {
3897
- return t.length && t.push(this.makeFormBtn()), this.$r(this.rule, D(this.options.row.show) ? t : [this.makeRow(t)]);
3931
+ return t.length && t.push(this.makeFormBtn()), this.$r(this.rule, P(this.options.row.show) ? t : [this.makeRow(t)]);
3898
3932
  },
3899
3933
  makeWrap(t, e) {
3900
- const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r), o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: u } = this.rule.props, l = D(r.wrap.show) ? e : this.$r(B([r.wrap, {
3901
- props: q(y({
3934
+ const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r), o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: u } = this.rule.props, l = P(r.wrap.show) ? e : this.$r(D([r.wrap, {
3935
+ props: M(y({
3902
3936
  labelWidth: o === void 0 ? o : at(o),
3903
3937
  label: n ? r.title.title : void 0
3904
3938
  }, r.wrap || {}), {
@@ -3910,23 +3944,23 @@ const Yr = {
3910
3944
  ref: t.wrapRef,
3911
3945
  type: "formItem"
3912
3946
  }]), [e, n ? this.makeInfo(r, i, t) : null]);
3913
- return a === !0 || D(u) || D(s.show) ? l : this.makeCol(r, i, [l]);
3947
+ return a === !0 || P(u) || P(s.show) ? l : this.makeCol(r, i, [l]);
3914
3948
  },
3915
3949
  isTitle(t) {
3916
3950
  if (this.options.form.title === !1) return !1;
3917
3951
  const e = t.title;
3918
- return !(!e.title && !e.native || D(e.show));
3952
+ return !(!e.title && !e.native || P(e.show));
3919
3953
  },
3920
3954
  makeInfo(t, e, r) {
3921
3955
  const i = t.title, s = t.info, n = Xr(s), o = this.options.form, a = this.getSlot("title"), u = [a ? a({ title: i.title || "", rule: r.rule, options: this.options }) : (i.title || "") + (o.labelSuffix || o["label-suffix"] || "")];
3922
- if (!D(s.show) && (s.info || s.native) && !D(s.icon)) {
3956
+ if (!P(s.show) && (s.info || s.native) && !P(s.icon)) {
3923
3957
  const l = {
3924
3958
  type: s.type || "popover",
3925
3959
  props: y({}, s),
3926
3960
  key: `${e}pop`,
3927
3961
  slot: "label"
3928
3962
  }, f = "content";
3929
- s.info && !w(l.props, f) && (l.props[f] = s.info), u[s.align !== "left" ? "unshift" : "push"](this.$r(B([s, l]), [
3963
+ s.info && !O(l.props, f) && (l.props[f] = s.info), u[s.align !== "left" ? "unshift" : "push"](this.$r(D([s, l]), [
3930
3964
  this.$r({
3931
3965
  type: "i",
3932
3966
  slot: n ? "default" : "reference",
@@ -3935,7 +3969,7 @@ const Yr = {
3935
3969
  })
3936
3970
  ]));
3937
3971
  }
3938
- return this.$r(B([i, {
3972
+ return this.$r(D([i, {
3939
3973
  props: i,
3940
3974
  slot: i.slot || "label",
3941
3975
  key: `${e}tit`,
@@ -3962,7 +3996,7 @@ const Yr = {
3962
3996
  },
3963
3997
  makeFormBtn() {
3964
3998
  let t = [];
3965
- if (D(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), D(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
3999
+ if (P(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), P(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
3966
4000
  return;
3967
4001
  const e = this.$r({
3968
4002
  type: "formItem",
@@ -4004,24 +4038,24 @@ const Yr = {
4004
4038
  key: `${this.key}b1`
4005
4039
  }, [t.innerText]);
4006
4040
  }
4007
- }, x = {};
4008
- ei(x);
4009
- ti(x);
4010
- ri(x);
4011
- ii(x);
4012
- ni(x);
4041
+ }, H = {};
4042
+ ei(H);
4043
+ ti(H);
4044
+ ri(H);
4045
+ ii(H);
4046
+ ni(H);
4013
4047
  function ei(t) {
4014
4048
  ["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "radio", "rate"].forEach((e) => {
4015
- t[e] = R(e);
4049
+ t[e] = E(e);
4016
4050
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
4017
4051
  }
4018
4052
  function ti(t) {
4019
4053
  const e = "select", r = "multiple";
4020
- t.selectMultiple = R(e, { [r]: !0 }), t.selectOne = R(e, { [r]: !1 });
4054
+ t.selectMultiple = E(e, { [r]: !0 }), t.selectOne = E(e, { [r]: !1 });
4021
4055
  }
4022
4056
  function ri(t) {
4023
4057
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
4024
- Object.keys(r).reduce((i, s) => (i[s] = R(e, { type: r[s] }), i), t);
4058
+ Object.keys(r).reduce((i, s) => (i[s] = E(e, { type: r[s] }), i), t);
4025
4059
  }
4026
4060
  function ii(t) {
4027
4061
  const e = "upload", r = {
@@ -4030,7 +4064,7 @@ function ii(t) {
4030
4064
  uploadFileOne: ["file", 1],
4031
4065
  uploadImageOne: ["image", 1]
4032
4066
  };
4033
- Object.keys(r).reduce((i, s) => (i[s] = R(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
4067
+ Object.keys(r).reduce((i, s) => (i[s] = E(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
4034
4068
  }
4035
4069
  function ni(t) {
4036
4070
  const e = {
@@ -4041,13 +4075,13 @@ function ni(t) {
4041
4075
  frameFileOne: ["file", 1],
4042
4076
  frameImageOne: ["image", 1]
4043
4077
  };
4044
- return Object.keys(e).reduce((r, i) => (r[i] = R("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;
4078
+ return Object.keys(e).reduce((r, i) => (r[i] = E("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;
4045
4079
  }
4046
4080
  function We(t, e) {
4047
4081
  return c.Boolean(t) ? t = { show: t } : !c.Undef(t) && !c.Object(t) && (t = { show: e }), t;
4048
4082
  }
4049
4083
  function si(t, e) {
4050
- return m(t, {
4084
+ return p(t, {
4051
4085
  formEl() {
4052
4086
  return e.$manager.form();
4053
4087
  },
@@ -4072,7 +4106,7 @@ function si(t, e) {
4072
4106
  const o = e.getFieldCtx(r);
4073
4107
  if (!o) return;
4074
4108
  const a = e.subForm[o.id], u = [e.$manager.validateField(o.id)];
4075
- I(a).forEach((l) => {
4109
+ j(a).forEach((l) => {
4076
4110
  u.push(l.validate().catch(() => Promise.reject("子表单验证未通过")));
4077
4111
  }), Promise.all(u).then(() => {
4078
4112
  s(null), i && i(null);
@@ -4121,19 +4155,20 @@ function si(t, e) {
4121
4155
  },
4122
4156
  submitBtnProps: (r = {}) => {
4123
4157
  let i = We(e.options.submitBtn, !0);
4124
- m(i, r), e.options.submitBtn = i, t.refreshOptions();
4158
+ p(i, r), e.options.submitBtn = i, t.refreshOptions();
4125
4159
  },
4126
4160
  resetBtnProps: (r = {}) => {
4127
4161
  let i = We(e.options.resetBtn, !1);
4128
- m(i, r), e.options.resetBtn = i, t.refreshOptions();
4162
+ p(i, r), e.options.resetBtn = i, t.refreshOptions();
4129
4163
  },
4130
4164
  submit(r, i) {
4131
4165
  t.validate((s) => {
4132
4166
  if (s) {
4133
4167
  let n = t.formData();
4134
- c.Function(r) ? j(() => r(n, this)) : (c.Function(e.options.onSubmit) && j(() => e.options.onSubmit(n, this)), e.vm.$emit("submit", n, this));
4168
+ c.Function(r) ? R(() => r(n, this)) : (c.Function(e.options.onSubmit) && R(() => e.options.onSubmit(n, this)), e.vm.$emit("submit", n, this));
4135
4169
  } else
4136
- c.Function(i) && j(() => i(this, ...arguments));
4170
+ c.Function(i) && R(() => i(this, ...arguments));
4171
+ }).catch((s) => {
4137
4172
  });
4138
4173
  }
4139
4174
  }), t;
@@ -4143,14 +4178,14 @@ function oi(t) {
4143
4178
  t.component(e.name, e);
4144
4179
  }), Kr.forEach((e) => {
4145
4180
  t.parser(e);
4146
- }), Object.keys(x).forEach((e) => {
4147
- t.maker[e] = x[e];
4181
+ }), Object.keys(H).forEach((e) => {
4182
+ t.maker[e] = H[e];
4148
4183
  });
4149
4184
  }
4150
4185
  function ai() {
4151
- return ct({
4186
+ return ft({
4152
4187
  ui: "element-ui",
4153
- version: "2.6.0",
4188
+ version: "2.6.1",
4154
4189
  manager: Yr,
4155
4190
  extendApi: si,
4156
4191
  install: oi,
@@ -4161,10 +4196,10 @@ function ai() {
4161
4196
  }
4162
4197
  });
4163
4198
  }
4164
- const de = ai();
4165
- typeof window != "undefined" && (window.formCreate = de, window.Vue && de.install(window.Vue));
4166
- const fi = de.maker;
4199
+ const fe = ai();
4200
+ typeof window != "undefined" && (window.formCreate = fe, window.Vue && fe.install(window.Vue));
4201
+ const hi = fe.maker;
4167
4202
  export {
4168
- de as default,
4169
- fi as maker
4203
+ fe as default,
4204
+ hi as maker
4170
4205
  };