@form-create/iview 2.7.4 → 2.7.6

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/iview v2.7.4
3
+ * @form-create/iview v2.7.6
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -11,7 +11,7 @@ var ir = Object.defineProperty, nr = Object.defineProperties;
11
11
  var sr = Object.getOwnPropertyDescriptors;
12
12
  var ot = Object.getOwnPropertySymbols;
13
13
  var or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable;
14
- var at = (t, e, r) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, b = (t, e) => {
14
+ var at = (t, e, r) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
16
  or.call(e, r) && at(t, r, e[r]);
17
17
  if (ot)
@@ -19,24 +19,24 @@ var at = (t, e, r) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writ
19
19
  ar.call(e, r) && at(t, r, e[r]);
20
20
  return t;
21
21
  }, U = (t, e) => nr(t, sr(e));
22
- import ye, { getCurrentInstance as lr, provide as ur, inject as fr, toRefs as lt, reactive as ie, onBeforeMount as cr, watch as B, onMounted as hr, onBeforeUnmount as dr, onUpdated as pr, nextTick as P, markRaw as me, computed as ge, toRef as Ee, ref as mr } from "vue";
22
+ import ye, { getCurrentInstance as lr, provide as ur, inject as fr, toRefs as lt, reactive as ie, onBeforeMount as cr, watch as B, onMounted as hr, onBeforeUnmount as dr, onUpdated as pr, nextTick as A, markRaw as me, computed as ge, toRef as De, ref as mr } from "vue";
23
23
  function gr(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
- function He() {
27
- return He = Object.assign ? Object.assign.bind() : function(t) {
26
+ function ze() {
27
+ return ze = 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
- }, He.apply(this, arguments);
30
+ }, ze.apply(this, arguments);
31
31
  }
32
- var yr = ["attrs", "props", "domProps"], $r = ["class", "style", "directives"], vr = ["on", "nativeOn"], br = function(t) {
32
+ var yr = ["attrs", "props", "domProps"], $r = ["class", "style", "directives"], br = ["on", "nativeOn"], vr = function(t) {
33
33
  return t.reduce(function(e, r) {
34
34
  for (var i in r) if (!e[i]) e[i] = r[i];
35
- else if (yr.indexOf(i) !== -1) e[i] = He({}, e[i], r[i]);
35
+ else if (yr.indexOf(i) !== -1) e[i] = ze({}, e[i], r[i]);
36
36
  else if ($r.indexOf(i) !== -1) {
37
37
  var s = e[i] instanceof Array ? e[i] : [e[i]], n = r[i] instanceof Array ? r[i] : [r[i]];
38
38
  e[i] = [].concat(s, n);
39
- } else if (vr.indexOf(i) !== -1)
39
+ } else if (br.indexOf(i) !== -1)
40
40
  for (var o in r[i]) if (e[i][o]) {
41
41
  var a = e[i][o] instanceof Array ? e[i][o] : [e[i][o]], l = r[i][o] instanceof Array ? r[i][o] : [r[i][o]];
42
42
  e[i][o] = [].concat(a, l);
@@ -49,9 +49,9 @@ var yr = ["attrs", "props", "domProps"], $r = ["class", "style", "directives"],
49
49
  return function() {
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
- }, Cr = br;
52
+ }, Cr = vr;
53
53
  const I = /* @__PURE__ */ gr(Cr);
54
- function je(t, e) {
54
+ function Ie(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => ((!e || e.indexOf(i) === -1) && r.push(t[i]), r), []);
56
56
  }
57
57
  const wr = "fcCheckbox", Or = {
@@ -111,19 +111,19 @@ const wr = "fcCheckbox", Or = {
111
111
  input: this.onInput
112
112
  }
113
113
  }]), [this.options().map((e, r) => {
114
- const i = b({}, e);
114
+ const i = v({}, e);
115
115
  return delete i.value, t("Checkbox", I([{}, {
116
116
  props: i
117
117
  }, {
118
118
  key: "" + r + "-" + e.value
119
119
  }]));
120
- }), je(this.$slots)]);
120
+ }), Ie(this.$slots)]);
121
121
  },
122
122
  mounted() {
123
123
  this.$emit("fc.el", this.$refs.el);
124
124
  }
125
125
  };
126
- function G(t) {
126
+ function H(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
129
  const Fr = "fcFrame";
@@ -250,7 +250,7 @@ function Ot(t) {
250
250
  },
251
251
  data() {
252
252
  return {
253
- fileList: G(this.value),
253
+ fileList: H(this.value),
254
254
  previewVisible: !1,
255
255
  frameVisible: !1,
256
256
  previewImage: ""
@@ -258,7 +258,7 @@ function Ot(t) {
258
258
  },
259
259
  watch: {
260
260
  value(e) {
261
- this.fileList = G(e);
261
+ this.fileList = H(e);
262
262
  },
263
263
  fileList(e) {
264
264
  const r = this.maxLength === 1 ? e[0] || "" : e;
@@ -469,7 +469,7 @@ function Ot(t) {
469
469
  src: this.previewImage
470
470
  }
471
471
  })]), e("Modal", I([{}, {
472
- props: b({
472
+ props: v({
473
473
  width: s,
474
474
  title: a
475
475
  }, this.modal)
@@ -511,7 +511,7 @@ Ft.v2 = Ot({
511
511
  fileIcon: "document-text",
512
512
  fileUpIcon: "folder"
513
513
  });
514
- const Sr = "fcRadio", Rr = {
514
+ const Sr = "fcRadio", kr = {
515
515
  name: Sr,
516
516
  props: {
517
517
  formCreateInject: {
@@ -563,13 +563,13 @@ const Sr = "fcRadio", Rr = {
563
563
  input: this.onInput
564
564
  }
565
565
  }]), [this.options().map((e, r) => {
566
- const i = b({}, e);
566
+ const i = v({}, e);
567
567
  return delete i.value, t("Radio", I([{}, {
568
568
  props: i
569
569
  }, {
570
570
  key: "" + r + "-" + e.value
571
571
  }]));
572
- }), je(this.$slots)]);
572
+ }), Ie(this.$slots)]);
573
573
  },
574
574
  mounted() {
575
575
  this.$emit("fc.el", this.$refs.el);
@@ -607,8 +607,8 @@ const Sr = "fcRadio", Rr = {
607
607
  function E(t, e) {
608
608
  return {}.hasOwnProperty.call(t, e);
609
609
  }
610
- const kr = "fcSelect", Er = {
611
- name: kr,
610
+ const Rr = "fcSelect", Er = {
611
+ name: Rr,
612
612
  functional: !0,
613
613
  props: {
614
614
  formCreateInject: {
@@ -670,7 +670,7 @@ const kr = "fcSelect", Er = {
670
670
  },
671
671
  methods: {
672
672
  setStatus(t) {
673
- const e = G(t), r = this.formCreateInject.prop.props.data;
673
+ const e = H(t), r = this.formCreateInject.prop.props.data;
674
674
  this.type === "selected" ? this.checked(r, e, "selected") : this.checked(r, e, "checked"), this.$forceUpdate();
675
675
  },
676
676
  checked(t, e, r) {
@@ -688,7 +688,7 @@ const kr = "fcSelect", Er = {
688
688
  ref: "tree"
689
689
  }, {
690
690
  on: e
691
- }]), [je(this.$slots)]);
691
+ }]), [Ie(this.$slots)]);
692
692
  },
693
693
  mounted() {
694
694
  this.$emit("fc.el", this.$refs.tree);
@@ -702,7 +702,7 @@ function ut(t) {
702
702
  };
703
703
  }
704
704
  function ft(t) {
705
- return U(b({}, t), {
705
+ return U(v({}, t), {
706
706
  file: t,
707
707
  value: t
708
708
  });
@@ -754,11 +754,11 @@ function St(t) {
754
754
  };
755
755
  },
756
756
  created() {
757
- this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = !1), this.formCreateInject.prop.props.defaultFileList = G(this.value).map(ut).map(ft);
757
+ this.formCreateInject.prop.props.showUploadList === void 0 && (this.formCreateInject.prop.props.showUploadList = !1), this.formCreateInject.prop.props.defaultFileList = H(this.value).map(ut).map(ft);
758
758
  },
759
759
  watch: {
760
760
  value(e) {
761
- this.$refs.upload.fileList.every((r) => !r.status || r.status === "finished") && (this.$refs.upload.fileList = G(e).map(ut).map(ft), this.uploadList = this.$refs.upload.fileList);
761
+ this.$refs.upload.fileList.every((r) => !r.status || r.status === "finished") && (this.$refs.upload.fileList = H(e).map(ut).map(ft), this.uploadList = this.$refs.upload.fileList);
762
762
  },
763
763
  maxLength(e, r) {
764
764
  (r === 1 || e === 1) && this.update();
@@ -864,7 +864,7 @@ function St(t) {
864
864
  type: this.uploadType === "file" ? "ios-cloud-upload-outline" : t.imgUpIcon,
865
865
  size: 20
866
866
  }
867
- }]))])]) : null, je(this.$slots, ["default"])]);
867
+ }]))])]) : null, Ie(this.$slots, ["default"])]);
868
868
  },
869
869
  update() {
870
870
  let e = this.$refs.upload.fileList.map((r) => r.is_string ? r.url : r.value || r.url).filter((r) => r !== void 0);
@@ -907,11 +907,11 @@ function St(t) {
907
907
  }
908
908
  };
909
909
  }
