@form-create/element-ui 2.7.8 → 2.7.10
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.
- package/dist/form-create.esm.js +760 -716
- package/dist/form-create.js +4 -4
- package/dist/form-create.min.js +4 -4
- package/package.json +3 -3
package/dist/form-create.esm.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* FormCreate 低代码表单渲染器
|
|
3
|
-
* @form-create/element-ui v2.7.
|
|
3
|
+
* @form-create/element-ui v2.7.10
|
|
4
4
|
* (c) 2018-2025 xaboy
|
|
5
5
|
* Github https://github.com/xaboy/form-create
|
|
6
6
|
* Site https://form-create.com/
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
9
9
|
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode('._fc-frame .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-frame .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-frame .fc-files:hover .fc-upload-cover{opacity:1}._fc-frame .el-upload{display:block}._fc-frame .fc-upload-btn,.fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-upload .fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-upload .fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-upload .fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-upload .fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-upload .fc-files:hover .fc-upload-cover{opacity:1}._fc-upload .fc-upload-btn,._fc-upload .fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-group{display:flex;min-height:42px;justify-content:center;flex-direction:column}._fc-group-disabled ._fc-group-btn,._fc-group-disabled ._fc-group-add{cursor:not-allowed}._fc-group-handle{display:flex;flex-direction:row;position:absolute;bottom:-15px;right:30px;border-radius:15px;border:1px dashed #d9d9d9;padding:3px 8px;background-color:#fff}._fc-group-btn{cursor:pointer}._fc-group-idx{position:absolute;bottom:-15px;left:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#eee;border-radius:15px;font-weight:700}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{position:relative;display:flex;flex-direction:column;border:1px dashed #d9d9d9;padding:20px 20px 25px;margin:5px 5px 25px;border-radius:5px}._fc-group-arrow{position:relative;width:20px;height:20px}._fc-group-arrow:before{content:"";position:absolute;top:8px;left:5px;width:9px;height:9px;border-left:2px solid #999;border-top:2px solid #999}._fc-group-arrow:before{transform:rotate(45deg)}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{width:20px;height:20px;position:relative;cursor:pointer}._fc-group-plus-minus:before,._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:60%;height:2px;background-color:#409eff;transform:translate(-50%,-50%)}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{cursor:pointer;width:25px;height:25px;border:1px solid rgb(64 158 255 / 50%);border-radius:15px}._fc-group-add._fc-group-plus-minus:before,._fc-group-add._fc-group-plus-minus:after{width:50%}.form-create .form-create .el-form-item{margin-bottom:22px}.form-create{width:100%}.fc-form-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.form-create.is-preview .fc-clock,.form-create .fc-none,.form-create.is-preview .el-form-item.is-required>.el-form-item__label-wrap>.el-form-item__label:before,.form-create.is-preview .el-form-item.is-required>.el-form-item__label:before{display:none!important}.fc-wrap-right>.el-form-item__label{display:flex;justify-content:flex-end}.fc-wrap-left>.el-form-item__label{display:flex;justify-content:flex-start}.fc-wrap-top.el-form-item{display:block}.fc-wrap-top.el-form-item>.el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.fc-wrap-top.el-form-item>.el-form-item__content{margin-left:0!important}.el-form--large .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small .fc-wrap-top.el-form-item>.el-form-item__label{line-height:20px;margin-bottom:4px}.fc-form-footer{margin-top:12px}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
10
|
-
var
|
|
11
|
-
var
|
|
10
|
+
var ir = Object.defineProperty, nr = Object.defineProperties;
|
|
11
|
+
var sr = Object.getOwnPropertyDescriptors;
|
|
12
12
|
var at = Object.getOwnPropertySymbols;
|
|
13
|
-
var
|
|
14
|
-
var lt = (t, e, r) => e in t ?
|
|
13
|
+
var or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable;
|
|
14
|
+
var lt = (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) && lt(t, r, e[r]);
|
|
17
17
|
if (at)
|
|
18
18
|
for (var r of at(e))
|
|
19
|
-
|
|
19
|
+
ar.call(e, r) && lt(t, r, e[r]);
|
|
20
20
|
return t;
|
|
21
|
-
}, q = (t, e) =>
|
|
22
|
-
import
|
|
23
|
-
function
|
|
21
|
+
}, q = (t, e) => nr(t, sr(e));
|
|
22
|
+
import be, { getCurrentInstance as lr, provide as ur, inject as fr, toRefs as ut, reactive as ne, onBeforeMount as cr, watch as L, onMounted as hr, onBeforeUnmount as dr, onUpdated as pr, nextTick as P, markRaw as ye, computed as $e, toRef as Ve, ref as mr } from "vue";
|
|
23
|
+
function gr(t) {
|
|
24
24
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
25
25
|
}
|
|
26
26
|
function Je() {
|
|
@@ -29,33 +29,33 @@ function Je() {
|
|
|
29
29
|
return t;
|
|
30
30
|
}, Je.apply(this, arguments);
|
|
31
31
|
}
|
|
32
|
-
var
|
|
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 (
|
|
36
|
-
else if (
|
|
35
|
+
else if (yr.indexOf(i) !== -1) e[i] = Je({}, e[i], r[i]);
|
|
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 (
|
|
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);
|
|
43
43
|
} else e[i][o] = r[i][o];
|
|
44
|
-
else if (i === "hook") for (var u in r[i]) e[i][u] = e[i][u] ?
|
|
44
|
+
else if (i === "hook") for (var u in r[i]) e[i][u] = e[i][u] ? _r(e[i][u], r[i][u]) : r[i][u];
|
|
45
45
|
else e[i] = r[i];
|
|
46
46
|
return e;
|
|
47
47
|
}, {});
|
|
48
|
-
},
|
|
48
|
+
}, _r = function(t, e) {
|
|
49
49
|
return function() {
|
|
50
50
|
t && t.apply(this, arguments), e && e.apply(this, arguments);
|
|
51
51
|
};
|
|
52
|
-
},
|
|
53
|
-
const
|
|
52
|
+
}, Cr = vr;
|
|
53
|
+
const I = /* @__PURE__ */ gr(Cr);
|
|
54
54
|
function Qe(t, e) {
|
|
55
55
|
return Object.keys(t).reduce((r, i) => (r.push(t[i]), r), []);
|
|
56
56
|
}
|
|
57
|
-
const
|
|
58
|
-
name:
|
|
57
|
+
const wr = "fcCheckbox", Or = {
|
|
58
|
+
name: wr,
|
|
59
59
|
props: {
|
|
60
60
|
formCreateInject: {
|
|
61
61
|
type: Object,
|
|
@@ -101,7 +101,7 @@ const Cr = "fcCheckbox", wr = {
|
|
|
101
101
|
},
|
|
102
102
|
render() {
|
|
103
103
|
const t = arguments[0];
|
|
104
|
-
return t("ElCheckboxGroup",
|
|
104
|
+
return t("ElCheckboxGroup", I([{}, this.formCreateInject.prop, {}, {
|
|
105
105
|
props: {
|
|
106
106
|
value: this.trueValue
|
|
107
107
|
}
|
|
@@ -112,7 +112,7 @@ const Cr = "fcCheckbox", wr = {
|
|
|
112
112
|
}
|
|
113
113
|
}]), [this.options().map((e, r) => {
|
|
114
114
|
const i = v({}, e), s = this.type === "button" ? "ElCheckboxButton" : "ElCheckbox";
|
|
115
|
-
return delete i.value, t(s,
|
|
115
|
+
return delete i.value, t(s, I([{}, {
|
|
116
116
|
props: i
|
|
117
117
|
}, {
|
|
118
118
|
key: s + r + "-" + e.value
|
|
@@ -126,7 +126,7 @@ const Cr = "fcCheckbox", wr = {
|
|
|
126
126
|
function H(t) {
|
|
127
127
|
return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
|
|
128
128
|
}
|
|
129
|
-
const Fr = "fcFrame",
|
|
129
|
+
const Fr = "fcFrame", kr = {
|
|
130
130
|
name: Fr,
|
|
131
131
|
props: {
|
|
132
132
|
formCreateInject: {
|
|
@@ -285,7 +285,7 @@ const Fr = "fcFrame", Or = {
|
|
|
285
285
|
value: this.fileList.map((r) => this.getSrc(r)).toString(),
|
|
286
286
|
readonly: !0
|
|
287
287
|
};
|
|
288
|
-
return t("ElInput",
|
|
288
|
+
return t("ElInput", I([{}, {
|
|
289
289
|
props: e
|
|
290
290
|
}, {
|
|
291
291
|
key: this.key("input")
|
|
@@ -295,7 +295,7 @@ const Fr = "fcFrame", Or = {
|
|
|
295
295
|
on: {
|
|
296
296
|
click: () => this.fileList = []
|
|
297
297
|
}
|
|
298
|
-
}) : null, t("ElButton",
|
|
298
|
+
}) : null, t("ElButton", I([{
|
|
299
299
|
attrs: {
|
|
300
300
|
icon: this.icon
|
|
301
301
|
}
|
|
@@ -452,7 +452,7 @@ const Fr = "fcFrame", Or = {
|
|
|
452
452
|
this.$refs.frame && this.frameLoad(this.$refs.frame.contentWindow || {});
|
|
453
453
|
}), t("div", {
|
|
454
454
|
class: "_fc-frame"
|
|
455
|
-
}, [r, t("el-dialog",
|
|
455
|
+
}, [r, t("el-dialog", I([{}, {
|
|
456
456
|
props: {
|
|
457
457
|
appendToBody: !0,
|
|
458
458
|
modal: this.previewMask,
|
|
@@ -468,7 +468,7 @@ const Fr = "fcFrame", Or = {
|
|
|
468
468
|
attrs: {
|
|
469
469
|
src: this.previewImage
|
|
470
470
|
}
|
|
471
|
-
})]), t("el-dialog",
|
|
471
|
+
})]), t("el-dialog", I([{}, {
|
|
472
472
|
props: q(v({
|
|
473
473
|
width: i,
|
|
474
474
|
title: o,
|
|
@@ -496,8 +496,8 @@ const Fr = "fcFrame", Or = {
|
|
|
496
496
|
mounted() {
|
|
497
497
|
this.$on("fc.closeModal", this.closeModal);
|
|
498
498
|
}
|
|
499
|
-
},
|
|
500
|
-
name:
|
|
499
|
+
}, Er = "fcRadio", Sr = {
|
|
500
|
+
name: Er,
|
|
501
501
|
props: {
|
|
502
502
|
formCreateInject: {
|
|
503
503
|
type: Object,
|
|
@@ -539,7 +539,7 @@ const Fr = "fcFrame", Or = {
|
|
|
539
539
|
},
|
|
540
540
|
render() {
|
|
541
541
|
const t = arguments[0];
|
|
542
|
-
return t("ElRadioGroup",
|
|
542
|
+
return t("ElRadioGroup", I([{}, this.formCreateInject.prop, {
|
|
543
543
|
ref: "el"
|
|
544
544
|
}, {
|
|
545
545
|
props: {
|
|
@@ -551,7 +551,7 @@ const Fr = "fcFrame", Or = {
|
|
|
551
551
|
}
|
|
552
552
|
}]), [this.options().map((e, r) => {
|
|
553
553
|
const i = v({}, e), s = this.type === "button" ? "ElRadioButton" : "ElRadio";
|
|
554
|
-
return delete i.value, t(s,
|
|
554
|
+
return delete i.value, t(s, I([{}, {
|
|
555
555
|
props: i
|
|
556
556
|
}, {
|
|
557
557
|
key: s + r + "-" + e.value
|
|
@@ -594,8 +594,8 @@ const Fr = "fcFrame", Or = {
|
|
|
594
594
|
function D(t, e) {
|
|
595
595
|
return {}.hasOwnProperty.call(t, e);
|
|
596
596
|
}
|
|
597
|
-
const
|
|
598
|
-
name:
|
|
597
|
+
const Rr = "fcSelect", Dr = {
|
|
598
|
+
name: Rr,
|
|
599
599
|
functional: !0,
|
|
600
600
|
props: {
|
|
601
601
|
formCreateInject: {
|
|
@@ -606,7 +606,7 @@ const Er = "fcSelect", Rr = {
|
|
|
606
606
|
render(t, e) {
|
|
607
607
|
const r = (n, o) => {
|
|
608
608
|
const a = n.slot;
|
|
609
|
-
return t("ElOption",
|
|
609
|
+
return t("ElOption", I([{}, {
|
|
610
610
|
props: n
|
|
611
611
|
}, {
|
|
612
612
|
key: "" + o + "-" + n.value
|
|
@@ -619,15 +619,15 @@ const Er = "fcSelect", Rr = {
|
|
|
619
619
|
},
|
|
620
620
|
key: "" + o + "-" + n.label
|
|
621
621
|
}, [h.trueArray(n.options) && n.options.map((a, l) => r(a, l))]), s = e.props.formCreateInject.options;
|
|
622
|
-
return t("ElSelect",
|
|
622
|
+
return t("ElSelect", I([{}, e.data, {
|
|
623
623
|
ref: "el"
|
|
624
624
|
}]), [(Array.isArray(s) ? s : []).map((n, o) => D(n || "", "options") ? i(n, o) : r(n, o)), e.children]);
|
|
625
625
|
},
|
|
626
626
|
mounted() {
|
|
627
627
|
this.$emit("fc.el", this.$refs.el);
|
|
628
628
|
}
|
|
629
|
-
},
|
|
630
|
-
name:
|
|
629
|
+
}, jr = "fcTree", Ar = {
|
|
630
|
+
name: jr,
|
|
631
631
|
formCreateParser: {
|
|
632
632
|
mergeProp(t) {
|
|
633
633
|
const e = t.prop.props;
|
|
@@ -671,7 +671,7 @@ const Er = "fcSelect", Rr = {
|
|
|
671
671
|
},
|
|
672
672
|
render() {
|
|
673
673
|
const t = arguments[0];
|
|
674
|
-
return t("ElTree",
|
|
674
|
+
return t("ElTree", I([{}, this.formCreateInject.prop, {
|
|
675
675
|
ref: "tree",
|
|
676
676
|
on: {
|
|
677
677
|
check: () => this.updateValue(),
|
|
@@ -687,7 +687,7 @@ function ft(t, e) {
|
|
|
687
687
|
return typeof t == "object" ? t : {
|
|
688
688
|
url: t,
|
|
689
689
|
is_string: !0,
|
|
690
|
-
name:
|
|
690
|
+
name: Vr(t),
|
|
691
691
|
uid: e
|
|
692
692
|
};
|
|
693
693
|
}
|
|
@@ -697,11 +697,11 @@ function ct(t) {
|
|
|
697
697
|
value: t
|
|
698
698
|
});
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function Vr(t) {
|
|
701
701
|
return ("" + t).split("/").pop();
|
|
702
702
|
}
|
|
703
|
-
const
|
|
704
|
-
name:
|
|
703
|
+
const Ir = "fcUpload", Pr = {
|
|
704
|
+
name: Ir,
|
|
705
705
|
props: {
|
|
706
706
|
formCreateInject: {
|
|
707
707
|
type: Object,
|
|
@@ -806,7 +806,7 @@ const Vr = "fcUpload", Ir = {
|
|
|
806
806
|
},
|
|
807
807
|
makeProgress(t, e) {
|
|
808
808
|
const r = this.$createElement;
|
|
809
|
-
return r("ElProgress",
|
|
809
|
+
return r("ElProgress", I([{}, {
|
|
810
810
|
props: {
|
|
811
811
|
percentage: t.percentage,
|
|
812
812
|
type: "circle",
|
|
@@ -852,7 +852,7 @@ const Vr = "fcUpload", Ir = {
|
|
|
852
852
|
},
|
|
853
853
|
makeUpload() {
|
|
854
854
|
const t = this.$createElement, e = !this.limit || this.limit > this.uploadList.length;
|
|
855
|
-
return t("ElUpload",
|
|
855
|
+
return t("ElUpload", I([{}, this.formCreateInject.prop, {}, {
|
|
856
856
|
props: {
|
|
857
857
|
listType: this.listType,
|
|
858
858
|
showFileList: this.listType !== "picture",
|
|
@@ -884,7 +884,7 @@ const Vr = "fcUpload", Ir = {
|
|
|
884
884
|
const t = arguments[0];
|
|
885
885
|
return this.$refs.upload && (this.formCreateInject.prop.props.fileList = this.$refs.upload.fileList), t("div", {
|
|
886
886
|
class: "_fc-upload"
|
|
887
|
-
}, [[this.makeFiles(), this.makeUpload()], t("el-dialog",
|
|
887
|
+
}, [[this.makeFiles(), this.makeUpload()], t("el-dialog", I([{}, {
|
|
888
888
|
props: {
|
|
889
889
|
appendToBody: !0,
|
|
890
890
|
modal: this.previewMask,
|
|
@@ -911,13 +911,13 @@ const Vr = "fcUpload", Ir = {
|
|
|
911
911
|
}), this.$emit("fc.el", this.$refs.upload);
|
|
912
912
|
}
|
|
913
913
|
};
|
|
914
|
-
function
|
|
915
|
-
|
|
914
|
+
function k(t, e, r) {
|
|
915
|
+
be.set(t, e, r);
|
|
916
916
|
}
|
|
917
917
|
function ie(t, e) {
|
|
918
|
-
(
|
|
918
|
+
(be.del || be.delete)(t, e);
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function we(t, e = {}, r) {
|
|
921
921
|
let i = !1;
|
|
922
922
|
for (let s in e)
|
|
923
923
|
if (Object.prototype.hasOwnProperty.call(e, s)) {
|
|
@@ -925,39 +925,39 @@ function Ce(t, e = {}, r) {
|
|
|
925
925
|
if ((i = Array.isArray(n)) || h.Object(n)) {
|
|
926
926
|
let o = t[s] === void 0;
|
|
927
927
|
if (i)
|
|
928
|
-
i = !1, o &&
|
|
928
|
+
i = !1, o && k(t, s, []);
|
|
929
929
|
else if (n._clone && r !== void 0)
|
|
930
930
|
if (r)
|
|
931
|
-
n = n.getRule(), o &&
|
|
931
|
+
n = n.getRule(), o && k(t, s, {});
|
|
932
932
|
else {
|
|
933
|
-
|
|
933
|
+
k(t, s, n._clone());
|
|
934
934
|
continue;
|
|
935
935
|
}
|
|
936
936
|
else
|
|
937
|
-
o &&
|
|
938
|
-
t[s] =
|
|
937
|
+
o && k(t, s, {});
|
|
938
|
+
t[s] = we(t[s], n, r);
|
|
939
939
|
} else
|
|
940
|
-
|
|
940
|
+
k(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
|
|
941
941
|
}
|
|
942
942
|
return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
|
|
943
943
|
}
|
|
944
944
|
function K(t) {
|
|
945
|
-
return
|
|
945
|
+
return we({}, { value: t }).value;
|
|
946
946
|
}
|
|
947
|
-
const
|
|
947
|
+
const Tr = Object.assign || function(t) {
|
|
948
948
|
for (let e, r = 1; r < arguments.length; r++)
|
|
949
949
|
for (let i in e = arguments[r], e)
|
|
950
|
-
Object.prototype.hasOwnProperty.call(e, i) &&
|
|
950
|
+
Object.prototype.hasOwnProperty.call(e, i) && k(t, i, e[i]);
|
|
951
951
|
return t;
|
|
952
952
|
};
|
|
953
953
|
function _() {
|
|
954
|
-
return
|
|
954
|
+
return Tr.apply(this, arguments);
|
|
955
955
|
}
|
|
956
956
|
function Ke(t) {
|
|
957
957
|
return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
|
|
958
958
|
}
|
|
959
|
-
const
|
|
960
|
-
name:
|
|
959
|
+
const Br = "fcGroup", Lr = {
|
|
960
|
+
name: Br,
|
|
961
961
|
props: {
|
|
962
962
|
field: String,
|
|
963
963
|
rule: [Array, Object],
|
|
@@ -1038,7 +1038,7 @@ const Tr = "fcGroup", Br = {
|
|
|
1038
1038
|
const s = i.$f.formData();
|
|
1039
1039
|
if (t === e)
|
|
1040
1040
|
i.$f.deferSyncValue(() => {
|
|
1041
|
-
|
|
1041
|
+
we(i.rule, t), i.$f.setValue(s);
|
|
1042
1042
|
}, !0);
|
|
1043
1043
|
else {
|
|
1044
1044
|
const n = i.$f.formData();
|
|
@@ -1231,13 +1231,13 @@ const Tr = "fcGroup", Br = {
|
|
|
1231
1231
|
return t("div", {
|
|
1232
1232
|
class: "_fc-group-container",
|
|
1233
1233
|
key: o
|
|
1234
|
-
}, [t(i,
|
|
1234
|
+
}, [t(i, I([{
|
|
1235
1235
|
key: o
|
|
1236
1236
|
}, {
|
|
1237
1237
|
on: {
|
|
1238
|
-
"update:value": (
|
|
1239
|
-
"emit-event": (
|
|
1240
|
-
input: (
|
|
1238
|
+
"update:value": (p) => this.formData(o, p),
|
|
1239
|
+
"emit-event": (p, ...d) => this.emitEvent(p, d, a, o),
|
|
1240
|
+
input: (p) => this.add$f(a, o, p)
|
|
1241
1241
|
}
|
|
1242
1242
|
}, {}, {
|
|
1243
1243
|
props: {
|
|
@@ -1261,8 +1261,8 @@ const Tr = "fcGroup", Br = {
|
|
|
1261
1261
|
class: "_fc-group " + (s ? "_fc-group-disabled" : "")
|
|
1262
1262
|
}, [n]);
|
|
1263
1263
|
}
|
|
1264
|
-
},
|
|
1265
|
-
name:
|
|
1264
|
+
}, Nr = "fcSubForm", Mr = {
|
|
1265
|
+
name: Nr,
|
|
1266
1266
|
props: {
|
|
1267
1267
|
rule: Array,
|
|
1268
1268
|
options: Object,
|
|
@@ -1330,7 +1330,7 @@ const Tr = "fcGroup", Br = {
|
|
|
1330
1330
|
rule: e,
|
|
1331
1331
|
options: r
|
|
1332
1332
|
} = this.cacheRule, i = this.type;
|
|
1333
|
-
return t(i,
|
|
1333
|
+
return t(i, I([{}, {
|
|
1334
1334
|
on: {
|
|
1335
1335
|
"update:value": this.formData,
|
|
1336
1336
|
"emit-event": this.emitEvent,
|
|
@@ -1345,14 +1345,14 @@ const Tr = "fcGroup", Br = {
|
|
|
1345
1345
|
}
|
|
1346
1346
|
}]));
|
|
1347
1347
|
}
|
|
1348
|
-
},
|
|
1349
|
-
wr,
|
|
1348
|
+
}, qr = [
|
|
1350
1349
|
Or,
|
|
1350
|
+
kr,
|
|
1351
1351
|
Sr,
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1352
|
+
Dr,
|
|
1353
|
+
Ar,
|
|
1354
|
+
Pr,
|
|
1355
|
+
Lr,
|
|
1356
1356
|
Mr
|
|
1357
1357
|
];
|
|
1358
1358
|
function se(t, e) {
|
|
@@ -1361,12 +1361,15 @@ function se(t, e) {
|
|
|
1361
1361
|
r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function ve(t) {
|
|
1365
1365
|
let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
|
|
1366
1366
|
return e.indexOf("-") === 0 && (e = e.substr(1)), e;
|
|
1367
1367
|
}
|
|
1368
|
-
|
|
1369
|
-
|
|
1368
|
+
function Ur(t) {
|
|
1369
|
+
return t.replace(t[0], t[0].toLocaleUpperCase());
|
|
1370
|
+
}
|
|
1371
|
+
const kt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style", "directives"], St = ["on", "nativeOn", "hook"], ee = (t, e = {}, r = {}) => {
|
|
1372
|
+
const i = [...kt, ...r.normal || []], s = [...Et, ...r.array || []], n = [...St, ...r.functional || []], o = r.props || [];
|
|
1370
1373
|
return t.reduce((a, l) => {
|
|
1371
1374
|
for (const u in l)
|
|
1372
1375
|
if (a[u])
|
|
@@ -1375,29 +1378,29 @@ const kt = ["attrs", "props", "domProps", "scopedSlots"], St = ["class", "style"
|
|
|
1375
1378
|
else if (i.indexOf(u) > -1)
|
|
1376
1379
|
a[u] = v(v({}, a[u]), l[u]);
|
|
1377
1380
|
else if (s.indexOf(u) > -1) {
|
|
1378
|
-
const f = a[u] instanceof Array ? a[u] : [a[u]],
|
|
1379
|
-
a[u] = [...f, ...
|
|
1381
|
+
const f = a[u] instanceof Array ? a[u] : [a[u]], p = l[u] instanceof Array ? l[u] : [l[u]];
|
|
1382
|
+
a[u] = [...f, ...p];
|
|
1380
1383
|
} else if (n.indexOf(u) > -1)
|
|
1381
1384
|
for (const f in l[u])
|
|
1382
1385
|
if (a[u][f]) {
|
|
1383
|
-
const
|
|
1384
|
-
a[u][f] = [...
|
|
1386
|
+
const p = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], d = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
|
|
1387
|
+
a[u][f] = [...p, ...d];
|
|
1385
1388
|
} else
|
|
1386
1389
|
a[u][f] = l[u][f];
|
|
1387
1390
|
else if (u === "hook")
|
|
1388
1391
|
for (let f in l[u])
|
|
1389
|
-
a[u][f] ? a[u][f] =
|
|
1392
|
+
a[u][f] ? a[u][f] = Hr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
|
|
1390
1393
|
else
|
|
1391
1394
|
a[u] = l[u];
|
|
1392
1395
|
else
|
|
1393
1396
|
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];
|
|
1394
1397
|
return a;
|
|
1395
1398
|
}, e);
|
|
1396
|
-
},
|
|
1399
|
+
}, Hr = (t, e) => function() {
|
|
1397
1400
|
t && t.apply(this, arguments), e && e.apply(this, arguments);
|
|
1398
1401
|
}, Rt = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], Ye = ["validate", "children", "control"], et = ["effect", "deep", "renderSlots"];
|
|
1399
1402
|
function Dt() {
|
|
1400
|
-
return [...Rt, ...kt, ...
|
|
1403
|
+
return [...Rt, ...kt, ...Et, ...St, ...Ye, ...et];
|
|
1401
1404
|
}
|
|
1402
1405
|
function jt(t, e, r) {
|
|
1403
1406
|
return `[form-create ${t}]: ${e}`;
|
|
@@ -1405,15 +1408,15 @@ function jt(t, e, r) {
|
|
|
1405
1408
|
function tt(t, e) {
|
|
1406
1409
|
console.error(jt("err", t));
|
|
1407
1410
|
}
|
|
1408
|
-
function
|
|
1411
|
+
function Gr(t) {
|
|
1409
1412
|
tt(t.toString()), console.error(t);
|
|
1410
1413
|
}
|
|
1411
1414
|
function At(t) {
|
|
1412
1415
|
return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
|
|
1413
1416
|
}
|
|
1414
1417
|
const We = "[[FORM-CREATE-PREFIX-", ze = "-FORM-CREATE-SUFFIX]]";
|
|
1415
|
-
function
|
|
1416
|
-
return JSON.stringify(
|
|
1418
|
+
function Ce(t, e) {
|
|
1419
|
+
return JSON.stringify(we(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
|
|
1417
1420
|
if (!(i && i._isVue === !0)) {
|
|
1418
1421
|
if (typeof i != "function")
|
|
1419
1422
|
return i;
|
|
@@ -1427,7 +1430,7 @@ function _e(t, e) {
|
|
|
1427
1430
|
function Le(t) {
|
|
1428
1431
|
return new Function("return " + t)();
|
|
1429
1432
|
}
|
|
1430
|
-
function
|
|
1433
|
+
function X(t, e) {
|
|
1431
1434
|
if (t && h.String(t) && t.length > 4) {
|
|
1432
1435
|
let r = t.trim(), i = !1;
|
|
1433
1436
|
try {
|
|
@@ -1470,21 +1473,21 @@ err: ${s}`);
|
|
|
1470
1473
|
}
|
|
1471
1474
|
function Vt(t, e) {
|
|
1472
1475
|
return JSON.parse(t, function(r, i) {
|
|
1473
|
-
return h.Undef(i) || !i.indexOf ? i :
|
|
1476
|
+
return h.Undef(i) || !i.indexOf ? i : X(i, e);
|
|
1474
1477
|
});
|
|
1475
1478
|
}
|
|
1476
|
-
let
|
|
1477
|
-
function
|
|
1478
|
-
const t = 370 + ++
|
|
1479
|
+
let Jr = 0;
|
|
1480
|
+
function Ie() {
|
|
1481
|
+
const t = 370 + ++Jr;
|
|
1479
1482
|
return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
|
|
1480
1483
|
}
|
|
1481
1484
|
function oe(t, e, r) {
|
|
1482
1485
|
let i = t, s;
|
|
1483
1486
|
return (e || "").split(".").forEach((n) => {
|
|
1484
|
-
s && ((!i[s] || typeof i[s] != "object") &&
|
|
1485
|
-
}),
|
|
1487
|
+
s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
|
|
1488
|
+
}), k(i, s, r), i;
|
|
1486
1489
|
}
|
|
1487
|
-
function
|
|
1490
|
+
function Xe(t, e) {
|
|
1488
1491
|
return {
|
|
1489
1492
|
value: t,
|
|
1490
1493
|
enumerable: !1,
|
|
@@ -1496,7 +1499,7 @@ function It(t, e) {
|
|
|
1496
1499
|
return Pt([t], e || !1)[0];
|
|
1497
1500
|
}
|
|
1498
1501
|
function Pt(t, e) {
|
|
1499
|
-
return
|
|
1502
|
+
return we([], [...t], e || !1);
|
|
1500
1503
|
}
|
|
1501
1504
|
function te(t, e) {
|
|
1502
1505
|
return ee(Array.isArray(e) ? e : [e], t, { array: Ye, normal: et }), t;
|
|
@@ -1505,7 +1508,7 @@ function ht(t) {
|
|
|
1505
1508
|
const e = h.Function(t.getRule) ? t.getRule() : t;
|
|
1506
1509
|
return e.type || (e.type = "input"), e;
|
|
1507
1510
|
}
|
|
1508
|
-
function
|
|
1511
|
+
function Kr(t, e) {
|
|
1509
1512
|
return t ? (Object.keys(e || {}).forEach((r) => {
|
|
1510
1513
|
e[r] && (t[r] = te(t[r] || {}, e[r]));
|
|
1511
1514
|
}), t) : e;
|
|
@@ -1520,32 +1523,32 @@ function Tt(t, e) {
|
|
|
1520
1523
|
function Y(t) {
|
|
1521
1524
|
return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
|
|
1522
1525
|
}
|
|
1523
|
-
function
|
|
1526
|
+
function O(t, e) {
|
|
1524
1527
|
try {
|
|
1525
1528
|
e = t();
|
|
1526
1529
|
} catch (r) {
|
|
1527
|
-
|
|
1530
|
+
Gr(r);
|
|
1528
1531
|
}
|
|
1529
1532
|
return e;
|
|
1530
1533
|
}
|
|
1531
|
-
function
|
|
1534
|
+
function xe(t, e) {
|
|
1532
1535
|
let r = null;
|
|
1533
|
-
return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) =>
|
|
1536
|
+
return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => xe(i, e)) : r = t, r && e && H(r).forEach((i) => {
|
|
1534
1537
|
(Array.isArray(i) ? i : [i]).forEach((n) => {
|
|
1535
1538
|
n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
|
|
1536
1539
|
});
|
|
1537
1540
|
}), r;
|
|
1538
1541
|
}
|
|
1539
|
-
function
|
|
1542
|
+
function Wr(t, e) {
|
|
1540
1543
|
if (h.Object(t)) {
|
|
1541
1544
|
const r = {};
|
|
1542
1545
|
return Object.keys(t).forEach((i) => {
|
|
1543
|
-
r[i] =
|
|
1546
|
+
r[i] = xe(t[i], i);
|
|
1544
1547
|
}), r;
|
|
1545
1548
|
} else
|
|
1546
|
-
return
|
|
1549
|
+
return xe(t, e);
|
|
1547
1550
|
}
|
|
1548
|
-
function
|
|
1551
|
+
function Ee() {
|
|
1549
1552
|
const t = {}, e = (r) => r || "default";
|
|
1550
1553
|
return {
|
|
1551
1554
|
setSlot(r, i) {
|
|
@@ -1561,7 +1564,7 @@ function ke() {
|
|
|
1561
1564
|
const n = s();
|
|
1562
1565
|
Array.isArray(n) ? i.push(...n) : i.push(n);
|
|
1563
1566
|
} else h.Undef(s) || i.push(s);
|
|
1564
|
-
}),
|
|
1567
|
+
}), Wr(i, r);
|
|
1565
1568
|
},
|
|
1566
1569
|
getSlots() {
|
|
1567
1570
|
let r = [];
|
|
@@ -1584,9 +1587,9 @@ function ke() {
|
|
|
1584
1587
|
function Se(t, e) {
|
|
1585
1588
|
return Object.setPrototypeOf(t, e), t;
|
|
1586
1589
|
}
|
|
1587
|
-
const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e,
|
|
1590
|
+
const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
|
|
1588
1591
|
"==": (t, e) => JSON.stringify(t) === JSON.stringify(dt(t, e)),
|
|
1589
|
-
"!=": (t, e) => !
|
|
1592
|
+
"!=": (t, e) => !ce["=="](t, e),
|
|
1590
1593
|
">": (t, e) => t > e,
|
|
1591
1594
|
">=": (t, e) => t >= e,
|
|
1592
1595
|
"<": (t, e) => t < e,
|
|
@@ -1595,13 +1598,13 @@ const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
|
|
|
1595
1598
|
return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
|
|
1596
1599
|
},
|
|
1597
1600
|
notOn(t, e) {
|
|
1598
|
-
return !
|
|
1601
|
+
return !ce.on(t, e);
|
|
1599
1602
|
},
|
|
1600
1603
|
in(t, e) {
|
|
1601
1604
|
return e && e.indexOf && e.indexOf(t) > -1;
|
|
1602
1605
|
},
|
|
1603
1606
|
notIn(t, e) {
|
|
1604
|
-
return !
|
|
1607
|
+
return !ce.in(t, e);
|
|
1605
1608
|
},
|
|
1606
1609
|
between(t, e) {
|
|
1607
1610
|
return t > e[0] && t < e[1];
|
|
@@ -1624,7 +1627,7 @@ function B(t, e) {
|
|
|
1624
1627
|
t != null && (t = t[r]);
|
|
1625
1628
|
}), t;
|
|
1626
1629
|
}
|
|
1627
|
-
function
|
|
1630
|
+
function zr(t) {
|
|
1628
1631
|
const e = /{{\s*(.*?)\s*}}/g;
|
|
1629
1632
|
let r;
|
|
1630
1633
|
const i = {};
|
|
@@ -1638,15 +1641,27 @@ function pt(t) {
|
|
|
1638
1641
|
n === 0 ? i = s : i += "." + s, r.push(i);
|
|
1639
1642
|
}), r.join(" && ");
|
|
1640
1643
|
}
|
|
1641
|
-
|
|
1644
|
+
function Bt(t) {
|
|
1645
|
+
const e = [];
|
|
1646
|
+
let r = "", i = 0;
|
|
1647
|
+
for (let s = 0; s < t.length; s++) {
|
|
1648
|
+
const n = t[s];
|
|
1649
|
+
n === "[" ? (i === 0 && r && (e.push({ type: "key", value: r }), r = ""), i++, r += n) : n === "]" ? (i--, r += n, i === 0 && (e.push({
|
|
1650
|
+
type: "bracket",
|
|
1651
|
+
value: Bt(r.slice(1, -1))
|
|
1652
|
+
}), r = "")) : n === "." && i === 0 ? r && (e.push({ type: "key", value: r }), r = "") : r += n;
|
|
1653
|
+
}
|
|
1654
|
+
return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
|
|
1655
|
+
}
|
|
1656
|
+
const je = (t, e) => {
|
|
1642
1657
|
if (!(!t || t === e || !t.$props)) {
|
|
1643
1658
|
if (t.$props.formCreateInject)
|
|
1644
1659
|
return t.$props.formCreateInject;
|
|
1645
1660
|
if (t.$parent)
|
|
1646
|
-
return
|
|
1661
|
+
return je(t.$parent, e);
|
|
1647
1662
|
}
|
|
1648
1663
|
};
|
|
1649
|
-
function
|
|
1664
|
+
function Xr(t, e, r) {
|
|
1650
1665
|
const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
|
|
1651
1666
|
return {
|
|
1652
1667
|
name: i,
|
|
@@ -1697,102 +1712,102 @@ function Wr(t, e, r) {
|
|
|
1697
1712
|
return this.fc.render();
|
|
1698
1713
|
},
|
|
1699
1714
|
setup(s) {
|
|
1700
|
-
const n =
|
|
1701
|
-
|
|
1702
|
-
const o =
|
|
1715
|
+
const n = lr().proxy;
|
|
1716
|
+
ur("parentFC", n);
|
|
1717
|
+
const o = fr("parentFC", null);
|
|
1703
1718
|
let a = o;
|
|
1704
1719
|
if (o)
|
|
1705
1720
|
for (; a.parent; )
|
|
1706
1721
|
a = a.parent;
|
|
1707
1722
|
else
|
|
1708
1723
|
a = n;
|
|
1709
|
-
const { rule: l, value: u, subForm: f, inFor:
|
|
1724
|
+
const { rule: l, value: u, subForm: f, inFor: p } = ut(s), d = ne({
|
|
1710
1725
|
ctxInject: {},
|
|
1711
1726
|
destroyed: !1,
|
|
1712
1727
|
isShow: !0,
|
|
1713
1728
|
unique: 1,
|
|
1714
1729
|
renderRule: [...l.value || []],
|
|
1715
1730
|
updateValue: JSON.stringify(u.value || {})
|
|
1716
|
-
}),
|
|
1731
|
+
}), g = new t(n), y = g.api(), w = p.value, F = () => {
|
|
1717
1732
|
if (o) {
|
|
1718
|
-
const
|
|
1719
|
-
if (
|
|
1720
|
-
let
|
|
1721
|
-
w ? (
|
|
1733
|
+
const E = je(n, o);
|
|
1734
|
+
if (E) {
|
|
1735
|
+
let R;
|
|
1736
|
+
w ? (R = H(E.getSubForm()), R.push(y)) : R = y, E.subForm(R);
|
|
1722
1737
|
}
|
|
1723
1738
|
}
|
|
1724
1739
|
}, G = () => {
|
|
1725
|
-
const
|
|
1726
|
-
if (
|
|
1740
|
+
const E = je(n, o);
|
|
1741
|
+
if (E)
|
|
1727
1742
|
if (w) {
|
|
1728
|
-
const
|
|
1729
|
-
|
|
1743
|
+
const R = H(E.getSubForm()), M = R.indexOf(y);
|
|
1744
|
+
M > -1 && R.splice(M, 1);
|
|
1730
1745
|
} else
|
|
1731
|
-
|
|
1746
|
+
E.subForm();
|
|
1732
1747
|
};
|
|
1733
|
-
let
|
|
1734
|
-
|
|
1748
|
+
let V = null;
|
|
1749
|
+
cr(() => {
|
|
1735
1750
|
L(() => {
|
|
1736
|
-
let
|
|
1737
|
-
const
|
|
1738
|
-
Object.keys(
|
|
1739
|
-
let
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
}),
|
|
1743
|
-
}), s.option && s.option.style && (
|
|
1751
|
+
let E = "";
|
|
1752
|
+
const R = s.option && s.option.globalClass || {};
|
|
1753
|
+
Object.keys(R).forEach((M) => {
|
|
1754
|
+
let me = "";
|
|
1755
|
+
R[M].style && Object.keys(R[M].style).forEach((W) => {
|
|
1756
|
+
me += ve(W) + ":" + R[M].style[W] + ";";
|
|
1757
|
+
}), R[M].content && (me += R[M].content + ";"), me && (E += `.${M}{${me}}`);
|
|
1758
|
+
}), s.option && s.option.style && (E += s.option.style), V || (V = document.createElement("style"), V.type = "text/css", document.head.appendChild(V)), V.innerHTML = E || "";
|
|
1744
1759
|
}, () => {
|
|
1745
1760
|
});
|
|
1746
1761
|
});
|
|
1747
|
-
const
|
|
1748
|
-
|
|
1749
|
-
}, 100),
|
|
1750
|
-
|
|
1751
|
-
}, 100),
|
|
1752
|
-
|
|
1753
|
-
}, 100),
|
|
1754
|
-
|
|
1762
|
+
const N = se(() => {
|
|
1763
|
+
g.bus.$emit("$loadData.$topForm");
|
|
1764
|
+
}, 100), de = se(function() {
|
|
1765
|
+
g.bus.$emit("$loadData.$scopeForm");
|
|
1766
|
+
}, 100), Pe = se(() => {
|
|
1767
|
+
g.bus.$emit("$loadData.$form");
|
|
1768
|
+
}, 100), pe = (E) => {
|
|
1769
|
+
g.bus.$emit("change-$form." + E);
|
|
1755
1770
|
};
|
|
1756
|
-
return
|
|
1757
|
-
o && (y.top.bus.$on("$loadData.$form",
|
|
1758
|
-
}), hr(() => {
|
|
1759
|
-
o && (y.top.bus.$off("$loadData.$form", M), y.top.bus.$off("change", de)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", he), T && document.head.removeChild(T), G(), g.destroyed = !0, m.unmount();
|
|
1771
|
+
return hr(() => {
|
|
1772
|
+
o && (y.top.bus.$on("$loadData.$form", N), y.top.bus.$on("change", pe)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", de), g.mounted();
|
|
1760
1773
|
}), dr(() => {
|
|
1761
|
-
|
|
1762
|
-
}),
|
|
1763
|
-
|
|
1774
|
+
o && (y.top.bus.$off("$loadData.$form", N), y.top.bus.$off("change", pe)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", de), G(), d.destroyed = !0, g.unmount(), V && (V.parentNode || V.parentElement) && document.head.removeChild(V);
|
|
1775
|
+
}), pr(() => {
|
|
1776
|
+
g.updated();
|
|
1777
|
+
}), L(f, (E) => {
|
|
1778
|
+
E ? F() : G();
|
|
1764
1779
|
}, { immediate: !0 }), L(() => s.option, () => {
|
|
1765
|
-
|
|
1766
|
-
}, { deep: !0 }), L(() => [...l.value], (
|
|
1767
|
-
|
|
1780
|
+
g.initOptions(), y.refresh();
|
|
1781
|
+
}, { deep: !0 }), L(() => [...l.value], (E) => {
|
|
1782
|
+
g.$handle.isBreakWatch() || E.length === d.renderRule.length && E.every((R) => d.renderRule.indexOf(R) > -1) || (g.$handle.updateAppendData(), g.$handle.reloadRule(l.value), n.renderRule());
|
|
1768
1783
|
}), L(() => [s.disabled, s.preview], () => {
|
|
1769
1784
|
y.refresh();
|
|
1770
|
-
}), L(u, (
|
|
1771
|
-
|
|
1785
|
+
}), L(u, (E) => {
|
|
1786
|
+
Ce(E || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(E || {}) : y.setValue(E || {}));
|
|
1772
1787
|
}, { deep: !0, flush: "post" }), L(() => s.index, () => {
|
|
1773
|
-
y.coverValue({}),
|
|
1774
|
-
|
|
1788
|
+
y.coverValue({}), g.$handle.updateAppendData(), P(() => {
|
|
1789
|
+
P(() => {
|
|
1775
1790
|
y.clearValidateState();
|
|
1776
1791
|
});
|
|
1777
1792
|
});
|
|
1778
1793
|
}, { flush: "sync" }), q(v({
|
|
1779
|
-
fc:
|
|
1780
|
-
parent: o &&
|
|
1781
|
-
top:
|
|
1782
|
-
fapi:
|
|
1783
|
-
}, ut(
|
|
1784
|
-
getGroupInject: () =>
|
|
1794
|
+
fc: ye(g),
|
|
1795
|
+
parent: o && ye(o),
|
|
1796
|
+
top: ye(a),
|
|
1797
|
+
fapi: ye(y)
|
|
1798
|
+
}, ut(d)), {
|
|
1799
|
+
getGroupInject: () => je(n, o),
|
|
1785
1800
|
refresh() {
|
|
1786
|
-
++
|
|
1801
|
+
++d.unique;
|
|
1787
1802
|
},
|
|
1788
1803
|
renderRule() {
|
|
1789
|
-
|
|
1804
|
+
d.renderRule = [...l.value || []];
|
|
1790
1805
|
},
|
|
1791
|
-
updateValue(
|
|
1792
|
-
if (
|
|
1793
|
-
const
|
|
1794
|
-
|
|
1795
|
-
|
|
1806
|
+
updateValue(E) {
|
|
1807
|
+
if (d.destroyed) return;
|
|
1808
|
+
const R = Ce(E);
|
|
1809
|
+
d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", E), P(() => {
|
|
1810
|
+
Pe(), o ? f.value || de() : (N(), de());
|
|
1796
1811
|
}));
|
|
1797
1812
|
}
|
|
1798
1813
|
});
|
|
@@ -1802,7 +1817,7 @@ function Wr(t, e, r) {
|
|
|
1802
1817
|
}
|
|
1803
1818
|
};
|
|
1804
1819
|
}
|
|
1805
|
-
function
|
|
1820
|
+
function Lt() {
|
|
1806
1821
|
return {
|
|
1807
1822
|
props: {},
|
|
1808
1823
|
on: {},
|
|
@@ -1814,37 +1829,37 @@ function Bt() {
|
|
|
1814
1829
|
value: void 0
|
|
1815
1830
|
};
|
|
1816
1831
|
}
|
|
1817
|
-
function
|
|
1832
|
+
function T(t, e) {
|
|
1818
1833
|
return (r, i, s, n = {}) => {
|
|
1819
1834
|
const o = new rt(t, r, i, s, n);
|
|
1820
1835
|
return e && (h.Function(e) ? e(o) : o.props(e)), o;
|
|
1821
1836
|
};
|
|
1822
1837
|
}
|
|
1823
1838
|
function rt(t, e, r, i, s) {
|
|
1824
|
-
this._data = _(
|
|
1839
|
+
this._data = _(Lt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
|
|
1825
1840
|
}
|
|
1826
1841
|
_(rt.prototype, {
|
|
1827
1842
|
getRule() {
|
|
1828
1843
|
return this._data;
|
|
1829
1844
|
},
|
|
1830
1845
|
setProp(t, e) {
|
|
1831
|
-
return
|
|
1846
|
+
return k(this._data, t, e), this;
|
|
1832
1847
|
},
|
|
1833
1848
|
_clone() {
|
|
1834
1849
|
const t = new this.constructor();
|
|
1835
1850
|
return t._data = It(this._data), t;
|
|
1836
1851
|
}
|
|
1837
1852
|
});
|
|
1838
|
-
function
|
|
1853
|
+
function Nt(t) {
|
|
1839
1854
|
t.forEach((e) => {
|
|
1840
1855
|
rt.prototype[e] = function(r) {
|
|
1841
1856
|
return te(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
|
|
1842
1857
|
};
|
|
1843
1858
|
});
|
|
1844
1859
|
}
|
|
1845
|
-
|
|
1846
|
-
const Mt =
|
|
1847
|
-
function
|
|
1860
|
+
Nt(Dt());
|
|
1861
|
+
const Mt = T("");
|
|
1862
|
+
function xr(t, e, r) {
|
|
1848
1863
|
let i = Mt("", e);
|
|
1849
1864
|
return i._data.type = t, i._data.title = r, i;
|
|
1850
1865
|
}
|
|
@@ -1852,15 +1867,15 @@ function mt(t, e, r, i) {
|
|
|
1852
1867
|
let s = Mt("", r);
|
|
1853
1868
|
return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
|
|
1854
1869
|
}
|
|
1855
|
-
function
|
|
1870
|
+
function Zr() {
|
|
1856
1871
|
return {
|
|
1857
|
-
create:
|
|
1872
|
+
create: xr,
|
|
1858
1873
|
createTmp: mt,
|
|
1859
1874
|
template: mt,
|
|
1860
|
-
factory:
|
|
1875
|
+
factory: T
|
|
1861
1876
|
};
|
|
1862
1877
|
}
|
|
1863
|
-
function
|
|
1878
|
+
function Qr(t, e, r) {
|
|
1864
1879
|
const i = `fail to ${t} ${r.status}'`, s = new Error(i);
|
|
1865
1880
|
return s.status = r.status, s.url = t, s;
|
|
1866
1881
|
}
|
|
@@ -1874,7 +1889,7 @@ function gt(t) {
|
|
|
1874
1889
|
return e;
|
|
1875
1890
|
}
|
|
1876
1891
|
}
|
|
1877
|
-
function
|
|
1892
|
+
function qt(t) {
|
|
1878
1893
|
if (typeof XMLHttpRequest == "undefined")
|
|
1879
1894
|
return;
|
|
1880
1895
|
const e = new XMLHttpRequest();
|
|
@@ -1889,7 +1904,7 @@ function Nt(t) {
|
|
|
1889
1904
|
t.onError(o);
|
|
1890
1905
|
}, e.onload = function() {
|
|
1891
1906
|
if (e.status < 200 || e.status >= 300)
|
|
1892
|
-
return t.onError(
|
|
1907
|
+
return t.onError(Qr(r, t, e), gt(e));
|
|
1893
1908
|
t.onSuccess(gt(e));
|
|
1894
1909
|
}, e.open(t.method || "get", r, !0);
|
|
1895
1910
|
let i;
|
|
@@ -1903,10 +1918,10 @@ function Nt(t) {
|
|
|
1903
1918
|
}
|
|
1904
1919
|
function yt(t, e, r) {
|
|
1905
1920
|
return new Promise((i, s) => {
|
|
1906
|
-
(e ||
|
|
1921
|
+
(e || qt)(q(v({}, t), {
|
|
1907
1922
|
onSuccess(n) {
|
|
1908
1923
|
let o = (l) => l;
|
|
1909
|
-
const a =
|
|
1924
|
+
const a = X(t.parse);
|
|
1910
1925
|
h.Function(a) ? o = a : a && h.String(a) && (o = (l) => B(l, a)), i(o(n, void 0, r));
|
|
1911
1926
|
},
|
|
1912
1927
|
onError(n) {
|
|
@@ -1915,10 +1930,10 @@ function yt(t, e, r) {
|
|
|
1915
1930
|
}));
|
|
1916
1931
|
});
|
|
1917
1932
|
}
|
|
1918
|
-
function
|
|
1933
|
+
function _e(t) {
|
|
1919
1934
|
return K(t);
|
|
1920
1935
|
}
|
|
1921
|
-
function
|
|
1936
|
+
function Yr(t) {
|
|
1922
1937
|
function e(n) {
|
|
1923
1938
|
return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
|
|
1924
1939
|
}
|
|
@@ -1926,7 +1941,7 @@ function Zr(t) {
|
|
|
1926
1941
|
h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
|
|
1927
1942
|
const u = t.fieldCtx[l] || t.nameCtx[l];
|
|
1928
1943
|
u && u.forEach((f) => {
|
|
1929
|
-
|
|
1944
|
+
k(f.rule, o, a), t.$render.clearCache(f);
|
|
1930
1945
|
});
|
|
1931
1946
|
});
|
|
1932
1947
|
}
|
|
@@ -2002,14 +2017,14 @@ function Zr(t) {
|
|
|
2002
2017
|
if (n == null || typeof n == "boolean") {
|
|
2003
2018
|
const o = {};
|
|
2004
2019
|
return Object.keys(t.form).forEach((a) => {
|
|
2005
|
-
(n === !0 || t.ignoreFields.indexOf(a) === -1) && (o[a] =
|
|
2020
|
+
(n === !0 || t.ignoreFields.indexOf(a) === -1) && (o[a] = _e(t.form[a]));
|
|
2006
2021
|
}), o;
|
|
2007
2022
|
} else
|
|
2008
2023
|
return e(n).reduce((o, a) => (o[a] = s.getValue(a), o), {});
|
|
2009
2024
|
},
|
|
2010
2025
|
getValue(n) {
|
|
2011
2026
|
const o = t.getFieldCtx(n);
|
|
2012
|
-
return o ?
|
|
2027
|
+
return o ? _e(o.rule.value) : t.options.appendValue !== !1 && D(t.appendData, n) ? _e(t.appendData[n]) : void 0;
|
|
2013
2028
|
},
|
|
2014
2029
|
coverValue(n) {
|
|
2015
2030
|
const o = v({}, n || {});
|
|
@@ -2019,7 +2034,7 @@ function Zr(t) {
|
|
|
2019
2034
|
if (l) {
|
|
2020
2035
|
const u = D(n, a);
|
|
2021
2036
|
l.forEach((f) => {
|
|
2022
|
-
f.rule
|
|
2037
|
+
k(f.rule, "value", u ? n[a] : void 0);
|
|
2023
2038
|
}), delete o[a];
|
|
2024
2039
|
}
|
|
2025
2040
|
}), _(t.appendData, o);
|
|
@@ -2032,7 +2047,7 @@ function Zr(t) {
|
|
|
2032
2047
|
const l = t.fieldCtx[a];
|
|
2033
2048
|
if (!l) return t.appendData[a] = o[a];
|
|
2034
2049
|
l.forEach((u) => {
|
|
2035
|
-
u.rule
|
|
2050
|
+
k(u.rule, "value", o[a]);
|
|
2036
2051
|
});
|
|
2037
2052
|
});
|
|
2038
2053
|
}, !0);
|
|
@@ -2096,7 +2111,7 @@ function Zr(t) {
|
|
|
2096
2111
|
disabled(n, o) {
|
|
2097
2112
|
e(o).forEach((a) => {
|
|
2098
2113
|
t.getCtxs(a).forEach((l) => {
|
|
2099
|
-
|
|
2114
|
+
k(l.rule.props, "disabled", !!n);
|
|
2100
2115
|
});
|
|
2101
2116
|
}), t.refresh();
|
|
2102
2117
|
},
|
|
@@ -2154,7 +2169,7 @@ function Zr(t) {
|
|
|
2154
2169
|
t.$manager.updateOptions(t.options), s.refresh();
|
|
2155
2170
|
},
|
|
2156
2171
|
hideForm: (n) => {
|
|
2157
|
-
|
|
2172
|
+
k(t.vm, "isShow", !n);
|
|
2158
2173
|
},
|
|
2159
2174
|
changeStatus: () => t.changeStatus,
|
|
2160
2175
|
clearChangeStatus: () => {
|
|
@@ -2199,7 +2214,7 @@ function Zr(t) {
|
|
|
2199
2214
|
},
|
|
2200
2215
|
setEffect(n, o, a) {
|
|
2201
2216
|
const l = t.getCtx(n);
|
|
2202
|
-
l && o && (o[0] === "$" && (o = o.substr(1)), D(l.rule, "$" + o) &&
|
|
2217
|
+
l && o && (o[0] === "$" && (o = o.substr(1)), D(l.rule, "$" + o) && k(l.rule, "$" + o, a), D(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
|
|
2203
2218
|
},
|
|
2204
2219
|
clearEffectData(n, o) {
|
|
2205
2220
|
const a = t.getCtx(n);
|
|
@@ -2219,15 +2234,15 @@ function Zr(t) {
|
|
|
2219
2234
|
resetFields(n) {
|
|
2220
2235
|
e(n).forEach((o) => {
|
|
2221
2236
|
t.getCtxs(o).forEach((a) => {
|
|
2222
|
-
t.$render.clearCache(a), a.rule.value =
|
|
2237
|
+
t.$render.clearCache(a), a.rule.value = _e(a.defaultValue);
|
|
2223
2238
|
});
|
|
2224
|
-
}),
|
|
2225
|
-
|
|
2226
|
-
|
|
2239
|
+
}), P(() => {
|
|
2240
|
+
P(() => {
|
|
2241
|
+
P(() => {
|
|
2227
2242
|
s.clearValidateState(n);
|
|
2228
2243
|
});
|
|
2229
2244
|
});
|
|
2230
|
-
}), n == null && (h.Function(t.options.onReset) &&
|
|
2245
|
+
}), n == null && (h.Function(t.options.onReset) && O(() => t.options.onReset(s)), t.vm.$emit("reset", s));
|
|
2231
2246
|
},
|
|
2232
2247
|
method(n, o) {
|
|
2233
2248
|
const a = s.el(n);
|
|
@@ -2236,10 +2251,10 @@ function Zr(t) {
|
|
|
2236
2251
|
return (...l) => a[o](...l);
|
|
2237
2252
|
},
|
|
2238
2253
|
exec(n, o, ...a) {
|
|
2239
|
-
return
|
|
2254
|
+
return O(() => s.method(n, o)(...a));
|
|
2240
2255
|
},
|
|
2241
2256
|
toJson(n) {
|
|
2242
|
-
return
|
|
2257
|
+
return Ce(s.rule, n);
|
|
2243
2258
|
},
|
|
2244
2259
|
trigger(n, o, ...a) {
|
|
2245
2260
|
const l = s.el(n);
|
|
@@ -2262,9 +2277,9 @@ function Zr(t) {
|
|
|
2262
2277
|
if (!l)
|
|
2263
2278
|
return [];
|
|
2264
2279
|
const u = [];
|
|
2265
|
-
return ((
|
|
2266
|
-
|
|
2267
|
-
typeof
|
|
2280
|
+
return ((p) => {
|
|
2281
|
+
p && p.forEach((d) => {
|
|
2282
|
+
typeof d == "object" && (d.field && u.push(d), u.push(...s.getChildrenRuleList(d)));
|
|
2268
2283
|
});
|
|
2269
2284
|
})(a ? a.loadChildrenPending() : l.children), u;
|
|
2270
2285
|
},
|
|
@@ -2280,27 +2295,27 @@ function Zr(t) {
|
|
|
2280
2295
|
}
|
|
2281
2296
|
},
|
|
2282
2297
|
getChildrenFormData(n, o) {
|
|
2283
|
-
return s.getChildrenRuleList(n).reduce((l, u) => ((u.ignore !== !0 || o === !0) && (l[u.field] =
|
|
2298
|
+
return s.getChildrenRuleList(n).reduce((l, u) => ((u.ignore !== !0 || o === !0) && (l[u.field] = _e(u.value)), l), {});
|
|
2284
2299
|
},
|
|
2285
2300
|
setChildrenFormData(n, o, a) {
|
|
2286
2301
|
const l = s.getChildrenRuleList(n);
|
|
2287
2302
|
t.deferSyncValue(() => {
|
|
2288
2303
|
l.forEach((u) => {
|
|
2289
|
-
D(o, u.field) ? u
|
|
2304
|
+
D(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
|
|
2290
2305
|
});
|
|
2291
2306
|
});
|
|
2292
2307
|
},
|
|
2293
2308
|
getGlobalEvent(n) {
|
|
2294
2309
|
let o = s.options.globalEvent[n];
|
|
2295
2310
|
if (o)
|
|
2296
|
-
return typeof o == "object" && (o = o.handle),
|
|
2311
|
+
return typeof o == "object" && (o = o.handle), X(o);
|
|
2297
2312
|
},
|
|
2298
2313
|
getGlobalData(n) {
|
|
2299
2314
|
return new Promise((o, a) => {
|
|
2300
2315
|
let l = s.options.globalData[n];
|
|
2301
|
-
l
|
|
2316
|
+
l ? l.type === "fetch" ? s.fetch(l).then((u) => {
|
|
2302
2317
|
o(u);
|
|
2303
|
-
}).catch(a) : o(l.data);
|
|
2318
|
+
}).catch(a) : o(l.data) : o(t.fc.loadData[n]);
|
|
2304
2319
|
});
|
|
2305
2320
|
},
|
|
2306
2321
|
renderRule(n, o, a) {
|
|
@@ -2315,7 +2330,7 @@ function Zr(t) {
|
|
|
2315
2330
|
t.bus.$once("next-tick", n), t.refresh();
|
|
2316
2331
|
},
|
|
2317
2332
|
nextRefresh(n) {
|
|
2318
|
-
t.nextRefresh(), n &&
|
|
2333
|
+
t.nextRefresh(), n && O(n);
|
|
2319
2334
|
},
|
|
2320
2335
|
emit(n, ...o) {
|
|
2321
2336
|
t.vm.$emit(n, ...o);
|
|
@@ -2327,21 +2342,21 @@ function Zr(t) {
|
|
|
2327
2342
|
fetch(n) {
|
|
2328
2343
|
return new Promise((o, a) => {
|
|
2329
2344
|
n = K(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((l) => {
|
|
2330
|
-
|
|
2345
|
+
O(() => n.onSuccess && n.onSuccess(l)), o(l);
|
|
2331
2346
|
}).catch((l) => {
|
|
2332
|
-
|
|
2347
|
+
O(() => n.onError && n.onError(l)), a(l);
|
|
2333
2348
|
})).catch((l) => {
|
|
2334
2349
|
});
|
|
2335
2350
|
});
|
|
2336
2351
|
},
|
|
2337
2352
|
watchFetch(n, o, a, l) {
|
|
2338
2353
|
return t.fc.watchLoadData((u, f) => {
|
|
2339
|
-
let
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
}).catch((
|
|
2343
|
-
|
|
2344
|
-
})).catch((
|
|
2354
|
+
let p = K(n);
|
|
2355
|
+
p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((d) => {
|
|
2356
|
+
O(() => p.onSuccess && p.onSuccess(d)), o && o(d, f);
|
|
2357
|
+
}).catch((d) => {
|
|
2358
|
+
O(() => p.onError && p.onError(d)), a && a(d);
|
|
2359
|
+
})).catch((d) => {
|
|
2345
2360
|
});
|
|
2346
2361
|
}, n.wait == null ? 1e3 : n.wait);
|
|
2347
2362
|
},
|
|
@@ -2371,7 +2386,7 @@ function Zr(t) {
|
|
|
2371
2386
|
};
|
|
2372
2387
|
}), s.changeValue = s.changeField = s.setValue, s;
|
|
2373
2388
|
}
|
|
2374
|
-
function
|
|
2389
|
+
function ei(t) {
|
|
2375
2390
|
_(t.prototype, {
|
|
2376
2391
|
initCache() {
|
|
2377
2392
|
this.clearCacheAll();
|
|
@@ -2407,12 +2422,12 @@ function J(t) {
|
|
|
2407
2422
|
const e = t.replace(/(-[a-z])/g, function(r) {
|
|
2408
2423
|
return r.replace("-", "").toLocaleUpperCase();
|
|
2409
2424
|
});
|
|
2410
|
-
return
|
|
2425
|
+
return Ut(e);
|
|
2411
2426
|
}
|
|
2412
|
-
function
|
|
2427
|
+
function Ut(t) {
|
|
2413
2428
|
return t.replace(t[0], t[0].toLowerCase());
|
|
2414
2429
|
}
|
|
2415
|
-
function
|
|
2430
|
+
function ti(t) {
|
|
2416
2431
|
_(t.prototype, {
|
|
2417
2432
|
initRender() {
|
|
2418
2433
|
this.cacheConfig = {};
|
|
@@ -2421,7 +2436,7 @@ function Yr(t) {
|
|
|
2421
2436
|
const r = (i) => {
|
|
2422
2437
|
if (i) {
|
|
2423
2438
|
let s;
|
|
2424
|
-
return e.rule.field && (s = i.$scopedSlots["field-" +
|
|
2439
|
+
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);
|
|
2425
2440
|
}
|
|
2426
2441
|
};
|
|
2427
2442
|
return r(this.vm);
|
|
@@ -2430,7 +2445,7 @@ function Yr(t) {
|
|
|
2430
2445
|
if (!this.vm.isShow)
|
|
2431
2446
|
return;
|
|
2432
2447
|
this.$manager.beforeRender();
|
|
2433
|
-
const e =
|
|
2448
|
+
const e = Ee();
|
|
2434
2449
|
return this.sort.forEach((r) => {
|
|
2435
2450
|
this.renderSlot(e, this.$handle.ctxs[r]);
|
|
2436
2451
|
}), this.$manager.render(e);
|
|
@@ -2441,7 +2456,7 @@ function Yr(t) {
|
|
|
2441
2456
|
})) : e.setSlot(r.rule.slot, this.renderCtx(r, i));
|
|
2442
2457
|
},
|
|
2443
2458
|
mergeGlobal(e) {
|
|
2444
|
-
this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] =
|
|
2459
|
+
this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = $e(() => {
|
|
2445
2460
|
const i = this.$handle.options.global;
|
|
2446
2461
|
return te({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
|
|
2447
2462
|
})), e.prop = te({}, [this.cacheConfig[e.trueType].value, e.prop]));
|
|
@@ -2491,23 +2506,23 @@ function Yr(t) {
|
|
|
2491
2506
|
model: n.model || {},
|
|
2492
2507
|
slotValue: l
|
|
2493
2508
|
};
|
|
2494
|
-
l.length && i.slotUpdate &&
|
|
2509
|
+
l.length && i.slotUpdate && O(() => i.slotUpdate(u));
|
|
2495
2510
|
let f = [];
|
|
2496
|
-
const
|
|
2497
|
-
e.parser.renderChildren ? f = e.parser.renderChildren(
|
|
2511
|
+
const p = e.loadChildrenPending();
|
|
2512
|
+
e.parser.renderChildren ? f = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(p, e)), Object.keys(n.renderSlots || {}).forEach((y) => {
|
|
2498
2513
|
f.push(this.renderRule({
|
|
2499
2514
|
type: "template",
|
|
2500
2515
|
slot: y
|
|
2501
2516
|
}, (() => {
|
|
2502
2517
|
if (h.Function(n.renderSlots[y]))
|
|
2503
|
-
return
|
|
2518
|
+
return O(() => n.renderSlots[y]());
|
|
2504
2519
|
const w = this.parseSide(n.renderSlots[y], e);
|
|
2505
2520
|
return this.renderRule(w);
|
|
2506
2521
|
})()));
|
|
2507
2522
|
});
|
|
2508
|
-
const
|
|
2509
|
-
let
|
|
2510
|
-
return
|
|
2523
|
+
const d = this.getTypeSlot(e);
|
|
2524
|
+
let g;
|
|
2525
|
+
return d ? (u.children = f, g = d(u)) : g = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(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((y) => !y || !y.tag ? y : this.none(y)) : g = this.none(g)), o && this.setCache(e, () => this.stable(g), r), g;
|
|
2511
2526
|
}, this.setCache(e, s, r);
|
|
2512
2527
|
}
|
|
2513
2528
|
return (...s) => {
|
|
@@ -2588,7 +2603,7 @@ function Yr(t) {
|
|
|
2588
2603
|
if (l.indexOf("native.") === 0)
|
|
2589
2604
|
o[l.replace("native.", "")] = n[l], delete n[l];
|
|
2590
2605
|
else if (this.$handle.options.transformEventName !== !1) {
|
|
2591
|
-
const u =
|
|
2606
|
+
const u = ve(l);
|
|
2592
2607
|
u !== l.toLowerCase() && !n[u] && (n[u] = n[l]);
|
|
2593
2608
|
}
|
|
2594
2609
|
}), e.prop.on = n;
|
|
@@ -2644,7 +2659,7 @@ function Yr(t) {
|
|
|
2644
2659
|
},
|
|
2645
2660
|
renderChildren(e, r, i) {
|
|
2646
2661
|
if (!h.trueArray(e)) return [];
|
|
2647
|
-
const s =
|
|
2662
|
+
const s = Ee();
|
|
2648
2663
|
return e.map((n) => {
|
|
2649
2664
|
if (n) {
|
|
2650
2665
|
if (h.String(n)) return s.setSlot(null, i ? this.renderRule({
|
|
@@ -2653,7 +2668,7 @@ function Yr(t) {
|
|
|
2653
2668
|
}) : n);
|
|
2654
2669
|
if (n.__fc__)
|
|
2655
2670
|
return this.renderSlot(s, n.__fc__, r);
|
|
2656
|
-
n.type &&
|
|
2671
|
+
n.type && P(() => {
|
|
2657
2672
|
this.$handle.loadChildren(e, r), this.$handle.refresh();
|
|
2658
2673
|
});
|
|
2659
2674
|
}
|
|
@@ -2661,7 +2676,7 @@ function Yr(t) {
|
|
|
2661
2676
|
},
|
|
2662
2677
|
defaultRender(e, r) {
|
|
2663
2678
|
const i = e.prop;
|
|
2664
|
-
return i.component ? typeof i.component == "string" ? this.vNode.make(i.component, i, r) : this.vNode.makeComponent(i.component, i, r) : this.vNode[e.type] ? this.vNode[e.type](i, r) : this.vNode[e.originType] ? this.vNode[e.originType](i, r) : this.vNode.make(
|
|
2679
|
+
return i.component ? typeof i.component == "string" ? this.vNode.make(i.component, i, r) : this.vNode.makeComponent(i.component, i, r) : this.vNode[e.type] ? this.vNode[e.type](i, r) : this.vNode[e.originType] ? this.vNode[e.originType](i, r) : this.vNode.make(Ut(i.type), i, r);
|
|
2665
2680
|
},
|
|
2666
2681
|
createChildrenVnodes(e, r, i) {
|
|
2667
2682
|
this.force = i !== !1, this.tmpInput = r;
|
|
@@ -2670,7 +2685,7 @@ function Yr(t) {
|
|
|
2670
2685
|
},
|
|
2671
2686
|
createRuleVnode(e, r, i) {
|
|
2672
2687
|
this.force = i !== !1, this.tmpInput = r;
|
|
2673
|
-
const s =
|
|
2688
|
+
const s = Ee();
|
|
2674
2689
|
return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
|
|
2675
2690
|
},
|
|
2676
2691
|
renderRule(e, r, i) {
|
|
@@ -2685,7 +2700,7 @@ function Yr(t) {
|
|
|
2685
2700
|
a && (s = J(a));
|
|
2686
2701
|
}
|
|
2687
2702
|
if (!s) return;
|
|
2688
|
-
const n =
|
|
2703
|
+
const n = Ee();
|
|
2689
2704
|
h.trueArray(e.children) && e.children.forEach((a) => {
|
|
2690
2705
|
a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
|
|
2691
2706
|
});
|
|
@@ -2694,7 +2709,7 @@ function Yr(t) {
|
|
|
2694
2709
|
}
|
|
2695
2710
|
});
|
|
2696
2711
|
}
|
|
2697
|
-
let
|
|
2712
|
+
let ri = 1;
|
|
2698
2713
|
function it(t) {
|
|
2699
2714
|
_(this, {
|
|
2700
2715
|
$handle: t,
|
|
@@ -2704,7 +2719,7 @@ function it(t) {
|
|
|
2704
2719
|
vNode: new t.fc.CreateNode(t.vm),
|
|
2705
2720
|
force: !1,
|
|
2706
2721
|
tmpInput: null,
|
|
2707
|
-
id:
|
|
2722
|
+
id: ri++
|
|
2708
2723
|
}), Tt(this, {
|
|
2709
2724
|
options() {
|
|
2710
2725
|
return t.options;
|
|
@@ -2714,9 +2729,9 @@ function it(t) {
|
|
|
2714
2729
|
}
|
|
2715
2730
|
}), this.initCache(), this.initRender();
|
|
2716
2731
|
}
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
function
|
|
2732
|
+
ei(it);
|
|
2733
|
+
ti(it);
|
|
2734
|
+
function ii(t) {
|
|
2720
2735
|
_(t.prototype, {
|
|
2721
2736
|
parseInjectEvent(e, r) {
|
|
2722
2737
|
const i = e.inject || this.options.injectEvent;
|
|
@@ -2734,7 +2749,7 @@ function ti(t) {
|
|
|
2734
2749
|
if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
|
|
2735
2750
|
return this.parseEventLst(e, r, i, !0);
|
|
2736
2751
|
if (h.String(r)) {
|
|
2737
|
-
const n =
|
|
2752
|
+
const n = X(r);
|
|
2738
2753
|
if (n && r !== n)
|
|
2739
2754
|
return n.__inject ? this.parseEvent(e, n, i, !0) : n;
|
|
2740
2755
|
}
|
|
@@ -2743,16 +2758,16 @@ function ti(t) {
|
|
|
2743
2758
|
let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: l } = s, u = s[r ? "emit" : "nativeEmit"] || [];
|
|
2744
2759
|
return h.trueArray(u) && u.forEach((f) => {
|
|
2745
2760
|
if (!f) return;
|
|
2746
|
-
let
|
|
2747
|
-
if (h.Object(f) && (
|
|
2748
|
-
r || (
|
|
2749
|
-
const
|
|
2750
|
-
this.vm.$emit(
|
|
2761
|
+
let p, d = n || o || a;
|
|
2762
|
+
if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
|
|
2763
|
+
r || (d = `native-${d}`);
|
|
2764
|
+
const g = ve(`${d}-${f}`), y = (...w) => {
|
|
2765
|
+
this.vm.$emit(g, ...w), this.vm.$emit("emit-event", g, ...w), this.bus.$emit(g, ...w);
|
|
2751
2766
|
};
|
|
2752
|
-
if (y.__emit = !0, !
|
|
2767
|
+
if (y.__emit = !0, !p && l === !1)
|
|
2753
2768
|
i[f] = y;
|
|
2754
2769
|
else {
|
|
2755
|
-
let w =
|
|
2770
|
+
let w = p || l || this.options.injectEvent;
|
|
2756
2771
|
i[f] = h.Undef(w) ? y : this.inject(s, y, w);
|
|
2757
2772
|
}
|
|
2758
2773
|
}
|
|
@@ -2783,24 +2798,36 @@ function ti(t) {
|
|
|
2783
2798
|
},
|
|
2784
2799
|
loadStrVar(e, r, i) {
|
|
2785
2800
|
if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
|
|
2786
|
-
const s = e, n =
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
+
const s = e, n = zr(e), o = (u) => {
|
|
2802
|
+
let f = !1, p;
|
|
2803
|
+
if (i && u.indexOf("$form.") === 0) {
|
|
2804
|
+
const d = u.split(".");
|
|
2805
|
+
d.shift(), D(i.value, d[0]) && (f = !0, p = r ? r({
|
|
2806
|
+
id: "$form." + d[0] + "_" + i.rule.__fc__.id,
|
|
2807
|
+
getValue: () => B(i.value, d)
|
|
2808
|
+
}) : B(i.value, d));
|
|
2809
|
+
}
|
|
2810
|
+
return f || (p = r ? r(u) : this.fc.getLoadData(u)), p;
|
|
2811
|
+
}, a = (u) => {
|
|
2812
|
+
const f = [];
|
|
2813
|
+
u.forEach((d) => {
|
|
2814
|
+
d.key ? f.push(d.key) : d.children && f.push(a(d.children));
|
|
2815
|
+
});
|
|
2816
|
+
let p = !1;
|
|
2817
|
+
return f.forEach((d, g) => {
|
|
2818
|
+
d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[g] = d.slice(1, -1), p = !0);
|
|
2819
|
+
}), f.length === 1 && (p || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
|
|
2820
|
+
};
|
|
2821
|
+
let l;
|
|
2822
|
+
if (n.forEach((u) => {
|
|
2823
|
+
const f = u.split("||"), p = f[0].trim();
|
|
2824
|
+
if (p) {
|
|
2825
|
+
const d = (f[1] || "").trim(), g = Bt(p);
|
|
2826
|
+
let y = O(() => a(g));
|
|
2827
|
+
(y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
|
|
2801
2828
|
}
|
|
2802
2829
|
}), n.length === 1 && s === `{{${n[0]}}}`)
|
|
2803
|
-
return
|
|
2830
|
+
return l;
|
|
2804
2831
|
}
|
|
2805
2832
|
return e;
|
|
2806
2833
|
},
|
|
@@ -2820,12 +2847,12 @@ function ti(t) {
|
|
|
2820
2847
|
});
|
|
2821
2848
|
}
|
|
2822
2849
|
const $t = ["hook:updated", "hook:mounted"];
|
|
2823
|
-
function
|
|
2850
|
+
function ni(t) {
|
|
2824
2851
|
_(t.prototype, {
|
|
2825
2852
|
usePage() {
|
|
2826
2853
|
const e = this.options.page;
|
|
2827
2854
|
if (!e) return;
|
|
2828
|
-
let r = 25, i =
|
|
2855
|
+
let r = 25, i = si(this.rules);
|
|
2829
2856
|
h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), _(this, {
|
|
2830
2857
|
first: r,
|
|
2831
2858
|
limit: i,
|
|
@@ -2840,10 +2867,10 @@ function ri(t) {
|
|
|
2840
2867
|
}
|
|
2841
2868
|
});
|
|
2842
2869
|
}
|
|
2843
|
-
function
|
|
2870
|
+
function si(t) {
|
|
2844
2871
|
return t.length < 31 ? 31 : Math.ceil(t.length / 3);
|
|
2845
2872
|
}
|
|
2846
|
-
function
|
|
2873
|
+
function oi(t) {
|
|
2847
2874
|
_(t.prototype, {
|
|
2848
2875
|
clearNextTick() {
|
|
2849
2876
|
this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
|
|
@@ -2858,15 +2885,15 @@ function ni(t) {
|
|
|
2858
2885
|
}
|
|
2859
2886
|
});
|
|
2860
2887
|
}
|
|
2861
|
-
function
|
|
2888
|
+
function ai(t) {
|
|
2862
2889
|
Object.defineProperties(t.origin, {
|
|
2863
|
-
__fc__:
|
|
2890
|
+
__fc__: Xe(ye(t), !0)
|
|
2864
2891
|
}), t.rule !== t.origin && Object.defineProperties(t.rule, {
|
|
2865
|
-
__fc__:
|
|
2892
|
+
__fc__: Xe(ye(t), !0)
|
|
2866
2893
|
});
|
|
2867
2894
|
}
|
|
2868
|
-
function
|
|
2869
|
-
const i =
|
|
2895
|
+
function Ht(t, e, r) {
|
|
2896
|
+
const i = Ie(), s = !!e.field;
|
|
2870
2897
|
_(this, {
|
|
2871
2898
|
id: i,
|
|
2872
2899
|
ref: i,
|
|
@@ -2893,9 +2920,9 @@ function Ut(t, e, r) {
|
|
|
2893
2920
|
exportEl: void 0,
|
|
2894
2921
|
defaultValue: s ? K(r) : void 0,
|
|
2895
2922
|
field: e.field || void 0
|
|
2896
|
-
}), this.updateKey(),
|
|
2923
|
+
}), this.updateKey(), ai(this), this.update(t, !0);
|
|
2897
2924
|
}
|
|
2898
|
-
_(
|
|
2925
|
+
_(Ht.prototype, {
|
|
2899
2926
|
getParentGroup() {
|
|
2900
2927
|
let t = this.parent;
|
|
2901
2928
|
for (; t; ) {
|
|
@@ -2928,12 +2955,12 @@ _(Ut.prototype, {
|
|
|
2928
2955
|
delete this.pending[e];
|
|
2929
2956
|
let a = r;
|
|
2930
2957
|
if (h.Function(r)) {
|
|
2931
|
-
let l =
|
|
2958
|
+
let l = O(() => r({
|
|
2932
2959
|
rule: this.rule,
|
|
2933
2960
|
api: this.$api,
|
|
2934
2961
|
update: (u) => {
|
|
2935
|
-
const f = u || i,
|
|
2936
|
-
this.setPending(e, r, f), o && o(f,
|
|
2962
|
+
const f = u || i, p = this.getPending(e, i);
|
|
2963
|
+
this.setPending(e, r, f), o && o(f, p);
|
|
2937
2964
|
},
|
|
2938
2965
|
reload: () => {
|
|
2939
2966
|
const u = this.getPending(e, i);
|
|
@@ -2965,7 +2992,7 @@ _(Ut.prototype, {
|
|
|
2965
2992
|
t === void 0 ? this.payload = {} : delete this.payload[t];
|
|
2966
2993
|
},
|
|
2967
2994
|
updateKey(t) {
|
|
2968
|
-
this.key =
|
|
2995
|
+
this.key = Ie(), t && this.parent && this.parent.updateKey(t);
|
|
2969
2996
|
},
|
|
2970
2997
|
updateType() {
|
|
2971
2998
|
this.originType = this.rule.type, this.type = J(this.rule.type), this.trueType = this.$handle.getType(this.originType);
|
|
@@ -2981,6 +3008,9 @@ _(Ut.prototype, {
|
|
|
2981
3008
|
initNone() {
|
|
2982
3009
|
this.none = !(h.Undef(this.prop.display) || this.prop.display);
|
|
2983
3010
|
},
|
|
3011
|
+
hasHidden() {
|
|
3012
|
+
return !!this.rule.hidden || (this.parent ? this.parent.hasHidden() : !1);
|
|
3013
|
+
},
|
|
2984
3014
|
injectValidate() {
|
|
2985
3015
|
return this.prop.validate;
|
|
2986
3016
|
},
|
|
@@ -3042,21 +3072,21 @@ _(Ut.prototype, {
|
|
|
3042
3072
|
}), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
|
|
3043
3073
|
}
|
|
3044
3074
|
});
|
|
3045
|
-
function
|
|
3075
|
+
function li(t) {
|
|
3046
3076
|
_(t.prototype, {
|
|
3047
3077
|
nextRefresh(e) {
|
|
3048
3078
|
const r = this.loadedId;
|
|
3049
|
-
|
|
3079
|
+
P(() => {
|
|
3050
3080
|
r === this.loadedId && (e ? e() : this.refresh());
|
|
3051
3081
|
});
|
|
3052
3082
|
},
|
|
3053
3083
|
parseRule(e) {
|
|
3054
3084
|
const r = ht(e);
|
|
3055
3085
|
return Object.defineProperties(r, {
|
|
3056
|
-
__origin__:
|
|
3057
|
-
}),
|
|
3086
|
+
__origin__: Xe(e, !0)
|
|
3087
|
+
}), ui(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
|
|
3058
3088
|
i && this.loadFn(i, r);
|
|
3059
|
-
}), this.loadCtrl(r), r.update && (r.update =
|
|
3089
|
+
}), this.loadCtrl(r), r.update && (r.update = X(r.update)), r;
|
|
3060
3090
|
},
|
|
3061
3091
|
loadFn(e, r) {
|
|
3062
3092
|
["on", "props", "nativeOn", "deep"].forEach((i) => {
|
|
@@ -3065,7 +3095,7 @@ function oi(t) {
|
|
|
3065
3095
|
},
|
|
3066
3096
|
loadCtrl(e) {
|
|
3067
3097
|
e.control && e.control.forEach((r) => {
|
|
3068
|
-
r.handle && (r.handle =
|
|
3098
|
+
r.handle && (r.handle = X(r.handle));
|
|
3069
3099
|
});
|
|
3070
3100
|
},
|
|
3071
3101
|
syncProp(e) {
|
|
@@ -3104,29 +3134,29 @@ function oi(t) {
|
|
|
3104
3134
|
let l = ht(o);
|
|
3105
3135
|
const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
|
|
3106
3136
|
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);
|
|
3107
|
-
let f,
|
|
3108
|
-
if (
|
|
3109
|
-
if (f = o.__fc__,
|
|
3137
|
+
let f, p = !1, d = !!o.__fc__, g = l.value;
|
|
3138
|
+
if (d) {
|
|
3139
|
+
if (f = o.__fc__, g = f.defaultValue, f.deleted) {
|
|
3110
3140
|
if (bt(f))
|
|
3111
3141
|
return;
|
|
3112
3142
|
f.update(this);
|
|
3113
3143
|
} else if (!f.check(this)) {
|
|
3114
3144
|
if (bt(f))
|
|
3115
3145
|
return;
|
|
3116
|
-
e[a] = o = o._clone ? o._clone() : Vt(
|
|
3146
|
+
e[a] = o = o._clone ? o._clone() : Vt(Ce(o)), f = null, p = !0;
|
|
3117
3147
|
}
|
|
3118
3148
|
}
|
|
3119
3149
|
if (f)
|
|
3120
3150
|
f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
|
|
3121
3151
|
else {
|
|
3122
|
-
const
|
|
3123
|
-
f = new
|
|
3152
|
+
const F = this.parseRule(o);
|
|
3153
|
+
f = new Ht(this, F, g), this.bindParser(f);
|
|
3124
3154
|
}
|
|
3125
|
-
[!1, !0].forEach((
|
|
3155
|
+
[!1, !0].forEach((F) => this.parseEmit(f, F)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !p && !d && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
|
|
3126
3156
|
const y = f.loadChildrenPending();
|
|
3127
3157
|
if (f.parser.loadChildren === !1 || s(y, f), !r) {
|
|
3128
|
-
const
|
|
3129
|
-
|
|
3158
|
+
const F = i(a);
|
|
3159
|
+
F > -1 || !a ? this.sort.splice(F + 1, 0, f.id) : this.sort.push(f.id);
|
|
3130
3160
|
}
|
|
3131
3161
|
const w = f.rule;
|
|
3132
3162
|
return f.updated || (f.updated = !0, h.Function(w.update) && this.bus.$once("load-end", () => {
|
|
@@ -3139,16 +3169,16 @@ function oi(t) {
|
|
|
3139
3169
|
return e.input && e.rule.control && this.useCtrl(e);
|
|
3140
3170
|
},
|
|
3141
3171
|
useCtrl(e) {
|
|
3142
|
-
const r =
|
|
3172
|
+
const r = fi(e), i = [], s = this.api;
|
|
3143
3173
|
if (!r.length) return !1;
|
|
3144
3174
|
for (let a = 0; a < r.length; a++) {
|
|
3145
|
-
const l = r[a], u = l.handle || function(
|
|
3146
|
-
return (
|
|
3175
|
+
const l = r[a], u = l.handle || function(p) {
|
|
3176
|
+
return (ce[l.condition || "=="] || ce["=="])(p, l.value);
|
|
3147
3177
|
};
|
|
3148
3178
|
if (!h.trueArray(l.rule)) continue;
|
|
3149
3179
|
const f = q(v({}, l), {
|
|
3150
|
-
valid:
|
|
3151
|
-
ctrl:
|
|
3180
|
+
valid: O(() => u(e.rule.value, s)),
|
|
3181
|
+
ctrl: ci(e, l.rule),
|
|
3152
3182
|
isHidden: h.String(l.rule[0])
|
|
3153
3183
|
});
|
|
3154
3184
|
f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || i.push(f);
|
|
@@ -3157,13 +3187,13 @@ function oi(t) {
|
|
|
3157
3187
|
const n = [];
|
|
3158
3188
|
let o = !1;
|
|
3159
3189
|
return this.deferSyncValue(() => {
|
|
3160
|
-
i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append:
|
|
3190
|
+
i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: g, method: y }) => {
|
|
3161
3191
|
if (a) {
|
|
3162
3192
|
l ? e.ctrlRule.push({
|
|
3163
3193
|
__ctrl: !0,
|
|
3164
3194
|
children: u,
|
|
3165
3195
|
valid: l
|
|
3166
|
-
}) :
|
|
3196
|
+
}) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
|
|
3167
3197
|
y === "disabled" || y === "enabled" ? this.api.disabled(!l, u) : y === "display" || y === "show" ? this.api.display(l, u) : y === "required" ? (u.forEach((w) => {
|
|
3168
3198
|
this.api.setEffect(w, "required", l);
|
|
3169
3199
|
}), l || this.api.clearValidateState(u)) : y === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
|
|
@@ -3179,17 +3209,17 @@ function oi(t) {
|
|
|
3179
3209
|
children: u
|
|
3180
3210
|
};
|
|
3181
3211
|
e.ctrlRule.push(w), this.bus.$once("load-start", () => {
|
|
3182
|
-
f ? s.prepend(w, f,
|
|
3212
|
+
f ? s.prepend(w, f, d) : p || d ? s.append(w, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, w);
|
|
3183
3213
|
});
|
|
3184
3214
|
} else {
|
|
3185
|
-
e.ctrlRule.splice(e.ctrlRule.indexOf(
|
|
3186
|
-
const w = Y(
|
|
3215
|
+
e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
|
|
3216
|
+
const w = Y(g);
|
|
3187
3217
|
w && w.rm();
|
|
3188
3218
|
}
|
|
3189
3219
|
});
|
|
3190
3220
|
}), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
|
|
3191
3221
|
n.forEach((a) => a());
|
|
3192
|
-
}) : n.length &&
|
|
3222
|
+
}) : n.length && P(() => {
|
|
3193
3223
|
n.forEach((a) => a());
|
|
3194
3224
|
})), this.vm.$emit("control", e.origin, this.api), this.effect(e, "control"), o;
|
|
3195
3225
|
},
|
|
@@ -3211,17 +3241,17 @@ function oi(t) {
|
|
|
3211
3241
|
}
|
|
3212
3242
|
});
|
|
3213
3243
|
}
|
|
3214
|
-
function
|
|
3215
|
-
const e =
|
|
3244
|
+
function ui(t) {
|
|
3245
|
+
const e = Lt();
|
|
3216
3246
|
return Object.keys(e).forEach((r) => {
|
|
3217
|
-
D(t, r) ||
|
|
3247
|
+
D(t, r) || k(t, r, e[r]);
|
|
3218
3248
|
}), t;
|
|
3219
3249
|
}
|
|
3220
|
-
function
|
|
3250
|
+
function fi(t) {
|
|
3221
3251
|
const e = t.rule.control || [];
|
|
3222
3252
|
return h.Object(e) ? [e] : e;
|
|
3223
3253
|
}
|
|
3224
|
-
function
|
|
3254
|
+
function ci(t, e) {
|
|
3225
3255
|
for (let r = 0; r < t.ctrlRule.length; r++) {
|
|
3226
3256
|
const i = t.ctrlRule[r];
|
|
3227
3257
|
if (i.children === e)
|
|
@@ -3231,16 +3261,16 @@ function ui(t, e) {
|
|
|
3231
3261
|
function bt(t) {
|
|
3232
3262
|
return !!t.rule.__ctrl;
|
|
3233
3263
|
}
|
|
3234
|
-
function
|
|
3264
|
+
function hi(t) {
|
|
3235
3265
|
_(t.prototype, {
|
|
3236
3266
|
setValue(e, r, i, s) {
|
|
3237
3267
|
e.deleted || (e.rule.value = r, this.changeStatus = !0, this.nextRefresh(), this.$render.clearCache(e), this.setFormData(e, i), this.syncValue(), this.valueChange(e, r), this.vm.$emit("change", e.field, r, e.origin, this.api, s || !1), this.effect(e, "value"), this.targetHook(e, "value", { value: r }), this.emitEvent("change", e.field, r, {
|
|
3238
3268
|
rule: e.origin,
|
|
3239
3269
|
api: this.api,
|
|
3240
3270
|
setFlag: s || !1
|
|
3241
|
-
}), s &&
|
|
3242
|
-
|
|
3243
|
-
|
|
3271
|
+
}), s && P(() => {
|
|
3272
|
+
P(() => {
|
|
3273
|
+
P(() => {
|
|
3244
3274
|
this.api.clearValidateState(e.id);
|
|
3245
3275
|
});
|
|
3246
3276
|
});
|
|
@@ -3264,7 +3294,7 @@ function fi(t) {
|
|
|
3264
3294
|
setFormData(e, r) {
|
|
3265
3295
|
e.modelValue = r;
|
|
3266
3296
|
const i = e.getParentGroup();
|
|
3267
|
-
i && (this.subRuleData[i.id] ||
|
|
3297
|
+
i && (this.subRuleData[i.id] || k(this.subRuleData, i.id, {}), k(this.subRuleData[i.id], e.field, e.rule.value)), k(this.formData, e.id, r);
|
|
3268
3298
|
},
|
|
3269
3299
|
rmSubRuleData(e) {
|
|
3270
3300
|
const r = e.getParentGroup();
|
|
@@ -3275,13 +3305,13 @@ function fi(t) {
|
|
|
3275
3305
|
},
|
|
3276
3306
|
syncForm() {
|
|
3277
3307
|
const e = {}, r = this.fields(), i = [];
|
|
3278
|
-
this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] =
|
|
3279
|
-
|
|
3280
|
-
return
|
|
3308
|
+
this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Ve(this.appendData, n)), s), e), r.reduce((s, n) => {
|
|
3309
|
+
let o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a))[0];
|
|
3310
|
+
return o || (o = this.fieldCtx[n][0], i.push(n)), s[n] = Ve(o.rule, "value"), s;
|
|
3281
3311
|
}, e), this.form = ne(e), this.ignoreFields = i, this.syncValue();
|
|
3282
3312
|
},
|
|
3283
3313
|
isIgnore(e) {
|
|
3284
|
-
return e.ignore === !0 || e.ignore === "hidden"
|
|
3314
|
+
return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
|
|
3285
3315
|
},
|
|
3286
3316
|
appendValue(e) {
|
|
3287
3317
|
(!e.field || !D(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
|
|
@@ -3290,7 +3320,7 @@ function fi(t) {
|
|
|
3290
3320
|
this.subForm[e.id] = r;
|
|
3291
3321
|
},
|
|
3292
3322
|
deferSyncValue(e, r) {
|
|
3293
|
-
this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r),
|
|
3323
|
+
this.deferSyncFn || (this.deferSyncFn = e), this.deferSyncFn.sync || (this.deferSyncFn.sync = r), O(e), this.deferSyncFn === e && (this.deferSyncFn = null, e.sync && this.syncForm());
|
|
3294
3324
|
},
|
|
3295
3325
|
syncValue() {
|
|
3296
3326
|
if (this.deferSyncFn)
|
|
@@ -3308,7 +3338,7 @@ function fi(t) {
|
|
|
3308
3338
|
},
|
|
3309
3339
|
refreshUpdate(e, r, i, s) {
|
|
3310
3340
|
if (h.Function(e.rule.update)) {
|
|
3311
|
-
const n =
|
|
3341
|
+
const n = O(() => e.rule.update(r, e.origin, this.api, {
|
|
3312
3342
|
origin: i || "change",
|
|
3313
3343
|
linkField: s
|
|
3314
3344
|
}));
|
|
@@ -3337,7 +3367,7 @@ function fi(t) {
|
|
|
3337
3367
|
function vt(t, e) {
|
|
3338
3368
|
return typeof e == "function" ? "" + e : e;
|
|
3339
3369
|
}
|
|
3340
|
-
const
|
|
3370
|
+
const Ae = {
|
|
3341
3371
|
init(t) {
|
|
3342
3372
|
},
|
|
3343
3373
|
toFormValue(t, e) {
|
|
@@ -3356,8 +3386,8 @@ const je = {
|
|
|
3356
3386
|
},
|
|
3357
3387
|
mergeProp(t) {
|
|
3358
3388
|
}
|
|
3359
|
-
},
|
|
3360
|
-
function
|
|
3389
|
+
}, di = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Re = Symbol("oldValue");
|
|
3390
|
+
function pi(t) {
|
|
3361
3391
|
_(t.prototype, {
|
|
3362
3392
|
getCtx(e) {
|
|
3363
3393
|
return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
|
|
@@ -3392,7 +3422,7 @@ function hi(t) {
|
|
|
3392
3422
|
if (n)
|
|
3393
3423
|
return n;
|
|
3394
3424
|
}
|
|
3395
|
-
return r[e.originType] || r[J(e.type)] || r[e.trueType] ||
|
|
3425
|
+
return r[e.originType] || r[J(e.type)] || r[e.trueType] || Ae;
|
|
3396
3426
|
},
|
|
3397
3427
|
bindParser(e) {
|
|
3398
3428
|
e.setParser(this.getParser(e));
|
|
@@ -3402,11 +3432,11 @@ function hi(t) {
|
|
|
3402
3432
|
return J(i);
|
|
3403
3433
|
},
|
|
3404
3434
|
noWatch(e) {
|
|
3405
|
-
this.noWatchFn || (this.noWatchFn = e),
|
|
3435
|
+
this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
|
|
3406
3436
|
},
|
|
3407
3437
|
watchCtx(e) {
|
|
3408
|
-
if (Dt().filter((i) => i[0] !== "_" && i[0] !== "$" &&
|
|
3409
|
-
const s =
|
|
3438
|
+
if (Dt().filter((i) => i[0] !== "_" && i[0] !== "$" && di.indexOf(i) === -1).forEach((i) => {
|
|
3439
|
+
const s = Ve(e.rule, i), n = i === "children";
|
|
3410
3440
|
e.refRule[i] = s, e.watch.push(L(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
|
|
3411
3441
|
let l = s.value;
|
|
3412
3442
|
if (!this.isBreakWatch()) {
|
|
@@ -3414,9 +3444,9 @@ function hi(t) {
|
|
|
3414
3444
|
this.$render.clearCache(e), this.nextRefresh();
|
|
3415
3445
|
return;
|
|
3416
3446
|
}
|
|
3417
|
-
if (this.watching = !0,
|
|
3447
|
+
if (this.watching = !0, P(() => {
|
|
3418
3448
|
this.targetHook(e, "watch", { key: i, oldValue: a, newValue: l });
|
|
3419
|
-
}), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(),
|
|
3449
|
+
}), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(), P(() => {
|
|
3420
3450
|
this.targetHook(e, "hidden", { value: l });
|
|
3421
3451
|
})), i === "ignore" && e.input || i === "hidden" && e.input && (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields))
|
|
3422
3452
|
this.syncForm();
|
|
@@ -3427,21 +3457,21 @@ function hi(t) {
|
|
|
3427
3457
|
this.$render.clearCache(e), this.refresh(), this.watching = !1;
|
|
3428
3458
|
}
|
|
3429
3459
|
}, { deep: !n, sync: n }));
|
|
3430
|
-
}), e.refRule.__$title =
|
|
3460
|
+
}), e.refRule.__$title = $e(() => {
|
|
3431
3461
|
let i = (typeof e.rule.title == "object" ? e.rule.title.title : e.rule.title) || "";
|
|
3432
3462
|
if (i) {
|
|
3433
3463
|
const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
|
|
3434
3464
|
s && (i = this.api.t(s[1]));
|
|
3435
3465
|
}
|
|
3436
3466
|
return i;
|
|
3437
|
-
}), e.refRule.__$info =
|
|
3467
|
+
}), e.refRule.__$info = $e(() => {
|
|
3438
3468
|
let i = (typeof e.rule.info == "object" ? e.rule.info.info : e.rule.info) || "";
|
|
3439
3469
|
if (i) {
|
|
3440
3470
|
const s = i.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
|
|
3441
3471
|
s && (i = this.api.t(s[1]));
|
|
3442
3472
|
}
|
|
3443
3473
|
return i;
|
|
3444
|
-
}), e.refRule.__$validate =
|
|
3474
|
+
}), e.refRule.__$validate = $e(() => {
|
|
3445
3475
|
const i = (s) => {
|
|
3446
3476
|
var o, a;
|
|
3447
3477
|
const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
|
|
@@ -3473,7 +3503,7 @@ function hi(t) {
|
|
|
3473
3503
|
return n;
|
|
3474
3504
|
});
|
|
3475
3505
|
}), e.input) {
|
|
3476
|
-
const i =
|
|
3506
|
+
const i = Ve(e.rule, "value");
|
|
3477
3507
|
e.watch.push(L(() => i.value, () => {
|
|
3478
3508
|
let s = e.parser.toFormValue(i.value, e);
|
|
3479
3509
|
this.isChange(e, s) && this.setValue(e, i.value, s, !0);
|
|
@@ -3482,16 +3512,16 @@ function hi(t) {
|
|
|
3482
3512
|
this.bus.$once("load-end", () => {
|
|
3483
3513
|
let i = e.rule.computed;
|
|
3484
3514
|
i && (typeof i != "object" && (i = { value: i }), Object.keys(i).forEach((s) => {
|
|
3485
|
-
const n =
|
|
3515
|
+
const n = $e(() => {
|
|
3486
3516
|
const a = i[s];
|
|
3487
3517
|
if (!a) return;
|
|
3488
3518
|
const l = this.compute(e, a);
|
|
3489
|
-
return a.linkage && l ===
|
|
3519
|
+
return a.linkage && l === Re ? Re : l;
|
|
3490
3520
|
}), o = (a) => {
|
|
3491
3521
|
s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : oe(e.rule, s, a);
|
|
3492
3522
|
};
|
|
3493
3523
|
(s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : n.value !== B(e.rule, s)) && o(n.value), e.watch.push(L(n, (a, l) => {
|
|
3494
|
-
a ===
|
|
3524
|
+
a === Re || a === l || setTimeout(() => {
|
|
3495
3525
|
o(a);
|
|
3496
3526
|
});
|
|
3497
3527
|
}, { deep: !0 }));
|
|
@@ -3500,7 +3530,7 @@ function hi(t) {
|
|
|
3500
3530
|
},
|
|
3501
3531
|
adapterValidate(e, r) {
|
|
3502
3532
|
const i = (s, n) => {
|
|
3503
|
-
if ((e.beforeValidate &&
|
|
3533
|
+
if ((e.beforeValidate && O(() => e.beforeValidate({
|
|
3504
3534
|
value: s,
|
|
3505
3535
|
api: this.api,
|
|
3506
3536
|
validate: e,
|
|
@@ -3513,7 +3543,7 @@ function hi(t) {
|
|
|
3513
3543
|
let l = "";
|
|
3514
3544
|
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);
|
|
3515
3545
|
} else if (e.validator) {
|
|
3516
|
-
const l = e.validator &&
|
|
3546
|
+
const l = e.validator && O(() => e.validator(s, n));
|
|
3517
3547
|
l && h.Function(l.then) && l.then(() => n()).catch((u) => n(u));
|
|
3518
3548
|
} else
|
|
3519
3549
|
n();
|
|
@@ -3620,30 +3650,30 @@ function hi(t) {
|
|
|
3620
3650
|
const l = a.mode === "OR";
|
|
3621
3651
|
let u = !0;
|
|
3622
3652
|
for (let f = 0; f < a.group.length; f++) {
|
|
3623
|
-
const
|
|
3624
|
-
let
|
|
3625
|
-
if (
|
|
3626
|
-
|
|
3627
|
-
else if (
|
|
3628
|
-
|
|
3629
|
-
else if (!
|
|
3653
|
+
const p = a.group[f];
|
|
3654
|
+
let d, g = null;
|
|
3655
|
+
if (p.variable)
|
|
3656
|
+
g = JSON.stringify(this.fc.getLoadData(p.variable) || "");
|
|
3657
|
+
else if (p.field)
|
|
3658
|
+
g = pt(p.field || "");
|
|
3659
|
+
else if (!p.mode)
|
|
3630
3660
|
return !0;
|
|
3631
|
-
let y =
|
|
3632
|
-
if (y && (y = pt(y || "")),
|
|
3661
|
+
let y = p.compare;
|
|
3662
|
+
if (y && (y = pt(y || "")), p.mode ? d = n(p) : ce[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${g}, ${y || "$val"}); }}}}`).call(this.api.form, ce, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
|
|
3633
3663
|
return !0;
|
|
3634
|
-
l || (u = u &&
|
|
3664
|
+
l || (u = u && d);
|
|
3635
3665
|
}
|
|
3636
3666
|
return l ? !1 : u;
|
|
3637
3667
|
};
|
|
3638
3668
|
let o = n(r);
|
|
3639
|
-
return o = r.invert === !0 ? !o : o, r.linkage ? o ?
|
|
3669
|
+
return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : Re : o;
|
|
3640
3670
|
} else if (h.Function(r))
|
|
3641
3671
|
i = () => r(this.api.form, this.api);
|
|
3642
3672
|
else {
|
|
3643
3673
|
const s = e.getParentGroup();
|
|
3644
3674
|
i = () => this.computeValue(r, e, s);
|
|
3645
3675
|
}
|
|
3646
|
-
return
|
|
3676
|
+
return O(i, void 0);
|
|
3647
3677
|
},
|
|
3648
3678
|
computeValue(e, r, i) {
|
|
3649
3679
|
const s = this, n = Object.keys(this.fc.formulas).reduce((o, a) => (o[a] = function(...l) {
|
|
@@ -3654,7 +3684,7 @@ function hi(t) {
|
|
|
3654
3684
|
fc: s.fc
|
|
3655
3685
|
}, ...l);
|
|
3656
3686
|
}, o), {});
|
|
3657
|
-
return
|
|
3687
|
+
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));
|
|
3658
3688
|
},
|
|
3659
3689
|
updateChildren(e, r, i) {
|
|
3660
3690
|
this.deferSyncValue(() => {
|
|
@@ -3677,7 +3707,7 @@ function hi(t) {
|
|
|
3677
3707
|
if (!this.reloading) {
|
|
3678
3708
|
if (e.parser.loadChildren !== !1) {
|
|
3679
3709
|
const l = e.getPending("children", e.rule.children);
|
|
3680
|
-
h.trueArray(l) && l.forEach((u) => u.__fc__ && this.rmCtx(u.__fc__));
|
|
3710
|
+
h.trueArray(l) && l.forEach((u) => u && u.__fc__ && this.rmCtx(u.__fc__));
|
|
3681
3711
|
}
|
|
3682
3712
|
e.root === this.rules && this.vm.renderRule();
|
|
3683
3713
|
}
|
|
@@ -3687,7 +3717,7 @@ function hi(t) {
|
|
|
3687
3717
|
}
|
|
3688
3718
|
});
|
|
3689
3719
|
}
|
|
3690
|
-
function
|
|
3720
|
+
function mi(t) {
|
|
3691
3721
|
_(t.prototype, {
|
|
3692
3722
|
mounted() {
|
|
3693
3723
|
const e = () => {
|
|
@@ -3701,27 +3731,41 @@ function di(t) {
|
|
|
3701
3731
|
emitEvent(e, ...r) {
|
|
3702
3732
|
const i = this.options[e] || this.options[J("on-" + e)];
|
|
3703
3733
|
if (i) {
|
|
3704
|
-
const s =
|
|
3705
|
-
h.Function(s) &&
|
|
3734
|
+
const s = X(i);
|
|
3735
|
+
h.Function(s) && O(() => s(...r));
|
|
3706
3736
|
}
|
|
3707
3737
|
this.bus.$emit(e, ...r);
|
|
3708
3738
|
},
|
|
3709
3739
|
targetHook(e, r, i) {
|
|
3710
|
-
var
|
|
3711
|
-
let s = (
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3740
|
+
var l, u, f, p;
|
|
3741
|
+
let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, g) => {
|
|
3742
|
+
d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
|
|
3743
|
+
O(() => y(q(v({}, i || {}), {
|
|
3744
|
+
self: e.rule,
|
|
3745
|
+
rule: e.rule,
|
|
3746
|
+
parent: g == null ? void 0 : g.rule,
|
|
3747
|
+
$f: this.api,
|
|
3748
|
+
api: this.api,
|
|
3749
|
+
option: this.vm.$props.option
|
|
3750
|
+
})));
|
|
3751
|
+
}));
|
|
3752
|
+
};
|
|
3753
|
+
n(s);
|
|
3754
|
+
let o = "deep" + Ur(r), a = e.parent;
|
|
3755
|
+
for (; a; ) {
|
|
3756
|
+
let d = (p = (f = a.prop) == null ? void 0 : f.hook) == null ? void 0 : p[o];
|
|
3757
|
+
n(d, a), a = a.parent;
|
|
3758
|
+
}
|
|
3715
3759
|
}
|
|
3716
3760
|
});
|
|
3717
3761
|
}
|
|
3718
|
-
function
|
|
3762
|
+
function gi(t) {
|
|
3719
3763
|
_(t.prototype, {
|
|
3720
3764
|
useProvider() {
|
|
3721
3765
|
const e = this.fc.providers;
|
|
3722
3766
|
Object.keys(e).forEach((r) => {
|
|
3723
3767
|
let i = e[r];
|
|
3724
|
-
h.Function(i) && (i = i(this.fc)), i._c =
|
|
3768
|
+
h.Function(i) && (i = i(this.fc)), i._c = $i(i), this.onEffect(i), this.providers[r] = i;
|
|
3725
3769
|
});
|
|
3726
3770
|
},
|
|
3727
3771
|
onEffect(e) {
|
|
@@ -3778,32 +3822,32 @@ function pi(t) {
|
|
|
3778
3822
|
Object.keys(l).forEach((u) => {
|
|
3779
3823
|
const f = this.providers[u];
|
|
3780
3824
|
if (!f || f.input && !i) return;
|
|
3781
|
-
let
|
|
3825
|
+
let p;
|
|
3782
3826
|
if (!f._c)
|
|
3783
|
-
|
|
3827
|
+
p = "*";
|
|
3784
3828
|
else if (f._used.indexOf(s) > -1)
|
|
3785
|
-
|
|
3829
|
+
p = s;
|
|
3786
3830
|
else
|
|
3787
3831
|
return;
|
|
3788
|
-
const
|
|
3789
|
-
e && (
|
|
3832
|
+
const d = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
|
|
3833
|
+
e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (g) => te(d.getProp(), [g]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
|
|
3790
3834
|
});
|
|
3791
3835
|
}
|
|
3792
3836
|
});
|
|
3793
3837
|
}
|
|
3794
|
-
function
|
|
3838
|
+
function yi(t) {
|
|
3795
3839
|
return t.filter(function(e, r, i) {
|
|
3796
3840
|
return i.indexOf(e, 0) === r;
|
|
3797
3841
|
});
|
|
3798
3842
|
}
|
|
3799
|
-
function
|
|
3843
|
+
function $i(t) {
|
|
3800
3844
|
const e = t.components;
|
|
3801
3845
|
if (Array.isArray(e)) {
|
|
3802
|
-
const r =
|
|
3846
|
+
const r = yi(e.filter((i) => i !== "*"));
|
|
3803
3847
|
return r.length ? r : !1;
|
|
3804
3848
|
} else return h.String(e) ? [e] : !1;
|
|
3805
3849
|
}
|
|
3806
|
-
function
|
|
3850
|
+
function x(t) {
|
|
3807
3851
|
Tt(this, {
|
|
3808
3852
|
options() {
|
|
3809
3853
|
return t.options.value || {};
|
|
@@ -3839,11 +3883,11 @@ function X(t) {
|
|
|
3839
3883
|
this.lifecycle("reload");
|
|
3840
3884
|
}
|
|
3841
3885
|
}), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
|
|
3842
|
-
const i =
|
|
3886
|
+
const i = O(() => r(e, this));
|
|
3843
3887
|
return i && i !== e && _(e, i), e;
|
|
3844
|
-
},
|
|
3888
|
+
}, Yr(this));
|
|
3845
3889
|
}
|
|
3846
|
-
_(
|
|
3890
|
+
_(x.prototype, {
|
|
3847
3891
|
initData(t) {
|
|
3848
3892
|
_(this, {
|
|
3849
3893
|
ctxs: {},
|
|
@@ -3864,43 +3908,43 @@ _(X.prototype, {
|
|
|
3864
3908
|
},
|
|
3865
3909
|
globalBeforeFetch(t) {
|
|
3866
3910
|
return new Promise((e, r) => {
|
|
3867
|
-
const i = this.options.beforeFetch &&
|
|
3911
|
+
const i = this.options.beforeFetch && O(() => this.options.beforeFetch(t, { api: this.api }));
|
|
3868
3912
|
i && h.Function(i.then) ? i.then(e).catch(r) : e();
|
|
3869
3913
|
});
|
|
3870
3914
|
},
|
|
3871
3915
|
beforeFetch(t) {
|
|
3872
3916
|
return new Promise((e, r) => {
|
|
3873
|
-
const i = t && t.beforeFetch &&
|
|
3917
|
+
const i = t && t.beforeFetch && O(() => t.beforeFetch(t, { api: this.api }));
|
|
3874
3918
|
i && h.Function(i.then) ? i.then(e).catch(r) : i === !1 ? r() : e();
|
|
3875
3919
|
}).then(() => this.globalBeforeFetch(t));
|
|
3876
3920
|
},
|
|
3877
3921
|
beforeSubmit(t) {
|
|
3878
3922
|
return new Promise((e, r) => {
|
|
3879
|
-
const i = this.options.beforeSubmit &&
|
|
3923
|
+
const i = this.options.beforeSubmit && O(() => this.options.beforeSubmit(t, { api: this.api }));
|
|
3880
3924
|
i && h.Function(i.then) ? i.then(e).catch(r) : i === !1 ? r() : e();
|
|
3881
3925
|
});
|
|
3882
3926
|
}
|
|
3883
3927
|
});
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
const
|
|
3893
|
-
name:
|
|
3928
|
+
ii(x);
|
|
3929
|
+
ni(x);
|
|
3930
|
+
oi(x);
|
|
3931
|
+
li(x);
|
|
3932
|
+
hi(x);
|
|
3933
|
+
pi(x);
|
|
3934
|
+
mi(x);
|
|
3935
|
+
gi(x);
|
|
3936
|
+
const bi = "fcFragment", Ne = {
|
|
3937
|
+
name: bi,
|
|
3894
3938
|
functional: !0,
|
|
3895
3939
|
props: ["vnode"],
|
|
3896
3940
|
render(t, e) {
|
|
3897
3941
|
return e.props.vnode ? e.props.vnode : e.children;
|
|
3898
3942
|
}
|
|
3899
3943
|
};
|
|
3900
|
-
function
|
|
3944
|
+
function vi(t) {
|
|
3901
3945
|
return h.String(t) ? { domProps: { innerHTML: t } } : t;
|
|
3902
3946
|
}
|
|
3903
|
-
function
|
|
3947
|
+
function _i() {
|
|
3904
3948
|
const t = {};
|
|
3905
3949
|
function e(r) {
|
|
3906
3950
|
r && this.setVm(r);
|
|
@@ -3911,11 +3955,11 @@ function bi() {
|
|
|
3911
3955
|
},
|
|
3912
3956
|
make(r, i, s) {
|
|
3913
3957
|
var n, o, a;
|
|
3914
|
-
return (
|
|
3958
|
+
return (be.isReservedTag ? be.isReservedTag(r) : (o = (n = be) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
|
|
3915
3959
|
},
|
|
3916
3960
|
makeComponent(r, i, s) {
|
|
3917
3961
|
var o;
|
|
3918
|
-
let n = this.$h(r,
|
|
3962
|
+
let n = this.$h(r, vi(i), s || []);
|
|
3919
3963
|
if ((o = n == null ? void 0 : n.componentOptions) != null && o.propsData && (i != null && i.props)) {
|
|
3920
3964
|
const a = Object.keys(n.componentOptions.propsData);
|
|
3921
3965
|
n.data.attrs || (n.data.attrs = {}), Object.keys(i.props).forEach((l) => {
|
|
@@ -3932,7 +3976,7 @@ function bi() {
|
|
|
3932
3976
|
},
|
|
3933
3977
|
use(r) {
|
|
3934
3978
|
Object.keys(r).forEach((i) => {
|
|
3935
|
-
const s =
|
|
3979
|
+
const s = ve(i), n = At(i).toLocaleLowerCase(), o = r[i];
|
|
3936
3980
|
[i, s, n].forEach((a) => {
|
|
3937
3981
|
e.alias(i, o), e.prototype[a] = function(l, u) {
|
|
3938
3982
|
return this.make(o, l, u);
|
|
@@ -3942,12 +3986,12 @@ function bi() {
|
|
|
3942
3986
|
}
|
|
3943
3987
|
}), e;
|
|
3944
3988
|
}
|
|
3945
|
-
function
|
|
3946
|
-
class e extends
|
|
3989
|
+
function Ci(t) {
|
|
3990
|
+
class e extends Gt {
|
|
3947
3991
|
}
|
|
3948
3992
|
return Object.assign(e.prototype, t), e;
|
|
3949
3993
|
}
|
|
3950
|
-
function
|
|
3994
|
+
function Gt(t) {
|
|
3951
3995
|
_(this, {
|
|
3952
3996
|
$handle: t,
|
|
3953
3997
|
vm: t.vm,
|
|
@@ -3958,12 +4002,12 @@ function Ht(t) {
|
|
|
3958
4002
|
}
|
|
3959
4003
|
}), this.updateKey(), this.init();
|
|
3960
4004
|
}
|
|
3961
|
-
_(
|
|
4005
|
+
_(Gt.prototype, {
|
|
3962
4006
|
__init() {
|
|
3963
4007
|
this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
|
|
3964
4008
|
},
|
|
3965
4009
|
updateKey() {
|
|
3966
|
-
this.key =
|
|
4010
|
+
this.key = Ie();
|
|
3967
4011
|
},
|
|
3968
4012
|
//TODO interface
|
|
3969
4013
|
init() {
|
|
@@ -4006,24 +4050,24 @@ _(Ht.prototype, {
|
|
|
4006
4050
|
render(t) {
|
|
4007
4051
|
}
|
|
4008
4052
|
});
|
|
4009
|
-
const
|
|
4053
|
+
const wi = function(t) {
|
|
4010
4054
|
const e = {
|
|
4011
4055
|
name: "loadData",
|
|
4012
4056
|
_fn: [],
|
|
4013
4057
|
loaded(r, i, s) {
|
|
4014
|
-
this.deleted(r),
|
|
4058
|
+
this.deleted(r), P(() => {
|
|
4015
4059
|
let n = H(r.getValue());
|
|
4016
4060
|
const o = [];
|
|
4017
4061
|
n.forEach((a) => {
|
|
4018
4062
|
if (a && (a.attr || a.template)) {
|
|
4019
|
-
let l = (
|
|
4063
|
+
let l = (p) => {
|
|
4064
|
+
let d;
|
|
4065
|
+
i && i.__fc__ && (d = i.__fc__.getParentGroup());
|
|
4020
4066
|
let g;
|
|
4021
|
-
i && i.
|
|
4022
|
-
let m;
|
|
4023
|
-
a.template ? m = t.$handle.loadStrVar(a.template, d, g ? { rule: i, value: t.$handle.subRuleData[g.id] || {} } : null) : a.handler && h.Function(a.handler) ? m = a.handler(d, i, s) : m = t.$handle.loadStrVar(`{{${a.attr}}}`, d, g ? { rule: i, value: t.$handle.subRuleData[g.id] || {} } : null), (m == null || m === "") && a.default != null && (m = a.default), a.copy !== !1 && (m = K(m));
|
|
4067
|
+
a.template ? g = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? g = a.handler(p, i, s) : g = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (g == null || g === "") && a.default != null && (g = a.default), a.copy !== !1 && (g = K(g));
|
|
4024
4068
|
const y = a.modify ? i : r.getProp();
|
|
4025
|
-
a.to === "child" ? y.children ?
|
|
4026
|
-
}, u = (
|
|
4069
|
+
a.to === "child" ? y.children ? k(y.children, 0, g) : k(y, "children", [g]) : oe(y, a.to || "options", g), s.sync(i);
|
|
4070
|
+
}, u = (p) => l(p);
|
|
4027
4071
|
const f = t.watchLoadData(u);
|
|
4028
4072
|
l = se(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
|
|
4029
4073
|
}
|
|
@@ -4037,7 +4081,7 @@ const _i = function(t) {
|
|
|
4037
4081
|
}
|
|
4038
4082
|
};
|
|
4039
4083
|
return e.watch = e.loaded, e;
|
|
4040
|
-
},
|
|
4084
|
+
}, Oi = function(t) {
|
|
4041
4085
|
const e = {
|
|
4042
4086
|
name: "t",
|
|
4043
4087
|
_fn: [],
|
|
@@ -4049,13 +4093,13 @@ const _i = function(t) {
|
|
|
4049
4093
|
const l = n[a];
|
|
4050
4094
|
if (l) {
|
|
4051
4095
|
const u = typeof l == "object";
|
|
4052
|
-
let f = (
|
|
4053
|
-
let y = t.t(u ? l.attr : l, u ? l.params : null,
|
|
4096
|
+
let f = (g) => {
|
|
4097
|
+
let y = t.t(u ? l.attr : l, u ? l.params : null, g);
|
|
4054
4098
|
const w = u && l.modify ? i : r.getProp();
|
|
4055
|
-
a === "child" ? w.children ?
|
|
4056
|
-
},
|
|
4057
|
-
const
|
|
4058
|
-
f = se(f, l.wait || 300), l.watch !== !1 ? o.push(
|
|
4099
|
+
a === "child" ? w.children ? k(w.children, 0, y) : k(w, "children", [y]) : oe(w, a, y), s.sync(i);
|
|
4100
|
+
}, p = (g) => f(g);
|
|
4101
|
+
const d = t.watchLoadData(p);
|
|
4102
|
+
f = se(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
|
|
4059
4103
|
}
|
|
4060
4104
|
}), this._fn[r.id] = o;
|
|
4061
4105
|
},
|
|
@@ -4066,7 +4110,7 @@ const _i = function(t) {
|
|
|
4066
4110
|
}
|
|
4067
4111
|
};
|
|
4068
4112
|
return e.watch = e.loaded, e;
|
|
4069
|
-
},
|
|
4113
|
+
}, Jt = {
|
|
4070
4114
|
name: "componentValidate",
|
|
4071
4115
|
load(t, e, r) {
|
|
4072
4116
|
let i = t.getValue();
|
|
@@ -4089,9 +4133,9 @@ const _i = function(t) {
|
|
|
4089
4133
|
}
|
|
4090
4134
|
},
|
|
4091
4135
|
watch(...t) {
|
|
4092
|
-
|
|
4136
|
+
Jt.load(...t);
|
|
4093
4137
|
}
|
|
4094
|
-
},
|
|
4138
|
+
}, Fi = function(t) {
|
|
4095
4139
|
function e(s) {
|
|
4096
4140
|
return h.String(s) && (s = {
|
|
4097
4141
|
action: s,
|
|
@@ -4101,55 +4145,55 @@ const _i = function(t) {
|
|
|
4101
4145
|
function r(s, n, o) {
|
|
4102
4146
|
let a = s.value;
|
|
4103
4147
|
i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
|
|
4104
|
-
const l = (
|
|
4105
|
-
|
|
4148
|
+
const l = (p) => {
|
|
4149
|
+
p === void 0 ? s.clearProp() : oe(s.getProp(), a.to || "options", p), o.sync(n);
|
|
4106
4150
|
};
|
|
4107
4151
|
if (!a || !a.action && !a.key) {
|
|
4108
4152
|
l(void 0);
|
|
4109
4153
|
return;
|
|
4110
4154
|
}
|
|
4111
4155
|
if (a = K(a), a.to || (a.to = "options"), a.key) {
|
|
4112
|
-
const
|
|
4113
|
-
if (!
|
|
4156
|
+
const p = t.$handle.options.globalData[a.key];
|
|
4157
|
+
if (!p) {
|
|
4114
4158
|
l(void 0);
|
|
4115
4159
|
return;
|
|
4116
4160
|
}
|
|
4117
|
-
if (
|
|
4118
|
-
l(
|
|
4161
|
+
if (p.type === "static") {
|
|
4162
|
+
l(p.data);
|
|
4119
4163
|
return;
|
|
4120
4164
|
} else
|
|
4121
|
-
a = v(v({}, a),
|
|
4165
|
+
a = v(v({}, a), p);
|
|
4122
4166
|
}
|
|
4123
4167
|
const u = a.onError, f = () => {
|
|
4124
4168
|
if (!s.getValue())
|
|
4125
4169
|
return s.clearProp(), o.sync(n), !0;
|
|
4126
4170
|
};
|
|
4127
|
-
i._fn[s.id] = t.watchLoadData(se((
|
|
4128
|
-
if (
|
|
4171
|
+
i._fn[s.id] = t.watchLoadData(se((p, d) => {
|
|
4172
|
+
if (d && a.watch === !1)
|
|
4129
4173
|
return i._fn[s.id]();
|
|
4130
|
-
const
|
|
4174
|
+
const g = t.$handle.loadFetchVar(K(a), p, n), y = q(v({
|
|
4131
4175
|
headers: {}
|
|
4132
|
-
},
|
|
4133
|
-
onSuccess(w,
|
|
4176
|
+
}, g), {
|
|
4177
|
+
onSuccess(w, F) {
|
|
4134
4178
|
if (f()) return;
|
|
4135
|
-
let G = (
|
|
4136
|
-
const
|
|
4137
|
-
h.Function(
|
|
4179
|
+
let G = (N) => F ? N : D(N, "data") ? N.data : N;
|
|
4180
|
+
const V = X(g.parse);
|
|
4181
|
+
h.Function(V) ? G = V : V && h.String(V) && (G = (N) => B(N, V)), l(G(w, n, o));
|
|
4138
4182
|
},
|
|
4139
4183
|
onError(w) {
|
|
4140
|
-
l(void 0), !f() && (u || ((
|
|
4184
|
+
l(void 0), !f() && (u || ((F) => tt(F.message || "fetch fail " + g.action)))(w, n, o);
|
|
4141
4185
|
}
|
|
4142
4186
|
});
|
|
4143
4187
|
t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
|
|
4144
|
-
if (h.Function(
|
|
4145
|
-
|
|
4188
|
+
if (h.Function(g.action)) {
|
|
4189
|
+
g.action(n, o).then((w) => {
|
|
4146
4190
|
y.onSuccess(w, !0);
|
|
4147
4191
|
}).catch((w) => {
|
|
4148
4192
|
y.onError(w);
|
|
4149
4193
|
});
|
|
4150
4194
|
return;
|
|
4151
4195
|
}
|
|
4152
|
-
|
|
4196
|
+
O(() => t.create.fetch(y, { inject: s, rule: n, api: o }));
|
|
4153
4197
|
}).catch((w) => {
|
|
4154
4198
|
});
|
|
4155
4199
|
}, a.wait || 600));
|
|
@@ -4168,13 +4212,13 @@ const _i = function(t) {
|
|
|
4168
4212
|
}
|
|
4169
4213
|
};
|
|
4170
4214
|
return i;
|
|
4171
|
-
},
|
|
4172
|
-
fetch:
|
|
4173
|
-
loadData:
|
|
4174
|
-
t:
|
|
4175
|
-
componentValidate:
|
|
4215
|
+
}, ki = {
|
|
4216
|
+
fetch: Fi,
|
|
4217
|
+
loadData: wi,
|
|
4218
|
+
t: Oi,
|
|
4219
|
+
componentValidate: Jt
|
|
4176
4220
|
};
|
|
4177
|
-
function
|
|
4221
|
+
function Ei(t) {
|
|
4178
4222
|
t = t || /* @__PURE__ */ new Map();
|
|
4179
4223
|
const e = {
|
|
4180
4224
|
$on(r, i) {
|
|
@@ -4198,8 +4242,8 @@ function Oi(t) {
|
|
|
4198
4242
|
};
|
|
4199
4243
|
return e;
|
|
4200
4244
|
}
|
|
4201
|
-
const
|
|
4202
|
-
name:
|
|
4245
|
+
const Si = "html", Ri = {
|
|
4246
|
+
name: Si,
|
|
4203
4247
|
loadChildren: !1,
|
|
4204
4248
|
render(t, e) {
|
|
4205
4249
|
return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
|
|
@@ -4208,7 +4252,7 @@ const ki = "html", Si = {
|
|
|
4208
4252
|
return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
|
|
4209
4253
|
}
|
|
4210
4254
|
};
|
|
4211
|
-
function
|
|
4255
|
+
function Di(t) {
|
|
4212
4256
|
t = t + "=";
|
|
4213
4257
|
const r = decodeURIComponent(document.cookie).split(";");
|
|
4214
4258
|
for (let i = 0; i < r.length; i++) {
|
|
@@ -4226,7 +4270,7 @@ function Ei(t) {
|
|
|
4226
4270
|
}
|
|
4227
4271
|
return null;
|
|
4228
4272
|
}
|
|
4229
|
-
function
|
|
4273
|
+
function ji(t) {
|
|
4230
4274
|
const e = localStorage.getItem(t);
|
|
4231
4275
|
if (e)
|
|
4232
4276
|
try {
|
|
@@ -4236,7 +4280,7 @@ function Ri(t) {
|
|
|
4236
4280
|
}
|
|
4237
4281
|
return null;
|
|
4238
4282
|
}
|
|
4239
|
-
function
|
|
4283
|
+
function Ai(t) {
|
|
4240
4284
|
const e = sessionStorage.getItem(t);
|
|
4241
4285
|
if (e)
|
|
4242
4286
|
try {
|
|
@@ -4253,16 +4297,16 @@ function nt(t, e) {
|
|
|
4253
4297
|
let i = t(r.shift());
|
|
4254
4298
|
return r.length ? i == null ? null : B(i, r) : i;
|
|
4255
4299
|
}
|
|
4256
|
-
function ji(t) {
|
|
4257
|
-
return nt(Ei, t);
|
|
4258
|
-
}
|
|
4259
|
-
function Ai(t) {
|
|
4260
|
-
return nt(Ri, t);
|
|
4261
|
-
}
|
|
4262
4300
|
function Vi(t) {
|
|
4263
4301
|
return nt(Di, t);
|
|
4264
4302
|
}
|
|
4265
|
-
|
|
4303
|
+
function Ii(t) {
|
|
4304
|
+
return nt(ji, t);
|
|
4305
|
+
}
|
|
4306
|
+
function Pi(t) {
|
|
4307
|
+
return nt(Ai, t);
|
|
4308
|
+
}
|
|
4309
|
+
const Ti = {
|
|
4266
4310
|
en: {
|
|
4267
4311
|
required: "{title} is required",
|
|
4268
4312
|
validate: {
|
|
@@ -4312,17 +4356,17 @@ const Ii = {
|
|
|
4312
4356
|
}
|
|
4313
4357
|
}
|
|
4314
4358
|
};
|
|
4315
|
-
function
|
|
4359
|
+
function Bi(t, e) {
|
|
4316
4360
|
let r;
|
|
4317
4361
|
return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
|
|
4318
4362
|
}
|
|
4319
|
-
function
|
|
4320
|
-
return
|
|
4363
|
+
function Me() {
|
|
4364
|
+
return Bi("name", ...arguments);
|
|
4321
4365
|
}
|
|
4322
|
-
function
|
|
4366
|
+
function Li(t) {
|
|
4323
4367
|
return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
|
|
4324
4368
|
}
|
|
4325
|
-
function
|
|
4369
|
+
function Ni(t, e) {
|
|
4326
4370
|
const r = new Vue({
|
|
4327
4371
|
data() {
|
|
4328
4372
|
return { rule: t, option: e || {} };
|
|
@@ -4333,81 +4377,81 @@ function Bi(t, e) {
|
|
|
4333
4377
|
});
|
|
4334
4378
|
return r.$mount(), r;
|
|
4335
4379
|
}
|
|
4336
|
-
function
|
|
4380
|
+
function Mi(t) {
|
|
4337
4381
|
const e = t.key || [], r = t.array || [], i = t.normal || [];
|
|
4338
|
-
Rt.push(...e), Ye.push(...r), et.push(...i),
|
|
4382
|
+
Rt.push(...e), Ye.push(...r), et.push(...i), Nt([...e, ...r, ...i]);
|
|
4339
4383
|
}
|
|
4340
|
-
let
|
|
4341
|
-
const U = {},
|
|
4342
|
-
function
|
|
4384
|
+
let qi = 1;
|
|
4385
|
+
const U = {}, De = Symbol("defValue");
|
|
4386
|
+
function Kt(t) {
|
|
4343
4387
|
const e = {
|
|
4344
|
-
[
|
|
4388
|
+
[Ne.name]: Ne
|
|
4345
4389
|
}, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
|
|
4346
4390
|
t.extendApi
|
|
4347
|
-
], u = v({},
|
|
4348
|
-
let
|
|
4349
|
-
const
|
|
4350
|
-
$mobile:
|
|
4351
|
-
}), y =
|
|
4352
|
-
|
|
4391
|
+
], u = v({}, ki), f = Zr();
|
|
4392
|
+
let p = { global: {} };
|
|
4393
|
+
const d = t.isMobile === !0, g = ne({
|
|
4394
|
+
$mobile: d
|
|
4395
|
+
}), y = _i(), w = {}, F = {};
|
|
4396
|
+
Mi(t.attrs || {});
|
|
4353
4397
|
function G(c) {
|
|
4354
|
-
const
|
|
4355
|
-
if (Array.isArray(
|
|
4356
|
-
return
|
|
4357
|
-
if (
|
|
4358
|
-
return
|
|
4398
|
+
const m = U[c];
|
|
4399
|
+
if (Array.isArray(m))
|
|
4400
|
+
return m.map(($) => $.api());
|
|
4401
|
+
if (m)
|
|
4402
|
+
return m.api();
|
|
4359
4403
|
}
|
|
4360
|
-
function
|
|
4404
|
+
function V(c) {
|
|
4361
4405
|
o.push(c);
|
|
4362
4406
|
}
|
|
4363
|
-
function
|
|
4364
|
-
const c =
|
|
4407
|
+
function N() {
|
|
4408
|
+
const c = Me(...arguments);
|
|
4365
4409
|
c.id && c.prop && (i[c.id] = c.prop);
|
|
4366
4410
|
}
|
|
4367
|
-
function
|
|
4368
|
-
const c =
|
|
4411
|
+
function de() {
|
|
4412
|
+
const c = Me(...arguments);
|
|
4369
4413
|
c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(v({}, c.prop), {
|
|
4370
4414
|
name: c.id
|
|
4371
4415
|
}));
|
|
4372
4416
|
}
|
|
4373
|
-
function
|
|
4417
|
+
function Pe(c) {
|
|
4374
4418
|
y.use(c);
|
|
4375
4419
|
}
|
|
4376
|
-
function
|
|
4377
|
-
const c =
|
|
4378
|
-
if (!c.id || !c.prop) return
|
|
4379
|
-
const
|
|
4380
|
-
r[
|
|
4420
|
+
function pe() {
|
|
4421
|
+
const c = Me(...arguments);
|
|
4422
|
+
if (!c.id || !c.prop) return Ae;
|
|
4423
|
+
const m = J(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
|
|
4424
|
+
r[m] = Se($, b || Ae), f[m] = T(m), $.maker && _(f, $.maker);
|
|
4381
4425
|
}
|
|
4382
|
-
function
|
|
4426
|
+
function E(c, m) {
|
|
4383
4427
|
let $;
|
|
4384
4428
|
if (h.String(c)) {
|
|
4385
|
-
if ($ = c,
|
|
4386
|
-
return ["form-create", "formcreate"].indexOf($) > -1 ?
|
|
4429
|
+
if ($ = c, m === void 0)
|
|
4430
|
+
return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
|
|
4387
4431
|
} else
|
|
4388
|
-
$ = J(c.name),
|
|
4389
|
-
if (!$ || !
|
|
4432
|
+
$ = J(c.name), m = c;
|
|
4433
|
+
if (!$ || !m) return;
|
|
4390
4434
|
const b = J($);
|
|
4391
|
-
e[$] =
|
|
4435
|
+
e[$] = m, e[b] = m, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && pe($, m.formCreateParser);
|
|
4392
4436
|
}
|
|
4393
|
-
function
|
|
4394
|
-
return
|
|
4437
|
+
function R() {
|
|
4438
|
+
return Xr(Be, e, i);
|
|
4395
4439
|
}
|
|
4396
|
-
function
|
|
4397
|
-
return
|
|
4440
|
+
function M() {
|
|
4441
|
+
return Ne;
|
|
4398
4442
|
}
|
|
4399
|
-
function
|
|
4400
|
-
return h.Function(c.install) ? c.install(W,
|
|
4443
|
+
function me(c, m) {
|
|
4444
|
+
return h.Function(c.install) ? c.install(W, m) : h.Function(c) && c(W, m), this;
|
|
4401
4445
|
}
|
|
4402
|
-
function W(c,
|
|
4403
|
-
let b =
|
|
4446
|
+
function W(c, m, $) {
|
|
4447
|
+
let b = Ni(c, m || {});
|
|
4404
4448
|
const C = b.$refs.fc.formCreate;
|
|
4405
|
-
return C.$parent = $,
|
|
4449
|
+
return C.$parent = $, Li(C.options).appendChild(b.$el), C.api();
|
|
4406
4450
|
}
|
|
4407
|
-
Se(W,
|
|
4408
|
-
function
|
|
4409
|
-
let
|
|
4410
|
-
return c ?
|
|
4451
|
+
Se(W, F);
|
|
4452
|
+
function zt(c) {
|
|
4453
|
+
let m = v({}, t);
|
|
4454
|
+
return c ? m.inherit = {
|
|
4411
4455
|
components: e,
|
|
4412
4456
|
parsers: r,
|
|
4413
4457
|
directives: i,
|
|
@@ -4416,67 +4460,67 @@ function Jt(t) {
|
|
|
4416
4460
|
useApps: o,
|
|
4417
4461
|
maker: f,
|
|
4418
4462
|
formulas: w,
|
|
4419
|
-
loadData:
|
|
4420
|
-
} : delete
|
|
4463
|
+
loadData: g
|
|
4464
|
+
} : delete m.inherit, Kt(m);
|
|
4421
4465
|
}
|
|
4422
|
-
function
|
|
4423
|
-
s[c] =
|
|
4466
|
+
function Xt(c, m) {
|
|
4467
|
+
s[c] = m;
|
|
4424
4468
|
}
|
|
4425
|
-
function xt(c,
|
|
4426
|
-
w[c] =
|
|
4469
|
+
function xt(c, m) {
|
|
4470
|
+
w[c] = m;
|
|
4427
4471
|
}
|
|
4428
|
-
function
|
|
4472
|
+
function Zt(c, m) {
|
|
4429
4473
|
const $ = n[c] || {}, b = $.parsers || {};
|
|
4430
|
-
|
|
4431
|
-
b[C] = Se(
|
|
4432
|
-
}),
|
|
4474
|
+
m.parsers && Object.keys(m.parsers).forEach((C) => {
|
|
4475
|
+
b[C] = Se(m.parsers[C], Ae);
|
|
4476
|
+
}), m.name = c, n[c] = q(v(v({}, $), m), { parsers: b });
|
|
4433
4477
|
}
|
|
4434
|
-
function
|
|
4435
|
-
c && Object.keys(U).forEach((
|
|
4436
|
-
(Array.isArray(U[
|
|
4478
|
+
function Oe(c) {
|
|
4479
|
+
c && Object.keys(U).forEach((m) => {
|
|
4480
|
+
(Array.isArray(U[m]) ? U[m] : [U[m]]).forEach((b) => {
|
|
4437
4481
|
b.bus.$emit("$loadData." + c);
|
|
4438
4482
|
});
|
|
4439
4483
|
});
|
|
4440
4484
|
}
|
|
4441
|
-
function
|
|
4442
|
-
oe(
|
|
4485
|
+
function Te(c, m) {
|
|
4486
|
+
oe(g, c, m), Oe(c);
|
|
4443
4487
|
}
|
|
4444
|
-
function Fe(c,
|
|
4445
|
-
const $ = (...b) =>
|
|
4446
|
-
$._driver = !0,
|
|
4488
|
+
function Fe(c, m) {
|
|
4489
|
+
const $ = (...b) => O(() => m(...b));
|
|
4490
|
+
$._driver = !0, Te(c, $);
|
|
4447
4491
|
}
|
|
4448
|
-
function st(c,
|
|
4492
|
+
function st(c, m) {
|
|
4449
4493
|
const $ = (c || "").split(".");
|
|
4450
4494
|
c = $.shift();
|
|
4451
4495
|
const b = $.join(".");
|
|
4452
|
-
if (D(
|
|
4453
|
-
let C =
|
|
4454
|
-
return C && C._driver ? C = C(b) : $.length && (C = B(C, $)), C == null || C === "" ?
|
|
4496
|
+
if (D(g, c) || k(g, c, De), g[c] !== De) {
|
|
4497
|
+
let C = g[c];
|
|
4498
|
+
return C && C._driver ? C = C(b) : $.length && (C = B(C, $)), C == null || C === "" ? m : C;
|
|
4455
4499
|
} else
|
|
4456
|
-
return
|
|
4500
|
+
return m;
|
|
4457
4501
|
}
|
|
4458
|
-
function
|
|
4502
|
+
function Qt(c) {
|
|
4459
4503
|
l.push(c);
|
|
4460
4504
|
}
|
|
4461
|
-
function
|
|
4462
|
-
delete
|
|
4505
|
+
function Yt(c) {
|
|
4506
|
+
delete g[c], Oe(c);
|
|
4463
4507
|
}
|
|
4464
|
-
function
|
|
4465
|
-
a.push({ name: c, callback:
|
|
4508
|
+
function er(c, m) {
|
|
4509
|
+
a.push({ name: c, callback: m });
|
|
4466
4510
|
}
|
|
4467
|
-
function
|
|
4511
|
+
function Be(c) {
|
|
4468
4512
|
_(this, {
|
|
4469
|
-
id:
|
|
4513
|
+
id: qi++,
|
|
4470
4514
|
create: W,
|
|
4471
4515
|
vm: c,
|
|
4472
|
-
manager:
|
|
4516
|
+
manager: Ci(t.manager),
|
|
4473
4517
|
parsers: r,
|
|
4474
4518
|
providers: u,
|
|
4475
4519
|
modelFields: s,
|
|
4476
4520
|
formulas: w,
|
|
4477
|
-
isMobile:
|
|
4521
|
+
isMobile: d,
|
|
4478
4522
|
rules: c.$options.propsData.rule,
|
|
4479
|
-
name: c.$options.propsData.name ||
|
|
4523
|
+
name: c.$options.propsData.name || Ie(),
|
|
4480
4524
|
inFor: c.$options.propsData.inFor,
|
|
4481
4525
|
prop: {
|
|
4482
4526
|
components: e,
|
|
@@ -4485,56 +4529,56 @@ function Jt(t) {
|
|
|
4485
4529
|
get: null,
|
|
4486
4530
|
drivers: n,
|
|
4487
4531
|
renderDriver: null,
|
|
4488
|
-
refreshData:
|
|
4489
|
-
loadData:
|
|
4532
|
+
refreshData: Oe,
|
|
4533
|
+
loadData: g,
|
|
4490
4534
|
CreateNode: y,
|
|
4491
|
-
bus: new
|
|
4535
|
+
bus: new Ei(),
|
|
4492
4536
|
unwatch: [],
|
|
4493
|
-
options:
|
|
4537
|
+
options: mr({}),
|
|
4494
4538
|
extendApiFn: l,
|
|
4495
4539
|
fetchCache: /* @__PURE__ */ new WeakMap(),
|
|
4496
4540
|
tmpData: ne({})
|
|
4497
|
-
}), a.forEach((
|
|
4498
|
-
this.bus.$on(
|
|
4499
|
-
}),
|
|
4541
|
+
}), a.forEach((m) => {
|
|
4542
|
+
this.bus.$on(m.name, m.callback);
|
|
4543
|
+
}), P(() => {
|
|
4500
4544
|
L(this.options, () => {
|
|
4501
4545
|
this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
|
|
4502
4546
|
}, { deep: !0 });
|
|
4503
|
-
}), _(c.$options.components, e), _(c.$options.directives, i), this.$handle = new
|
|
4547
|
+
}), _(c.$options.components, e), _(c.$options.directives, i), this.$handle = new x(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
|
|
4504
4548
|
}
|
|
4505
|
-
|
|
4549
|
+
Be.isMobile = d, _(Be.prototype, {
|
|
4506
4550
|
init() {
|
|
4507
4551
|
this.isSub() && this.unwatch.push(L(() => this.vm.parent.fc.options.value, () => {
|
|
4508
4552
|
this.initOptions(), this.$handle.api.refresh();
|
|
4509
4553
|
}, { 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();
|
|
4510
4554
|
},
|
|
4511
|
-
targetFormDriver(c, ...
|
|
4555
|
+
targetFormDriver(c, ...m) {
|
|
4512
4556
|
if (this.renderDriver && this.renderDriver[c])
|
|
4513
|
-
return
|
|
4557
|
+
return O(() => this.renderDriver[c](...m));
|
|
4514
4558
|
},
|
|
4515
|
-
t(c,
|
|
4559
|
+
t(c, m, $) {
|
|
4516
4560
|
let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
|
|
4517
|
-
return b == null && (b = ""), b &&
|
|
4561
|
+
return b == null && (b = ""), b && m && Object.keys(m).forEach((C) => {
|
|
4518
4562
|
const j = new RegExp(`{${C}}`, "g");
|
|
4519
|
-
b = b.replace(j,
|
|
4563
|
+
b = b.replace(j, m[C]);
|
|
4520
4564
|
}), b;
|
|
4521
4565
|
},
|
|
4522
4566
|
globalDataDriver(c) {
|
|
4523
|
-
let
|
|
4524
|
-
const $ =
|
|
4567
|
+
let m = c.split(".");
|
|
4568
|
+
const $ = m.shift(), b = this.options.value.globalData && this.options.value.globalData[$];
|
|
4525
4569
|
if (b) {
|
|
4526
4570
|
if (b.type === "static")
|
|
4527
|
-
return B(b.data,
|
|
4571
|
+
return B(b.data, m);
|
|
4528
4572
|
{
|
|
4529
4573
|
let C;
|
|
4530
4574
|
const j = this.fetchCache.get(b);
|
|
4531
4575
|
if (j) {
|
|
4532
|
-
if (j.status && (C = B(j.data,
|
|
4576
|
+
if (j.status && (C = B(j.data, m)), !j.loading)
|
|
4533
4577
|
return C;
|
|
4534
4578
|
j.loading = !1, this.fetchCache.set(b, j);
|
|
4535
4579
|
} else
|
|
4536
4580
|
this.fetchCache.set(b, { status: !1 });
|
|
4537
|
-
const
|
|
4581
|
+
const S = se(() => {
|
|
4538
4582
|
le();
|
|
4539
4583
|
const z = this.fetchCache.get(b);
|
|
4540
4584
|
this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (z && (z.loading = !0, this.fetchCache.set(b, z)), this.bus.$emit("$loadData.$globalData." + $)) : this.fetchCache.delete(b);
|
|
@@ -4544,11 +4588,11 @@ function Jt(t) {
|
|
|
4544
4588
|
if (ue && b.watch === !1)
|
|
4545
4589
|
return le();
|
|
4546
4590
|
if (ue) {
|
|
4547
|
-
|
|
4591
|
+
S();
|
|
4548
4592
|
return;
|
|
4549
4593
|
}
|
|
4550
|
-
const
|
|
4551
|
-
this.$handle.api.fetch(
|
|
4594
|
+
const ge = this.$handle.loadFetchVar(Ke(b), z);
|
|
4595
|
+
this.$handle.api.fetch(ge).then((re) => {
|
|
4552
4596
|
ae(re);
|
|
4553
4597
|
}).catch((re) => {
|
|
4554
4598
|
ae(null);
|
|
@@ -4563,31 +4607,31 @@ function Jt(t) {
|
|
|
4563
4607
|
return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
|
|
4564
4608
|
},
|
|
4565
4609
|
globalLanguageDriver(c) {
|
|
4566
|
-
let
|
|
4567
|
-
if (
|
|
4610
|
+
let m = this.vm.top.$props.locale, $;
|
|
4611
|
+
if (m && typeof m == "object" && ($ = B(m, c)), $ == null) {
|
|
4568
4612
|
const b = this.options.value.language || {}, C = this.getLocale();
|
|
4569
|
-
$ = B(b[C] || {}, c), $ == null && ($ = B(
|
|
4613
|
+
$ = B(b[C] || {}, c), $ == null && ($ = B(Ti[C] || {}, c));
|
|
4570
4614
|
}
|
|
4571
4615
|
return $;
|
|
4572
4616
|
},
|
|
4573
4617
|
globalVarDriver(c) {
|
|
4574
|
-
let
|
|
4575
|
-
const $ =
|
|
4618
|
+
let m = c.split(".");
|
|
4619
|
+
const $ = m.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
|
|
4576
4620
|
if (b) {
|
|
4577
|
-
const C = h.Function(b) ? b :
|
|
4621
|
+
const C = h.Function(b) ? b : X(b.handle);
|
|
4578
4622
|
if (C) {
|
|
4579
4623
|
let j;
|
|
4580
|
-
const
|
|
4581
|
-
Z ? (this.bus.$emit("$loadData.$var." + $),
|
|
4624
|
+
const S = this.watchLoadData((ae, Z) => {
|
|
4625
|
+
Z ? (this.bus.$emit("$loadData.$var." + $), S()) : j = C(ae, this.$handle.api);
|
|
4582
4626
|
});
|
|
4583
|
-
return this.unwatch.push(
|
|
4627
|
+
return this.unwatch.push(S), B(j, m);
|
|
4584
4628
|
}
|
|
4585
4629
|
}
|
|
4586
4630
|
},
|
|
4587
|
-
setData(c,
|
|
4588
|
-
$ ?
|
|
4631
|
+
setData(c, m, $) {
|
|
4632
|
+
$ ? Te(c, m) : (oe(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
|
|
4589
4633
|
},
|
|
4590
|
-
getLoadData(c,
|
|
4634
|
+
getLoadData(c, m) {
|
|
4591
4635
|
let $ = null;
|
|
4592
4636
|
if (c != null) {
|
|
4593
4637
|
let b = c.split(".");
|
|
@@ -4613,41 +4657,41 @@ function Jt(t) {
|
|
|
4613
4657
|
return this.$handle.preview;
|
|
4614
4658
|
{
|
|
4615
4659
|
const j = this.vm.top.fc.tmpData;
|
|
4616
|
-
D(j, C) ||
|
|
4660
|
+
D(j, C) || k(j, C, De), $ = j[C] !== De ? B(j, c) : st(c), b = [];
|
|
4617
4661
|
}
|
|
4618
4662
|
}
|
|
4619
4663
|
$ && b.length && ($ = B($, b));
|
|
4620
4664
|
}
|
|
4621
|
-
return $ == null || $ === "" ?
|
|
4665
|
+
return $ == null || $ === "" ? m : $;
|
|
4622
4666
|
},
|
|
4623
|
-
watchLoadData(c,
|
|
4667
|
+
watchLoadData(c, m) {
|
|
4624
4668
|
let $ = {};
|
|
4625
|
-
const b = (
|
|
4626
|
-
this.get || (this.get = C),
|
|
4627
|
-
c(C,
|
|
4669
|
+
const b = (S) => {
|
|
4670
|
+
this.get || (this.get = C), O(() => {
|
|
4671
|
+
c(C, S);
|
|
4628
4672
|
}), this.get === C && (this.get = void 0);
|
|
4629
|
-
}, C = (
|
|
4673
|
+
}, C = (S, ae) => {
|
|
4630
4674
|
let Z;
|
|
4631
|
-
if (typeof
|
|
4632
|
-
return $[
|
|
4633
|
-
const le =
|
|
4634
|
-
const
|
|
4635
|
-
if ($[
|
|
4636
|
-
JSON.stringify(
|
|
4675
|
+
if (typeof S == "object" && (Z = S.getValue, S = S.id), $[S])
|
|
4676
|
+
return $[S].val;
|
|
4677
|
+
const le = $e(() => Z ? Z() : this.getLoadData(S, ae)), z = S.split("."), ue = z.shift(), ge = z.shift() || "", re = se(() => {
|
|
4678
|
+
const fe = Z ? Z() : this.getLoadData(S, ae);
|
|
4679
|
+
if ($[S])
|
|
4680
|
+
((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[S].val || JSON.stringify(fe) !== JSON.stringify($[S].val)) && ($[S].val = fe, b(!0));
|
|
4637
4681
|
else return;
|
|
4638
|
-
},
|
|
4682
|
+
}, m || 0), rr = L(le, (fe) => {
|
|
4639
4683
|
re();
|
|
4640
4684
|
});
|
|
4641
|
-
return this.bus.$on("$loadData." + ue, re),
|
|
4685
|
+
return this.bus.$on("$loadData." + ue, re), ge && this.bus.$on("$loadData." + ue + "." + ge, re), $[S] = {
|
|
4642
4686
|
fn: () => {
|
|
4643
|
-
this.bus.$off("$loadData." + ue, re),
|
|
4687
|
+
this.bus.$off("$loadData." + ue, re), ge && this.bus.$off("$loadData." + ue + "." + ge, re), rr();
|
|
4644
4688
|
},
|
|
4645
4689
|
val: le.value
|
|
4646
4690
|
}, le.value;
|
|
4647
4691
|
};
|
|
4648
4692
|
b(!1);
|
|
4649
4693
|
const j = () => {
|
|
4650
|
-
Object.keys($).forEach((
|
|
4694
|
+
Object.keys($).forEach((S) => $[S].fn()), $ = {};
|
|
4651
4695
|
};
|
|
4652
4696
|
return this.unwatch.push(j), j;
|
|
4653
4697
|
},
|
|
@@ -4662,13 +4706,13 @@ function Jt(t) {
|
|
|
4662
4706
|
resetBtn: {},
|
|
4663
4707
|
globalEvent: {},
|
|
4664
4708
|
globalData: {}
|
|
4665
|
-
}, K(
|
|
4709
|
+
}, K(p));
|
|
4666
4710
|
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);
|
|
4667
4711
|
},
|
|
4668
|
-
mergeOptions(c,
|
|
4669
|
-
return
|
|
4670
|
-
delete
|
|
4671
|
-
}),
|
|
4712
|
+
mergeOptions(c, m, $) {
|
|
4713
|
+
return m = v({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
|
|
4714
|
+
delete m[b];
|
|
4715
|
+
}), m.global && (c.global = Kr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
|
|
4672
4716
|
},
|
|
4673
4717
|
updateOptions(c) {
|
|
4674
4718
|
this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
|
|
@@ -4701,70 +4745,70 @@ function Jt(t) {
|
|
|
4701
4745
|
_(c, {
|
|
4702
4746
|
version: t.version,
|
|
4703
4747
|
ui: t.ui,
|
|
4704
|
-
isMobile:
|
|
4705
|
-
extendApi:
|
|
4748
|
+
isMobile: d,
|
|
4749
|
+
extendApi: Qt,
|
|
4706
4750
|
getData: st,
|
|
4707
4751
|
setDataDriver: Fe,
|
|
4708
|
-
setData:
|
|
4709
|
-
removeData:
|
|
4710
|
-
refreshData:
|
|
4752
|
+
setData: Te,
|
|
4753
|
+
removeData: Yt,
|
|
4754
|
+
refreshData: Oe,
|
|
4711
4755
|
maker: f,
|
|
4712
|
-
component:
|
|
4713
|
-
directive:
|
|
4714
|
-
setModelField:
|
|
4756
|
+
component: E,
|
|
4757
|
+
directive: N,
|
|
4758
|
+
setModelField: Xt,
|
|
4715
4759
|
setFormula: xt,
|
|
4716
|
-
setDriver:
|
|
4717
|
-
register:
|
|
4718
|
-
$vnode:
|
|
4719
|
-
parser:
|
|
4720
|
-
use:
|
|
4721
|
-
factory:
|
|
4722
|
-
componentAlias:
|
|
4760
|
+
setDriver: Zt,
|
|
4761
|
+
register: de,
|
|
4762
|
+
$vnode: M,
|
|
4763
|
+
parser: pe,
|
|
4764
|
+
use: me,
|
|
4765
|
+
factory: zt,
|
|
4766
|
+
componentAlias: Pe,
|
|
4723
4767
|
copyRule: It,
|
|
4724
4768
|
copyRules: Pt,
|
|
4725
4769
|
mergeRule: te,
|
|
4726
|
-
fetch:
|
|
4727
|
-
$form:
|
|
4728
|
-
parseFn:
|
|
4770
|
+
fetch: qt,
|
|
4771
|
+
$form: R,
|
|
4772
|
+
parseFn: X,
|
|
4729
4773
|
parseJson: Vt,
|
|
4730
|
-
toJson:
|
|
4731
|
-
useApp:
|
|
4774
|
+
toJson: Ce,
|
|
4775
|
+
useApp: V,
|
|
4732
4776
|
getApi: G,
|
|
4733
|
-
on:
|
|
4777
|
+
on: er
|
|
4734
4778
|
});
|
|
4735
4779
|
}
|
|
4736
|
-
function
|
|
4780
|
+
function tr(c) {
|
|
4737
4781
|
_(c, {
|
|
4738
4782
|
create: W,
|
|
4739
|
-
install(
|
|
4740
|
-
if (
|
|
4741
|
-
|
|
4742
|
-
const b = function(j,
|
|
4743
|
-
return W(j,
|
|
4783
|
+
install(m, $) {
|
|
4784
|
+
if (p = v(v({}, p), $ || {}), m._installedFormCreate === !0) return;
|
|
4785
|
+
m._installedFormCreate = !0;
|
|
4786
|
+
const b = function(j, S = {}) {
|
|
4787
|
+
return W(j, S, this);
|
|
4744
4788
|
};
|
|
4745
|
-
ot(b),
|
|
4746
|
-
const C =
|
|
4747
|
-
|
|
4748
|
-
|
|
4789
|
+
ot(b), m.prototype.$formCreate = b;
|
|
4790
|
+
const C = R();
|
|
4791
|
+
m.component(C.name, C), m.component("FcFragment", M()), o.forEach((j) => {
|
|
4792
|
+
O(() => j(c, m));
|
|
4749
4793
|
});
|
|
4750
4794
|
}
|
|
4751
4795
|
});
|
|
4752
4796
|
}
|
|
4753
|
-
if (ot(
|
|
4797
|
+
if (ot(F), tr(F), Fe("$cookie", Vi), Fe("$localStorage", Ii), Fe("$sessionStorage", Pi), y.use({ fragment: "fcFragment" }), t.install && W.use(t), pe(Ri), t.inherit) {
|
|
4754
4798
|
const c = t.inherit;
|
|
4755
|
-
c.components && _(e, c.components), c.parsers && _(r, c.parsers), c.directives && _(i, c.directives), c.modelFields && _(s, c.modelFields), c.providers && _(u, c.providers), c.useApps && _(o, c.useApps), c.maker && _(f, c.maker), c.loadData && _(
|
|
4799
|
+
c.components && _(e, c.components), c.parsers && _(r, c.parsers), c.directives && _(i, c.directives), c.modelFields && _(s, c.modelFields), c.providers && _(u, c.providers), c.useApps && _(o, c.useApps), c.maker && _(f, c.maker), c.loadData && _(g, c.loadData), c.formulas && _(w, c.formulas);
|
|
4756
4800
|
}
|
|
4757
|
-
const
|
|
4758
|
-
return Se(
|
|
4801
|
+
const ke = R();
|
|
4802
|
+
return Se(ke, F), Object.defineProperties(ke, {
|
|
4759
4803
|
fetch: {
|
|
4760
4804
|
get() {
|
|
4761
|
-
return
|
|
4805
|
+
return F.fetch;
|
|
4762
4806
|
},
|
|
4763
4807
|
set(c) {
|
|
4764
|
-
|
|
4808
|
+
F.fetch = c;
|
|
4765
4809
|
}
|
|
4766
4810
|
}
|
|
4767
|
-
}),
|
|
4811
|
+
}), ke.util = F, ke;
|
|
4768
4812
|
}
|
|
4769
4813
|
const _t = {
|
|
4770
4814
|
date: "yyyy-MM-dd",
|
|
@@ -4775,73 +4819,73 @@ const _t = {
|
|
|
4775
4819
|
monthrange: "yyyy-MM",
|
|
4776
4820
|
datetimerange: "yyyy-MM-dd HH:mm:ss",
|
|
4777
4821
|
year: "yyyy"
|
|
4778
|
-
}, Ct = "datePicker",
|
|
4822
|
+
}, Ct = "datePicker", Ui = {
|
|
4779
4823
|
name: Ct,
|
|
4780
4824
|
maker: function() {
|
|
4781
|
-
return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] =
|
|
4825
|
+
return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = T(Ct, { type: e.toLowerCase() }), t), {});
|
|
4782
4826
|
}(),
|
|
4783
4827
|
mergeProp(t) {
|
|
4784
4828
|
const e = t.prop.props;
|
|
4785
4829
|
e.valueFormat || (e.valueFormat = _t[e.type] || _t.date);
|
|
4786
4830
|
}
|
|
4787
|
-
}, qe = "hidden",
|
|
4831
|
+
}, qe = "hidden", Hi = {
|
|
4788
4832
|
name: qe,
|
|
4789
4833
|
maker: {
|
|
4790
|
-
[qe]: (t, e) =>
|
|
4834
|
+
[qe]: (t, e) => T(qe)("", t, e)
|
|
4791
4835
|
},
|
|
4792
4836
|
render() {
|
|
4793
4837
|
return [];
|
|
4794
4838
|
}
|
|
4795
|
-
}, Ue = "input",
|
|
4839
|
+
}, Ue = "input", Gi = {
|
|
4796
4840
|
name: Ue,
|
|
4797
4841
|
maker: function() {
|
|
4798
|
-
const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] =
|
|
4799
|
-
return t.idate =
|
|
4842
|
+
const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = T(Ue, { type: r }), e), {});
|
|
4843
|
+
return t.idate = T(Ue, { type: "date" }), t;
|
|
4800
4844
|
}(),
|
|
4801
4845
|
mergeProp(t) {
|
|
4802
4846
|
let { props: e } = t.prop;
|
|
4803
4847
|
e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
|
|
4804
4848
|
}
|
|
4805
|
-
}, wt = "slider",
|
|
4849
|
+
}, wt = "slider", Ji = {
|
|
4806
4850
|
name: wt,
|
|
4807
4851
|
maker: {
|
|
4808
|
-
sliderRange:
|
|
4852
|
+
sliderRange: T(wt, { range: !0 })
|
|
4809
4853
|
},
|
|
4810
4854
|
toFormValue(t, e) {
|
|
4811
4855
|
let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
|
|
4812
4856
|
return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
|
|
4813
4857
|
}
|
|
4814
|
-
}, He = "timePicker",
|
|
4858
|
+
}, He = "timePicker", Ki = {
|
|
4815
4859
|
name: He,
|
|
4816
4860
|
maker: {
|
|
4817
|
-
time:
|
|
4818
|
-
timeRange:
|
|
4861
|
+
time: T(He, (t) => t.props.isRange = !1),
|
|
4862
|
+
timeRange: T(He, (t) => t.props.isRange = !0)
|
|
4819
4863
|
},
|
|
4820
4864
|
mergeProp(t) {
|
|
4821
4865
|
const e = t.prop.props;
|
|
4822
4866
|
e.valueFormat || (e.valueFormat = "HH:mm:ss");
|
|
4823
4867
|
}
|
|
4824
|
-
},
|
|
4868
|
+
}, Wi = {
|
|
4825
4869
|
name: "FcRow",
|
|
4826
4870
|
render(t, e) {
|
|
4827
4871
|
return e.vNode.col({ props: { span: 24 } }, [
|
|
4828
4872
|
e.vNode.row(e.prop, t)
|
|
4829
4873
|
]);
|
|
4830
4874
|
}
|
|
4831
|
-
},
|
|
4832
|
-
name:
|
|
4875
|
+
}, zi = "select", Xi = {
|
|
4876
|
+
name: zi,
|
|
4833
4877
|
toFormValue(t, e) {
|
|
4834
4878
|
return e.prop.props.multiple && !Array.isArray(t) ? H(t) : t;
|
|
4835
4879
|
}
|
|
4836
|
-
},
|
|
4837
|
-
Ni,
|
|
4838
|
-
qi,
|
|
4880
|
+
}, xi = [
|
|
4839
4881
|
Ui,
|
|
4840
4882
|
Hi,
|
|
4841
4883
|
Gi,
|
|
4842
4884
|
Ji,
|
|
4843
|
-
|
|
4844
|
-
|
|
4885
|
+
Ki,
|
|
4886
|
+
Wi,
|
|
4887
|
+
Xi
|
|
4888
|
+
], A = "el", Zi = {
|
|
4845
4889
|
button: A + "Button",
|
|
4846
4890
|
icon: "i",
|
|
4847
4891
|
slider: A + "Slider",
|
|
@@ -4874,7 +4918,7 @@ const _t = {
|
|
|
4874
4918
|
object: "fcSubForm",
|
|
4875
4919
|
subForm: "fcSubForm"
|
|
4876
4920
|
};
|
|
4877
|
-
function
|
|
4921
|
+
function Qi() {
|
|
4878
4922
|
return {
|
|
4879
4923
|
form: {
|
|
4880
4924
|
inline: !1,
|
|
@@ -4908,23 +4952,23 @@ function Xi() {
|
|
|
4908
4952
|
}
|
|
4909
4953
|
};
|
|
4910
4954
|
}
|
|
4911
|
-
function
|
|
4955
|
+
function Yi(t) {
|
|
4912
4956
|
return t.type === "tooltip";
|
|
4913
4957
|
}
|
|
4914
|
-
function
|
|
4958
|
+
function Ot(t, e) {
|
|
4915
4959
|
D(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
|
|
4916
4960
|
}
|
|
4917
4961
|
function Q(t) {
|
|
4918
4962
|
return t === !1;
|
|
4919
4963
|
}
|
|
4920
|
-
function
|
|
4964
|
+
function en(t, e) {
|
|
4921
4965
|
D(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
|
|
4922
4966
|
}
|
|
4923
4967
|
function Ge(t) {
|
|
4924
4968
|
const e = v({}, t);
|
|
4925
4969
|
return delete e.children, e;
|
|
4926
4970
|
}
|
|
4927
|
-
const
|
|
4971
|
+
const tn = {
|
|
4928
4972
|
validate() {
|
|
4929
4973
|
const t = this.form();
|
|
4930
4974
|
return t ? t.validate() : new Promise((e) => e());
|
|
@@ -4943,11 +4987,11 @@ const Yi = {
|
|
|
4943
4987
|
},
|
|
4944
4988
|
tidyOptions(t) {
|
|
4945
4989
|
return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
|
|
4946
|
-
|
|
4990
|
+
en(t, e);
|
|
4947
4991
|
}), t;
|
|
4948
4992
|
},
|
|
4949
4993
|
tidyRule({ prop: t }) {
|
|
4950
|
-
return
|
|
4994
|
+
return Ot(t, "title"), Ot(t, "info"), t;
|
|
4951
4995
|
},
|
|
4952
4996
|
mergeProp(t) {
|
|
4953
4997
|
const e = {
|
|
@@ -4965,7 +5009,7 @@ const Yi = {
|
|
|
4965
5009
|
});
|
|
4966
5010
|
},
|
|
4967
5011
|
getDefaultOptions() {
|
|
4968
|
-
return
|
|
5012
|
+
return Qi();
|
|
4969
5013
|
},
|
|
4970
5014
|
update() {
|
|
4971
5015
|
const t = this.options.form;
|
|
@@ -5013,22 +5057,22 @@ const Yi = {
|
|
|
5013
5057
|
return !(!e.title && !e.native || Q(e.show));
|
|
5014
5058
|
},
|
|
5015
5059
|
makeInfo(t, e, r) {
|
|
5016
|
-
var f, d, g,
|
|
5017
|
-
const i = v({}, t.title), s = v({}, t.info), n =
|
|
5018
|
-
title: (
|
|
5060
|
+
var f, p, d, g, y, w;
|
|
5061
|
+
const i = v({}, t.title), s = v({}, t.info), n = Yi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
|
|
5062
|
+
title: (p = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : p.value,
|
|
5019
5063
|
rule: r.rule,
|
|
5020
5064
|
options: this.options
|
|
5021
|
-
}) : ((
|
|
5065
|
+
}) : ((g = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : g.value) + (o.labelSuffix || o["label-suffix"] || "")];
|
|
5022
5066
|
if (!Q(s.show) && (s.info || s.native) && !Q(s.icon)) {
|
|
5023
|
-
const
|
|
5067
|
+
const F = {
|
|
5024
5068
|
type: s.type || "popover",
|
|
5025
5069
|
slot: "label",
|
|
5026
5070
|
props: Ge(s),
|
|
5027
5071
|
key: `${e}pop`
|
|
5028
5072
|
};
|
|
5029
|
-
delete
|
|
5073
|
+
delete F.props.icon, delete F.props.show, delete F.props.info, delete F.props.align, delete F.props.native;
|
|
5030
5074
|
const G = "content";
|
|
5031
|
-
s.info && !D(
|
|
5075
|
+
s.info && !D(F.props, G) && (F.props[G] = (w = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : w.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(ee([s, F]), [
|
|
5032
5076
|
this.$r({
|
|
5033
5077
|
type: "i",
|
|
5034
5078
|
slot: n ? "default" : "reference",
|
|
@@ -5113,35 +5157,35 @@ const Yi = {
|
|
|
5113
5157
|
key: `${this.key}b1`
|
|
5114
5158
|
}, [e]);
|
|
5115
5159
|
}
|
|
5116
|
-
},
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
function
|
|
5160
|
+
}, he = {};
|
|
5161
|
+
rn(he);
|
|
5162
|
+
nn(he);
|
|
5163
|
+
sn(he);
|
|
5164
|
+
on(he);
|
|
5165
|
+
an(he);
|
|
5166
|
+
function rn(t) {
|
|
5123
5167
|
["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "radio", "rate"].forEach((e) => {
|
|
5124
|
-
t[e] =
|
|
5168
|
+
t[e] = T(e);
|
|
5125
5169
|
}), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
|
|
5126
5170
|
}
|
|
5127
|
-
function
|
|
5171
|
+
function nn(t) {
|
|
5128
5172
|
const e = "select", r = "multiple";
|
|
5129
|
-
t.selectMultiple =
|
|
5173
|
+
t.selectMultiple = T(e, { [r]: !0 }), t.selectOne = T(e, { [r]: !1 });
|
|
5130
5174
|
}
|
|
5131
|
-
function
|
|
5175
|
+
function sn(t) {
|
|
5132
5176
|
const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
|
|
5133
|
-
Object.keys(r).reduce((i, s) => (i[s] =
|
|
5177
|
+
Object.keys(r).reduce((i, s) => (i[s] = T(e, { type: r[s] }), i), t);
|
|
5134
5178
|
}
|
|
5135
|
-
function
|
|
5179
|
+
function on(t) {
|
|
5136
5180
|
const e = "upload", r = {
|
|
5137
5181
|
image: ["image", 0],
|
|
5138
5182
|
file: ["file", 0],
|
|
5139
5183
|
uploadFileOne: ["file", 1],
|
|
5140
5184
|
uploadImageOne: ["image", 1]
|
|
5141
5185
|
};
|
|
5142
|
-
Object.keys(r).reduce((i, s) => (i[s] =
|
|
5186
|
+
Object.keys(r).reduce((i, s) => (i[s] = T(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
|
|
5143
5187
|
}
|
|
5144
|
-
function
|
|
5188
|
+
function an(t) {
|
|
5145
5189
|
const e = {
|
|
5146
5190
|
frameInputs: ["input", 0],
|
|
5147
5191
|
frameFiles: ["file", 0],
|
|
@@ -5150,12 +5194,12 @@ function sn(t) {
|
|
|
5150
5194
|
frameFileOne: ["file", 1],
|
|
5151
5195
|
frameImageOne: ["image", 1]
|
|
5152
5196
|
};
|
|
5153
|
-
return Object.keys(e).reduce((r, i) => (r[i] =
|
|
5197
|
+
return Object.keys(e).reduce((r, i) => (r[i] = T("frame", (s) => s.props({ type: e[i][0], maxLength: e[i][1] })), r), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages, t;
|
|
5154
5198
|
}
|
|
5155
|
-
function
|
|
5199
|
+
function Ft(t, e) {
|
|
5156
5200
|
return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
|
|
5157
5201
|
}
|
|
5158
|
-
function
|
|
5202
|
+
function ln(t, e) {
|
|
5159
5203
|
return {
|
|
5160
5204
|
formEl() {
|
|
5161
5205
|
return e.$manager.form();
|
|
@@ -5231,11 +5275,11 @@ function on(t, e) {
|
|
|
5231
5275
|
}
|
|
5232
5276
|
},
|
|
5233
5277
|
submitBtnProps: (r = {}) => {
|
|
5234
|
-
let i =
|
|
5278
|
+
let i = Ft(e.options.submitBtn, !0);
|
|
5235
5279
|
_(i, r), e.options.submitBtn = i, t.refreshOptions();
|
|
5236
5280
|
},
|
|
5237
5281
|
resetBtnProps: (r = {}) => {
|
|
5238
|
-
let i =
|
|
5282
|
+
let i = Ft(e.options.resetBtn, !1);
|
|
5239
5283
|
_(i, r), e.options.resetBtn = i, t.refreshOptions();
|
|
5240
5284
|
},
|
|
5241
5285
|
submit(r, i) {
|
|
@@ -5243,21 +5287,21 @@ function on(t, e) {
|
|
|
5243
5287
|
(e.options.validateOnSubmit === !1 ? Promise.resolve() : t.validate()).then(() => {
|
|
5244
5288
|
let a = t.formData();
|
|
5245
5289
|
e.beforeSubmit(a).then(() => {
|
|
5246
|
-
h.Function(r) &&
|
|
5290
|
+
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);
|
|
5247
5291
|
}).catch((l) => {
|
|
5248
5292
|
});
|
|
5249
5293
|
}).catch((...a) => {
|
|
5250
|
-
h.Function(i) &&
|
|
5294
|
+
h.Function(i) && O(() => i(t, ...a)), n(...a);
|
|
5251
5295
|
});
|
|
5252
5296
|
});
|
|
5253
5297
|
}
|
|
5254
5298
|
};
|
|
5255
5299
|
}
|
|
5256
|
-
const
|
|
5300
|
+
const Wt = {
|
|
5257
5301
|
name: "required",
|
|
5258
5302
|
load(t, e, r) {
|
|
5259
5303
|
var s, n;
|
|
5260
|
-
const i =
|
|
5304
|
+
const i = un(t.getValue());
|
|
5261
5305
|
if (i.required === !1)
|
|
5262
5306
|
t.clearProp(), r.clearValidateState([e.field]);
|
|
5263
5307
|
else {
|
|
@@ -5278,28 +5322,28 @@ const Kt = {
|
|
|
5278
5322
|
r.sync(e);
|
|
5279
5323
|
},
|
|
5280
5324
|
watch(...t) {
|
|
5281
|
-
|
|
5325
|
+
Wt.load(...t);
|
|
5282
5326
|
}
|
|
5283
5327
|
};
|
|
5284
|
-
function
|
|
5328
|
+
function un(t) {
|
|
5285
5329
|
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 : {};
|
|
5286
5330
|
}
|
|
5287
|
-
function
|
|
5288
|
-
t.componentAlias(
|
|
5331
|
+
function fn(t) {
|
|
5332
|
+
t.componentAlias(Zi), qr.forEach((e) => {
|
|
5289
5333
|
t.component(e.name, e);
|
|
5290
|
-
}), t.register(
|
|
5334
|
+
}), t.register(Wt), xi.forEach((e) => {
|
|
5291
5335
|
t.parser(e);
|
|
5292
|
-
}), Object.keys(
|
|
5293
|
-
t.maker[e] =
|
|
5336
|
+
}), Object.keys(he).forEach((e) => {
|
|
5337
|
+
t.maker[e] = he[e];
|
|
5294
5338
|
});
|
|
5295
5339
|
}
|
|
5296
|
-
function
|
|
5297
|
-
return
|
|
5340
|
+
function cn() {
|
|
5341
|
+
return Kt({
|
|
5298
5342
|
ui: "element-ui",
|
|
5299
|
-
version: "2.7.
|
|
5300
|
-
manager:
|
|
5301
|
-
extendApi:
|
|
5302
|
-
install:
|
|
5343
|
+
version: "2.7.10",
|
|
5344
|
+
manager: tn,
|
|
5345
|
+
extendApi: ln,
|
|
5346
|
+
install: fn,
|
|
5303
5347
|
attrs: {
|
|
5304
5348
|
normal: ["col", "wrap"],
|
|
5305
5349
|
array: ["className"],
|
|
@@ -5307,10 +5351,10 @@ function un() {
|
|
|
5307
5351
|
}
|
|
5308
5352
|
});
|
|
5309
5353
|
}
|
|
5310
|
-
const Ze =
|
|
5354
|
+
const Ze = cn();
|
|
5311
5355
|
typeof window != "undefined" && (window.formCreate = Ze, window.Vue && Ze.install(window.Vue));
|
|
5312
|
-
const
|
|
5356
|
+
const pn = Ze.maker;
|
|
5313
5357
|
export {
|
|
5314
5358
|
Ze as default,
|
|
5315
|
-
|
|
5359
|
+
pn as maker
|
|
5316
5360
|
};
|