910
- const Rt = St({
910
+ const kt = St({
911
911
  fileIcon: "md-document",
912
912
  imgUpIcon: "md-images"
913
913
  });
914
- Rt.v2 = St({
914
+ kt.v2 = St({
915
915
  fileIcon: "document-text",
916
916
  imgUpIcon: "image"
917
917
  });
@@ -921,7 +921,7 @@ function S(t, e, r) {
921
921
  function re(t, e) {
922
922
  (ye.del || ye.delete)(t, e);
923
923
  }
924
- function be(t, e = {}, r) {
924
+ function _e(t, e = {}, r) {
925
925
  let i = !1;
926
926
  for (let s in e)
927
927
  if (Object.prototype.hasOwnProperty.call(e, s)) {
@@ -939,14 +939,14 @@ function be(t, e = {}, r) {
939
939
  }
940
940
  else
941
941
  o && S(t, s, {});
942
- t[s] = be(t[s], n, r);
942
+ t[s] = _e(t[s], n, r);
943
943
  } else
944
944
  S(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
945
945
  }
946
946
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
947
947
  }
948
- function W(t) {
949
- return be({}, { value: t }).value;
948
+ function G(t) {
949
+ return _e({}, { value: t }).value;
950
950
  }
951
951
  const Vr = Object.assign || function(t) {
952
952
  for (let e, r = 1; r < arguments.length; r++)
@@ -958,9 +958,9 @@ function C() {
958
958
  return Vr.apply(this, arguments);
959
959
  }
960
960
  function Je(t) {
961
- return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : b({}, t);
961
+ return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
962
962
  }
963
- const Pr = "fcGroup", Br = {
963
+ const Pr = "fcGroup", Lr = {
964
964
  name: Pr,
965
965
  props: {
966
966
  field: String,
@@ -1042,13 +1042,13 @@ const Pr = "fcGroup", Br = {
1042
1042
  const s = i.$f.formData();
1043
1043
  if (t === e)
1044
1044
  i.$f.deferSyncValue(() => {
1045
- be(i.rule, t), i.$f.setValue(s);
1045
+ _e(i.rule, t), i.$f.setValue(s);
1046
1046
  }, !0);
1047
1047
  else {
1048
1048
  const n = i.$f.formData();
1049
1049
  i.$f.once("reloading", () => {
1050
1050
  i.$f.setValue(n);
1051
- }), i.rule = W(t);
1051
+ }), i.rule = G(t);
1052
1052
  }
1053
1053
  }
1054
1054
  });
@@ -1095,7 +1095,7 @@ const Pr = "fcGroup", Br = {
1095
1095
  if (i.filter((n) => r[n].$f).length !== i.length)
1096
1096
  return;
1097
1097
  const s = i.map((n) => {
1098
- const o = t === n ? e : b({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1098
+ const o = t === n ? e : v({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1099
1099
  return this.cache(n, a), a;
1100
1100
  });
1101
1101
  this.input(s);
@@ -1107,13 +1107,13 @@ const Pr = "fcGroup", Br = {
1107
1107
  }), this.cacheValue[t] !== JSON.stringify(r ? e[r] : e) && (this.cache(t, e), i && i.coverValue(e || {}));
1108
1108
  },
1109
1109
  addRule(t, e) {
1110
- const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? b({}, this.options) : {
1110
+ const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? v({}, this.options) : {
1111
1111
  submitBtn: !1,
1112
1112
  resetBtn: !1
1113
1113
  };
1114
1114
  if (this.defaultValue) {
1115
1115
  i.formData || (i.formData = {});
1116
- const s = W(this.defaultValue);
1116
+ const s = G(this.defaultValue);
1117
1117
  C(i.formData, this.field ? {
1118
1118
  [this.field]: s
1119
1119
  } : s);
@@ -1137,7 +1137,10 @@ const Pr = "fcGroup", Br = {
1137
1137
  this.$delete(this.cacheRule, t), this.$delete(this.cacheValue, t), e && this.$nextTick(() => this.$emit("remove", r));
1138
1138
  },
1139
1139
  add(t) {
1140
- this.disabled || this.onBeforeAdd(this.value) === !1 || this.addRule(t, !0);
1140
+ if (this.disabled || this.onBeforeAdd(this.value) === !1)
1141
+ return;
1142
+ const e = [...this.value];
1143
+ e.push(this.defaultValue ? G(this.defaultValue) : this.field ? null : {}), this.input(e);
1141
1144
  },
1142
1145
  del(t, e) {
1143
1146
  if (this.disabled || this.onBeforeRemove(this.value, t) === !1)
@@ -1237,7 +1240,7 @@ const Pr = "fcGroup", Br = {
1237
1240
  }, {
1238
1241
  on: {
1239
1242
  "update:value": (d) => this.formData(o, d),
1240
- "emit-event": (d, ...m) => this.emitEvent(d, m, a, o),
1243
+ "emit-event": (d, ...g) => this.emitEvent(d, g, a, o),
1241
1244
  input: (d) => this.add$f(a, o, d)
1242
1245
  }
1243
1246
  }, {}, {
@@ -1262,8 +1265,8 @@ const Pr = "fcGroup", Br = {
1262
1265
  class: "_fc-group " + (s ? "_fc-group-disabled" : "")
1263
1266
  }, [n]);
1264
1267
  }
1265
- }, Lr = "fcSubForm", Tr = {
1266
- name: Lr,
1268
+ }, Br = "fcSubForm", Tr = {
1269
+ name: Br,
1267
1270
  props: {
1268
1271
  rule: Array,
1269
1272
  options: Object,
@@ -1309,7 +1312,7 @@ const Pr = "fcGroup", Br = {
1309
1312
  submitBtn: !1,
1310
1313
  resetBtn: !1
1311
1314
  };
1312
- t.formData = b({}, this.value || {}), this.cacheRule = {
1315
+ t.formData = v({}, this.value || {}), this.cacheRule = {
1313
1316
  rule: this.rule,
1314
1317
  options: t
1315
1318
  };
@@ -1348,13 +1351,13 @@ const Pr = "fcGroup", Br = {
1348
1351
  }
1349
1352
  }, Nr = [
1350
1353
  Or,
1351
- Rr,
1354
+ kr,
1352
1355
  Er,
1353
1356
  jr,
1354
1357
  Tr,
1355
1358
  Ft,
1356
- Rt,
1357
- Br
1359
+ kt,
1360
+ Lr
1358
1361
  ];
1359
1362
  function ne(t, e) {
1360
1363
  var r = null;
@@ -1362,242 +1365,78 @@ function ne(t, e) {
1362
1365
  r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
1363
1366
  };
1364
1367
  }
1365
- function ve(t) {
1368
+ function be(t) {
1366
1369
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1367
1370
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1368
1371
  }
1369
- const Re = (t, e) => {
1370
- if (!(!t || t === e || !t.$props)) {
1371
- if (t.$props.formCreateInject)
1372
- return t.$props.formCreateInject;
1373
- if (t.$parent)
1374
- return Re(t.$parent, e);
1375
- }
1376
- };
1377
- function Mr(t, e, r) {
1378
- const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1379
- return {
1380
- name: i,
1381
- componentName: i,
1382
- model: {
1383
- prop: "api"
1384
- },
1385
- components: e,
1386
- directives: r,
1387
- provide() {
1388
- return {
1389
- $pfc: this
1390
- };
1391
- },
1392
- inject: { $pfc: { default: null } },
1393
- props: {
1394
- rule: {
1395
- type: Array,
1396
- required: !0,
1397
- default: () => []
1398
- },
1399
- option: {
1400
- type: Object,
1401
- default: () => ({})
1402
- },
1403
- extendOption: Boolean,
1404
- driver: [String, Object],
1405
- value: Object,
1406
- disabled: {
1407
- type: Boolean,
1408
- default: void 0
1409
- },
1410
- preview: {
1411
- type: Boolean,
1412
- default: void 0
1413
- },
1414
- index: [String, Number],
1415
- api: Object,
1416
- locale: [String, Object],
1417
- name: String,
1418
- subForm: {
1419
- type: Boolean,
1420
- default: !0
1421
- },
1422
- inFor: Boolean
1423
- },
1424
- render() {
1425
- return this.fc.render();
1426
- },
1427
- setup(s) {
1428
- const n = lr().proxy;
1429
- ur("parentFC", n);
1430
- const o = fr("parentFC", null);
1431
- let a = o;
1432
- if (o)
1433
- for (; a.parent; )
1434
- a = a.parent;
1435
- else
1436
- a = n;
1437
- const { rule: l, value: u, subForm: f, inFor: d } = lt(s), m = ie({
1438
- ctxInject: {},
1439
- destroyed: !1,
1440
- isShow: !0,
1441
- unique: 1,
1442
- renderRule: [...l.value || []],
1443
- updateValue: JSON.stringify(u.value || {})
1444
- }), g = new t(n), $ = g.api(), _ = d.value, D = () => {
1445
- if (o) {
1446
- const F = Re(n, o);
1447
- if (F) {
1448
- let R;
1449
- _ ? (R = G(F.getSubForm()), R.push($)) : R = $, F.subForm(R);
1450
- }
1451
- }
1452
- }, ee = () => {
1453
- const F = Re(n, o);
1454
- if (F)
1455
- if (_) {
1456
- const R = G(F.getSubForm()), N = R.indexOf($);
1457
- N > -1 && R.splice(N, 1);
1458
- } else
1459
- F.subForm();
1460
- };
1461
- let V = null;
1462
- cr(() => {
1463
- B(() => {
1464
- let F = "";
1465
- const R = s.option && s.option.globalClass || {};
1466
- Object.keys(R).forEach((N) => {
1467
- let de = "";
1468
- R[N].style && Object.keys(R[N].style).forEach((H) => {
1469
- de += ve(H) + ":" + R[N].style[H] + ";";
1470
- }), R[N].content && (de += R[N].content + ";"), de && (F += `.${N}{${de}}`);
1471
- }), s.option && s.option.style && (F += s.option.style), V || (V = document.createElement("style"), V.type = "text/css", document.head.appendChild(V)), V.innerHTML = F || "";
1472
- }, () => {
1473
- });
1474
- });
1475
- const T = ne(() => {
1476
- g.bus.$emit("$loadData.$topForm");
1477
- }, 100), ce = ne(function() {
1478
- g.bus.$emit("$loadData.$scopeForm");
1479
- }, 100), Ae = ne(() => {
1480
- g.bus.$emit("$loadData.$form");
1481
- }, 100), he = (F) => {
1482
- g.bus.$emit("change-$form." + F);
1483
- };
1484
- return hr(() => {
1485
- o && ($.top.bus.$on("$loadData.$form", T), $.top.bus.$on("change", he)), $ !== $.scope && $.scope.bus.$on("$loadData.$scopeForm", ce), g.mounted();
1486
- }), dr(() => {
1487
- o && ($.top.bus.$off("$loadData.$form", T), $.top.bus.$off("change", he)), $ !== $.scope && $.scope.bus.$off("$loadData.$scopeForm", ce), V && document.head.removeChild(V), ee(), m.destroyed = !0, g.unmount();
1488
- }), pr(() => {
1489
- g.updated();
1490
- }), B(f, (F) => {
1491
- F ? D() : ee();
1492
- }, { immediate: !0 }), B(() => s.option, () => {
1493
- g.initOptions(), $.refresh();
1494
- }, { deep: !0 }), B(() => [...l.value], (F) => {
1495
- g.$handle.isBreakWatch() || F.length === m.renderRule.length && F.every((R) => m.renderRule.indexOf(R) > -1) || (g.$handle.updateAppendData(), g.$handle.reloadRule(l.value), n.renderRule());
1496
- }), B(() => [s.disabled, s.preview], () => {
1497
- $.refresh();
1498
- }), B(u, (F) => {
1499
- JSON.stringify(F || {}) !== m.updateValue && ($.config.forceCoverValue ? $.coverValue(F || {}) : $.setValue(F || {}));
1500
- }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1501
- $.coverValue({}), g.$handle.updateAppendData(), P(() => {
1502
- P(() => {
1503
- $.clearValidateState();
1504
- });
1505
- });
1506
- }, { flush: "sync" }), U(b({
1507
- fc: me(g),
1508
- parent: o && me(o),
1509
- top: me(a),
1510
- fapi: me($)
1511
- }, lt(m)), {
1512
- getGroupInject: () => Re(n, o),
1513
- refresh() {
1514
- ++m.unique;
1515
- },
1516
- renderRule() {
1517
- m.renderRule = [...l.value || []];
1518
- },
1519
- updateValue(F) {
1520
- if (m.destroyed) return;
1521
- const R = JSON.stringify(F);
1522
- m.updateValue !== R && (m.updateValue = R, n.$emit("update:value", F), P(() => {
1523
- Ae(), o ? f.value || ce() : (T(), ce());
1524
- }));
1525
- }
1526
- });
1527
- },
1528
- created() {
1529
- this.$emit("input", this.fapi), this.fc.init();
1530
- }
1531
- };
1532
- }
1533
- const kt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style", "directives"], Dt = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
1534
- const i = [...kt, ...r.normal || []], s = [...Et, ...r.array || []], n = [...Dt, ...r.functional || []], o = r.props || [];
1372
+ const Rt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style", "directives"], Dt = ["on", "nativeOn", "hook"], x = (t, e = {}, r = {}) => {
1373
+ const i = [...Rt, ...r.normal || []], s = [...Et, ...r.array || []], n = [...Dt, ...r.functional || []], o = r.props || [];
1535
1374
  return t.reduce((a, l) => {
1536
1375
  for (const u in l)
1537
1376
  if (a[u])
1538
1377
  if (o.indexOf(u) > -1)
1539
- a[u] = Y([l[u]], a[u]);
1378
+ a[u] = x([l[u]], a[u]);
1540
1379
  else if (i.indexOf(u) > -1)
1541
- a[u] = b(b({}, a[u]), l[u]);
1380
+ a[u] = v(v({}, a[u]), l[u]);
1542
1381
  else if (s.indexOf(u) > -1) {
1543
1382
  const f = a[u] instanceof Array ? a[u] : [a[u]], d = l[u] instanceof Array ? l[u] : [l[u]];
1544
1383
  a[u] = [...f, ...d];
1545
1384
  } else if (n.indexOf(u) > -1)
1546
1385
  for (const f in l[u])
1547
1386
  if (a[u][f]) {
1548
- const d = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], m = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1549
- a[u][f] = [...d, ...m];
1387
+ const d = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], g = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1388
+ a[u][f] = [...d, ...g];
1550
1389
  } else
1551
1390
  a[u][f] = l[u][f];
1552
1391
  else if (u === "hook")
1553
1392
  for (let f in l[u])
1554
- a[u][f] ? a[u][f] = Ur(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1393
+ a[u][f] ? a[u][f] = Mr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1555
1394
  else
1556
1395
  a[u] = l[u];
1557
1396
  else
1558
- i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = b({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? b({}, l[u]) : l[u] : a[u] = l[u];
1397
+ i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = v({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? v({}, l[u]) : l[u] : a[u] = l[u];
1559
1398
  return a;
1560
1399
  }, e);
1561
- }, Ur = (t, e) => function() {
1400
+ }, Mr = (t, e) => function() {
1562
1401
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1563
- }, jt = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], Ze = ["validate", "children", "control"], Ye = ["effect", "deep", "renderSlots"];
1402
+ }, jt = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], xe = ["validate", "children", "control"], Ye = ["effect", "deep", "renderSlots"];
1564
1403
  function It() {
1565
- return [...jt, ...kt, ...Et, ...Dt, ...Ze, ...Ye];
1404
+ return [...jt, ...Rt, ...Et, ...Dt, ...xe, ...Ye];
1566
1405
  }
1567
1406
  function At(t, e, r) {
1568
1407
  return `[form-create ${t}]: ${e}`;
1569
1408
  }
1570
- function xe(t, e) {
1409
+ function et(t, e) {
1571
1410
  console.error(At("err", t));
1572
1411
  }
1573
- function qr(t) {
1574
- xe(t.toString()), console.error(t);
1412
+ function Ur(t) {
1413
+ et(t.toString()), console.error(t);
1575
1414
  }
1576
- function Gr(t) {
1415
+ function qr(t) {
1577
1416
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1578
1417
  }
1579
- const We = "[[FORM-CREATE-PREFIX-", ze = "-FORM-CREATE-SUFFIX]]";
1580
- function et(t, e) {
1581
- return JSON.stringify(be(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1418
+ const We = "[[FORM-CREATE-PREFIX-", Ke = "-FORM-CREATE-SUFFIX]]";
1419
+ function ve(t, e) {
1420
+ return JSON.stringify(_e(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1582
1421
  if (!(i && i._isVue === !0)) {
1583
1422
  if (typeof i != "function")
1584
1423
  return i;
1585
1424
  if (i.__json)
1586
1425
  return i.__json;
1587
1426
  if (i.__origin && (i = i.__origin), !i.__emit)
1588
- return We + i + ze;
1427
+ return We + i + Ke;
1589
1428
  }
1590
1429
  }, e);
1591
1430
  }
1592
- function Le(t) {
1431
+ function Te(t) {
1593
1432
  return new Function("return " + t)();
1594
1433
  }
1595
- function z(t, e) {
1434
+ function W(t, e) {
1596
1435
  if (t && h.String(t) && t.length > 4) {
1597
1436
  let r = t.trim(), i = !1;
1598
1437
  try {
1599
- if (r.indexOf(ze) > 0 && r.indexOf(We) === 0)
1600
- r = r.replace(ze, "").replace(We, ""), i = !0;
1438
+ if (r.indexOf(Ke) > 0 && r.indexOf(We) === 0)
1439
+ r = r.replace(Ke, "").replace(We, ""), i = !0;
1601
1440
  else if (r.indexOf("$FN:") === 0)
1602
1441
  r = r.substring(4), i = !0;
1603
1442
  else if (r.indexOf("$EXEC:") === 0)
@@ -1611,19 +1450,19 @@ function z(t, e) {
1611
1450
  }, r.__json = t, r.__inject = !0, r;
1612
1451
  } else {
1613
1452
  if (r.indexOf("$FNX:") === 0)
1614
- return r = Le("function($inject){" + r.substring(5) + "}"), r.__json = t, r.__inject = !0, r;
1453
+ return r = Te("function($inject){" + r.substring(5) + "}"), r.__json = t, r.__inject = !0, r;
1615
1454
  (!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
1616
1455
  }
1617
1456
  if (!i) return t;
1618
1457
  let s;
1619
1458
  try {
1620
- s = Le(r);
1459
+ s = Te(r);
1621
1460
  } catch (n) {
1622
- s = Le("function " + r);
1461
+ s = Te("function " + r);
1623
1462
  }
1624
1463
  return s.__json = t, s;
1625
1464
  } catch (s) {
1626
- xe(`解析失败:${r}
1465
+ et(`解析失败:${r}
1627
1466
 
1628
1467
  err: ${s}`);
1629
1468
  return;
@@ -1633,12 +1472,12 @@ err: ${s}`);
1633
1472
  }
1634
1473
  function Vt(t, e) {
1635
1474
  return JSON.parse(t, function(r, i) {
1636
- return h.Undef(i) || !i.indexOf ? i : z(i, e);
1475
+ return h.Undef(i) || !i.indexOf ? i : W(i, e);
1637
1476
  });
1638
1477
  }
1639
- let Hr = 0;
1640
- function Ie() {
1641
- const t = 370 + ++Hr;
1478
+ let Gr = 0;
1479
+ function Ae() {
1480
+ const t = 370 + ++Gr;
1642
1481
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1643
1482
  }
1644
1483
  function se(t, e, r) {
@@ -1647,7 +1486,7 @@ function se(t, e, r) {
1647
1486
  s && ((!i[s] || typeof i[s] != "object") && S(i, s, {}), i = i[s]), s = n;
1648
1487
  }), S(i, s, r), i;
1649
1488
  }
1650
- function Ke(t, e) {
1489
+ function Xe(t, e) {
1651
1490
  return {
1652
1491
  value: t,
1653
1492
  enumerable: !1,
@@ -1656,59 +1495,59 @@ function Ke(t, e) {
1656
1495
  };
1657
1496
  }
1658
1497
  function Pt(t, e) {
1659
- return Bt([t], e || !1)[0];
1498
+ return Lt([t], e || !1)[0];
1660
1499
  }
1661
- function Bt(t, e) {
1662
- return be([], [...t], e || !1);
1500
+ function Lt(t, e) {
1501
+ return _e([], [...t], e || !1);
1663
1502
  }
1664
- function x(t, e) {
1665
- return Y(Array.isArray(e) ? e : [e], t, { array: Ze, normal: Ye }), t;
1503
+ function Y(t, e) {
1504
+ return x(Array.isArray(e) ? e : [e], t, { array: xe, normal: Ye }), t;
1666
1505
  }
1667
1506
  function ct(t) {
1668
1507
  const e = h.Function(t.getRule) ? t.getRule() : t;
1669
1508
  return e.type || (e.type = "input"), e;
1670
1509
  }
1671
- function Jr(t, e) {
1510
+ function Hr(t, e) {
1672
1511
  return t ? (Object.keys(e || {}).forEach((r) => {
1673
- e[r] && (t[r] = x(t[r] || {}, e[r]));
1512
+ e[r] && (t[r] = Y(t[r] || {}, e[r]));
1674
1513
  }), t) : e;
1675
1514
  }
1676
- function Lt(t, e) {
1515
+ function Bt(t, e) {
1677
1516
  Object.defineProperties(t, Object.keys(e).reduce((r, i) => (r[i] = {
1678
1517
  get() {
1679
1518
  return e[i]();
1680
1519
  }
1681
1520
  }, r), {}));
1682
1521
  }
1683
- function Z(t) {
1522
+ function Q(t) {
1684
1523
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1685
1524
  }
1686
1525
  function O(t, e) {
1687
1526
  try {
1688
1527
  e = t();
1689
1528
  } catch (r) {
1690
- qr(r);
1529
+ Ur(r);
1691
1530
  }
1692
1531
  return e;
1693
1532
  }
1694
- function Xe(t, e) {
1533
+ function Ze(t, e) {
1695
1534
  let r = null;
1696
- return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Xe(i, e)) : r = t, r && e && G(r).forEach((i) => {
1535
+ return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Ze(i, e)) : r = t, r && e && H(r).forEach((i) => {
1697
1536
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1698
1537
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1699
1538
  });
1700
1539
  }), r;
1701
1540
  }
1702
- function Wr(t, e) {
1541
+ function zr(t, e) {
1703
1542
  if (h.Object(t)) {
1704
1543
  const r = {};
1705
1544
  return Object.keys(t).forEach((i) => {
1706
- r[i] = Xe(t[i], i);
1545
+ r[i] = Ze(t[i], i);
1707
1546
  }), r;
1708
1547
  } else
1709
- return Xe(t, e);
1548
+ return Ze(t, e);
1710
1549
  }
1711
- function Oe() {
1550
+ function Fe() {
1712
1551
  const t = {}, e = (r) => r || "default";
1713
1552
  return {
1714
1553
  setSlot(r, i) {
@@ -1724,7 +1563,7 @@ function Oe() {
1724
1563
  const n = s();
1725
1564
  Array.isArray(n) ? i.push(...n) : i.push(n);
1726
1565
  } else h.Undef(s) || i.push(s);
1727
- }), Wr(i, r);
1566
+ }), zr(i, r);
1728
1567
  },
1729
1568
  getSlots() {
1730
1569
  let r = [];
@@ -1744,7 +1583,7 @@ function Oe() {
1744
1583
  }
1745
1584
  };
1746
1585
  }
1747
- function Fe(t, e) {
1586
+ function Se(t, e) {
1748
1587
  return Object.setPrototypeOf(t, e), t;
1749
1588
  }
1750
1589
  const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, fe = {
@@ -1787,7 +1626,7 @@ function L(t, e) {
1787
1626
  t != null && (t = t[r]);
1788
1627
  }), t;
1789
1628
  }
1790
- function zr(t) {
1629
+ function Jr(t) {
1791
1630
  const e = /{{\s*(.*?)\s*}}/g;
1792
1631
  let r;
1793
1632
  const i = {};
@@ -1801,6 +1640,170 @@ function dt(t) {
1801
1640
  n === 0 ? i = s : i += "." + s, r.push(i);
1802
1641
  }), r.join(" && ");
1803
1642
  }
1643
+ const Re = (t, e) => {
1644
+ if (!(!t || t === e || !t.$props)) {
1645
+ if (t.$props.formCreateInject)
1646
+ return t.$props.formCreateInject;
1647
+ if (t.$parent)
1648
+ return Re(t.$parent, e);
1649
+ }
1650
+ };
1651
+ function Wr(t, e, r) {
1652
+ const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1653
+ return {
1654
+ name: i,
1655
+ componentName: i,
1656
+ model: {
1657
+ prop: "api"
1658
+ },
1659
+ components: e,
1660
+ directives: r,
1661
+ provide() {
1662
+ return {
1663
+ $pfc: this
1664
+ };
1665
+ },
1666
+ inject: { $pfc: { default: null } },
1667
+ props: {
1668
+ rule: {
1669
+ type: Array,
1670
+ required: !0,
1671
+ default: () => []
1672
+ },
1673
+ option: {
1674
+ type: Object,
1675
+ default: () => ({})
1676
+ },
1677
+ extendOption: Boolean,
1678
+ driver: [String, Object],
1679
+ value: Object,
1680
+ disabled: {
1681
+ type: Boolean,
1682
+ default: void 0
1683
+ },
1684
+ preview: {
1685
+ type: Boolean,
1686
+ default: void 0
1687
+ },
1688
+ index: [String, Number],
1689
+ api: Object,
1690
+ locale: [String, Object],
1691
+ name: String,
1692
+ subForm: {
1693
+ type: Boolean,
1694
+ default: !0
1695
+ },
1696
+ inFor: Boolean
1697
+ },
1698
+ render() {
1699
+ return this.fc.render();
1700
+ },
1701
+ setup(s) {
1702
+ const n = lr().proxy;
1703
+ ur("parentFC", n);
1704
+ const o = fr("parentFC", null);
1705
+ let a = o;
1706
+ if (o)
1707
+ for (; a.parent; )
1708
+ a = a.parent;
1709
+ else
1710
+ a = n;
1711
+ const { rule: l, value: u, subForm: f, inFor: d } = lt(s), g = ie({
1712
+ ctxInject: {},
1713
+ destroyed: !1,
1714
+ isShow: !0,
1715
+ unique: 1,
1716
+ renderRule: [...l.value || []],
1717
+ updateValue: JSON.stringify(u.value || {})
1718
+ }), m = new t(n), $ = m.api(), _ = d.value, D = () => {
1719
+ if (o) {
1720
+ const F = Re(n, o);
1721
+ if (F) {
1722
+ let k;
1723
+ _ ? (k = H(F.getSubForm()), k.push($)) : k = $, F.subForm(k);
1724
+ }
1725
+ }
1726
+ }, ee = () => {
1727
+ const F = Re(n, o);
1728
+ if (F)
1729
+ if (_) {
1730
+ const k = H(F.getSubForm()), N = k.indexOf($);
1731
+ N > -1 && k.splice(N, 1);
1732
+ } else
1733
+ F.subForm();
1734
+ };
1735
+ let P = null;
1736
+ cr(() => {
1737
+ B(() => {
1738
+ let F = "";
1739
+ const k = s.option && s.option.globalClass || {};
1740
+ Object.keys(k).forEach((N) => {
1741
+ let de = "";
1742
+ k[N].style && Object.keys(k[N].style).forEach((z) => {
1743
+ de += be(z) + ":" + k[N].style[z] + ";";
1744
+ }), k[N].content && (de += k[N].content + ";"), de && (F += `.${N}{${de}}`);
1745
+ }), s.option && s.option.style && (F += s.option.style), P || (P = document.createElement("style"), P.type = "text/css", document.head.appendChild(P)), P.innerHTML = F || "";
1746
+ }, () => {
1747
+ });
1748
+ });
1749
+ const T = ne(() => {
1750
+ m.bus.$emit("$loadData.$topForm");
1751
+ }, 100), ce = ne(function() {
1752
+ m.bus.$emit("$loadData.$scopeForm");
1753
+ }, 100), Ve = ne(() => {
1754
+ m.bus.$emit("$loadData.$form");
1755
+ }, 100), he = (F) => {
1756
+ m.bus.$emit("change-$form." + F);
1757
+ };
1758
+ return hr(() => {
1759
+ o && ($.top.bus.$on("$loadData.$form", T), $.top.bus.$on("change", he)), $ !== $.scope && $.scope.bus.$on("$loadData.$scopeForm", ce), m.mounted();
1760
+ }), dr(() => {
1761
+ o && ($.top.bus.$off("$loadData.$form", T), $.top.bus.$off("change", he)), $ !== $.scope && $.scope.bus.$off("$loadData.$scopeForm", ce), P && document.head.removeChild(P), ee(), g.destroyed = !0, m.unmount();
1762
+ }), pr(() => {
1763
+ m.updated();
1764
+ }), B(f, (F) => {
1765
+ F ? D() : ee();
1766
+ }, { immediate: !0 }), B(() => s.option, () => {
1767
+ m.initOptions(), $.refresh();
1768
+ }, { deep: !0 }), B(() => [...l.value], (F) => {
1769
+ m.$handle.isBreakWatch() || F.length === g.renderRule.length && F.every((k) => g.renderRule.indexOf(k) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1770
+ }), B(() => [s.disabled, s.preview], () => {
1771
+ $.refresh();
1772
+ }), B(u, (F) => {
1773
+ ve(F || {}) !== g.updateValue && ($.config.forceCoverValue ? $.coverValue(F || {}) : $.setValue(F || {}));
1774
+ }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1775
+ $.coverValue({}), m.$handle.updateAppendData(), A(() => {
1776
+ A(() => {
1777
+ $.clearValidateState();
1778
+ });
1779
+ });
1780
+ }, { flush: "sync" }), U(v({
1781
+ fc: me(m),
1782
+ parent: o && me(o),
1783
+ top: me(a),
1784
+ fapi: me($)
1785
+ }, lt(g)), {
1786
+ getGroupInject: () => Re(n, o),
1787
+ refresh() {
1788
+ ++g.unique;
1789
+ },
1790
+ renderRule() {
1791
+ g.renderRule = [...l.value || []];
1792
+ },
1793
+ updateValue(F) {
1794
+ if (g.destroyed) return;
1795
+ const k = ve(F);
1796
+ g.updateValue !== k && (g.updateValue = k, n.$emit("update:value", F), A(() => {
1797
+ Ve(), o ? f.value || ce() : (T(), ce());
1798
+ }));
1799
+ }
1800
+ });
1801
+ },
1802
+ created() {
1803
+ this.$emit("input", this.fapi), this.fc.init();
1804
+ }
1805
+ };
1806
+ }
1804
1807
  function Tt() {
1805
1808
  return {
1806
1809
  props: {},
@@ -1813,7 +1816,7 @@ function Tt() {
1813
1816
  value: void 0
1814
1817
  };
1815
1818
  }
1816
- function A(t, e) {
1819
+ function V(t, e) {
1817
1820
  return (r, i, s, n = {}) => {
1818
1821
  const o = new tt(t, r, i, s, n);
1819
1822
  return e && (h.Function(e) ? e(o) : o.props(e)), o;
@@ -1837,12 +1840,12 @@ C(tt.prototype, {
1837
1840
  function Nt(t) {
1838
1841
  t.forEach((e) => {
1839
1842
  tt.prototype[e] = function(r) {
1840
- return x(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1843
+ return Y(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1841
1844
  };
1842
1845
  });
1843
1846
  }
1844
1847
  Nt(It());
1845
- const Mt = A("");
1848
+ const Mt = V("");
1846
1849
  function Kr(t, e, r) {
1847
1850
  let i = Mt("", e);
1848
1851
  return i._data.type = t, i._data.title = r, i;
@@ -1856,10 +1859,10 @@ function Xr() {
1856
1859
  create: Kr,
1857
1860
  createTmp: pt,
1858
1861
  template: pt,
1859
- factory: A
1862
+ factory: V
1860
1863
  };
1861
1864
  }
1862
- function Qr(t, e, r) {
1865
+ function Zr(t, e, r) {
1863
1866
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1864
1867
  return s.status = r.status, s.url = t, s;
1865
1868
  }
@@ -1888,7 +1891,7 @@ function Ut(t) {
1888
1891
  t.onError(o);
1889
1892
  }, e.onload = function() {
1890
1893
  if (e.status < 200 || e.status >= 300)
1891
- return t.onError(Qr(r, t, e), mt(e));
1894
+ return t.onError(Zr(r, t, e), mt(e));
1892
1895
  t.onSuccess(mt(e));
1893
1896
  }, e.open(t.method || "get", r, !0);
1894
1897
  let i;
@@ -1902,10 +1905,10 @@ function Ut(t) {
1902
1905
  }
1903
1906
  function gt(t, e, r) {
1904
1907
  return new Promise((i, s) => {
1905
- (e || Ut)(U(b({}, t), {
1908
+ (e || Ut)(U(v({}, t), {
1906
1909
  onSuccess(n) {
1907
1910
  let o = (l) => l;
1908
- const a = z(t.parse);
1911
+ const a = W(t.parse);
1909
1912
  h.Function(a) ? o = a : a && h.String(a) && (o = (l) => L(l, a)), i(o(n, void 0, r));
1910
1913
  },
1911
1914
  onError(n) {
@@ -1915,16 +1918,17 @@ function gt(t, e, r) {
1915
1918
  });
1916
1919
  }
1917
1920
  function $e(t) {
1918
- return W(t);
1921
+ return G(t);
1919
1922
  }
1920
- function Zr(t) {
1923
+ function Qr(t) {
1921
1924
  function e(n) {
1922
1925
  return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1923
1926
  }
1924
1927
  function r(n, o, a) {
1925
- e(n).forEach((l) => {
1926
- t.getCtxs(l).forEach((u) => {
1927
- S(u.rule, o, a), t.$render.clearCache(u);
1928
+ h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1929
+ const u = t.fieldCtx[l] || t.nameCtx[l];
1930
+ u && u.forEach((f) => {
1931
+ S(f.rule, o, a), t.$render.clearCache(f);
1928
1932
  });
1929
1933
  });
1930
1934
  }
@@ -1936,6 +1940,12 @@ function Zr(t) {
1936
1940
  }, []);
1937
1941
  }
1938
1942
  const s = {
1943
+ get isScope() {
1944
+ return t.vm.$props.subForm === !1;
1945
+ },
1946
+ get isPreview() {
1947
+ return t.preview;
1948
+ },
1939
1949
  get config() {
1940
1950
  return t.options;
1941
1951
  },
@@ -1987,6 +1997,9 @@ function Zr(t) {
1987
1997
  return o > -1 ? o : void 0;
1988
1998
  }
1989
1999
  },
2000
+ get formulas() {
2001
+ return v({}, t.fc.formulas);
2002
+ },
1990
2003
  formData(n) {
1991
2004
  if (n == null || typeof n == "boolean") {
1992
2005
  const o = {};
@@ -2001,7 +2014,7 @@ function Zr(t) {
2001
2014
  return o ? $e(o.rule.value) : t.options.appendValue !== !1 && E(t.appendData, n) ? $e(t.appendData[n]) : void 0;
2002
2015
  },
2003
2016
  coverValue(n) {
2004
- const o = b({}, n || {});
2017
+ const o = v({}, n || {});
2005
2018
  t.deferSyncValue(() => {
2006
2019
  t.appendData = {}, s.fields().forEach((a) => {
2007
2020
  const l = t.fieldCtx[a];
@@ -2035,7 +2048,7 @@ function Zr(t) {
2035
2048
  }, !0), o ? o.origin : void 0;
2036
2049
  },
2037
2050
  removeRule(n) {
2038
- const o = n && Z(n);
2051
+ const o = n && Q(n);
2039
2052
  if (o)
2040
2053
  return o.rm(), o.origin;
2041
2054
  },
@@ -2124,7 +2137,7 @@ function Zr(t) {
2124
2137
  n.forEach((a) => s.sync(a));
2125
2138
  return;
2126
2139
  }
2127
- let o = h.Object(n) ? Z(n) : t.getCtxs(n);
2140
+ let o = h.Object(n) ? Q(n) : t.getCtxs(n);
2128
2141
  o && (o = Array.isArray(o) ? o : [o], o.forEach((a) => {
2129
2142
  if (!a.deleted) {
2130
2143
  const l = t.subForm[a.id];
@@ -2161,7 +2174,7 @@ function Zr(t) {
2161
2174
  },
2162
2175
  mergeRule: (n, o) => {
2163
2176
  t.getCtxs(n).forEach((a) => {
2164
- x(a.rule, o);
2177
+ Y(a.rule, o);
2165
2178
  });
2166
2179
  },
2167
2180
  mergeRules(n) {
@@ -2210,9 +2223,9 @@ function Zr(t) {
2210
2223
  t.getCtxs(o).forEach((a) => {
2211
2224
  t.$render.clearCache(a), a.rule.value = $e(a.defaultValue);
2212
2225
  });
2213
- }), P(() => {
2214
- P(() => {
2215
- P(() => {
2226
+ }), A(() => {
2227
+ A(() => {
2228
+ A(() => {
2216
2229
  s.clearValidateState(n);
2217
2230
  });
2218
2231
  });
@@ -2228,7 +2241,7 @@ function Zr(t) {
2228
2241
  return O(() => s.method(n, o)(...a));
2229
2242
  },
2230
2243
  toJson(n) {
2231
- return et(s.rule, n);
2244
+ return ve(s.rule, n);
2232
2245
  },
2233
2246
  trigger(n, o, ...a) {
2234
2247
  const l = s.el(n);
@@ -2247,29 +2260,29 @@ function Zr(t) {
2247
2260
  return o ? t.subForm[o.id] : void 0;
2248
2261
  },
2249
2262
  getChildrenRuleList(n) {
2250
- const o = typeof n == "object", a = o ? Z(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2263
+ const o = typeof n == "object", a = o ? Q(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2251
2264
  if (!l)
2252
2265
  return [];
2253
2266
  const u = [];
2254
2267
  return ((d) => {
2255
- d && d.forEach((m) => {
2256
- typeof m == "object" && (m.field && u.push(m), u.push(...s.getChildrenRuleList(m)));
2268
+ d && d.forEach((g) => {
2269
+ typeof g == "object" && (g.field && u.push(g), u.push(...s.getChildrenRuleList(g)));
2257
2270
  });
2258
2271
  })(a ? a.loadChildrenPending() : l.children), u;
2259
2272
  },
2260
2273
  getParentRule(n) {
2261
- return (typeof n == "object" ? Z(n) : t.getCtx(n)).parent.rule;
2274
+ return (typeof n == "object" ? Q(n) : t.getCtx(n)).parent.rule;
2262
2275
  },
2263
2276
  getParentSubRule(n) {
2264
- const a = typeof n == "object" ? Z(n) : t.getCtx(n);
2277
+ const a = typeof n == "object" ? Q(n) : t.getCtx(n);
2265
2278
  if (a) {
2266
2279
  const l = a.getParentGroup();
2267
2280
  if (l)
2268
2281
  return l.rule;
2269
2282
  }
2270
2283
  },
2271
- getChildrenFormData(n) {
2272
- return s.getChildrenRuleList(n).reduce((a, l) => (a[l.field] = $e(l.value), a), {});
2284
+ getChildrenFormData(n, o) {
2285
+ return s.getChildrenRuleList(n).reduce((l, u) => ((u.ignore !== !0 || o === !0) && (l[u.field] = $e(u.value)), l), {});
2273
2286
  },
2274
2287
  setChildrenFormData(n, o, a) {
2275
2288
  const l = s.getChildrenRuleList(n);
@@ -2282,7 +2295,7 @@ function Zr(t) {
2282
2295
  getGlobalEvent(n) {
2283
2296
  let o = s.options.globalEvent[n];
2284
2297
  if (o)
2285
- return typeof o == "object" && (o = o.handle), z(o);
2298
+ return typeof o == "object" && (o = o.handle), W(o);
2286
2299
  },
2287
2300
  getGlobalData(n) {
2288
2301
  return new Promise((o, a) => {
@@ -2293,11 +2306,11 @@ function Zr(t) {
2293
2306
  });
2294
2307
  },
2295
2308
  renderRule(n, o, a) {
2296
- const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2309
+ const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2297
2310
  return u ? t.$render.createRuleVnode(u, o, a) : void 0;
2298
2311
  },
2299
2312
  renderChildren(n, o, a) {
2300
- const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2313
+ const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2301
2314
  return u ? t.$render.createChildrenVnodes(u, o, a) : void 0;
2302
2315
  },
2303
2316
  nextTick(n) {
@@ -2315,21 +2328,23 @@ function Zr(t) {
2315
2328
  bus: t.bus,
2316
2329
  fetch(n) {
2317
2330
  return new Promise((o, a) => {
2318
- n = W(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => gt(n, t.fc.create.fetch, s).then((l) => {
2331
+ n = G(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => gt(n, t.fc.create.fetch, s).then((l) => {
2319
2332
  O(() => n.onSuccess && n.onSuccess(l)), o(l);
2320
2333
  }).catch((l) => {
2321
2334
  O(() => n.onError && n.onError(l)), a(l);
2322
- }));
2335
+ })).catch((l) => {
2336
+ });
2323
2337
  });
2324
2338
  },
2325
2339
  watchFetch(n, o, a, l) {
2326
2340
  return t.fc.watchLoadData((u, f) => {
2327
- let d = W(n);
2328
- d = t.loadFetchVar(d, u), !(l && l(d, f) === !1) && t.beforeFetch(d).then(() => gt(d, t.fc.create.fetch, s).then((m) => {
2329
- O(() => d.onSuccess && d.onSuccess(m)), o && o(m, f);
2330
- }).catch((m) => {
2331
- O(() => d.onError && d.onError(m)), a && a(m);
2332
- }));
2341
+ let d = G(n);
2342
+ d = t.loadFetchVar(d, u), !(l && l(d, f) === !1) && t.beforeFetch(d).then(() => gt(d, t.fc.create.fetch, s).then((g) => {
2343
+ O(() => d.onSuccess && d.onSuccess(g)), o && o(g, f);
2344
+ }).catch((g) => {
2345
+ O(() => d.onError && d.onError(g)), a && a(g);
2346
+ })).catch((g) => {
2347
+ });
2333
2348
  }, n.wait == null ? 1e3 : n.wait);
2334
2349
  },
2335
2350
  getData(n, o) {
@@ -2358,7 +2373,7 @@ function Zr(t) {
2358
2373
  };
2359
2374
  }), s.changeValue = s.changeField = s.setValue, s;
2360
2375
  }
2361
- function Yr(t) {
2376
+ function xr(t) {
2362
2377
  C(t.prototype, {
2363
2378
  initCache() {
2364
2379
  this.clearCacheAll();
@@ -2399,7 +2414,7 @@ function q(t) {
2399
2414
  function qt(t) {
2400
2415
  return t.replace(t[0], t[0].toLowerCase());
2401
2416
  }
2402
- function xr(t) {
2417
+ function Yr(t) {
2403
2418
  C(t.prototype, {
2404
2419
  initRender() {
2405
2420
  this.cacheConfig = {};
@@ -2408,7 +2423,7 @@ function xr(t) {
2408
2423
  const r = (i) => {
2409
2424
  if (i) {
2410
2425
  let s;
2411
- return e.rule.field && (s = i.$scopedSlots["field-" + ve(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + ve(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2426
+ return e.rule.field && (s = i.$scopedSlots["field-" + be(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + be(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2412
2427
  }
2413
2428
  };
2414
2429
  return r(this.vm);
@@ -2417,7 +2432,7 @@ function xr(t) {
2417
2432
  if (!this.vm.isShow)
2418
2433
  return;
2419
2434
  this.$manager.beforeRender();
2420
- const e = Oe();
2435
+ const e = Fe();
2421
2436
  return this.sort.forEach((r) => {
2422
2437
  this.renderSlot(e, this.$handle.ctxs[r]);
2423
2438
  }), this.$manager.render(e);
@@ -2430,8 +2445,8 @@ function xr(t) {
2430
2445
  mergeGlobal(e) {
2431
2446
  this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ge(() => {
2432
2447
  const i = this.$handle.options.global;
2433
- return x({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2434
- })), e.prop = x({}, [this.cacheConfig[e.trueType].value, e.prop]));
2448
+ return Y({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2449
+ })), e.prop = Y({}, [this.cacheConfig[e.trueType].value, e.prop]));
2435
2450
  },
2436
2451
  setOptions(e) {
2437
2452
  const r = e.loadPending({ key: "options", origin: e.prop.options, def: [] });
@@ -2444,7 +2459,7 @@ function xr(t) {
2444
2459
  });
2445
2460
  },
2446
2461
  parseSide(e, r) {
2447
- return h.Object(e) ? x({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2462
+ return h.Object(e) ? Y({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2448
2463
  },
2449
2464
  renderSides(e, r, i) {
2450
2465
  const s = r[i ? "rule" : "prop"];
@@ -2492,9 +2507,9 @@ function xr(t) {
2492
2507
  return this.renderRule(_);
2493
2508
  })()));
2494
2509
  });
2495
- const m = this.getTypeSlot(e);
2496
- let g;
2497
- return m ? (u.children = f, g = m(u)) : g = a ? e.parser.preview(Je(f), e) : e.parser.render(Je(f), e), g = this.renderSides(g, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), g = this.$manager.makeWrap(e, g)), e.none && (Array.isArray(g) ? g = g.map(($) => !$ || !$.tag ? $ : this.none($)) : g = this.none(g)), o && this.setCache(e, () => this.stable(g), r), g;
2510
+ const g = this.getTypeSlot(e);
2511
+ let m;
2512
+ return g ? (u.children = f, m = g(u)) : m = a ? e.parser.preview(Je(f), e) : e.parser.render(Je(f), e), m = this.renderSides(m, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map(($) => !$ || !$.tag ? $ : this.none($)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2498
2513
  }, this.setCache(e, s, r);
2499
2514
  }
2500
2515
  return (...s) => {
@@ -2561,8 +2576,8 @@ function xr(t) {
2561
2576
  preview: e.prop.preview,
2562
2577
  options: e.prop.options,
2563
2578
  prop: function() {
2564
- const s = b({}, e.prop);
2565
- return s.on = s.on ? b({}, s.on) : {}, delete s.model, s;
2579
+ const s = v({}, e.prop);
2580
+ return s.on = s.on ? v({}, s.on) : {}, delete s.model, s;
2566
2581
  }(),
2567
2582
  children: e.loadChildrenPending()
2568
2583
  }), i;
@@ -2570,7 +2585,11 @@ function xr(t) {
2570
2585
  ctxProp(e) {
2571
2586
  const { ref: r, key: i, rule: s } = e;
2572
2587
  this.$manager.mergeProp(e), e.parser.mergeProp(e);
2573
- const n = [
2588
+ const n = v({}, e.prop.on || {}), o = {};
2589
+ Object.keys(n).forEach((l) => {
2590
+ l.indexOf("native.") === 0 && (o[l.replace("native.", "")] = n[l], delete n[l]);
2591
+ }), e.prop.on = n;
2592
+ const a = [
2574
2593
  {
2575
2594
  ref: r,
2576
2595
  key: s.key || `${i}fc`,
@@ -2579,30 +2598,33 @@ function xr(t) {
2579
2598
  "hook:mounted": () => {
2580
2599
  this.onMounted(e);
2581
2600
  },
2582
- "fc.updateValue": (o) => {
2583
- this.$handle.onUpdateValue(e, o);
2601
+ "fc.updateValue": (l) => {
2602
+ this.$handle.onUpdateValue(e, l);
2584
2603
  },
2585
- "fc.el": (o) => {
2586
- e.exportEl = o, o && ((o.$el || o).__rule__ = e.rule);
2604
+ "fc.el": (l) => {
2605
+ e.exportEl = l, l && ((l.$el || l).__rule__ = e.rule);
2587
2606
  }
2588
2607
  }
2608
+ },
2609
+ {
2610
+ nativeOn: o
2589
2611
  }
2590
2612
  ];
2591
2613
  if (e.input) {
2592
- const o = this.tmpInput;
2614
+ const l = this.tmpInput;
2593
2615
  this.vm.$props.disabled === !0 && (e.prop.props.disabled = !0), e.prop.model = {
2594
2616
  value: this.$handle.getFormData(e),
2595
- callback: (a) => {
2596
- o && o(e.field, a, e.rule), this.onInput(e, a);
2617
+ callback: (u) => {
2618
+ l && l(e.field, u, e.rule), this.onInput(e, u);
2597
2619
  },
2598
2620
  expression: `formData.${e.id}`
2599
- }, e.prop.modelEmit && n.push({
2621
+ }, e.prop.modelEmit && a.push({
2600
2622
  on: {
2601
2623
  [e.prop.modelEmit]: () => this.onEmitInput(e)
2602
2624
  }
2603
2625
  });
2604
2626
  }
2605
- return Y(n, e.prop), e.prop;
2627
+ return x(a, e.prop), e.prop;
2606
2628
  },
2607
2629
  onMounted(e) {
2608
2630
  e.el = this.vm.$refs[e.ref], e.el && ((e.el.$el || e.el).__rule__ = e.rule), e.parser.mounted(e), this.$handle.effect(e, "mounted"), this.$handle.targetHook(e, "mounted");
@@ -2619,7 +2641,7 @@ function xr(t) {
2619
2641
  },
2620
2642
  renderChildren(e, r, i) {
2621
2643
  if (!h.trueArray(e)) return [];
2622
- const s = Oe();
2644
+ const s = Fe();
2623
2645
  return e.map((n) => {
2624
2646
  if (n) {
2625
2647
  if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
@@ -2628,7 +2650,7 @@ function xr(t) {
2628
2650
  }) : n);
2629
2651
  if (n.__fc__)
2630
2652
  return this.renderSlot(s, n.__fc__, r);
2631
- n.type && P(() => {
2653
+ n.type && A(() => {
2632
2654
  this.$handle.loadChildren(e, r), this.$handle.refresh();
2633
2655
  });
2634
2656
  }
@@ -2645,7 +2667,7 @@ function xr(t) {
2645
2667
  },
2646
2668
  createRuleVnode(e, r, i) {
2647
2669
  this.force = i !== !1, this.tmpInput = r;
2648
- const s = Oe();
2670
+ const s = Fe();
2649
2671
  return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
2650
2672
  },
2651
2673
  renderRule(e, r, i) {
@@ -2660,11 +2682,11 @@ function xr(t) {
2660
2682
  a && (s = q(a));
2661
2683
  }
2662
2684
  if (!s) return;
2663
- const n = Oe();
2685
+ const n = Fe();
2664
2686
  h.trueArray(e.children) && e.children.forEach((a) => {
2665
2687
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2666
2688
  });
2667
- const o = b({}, e);
2689
+ const o = v({}, e);
2668
2690
  return delete o.type, delete o.is, this.vNode.make(s, o, n.mergeBag(r).getSlots());
2669
2691
  }
2670
2692
  });
@@ -2680,7 +2702,7 @@ function rt(t) {
2680
2702
  force: !1,
2681
2703
  tmpInput: null,
2682
2704
  id: ei++
2683
- }), Lt(this, {
2705
+ }), Bt(this, {
2684
2706
  options() {
2685
2707
  return t.options;
2686
2708
  },
@@ -2689,8 +2711,8 @@ function rt(t) {
2689
2711
  }
2690
2712
  }), this.initCache(), this.initRender();
2691
2713
  }
2692
- Yr(rt);
2693
2714
  xr(rt);
2715
+ Yr(rt);
2694
2716
  function ti(t) {
2695
2717
  C(t.prototype, {
2696
2718
  parseInjectEvent(e, r) {
@@ -2709,7 +2731,7 @@ function ti(t) {
2709
2731
  if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2710
2732
  return this.parseEventLst(e, r, i, !0);
2711
2733
  if (h.String(r)) {
2712
- const n = z(r);
2734
+ const n = W(r);
2713
2735
  if (n && r !== n)
2714
2736
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2715
2737
  }
@@ -2718,11 +2740,11 @@ function ti(t) {
2718
2740
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: l } = s, u = s[r ? "emit" : "nativeEmit"] || [];
2719
2741
  return h.trueArray(u) && u.forEach((f) => {
2720
2742
  if (!f) return;
2721
- let d, m = n || o || a;
2722
- if (h.Object(f) && (d = f.inject, f = f.name, m = f.prefix || m), m) {
2723
- r || (m = `native-${m}`);
2724
- const g = ve(`${m}-${f}`), $ = (..._) => {
2725
- this.vm.$emit(g, ..._), this.vm.$emit("emit-event", g, ..._), this.bus.$emit(g, ..._);
2743
+ let d, g = n || o || a;
2744
+ if (h.Object(f) && (d = f.inject, f = f.name, g = f.prefix || g), g) {
2745
+ r || (g = `native-${g}`);
2746
+ const m = be(`${g}-${f}`), $ = (..._) => {
2747
+ this.vm.$emit(m, ..._), this.vm.$emit("emit-event", m, ..._), this.bus.$emit(m, ..._);
2726
2748
  };
2727
2749
  if ($.__emit = !0, !d && l === !1)
2728
2750
  i[f] = $;
@@ -2758,21 +2780,21 @@ function ti(t) {
2758
2780
  },
2759
2781
  loadStrVar(e, r, i) {
2760
2782
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2761
- const s = e, n = zr(e);
2783
+ const s = e, n = Jr(e);
2762
2784
  let o;
2763
2785
  if (n.forEach((a) => {
2764
2786
  const l = a.split("||"), u = l[0].trim();
2765
2787
  if (u) {
2766
2788
  const f = (l[1] || "").trim();
2767
- let d, m = !1;
2789
+ let d, g = !1;
2768
2790
  if (i && u.indexOf("$form.") === 0) {
2769
- const g = u.split(".");
2770
- g.shift(), E(i.value, g[0]) && (m = !0, d = r ? r({
2771
- id: "$form." + g[0] + "_" + i.rule.__fc__.id,
2772
- getValue: () => L(i.value, g)
2773
- }) : L(i.value, g));
2791
+ const m = u.split(".");
2792
+ m.shift(), E(i.value, m[0]) && (g = !0, d = r ? r({
2793
+ id: "$form." + m[0] + "_" + i.rule.__fc__.id,
2794
+ getValue: () => L(i.value, m)
2795
+ }) : L(i.value, m));
2774
2796
  }
2775
- m || (d = r ? r(u, f) : this.fc.getLoadData(u, f)), o = d, e = e.replaceAll(`{{${a}}}`, d == null ? "" : d);
2797
+ g || (d = r ? r(u, f) : this.fc.getLoadData(u, f)), o = d, e = e.replaceAll(`{{${a}}}`, d == null ? "" : d);
2776
2798
  }
2777
2799
  }), n.length === 1 && s === `{{${n[0]}}}`)
2778
2800
  return o;
@@ -2835,13 +2857,13 @@ function ni(t) {
2835
2857
  }
2836
2858
  function si(t) {
2837
2859
  Object.defineProperties(t.origin, {
2838
- __fc__: Ke(me(t), !0)
2860
+ __fc__: Xe(me(t), !0)
2839
2861
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2840
- __fc__: Ke(me(t), !0)
2862
+ __fc__: Xe(me(t), !0)
2841
2863
  });
2842
2864
  }
2843
2865
  function Gt(t, e, r) {
2844
- const i = Ie(), s = !!e.field;
2866
+ const i = Ae(), s = !!e.field;
2845
2867
  C(this, {
2846
2868
  id: i,
2847
2869
  ref: i,
@@ -2859,14 +2881,14 @@ function Gt(t, e, r) {
2859
2881
  parent: null,
2860
2882
  group: e.subRule ? this : null,
2861
2883
  cacheConfig: null,
2862
- prop: b({}, e),
2884
+ prop: v({}, e),
2863
2885
  computed: {},
2864
2886
  payload: {},
2865
2887
  refRule: {},
2866
2888
  input: s,
2867
2889
  el: void 0,
2868
2890
  exportEl: void 0,
2869
- defaultValue: s ? W(r) : void 0,
2891
+ defaultValue: s ? G(r) : void 0,
2870
2892
  field: e.field || void 0
2871
2893
  }), this.updateKey(), si(this), this.update(t, !0);
2872
2894
  }
@@ -2940,7 +2962,7 @@ C(Gt.prototype, {
2940
2962
  t === void 0 ? this.payload = {} : delete this.payload[t];
2941
2963
  },
2942
2964
  updateKey(t) {
2943
- this.key = Ie(), t && this.parent && this.parent.updateKey(t);
2965
+ this.key = Ae(), t && this.parent && this.parent.updateKey(t);
2944
2966
  },
2945
2967
  updateType() {
2946
2968
  this.originType = this.rule.type, this.type = q(this.rule.type), this.trueType = this.$handle.getType(this.originType);
@@ -2950,8 +2972,8 @@ C(Gt.prototype, {
2950
2972
  },
2951
2973
  initProp() {
2952
2974
  var e, r;
2953
- const t = b({}, this.rule);
2954
- delete t.children, delete t.validate, this.prop = x({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
2975
+ const t = v({}, this.rule);
2976
+ delete t.children, delete t.validate, this.prop = Y({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
2955
2977
  },
2956
2978
  initNone() {
2957
2979
  this.none = !(h.Undef(this.prop.display) || this.prop.display);
@@ -3021,17 +3043,17 @@ function oi(t) {
3021
3043
  C(t.prototype, {
3022
3044
  nextRefresh(e) {
3023
3045
  const r = this.loadedId;
3024
- P(() => {
3046
+ A(() => {
3025
3047
  r === this.loadedId && (e ? e() : this.refresh());
3026
3048
  });
3027
3049
  },
3028
3050
  parseRule(e) {
3029
3051
  const r = ct(e);
3030
3052
  return Object.defineProperties(r, {
3031
- __origin__: Ke(e, !0)
3053
+ __origin__: Xe(e, !0)
3032
3054
  }), ai(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3033
3055
  i && this.loadFn(i, r);
3034
- }), this.loadCtrl(r), r.update && (r.update = z(r.update)), r;
3056
+ }), this.loadCtrl(r), r.update && (r.update = W(r.update)), r;
3035
3057
  },
3036
3058
  loadFn(e, r) {
3037
3059
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -3040,12 +3062,12 @@ function oi(t) {
3040
3062
  },
3041
3063
  loadCtrl(e) {
3042
3064
  e.control && e.control.forEach((r) => {
3043
- r.handle && (r.handle = z(r.handle));
3065
+ r.handle && (r.handle = W(r.handle));
3044
3066
  });
3045
3067
  },
3046
3068
  syncProp(e) {
3047
3069
  const r = e.rule;
3048
- h.trueArray(r.sync) && Y([{
3070
+ h.trueArray(r.sync) && x([{
3049
3071
  on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
3050
3072
  r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
3051
3073
  }, i), {})
@@ -3079,25 +3101,25 @@ function oi(t) {
3079
3101
  let l = ct(o);
3080
3102
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3081
3103
  this.fc.targetFormDriver("loadRule", { rule: l, api: this.api }, this.fc), this.ruleEffect(l, "init", { repeat: u() }), u() && this.vm.$emit("repeat-field", o, this.api);
3082
- let f, d = !1, m = !!o.__fc__, g = l.value;
3083
- if (m) {
3084
- if (f = o.__fc__, g = f.defaultValue, f.deleted) {
3104
+ let f, d = !1, g = !!o.__fc__, m = l.value;
3105
+ if (g) {
3106
+ if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3085
3107
  if ($t(f))
3086
3108
  return;
3087
3109
  f.update(this);
3088
3110
  } else if (!f.check(this)) {
3089
3111
  if ($t(f))
3090
3112
  return;
3091
- e[a] = o = o._clone ? o._clone() : Vt(et(o)), f = null, d = !0;
3113
+ e[a] = o = o._clone ? o._clone() : Vt(ve(o)), f = null, d = !0;
3092
3114
  }
3093
3115
  }
3094
3116
  if (f)
3095
3117
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3096
3118
  else {
3097
3119
  const D = this.parseRule(o);
3098
- f = new Gt(this, D, g), this.bindParser(f);
3120
+ f = new Gt(this, D, m), this.bindParser(f);
3099
3121
  }
3100
- [!1, !0].forEach((D) => this.parseEmit(f, D)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !d && !m && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3122
+ [!1, !0].forEach((D) => this.parseEmit(f, D)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !d && !g && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3101
3123
  const $ = f.loadChildrenPending();
3102
3124
  if (f.parser.loadChildren === !1 || s($, f), !r) {
3103
3125
  const D = i(a);
@@ -3121,7 +3143,7 @@ function oi(t) {
3121
3143
  return (fe[l.condition || "=="] || fe["=="])(d, l.value);
3122
3144
  };
3123
3145
  if (!h.trueArray(l.rule)) continue;
3124
- const f = U(b({}, l), {
3146
+ const f = U(v({}, l), {
3125
3147
  valid: O(() => u(e.rule.value, s)),
3126
3148
  ctrl: ui(e, l.rule),
3127
3149
  isHidden: h.String(l.rule[0])
@@ -3132,13 +3154,13 @@ function oi(t) {
3132
3154
  const n = [];
3133
3155
  let o = !1;
3134
3156
  return this.deferSyncValue(() => {
3135
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: m, ctrl: g, method: $ }) => {
3157
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: g, ctrl: m, method: $ }) => {
3136
3158
  if (a) {
3137
3159
  l ? e.ctrlRule.push({
3138
3160
  __ctrl: !0,
3139
3161
  children: u,
3140
3162
  valid: l
3141
- }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3163
+ }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3142
3164
  $ === "disabled" || $ === "enabled" ? this.api.disabled(!l, u) : $ === "display" || $ === "show" ? this.api.display(l, u) : $ === "required" ? (u.forEach((_) => {
3143
3165
  this.api.setEffect(_, "required", l);
3144
3166
  }), l || this.api.clearValidateState(u)) : $ === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
@@ -3154,17 +3176,17 @@ function oi(t) {
3154
3176
  children: u
3155
3177
  };
3156
3178
  e.ctrlRule.push(_), this.bus.$once("load-start", () => {
3157
- f ? s.prepend(_, f, m) : d || m ? s.append(_, d || e.id, m) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3179
+ f ? s.prepend(_, f, g) : d || g ? s.append(_, d || e.id, g) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3158
3180
  });
3159
3181
  } else {
3160
- e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3161
- const _ = Z(g);
3182
+ e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3183
+ const _ = Q(m);
3162
3184
  _ && _.rm();
3163
3185
  }
3164
3186
  });
3165
3187
  }), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
3166
3188
  n.forEach((a) => a());
3167
- }) : n.length && P(() => {
3189
+ }) : n.length && A(() => {
3168
3190
  n.forEach((a) => a());
3169
3191
  })), this.vm.$emit("control", e.origin, this.api), this.effect(e, "control"), o;
3170
3192
  },
@@ -3173,7 +3195,7 @@ function oi(t) {
3173
3195
  },
3174
3196
  _reloadRule(e) {
3175
3197
  e || (e = this.rules);
3176
- const r = b({}, this.ctxs);
3198
+ const r = v({}, this.ctxs);
3177
3199
  this.clearNextTick(), this.initData(e), this.fc.rules = e, this.deferSyncValue(() => {
3178
3200
  this.bus.$once("load-end", () => {
3179
3201
  Object.keys(r).filter((i) => this.ctxs[i] === void 0).forEach((i) => this.rmCtx(r[i])), this.$render.clearCacheAll();
@@ -3213,9 +3235,9 @@ function fi(t) {
3213
3235
  rule: e.origin,
3214
3236
  api: this.api,
3215
3237
  setFlag: s || !1
3216
- }), s && P(() => {
3217
- P(() => {
3218
- P(() => {
3238
+ }), s && A(() => {
3239
+ A(() => {
3240
+ A(() => {
3219
3241
  this.api.clearValidateState(e.id);
3220
3242
  });
3221
3243
  });
@@ -3250,9 +3272,9 @@ function fi(t) {
3250
3272
  },
3251
3273
  syncForm() {
3252
3274
  const e = {}, r = this.fields(), i = [];
3253
- this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Ee(this.appendData, n)), s), e), r.reduce((s, n) => {
3275
+ this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = De(this.appendData, n)), s), e), r.reduce((s, n) => {
3254
3276
  const o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a.rule))[0] || this.fieldCtx[n][0];
3255
- return this.isIgnore(o.rule) && i.push(n), s[n] = Ee(o.rule, "value"), s;
3277
+ return this.isIgnore(o.rule) && i.push(n), s[n] = De(o.rule, "value"), s;
3256
3278
  }, e), this.form = ie(e), this.ignoreFields = i, this.syncValue();
3257
3279
  },
3258
3280
  isIgnore(e) {
@@ -3276,10 +3298,10 @@ function fi(t) {
3276
3298
  }), this.vm.updateValue(e);
3277
3299
  },
3278
3300
  isChange(e, r) {
3279
- return JSON.stringify(this.getFormData(e), vt) !== JSON.stringify(r, vt);
3301
+ return JSON.stringify(this.getFormData(e), bt) !== JSON.stringify(r, bt);
3280
3302
  },
3281
3303
  isQuote(e, r) {
3282
- return (h.Object(r) || Array.isArray(r)) && r === e.rule.value;
3304
+ return (r instanceof Function || h.Object(r) || Array.isArray(r)) && r === e.rule.value;
3283
3305
  },
3284
3306
  refreshUpdate(e, r, i, s) {
3285
3307
  if (h.Function(e.rule.update)) {
@@ -3309,10 +3331,10 @@ function fi(t) {
3309
3331
  }
3310
3332
  });
3311
3333
  }
3312
- function vt(t, e) {
3334
+ function bt(t, e) {
3313
3335
  return typeof e == "function" ? "" + e : e;
3314
3336
  }
3315
- const ke = {
3337
+ const Ee = {
3316
3338
  init(t) {
3317
3339
  },
3318
3340
  toFormValue(t, e) {
@@ -3367,7 +3389,7 @@ function hi(t) {
3367
3389
  if (n)
3368
3390
  return n;
3369
3391
  }
3370
- return r[e.originType] || r[q(e.type)] || r[e.trueType] || ke;
3392
+ return r[e.originType] || r[q(e.type)] || r[e.trueType] || Ee;
3371
3393
  },
3372
3394
  bindParser(e) {
3373
3395
  e.setParser(this.getParser(e));
@@ -3381,7 +3403,7 @@ function hi(t) {
3381
3403
  },
3382
3404
  watchCtx(e) {
3383
3405
  if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && ci.indexOf(i) === -1).forEach((i) => {
3384
- const s = Ee(e.rule, i), n = i === "children";
3406
+ const s = De(e.rule, i), n = i === "children";
3385
3407
  e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3386
3408
  let l = s.value;
3387
3409
  if (!this.isBreakWatch()) {
@@ -3389,9 +3411,9 @@ function hi(t) {
3389
3411
  this.$render.clearCache(e), this.nextRefresh();
3390
3412
  return;
3391
3413
  }
3392
- if (this.watching = !0, P(() => {
3414
+ if (this.watching = !0, A(() => {
3393
3415
  this.targetHook(e, "watch", { key: i, oldValue: a, newValue: l });
3394
- }), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(), P(() => {
3416
+ }), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(), A(() => {
3395
3417
  this.targetHook(e, "hidden", { value: l });
3396
3418
  })), i === "ignore" && e.input || i === "hidden" && e.input && (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields))
3397
3419
  this.syncForm();
@@ -3416,28 +3438,39 @@ function hi(t) {
3416
3438
  s && (i = this.api.t(s[1]));
3417
3439
  }
3418
3440
  return i;
3419
- }), e.refRule.__$validate = ge(() => G(e.rule.validate).map((i) => {
3420
- var n, o;
3421
- const s = b({}, i);
3422
- if (s.message) {
3423
- const a = s.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3424
- a && (s.message = this.api.t(a[1], { title: (o = (n = e.refRule) == null ? void 0 : n.__$title) == null ? void 0 : o.value }));
3425
- }
3426
- if (h.Function(s.validator)) {
3427
- const a = e;
3428
- return s.validator = function(...l) {
3429
- return i.validator.call({
3430
- that: this,
3431
- id: a.id,
3432
- field: a.field,
3433
- rule: a.rule,
3434
- api: a.$handle.api
3435
- }, ...l);
3436
- }, s;
3437
- }
3438
- return s;
3439
- })), e.input) {
3440
- const i = Ee(e.rule, "value");
3441
+ }), e.refRule.__$validate = ge(() => {
3442
+ const i = (s) => {
3443
+ var o, a;
3444
+ const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3445
+ return n ? this.api.t(n[1], { title: (a = (o = e.refRule) == null ? void 0 : o.__$title) == null ? void 0 : a.value }) : s;
3446
+ };
3447
+ return H(e.rule.validate).map((s) => {
3448
+ const n = v({}, s);
3449
+ if (n.message && (n.message = i(n.message)), h.Function(n.validator)) {
3450
+ const o = e;
3451
+ n.validator = function(...a) {
3452
+ return s.validator.call({
3453
+ that: this,
3454
+ id: o.id,
3455
+ field: o.field,
3456
+ rule: o.rule,
3457
+ api: o.$handle.api
3458
+ }, ...a);
3459
+ };
3460
+ }
3461
+ if (n.adapter) {
3462
+ if (typeof n.error == "object") {
3463
+ const o = v({}, n.error);
3464
+ Object.keys(o).forEach((a) => {
3465
+ o[a] = i(o[a]);
3466
+ }), n.error = o;
3467
+ }
3468
+ return this.adapterValidate(n, e);
3469
+ }
3470
+ return n;
3471
+ });
3472
+ }), e.input) {
3473
+ const i = De(e.rule, "value");
3441
3474
  e.watch.push(B(() => i.value, () => {
3442
3475
  let s = e.parser.toFormValue(i.value, e);
3443
3476
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
@@ -3463,6 +3496,115 @@ function hi(t) {
3463
3496
  }));
3464
3497
  }), this.watchEffect(e);
3465
3498
  },
3499
+ adapterValidate(e, r) {
3500
+ const i = (s, n) => {
3501
+ if ((e.beforeValidate && O(() => e.beforeValidate({
3502
+ value: s,
3503
+ api: this.api,
3504
+ validate: e,
3505
+ rule: r.rule
3506
+ }))) === !1)
3507
+ n();
3508
+ else {
3509
+ const a = this.validator(s, e);
3510
+ if (a) {
3511
+ let l = "";
3512
+ typeof e.error == "object" && (l = e.error[a] || e.error.default), !l && typeof e.message == "string" && (l = e.message), l || (l = this.getValidateMessage(r, { key: a, rule: e[a] })), n(l);
3513
+ } else if (e.validator) {
3514
+ const l = e.validator && O(() => e.validator(s, n));
3515
+ l && h.Function(l.then) && l.then(() => n()).catch((u) => n(u));
3516
+ } else
3517
+ n();
3518
+ }
3519
+ };
3520
+ return this.$manager.adapterValidate({
3521
+ required: e.required,
3522
+ message: e.message,
3523
+ target: e.trigger
3524
+ }, i);
3525
+ },
3526
+ getValidateMessage(e, r) {
3527
+ var s, n;
3528
+ const i = Array.isArray(r.rule) ? r.rule.join(",") : "" + r.rule;
3529
+ return this.api.t(r.key === "required" ? r.key : "validate." + r.key, {
3530
+ [r.key]: i,
3531
+ title: (n = (s = e.refRule) == null ? void 0 : s.__$title) == null ? void 0 : n.value
3532
+ });
3533
+ },
3534
+ validator(e, r) {
3535
+ if (h.empty(e))
3536
+ return r.required ? "required" : void 0;
3537
+ for (const [s, n] of Object.entries(r))
3538
+ switch (s) {
3539
+ case "len":
3540
+ case "maxLen":
3541
+ case "minLen":
3542
+ const o = (m) => s === "len" ? m === n : s === "maxLen" ? m <= n : m >= n;
3543
+ if (Array.isArray(e)) {
3544
+ if (!o(e.length))
3545
+ return s;
3546
+ } else {
3547
+ if (typeof e == "object")
3548
+ return s;
3549
+ if (!o(("" + e).length))
3550
+ return s;
3551
+ }
3552
+ break;
3553
+ case "pattern":
3554
+ if (!(typeof n == "string" ? new RegExp(n) : n).test("" + e))
3555
+ return s;
3556
+ break;
3557
+ case "uppercase":
3558
+ if (n && (typeof e != "string" || !/^[A-Z]*$/.test(e)))
3559
+ return s;
3560
+ break;
3561
+ case "lowercase":
3562
+ if (n && (typeof e != "string" || !/^[a-z]*$/.test(e)))
3563
+ return s;
3564
+ break;
3565
+ case "min":
3566
+ case "max":
3567
+ case "positive":
3568
+ case "negative":
3569
+ case "integer":
3570
+ case "number":
3571
+ const l = Number(e);
3572
+ if (Number.isNaN(l) || s === "min" && l < n || s === "max" && l > n || s === "positive" && l <= 0 || s === "negative" && l >= 0 || s === "integer" && !Number.isInteger(l))
3573
+ return s;
3574
+ break;
3575
+ case "equal":
3576
+ if (e !== n)
3577
+ return s;
3578
+ break;
3579
+ case "enum":
3580
+ if (Array.isArray(n) && !n.includes(e))
3581
+ return s;
3582
+ break;
3583
+ case "hasKeys":
3584
+ if (typeof e != "object" || Array.isArray(n) && n.some((m) => !(m in e)))
3585
+ return s;
3586
+ break;
3587
+ case "email":
3588
+ if (!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test("" + e))
3589
+ return s;
3590
+ break;
3591
+ case "url":
3592
+ if (!new RegExp(
3593
+ "^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
3594
+ "i"
3595
+ ).test("" + e))
3596
+ return s;
3597
+ break;
3598
+ case "ip":
3599
+ if (!/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/.test("" + e))
3600
+ return s;
3601
+ break;
3602
+ case "phone":
3603
+ if (!/^(?:(?:\+|00)86)?1[3-9]\d{9}$/.test("" + e))
3604
+ return s;
3605
+ break;
3606
+ }
3607
+ },
3466
3608
  compute(e, r) {
3467
3609
  let i;
3468
3610
  if (typeof r == "object") {
@@ -3473,17 +3615,17 @@ function hi(t) {
3473
3615
  let u = !0;
3474
3616
  for (let f = 0; f < a.group.length; f++) {
3475
3617
  const d = a.group[f];
3476
- let m, g = null;
3618
+ let g, m = null;
3477
3619
  if (d.variable)
3478
- g = JSON.stringify(this.fc.getLoadData(d.variable) || "");
3620
+ m = JSON.stringify(this.fc.getLoadData(d.variable) || "");
3479
3621
  else if (d.field)
3480
- g = dt(d.field || "");
3481
- else
3622
+ m = dt(d.field || "");
3623
+ else if (!d.mode)
3482
3624
  return !0;
3483
3625
  let $ = d.compare;
3484
- if ($ && ($ = dt($ || "")), d.mode ? m = n(d) : fe[d.condition] ? h.Function(d.handler) ? m = O(() => d.handler(this.api, e.rule)) : m = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${g}, ${$ || "$val"}); }}}}`).call(this.api.form, fe, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : m = !1, l && m)
3626
+ if ($ && ($ = dt($ || "")), d.mode ? g = n(d) : fe[d.condition] ? h.Function(d.handler) ? g = O(() => d.handler(this.api, e.rule)) : g = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${m}, ${$ || "$val"}); }}}}`).call(this.api.form, fe, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : g = !1, l && g)
3485
3627
  return !0;
3486
- l || (u = u && m);
3628
+ l || (u = u && g);
3487
3629
  }
3488
3630
  return l ? !1 : u;
3489
3631
  };
@@ -3506,7 +3648,7 @@ function hi(t) {
3506
3648
  fc: s.fc
3507
3649
  }, ...l);
3508
3650
  }, o), {});
3509
- return new Function("$formulas", "$form", "$scope", "$group", "$rule", "$api", `with($form){with($scope){with(this){with($group){with($formulas){ return ${e} }}}}}`).call(this.api.form, n, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, i ? this.subRuleData[i.id] || {} : {}, r.rule, this.api);
3651
+ return O(() => new Function("$formulas", "$form", "$scope", "$group", "$rule", "$api", `with($form){with($scope){with(this){with($group){with($formulas){ return ${e} }}}}}`).call(this.api.form, n, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, i ? this.subRuleData[i.id] || {} : {}, r.rule, this.api));
3510
3652
  },
3511
3653
  updateChildren(e, r, i) {
3512
3654
  this.deferSyncValue(() => {
@@ -3553,7 +3695,7 @@ function di(t) {
3553
3695
  emitEvent(e, ...r) {
3554
3696
  const i = this.options[e] || this.options[q("on-" + e)];
3555
3697
  if (i) {
3556
- const s = z(i);
3698
+ const s = W(i);
3557
3699
  h.Function(s) && O(() => s(...r));
3558
3700
  }
3559
3701
  this.bus.$emit(e, ...r);
@@ -3562,7 +3704,7 @@ function di(t) {
3562
3704
  var n, o;
3563
3705
  let s = (o = (n = e.prop) == null ? void 0 : n.hook) == null ? void 0 : o[r];
3564
3706
  s && (s = Array.isArray(s) ? s : [s], s.forEach((a) => {
3565
- O(() => a(U(b({}, i || {}), { self: e.rule, rule: e.rule, $f: this.api, api: this.api, option: this.vm.$props.option })));
3707
+ O(() => a(U(v({}, i || {}), { self: e.rule, rule: e.rule, $f: this.api, api: this.api, option: this.vm.$props.option })));
3566
3708
  }));
3567
3709
  }
3568
3710
  });
@@ -3626,7 +3768,7 @@ function pi(t) {
3626
3768
  },
3627
3769
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
3628
3770
  if (!s || ["fcFragment", "fragment"].indexOf(s) > -1) return;
3629
- const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), b({}, r.effect || {}));
3771
+ const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), v({}, r.effect || {}));
3630
3772
  Object.keys(l).forEach((u) => {
3631
3773
  const f = this.providers[u];
3632
3774
  if (!f || f.input && !i) return;
@@ -3637,8 +3779,8 @@ function pi(t) {
3637
3779
  d = s;
3638
3780
  else
3639
3781
  return;
3640
- const m = b({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3641
- e && (m.getProp = () => e.effectData(u), m.clearProp = () => e.clearEffectData(u), m.mergeProp = (g) => x(m.getProp(), [g]), m.id = e.id), this.bus.$emit(`p:${u}:${d}:${f.input ? 1 : 0}`, o, [m, r, this.api]);
3782
+ const g = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3783
+ e && (g.getProp = () => e.effectData(u), g.clearProp = () => e.clearEffectData(u), g.mergeProp = (m) => Y(g.getProp(), [m]), g.id = e.id), this.bus.$emit(`p:${u}:${d}:${f.input ? 1 : 0}`, o, [g, r, this.api]);
3642
3784
  });
3643
3785
  }
3644
3786
  });
@@ -3656,7 +3798,7 @@ function gi(t) {
3656
3798
  } else return h.String(e) ? [e] : !1;
3657
3799
  }
3658
3800
  function K(t) {
3659
- Lt(this, {
3801
+ Bt(this, {
3660
3802
  options() {
3661
3803
  return t.options.value || {};
3662
3804
  },
@@ -3664,7 +3806,7 @@ function K(t) {
3664
3806
  return t.bus;
3665
3807
  },
3666
3808
  preview() {
3667
- return t.vm.$options.propsData.preview != null ? t.vm.$options.propsData.preview : t.options.value.preview || !1;
3809
+ return t.vm.$options.propsData.preview != null ? t.vm.$options.propsData.preview : t.vm.parent && t.vm.parent.$props.preview != null ? t.vm.parent.$props.preview : t.options.value.preview || !1;
3668
3810
  }
3669
3811
  }), C(this, {
3670
3812
  fc: t,
@@ -3693,7 +3835,7 @@ function K(t) {
3693
3835
  }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3694
3836
  const i = O(() => r(e, this));
3695
3837
  return i && i !== e && C(e, i), e;
3696
- }, Zr(this));
3838
+ }, Qr(this));
3697
3839
  }
3698
3840
  C(K.prototype, {
3699
3841
  initData(t) {
@@ -3709,7 +3851,7 @@ C(K.prototype, {
3709
3851
  this.updateAppendData(), this.useProvider(), this.usePage(), this.loadRule(), this.$manager.__init(), this.lifecycle("created");
3710
3852
  },
3711
3853
  updateAppendData() {
3712
- this.appendData = b(b(b({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3854
+ this.appendData = v(v(v({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3713
3855
  },
3714
3856
  isBreakWatch() {
3715
3857
  return this.loading || this.noWatchFn || this.reloading;
@@ -3725,6 +3867,12 @@ C(K.prototype, {
3725
3867
  const i = t && t.beforeFetch && O(() => t.beforeFetch(t, { api: this.api }));
3726
3868
  i && h.Function(i.then) ? i.then(e).catch(r) : i === !1 ? r() : e();
3727
3869
  }).then(() => this.globalBeforeFetch(t));
3870
+ },
3871
+ beforeSubmit(t) {
3872
+ return new Promise((e, r) => {
3873
+ const i = this.options.beforeSubmit && O(() => this.options.beforeSubmit(t, { api: this.api }));
3874
+ i && h.Function(i.then) ? i.then(e).catch(r) : i === !1 ? r() : e();
3875
+ });
3728
3876
  }
3729
3877
  });
3730
3878
  ti(K);
@@ -3735,7 +3883,7 @@ fi(K);
3735
3883
  hi(K);
3736
3884
  di(K);
3737
3885
  pi(K);
3738
- const yi = "fcFragment", Te = {
3886
+ const yi = "fcFragment", Ne = {
3739
3887
  name: yi,
3740
3888
  functional: !0,
3741
3889
  props: ["vnode"],
@@ -3746,7 +3894,7 @@ const yi = "fcFragment", Te = {
3746
3894
  function $i(t) {
3747
3895
  return h.String(t) ? { domProps: { innerHTML: t } } : t;
3748
3896
  }
3749
- function vi() {
3897
+ function bi() {
3750
3898
  const t = {};
3751
3899
  function e(r) {
3752
3900
  r && this.setVm(r);
@@ -3778,7 +3926,7 @@ function vi() {
3778
3926
  },
3779
3927
  use(r) {
3780
3928
  Object.keys(r).forEach((i) => {
3781
- const s = ve(i), n = Gr(i).toLocaleLowerCase(), o = r[i];
3929
+ const s = be(i), n = qr(i).toLocaleLowerCase(), o = r[i];
3782
3930
  [i, s, n].forEach((a) => {
3783
3931
  e.alias(i, o), e.prototype[a] = function(l, u) {
3784
3932
  return this.make(o, l, u);
@@ -3788,7 +3936,7 @@ function vi() {
3788
3936
  }
3789
3937
  }), e;
3790
3938
  }
3791
- function bi(t) {
3939
+ function vi(t) {
3792
3940
  class e extends Ht {
3793
3941
  }
3794
3942
  return Object.assign(e.prototype, t), e;
@@ -3809,7 +3957,7 @@ C(Ht.prototype, {
3809
3957
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
3810
3958
  },
3811
3959
  updateKey() {
3812
- this.key = Ie();
3960
+ this.key = Ae();
3813
3961
  },
3814
3962
  //TODO interface
3815
3963
  init() {
@@ -3821,6 +3969,9 @@ C(Ht.prototype, {
3821
3969
  form() {
3822
3970
  return this.vm.$refs[this.ref];
3823
3971
  },
3972
+ adapterValidate(t, e) {
3973
+ return t.validator = (r, i, s) => e(i, s), t;
3974
+ },
3824
3975
  getSlot(t) {
3825
3976
  const e = (r) => {
3826
3977
  if (r) {
@@ -3831,7 +3982,7 @@ C(Ht.prototype, {
3831
3982
  return e(this.vm);
3832
3983
  },
3833
3984
  mergeOptions(t, e) {
3834
- return Y(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3985
+ return x(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3835
3986
  },
3836
3987
  updateOptions(t) {
3837
3988
  this.$handle.fc.targetFormDriver("updateOptions", t, { handle: this.$handle, api: this.$handle.api }), this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
@@ -3853,22 +4004,23 @@ const _i = function(t) {
3853
4004
  const e = {
3854
4005
  name: "loadData",
3855
4006
  _fn: [],
3856
- mounted(r, i, s) {
3857
- this.deleted(r);
3858
- let n = G(r.getValue());
3859
- const o = [];
3860
- n.forEach((a) => {
3861
- if (a && (a.attr || a.template)) {
3862
- let l = (d) => {
3863
- let m;
3864
- a.template ? m = t.$handle.loadStrVar(a.template, d) : a.handler && h.Function(a.handler) ? m = a.handler(d, i, s) : m = d(a.attr, a.default), a.copy !== !1 && (m = W(m));
3865
- const g = a.modify ? i : r.getProp();
3866
- a.to === "child" ? g.children ? S(g.children, 0, m) : S(g, "children", [m]) : se(g, a.to || "options", m), s.sync(i);
3867
- }, u = (d) => l(d);
3868
- const f = t.watchLoadData(u);
3869
- l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
3870
- }
3871
- }), this._fn[r.id] = o;
4007
+ loaded(r, i, s) {
4008
+ this.deleted(r), A(() => {
4009
+ let n = H(r.getValue());
4010
+ const o = [];
4011
+ n.forEach((a) => {
4012
+ if (a && (a.attr || a.template)) {
4013
+ let l = (d) => {
4014
+ let g;
4015
+ a.template ? g = t.$handle.loadStrVar(a.template, d) : a.handler && h.Function(a.handler) ? g = a.handler(d, i, s) : g = d(a.attr, a.default), a.copy !== !1 && (g = G(g));
4016
+ const m = a.modify ? i : r.getProp();
4017
+ a.to === "child" ? m.children ? S(m.children, 0, g) : S(m, "children", [g]) : se(m, a.to || "options", g), s.sync(i);
4018
+ }, u = (d) => l(d);
4019
+ const f = t.watchLoadData(u);
4020
+ l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
4021
+ }
4022
+ }), this._fn[r.id] = o;
4023
+ });
3872
4024
  },
3873
4025
  deleted(r) {
3874
4026
  this._fn[r.id] && (this._fn[r.id].forEach((i) => {
@@ -3876,7 +4028,7 @@ const _i = function(t) {
3876
4028
  }), delete this._fn[r.id]), r.clearProp();
3877
4029
  }
3878
4030
  };
3879
- return e.watch = e.mounted, e;
4031
+ return e.watch = e.loaded, e;
3880
4032
  }, Ci = function(t) {
3881
4033
  const e = {
3882
4034
  name: "t",
@@ -3889,13 +4041,13 @@ const _i = function(t) {
3889
4041
  const l = n[a];
3890
4042
  if (l) {
3891
4043
  const u = typeof l == "object";
3892
- let f = (g) => {
3893
- let $ = t.t(u ? l.attr : l, u ? l.params : null, g);
4044
+ let f = (m) => {
4045
+ let $ = t.t(u ? l.attr : l, u ? l.params : null, m);
3894
4046
  const _ = u && l.modify ? i : r.getProp();
3895
4047
  a === "child" ? _.children ? S(_.children, 0, $) : S(_, "children", [$]) : se(_, a, $), s.sync(i);
3896
- }, d = (g) => f(g);
3897
- const m = t.watchLoadData(d);
3898
- f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(m) : m();
4048
+ }, d = (m) => f(m);
4049
+ const g = t.watchLoadData(d);
4050
+ f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(g) : g();
3899
4051
  }
3900
4052
  }), this._fn[r.id] = o;
3901
4053
  },
@@ -3906,7 +4058,7 @@ const _i = function(t) {
3906
4058
  }
3907
4059
  };
3908
4060
  return e.watch = e.loaded, e;
3909
- }, Jt = {
4061
+ }, zt = {
3910
4062
  name: "componentValidate",
3911
4063
  load(t, e, r) {
3912
4064
  let i = t.getValue();
@@ -3915,9 +4067,9 @@ const _i = function(t) {
3915
4067
  else {
3916
4068
  h.Object(i) || (i = { method: i });
3917
4069
  const s = i.method;
3918
- delete i.method, t.getProp().validate = [U(b({}, i), {
4070
+ delete i.method, t.getProp().validate = [U(v({}, i), {
3919
4071
  validator(...n) {
3920
- const o = Z(e);
4072
+ const o = Q(e);
3921
4073
  if (o)
3922
4074
  return r.exec(o.id, h.String(s) ? s : "formCreateValidate", ...n, {
3923
4075
  attr: t,
@@ -3929,7 +4081,7 @@ const _i = function(t) {
3929
4081
  }
3930
4082
  },
3931
4083
  watch(...t) {
3932
- Jt.load(...t);
4084
+ zt.load(...t);
3933
4085
  }
3934
4086
  }, wi = function(t) {
3935
4087
  function e(s) {
@@ -3948,7 +4100,7 @@ const _i = function(t) {
3948
4100
  l(void 0);
3949
4101
  return;
3950
4102
  }
3951
- if (a = W(a), a.to || (a.to = "options"), a.key) {
4103
+ if (a = G(a), a.to || (a.to = "options"), a.key) {
3952
4104
  const d = t.$handle.options.globalData[a.key];
3953
4105
  if (!d) {
3954
4106
  l(void 0);
@@ -3958,31 +4110,31 @@ const _i = function(t) {
3958
4110
  l(d.data);
3959
4111
  return;
3960
4112
  } else
3961
- a = b(b({}, a), d);
4113
+ a = v(v({}, a), d);
3962
4114
  }
3963
4115
  const u = a.onError, f = () => {
3964
4116
  if (!s.getValue())
3965
4117
  return s.clearProp(), o.sync(n), !0;
3966
4118
  };
3967
- i._fn[s.id] = t.watchLoadData(ne((d, m) => {
3968
- if (m && a.watch === !1)
4119
+ i._fn[s.id] = t.watchLoadData(ne((d, g) => {
4120
+ if (g && a.watch === !1)
3969
4121
  return i._fn[s.id]();
3970
- const g = t.$handle.loadFetchVar(W(a), d, n), $ = U(b({
4122
+ const m = t.$handle.loadFetchVar(G(a), d, n), $ = U(v({
3971
4123
  headers: {}
3972
- }, g), {
4124
+ }, m), {
3973
4125
  onSuccess(_, D) {
3974
4126
  if (f()) return;
3975
4127
  let ee = (T) => D ? T : E(T, "data") ? T.data : T;
3976
- const V = z(g.parse);
3977
- h.Function(V) ? ee = V : V && h.String(V) && (ee = (T) => L(T, V)), l(ee(_, n, o)), o.sync(n);
4128
+ const P = W(m.parse);
4129
+ h.Function(P) ? ee = P : P && h.String(P) && (ee = (T) => L(T, P)), l(ee(_, n, o));
3978
4130
  },
3979
4131
  onError(_) {
3980
- l(void 0), !f() && (u || ((D) => xe(D.message || "fetch fail " + g.action)))(_, n, o);
4132
+ l(void 0), !f() && (u || ((D) => et(D.message || "fetch fail " + m.action)))(_, n, o);
3981
4133
  }
3982
4134
  });
3983
4135
  t.$handle.beforeFetch($, { rule: n, api: o }).then(() => {
3984
- if (h.Function(g.action)) {
3985
- g.action(n, o).then((_) => {
4136
+ if (h.Function(m.action)) {
4137
+ m.action(n, o).then((_) => {
3986
4138
  $.onSuccess(_, !0);
3987
4139
  }).catch((_) => {
3988
4140
  $.onError(_);
@@ -3990,6 +4142,7 @@ const _i = function(t) {
3990
4142
  return;
3991
4143
  }
3992
4144
  O(() => t.create.fetch($, { inject: s, rule: n, api: o }));
4145
+ }).catch((_) => {
3993
4146
  });
3994
4147
  }, a.wait || 600));
3995
4148
  }
@@ -4011,7 +4164,7 @@ const _i = function(t) {
4011
4164
  fetch: wi,
4012
4165
  loadData: _i,
4013
4166
  t: Ci,
4014
- componentValidate: Jt
4167
+ componentValidate: zt
4015
4168
  };
4016
4169
  function Fi(t) {
4017
4170
  t = t || /* @__PURE__ */ new Map();
@@ -4037,7 +4190,7 @@ function Fi(t) {
4037
4190
  };
4038
4191
  return e;
4039
4192
  }
4040
- const Si = "html", Ri = {
4193
+ const Si = "html", ki = {
4041
4194
  name: Si,
4042
4195
  loadChildren: !1,
4043
4196
  render(t, e) {
@@ -4047,7 +4200,7 @@ const Si = "html", Ri = {
4047
4200
  return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
4048
4201
  }
4049
4202
  };
4050
- function ki(t) {
4203
+ function Ri(t) {
4051
4204
  t = t + "=";
4052
4205
  const r = decodeURIComponent(document.cookie).split(";");
4053
4206
  for (let i = 0; i < r.length; i++) {
@@ -4093,7 +4246,7 @@ function it(t, e) {
4093
4246
  return r.length ? i == null ? null : L(i, r) : i;
4094
4247
  }
4095
4248
  function ji(t) {
4096
- return it(ki, t);
4249
+ return it(Ri, t);
4097
4250
  }
4098
4251
  function Ii(t) {
4099
4252
  return it(Ei, t);
@@ -4101,14 +4254,64 @@ function Ii(t) {
4101
4254
  function Ai(t) {
4102
4255
  return it(Di, t);
4103
4256
  }
4104
- function Vi(t, e) {
4257
+ const Vi = {
4258
+ en: {
4259
+ required: "{title} is required",
4260
+ validate: {
4261
+ url: "{title} is not a valid url",
4262
+ email: "{title} is not a valid email",
4263
+ ip: "{title} {title} is not a valid ip",
4264
+ phone: "{title} {title} is not a valid phone",
4265
+ pattern: "{title} does not match pattern {pattern}",
4266
+ uppercase: "{title} must be all uppercase",
4267
+ lowercase: "{title} must be all lowercased",
4268
+ positive: "{title} is not a positive number",
4269
+ negative: "{title} is not a negative number",
4270
+ equal: "{title} is not equal to {equal}",
4271
+ min: "{title} cannot be less than {min}",
4272
+ max: "{title} cannot be greater than {max}",
4273
+ enum: "{title} must be one of {enum}",
4274
+ hasKeys: "{title} does not contain required fields {hasKeys}",
4275
+ minLen: "{title} must be at least {minLen}",
4276
+ maxLen: "{title} cannot be longer than {maxLen}",
4277
+ len: "{title} must be exactly {len}",
4278
+ integer: "{title} is not an integer",
4279
+ number: "{title} is not an number"
4280
+ }
4281
+ },
4282
+ "zh-cn": {
4283
+ required: "{title}不能为空",
4284
+ validate: {
4285
+ url: "{title}不是有效的 url 地址",
4286
+ email: "{title}不是有效的邮箱地址",
4287
+ ip: "{title}不是有效的 IP 地址",
4288
+ phone: "{title}不是正确的手机号",
4289
+ pattern: "{title}必须匹配 {pattern}",
4290
+ uppercase: "{title}必须全大写",
4291
+ lowercase: "{title}必须全小写",
4292
+ positive: "{title}不是正数",
4293
+ negative: "{title}不是负数",
4294
+ equal: "{title}必须等于 {equal}",
4295
+ min: "{title}必须大于等于 {min}",
4296
+ max: "{title}必须小于等于 {max}",
4297
+ enum: "{title}必须是 {enum} 之一",
4298
+ hasKeys: "{title}必须包含 {hasKeys} 字段",
4299
+ minLen: "{title}长度必须大于 {minLen}",
4300
+ maxLen: "{title}长度必须小于 {maxLen}",
4301
+ len: "{title}长度必须为 {len}",
4302
+ integer: "{title}必须为整数",
4303
+ number: "{title}必须为数字"
4304
+ }
4305
+ }
4306
+ };
4307
+ function Pi(t, e) {
4105
4308
  let r;
4106
4309
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4107
4310
  }
4108
- function Ne() {
4109
- return Vi("name", ...arguments);
4311
+ function Me() {
4312
+ return Pi("name", ...arguments);
4110
4313
  }
4111
- function Pi(t) {
4314
+ function Li(t) {
4112
4315
  return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
4113
4316
  }
4114
4317
  function Bi(t, e) {
@@ -4122,23 +4325,23 @@ function Bi(t, e) {
4122
4325
  });
4123
4326
  return r.$mount(), r;
4124
4327
  }
4125
- function Li(t) {
4328
+ function Ti(t) {
4126
4329
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4127
- jt.push(...e), Ze.push(...r), Ye.push(...i), Nt([...e, ...r, ...i]);
4330
+ jt.push(...e), xe.push(...r), Ye.push(...i), Nt([...e, ...r, ...i]);
4128
4331
  }
4129
- let Ti = 1;
4130
- const M = {}, Se = Symbol("defValue");
4131
- function Wt(t) {
4332
+ let Ni = 1;
4333
+ const M = {}, ke = Symbol("defValue");
4334
+ function Jt(t) {
4132
4335
  const e = {
4133
- [Te.name]: Te
4336
+ [Ne.name]: Ne
4134
4337
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4135
4338
  t.extendApi
4136
- ], u = b({}, Oi), f = Xr();
4339
+ ], u = v({}, Oi), f = Xr();
4137
4340
  let d = { global: {} };
4138
- const m = t.isMobile === !0, g = ie({
4139
- $mobile: m
4140
- }), $ = vi(), _ = {}, D = {};
4141
- Li(t.attrs || {});
4341
+ const g = t.isMobile === !0, m = ie({
4342
+ $mobile: g
4343
+ }), $ = bi(), _ = {}, D = {};
4344
+ Ti(t.attrs || {});
4142
4345
  function ee(c) {
4143
4346
  const p = M[c];
4144
4347
  if (Array.isArray(p))
@@ -4146,56 +4349,56 @@ function Wt(t) {
4146
4349
  if (p)
4147
4350
  return p.api();
4148
4351
  }
4149
- function V(c) {
4352
+ function P(c) {
4150
4353
  o.push(c);
4151
4354
  }
4152
4355
  function T() {
4153
- const c = Ne(...arguments);
4356
+ const c = Me(...arguments);
4154
4357
  c.id && c.prop && (i[c.id] = c.prop);
4155
4358
  }
4156
4359
  function ce() {
4157
- const c = Ne(...arguments);
4158
- c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(b({}, c.prop), {
4360
+ const c = Me(...arguments);
4361
+ c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(v({}, c.prop), {
4159
4362
  name: c.id
4160
4363
  }));
4161
4364
  }
4162
- function Ae(c) {
4365
+ function Ve(c) {
4163
4366
  $.use(c);
4164
4367
  }
4165
4368
  function he() {
4166
- const c = Ne(...arguments);
4167
- if (!c.id || !c.prop) return ke;
4168
- const p = q(c.id), y = c.prop, v = y.merge === !0 ? r[p] : void 0;
4169
- r[p] = Fe(y, v || ke), f[p] = A(p), y.maker && C(f, y.maker);
4369
+ const c = Me(...arguments);
4370
+ if (!c.id || !c.prop) return Ee;
4371
+ const p = q(c.id), y = c.prop, b = y.merge === !0 ? r[p] : void 0;
4372
+ r[p] = Se(y, b || Ee), f[p] = V(p), y.maker && C(f, y.maker);
4170
4373
  }
4171
4374
  function F(c, p) {
4172
4375
  let y;
4173
4376
  if (h.String(c)) {
4174
4377
  if (y = c, p === void 0)
4175
- return ["form-create", "formcreate"].indexOf(y) > -1 ? R() : e[y];
4378
+ return ["form-create", "formcreate"].indexOf(y) > -1 ? k() : e[y];
4176
4379
  } else
4177
4380
  y = q(c.name), p = c;
4178
4381
  if (!y || !p) return;
4179
- const v = q(y);
4180
- e[y] = p, e[v] = p, delete $.aliasMap[y], delete $.aliasMap[v], delete r[y], delete r[v], p.formCreateParser && he(y, p.formCreateParser);
4382
+ const b = q(y);
4383
+ e[y] = p, e[b] = p, delete $.aliasMap[y], delete $.aliasMap[b], delete r[y], delete r[b], p.formCreateParser && he(y, p.formCreateParser);
4181
4384
  }
4182
- function R() {
4183
- return Mr(Pe, e, i);
4385
+ function k() {
4386
+ return Wr(Le, e, i);
4184
4387
  }
4185
4388
  function N() {
4186
- return Te;
4389
+ return Ne;
4187
4390
  }
4188
4391
  function de(c, p) {
4189
- return h.Function(c.install) ? c.install(H, p) : h.Function(c) && c(H, p), this;
4392
+ return h.Function(c.install) ? c.install(z, p) : h.Function(c) && c(z, p), this;
4190
4393
  }
4191
- function H(c, p, y) {
4192
- let v = Bi(c, p || {});
4193
- const w = v.$refs.fc.formCreate;
4194
- return w.$parent = y, Pi(w.options).appendChild(v.$el), w.api();
4394
+ function z(c, p, y) {
4395
+ let b = Bi(c, p || {});
4396
+ const w = b.$refs.fc.formCreate;
4397
+ return w.$parent = y, Li(w.options).appendChild(b.$el), w.api();
4195
4398
  }
4196
- Fe(H, D);
4399
+ Se(z, D);
4197
4400
  function Kt(c) {
4198
- let p = b({}, t);
4401
+ let p = v({}, t);
4199
4402
  return c ? p.inherit = {
4200
4403
  components: e,
4201
4404
  parsers: r,
@@ -4205,67 +4408,67 @@ function Wt(t) {
4205
4408
  useApps: o,
4206
4409
  maker: f,
4207
4410
  formulas: _,
4208
- loadData: g
4209
- } : delete p.inherit, Wt(p);
4411
+ loadData: m
4412
+ } : delete p.inherit, Jt(p);
4210
4413
  }
4211
4414
  function Xt(c, p) {
4212
4415
  s[c] = p;
4213
4416
  }
4214
- function Qt(c, p) {
4417
+ function Zt(c, p) {
4215
4418
  _[c] = p;
4216
4419
  }
4217
- function Zt(c, p) {
4218
- const y = n[c] || {}, v = y.parsers || {};
4420
+ function Qt(c, p) {
4421
+ const y = n[c] || {}, b = y.parsers || {};
4219
4422
  p.parsers && Object.keys(p.parsers).forEach((w) => {
4220
- v[w] = Fe(p.parsers[w], ke);
4221
- }), p.name = c, n[c] = U(b(b({}, y), p), { parsers: v });
4423
+ b[w] = Se(p.parsers[w], Ee);
4424
+ }), p.name = c, n[c] = U(v(v({}, y), p), { parsers: b });
4222
4425
  }
4223
- function _e(c) {
4426
+ function Ce(c) {
4224
4427
  c && Object.keys(M).forEach((p) => {
4225
- (Array.isArray(M[p]) ? M[p] : [M[p]]).forEach((v) => {
4226
- v.bus.$emit("$loadData." + c);
4428
+ (Array.isArray(M[p]) ? M[p] : [M[p]]).forEach((b) => {
4429
+ b.bus.$emit("$loadData." + c);
4227
4430
  });
4228
4431
  });
4229
4432
  }
4230
- function Ve(c, p) {
4231
- se(g, c, p), _e(c);
4433
+ function Pe(c, p) {
4434
+ se(m, c, p), Ce(c);
4232
4435
  }
4233
- function Ce(c, p) {
4234
- const y = (...v) => O(() => p(...v));
4235
- y._driver = !0, Ve(c, y);
4436
+ function we(c, p) {
4437
+ const y = (...b) => O(() => p(...b));
4438
+ y._driver = !0, Pe(c, y);
4236
4439
  }
4237
4440
  function nt(c, p) {
4238
4441
  const y = (c || "").split(".");
4239
4442
  c = y.shift();
4240
- const v = y.join(".");
4241
- if (E(g, c) || S(g, c, Se), g[c] !== Se) {
4242
- let w = g[c];
4243
- return w && w._driver ? w = w(v) : y.length && (w = L(w, y)), w == null || w === "" ? p : w;
4443
+ const b = y.join(".");
4444
+ if (E(m, c) || S(m, c, ke), m[c] !== ke) {
4445
+ let w = m[c];
4446
+ return w && w._driver ? w = w(b) : y.length && (w = L(w, y)), w == null || w === "" ? p : w;
4244
4447
  } else
4245
4448
  return p;
4246
4449
  }
4247
- function Yt(c) {
4450
+ function xt(c) {
4248
4451
  l.push(c);
4249
4452
  }
4250
- function xt(c) {
4251
- delete g[c], _e(c);
4453
+ function Yt(c) {
4454
+ delete m[c], Ce(c);
4252
4455
  }
4253
4456
  function er(c, p) {
4254
4457
  a.push({ name: c, callback: p });
4255
4458
  }
4256
- function Pe(c) {
4459
+ function Le(c) {
4257
4460
  C(this, {
4258
- id: Ti++,
4259
- create: H,
4461
+ id: Ni++,
4462
+ create: z,
4260
4463
  vm: c,
4261
- manager: bi(t.manager),
4464
+ manager: vi(t.manager),
4262
4465
  parsers: r,
4263
4466
  providers: u,
4264
4467
  modelFields: s,
4265
4468
  formulas: _,
4266
- isMobile: m,
4469
+ isMobile: g,
4267
4470
  rules: c.$options.propsData.rule,
4268
- name: c.$options.propsData.name || Ie(),
4471
+ name: c.$options.propsData.name || Ae(),
4269
4472
  inFor: c.$options.propsData.inFor,
4270
4473
  prop: {
4271
4474
  components: e,
@@ -4274,8 +4477,8 @@ function Wt(t) {
4274
4477
  get: null,
4275
4478
  drivers: n,
4276
4479
  renderDriver: null,
4277
- refreshData: _e,
4278
- loadData: g,
4480
+ refreshData: Ce,
4481
+ loadData: m,
4279
4482
  CreateNode: $,
4280
4483
  bus: new Fi(),
4281
4484
  unwatch: [],
@@ -4285,58 +4488,58 @@ function Wt(t) {
4285
4488
  tmpData: ie({})
4286
4489
  }), a.forEach((p) => {
4287
4490
  this.bus.$on(p.name, p.callback);
4288
- }), P(() => {
4491
+ }), A(() => {
4289
4492
  B(this.options, () => {
4290
4493
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4291
4494
  }, { deep: !0 });
4292
4495
  }), C(c.$options.components, e), C(c.$options.directives, i), this.$handle = new K(this), this.name && (this.inFor ? (M[this.name] || (M[this.name] = []), M[this.name].push(this)) : M[this.name] = this);
4293
4496
  }
4294
- Pe.isMobile = m, C(Pe.prototype, {
4497
+ Le.isMobile = g, C(Le.prototype, {
4295
4498
  init() {
4296
4499
  this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4297
4500
  this.initOptions(), this.$handle.api.refresh();
4298
- }, { deep: !0 })), this.vm.$options.propsData.driver && (this.renderDriver = typeof this.vm.$options.propsData.driver == "object" ? this.vm.$options.propsData.driver : this.drivers[this.vm.$options.propsData.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4501
+ }, { deep: !0 })), this.vm.$options.propsData.driver && (this.renderDriver = typeof this.vm.$options.propsData.driver == "object" ? this.vm.$options.propsData.driver : this.drivers[this.vm.$options.propsData.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.fc.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4299
4502
  },
4300
4503
  targetFormDriver(c, ...p) {
4301
4504
  if (this.renderDriver && this.renderDriver[c])
4302
4505
  return O(() => this.renderDriver[c](...p));
4303
4506
  },
4304
4507
  t(c, p, y) {
4305
- let v = y ? y("$t." + c) : this.globalLanguageDriver(c);
4306
- return v == null && (v = ""), v && p && Object.keys(p).forEach((w) => {
4508
+ let b = y ? y("$t." + c) : this.globalLanguageDriver(c);
4509
+ return b == null && (b = ""), b && p && Object.keys(p).forEach((w) => {
4307
4510
  const j = new RegExp(`{${w}}`, "g");
4308
- v = v.replace(j, p[w]);
4309
- }), v;
4511
+ b = b.replace(j, p[w]);
4512
+ }), b;
4310
4513
  },
4311
4514
  globalDataDriver(c) {
4312
4515
  let p = c.split(".");
4313
- const y = p.shift(), v = this.options.value.globalData && this.options.value.globalData[y];
4314
- if (v) {
4315
- if (v.type === "static")
4316
- return L(v.data, p);
4516
+ const y = p.shift(), b = this.options.value.globalData && this.options.value.globalData[y];
4517
+ if (b) {
4518
+ if (b.type === "static")
4519
+ return L(b.data, p);
4317
4520
  {
4318
4521
  let w;
4319
- const j = this.fetchCache.get(v);
4522
+ const j = this.fetchCache.get(b);
4320
4523
  if (j) {
4321
4524
  if (j.status && (w = L(j.data, p)), !j.loading)
4322
4525
  return w;
4323
- j.loading = !1, this.fetchCache.set(v, j);
4526
+ j.loading = !1, this.fetchCache.set(b, j);
4324
4527
  } else
4325
- this.fetchCache.set(v, { status: !1 });
4326
- const k = ne(() => {
4528
+ this.fetchCache.set(b, { status: !1 });
4529
+ const R = ne(() => {
4327
4530
  le();
4328
- const J = this.fetchCache.get(v);
4329
- this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(v) !== -1 ? (J && (J.loading = !0, this.fetchCache.set(v, J)), this.bus.$emit("$loadData.$globalData." + y)) : this.fetchCache.delete(v);
4330
- }, v.wait || 600), ae = (J) => {
4331
- this.fetchCache.set(v, { status: !0, data: J }), this.bus.$emit("$loadData.$globalData." + y);
4531
+ const J = this.fetchCache.get(b);
4532
+ this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (J && (J.loading = !0, this.fetchCache.set(b, J)), this.bus.$emit("$loadData.$globalData." + y)) : this.fetchCache.delete(b);
4533
+ }, b.wait || 600), ae = (J) => {
4534
+ this.fetchCache.set(b, { status: !0, data: J }), this.bus.$emit("$loadData.$globalData." + y);
4332
4535
  }, X = (J, ue) => {
4333
- if (ue && v.watch === !1)
4536
+ if (ue && b.watch === !1)
4334
4537
  return le();
4335
4538
  if (ue) {
4336
- k();
4539
+ R();
4337
4540
  return;
4338
4541
  }
4339
- const pe = this.$handle.loadFetchVar(Je(v), J);
4542
+ const pe = this.$handle.loadFetchVar(Je(b), J);
4340
4543
  this.$handle.api.fetch(pe).then((te) => {
4341
4544
  ae(te);
4342
4545
  }).catch((te) => {
@@ -4354,32 +4557,33 @@ function Wt(t) {
4354
4557
  globalLanguageDriver(c) {
4355
4558
  let p = this.vm.top.$props.locale, y;
4356
4559
  if (p && typeof p == "object" && (y = L(p, c)), y == null) {
4357
- const v = this.options.value.language || {}, w = this.getLocale();
4358
- y = L(v[w], c);
4560
+ const b = this.options.value.language || {}, w = this.getLocale();
4561
+ y = L(b[w] || {}, c), y == null && (y = L(Vi[w] || {}, c));
4359
4562
  }
4360
4563
  return y;
4361
4564
  },
4362
4565
  globalVarDriver(c) {
4363
- const y = c.split(".").shift(), v = this.options.value.globalVariable && this.options.value.globalVariable[y];
4364
- if (v) {
4365
- const w = h.Function(v) ? v : z(v.handle);
4566
+ let p = c.split(".");
4567
+ const y = p.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[y];
4568
+ if (b) {
4569
+ const w = h.Function(b) ? b : W(b.handle);
4366
4570
  if (w) {
4367
4571
  let j;
4368
- const k = this.watchLoadData((ae, X) => {
4369
- X ? (this.bus.$emit("$loadData.$var." + y), k()) : j = w(ae, this.$handle.api);
4572
+ const R = this.watchLoadData((ae, X) => {
4573
+ X ? (this.bus.$emit("$loadData.$var." + y), R()) : j = w(ae, this.$handle.api);
4370
4574
  });
4371
- return this.unwatch.push(k), j;
4575
+ return this.unwatch.push(R), L(j, p);
4372
4576
  }
4373
4577
  }
4374
4578
  },
4375
4579
  setData(c, p, y) {
4376
- y ? Ve(c, p) : (se(this.vm.top.fc.tmpData, c, p), this.bus.$emit("$loadData." + c));
4580
+ y ? Pe(c, p) : (se(this.vm.top.fc.tmpData, c, p), this.bus.$emit("$loadData." + c));
4377
4581
  },
4378
4582
  getLoadData(c, p) {
4379
4583
  let y = null;
4380
4584
  if (c != null) {
4381
- let v = c.split(".");
4382
- const w = v.shift();
4585
+ let b = c.split(".");
4586
+ const w = b.shift();
4383
4587
  if (w === "$topForm")
4384
4588
  y = this.$handle.api.top.formData(!0);
4385
4589
  else if (w === "$scopeForm")
@@ -4389,53 +4593,53 @@ function Wt(t) {
4389
4593
  else if (w === "$options")
4390
4594
  y = this.options.value;
4391
4595
  else if (w === "$globalData")
4392
- y = this.globalDataDriver(v.join(".")), v = [];
4596
+ y = this.globalDataDriver(b.join(".")), b = [];
4393
4597
  else if (w === "$var")
4394
- y = this.globalVarDriver(v.join(".")), v = [];
4598
+ y = this.globalVarDriver(b.join(".")), b = [];
4395
4599
  else if (w === "$locale")
4396
- y = this.getLocale(), v = [];
4600
+ y = this.getLocale(), b = [];
4397
4601
  else if (w === "$t")
4398
- y = this.globalLanguageDriver(v.join(".")), v = [];
4602
+ y = this.globalLanguageDriver(b.join(".")), b = [];
4399
4603
  else {
4400
4604
  if (w === "$preview")
4401
4605
  return this.$handle.preview;
4402
4606
  {
4403
4607
  const j = this.vm.top.fc.tmpData;
4404
- E(j, w) || S(j, w, Se), y = j[w] !== Se ? L(j, c) : nt(c), v = [];
4608
+ E(j, w) || S(j, w, ke), y = j[w] !== ke ? L(j, c) : nt(c), b = [];
4405
4609
  }
4406
4610
  }
4407
- y && v.length && (y = L(y, v));
4611
+ y && b.length && (y = L(y, b));
4408
4612
  }
4409
4613
  return y == null || y === "" ? p : y;
4410
4614
  },
4411
4615
  watchLoadData(c, p) {
4412
4616
  let y = {};
4413
- const v = (k) => {
4617
+ const b = (R) => {
4414
4618
  this.get || (this.get = w), O(() => {
4415
- c(w, k);
4619
+ c(w, R);
4416
4620
  }), this.get === w && (this.get = void 0);
4417
- }, w = (k, ae) => {
4621
+ }, w = (R, ae) => {
4418
4622
  let X;
4419
- if (typeof k == "object" && (X = k.getValue, k = k.id), y[k])
4420
- return y[k].val;
4421
- const le = ge(() => X ? X() : this.getLoadData(k, ae)), J = k.split("."), ue = J.shift(), pe = J.shift() || "", te = ne(() => {
4422
- const Be = X ? X() : this.getLoadData(k, ae);
4423
- if (y[k])
4424
- JSON.stringify(Be) !== JSON.stringify(y[k].val) && (y[k].val = Be, v(!0));
4623
+ if (typeof R == "object" && (X = R.getValue, R = R.id), y[R])
4624
+ return y[R].val;
4625
+ const le = ge(() => X ? X() : this.getLoadData(R, ae)), J = R.split("."), ue = J.shift(), pe = J.shift() || "", te = ne(() => {
4626
+ const Be = X ? X() : this.getLoadData(R, ae);
4627
+ if (y[R])
4628
+ JSON.stringify(Be) !== JSON.stringify(y[R].val) && (y[R].val = Be, b(!0));
4425
4629
  else return;
4426
4630
  }, p || 0), rr = B(le, (Be) => {
4427
4631
  te();
4428
4632
  });
4429
- return this.bus.$on("$loadData." + ue, te), pe && this.bus.$on("$loadData." + ue + "." + pe, te), y[k] = {
4633
+ return this.bus.$on("$loadData." + ue, te), pe && this.bus.$on("$loadData." + ue + "." + pe, te), y[R] = {
4430
4634
  fn: () => {
4431
4635
  this.bus.$off("$loadData." + ue, te), pe && this.bus.$off("$loadData." + ue + "." + pe, te), rr();
4432
4636
  },
4433
4637
  val: le.value
4434
4638
  }, le.value;
4435
4639
  };
4436
- v(!1);
4640
+ b(!1);
4437
4641
  const j = () => {
4438
- Object.keys(y).forEach((k) => y[k].fn()), y = {};
4642
+ Object.keys(y).forEach((R) => y[R].fn()), y = {};
4439
4643
  };
4440
4644
  return this.unwatch.push(j), j;
4441
4645
  },
@@ -4444,19 +4648,19 @@ function Wt(t) {
4444
4648
  },
4445
4649
  initOptions() {
4446
4650
  this.options.value = {};
4447
- let c = b({
4651
+ let c = v({
4448
4652
  formData: {},
4449
4653
  submitBtn: {},
4450
4654
  resetBtn: {},
4451
4655
  globalEvent: {},
4452
4656
  globalData: {}
4453
- }, W(d));
4657
+ }, G(d));
4454
4658
  this.isSub() && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$options.propsData.option || {}), this.updateOptions(c);
4455
4659
  },
4456
4660
  mergeOptions(c, p, y) {
4457
- return p = b({}, p || {}), y && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((v) => {
4458
- delete p[v];
4459
- }), p.global && (c.global = Jr(c.global, p.global), delete p.global), this.$handle.$manager.mergeOptions([p], c), c;
4661
+ return p = v({}, p || {}), y && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4662
+ delete p[b];
4663
+ }), p.global && (c.global = Hr(c.global, p.global), delete p.global), this.$handle.$manager.mergeOptions([p], c), c;
4460
4664
  },
4461
4665
  updateOptions(c) {
4462
4666
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4489,61 +4693,61 @@ function Wt(t) {
4489
4693
  C(c, {
4490
4694
  version: t.version,
4491
4695
  ui: t.ui,
4492
- isMobile: m,
4493
- extendApi: Yt,
4696
+ isMobile: g,
4697
+ extendApi: xt,
4494
4698
  getData: nt,
4495
- setDataDriver: Ce,
4496
- setData: Ve,
4497
- removeData: xt,
4498
- refreshData: _e,
4699
+ setDataDriver: we,
4700
+ setData: Pe,
4701
+ removeData: Yt,
4702
+ refreshData: Ce,
4499
4703
  maker: f,
4500
4704
  component: F,
4501
4705
  directive: T,
4502
4706
  setModelField: Xt,
4503
- setFormula: Qt,
4504
- setDriver: Zt,
4707
+ setFormula: Zt,
4708
+ setDriver: Qt,
4505
4709
  register: ce,
4506
4710
  $vnode: N,
4507
4711
  parser: he,
4508
4712
  use: de,
4509
4713
  factory: Kt,
4510
- componentAlias: Ae,
4714
+ componentAlias: Ve,
4511
4715
  copyRule: Pt,
4512
- copyRules: Bt,
4513
- mergeRule: x,
4716
+ copyRules: Lt,
4717
+ mergeRule: Y,
4514
4718
  fetch: Ut,
4515
- $form: R,
4516
- parseFn: z,
4719
+ $form: k,
4720
+ parseFn: W,
4517
4721
  parseJson: Vt,
4518
- toJson: et,
4519
- useApp: V,
4722
+ toJson: ve,
4723
+ useApp: P,
4520
4724
  getApi: ee,
4521
4725
  on: er
4522
4726
  });
4523
4727
  }
4524
4728
  function tr(c) {
4525
4729
  C(c, {
4526
- create: H,
4730
+ create: z,
4527
4731
  install(p, y) {
4528
- if (d = b(b({}, d), y || {}), p._installedFormCreate === !0) return;
4732
+ if (d = v(v({}, d), y || {}), p._installedFormCreate === !0) return;
4529
4733
  p._installedFormCreate = !0;
4530
- const v = function(j, k = {}) {
4531
- return H(j, k, this);
4734
+ const b = function(j, R = {}) {
4735
+ return z(j, R, this);
4532
4736
  };
4533
- st(v), p.prototype.$formCreate = v;
4534
- const w = R();
4737
+ st(b), p.prototype.$formCreate = b;
4738
+ const w = k();
4535
4739
  p.component(w.name, w), p.component("FcFragment", N()), o.forEach((j) => {
4536
4740
  O(() => j(c, p));
4537
4741
  });
4538
4742
  }
4539
4743
  });
4540
4744
  }
4541
- if (st(D), tr(D), Ce("$cookie", ji), Ce("$localStorage", Ii), Ce("$sessionStorage", Ai), $.use({ fragment: "fcFragment" }), t.install && H.use(t), he(Ri), t.inherit) {
4745
+ if (st(D), tr(D), we("$cookie", ji), we("$localStorage", Ii), we("$sessionStorage", Ai), $.use({ fragment: "fcFragment" }), t.install && z.use(t), he(ki), t.inherit) {
4542
4746
  const c = t.inherit;
4543
- c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(g, c.loadData), c.formulas && C(_, c.formulas);
4747
+ c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(m, c.loadData), c.formulas && C(_, c.formulas);
4544
4748
  }
4545
- const we = R();
4546
- return Fe(we, D), Object.defineProperties(we, {
4749
+ const Oe = k();
4750
+ return Se(Oe, D), Object.defineProperties(Oe, {
4547
4751
  fetch: {
4548
4752
  get() {
4549
4753
  return D.fetch;
@@ -4552,9 +4756,9 @@ function Wt(t) {
4552
4756
  D.fetch = c;
4553
4757
  }
4554
4758
  }
4555
- }), we.util = D, we;
4759
+ }), Oe.util = D, Oe;
4556
4760
  }
4557
- function Me(t) {
4761
+ function Ue(t) {
4558
4762
  if (h.Date(t))
4559
4763
  return t;
4560
4764
  {
@@ -4562,14 +4766,14 @@ function Me(t) {
4562
4766
  return e.toString() === "Invalid Date" ? t : e;
4563
4767
  }
4564
4768
  }
4565
- const bt = "datePicker", Ni = {
4566
- name: bt,
4769
+ const vt = "datePicker", Mi = {
4770
+ name: vt,
4567
4771
  maker: function() {
4568
- return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = A(bt, { type: e.toLowerCase() }), t), {});
4772
+ return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = V(vt, { type: e.toLowerCase() }), t), {});
4569
4773
  }(),
4570
4774
  mergeProp(t) {
4571
4775
  let e = t.prop.props;
4572
- e.startDate && (e.startDate = e.startDate && Me(e.startDate));
4776
+ e.startDate && (e.startDate = e.startDate && Ue(e.startDate));
4573
4777
  },
4574
4778
  isRange(t) {
4575
4779
  return t.type.includes("range") || t.multiple;
@@ -4588,46 +4792,46 @@ const bt = "datePicker", Ni = {
4588
4792
  return this.isRange(e.el) ? r : r[0];
4589
4793
  } else {
4590
4794
  let r = Array.isArray(t), i = e.prop.props, s, n = i.type || "date";
4591
- return ["daterange", "datetimerange"].indexOf(n) !== -1 ? r ? s = t.map((o) => o ? Me(o) : "") : s = ["", ""] : n === "date" && i.multiple === !0 ? s = toString(t) : (s = r ? t[0] || "" : t, s = s ? Me(s) : ""), s;
4795
+ return ["daterange", "datetimerange"].indexOf(n) !== -1 ? r ? s = t.map((o) => o ? Ue(o) : "") : s = ["", ""] : n === "date" && i.multiple === !0 ? s = toString(t) : (s = r ? t[0] || "" : t, s = s ? Ue(s) : ""), s;
4592
4796
  }
4593
4797
  },
4594
4798
  mounted(t) {
4595
4799
  t.rule.value = this.toValue(t.$handle.getFormData(t), t);
4596
4800
  }
4597
- }, Ue = "hidden", Mi = {
4598
- name: Ue,
4801
+ }, qe = "hidden", Ui = {
4802
+ name: qe,
4599
4803
  maker: {
4600
- [Ue]: (t, e) => A(Ue)("", t, e)
4804
+ [qe]: (t, e) => V(qe)("", t, e)
4601
4805
  },
4602
4806
  render() {
4603
4807
  return [];
4604
4808
  }
4605
- }, qe = "input", Ui = {
4606
- name: qe,
4809
+ }, Ge = "input", qi = {
4810
+ name: Ge,
4607
4811
  maker: function() {
4608
- const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = A(qe, { type: r }), e), {});
4609
- return t.idate = A(qe, { type: "date" }), t;
4812
+ const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = V(Ge, { type: r }), e), {});
4813
+ return t.idate = V(Ge, { type: "date" }), t;
4610
4814
  }(),
4611
4815
  mergeProp(t) {
4612
4816
  let { props: e } = t.prop;
4613
4817
  e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4614
4818
  }
4615
- }, _t = "slider", qi = {
4819
+ }, _t = "slider", Gi = {
4616
4820
  name: _t,
4617
4821
  maker: {
4618
- sliderRange: A(_t, { range: !0 })
4822
+ sliderRange: V(_t, { range: !0 })
4619
4823
  },
4620
4824
  toFormValue(t, e) {
4621
4825
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4622
4826
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4623
4827
  }
4624
- }, Gi = {
4828
+ }, Hi = {
4625
4829
  name: "switch",
4626
4830
  mergeProp(t) {
4627
4831
  const e = t.prop.props.slot || {}, r = t.prop.scopedSlots || {};
4628
4832
  e.open && (r.open = () => e.open), e.close && (r.close = () => e.close), t.prop.scopedSlots = r;
4629
4833
  }
4630
- }, Hi = {
4834
+ }, zi = {
4631
4835
  name: "FcRow",
4632
4836
  render(t, e) {
4633
4837
  return e.vNode.col({ props: { span: 24 } }, [
@@ -4635,12 +4839,12 @@ const bt = "datePicker", Ni = {
4635
4839
  ]);
4636
4840
  }
4637
4841
  }, Ji = [
4638
- Ni,
4639
4842
  Mi,
4640
4843
  Ui,
4641
4844
  qi,
4642
4845
  Gi,
4643
- Hi
4846
+ Hi,
4847
+ zi
4644
4848
  ], Wi = {
4645
4849
  button: "iButton",
4646
4850
  icon: "Icon",
@@ -4668,21 +4872,21 @@ const bt = "datePicker", Ni = {
4668
4872
  array: "fcGroup",
4669
4873
  subForm: "fcSubForm",
4670
4874
  object: "fcSubForm"
4671
- }, De = {
4875
+ }, je = {
4672
4876
  resetBtnType: "default",
4673
4877
  resetBtnIcon: "md-refresh",
4674
4878
  infoIcon: "ios-information-circle-outline"
4675
4879
  };
4676
- function zi() {
4880
+ function Ki() {
4677
4881
  return {
4678
4882
  type: "poptip",
4679
4883
  trigger: "hover",
4680
4884
  placement: "top-start",
4681
4885
  wordWrap: !0,
4682
- icon: De.infoIcon
4886
+ icon: je.infoIcon
4683
4887
  };
4684
4888
  }
4685
- function Ki() {
4889
+ function Xi() {
4686
4890
  return {
4687
4891
  form: {
4688
4892
  inline: !1,
@@ -4704,9 +4908,9 @@ function Ki() {
4704
4908
  click: void 0
4705
4909
  },
4706
4910
  resetBtn: {
4707
- type: De.resetBtnType,
4911
+ type: je.resetBtnType,
4708
4912
  disabled: !1,
4709
- icon: De.resetBtnIcon,
4913
+ icon: je.resetBtnIcon,
4710
4914
  innerText: "",
4711
4915
  loading: !1,
4712
4916
  show: !1,
@@ -4717,14 +4921,14 @@ function Ki() {
4717
4921
  function Ct(t, e) {
4718
4922
  E(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4719
4923
  }
4720
- function Q(t) {
4924
+ function Z(t) {
4721
4925
  return t === !1;
4722
4926
  }
4723
- function Xi(t, e) {
4927
+ function Zi(t, e) {
4724
4928
  E(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4725
4929
  }
4726
- function Ge(t) {
4727
- const e = b({}, t);
4930
+ function He(t) {
4931
+ const e = v({}, t);
4728
4932
  return delete e.children, e;
4729
4933
  }
4730
4934
  const Qi = {
@@ -4746,7 +4950,7 @@ const Qi = {
4746
4950
  },
4747
4951
  tidyOptions(t) {
4748
4952
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4749
- Xi(t, e);
4953
+ Zi(t, e);
4750
4954
  }), t;
4751
4955
  },
4752
4956
  tidyRule({ prop: t }) {
@@ -4754,51 +4958,50 @@ const Qi = {
4754
4958
  },
4755
4959
  mergeProp(t) {
4756
4960
  const e = {
4757
- info: zi(),
4961
+ info: Ki(),
4758
4962
  title: {},
4759
4963
  col: { span: 24 },
4760
4964
  wrap: {}
4761
4965
  };
4762
4966
  ["info", "wrap", "col", "title"].forEach((r) => {
4763
- t.prop[r] = Y([this.options[r] || {}, t.prop[r] || {}], e[r]);
4967
+ t.prop[r] = x([this.options[r] || {}, t.prop[r] || {}], e[r]);
4764
4968
  }), this.setSize(t.prop.props);
4765
4969
  },
4766
4970
  setSize(t) {
4767
4971
  !t.size && this.options.form.size && (t.size = this.options.form.size);
4768
4972
  },
4769
4973
  getDefaultOptions() {
4770
- return Ki();
4974
+ return Xi();
4771
4975
  },
4772
4976
  update() {
4773
4977
  const t = this.options.form;
4774
4978
  this.rule = {
4775
- props: b({}, t),
4979
+ props: v({}, t),
4776
4980
  nativeOn: {
4777
4981
  submit: (e) => {
4778
4982
  e.preventDefault();
4779
4983
  }
4780
4984
  },
4781
- class: [t.className, t.class, "form-create", this.$handle.preview ? "is-preview" : ""],
4782
4985
  style: t.style,
4783
4986
  type: "form"
4784
4987
  };
4785
4988
  },
4786
4989
  beforeRender() {
4787
- const { key: t, ref: e, $handle: r } = this;
4788
- C(this.rule, { key: t, ref: e }), C(this.rule.props, {
4990
+ const { key: t, ref: e, $handle: r } = this, i = this.options.form;
4991
+ C(this.rule, { key: t, ref: e, class: [i.className, i.class, "form-create", this.$handle.preview ? "is-preview" : ""] }), C(this.rule.props, {
4789
4992
  model: r.formData
4790
4993
  });
4791
4994
  },
4792
4995
  render(t) {
4793
- return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, Q(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
4996
+ return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, Z(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
4794
4997
  },
4795
4998
  makeWrap(t, e) {
4796
4999
  const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r) && r.wrap.title !== !1, o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: l } = this.rule.props;
4797
5000
  delete r.wrap.title;
4798
- const u = Q(r.wrap.show) ? e : this.$r(Y([r.wrap, {
4799
- props: U(b({
5001
+ const u = Z(r.wrap.show) ? e : this.$r(x([r.wrap, {
5002
+ props: U(v({
4800
5003
  labelWidth: o
4801
- }, Ge(r.wrap || {})), {
5004
+ }, He(r.wrap || {})), {
4802
5005
  prop: t.id,
4803
5006
  rules: t.injectValidate()
4804
5007
  }),
@@ -4806,41 +5009,41 @@ const Qi = {
4806
5009
  key: `${i}fi`,
4807
5010
  ref: t.wrapRef,
4808
5011
  type: "formItem"
4809
- }]), b({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
4810
- return a === !0 || Q(l) || Q(s.show) ? u : this.makeCol(r, i, [u]);
5012
+ }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5013
+ return a === !0 || Z(l) || Z(s.show) ? u : this.makeCol(r, i, [u]);
4811
5014
  },
4812
5015
  isTitle(t) {
4813
5016
  if (this.options.form.title === !1) return !1;
4814
5017
  const e = t.title;
4815
- return !(!e.title && !e.native || Q(e.show));
5018
+ return !(!e.title && !e.native || Z(e.show));
4816
5019
  },
4817
5020
  makeInfo(t, e, r) {
4818
- var u, f, d, m, g, $;
4819
- const i = b({}, t.title), s = b({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5021
+ var u, f, d, g, m, $;
5022
+ const i = v({}, t.title), s = v({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
4820
5023
  title: (f = (u = r.refRule) == null ? void 0 : u.__$title) == null ? void 0 : f.value,
4821
5024
  rule: r.rule,
4822
5025
  options: this.options
4823
- }) : ((m = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : m.value) + (n.labelSuffix || n["label-suffix"] || "")];
4824
- if (!Q(s.show) && (s.info || s.native) && !Q(s.icon)) {
5026
+ }) : ((g = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : g.value) + (n.labelSuffix || n["label-suffix"] || "")];
5027
+ if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
4825
5028
  const _ = {
4826
5029
  type: s.type || "poptip",
4827
- props: Ge(s),
5030
+ props: He(s),
4828
5031
  key: `${e}pop`,
4829
5032
  slot: "label"
4830
5033
  };
4831
5034
  delete _.props.icon, delete _.props.show, delete _.props.info, delete _.props.align, delete _.props.native;
4832
5035
  const D = "content";
4833
- s.info && !E(_.props, D) && (_.props[D] = ($ = (g = r.refRule) == null ? void 0 : g.__$info) == null ? void 0 : $.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, _]), [
5036
+ s.info && !E(_.props, D) && (_.props[D] = ($ = (m = r.refRule) == null ? void 0 : m.__$info) == null ? void 0 : $.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(x([s, _]), [
4834
5037
  this.$r({
4835
5038
  type: "icon",
4836
- props: { type: s.icon === !0 ? De.infoIcon : s.icon, size: 16 },
5039
+ props: { type: s.icon === !0 ? je.infoIcon : s.icon, size: 16 },
4837
5040
  style: "margin-top: -1px",
4838
5041
  key: `${e}i`
4839
5042
  })
4840
5043
  ]));
4841
5044
  }
4842
- const l = Y([i, {
4843
- props: Ge(i),
5045
+ const l = x([i, {
5046
+ props: He(i),
4844
5047
  key: `${e}tit`,
4845
5048
  class: "fc-form-title",
4846
5049
  slot: i.slot || "label",
@@ -4868,7 +5071,7 @@ const Qi = {
4868
5071
  },
4869
5072
  makeFormBtn() {
4870
5073
  let t = [];
4871
- if (Q(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), Q(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5074
+ if (Z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), Z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
4872
5075
  return;
4873
5076
  const e = this.$r({
4874
5077
  type: "formItem",
@@ -4883,7 +5086,7 @@ const Qi = {
4883
5086
  }, [e]);
4884
5087
  },
4885
5088
  makeResetBtn() {
4886
- const t = b({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5089
+ const t = v({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
4887
5090
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
4888
5091
  type: "button",
4889
5092
  props: t,
@@ -4899,7 +5102,7 @@ const Qi = {
4899
5102
  }, [e]);
4900
5103
  },
4901
5104
  makeSubmitBtn() {
4902
- const t = b({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5105
+ const t = v({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
4903
5106
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
4904
5107
  type: "button",
4905
5108
  props: t,
@@ -4915,34 +5118,34 @@ const Qi = {
4915
5118
  key: `${this.key}b1`
4916
5119
  }, [e]);
4917
5120
  }
4918
- }, oe = {}, Zi = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5121
+ }, oe = {}, xi = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
4919
5122
  function Yi(t) {
4920
- Zi.forEach((e) => {
4921
- t[e] = A(e);
5123
+ xi.forEach((e) => {
5124
+ t[e] = V(e);
4922
5125
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
4923
5126
  }
4924
- function xi(t) {
5127
+ function en(t) {
4925
5128
  const e = "upload", r = {
4926
5129
  image: ["image", 0],
4927
5130
  file: ["file", 0],
4928
5131
  uploadFileOne: ["file", 1],
4929
5132
  uploadImageOne: ["image", 1]
4930
5133
  };
4931
- Object.keys(r).reduce((i, s) => (i[s] = A(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
5134
+ Object.keys(r).reduce((i, s) => (i[s] = V(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
4932
5135
  }
4933
- function en(t) {
5136
+ function tn(t) {
4934
5137
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
4935
- Object.keys(r).reduce((i, s) => (i[s] = A(e, { type: r[s] }), i), t);
5138
+ Object.keys(r).reduce((i, s) => (i[s] = V(e, { type: r[s] }), i), t);
4936
5139
  }
4937
- function tn(t) {
5140
+ function rn(t) {
4938
5141
  const e = "timePicker";
4939
- t.time = A(e, { type: "time" }), t.timeRange = A(e, { type: "timerange" });
5142
+ t.time = V(e, { type: "time" }), t.timeRange = V(e, { type: "timerange" });
4940
5143
  }
4941
- function rn(t) {
5144
+ function nn(t) {
4942
5145
  const e = "select";
4943
- t.selectMultiple = A(e, { multiple: !0 }), t.selectOne = A(e, { multiple: !1 });
5146
+ t.selectMultiple = V(e, { multiple: !0 }), t.selectOne = V(e, { multiple: !1 });
4944
5147
  }
4945
- function nn(t) {
5148
+ function sn(t) {
4946
5149
  const e = "frame", r = {
4947
5150
  frameInputs: ["input", 0],
4948
5151
  frameFiles: ["file", 0],
@@ -4951,18 +5154,18 @@ function nn(t) {
4951
5154
  frameFileOne: ["file", 1],
4952
5155
  frameImageOne: ["image", 1]
4953
5156
  };
4954
- Object.keys(r).reduce((i, s) => (i[s] = A(e, (n) => n.props({ type: r[s][0], maxLength: r[s][1] })), i), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages;
5157
+ Object.keys(r).reduce((i, s) => (i[s] = V(e, (n) => n.props({ type: r[s][0], maxLength: r[s][1] })), i), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages;
4955
5158
  }
4956
5159
  Yi(oe);
4957
- xi(oe);
4958
5160
  en(oe);
4959
- rn(oe);
4960
- nn(oe);
4961
5161
  tn(oe);
5162
+ nn(oe);
5163
+ sn(oe);
5164
+ rn(oe);
4962
5165
  function wt(t, e) {
4963
5166
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
4964
5167
  }
4965
- function sn(t, e) {
5168
+ function on(t, e) {
4966
5169
  return {
4967
5170
  formEl() {
4968
5171
  return e.$manager.form();
@@ -4975,7 +5178,7 @@ function sn(t, e) {
4975
5178
  validate(r) {
4976
5179
  return new Promise((i, s) => {
4977
5180
  const n = t.children, o = [e.$manager.validate()];
4978
- n.forEach((a) => {
5181
+ n.filter((a) => !a.isScope).forEach((a) => {
4979
5182
  o.push(a.validate());
4980
5183
  }), Promise.all(o).then(() => {
4981
5184
  i(!0), r && r(!0);
@@ -4989,7 +5192,7 @@ function sn(t, e) {
4989
5192
  const o = e.getFieldCtx(r);
4990
5193
  if (!o) return;
4991
5194
  const a = e.subForm[o.id], l = [e.$manager.validateField(o.id)];
4992
- G(a).forEach((u) => {
5195
+ H(a).filter((u) => !u.isScope).forEach((u) => {
4993
5196
  l.push(u.validate());
4994
5197
  }), Promise.all(l).then(() => {
4995
5198
  s(null), i && i(null);
@@ -5047,25 +5250,28 @@ function sn(t, e) {
5047
5250
  },
5048
5251
  submit(r, i) {
5049
5252
  return new Promise((s, n) => {
5050
- t.validate().then(() => {
5051
- let o = t.formData();
5052
- h.Function(r) && O(() => r(o, t)), h.Function(e.options.onSubmit) && O(() => e.options.onSubmit(o, t)), e.vm.emit("submit", o, t), s(o);
5053
- }).catch((...o) => {
5054
- h.Function(i) && O(() => i(t, ...o)), n(...o);
5253
+ (e.options.validateOnSubmit === !1 ? Promise.resolve() : t.validate()).then(() => {
5254
+ let a = t.formData();
5255
+ e.beforeSubmit(a).then(() => {
5256
+ h.Function(r) && O(() => r(a, t)), h.Function(e.options.onSubmit) && O(() => e.options.onSubmit(a, t)), e.vm.$emit("submit", a, t), s(a);
5257
+ }).catch((l) => {
5258
+ });
5259
+ }).catch((...a) => {
5260
+ h.Function(i) && O(() => i(t, ...a)), n(...a);
5055
5261
  });
5056
5262
  });
5057
5263
  }
5058
5264
  };
5059
5265
  }
5060
- const zt = {
5266
+ const Wt = {
5061
5267
  name: "required",
5062
5268
  load(t, e, r) {
5063
5269
  var s, n;
5064
- const i = on(t.getValue());
5270
+ const i = an(t.getValue());
5065
5271
  if (i.required === !1)
5066
5272
  t.clearProp(), r.clearValidateState([e.field]);
5067
5273
  else {
5068
- const o = b({
5274
+ const o = v({
5069
5275
  required: !0,
5070
5276
  validator(l, u, f) {
5071
5277
  h.empty(u) ? f(o.message) : f();
@@ -5082,28 +5288,28 @@ const zt = {
5082
5288
  r.sync(e);
5083
5289
  },
5084
5290
  watch(...t) {
5085
- zt.load(...t);
5291
+ Wt.load(...t);
5086
5292
  }
5087
5293
  };
5088
- function on(t) {
5294
+ function an(t) {
5089
5295
  return h.Boolean(t) ? { required: t } : h.String(t) ? { message: t } : h.Undef(t) ? { required: !1 } : h.Function(t) ? { validator: t } : h.Object(t) ? t : {};
5090
5296
  }
5091
- function an(t) {
5297
+ function ln(t) {
5092
5298
  t.componentAlias(Wi), Nr.forEach((e) => {
5093
5299
  t.component(e.name, e);
5094
- }), t.register(zt), Ji.forEach((e) => {
5300
+ }), t.register(Wt), Ji.forEach((e) => {
5095
5301
  t.parser(e);
5096
5302
  }), Object.keys(oe).forEach((e) => {
5097
5303
  t.maker[e] = oe[e];
5098
5304
  });
5099
5305
  }
5100
- function ln() {
5101
- return Wt({
5306
+ function un() {
5307
+ return Jt({
5102
5308
  ui: "iview",
5103
- version: "2.7.4",
5309
+ version: "2.7.6",
5104
5310
  manager: Qi,
5105
- install: an,
5106
- extendApi: sn,
5311
+ install: ln,
5312
+ extendApi: on,
5107
5313
  attrs: {
5108
5314
  normal: ["col", "wrap"],
5109
5315
  array: ["className"],
@@ -5111,10 +5317,10 @@ function ln() {
5111
5317
  }
5112
5318
  });
5113
5319
  }
5114
- const Qe = ln();
5320
+ const Qe = un();
5115
5321
  typeof window != "undefined" && (window.formCreate = Qe, window.Vue && Qe.install(window.Vue));
5116
- const cn = Qe.maker;
5322
+ const hn = Qe.maker;
5117
5323
  export {
5118
5324
  Qe as default,
5119
- cn as maker
5325
+ hn as maker
5120
5326
  };