@form-create/element-ui 2.7.16 → 2.7.17
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 +576 -550
- package/dist/form-create.js +4 -4
- package/dist/form-create.min.js +4 -4
- package/package.json +11 -11
- package/src/core/alias.js +1 -0
- package/src/parsers/index.js +2 -0
- package/src/parsers/textarea.js +11 -0
package/dist/form-create.esm.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* FormCreate 低代码表单渲染器
|
|
3
|
-
* @form-create/element-ui v2.7.
|
|
3
|
+
* @form-create/element-ui v2.7.17
|
|
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
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
10
|
+
var nr = Object.defineProperty, sr = Object.defineProperties;
|
|
11
|
+
var or = Object.getOwnPropertyDescriptors;
|
|
12
|
+
var at = Object.getOwnPropertySymbols;
|
|
13
|
+
var ar = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
|
|
14
|
+
var lt = (t, e, r) => e in t ? nr(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
|
-
|
|
17
|
-
if (
|
|
18
|
-
for (var r of
|
|
19
|
-
|
|
16
|
+
ar.call(e, r) && lt(t, r, e[r]);
|
|
17
|
+
if (at)
|
|
18
|
+
for (var r of at(e))
|
|
19
|
+
lr.call(e, r) && lt(t, r, e[r]);
|
|
20
20
|
return t;
|
|
21
|
-
}, q = (t, e) =>
|
|
22
|
-
import $e, { getCurrentInstance as
|
|
23
|
-
function
|
|
21
|
+
}, q = (t, e) => sr(t, or(e));
|
|
22
|
+
import $e, { getCurrentInstance as ur, provide as fr, inject as cr, toRefs as ut, reactive as ne, onBeforeMount as hr, watch as N, onMounted as dr, onBeforeUnmount as pr, onUpdated as mr, nextTick as P, markRaw as ge, computed as ye, toRef as Ae, ref as gr } from "vue";
|
|
23
|
+
function yr(t) {
|
|
24
24
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
26
|
+
function Je() {
|
|
27
|
+
return Je = Object.assign ? Object.assign.bind() : function(t) {
|
|
28
28
|
for (var e, r = 1; r < arguments.length; r++) for (var i in e = arguments[r], e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
29
29
|
return t;
|
|
30
|
-
},
|
|
30
|
+
}, Je.apply(this, arguments);
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var $r = ["attrs", "props", "domProps"], br = ["class", "style", "directives"], vr = ["on", "nativeOn"], _r = 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 ($r.indexOf(i) !== -1) e[i] = Je({}, e[i], r[i]);
|
|
36
|
+
else if (br.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 (vr.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] ? Cr(e[i][u], r[i][u]) : r[i][u];
|
|
45
45
|
else e[i] = r[i];
|
|
46
46
|
return e;
|
|
47
47
|
}, {});
|
|
48
|
-
},
|
|
48
|
+
}, Cr = function(t, e) {
|
|
49
49
|
return function() {
|
|
50
50
|
t && t.apply(this, arguments), e && e.apply(this, arguments);
|
|
51
51
|
};
|
|
52
|
-
},
|
|
53
|
-
const I = /* @__PURE__ */
|
|
54
|
-
function
|
|
52
|
+
}, wr = _r;
|
|
53
|
+
const I = /* @__PURE__ */ yr(wr);
|
|
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 Or = "fcCheckbox", Fr = {
|
|
58
|
+
name: Or,
|
|
59
59
|
props: {
|
|
60
60
|
formCreateInject: {
|
|
61
61
|
type: Object,
|
|
@@ -117,7 +117,7 @@ const wr = "fcCheckbox", Or = {
|
|
|
117
117
|
}, {
|
|
118
118
|
key: s + r + "-" + e.value
|
|
119
119
|
}]));
|
|
120
|
-
}),
|
|
120
|
+
}), Qe(this.$slots)]);
|
|
121
121
|
},
|
|
122
122
|
mounted() {
|
|
123
123
|
this.$emit("fc.el", this.$refs.el);
|
|
@@ -126,8 +126,8 @@ const wr = "fcCheckbox", Or = {
|
|
|
126
126
|
function H(t) {
|
|
127
127
|
return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
name:
|
|
129
|
+
const kr = "fcFrame", Er = {
|
|
130
|
+
name: kr,
|
|
131
131
|
props: {
|
|
132
132
|
formCreateInject: {
|
|
133
133
|
type: Object,
|
|
@@ -496,8 +496,8 @@ const Fr = "fcFrame", kr = {
|
|
|
496
496
|
mounted() {
|
|
497
497
|
this.$on("fc.closeModal", this.closeModal);
|
|
498
498
|
}
|
|
499
|
-
},
|
|
500
|
-
name:
|
|
499
|
+
}, Rr = "fcRadio", Sr = {
|
|
500
|
+
name: Rr,
|
|
501
501
|
props: {
|
|
502
502
|
formCreateInject: {
|
|
503
503
|
type: Object,
|
|
@@ -556,7 +556,7 @@ const Fr = "fcFrame", kr = {
|
|
|
556
556
|
}, {
|
|
557
557
|
key: s + r + "-" + e.value
|
|
558
558
|
}]));
|
|
559
|
-
}),
|
|
559
|
+
}), Qe(this.$slots)]);
|
|
560
560
|
},
|
|
561
561
|
mounted() {
|
|
562
562
|
this.$emit("fc.el", this.$refs.el);
|
|
@@ -594,8 +594,8 @@ const Fr = "fcFrame", kr = {
|
|
|
594
594
|
function j(t, e) {
|
|
595
595
|
return {}.hasOwnProperty.call(t, e);
|
|
596
596
|
}
|
|
597
|
-
const
|
|
598
|
-
name:
|
|
597
|
+
const jr = "fcSelect", Dr = {
|
|
598
|
+
name: jr,
|
|
599
599
|
functional: !0,
|
|
600
600
|
props: {
|
|
601
601
|
formCreateInject: {
|
|
@@ -626,8 +626,8 @@ const Sr = "fcSelect", jr = {
|
|
|
626
626
|
mounted() {
|
|
627
627
|
this.$emit("fc.el", this.$refs.el);
|
|
628
628
|
}
|
|
629
|
-
},
|
|
630
|
-
name:
|
|
629
|
+
}, Ar = "fcTree", Vr = {
|
|
630
|
+
name: Ar,
|
|
631
631
|
formCreateParser: {
|
|
632
632
|
mergeProp(t) {
|
|
633
633
|
const e = t.prop.props;
|
|
@@ -677,31 +677,31 @@ const Sr = "fcSelect", jr = {
|
|
|
677
677
|
check: () => this.updateValue(),
|
|
678
678
|
"node-click": () => this.updateValue()
|
|
679
679
|
}
|
|
680
|
-
}]), [
|
|
680
|
+
}]), [Qe(this.$slots)]);
|
|
681
681
|
},
|
|
682
682
|
mounted() {
|
|
683
683
|
this.setValue(), this.$emit("fc.el", this.$refs.tree);
|
|
684
684
|
}
|
|
685
685
|
};
|
|
686
|
-
function
|
|
686
|
+
function ft(t, e) {
|
|
687
687
|
return typeof t == "object" ? t : {
|
|
688
688
|
url: t,
|
|
689
689
|
is_string: !0,
|
|
690
|
-
name:
|
|
690
|
+
name: Ir(t),
|
|
691
691
|
uid: e
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function ct(t) {
|
|
695
695
|
return q(v({}, t), {
|
|
696
696
|
file: t,
|
|
697
697
|
value: t
|
|
698
698
|
});
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function Ir(t) {
|
|
701
701
|
return ("" + t).split("/").pop();
|
|
702
702
|
}
|
|
703
|
-
const
|
|
704
|
-
name:
|
|
703
|
+
const Pr = "fcUpload", Tr = {
|
|
704
|
+
name: Pr,
|
|
705
705
|
props: {
|
|
706
706
|
formCreateInject: {
|
|
707
707
|
type: Object,
|
|
@@ -750,11 +750,11 @@ const Ir = "fcUpload", Pr = {
|
|
|
750
750
|
};
|
|
751
751
|
},
|
|
752
752
|
created() {
|
|
753
|
-
this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = H(this.value).map(
|
|
753
|
+
this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = H(this.value).map(ft).map(ct);
|
|
754
754
|
},
|
|
755
755
|
watch: {
|
|
756
756
|
value(t) {
|
|
757
|
-
this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = H(t).map(
|
|
757
|
+
this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = H(t).map(ft).map(ct), this.uploadList = this.$refs.upload.uploadFiles);
|
|
758
758
|
},
|
|
759
759
|
limit(t, e) {
|
|
760
760
|
(e === 1 || t === 1) && this.update();
|
|
@@ -945,20 +945,124 @@ function Oe(t, e = {}, r) {
|
|
|
945
945
|
function K(t) {
|
|
946
946
|
return Oe({}, { value: t }).value;
|
|
947
947
|
}
|
|
948
|
-
const
|
|
948
|
+
const Br = Object.assign || function(t) {
|
|
949
949
|
for (let e, r = 1; r < arguments.length; r++)
|
|
950
950
|
for (let i in e = arguments[r], e)
|
|
951
951
|
Object.prototype.hasOwnProperty.call(e, i) && F(t, i, e[i]);
|
|
952
952
|
return t;
|
|
953
953
|
};
|
|
954
954
|
function _() {
|
|
955
|
-
return
|
|
955
|
+
return Br.apply(this, arguments);
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function Ke(t) {
|
|
958
958
|
return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
|
|
959
959
|
}
|
|
960
|
-
|
|
961
|
-
|
|
960
|
+
function se(t, e) {
|
|
961
|
+
var r = null;
|
|
962
|
+
return function(...i) {
|
|
963
|
+
r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
function Et(t) {
|
|
967
|
+
return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
|
|
968
|
+
}
|
|
969
|
+
function Lr(t) {
|
|
970
|
+
return t && typeof t == "object" && typeof t.then == "function";
|
|
971
|
+
}
|
|
972
|
+
function Ve(t) {
|
|
973
|
+
return Lr(t) ? t : Promise.resolve(t);
|
|
974
|
+
}
|
|
975
|
+
function be(t) {
|
|
976
|
+
let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
|
|
977
|
+
return e.indexOf("-") === 0 && (e = e.substr(1)), e;
|
|
978
|
+
}
|
|
979
|
+
function Nr(t) {
|
|
980
|
+
return t.replace(t[0], t[0].toLocaleUpperCase());
|
|
981
|
+
}
|
|
982
|
+
function Rt(t, e, r) {
|
|
983
|
+
return `[form-create ${t}]: ${e}`;
|
|
984
|
+
}
|
|
985
|
+
function Ye(t, e) {
|
|
986
|
+
console.error(Rt("err", t));
|
|
987
|
+
}
|
|
988
|
+
function Mr(t) {
|
|
989
|
+
Ye(t.toString()), console.error(t);
|
|
990
|
+
}
|
|
991
|
+
const We = "[[FORM-CREATE-PREFIX-", xe = "-FORM-CREATE-SUFFIX]]";
|
|
992
|
+
function we(t, e) {
|
|
993
|
+
return JSON.stringify(Oe(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
|
|
994
|
+
if (!(i && i._isVue === !0)) {
|
|
995
|
+
if (typeof i != "function")
|
|
996
|
+
return i;
|
|
997
|
+
if (i.__json)
|
|
998
|
+
return i.__json;
|
|
999
|
+
if (i.__origin && (i = i.__origin), !i.__emit)
|
|
1000
|
+
return We + i + xe;
|
|
1001
|
+
}
|
|
1002
|
+
}, e);
|
|
1003
|
+
}
|
|
1004
|
+
function Le(t) {
|
|
1005
|
+
return new Function("return " + t)();
|
|
1006
|
+
}
|
|
1007
|
+
function z(t, e) {
|
|
1008
|
+
if (t && h.String(t) && t.length > 4) {
|
|
1009
|
+
let r = t.trim(), i = !1;
|
|
1010
|
+
try {
|
|
1011
|
+
if (r.indexOf(xe) > 0 && r.indexOf(We) === 0)
|
|
1012
|
+
r = r.replace(xe, "").replace(We, ""), i = !0;
|
|
1013
|
+
else if (r.indexOf("$FN:") === 0)
|
|
1014
|
+
r = r.substring(4), i = !0;
|
|
1015
|
+
else if (r.indexOf("$EXEC:") === 0)
|
|
1016
|
+
r = r.substring(6), i = !0;
|
|
1017
|
+
else if (r.indexOf("$GLOBAL:") === 0) {
|
|
1018
|
+
const n = r.substring(8);
|
|
1019
|
+
return r = function(...o) {
|
|
1020
|
+
const a = o[0].api.getGlobalEvent(n);
|
|
1021
|
+
if (a)
|
|
1022
|
+
return a.call(this, ...o);
|
|
1023
|
+
}, r.__json = t, r.__inject = !0, r;
|
|
1024
|
+
} else {
|
|
1025
|
+
if (r.indexOf("$FNX:") === 0)
|
|
1026
|
+
return r = Le(`function($inject){
|
|
1027
|
+
` + r.substring(5) + `
|
|
1028
|
+
}`), r.__json = t, r.__inject = !0, r;
|
|
1029
|
+
(!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
|
|
1030
|
+
}
|
|
1031
|
+
if (!i) return t;
|
|
1032
|
+
let s;
|
|
1033
|
+
try {
|
|
1034
|
+
s = Le(r);
|
|
1035
|
+
} catch (n) {
|
|
1036
|
+
s = Le("function " + r);
|
|
1037
|
+
}
|
|
1038
|
+
return s.__json = t, s;
|
|
1039
|
+
} catch (s) {
|
|
1040
|
+
Ye(`解析失败:${r}
|
|
1041
|
+
|
|
1042
|
+
err: ${s}`);
|
|
1043
|
+
return;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
return t;
|
|
1047
|
+
}
|
|
1048
|
+
function St(t, e) {
|
|
1049
|
+
return JSON.parse(t, function(r, i) {
|
|
1050
|
+
return h.Undef(i) || !i.indexOf ? i : z(i, e);
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
let qr = 0;
|
|
1054
|
+
function Ie() {
|
|
1055
|
+
const t = 370 + ++qr;
|
|
1056
|
+
return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
|
|
1057
|
+
}
|
|
1058
|
+
function oe(t, e, r) {
|
|
1059
|
+
let i = t, s;
|
|
1060
|
+
return (e || "").split(".").forEach((n) => {
|
|
1061
|
+
s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
|
|
1062
|
+
}), F(i, s, r), i;
|
|
1063
|
+
}
|
|
1064
|
+
const Ur = "fcGroup", Hr = {
|
|
1065
|
+
name: Ur,
|
|
962
1066
|
props: {
|
|
963
1067
|
field: String,
|
|
964
1068
|
rule: [Array, Object],
|
|
@@ -1140,11 +1244,16 @@ const Br = "fcGroup", Lr = {
|
|
|
1140
1244
|
e.push(this.defaultValue ? K(this.defaultValue) : this.field ? null : {}), this.input(e);
|
|
1141
1245
|
},
|
|
1142
1246
|
del(t, e) {
|
|
1143
|
-
if (this.disabled
|
|
1247
|
+
if (this.disabled)
|
|
1144
1248
|
return;
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1249
|
+
const r = () => {
|
|
1250
|
+
this.removeRule(e, !0);
|
|
1251
|
+
const i = [...this.value];
|
|
1252
|
+
i.splice(t, 1), this.input(i);
|
|
1253
|
+
};
|
|
1254
|
+
Ve(this.onBeforeRemove(this.modelValue, t)).then((i) => {
|
|
1255
|
+
i !== !1 && r();
|
|
1256
|
+
});
|
|
1148
1257
|
},
|
|
1149
1258
|
addIcon(t) {
|
|
1150
1259
|
const e = this.$createElement;
|
|
@@ -1262,8 +1371,8 @@ const Br = "fcGroup", Lr = {
|
|
|
1262
1371
|
class: "_fc-group " + (s ? "_fc-group-disabled" : "")
|
|
1263
1372
|
}, [n]);
|
|
1264
1373
|
}
|
|
1265
|
-
},
|
|
1266
|
-
name:
|
|
1374
|
+
}, Gr = "fcSubForm", Jr = {
|
|
1375
|
+
name: Gr,
|
|
1267
1376
|
props: {
|
|
1268
1377
|
rule: Array,
|
|
1269
1378
|
options: Object,
|
|
@@ -1346,31 +1455,17 @@ const Br = "fcGroup", Lr = {
|
|
|
1346
1455
|
}
|
|
1347
1456
|
}]));
|
|
1348
1457
|
}
|
|
1349
|
-
},
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
]
|
|
1359
|
-
|
|
1360
|
-
var r = null;
|
|
1361
|
-
return function(...i) {
|
|
1362
|
-
r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
|
|
1363
|
-
};
|
|
1364
|
-
}
|
|
1365
|
-
function be(t) {
|
|
1366
|
-
let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
|
|
1367
|
-
return e.indexOf("-") === 0 && (e = e.substr(1)), e;
|
|
1368
|
-
}
|
|
1369
|
-
function Ur(t) {
|
|
1370
|
-
return t.replace(t[0], t[0].toLocaleUpperCase());
|
|
1371
|
-
}
|
|
1372
|
-
const kt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style", "directives"], Rt = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
|
|
1373
|
-
const i = [...kt, ...r.normal || []], s = [...Et, ...r.array || []], n = [...Rt, ...r.functional || []], o = r.props || [];
|
|
1458
|
+
}, Kr = [
|
|
1459
|
+
Fr,
|
|
1460
|
+
Er,
|
|
1461
|
+
Sr,
|
|
1462
|
+
Dr,
|
|
1463
|
+
Vr,
|
|
1464
|
+
Tr,
|
|
1465
|
+
Hr,
|
|
1466
|
+
Jr
|
|
1467
|
+
], jt = ["attrs", "props", "domProps", "scopedSlots"], Dt = ["class", "style", "directives"], At = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
|
|
1468
|
+
const i = [...jt, ...r.normal || []], s = [...Dt, ...r.array || []], n = [...At, ...r.functional || []], o = r.props || [];
|
|
1374
1469
|
return t.reduce((a, l) => {
|
|
1375
1470
|
for (const u in l)
|
|
1376
1471
|
if (a[u])
|
|
@@ -1390,105 +1485,20 @@ const kt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style"
|
|
|
1390
1485
|
a[u][f] = l[u][f];
|
|
1391
1486
|
else if (u === "hook")
|
|
1392
1487
|
for (let f in l[u])
|
|
1393
|
-
a[u][f] ? a[u][f] =
|
|
1488
|
+
a[u][f] ? a[u][f] = Wr(a[u][f], l[u][f]) : a[u][f] = l[u][f];
|
|
1394
1489
|
else
|
|
1395
1490
|
a[u] = l[u];
|
|
1396
1491
|
else
|
|
1397
1492
|
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];
|
|
1398
1493
|
return a;
|
|
1399
1494
|
}, e);
|
|
1400
|
-
},
|
|
1495
|
+
}, Wr = (t, e) => function() {
|
|
1401
1496
|
t && t.apply(this, arguments), e && e.apply(this, arguments);
|
|
1402
|
-
},
|
|
1403
|
-
function
|
|
1404
|
-
return [...
|
|
1497
|
+
}, Vt = ["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"], et = ["validate", "children", "control"], tt = ["effect", "deep", "renderSlots"];
|
|
1498
|
+
function It() {
|
|
1499
|
+
return [...Vt, ...jt, ...Dt, ...At, ...et, ...tt];
|
|
1405
1500
|
}
|
|
1406
|
-
function
|
|
1407
|
-
return `[form-create ${t}]: ${e}`;
|
|
1408
|
-
}
|
|
1409
|
-
function et(t, e) {
|
|
1410
|
-
console.error(Dt("err", t));
|
|
1411
|
-
}
|
|
1412
|
-
function Gr(t) {
|
|
1413
|
-
et(t.toString()), console.error(t);
|
|
1414
|
-
}
|
|
1415
|
-
function At(t) {
|
|
1416
|
-
return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
|
|
1417
|
-
}
|
|
1418
|
-
const Ke = "[[FORM-CREATE-PREFIX-", We = "-FORM-CREATE-SUFFIX]]";
|
|
1419
|
-
function we(t, e) {
|
|
1420
|
-
return JSON.stringify(Oe(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
|
|
1421
|
-
if (!(i && i._isVue === !0)) {
|
|
1422
|
-
if (typeof i != "function")
|
|
1423
|
-
return i;
|
|
1424
|
-
if (i.__json)
|
|
1425
|
-
return i.__json;
|
|
1426
|
-
if (i.__origin && (i = i.__origin), !i.__emit)
|
|
1427
|
-
return Ke + i + We;
|
|
1428
|
-
}
|
|
1429
|
-
}, e);
|
|
1430
|
-
}
|
|
1431
|
-
function Be(t) {
|
|
1432
|
-
return new Function("return " + t)();
|
|
1433
|
-
}
|
|
1434
|
-
function z(t, e) {
|
|
1435
|
-
if (t && h.String(t) && t.length > 4) {
|
|
1436
|
-
let r = t.trim(), i = !1;
|
|
1437
|
-
try {
|
|
1438
|
-
if (r.indexOf(We) > 0 && r.indexOf(Ke) === 0)
|
|
1439
|
-
r = r.replace(We, "").replace(Ke, ""), i = !0;
|
|
1440
|
-
else if (r.indexOf("$FN:") === 0)
|
|
1441
|
-
r = r.substring(4), i = !0;
|
|
1442
|
-
else if (r.indexOf("$EXEC:") === 0)
|
|
1443
|
-
r = r.substring(6), i = !0;
|
|
1444
|
-
else if (r.indexOf("$GLOBAL:") === 0) {
|
|
1445
|
-
const n = r.substring(8);
|
|
1446
|
-
return r = function(...o) {
|
|
1447
|
-
const a = o[0].api.getGlobalEvent(n);
|
|
1448
|
-
if (a)
|
|
1449
|
-
return a.call(this, ...o);
|
|
1450
|
-
}, r.__json = t, r.__inject = !0, r;
|
|
1451
|
-
} else {
|
|
1452
|
-
if (r.indexOf("$FNX:") === 0)
|
|
1453
|
-
return r = Be(`function($inject){
|
|
1454
|
-
` + r.substring(5) + `
|
|
1455
|
-
}`), r.__json = t, r.__inject = !0, r;
|
|
1456
|
-
(!e && r.indexOf("function ") === 0 && r !== "function " || !e && r.indexOf("function(") === 0 && r !== "function(") && (i = !0);
|
|
1457
|
-
}
|
|
1458
|
-
if (!i) return t;
|
|
1459
|
-
let s;
|
|
1460
|
-
try {
|
|
1461
|
-
s = Be(r);
|
|
1462
|
-
} catch (n) {
|
|
1463
|
-
s = Be("function " + r);
|
|
1464
|
-
}
|
|
1465
|
-
return s.__json = t, s;
|
|
1466
|
-
} catch (s) {
|
|
1467
|
-
et(`解析失败:${r}
|
|
1468
|
-
|
|
1469
|
-
err: ${s}`);
|
|
1470
|
-
return;
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
return t;
|
|
1474
|
-
}
|
|
1475
|
-
function Vt(t, e) {
|
|
1476
|
-
return JSON.parse(t, function(r, i) {
|
|
1477
|
-
return h.Undef(i) || !i.indexOf ? i : z(i, e);
|
|
1478
|
-
});
|
|
1479
|
-
}
|
|
1480
|
-
let Jr = 0;
|
|
1481
|
-
function Ve() {
|
|
1482
|
-
const t = 370 + ++Jr;
|
|
1483
|
-
return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
|
|
1484
|
-
}
|
|
1485
|
-
function oe(t, e, r) {
|
|
1486
|
-
let i = t, s;
|
|
1487
|
-
return (e || "").split(".").forEach((n) => {
|
|
1488
|
-
s && ((!i[s] || typeof i[s] != "object") && F(i, s, {}), i = i[s]), s = n;
|
|
1489
|
-
}), F(i, s, r), i;
|
|
1490
|
-
}
|
|
1491
|
-
function xe(t, e) {
|
|
1501
|
+
function ze(t, e) {
|
|
1492
1502
|
return {
|
|
1493
1503
|
value: t,
|
|
1494
1504
|
enumerable: !1,
|
|
@@ -1496,25 +1506,25 @@ function xe(t, e) {
|
|
|
1496
1506
|
writable: !!e
|
|
1497
1507
|
};
|
|
1498
1508
|
}
|
|
1499
|
-
function It(t, e) {
|
|
1500
|
-
return Pt([t], e || !1)[0];
|
|
1501
|
-
}
|
|
1502
1509
|
function Pt(t, e) {
|
|
1510
|
+
return Tt([t], e || !1)[0];
|
|
1511
|
+
}
|
|
1512
|
+
function Tt(t, e) {
|
|
1503
1513
|
return Oe([], [...t], e || !1);
|
|
1504
1514
|
}
|
|
1505
1515
|
function ee(t, e) {
|
|
1506
|
-
return Y(Array.isArray(e) ? e : [e], t, { array:
|
|
1516
|
+
return Y(Array.isArray(e) ? e : [e], t, { array: et, normal: tt }), t;
|
|
1507
1517
|
}
|
|
1508
|
-
function
|
|
1518
|
+
function ht(t) {
|
|
1509
1519
|
const e = h.Function(t.getRule) ? t.getRule() : t;
|
|
1510
1520
|
return e.type || (e.type = "input"), e;
|
|
1511
1521
|
}
|
|
1512
|
-
function
|
|
1522
|
+
function xr(t, e) {
|
|
1513
1523
|
return t ? (Object.keys(e || {}).forEach((r) => {
|
|
1514
1524
|
e[r] && (t[r] = ee(t[r] || {}, e[r]));
|
|
1515
1525
|
}), t) : e;
|
|
1516
1526
|
}
|
|
1517
|
-
function
|
|
1527
|
+
function Bt(t, e) {
|
|
1518
1528
|
Object.defineProperties(t, Object.keys(e).reduce((r, i) => (r[i] = {
|
|
1519
1529
|
get() {
|
|
1520
1530
|
return e[i]();
|
|
@@ -1528,26 +1538,26 @@ function O(t, e) {
|
|
|
1528
1538
|
try {
|
|
1529
1539
|
e = t();
|
|
1530
1540
|
} catch (r) {
|
|
1531
|
-
|
|
1541
|
+
Mr(r);
|
|
1532
1542
|
}
|
|
1533
1543
|
return e;
|
|
1534
1544
|
}
|
|
1535
|
-
function
|
|
1545
|
+
function Xe(t, e) {
|
|
1536
1546
|
let r = null;
|
|
1537
|
-
return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) =>
|
|
1547
|
+
return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Xe(i, e)) : r = t, r && e && H(r).forEach((i) => {
|
|
1538
1548
|
(Array.isArray(i) ? i : [i]).forEach((n) => {
|
|
1539
1549
|
n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
|
|
1540
1550
|
});
|
|
1541
1551
|
}), r;
|
|
1542
1552
|
}
|
|
1543
|
-
function
|
|
1553
|
+
function zr(t, e) {
|
|
1544
1554
|
if (h.Object(t)) {
|
|
1545
1555
|
const r = {};
|
|
1546
1556
|
return Object.keys(t).forEach((i) => {
|
|
1547
|
-
r[i] =
|
|
1557
|
+
r[i] = Xe(t[i], i);
|
|
1548
1558
|
}), r;
|
|
1549
1559
|
} else
|
|
1550
|
-
return
|
|
1560
|
+
return Xe(t, e);
|
|
1551
1561
|
}
|
|
1552
1562
|
function Re() {
|
|
1553
1563
|
const t = {}, e = (r) => r || "default";
|
|
@@ -1565,7 +1575,7 @@ function Re() {
|
|
|
1565
1575
|
const n = s();
|
|
1566
1576
|
Array.isArray(n) ? i.push(...n) : i.push(n);
|
|
1567
1577
|
} else h.Undef(s) || i.push(s);
|
|
1568
|
-
}),
|
|
1578
|
+
}), zr(i, r);
|
|
1569
1579
|
},
|
|
1570
1580
|
getSlots() {
|
|
1571
1581
|
let r = [];
|
|
@@ -1588,15 +1598,15 @@ function Re() {
|
|
|
1588
1598
|
function Se(t, e) {
|
|
1589
1599
|
return Object.setPrototypeOf(t, e), t;
|
|
1590
1600
|
}
|
|
1591
|
-
const
|
|
1592
|
-
"==": (t, e) => JSON.stringify(t) === JSON.stringify(
|
|
1601
|
+
const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ce = {
|
|
1602
|
+
"==": (t, e) => JSON.stringify(t) === JSON.stringify(dt(t, e)),
|
|
1593
1603
|
"!=": (t, e) => !ce["=="](t, e),
|
|
1594
1604
|
">": (t, e) => t > e,
|
|
1595
1605
|
">=": (t, e) => t >= e,
|
|
1596
1606
|
"<": (t, e) => t < e,
|
|
1597
1607
|
"<=": (t, e) => t <= e,
|
|
1598
1608
|
on(t, e) {
|
|
1599
|
-
return t && t.indexOf && t.indexOf(
|
|
1609
|
+
return t && t.indexOf && t.indexOf(dt(t[0], e)) > -1;
|
|
1600
1610
|
},
|
|
1601
1611
|
notOn(t, e) {
|
|
1602
1612
|
return !ce.on(t, e);
|
|
@@ -1628,7 +1638,7 @@ function B(t, e) {
|
|
|
1628
1638
|
t != null && (t = t[r]);
|
|
1629
1639
|
}), t;
|
|
1630
1640
|
}
|
|
1631
|
-
function
|
|
1641
|
+
function Xr(t) {
|
|
1632
1642
|
const e = /{{\s*(.*?)\s*}}/g;
|
|
1633
1643
|
let r;
|
|
1634
1644
|
const i = {};
|
|
@@ -1636,20 +1646,20 @@ function xr(t) {
|
|
|
1636
1646
|
r[1] && (i[r[1]] = !0);
|
|
1637
1647
|
return Object.keys(i);
|
|
1638
1648
|
}
|
|
1639
|
-
function
|
|
1649
|
+
function pt(t) {
|
|
1640
1650
|
let e = t.split("."), r = [], i = "";
|
|
1641
1651
|
return e.forEach((s, n) => {
|
|
1642
1652
|
n === 0 ? i = s : i += "." + s, r.push(i);
|
|
1643
1653
|
}), r.join(" && ");
|
|
1644
1654
|
}
|
|
1645
|
-
function
|
|
1655
|
+
function Lt(t) {
|
|
1646
1656
|
const e = [];
|
|
1647
1657
|
let r = "", i = 0;
|
|
1648
1658
|
for (let s = 0; s < t.length; s++) {
|
|
1649
1659
|
const n = t[s];
|
|
1650
1660
|
n === "[" ? (i === 0 && r && (e.push({ type: "key", value: r }), r = ""), i++, r += n) : n === "]" ? (i--, r += n, i === 0 && (e.push({
|
|
1651
1661
|
type: "bracket",
|
|
1652
|
-
value:
|
|
1662
|
+
value: Lt(r.slice(1, -1))
|
|
1653
1663
|
}), r = "")) : n === "." && i === 0 ? r && (e.push({ type: "key", value: r }), r = "") : r += n;
|
|
1654
1664
|
}
|
|
1655
1665
|
return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
|
|
@@ -1662,7 +1672,7 @@ const je = (t, e) => {
|
|
|
1662
1672
|
return je(t.$parent, e);
|
|
1663
1673
|
}
|
|
1664
1674
|
};
|
|
1665
|
-
function
|
|
1675
|
+
function Zr(t, e, r) {
|
|
1666
1676
|
const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
|
|
1667
1677
|
return {
|
|
1668
1678
|
name: i,
|
|
@@ -1714,16 +1724,16 @@ function zr(t, e, r) {
|
|
|
1714
1724
|
return this.fc.render();
|
|
1715
1725
|
},
|
|
1716
1726
|
setup(s) {
|
|
1717
|
-
const n =
|
|
1718
|
-
|
|
1719
|
-
const o =
|
|
1727
|
+
const n = ur().proxy;
|
|
1728
|
+
fr("parentFC", n);
|
|
1729
|
+
const o = cr("parentFC", null);
|
|
1720
1730
|
let a = o;
|
|
1721
1731
|
if (o)
|
|
1722
1732
|
for (; a.parent; )
|
|
1723
1733
|
a = a.parent;
|
|
1724
1734
|
else
|
|
1725
1735
|
a = n;
|
|
1726
|
-
const { rule: l, value: u, subForm: f, inFor: p } =
|
|
1736
|
+
const { rule: l, value: u, subForm: f, inFor: p } = ut(s), d = ne({
|
|
1727
1737
|
ctxInject: {},
|
|
1728
1738
|
destroyed: !1,
|
|
1729
1739
|
isShow: !0,
|
|
@@ -1748,8 +1758,8 @@ function zr(t, e, r) {
|
|
|
1748
1758
|
E.subForm();
|
|
1749
1759
|
};
|
|
1750
1760
|
let V = null;
|
|
1751
|
-
|
|
1752
|
-
|
|
1761
|
+
hr(() => {
|
|
1762
|
+
N(() => {
|
|
1753
1763
|
let E = "";
|
|
1754
1764
|
const R = s.option && s.option.globalClass || {};
|
|
1755
1765
|
Object.keys(R).forEach((M) => {
|
|
@@ -1761,32 +1771,32 @@ function zr(t, e, r) {
|
|
|
1761
1771
|
}, () => {
|
|
1762
1772
|
});
|
|
1763
1773
|
});
|
|
1764
|
-
const
|
|
1774
|
+
const L = se(() => {
|
|
1765
1775
|
g.bus.$emit("$loadData.$topForm");
|
|
1766
1776
|
}, 100), de = se(function() {
|
|
1767
1777
|
g.bus.$emit("$loadData.$scopeForm");
|
|
1768
|
-
}, 100),
|
|
1778
|
+
}, 100), Pe = se(() => {
|
|
1769
1779
|
g.bus.$emit("$loadData.$form");
|
|
1770
1780
|
}, 100), pe = (E) => {
|
|
1771
1781
|
g.bus.$emit("change-$form." + E);
|
|
1772
1782
|
};
|
|
1773
|
-
return
|
|
1774
|
-
o && (y.top.bus.$on("$loadData.$form",
|
|
1775
|
-
}), dr(() => {
|
|
1776
|
-
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);
|
|
1783
|
+
return dr(() => {
|
|
1784
|
+
o && (y.top.bus.$on("$loadData.$form", L), y.top.bus.$on("change", pe)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", de), g.mounted();
|
|
1777
1785
|
}), pr(() => {
|
|
1786
|
+
o && (y.top.bus.$off("$loadData.$form", L), 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);
|
|
1787
|
+
}), mr(() => {
|
|
1778
1788
|
g.updated();
|
|
1779
|
-
}),
|
|
1789
|
+
}), N(f, (E) => {
|
|
1780
1790
|
E ? k() : G();
|
|
1781
|
-
}, { immediate: !0 }),
|
|
1791
|
+
}, { immediate: !0 }), N(() => s.option, () => {
|
|
1782
1792
|
g.initOptions(), y.refresh();
|
|
1783
|
-
}, { deep: !0, flush: "sync" }),
|
|
1793
|
+
}, { deep: !0, flush: "sync" }), N(() => [...l.value], (E) => {
|
|
1784
1794
|
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());
|
|
1785
|
-
}),
|
|
1795
|
+
}), N(() => [s.disabled, s.preview], () => {
|
|
1786
1796
|
y.refresh();
|
|
1787
|
-
}),
|
|
1797
|
+
}), N(u, (E) => {
|
|
1788
1798
|
we(E || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(E || {}) : y.setValue(E || {}));
|
|
1789
|
-
}, { deep: !0, flush: "post" }),
|
|
1799
|
+
}, { deep: !0, flush: "post" }), N(() => s.index, () => {
|
|
1790
1800
|
y.coverValue({}), g.$handle.updateAppendData(), P(() => {
|
|
1791
1801
|
P(() => {
|
|
1792
1802
|
y.clearValidateState();
|
|
@@ -1797,7 +1807,7 @@ function zr(t, e, r) {
|
|
|
1797
1807
|
parent: o && ge(o),
|
|
1798
1808
|
top: ge(a),
|
|
1799
1809
|
fapi: ge(y)
|
|
1800
|
-
},
|
|
1810
|
+
}, ut(d)), {
|
|
1801
1811
|
getGroupInject: () => je(n, o),
|
|
1802
1812
|
refresh() {
|
|
1803
1813
|
++d.unique;
|
|
@@ -1809,7 +1819,7 @@ function zr(t, e, r) {
|
|
|
1809
1819
|
if (d.destroyed) return;
|
|
1810
1820
|
const R = we(E);
|
|
1811
1821
|
d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", E), P(() => {
|
|
1812
|
-
|
|
1822
|
+
Pe(), o ? f.value || de() : (L(), de());
|
|
1813
1823
|
}));
|
|
1814
1824
|
}
|
|
1815
1825
|
});
|
|
@@ -1819,7 +1829,7 @@ function zr(t, e, r) {
|
|
|
1819
1829
|
}
|
|
1820
1830
|
};
|
|
1821
1831
|
}
|
|
1822
|
-
function
|
|
1832
|
+
function Nt() {
|
|
1823
1833
|
return {
|
|
1824
1834
|
props: {},
|
|
1825
1835
|
on: {},
|
|
@@ -1833,14 +1843,14 @@ function Lt() {
|
|
|
1833
1843
|
}
|
|
1834
1844
|
function T(t, e) {
|
|
1835
1845
|
return (r, i, s, n = {}) => {
|
|
1836
|
-
const o = new
|
|
1846
|
+
const o = new rt(t, r, i, s, n);
|
|
1837
1847
|
return e && (h.Function(e) ? e(o) : o.props(e)), o;
|
|
1838
1848
|
};
|
|
1839
1849
|
}
|
|
1840
|
-
function
|
|
1841
|
-
this._data = _(
|
|
1850
|
+
function rt(t, e, r, i, s) {
|
|
1851
|
+
this._data = _(Nt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
|
|
1842
1852
|
}
|
|
1843
|
-
_(
|
|
1853
|
+
_(rt.prototype, {
|
|
1844
1854
|
getRule() {
|
|
1845
1855
|
return this._data;
|
|
1846
1856
|
},
|
|
@@ -1849,39 +1859,39 @@ _(tt.prototype, {
|
|
|
1849
1859
|
},
|
|
1850
1860
|
_clone() {
|
|
1851
1861
|
const t = new this.constructor();
|
|
1852
|
-
return t._data =
|
|
1862
|
+
return t._data = Pt(this._data), t;
|
|
1853
1863
|
}
|
|
1854
1864
|
});
|
|
1855
|
-
function
|
|
1865
|
+
function Mt(t) {
|
|
1856
1866
|
t.forEach((e) => {
|
|
1857
|
-
|
|
1867
|
+
rt.prototype[e] = function(r) {
|
|
1858
1868
|
return ee(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
|
|
1859
1869
|
};
|
|
1860
1870
|
});
|
|
1861
1871
|
}
|
|
1862
|
-
|
|
1863
|
-
const
|
|
1864
|
-
function
|
|
1865
|
-
let i =
|
|
1872
|
+
Mt(It());
|
|
1873
|
+
const qt = T("");
|
|
1874
|
+
function Qr(t, e, r) {
|
|
1875
|
+
let i = qt("", e);
|
|
1866
1876
|
return i._data.type = t, i._data.title = r, i;
|
|
1867
1877
|
}
|
|
1868
|
-
function
|
|
1869
|
-
let s =
|
|
1878
|
+
function mt(t, e, r, i) {
|
|
1879
|
+
let s = qt("", r);
|
|
1870
1880
|
return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
|
|
1871
1881
|
}
|
|
1872
|
-
function
|
|
1882
|
+
function Yr() {
|
|
1873
1883
|
return {
|
|
1874
|
-
create:
|
|
1875
|
-
createTmp:
|
|
1876
|
-
template:
|
|
1884
|
+
create: Qr,
|
|
1885
|
+
createTmp: mt,
|
|
1886
|
+
template: mt,
|
|
1877
1887
|
factory: T
|
|
1878
1888
|
};
|
|
1879
1889
|
}
|
|
1880
|
-
function
|
|
1890
|
+
function ei(t, e, r) {
|
|
1881
1891
|
const i = `fail to ${t} ${r.status}'`, s = new Error(i);
|
|
1882
1892
|
return s.status = r.status, s.url = t, s;
|
|
1883
1893
|
}
|
|
1884
|
-
function
|
|
1894
|
+
function gt(t) {
|
|
1885
1895
|
const e = t.responseText || t.response;
|
|
1886
1896
|
if (!e)
|
|
1887
1897
|
return e;
|
|
@@ -1891,7 +1901,7 @@ function mt(t) {
|
|
|
1891
1901
|
return e;
|
|
1892
1902
|
}
|
|
1893
1903
|
}
|
|
1894
|
-
function
|
|
1904
|
+
function Ut(t) {
|
|
1895
1905
|
if (typeof XMLHttpRequest == "undefined")
|
|
1896
1906
|
return;
|
|
1897
1907
|
const e = new XMLHttpRequest();
|
|
@@ -1899,15 +1909,15 @@ function qt(t) {
|
|
|
1899
1909
|
if (e.upload && t.onProgress && e.upload.addEventListener("progress", (n) => {
|
|
1900
1910
|
n.percent = n.total > 0 ? n.loaded / n.total * 100 : 0, t.onProgress(n);
|
|
1901
1911
|
}), t.query) {
|
|
1902
|
-
const n =
|
|
1903
|
-
|
|
1912
|
+
const n = h.String(t.query) ? t.query : Object.keys(t.query).reduce((a, l) => (a[l] = t.query[l] === null || t.query[l] === void 0 ? "" : t.query[l], a), {}), o = new URLSearchParams(n).toString();
|
|
1913
|
+
o && (r.includes("?") ? r += `&${o}` : r += `?${o}`);
|
|
1904
1914
|
}
|
|
1905
1915
|
e.onerror = function(o) {
|
|
1906
1916
|
t.onError(o);
|
|
1907
1917
|
}, e.onload = function() {
|
|
1908
1918
|
if (e.status < 200 || e.status >= 300)
|
|
1909
|
-
return t.onError(
|
|
1910
|
-
t.onSuccess(
|
|
1919
|
+
return t.onError(ei(r, t, e), gt(e));
|
|
1920
|
+
t.onSuccess(gt(e));
|
|
1911
1921
|
}, e.open(t.method || "get", r, !0);
|
|
1912
1922
|
let i;
|
|
1913
1923
|
(t.data || t.file) && (t.file || (t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data || {}).map((n) => {
|
|
@@ -1918,13 +1928,15 @@ function qt(t) {
|
|
|
1918
1928
|
s[n] != null && e.setRequestHeader(n, s[n]);
|
|
1919
1929
|
}), e.send(i);
|
|
1920
1930
|
}
|
|
1921
|
-
function
|
|
1931
|
+
function yt(t, e, r) {
|
|
1922
1932
|
return new Promise((i, s) => {
|
|
1923
|
-
(e ||
|
|
1933
|
+
(e || Ut)(q(v({}, t), {
|
|
1924
1934
|
onSuccess(n) {
|
|
1925
1935
|
let o = (l) => l;
|
|
1926
1936
|
const a = z(t.parse);
|
|
1927
|
-
h.Function(a) ? o = a : a && h.String(a) && (o = (l) => B(l, a)),
|
|
1937
|
+
h.Function(a) ? o = a : a && h.String(a) && (o = (l) => B(l, a)), Ve(o(n, t.targetRule, r)).then((l) => {
|
|
1938
|
+
i(l);
|
|
1939
|
+
});
|
|
1928
1940
|
},
|
|
1929
1941
|
onError(n) {
|
|
1930
1942
|
s(n);
|
|
@@ -1935,7 +1947,7 @@ function gt(t, e, r) {
|
|
|
1935
1947
|
function _e(t) {
|
|
1936
1948
|
return K(t);
|
|
1937
1949
|
}
|
|
1938
|
-
function
|
|
1950
|
+
function ti(t) {
|
|
1939
1951
|
function e(n) {
|
|
1940
1952
|
return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
|
|
1941
1953
|
}
|
|
@@ -2263,7 +2275,7 @@ function Yr(t) {
|
|
|
2263
2275
|
method(n, o) {
|
|
2264
2276
|
const a = s.el(n);
|
|
2265
2277
|
if (!a || !a[o])
|
|
2266
|
-
throw new Error(
|
|
2278
|
+
throw new Error(Rt("err", `${o} 方法不存在`));
|
|
2267
2279
|
return (...l) => a[o](...l);
|
|
2268
2280
|
},
|
|
2269
2281
|
exec(n, o, ...a) {
|
|
@@ -2367,7 +2379,7 @@ function Yr(t) {
|
|
|
2367
2379
|
},
|
|
2368
2380
|
fetch(n) {
|
|
2369
2381
|
return new Promise((o, a) => {
|
|
2370
|
-
n = K(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() =>
|
|
2382
|
+
n = K(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => yt(n, t.fc.create.fetch, s).then((l) => {
|
|
2371
2383
|
O(() => n.onSuccess && n.onSuccess(l)), o(l);
|
|
2372
2384
|
}).catch((l) => {
|
|
2373
2385
|
O(() => n.onError && n.onError(l)), a(l);
|
|
@@ -2378,7 +2390,7 @@ function Yr(t) {
|
|
|
2378
2390
|
watchFetch(n, o, a, l) {
|
|
2379
2391
|
return t.fc.watchLoadData((u, f) => {
|
|
2380
2392
|
let p = K(n);
|
|
2381
|
-
p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() =>
|
|
2393
|
+
p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((d) => {
|
|
2382
2394
|
O(() => p.onSuccess && p.onSuccess(d)), o && o(d, f);
|
|
2383
2395
|
}).catch((d) => {
|
|
2384
2396
|
O(() => p.onError && p.onError(d)), a && a(d);
|
|
@@ -2412,7 +2424,7 @@ function Yr(t) {
|
|
|
2412
2424
|
};
|
|
2413
2425
|
}), s.changeValue = s.changeField = s.setValue, s;
|
|
2414
2426
|
}
|
|
2415
|
-
function
|
|
2427
|
+
function ri(t) {
|
|
2416
2428
|
_(t.prototype, {
|
|
2417
2429
|
initCache() {
|
|
2418
2430
|
this.clearCacheAll();
|
|
@@ -2448,12 +2460,12 @@ function J(t) {
|
|
|
2448
2460
|
const e = t.replace(/(-[a-z])/g, function(r) {
|
|
2449
2461
|
return r.replace("-", "").toLocaleUpperCase();
|
|
2450
2462
|
});
|
|
2451
|
-
return
|
|
2463
|
+
return Ht(e);
|
|
2452
2464
|
}
|
|
2453
|
-
function
|
|
2465
|
+
function Ht(t) {
|
|
2454
2466
|
return t.replace(t[0], t[0].toLowerCase());
|
|
2455
2467
|
}
|
|
2456
|
-
function
|
|
2468
|
+
function ii(t) {
|
|
2457
2469
|
_(t.prototype, {
|
|
2458
2470
|
initRender() {
|
|
2459
2471
|
this.cacheConfig = {};
|
|
@@ -2548,7 +2560,7 @@ function ti(t) {
|
|
|
2548
2560
|
});
|
|
2549
2561
|
const d = this.getTypeSlot(e);
|
|
2550
2562
|
let g;
|
|
2551
|
-
return d ? (u.children = f, g = d(u)) : g = a ? e.parser.preview(
|
|
2563
|
+
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;
|
|
2552
2564
|
}, this.setCache(e, s, r);
|
|
2553
2565
|
}
|
|
2554
2566
|
return (...s) => {
|
|
@@ -2705,7 +2717,7 @@ function ti(t) {
|
|
|
2705
2717
|
},
|
|
2706
2718
|
defaultRender(e, r) {
|
|
2707
2719
|
const i = e.prop;
|
|
2708
|
-
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(
|
|
2720
|
+
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(Ht(i.type), i, r);
|
|
2709
2721
|
},
|
|
2710
2722
|
createChildrenVnodes(e, r, i) {
|
|
2711
2723
|
this.force = i !== !1, this.tmpInput = r;
|
|
@@ -2738,8 +2750,8 @@ function ti(t) {
|
|
|
2738
2750
|
}
|
|
2739
2751
|
});
|
|
2740
2752
|
}
|
|
2741
|
-
let
|
|
2742
|
-
function
|
|
2753
|
+
let ni = 1;
|
|
2754
|
+
function it(t) {
|
|
2743
2755
|
_(this, {
|
|
2744
2756
|
$handle: t,
|
|
2745
2757
|
fc: t.fc,
|
|
@@ -2748,8 +2760,8 @@ function rt(t) {
|
|
|
2748
2760
|
vNode: new t.fc.CreateNode(t),
|
|
2749
2761
|
force: !1,
|
|
2750
2762
|
tmpInput: null,
|
|
2751
|
-
id:
|
|
2752
|
-
}),
|
|
2763
|
+
id: ni++
|
|
2764
|
+
}), Bt(this, {
|
|
2753
2765
|
options() {
|
|
2754
2766
|
return t.options;
|
|
2755
2767
|
},
|
|
@@ -2758,9 +2770,9 @@ function rt(t) {
|
|
|
2758
2770
|
}
|
|
2759
2771
|
}), this.initCache(), this.initRender();
|
|
2760
2772
|
}
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
function
|
|
2773
|
+
ri(it);
|
|
2774
|
+
ii(it);
|
|
2775
|
+
function si(t) {
|
|
2764
2776
|
_(t.prototype, {
|
|
2765
2777
|
parseInjectEvent(e, r) {
|
|
2766
2778
|
const i = e.inject || this.options.injectEvent;
|
|
@@ -2827,7 +2839,7 @@ function ii(t) {
|
|
|
2827
2839
|
},
|
|
2828
2840
|
loadStrVar(e, r, i) {
|
|
2829
2841
|
if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
|
|
2830
|
-
const s = e, n =
|
|
2842
|
+
const s = e, n = Xr(e), o = (u) => {
|
|
2831
2843
|
let f = !1, p;
|
|
2832
2844
|
if (i && u.indexOf("$form.") === 0) {
|
|
2833
2845
|
const d = u.split(".");
|
|
@@ -2851,7 +2863,7 @@ function ii(t) {
|
|
|
2851
2863
|
if (n.forEach((u) => {
|
|
2852
2864
|
const f = u.split("||"), p = f[0].trim();
|
|
2853
2865
|
if (p) {
|
|
2854
|
-
const d = (f[1] || "").trim(), g =
|
|
2866
|
+
const d = (f[1] || "").trim(), g = Lt(p);
|
|
2855
2867
|
let y = O(() => a(g));
|
|
2856
2868
|
(y == null || y === "") && f.length > 1 && (y = d), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
|
|
2857
2869
|
}
|
|
@@ -2866,7 +2878,7 @@ function ii(t) {
|
|
|
2866
2878
|
const n = (o) => this.loadStrVar(o, r, s ? { rule: i, value: this.subRuleData[s.id] || {} } : null);
|
|
2867
2879
|
return e.action = n(e.action || ""), ["headers", "data", "query"].forEach((o) => {
|
|
2868
2880
|
if (e[o]) {
|
|
2869
|
-
const a = {};
|
|
2881
|
+
const a = Array.isArray(e[o]) ? [] : {};
|
|
2870
2882
|
Object.keys(e[o]).forEach((l) => {
|
|
2871
2883
|
a[n(l)] = n(e[o][l]);
|
|
2872
2884
|
}), e[o] = a;
|
|
@@ -2875,13 +2887,13 @@ function ii(t) {
|
|
|
2875
2887
|
}
|
|
2876
2888
|
});
|
|
2877
2889
|
}
|
|
2878
|
-
const
|
|
2879
|
-
function
|
|
2890
|
+
const $t = ["hook:updated", "hook:mounted"];
|
|
2891
|
+
function oi(t) {
|
|
2880
2892
|
_(t.prototype, {
|
|
2881
2893
|
usePage() {
|
|
2882
2894
|
const e = this.options.page;
|
|
2883
2895
|
if (!e) return;
|
|
2884
|
-
let r = 25, i =
|
|
2896
|
+
let r = 25, i = ai(this.rules);
|
|
2885
2897
|
h.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (i = parseInt(e.limit, 10) || i)), _(this, {
|
|
2886
2898
|
first: r,
|
|
2887
2899
|
limit: i,
|
|
@@ -2890,16 +2902,16 @@ function ni(t) {
|
|
|
2890
2902
|
},
|
|
2891
2903
|
pageLoad() {
|
|
2892
2904
|
const e = () => {
|
|
2893
|
-
this.pageEnd ? (this.vm.$off(
|
|
2905
|
+
this.pageEnd ? (this.vm.$off($t, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
|
|
2894
2906
|
};
|
|
2895
|
-
this.vm.$on(
|
|
2907
|
+
this.vm.$on($t, e);
|
|
2896
2908
|
}
|
|
2897
2909
|
});
|
|
2898
2910
|
}
|
|
2899
|
-
function
|
|
2911
|
+
function ai(t) {
|
|
2900
2912
|
return t.length < 31 ? 31 : Math.ceil(t.length / 3);
|
|
2901
2913
|
}
|
|
2902
|
-
function
|
|
2914
|
+
function li(t) {
|
|
2903
2915
|
_(t.prototype, {
|
|
2904
2916
|
clearNextTick() {
|
|
2905
2917
|
this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
|
|
@@ -2914,15 +2926,15 @@ function oi(t) {
|
|
|
2914
2926
|
}
|
|
2915
2927
|
});
|
|
2916
2928
|
}
|
|
2917
|
-
function
|
|
2929
|
+
function ui(t) {
|
|
2918
2930
|
Object.defineProperties(t.origin, {
|
|
2919
|
-
__fc__:
|
|
2931
|
+
__fc__: ze(ge(t), !0)
|
|
2920
2932
|
}), t.rule !== t.origin && Object.defineProperties(t.rule, {
|
|
2921
|
-
__fc__:
|
|
2933
|
+
__fc__: ze(ge(t), !0)
|
|
2922
2934
|
});
|
|
2923
2935
|
}
|
|
2924
|
-
function
|
|
2925
|
-
const i =
|
|
2936
|
+
function Gt(t, e, r) {
|
|
2937
|
+
const i = Ie(), s = !!e.field;
|
|
2926
2938
|
_(this, {
|
|
2927
2939
|
id: i,
|
|
2928
2940
|
ref: i,
|
|
@@ -2949,9 +2961,9 @@ function Ht(t, e, r) {
|
|
|
2949
2961
|
exportEl: void 0,
|
|
2950
2962
|
defaultValue: s ? K(r) : void 0,
|
|
2951
2963
|
field: e.field || void 0
|
|
2952
|
-
}), this.updateKey(),
|
|
2964
|
+
}), this.updateKey(), ui(this), this.update(t, !0);
|
|
2953
2965
|
}
|
|
2954
|
-
_(
|
|
2966
|
+
_(Gt.prototype, {
|
|
2955
2967
|
getParentGroup() {
|
|
2956
2968
|
let t = this.parent;
|
|
2957
2969
|
for (; t; ) {
|
|
@@ -3021,7 +3033,7 @@ _(Ht.prototype, {
|
|
|
3021
3033
|
t === void 0 ? this.payload = {} : delete this.payload[t];
|
|
3022
3034
|
},
|
|
3023
3035
|
updateKey(t) {
|
|
3024
|
-
this.key =
|
|
3036
|
+
this.key = Ie(), t && this.parent && this.parent.updateKey(t);
|
|
3025
3037
|
},
|
|
3026
3038
|
updateType() {
|
|
3027
3039
|
this.originType = this.rule.type, this.type = J(this.rule.type), this.trueType = this.$handle.getType(this.originType);
|
|
@@ -3047,7 +3059,9 @@ _(Ht.prototype, {
|
|
|
3047
3059
|
return this.vm === t.vm;
|
|
3048
3060
|
},
|
|
3049
3061
|
unwatch() {
|
|
3050
|
-
this.watch.forEach((t) => t()), this.watch = [], this.refRule
|
|
3062
|
+
this.watch.forEach((t) => t()), this.watch = [], Object.keys(this.refRule).forEach((t) => {
|
|
3063
|
+
t.indexOf("__$") !== 0 && delete this.refRule[t];
|
|
3064
|
+
});
|
|
3051
3065
|
},
|
|
3052
3066
|
unlink() {
|
|
3053
3067
|
this.linkOn.forEach((t) => t()), this.linkOn = [];
|
|
@@ -3101,7 +3115,7 @@ _(Ht.prototype, {
|
|
|
3101
3115
|
}), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
|
|
3102
3116
|
}
|
|
3103
3117
|
});
|
|
3104
|
-
function
|
|
3118
|
+
function fi(t) {
|
|
3105
3119
|
_(t.prototype, {
|
|
3106
3120
|
nextRefresh(e) {
|
|
3107
3121
|
const r = this.loadedId;
|
|
@@ -3110,10 +3124,10 @@ function li(t) {
|
|
|
3110
3124
|
});
|
|
3111
3125
|
},
|
|
3112
3126
|
parseRule(e) {
|
|
3113
|
-
const r =
|
|
3127
|
+
const r = ht(e);
|
|
3114
3128
|
return Object.defineProperties(r, {
|
|
3115
|
-
__origin__:
|
|
3116
|
-
}),
|
|
3129
|
+
__origin__: ze(e, !0)
|
|
3130
|
+
}), ci(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
|
|
3117
3131
|
i && this.loadFn(i, r);
|
|
3118
3132
|
}), this.loadCtrl(r), r.update && (r.update = z(r.update)), r;
|
|
3119
3133
|
},
|
|
@@ -3160,26 +3174,26 @@ function li(t) {
|
|
|
3160
3174
|
if (r && !h.Object(o) || !this.pageEnd && !r && a >= this.first) return;
|
|
3161
3175
|
if (o.__fc__ && o.__fc__.root === e && this.ctxs[o.__fc__.id])
|
|
3162
3176
|
return s(o.__fc__.loadChildrenPending(), o.__fc__), o.__fc__;
|
|
3163
|
-
let l =
|
|
3177
|
+
let l = ht(o);
|
|
3164
3178
|
const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
|
|
3165
3179
|
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);
|
|
3166
3180
|
let f, p = !1, d = !!o.__fc__, g = l.value;
|
|
3167
3181
|
if (d) {
|
|
3168
3182
|
if (f = o.__fc__, g = f.defaultValue, f.deleted) {
|
|
3169
|
-
if (
|
|
3183
|
+
if (bt(f))
|
|
3170
3184
|
return;
|
|
3171
3185
|
f.update(this);
|
|
3172
3186
|
} else if (!f.check(this)) {
|
|
3173
|
-
if (
|
|
3187
|
+
if (bt(f))
|
|
3174
3188
|
return;
|
|
3175
|
-
e[a] = o = o._clone ? o._clone() :
|
|
3189
|
+
e[a] = o = o._clone ? o._clone() : St(we(o)), f = null, p = !0;
|
|
3176
3190
|
}
|
|
3177
3191
|
}
|
|
3178
3192
|
if (f)
|
|
3179
3193
|
f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
|
|
3180
3194
|
else {
|
|
3181
3195
|
const k = this.parseRule(o);
|
|
3182
|
-
f = new
|
|
3196
|
+
f = new Gt(this, k, g), this.bindParser(f);
|
|
3183
3197
|
}
|
|
3184
3198
|
[!1, !0].forEach((k) => this.parseEmit(f, k)), 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");
|
|
3185
3199
|
const y = f.loadChildrenPending();
|
|
@@ -3198,7 +3212,7 @@ function li(t) {
|
|
|
3198
3212
|
return e.input && e.rule.control && this.useCtrl(e);
|
|
3199
3213
|
},
|
|
3200
3214
|
useCtrl(e) {
|
|
3201
|
-
const r =
|
|
3215
|
+
const r = hi(e), i = [], s = this.api;
|
|
3202
3216
|
if (!r.length) return !1;
|
|
3203
3217
|
for (let a = 0; a < r.length; a++) {
|
|
3204
3218
|
const l = r[a], u = l.handle || function(p) {
|
|
@@ -3207,7 +3221,7 @@ function li(t) {
|
|
|
3207
3221
|
if (!h.trueArray(l.rule)) continue;
|
|
3208
3222
|
const f = q(v({}, l), {
|
|
3209
3223
|
valid: O(() => u(e.rule.value, s)),
|
|
3210
|
-
ctrl:
|
|
3224
|
+
ctrl: di(e, l.rule),
|
|
3211
3225
|
isHidden: h.String(l.rule[0])
|
|
3212
3226
|
});
|
|
3213
3227
|
f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || i.push(f);
|
|
@@ -3270,27 +3284,27 @@ function li(t) {
|
|
|
3270
3284
|
}
|
|
3271
3285
|
});
|
|
3272
3286
|
}
|
|
3273
|
-
function
|
|
3274
|
-
const e =
|
|
3287
|
+
function ci(t) {
|
|
3288
|
+
const e = Nt();
|
|
3275
3289
|
return Object.keys(e).forEach((r) => {
|
|
3276
3290
|
j(t, r) || F(t, r, e[r]);
|
|
3277
3291
|
}), t;
|
|
3278
3292
|
}
|
|
3279
|
-
function
|
|
3293
|
+
function hi(t) {
|
|
3280
3294
|
const e = t.rule.control || [];
|
|
3281
3295
|
return h.Object(e) ? [e] : e;
|
|
3282
3296
|
}
|
|
3283
|
-
function
|
|
3297
|
+
function di(t, e) {
|
|
3284
3298
|
for (let r = 0; r < t.ctrlRule.length; r++) {
|
|
3285
3299
|
const i = t.ctrlRule[r];
|
|
3286
3300
|
if (i.children === e)
|
|
3287
3301
|
return i;
|
|
3288
3302
|
}
|
|
3289
3303
|
}
|
|
3290
|
-
function
|
|
3304
|
+
function bt(t) {
|
|
3291
3305
|
return !!t.rule.__ctrl;
|
|
3292
3306
|
}
|
|
3293
|
-
function
|
|
3307
|
+
function pi(t) {
|
|
3294
3308
|
_(t.prototype, {
|
|
3295
3309
|
setValue(e, r, i, s) {
|
|
3296
3310
|
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, {
|
|
@@ -3343,7 +3357,7 @@ function hi(t) {
|
|
|
3343
3357
|
return e.rule.ignore === !0 || (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields) && e.hasHidden();
|
|
3344
3358
|
},
|
|
3345
3359
|
appendValue(e) {
|
|
3346
|
-
(!e.field || !j(this.appendData, e.field)) && !this.options.forceCoverValue || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
|
|
3360
|
+
(!e.field || !j(this.appendData, e.field)) && (!h.Undef(e.value) || !this.options.forceCoverValue) || (e.value = this.appendData[e.field], delete this.appendData[e.field]);
|
|
3347
3361
|
},
|
|
3348
3362
|
addSubForm(e, r) {
|
|
3349
3363
|
this.subForm[e.id] = r;
|
|
@@ -3360,7 +3374,7 @@ function hi(t) {
|
|
|
3360
3374
|
}), this.vm.updateValue(e);
|
|
3361
3375
|
},
|
|
3362
3376
|
isChange(e, r) {
|
|
3363
|
-
return JSON.stringify(this.getFormData(e),
|
|
3377
|
+
return JSON.stringify(this.getFormData(e), vt) !== JSON.stringify(r, vt);
|
|
3364
3378
|
},
|
|
3365
3379
|
isQuote(e, r) {
|
|
3366
3380
|
return (r instanceof Function || h.Object(r) || Array.isArray(r)) && r === e.rule.value;
|
|
@@ -3393,7 +3407,7 @@ function hi(t) {
|
|
|
3393
3407
|
}
|
|
3394
3408
|
});
|
|
3395
3409
|
}
|
|
3396
|
-
function
|
|
3410
|
+
function vt(t, e) {
|
|
3397
3411
|
return typeof e == "function" ? "" + e : e;
|
|
3398
3412
|
}
|
|
3399
3413
|
const De = {
|
|
@@ -3415,8 +3429,8 @@ const De = {
|
|
|
3415
3429
|
},
|
|
3416
3430
|
mergeProp(t) {
|
|
3417
3431
|
}
|
|
3418
|
-
},
|
|
3419
|
-
function
|
|
3432
|
+
}, mi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Ce = Symbol("oldValue");
|
|
3433
|
+
function gi(t) {
|
|
3420
3434
|
_(t.prototype, {
|
|
3421
3435
|
getCtx(e) {
|
|
3422
3436
|
return this.getFieldCtx(e) || this.getNameCtx(e)[0] || this.ctxs[e];
|
|
@@ -3464,9 +3478,9 @@ function pi(t) {
|
|
|
3464
3478
|
this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
|
|
3465
3479
|
},
|
|
3466
3480
|
watchCtx(e) {
|
|
3467
|
-
if (
|
|
3481
|
+
if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && mi.indexOf(i) === -1).forEach((i) => {
|
|
3468
3482
|
const s = Ae(e.rule, i), n = i === "children";
|
|
3469
|
-
e.refRule[i] = s, e.watch.push(
|
|
3483
|
+
e.refRule[i] = s, e.watch.push(N(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
|
|
3470
3484
|
let l = s.value;
|
|
3471
3485
|
if (!this.isBreakWatch()) {
|
|
3472
3486
|
if (n && e.parser.loadChildren === !1) {
|
|
@@ -3533,7 +3547,7 @@ function pi(t) {
|
|
|
3533
3547
|
});
|
|
3534
3548
|
}), e.input) {
|
|
3535
3549
|
const i = Ae(e.rule, "value");
|
|
3536
|
-
e.watch.push(
|
|
3550
|
+
e.watch.push(N(() => i.value, () => {
|
|
3537
3551
|
let s = e.parser.toFormValue(i.value, e);
|
|
3538
3552
|
this.isChange(e, s) && this.setValue(e, i.value, s, !0);
|
|
3539
3553
|
}));
|
|
@@ -3549,7 +3563,7 @@ function pi(t) {
|
|
|
3549
3563
|
}), o = (a) => {
|
|
3550
3564
|
s === "value" ? this.onInput(e, a) : s[0] === "$" ? this.api.setEffect(e.id, s, a) : oe(e.rule, s, a);
|
|
3551
3565
|
};
|
|
3552
|
-
(s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : n.value !== B(e.rule, s)) && o(n.value), e.watch.push(
|
|
3566
|
+
(s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : n.value !== B(e.rule, s)) && o(n.value), e.watch.push(N(n, (a, l) => {
|
|
3553
3567
|
a === Ce || a === l || setTimeout(() => {
|
|
3554
3568
|
o(a);
|
|
3555
3569
|
});
|
|
@@ -3684,11 +3698,11 @@ function pi(t) {
|
|
|
3684
3698
|
if (p.variable)
|
|
3685
3699
|
g = JSON.stringify(this.fc.getLoadData(p.variable)) || "";
|
|
3686
3700
|
else if (p.field)
|
|
3687
|
-
g =
|
|
3701
|
+
g = pt(p.field || "");
|
|
3688
3702
|
else if (!p.mode)
|
|
3689
3703
|
return !0;
|
|
3690
3704
|
let y = p.compare;
|
|
3691
|
-
if (y && (y =
|
|
3705
|
+
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)
|
|
3692
3706
|
return !0;
|
|
3693
3707
|
l || (u = u && d);
|
|
3694
3708
|
}
|
|
@@ -3697,7 +3711,7 @@ function pi(t) {
|
|
|
3697
3711
|
let o = n(r);
|
|
3698
3712
|
return o = r.invert === !0 ? !o : o, r.linkage ? o ? O(() => this.computeValue(r.linkage, e, s), void 0) : Ce : r.linkageVariable ? o ? O(() => this.fc.getLoadData(r.linkageVariable), void 0) : Ce : o;
|
|
3699
3713
|
} else if (h.Function(r))
|
|
3700
|
-
i = () => r(this.api.form, this.api);
|
|
3714
|
+
i = () => r(this.api.form, this.api, e.rule);
|
|
3701
3715
|
else {
|
|
3702
3716
|
const s = e.getParentGroup();
|
|
3703
3717
|
i = () => this.computeValue(r, e, s);
|
|
@@ -3746,7 +3760,7 @@ function pi(t) {
|
|
|
3746
3760
|
}
|
|
3747
3761
|
});
|
|
3748
3762
|
}
|
|
3749
|
-
function
|
|
3763
|
+
function yi(t) {
|
|
3750
3764
|
_(t.prototype, {
|
|
3751
3765
|
mounted() {
|
|
3752
3766
|
const e = () => {
|
|
@@ -3780,7 +3794,7 @@ function mi(t) {
|
|
|
3780
3794
|
}));
|
|
3781
3795
|
};
|
|
3782
3796
|
n(s);
|
|
3783
|
-
let o = "deep" +
|
|
3797
|
+
let o = "deep" + Nr(r), a = e.parent;
|
|
3784
3798
|
for (; a; ) {
|
|
3785
3799
|
let d = (p = (f = a.prop) == null ? void 0 : f.hook) == null ? void 0 : p[o];
|
|
3786
3800
|
n(d, a), a = a.parent;
|
|
@@ -3788,13 +3802,13 @@ function mi(t) {
|
|
|
3788
3802
|
}
|
|
3789
3803
|
});
|
|
3790
3804
|
}
|
|
3791
|
-
function
|
|
3805
|
+
function $i(t) {
|
|
3792
3806
|
_(t.prototype, {
|
|
3793
3807
|
useProvider() {
|
|
3794
3808
|
const e = this.fc.providers;
|
|
3795
3809
|
Object.keys(e).forEach((r) => {
|
|
3796
3810
|
let i = e[r];
|
|
3797
|
-
h.Function(i) && (i = i(this.fc)), i._c =
|
|
3811
|
+
h.Function(i) && (i = i(this.fc)), i._c = vi(i), this.onEffect(i, r), this.providers[r] = i;
|
|
3798
3812
|
});
|
|
3799
3813
|
},
|
|
3800
3814
|
onEffect(e, r) {
|
|
@@ -3818,7 +3832,7 @@ function gi(t) {
|
|
|
3818
3832
|
}), Object.keys(e.rule).forEach((i) => {
|
|
3819
3833
|
i[0] === "$" && (r[i.substr(1)] = () => e.rule[i]);
|
|
3820
3834
|
}), Object.keys(r).forEach((i) => {
|
|
3821
|
-
e.watch.push(
|
|
3835
|
+
e.watch.push(N(r[i], (s) => {
|
|
3822
3836
|
this.effect(e, "watch", { [i]: s });
|
|
3823
3837
|
}, { deep: !0 }));
|
|
3824
3838
|
});
|
|
@@ -3864,20 +3878,20 @@ function gi(t) {
|
|
|
3864
3878
|
}
|
|
3865
3879
|
});
|
|
3866
3880
|
}
|
|
3867
|
-
function
|
|
3881
|
+
function bi(t) {
|
|
3868
3882
|
return t.filter(function(e, r, i) {
|
|
3869
3883
|
return i.indexOf(e, 0) === r;
|
|
3870
3884
|
});
|
|
3871
3885
|
}
|
|
3872
|
-
function
|
|
3886
|
+
function vi(t) {
|
|
3873
3887
|
const e = t.components;
|
|
3874
3888
|
if (Array.isArray(e)) {
|
|
3875
|
-
const r =
|
|
3889
|
+
const r = bi(e.filter((i) => i !== "*"));
|
|
3876
3890
|
return r.length ? r : !1;
|
|
3877
3891
|
} else return h.String(e) ? [e] : !1;
|
|
3878
3892
|
}
|
|
3879
3893
|
function X(t) {
|
|
3880
|
-
|
|
3894
|
+
Bt(this, {
|
|
3881
3895
|
options() {
|
|
3882
3896
|
return t.options.value || {};
|
|
3883
3897
|
},
|
|
@@ -3911,10 +3925,10 @@ function X(t) {
|
|
|
3911
3925
|
nextReload: () => {
|
|
3912
3926
|
this.lifecycle("reload");
|
|
3913
3927
|
}
|
|
3914
|
-
}), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new
|
|
3928
|
+
}), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new it(this), this.api = t.extendApiFn.reduce((e, r) => {
|
|
3915
3929
|
const i = O(() => r(e, this));
|
|
3916
3930
|
return i && i !== e && _(e, i), e;
|
|
3917
|
-
},
|
|
3931
|
+
}, ti(this));
|
|
3918
3932
|
}
|
|
3919
3933
|
_(X.prototype, {
|
|
3920
3934
|
initData(t) {
|
|
@@ -3954,26 +3968,26 @@ _(X.prototype, {
|
|
|
3954
3968
|
});
|
|
3955
3969
|
}
|
|
3956
3970
|
});
|
|
3957
|
-
|
|
3958
|
-
ni(X);
|
|
3971
|
+
si(X);
|
|
3959
3972
|
oi(X);
|
|
3960
3973
|
li(X);
|
|
3961
|
-
|
|
3974
|
+
fi(X);
|
|
3962
3975
|
pi(X);
|
|
3963
|
-
mi(X);
|
|
3964
3976
|
gi(X);
|
|
3965
|
-
|
|
3966
|
-
|
|
3977
|
+
yi(X);
|
|
3978
|
+
$i(X);
|
|
3979
|
+
const _i = "fcFragment", Ne = {
|
|
3980
|
+
name: _i,
|
|
3967
3981
|
functional: !0,
|
|
3968
3982
|
props: ["vnode"],
|
|
3969
3983
|
render(t, e) {
|
|
3970
3984
|
return e.props.vnode ? e.props.vnode : e.children;
|
|
3971
3985
|
}
|
|
3972
3986
|
};
|
|
3973
|
-
function
|
|
3987
|
+
function Ci(t) {
|
|
3974
3988
|
return h.String(t) ? { domProps: { innerHTML: t } } : t;
|
|
3975
3989
|
}
|
|
3976
|
-
function
|
|
3990
|
+
function wi() {
|
|
3977
3991
|
const t = {};
|
|
3978
3992
|
function e(r) {
|
|
3979
3993
|
r && this.setVm(r);
|
|
@@ -3990,7 +4004,7 @@ function _i() {
|
|
|
3990
4004
|
var a;
|
|
3991
4005
|
const n = this.handle.fc.prop.components[r];
|
|
3992
4006
|
n && (r = n);
|
|
3993
|
-
let o = this.$h(r,
|
|
4007
|
+
let o = this.$h(r, Ci(i), s || []);
|
|
3994
4008
|
if ((a = o == null ? void 0 : o.componentOptions) != null && a.propsData && (i != null && i.props)) {
|
|
3995
4009
|
const l = Object.keys(o.componentOptions.propsData);
|
|
3996
4010
|
o.data.attrs || (o.data.attrs = {}), Object.keys(i.props).forEach((u) => {
|
|
@@ -4007,7 +4021,7 @@ function _i() {
|
|
|
4007
4021
|
},
|
|
4008
4022
|
use(r) {
|
|
4009
4023
|
Object.keys(r).forEach((i) => {
|
|
4010
|
-
const s = be(i), n =
|
|
4024
|
+
const s = be(i), n = Et(i).toLocaleLowerCase(), o = r[i];
|
|
4011
4025
|
e.alias(i, o), [i, s, n].forEach((a) => {
|
|
4012
4026
|
e.prototype[a] = function(l, u) {
|
|
4013
4027
|
return this.make(t[i] || a, l, u);
|
|
@@ -4017,12 +4031,12 @@ function _i() {
|
|
|
4017
4031
|
}
|
|
4018
4032
|
}), e;
|
|
4019
4033
|
}
|
|
4020
|
-
function
|
|
4021
|
-
class e extends
|
|
4034
|
+
function Oi(t) {
|
|
4035
|
+
class e extends Jt {
|
|
4022
4036
|
}
|
|
4023
4037
|
return Object.assign(e.prototype, t), e;
|
|
4024
4038
|
}
|
|
4025
|
-
function
|
|
4039
|
+
function Jt(t) {
|
|
4026
4040
|
_(this, {
|
|
4027
4041
|
$handle: t,
|
|
4028
4042
|
vm: t.vm,
|
|
@@ -4033,12 +4047,12 @@ function Gt(t) {
|
|
|
4033
4047
|
}
|
|
4034
4048
|
}), this.updateKey(), this.init();
|
|
4035
4049
|
}
|
|
4036
|
-
_(
|
|
4050
|
+
_(Jt.prototype, {
|
|
4037
4051
|
__init() {
|
|
4038
4052
|
this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
|
|
4039
4053
|
},
|
|
4040
4054
|
updateKey() {
|
|
4041
|
-
this.key =
|
|
4055
|
+
this.key = Ie();
|
|
4042
4056
|
},
|
|
4043
4057
|
//TODO interface
|
|
4044
4058
|
init() {
|
|
@@ -4083,7 +4097,7 @@ _(Gt.prototype, {
|
|
|
4083
4097
|
render(t) {
|
|
4084
4098
|
}
|
|
4085
4099
|
});
|
|
4086
|
-
const
|
|
4100
|
+
const Fi = function(t) {
|
|
4087
4101
|
const e = {
|
|
4088
4102
|
name: "loadData",
|
|
4089
4103
|
_fn: [],
|
|
@@ -4114,7 +4128,7 @@ const wi = function(t) {
|
|
|
4114
4128
|
}
|
|
4115
4129
|
};
|
|
4116
4130
|
return e.watch = e.loaded, e;
|
|
4117
|
-
},
|
|
4131
|
+
}, ki = function(t) {
|
|
4118
4132
|
const e = {
|
|
4119
4133
|
name: "t",
|
|
4120
4134
|
_fn: [],
|
|
@@ -4143,7 +4157,7 @@ const wi = function(t) {
|
|
|
4143
4157
|
}
|
|
4144
4158
|
};
|
|
4145
4159
|
return e.watch = e.loaded, e;
|
|
4146
|
-
},
|
|
4160
|
+
}, Kt = {
|
|
4147
4161
|
name: "componentValidate",
|
|
4148
4162
|
load(t, e, r) {
|
|
4149
4163
|
let i = t.getValue();
|
|
@@ -4166,9 +4180,9 @@ const wi = function(t) {
|
|
|
4166
4180
|
}
|
|
4167
4181
|
},
|
|
4168
4182
|
watch(...t) {
|
|
4169
|
-
|
|
4183
|
+
Kt.load(...t);
|
|
4170
4184
|
}
|
|
4171
|
-
},
|
|
4185
|
+
}, Ei = function(t) {
|
|
4172
4186
|
function e(s) {
|
|
4173
4187
|
return h.String(s) && (s = {
|
|
4174
4188
|
action: s,
|
|
@@ -4185,7 +4199,18 @@ const wi = function(t) {
|
|
|
4185
4199
|
l(void 0);
|
|
4186
4200
|
return;
|
|
4187
4201
|
}
|
|
4188
|
-
a = K(a), a.to || (a.to = "options")
|
|
4202
|
+
if (a = K(a), a.to || (a.to = "options"), a.key) {
|
|
4203
|
+
const p = t.$handle.options.globalData[a.key];
|
|
4204
|
+
if (!p) {
|
|
4205
|
+
l(void 0);
|
|
4206
|
+
return;
|
|
4207
|
+
}
|
|
4208
|
+
if (p.type === "static") {
|
|
4209
|
+
l(p.data);
|
|
4210
|
+
return;
|
|
4211
|
+
} else
|
|
4212
|
+
a = v(v({}, a), p);
|
|
4213
|
+
}
|
|
4189
4214
|
const u = a.onError, f = () => {
|
|
4190
4215
|
if (!s.getValue())
|
|
4191
4216
|
return s.clearProp(), o.sync(n), !0;
|
|
@@ -4193,31 +4218,24 @@ const wi = function(t) {
|
|
|
4193
4218
|
i._fn[s.id] = t.watchLoadData(se((p, d) => {
|
|
4194
4219
|
if (d && a.watch === !1)
|
|
4195
4220
|
return i._fn[s.id]();
|
|
4196
|
-
if (a.key) {
|
|
4197
|
-
t.targetRule = n;
|
|
4198
|
-
const C = p("$globalData." + a.key);
|
|
4199
|
-
if (delete t.targetRule, C) {
|
|
4200
|
-
if (f()) return;
|
|
4201
|
-
l(C);
|
|
4202
|
-
}
|
|
4203
|
-
return;
|
|
4204
|
-
}
|
|
4205
4221
|
const g = t.$handle.loadFetchVar(K(a), p, n), y = q(v({
|
|
4206
4222
|
headers: {}
|
|
4207
4223
|
}, g), {
|
|
4208
4224
|
onSuccess(C, k) {
|
|
4209
4225
|
if (f()) return;
|
|
4210
|
-
let G = (
|
|
4226
|
+
let G = (L) => k ? L : j(L, "data") ? L.data : L;
|
|
4211
4227
|
const V = z(g.parse);
|
|
4212
|
-
h.Function(V) ? G = V : V && h.String(V) && (G = (
|
|
4228
|
+
h.Function(V) ? G = V : V && h.String(V) && (G = (L) => B(L, V)), Ve(G(C, n, o)).then((L) => {
|
|
4229
|
+
l(L);
|
|
4230
|
+
});
|
|
4213
4231
|
},
|
|
4214
4232
|
onError(C) {
|
|
4215
|
-
l(void 0), !f() && (u || ((k) =>
|
|
4233
|
+
l(void 0), !f() && (u || ((k) => Ye(k.message || "fetch fail " + g.action)))(C, n, o);
|
|
4216
4234
|
}
|
|
4217
4235
|
});
|
|
4218
4236
|
t.$handle.beforeFetch(y, { rule: n, api: o }).then(() => {
|
|
4219
4237
|
if (h.Function(g.action)) {
|
|
4220
|
-
g.action(n, o).then((C) => {
|
|
4238
|
+
Ve(g.action(n, o)).then((C) => {
|
|
4221
4239
|
y.onSuccess(C, !0);
|
|
4222
4240
|
}).catch((C) => {
|
|
4223
4241
|
y.onError(C);
|
|
@@ -4243,13 +4261,13 @@ const wi = function(t) {
|
|
|
4243
4261
|
}
|
|
4244
4262
|
};
|
|
4245
4263
|
return i;
|
|
4246
|
-
},
|
|
4247
|
-
fetch:
|
|
4248
|
-
loadData:
|
|
4249
|
-
t:
|
|
4250
|
-
componentValidate:
|
|
4264
|
+
}, Ri = {
|
|
4265
|
+
fetch: Ei,
|
|
4266
|
+
loadData: Fi,
|
|
4267
|
+
t: ki,
|
|
4268
|
+
componentValidate: Kt
|
|
4251
4269
|
};
|
|
4252
|
-
function
|
|
4270
|
+
function Si(t) {
|
|
4253
4271
|
t = t || /* @__PURE__ */ new Map();
|
|
4254
4272
|
const e = {
|
|
4255
4273
|
$on(r, i) {
|
|
@@ -4273,8 +4291,8 @@ function Ei(t) {
|
|
|
4273
4291
|
};
|
|
4274
4292
|
return e;
|
|
4275
4293
|
}
|
|
4276
|
-
const
|
|
4277
|
-
name:
|
|
4294
|
+
const ji = "html", Di = {
|
|
4295
|
+
name: ji,
|
|
4278
4296
|
loadChildren: !1,
|
|
4279
4297
|
render(t, e) {
|
|
4280
4298
|
return e.prop.domProps || (e.prop.domProps = {}), e.prop.domProps.innerHTML = t, e.vNode.make(e.prop.props.tag || "div", e.prop);
|
|
@@ -4283,7 +4301,7 @@ const Ri = "html", Si = {
|
|
|
4283
4301
|
return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
|
|
4284
4302
|
}
|
|
4285
4303
|
};
|
|
4286
|
-
function
|
|
4304
|
+
function Ai(t) {
|
|
4287
4305
|
t = t + "=";
|
|
4288
4306
|
const r = decodeURIComponent(document.cookie).split(";");
|
|
4289
4307
|
for (let i = 0; i < r.length; i++) {
|
|
@@ -4301,7 +4319,7 @@ function ji(t) {
|
|
|
4301
4319
|
}
|
|
4302
4320
|
return null;
|
|
4303
4321
|
}
|
|
4304
|
-
function
|
|
4322
|
+
function Vi(t) {
|
|
4305
4323
|
const e = localStorage.getItem(t);
|
|
4306
4324
|
if (e)
|
|
4307
4325
|
try {
|
|
@@ -4311,7 +4329,7 @@ function Di(t) {
|
|
|
4311
4329
|
}
|
|
4312
4330
|
return null;
|
|
4313
4331
|
}
|
|
4314
|
-
function
|
|
4332
|
+
function Ii(t) {
|
|
4315
4333
|
const e = sessionStorage.getItem(t);
|
|
4316
4334
|
if (e)
|
|
4317
4335
|
try {
|
|
@@ -4321,23 +4339,23 @@ function Ai(t) {
|
|
|
4321
4339
|
}
|
|
4322
4340
|
return null;
|
|
4323
4341
|
}
|
|
4324
|
-
function
|
|
4342
|
+
function nt(t, e) {
|
|
4325
4343
|
if (!e)
|
|
4326
4344
|
return null;
|
|
4327
4345
|
const r = e.split(".");
|
|
4328
4346
|
let i = t(r.shift());
|
|
4329
4347
|
return r.length ? i == null ? null : B(i, r) : i;
|
|
4330
4348
|
}
|
|
4331
|
-
function
|
|
4332
|
-
return
|
|
4349
|
+
function Pi(t) {
|
|
4350
|
+
return nt(Ai, t);
|
|
4333
4351
|
}
|
|
4334
|
-
function
|
|
4335
|
-
return
|
|
4352
|
+
function Ti(t) {
|
|
4353
|
+
return nt(Vi, t);
|
|
4336
4354
|
}
|
|
4337
|
-
function
|
|
4338
|
-
return
|
|
4355
|
+
function Bi(t) {
|
|
4356
|
+
return nt(Ii, t);
|
|
4339
4357
|
}
|
|
4340
|
-
const
|
|
4358
|
+
const Li = {
|
|
4341
4359
|
en: {
|
|
4342
4360
|
required: "{title} is required",
|
|
4343
4361
|
validate: {
|
|
@@ -4387,17 +4405,17 @@ const Ti = {
|
|
|
4387
4405
|
}
|
|
4388
4406
|
}
|
|
4389
4407
|
};
|
|
4390
|
-
function
|
|
4408
|
+
function Ni(t, e) {
|
|
4391
4409
|
let r;
|
|
4392
4410
|
return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
|
|
4393
4411
|
}
|
|
4394
|
-
function
|
|
4395
|
-
return
|
|
4412
|
+
function Me() {
|
|
4413
|
+
return Ni("name", ...arguments);
|
|
4396
4414
|
}
|
|
4397
|
-
function
|
|
4415
|
+
function Mi(t) {
|
|
4398
4416
|
return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
|
|
4399
4417
|
}
|
|
4400
|
-
function
|
|
4418
|
+
function qi(t, e) {
|
|
4401
4419
|
const r = new Vue({
|
|
4402
4420
|
data() {
|
|
4403
4421
|
return { rule: t, option: e || {} };
|
|
@@ -4408,23 +4426,23 @@ function Ni(t, e) {
|
|
|
4408
4426
|
});
|
|
4409
4427
|
return r.$mount(), r;
|
|
4410
4428
|
}
|
|
4411
|
-
function
|
|
4429
|
+
function Ui(t) {
|
|
4412
4430
|
const e = t.key || [], r = t.array || [], i = t.normal || [];
|
|
4413
|
-
|
|
4431
|
+
Vt.push(...e), et.push(...r), tt.push(...i), Mt([...e, ...r, ...i]);
|
|
4414
4432
|
}
|
|
4415
|
-
let
|
|
4416
|
-
const U = {},
|
|
4417
|
-
function
|
|
4433
|
+
let Hi = 1;
|
|
4434
|
+
const U = {}, _t = Symbol("defValue");
|
|
4435
|
+
function Wt(t) {
|
|
4418
4436
|
const e = {
|
|
4419
|
-
[
|
|
4437
|
+
[Ne.name]: Ne
|
|
4420
4438
|
}, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
|
|
4421
4439
|
t.extendApi
|
|
4422
|
-
], u = v({},
|
|
4440
|
+
], u = v({}, Ri), f = Yr();
|
|
4423
4441
|
let p = { global: {} };
|
|
4424
4442
|
const d = t.isMobile === !0, g = ne({
|
|
4425
4443
|
$mobile: d
|
|
4426
|
-
}), y =
|
|
4427
|
-
|
|
4444
|
+
}), y = wi(), C = {}, k = {};
|
|
4445
|
+
Ui(t.attrs || {});
|
|
4428
4446
|
function G(c) {
|
|
4429
4447
|
const m = U[c];
|
|
4430
4448
|
if (Array.isArray(m))
|
|
@@ -4435,21 +4453,21 @@ function Kt(t) {
|
|
|
4435
4453
|
function V(c) {
|
|
4436
4454
|
o.push(c);
|
|
4437
4455
|
}
|
|
4438
|
-
function
|
|
4439
|
-
const c =
|
|
4456
|
+
function L() {
|
|
4457
|
+
const c = Me(...arguments);
|
|
4440
4458
|
c.id && c.prop && (i[c.id] = c.prop);
|
|
4441
4459
|
}
|
|
4442
4460
|
function de() {
|
|
4443
|
-
const c =
|
|
4461
|
+
const c = Me(...arguments);
|
|
4444
4462
|
c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : q(v({}, c.prop), {
|
|
4445
4463
|
name: c.id
|
|
4446
4464
|
}));
|
|
4447
4465
|
}
|
|
4448
|
-
function
|
|
4466
|
+
function Pe(c) {
|
|
4449
4467
|
y.use(c);
|
|
4450
4468
|
}
|
|
4451
4469
|
function pe() {
|
|
4452
|
-
const c =
|
|
4470
|
+
const c = Me(...arguments);
|
|
4453
4471
|
if (!c.id || !c.prop) return De;
|
|
4454
4472
|
const m = J(c.id), $ = c.prop, b = $.merge === !0 ? r[m] : void 0;
|
|
4455
4473
|
r[m] = Se($, b || De), f[m] = T(m), $.maker && _(f, $.maker);
|
|
@@ -4466,21 +4484,21 @@ function Kt(t) {
|
|
|
4466
4484
|
e[$] = m, e[b] = m, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], m.formCreateParser && pe($, m.formCreateParser);
|
|
4467
4485
|
}
|
|
4468
4486
|
function R() {
|
|
4469
|
-
return
|
|
4487
|
+
return Zr(Be, e, i);
|
|
4470
4488
|
}
|
|
4471
4489
|
function M() {
|
|
4472
|
-
return
|
|
4490
|
+
return Ne;
|
|
4473
4491
|
}
|
|
4474
4492
|
function me(c, m) {
|
|
4475
4493
|
return h.Function(c.install) ? c.install(W, m) : h.Function(c) && c(W, m), this;
|
|
4476
4494
|
}
|
|
4477
4495
|
function W(c, m, $) {
|
|
4478
|
-
let b =
|
|
4496
|
+
let b = qi(c, m || {});
|
|
4479
4497
|
const w = b.$refs.fc.formCreate;
|
|
4480
|
-
return w.$parent = $,
|
|
4498
|
+
return w.$parent = $, Mi(w.options).appendChild(b.$el), w.api();
|
|
4481
4499
|
}
|
|
4482
4500
|
Se(W, k);
|
|
4483
|
-
function
|
|
4501
|
+
function zt(c) {
|
|
4484
4502
|
let m = v({}, t);
|
|
4485
4503
|
return c ? m.inherit = {
|
|
4486
4504
|
components: e,
|
|
@@ -4492,15 +4510,15 @@ function Kt(t) {
|
|
|
4492
4510
|
maker: f,
|
|
4493
4511
|
formulas: C,
|
|
4494
4512
|
loadData: g
|
|
4495
|
-
} : delete m.inherit,
|
|
4513
|
+
} : delete m.inherit, Wt(m);
|
|
4496
4514
|
}
|
|
4497
|
-
function
|
|
4515
|
+
function Xt(c, m) {
|
|
4498
4516
|
s[c] = m;
|
|
4499
4517
|
}
|
|
4500
|
-
function
|
|
4518
|
+
function Zt(c, m) {
|
|
4501
4519
|
C[c] = m;
|
|
4502
4520
|
}
|
|
4503
|
-
function
|
|
4521
|
+
function Qt(c, m) {
|
|
4504
4522
|
const $ = n[c] || {}, b = $.parsers || {};
|
|
4505
4523
|
m.parsers && Object.keys(m.parsers).forEach((w) => {
|
|
4506
4524
|
b[w] = Se(m.parsers[w], De);
|
|
@@ -4513,45 +4531,45 @@ function Kt(t) {
|
|
|
4513
4531
|
});
|
|
4514
4532
|
});
|
|
4515
4533
|
}
|
|
4516
|
-
function
|
|
4534
|
+
function Te(c, m) {
|
|
4517
4535
|
oe(g, c, m), Fe(c);
|
|
4518
4536
|
}
|
|
4519
4537
|
function ke(c, m) {
|
|
4520
4538
|
const $ = (...b) => O(() => m(...b));
|
|
4521
|
-
$._driver = !0,
|
|
4539
|
+
$._driver = !0, Te(c, $);
|
|
4522
4540
|
}
|
|
4523
|
-
function
|
|
4541
|
+
function st(c, m) {
|
|
4524
4542
|
const $ = (c || "").split(".");
|
|
4525
4543
|
c = $.shift();
|
|
4526
4544
|
const b = $.join(".");
|
|
4527
|
-
if (j(g, c) || F(g, c,
|
|
4545
|
+
if (j(g, c) || F(g, c, _t), g[c] !== _t) {
|
|
4528
4546
|
let w = g[c];
|
|
4529
4547
|
return w && w._driver ? w = w(b) : $.length && (w = B(w, $)), w == null || w === "" ? m : w;
|
|
4530
4548
|
} else
|
|
4531
4549
|
return m;
|
|
4532
4550
|
}
|
|
4533
|
-
function
|
|
4551
|
+
function Yt(c) {
|
|
4534
4552
|
l.push(c);
|
|
4535
4553
|
}
|
|
4536
|
-
function
|
|
4554
|
+
function er(c) {
|
|
4537
4555
|
delete g[c], Fe(c);
|
|
4538
4556
|
}
|
|
4539
|
-
function
|
|
4557
|
+
function tr(c, m) {
|
|
4540
4558
|
a.push({ name: c, callback: m });
|
|
4541
4559
|
}
|
|
4542
|
-
function
|
|
4560
|
+
function Be(c) {
|
|
4543
4561
|
_(this, {
|
|
4544
|
-
id:
|
|
4562
|
+
id: Hi++,
|
|
4545
4563
|
create: W,
|
|
4546
4564
|
vm: c,
|
|
4547
|
-
manager:
|
|
4565
|
+
manager: Oi(t.manager),
|
|
4548
4566
|
parsers: r,
|
|
4549
4567
|
providers: u,
|
|
4550
4568
|
modelFields: s,
|
|
4551
4569
|
formulas: C,
|
|
4552
4570
|
isMobile: d,
|
|
4553
4571
|
rules: c.$props.rule,
|
|
4554
|
-
name: c.$props.name ||
|
|
4572
|
+
name: c.$props.name || Ie(),
|
|
4555
4573
|
inFor: c.$props.inFor,
|
|
4556
4574
|
prop: {
|
|
4557
4575
|
components: e,
|
|
@@ -4563,23 +4581,23 @@ function Kt(t) {
|
|
|
4563
4581
|
refreshData: Fe,
|
|
4564
4582
|
loadData: g,
|
|
4565
4583
|
CreateNode: y,
|
|
4566
|
-
bus: new
|
|
4584
|
+
bus: new Si(),
|
|
4567
4585
|
unwatch: [],
|
|
4568
|
-
options:
|
|
4586
|
+
options: gr({}),
|
|
4569
4587
|
extendApiFn: l,
|
|
4570
4588
|
fetchCache: /* @__PURE__ */ new WeakMap(),
|
|
4571
4589
|
tmpData: ne({})
|
|
4572
4590
|
}), a.forEach((m) => {
|
|
4573
4591
|
this.bus.$on(m.name, m.callback);
|
|
4574
4592
|
}), P(() => {
|
|
4575
|
-
|
|
4593
|
+
N(this.options, () => {
|
|
4576
4594
|
this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
|
|
4577
4595
|
}, { deep: !0 });
|
|
4578
4596
|
}), _(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);
|
|
4579
4597
|
}
|
|
4580
|
-
|
|
4598
|
+
Be.isMobile = d, _(Be.prototype, {
|
|
4581
4599
|
init() {
|
|
4582
|
-
this.isSub() && this.unwatch.push(
|
|
4600
|
+
this.isSub() && this.unwatch.push(N(() => this.vm.parent.fc.options.value, () => {
|
|
4583
4601
|
this.initOptions(), this.$handle.api.refresh();
|
|
4584
4602
|
}, { deep: !0, flush: "sync" })), this.vm.$props.driver && (this.renderDriver = typeof this.vm.$props.driver == "object" ? this.vm.$props.driver : this.drivers[this.vm.$props.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();
|
|
4585
4603
|
},
|
|
@@ -4590,8 +4608,8 @@ function Kt(t) {
|
|
|
4590
4608
|
t(c, m, $) {
|
|
4591
4609
|
let b = $ ? $("$t." + c) : this.globalLanguageDriver(c);
|
|
4592
4610
|
return b == null && (b = ""), b && m && Object.keys(m).forEach((w) => {
|
|
4593
|
-
const
|
|
4594
|
-
b = b.replace(
|
|
4611
|
+
const A = new RegExp(`{${w}}`, "g");
|
|
4612
|
+
b = b.replace(A, m[w]);
|
|
4595
4613
|
}), b;
|
|
4596
4614
|
},
|
|
4597
4615
|
globalDataDriver(c) {
|
|
@@ -4602,11 +4620,11 @@ function Kt(t) {
|
|
|
4602
4620
|
return B(b.data, m);
|
|
4603
4621
|
{
|
|
4604
4622
|
let w;
|
|
4605
|
-
const
|
|
4606
|
-
if (
|
|
4607
|
-
if (
|
|
4623
|
+
const A = this.fetchCache.get(b);
|
|
4624
|
+
if (A) {
|
|
4625
|
+
if (A.status && (w = B(A.data, m)), !A.loading)
|
|
4608
4626
|
return w;
|
|
4609
|
-
|
|
4627
|
+
A.loading = !1, this.fetchCache.set(b, A);
|
|
4610
4628
|
} else
|
|
4611
4629
|
this.fetchCache.set(b, { status: !1 });
|
|
4612
4630
|
const S = se(() => {
|
|
@@ -4622,7 +4640,7 @@ function Kt(t) {
|
|
|
4622
4640
|
S();
|
|
4623
4641
|
return;
|
|
4624
4642
|
}
|
|
4625
|
-
const ue = this.$handle.loadFetchVar(
|
|
4643
|
+
const ue = this.$handle.loadFetchVar(Ke(b), x);
|
|
4626
4644
|
ue.targetRule = this.targetRule, this.$handle.api.fetch(ue).then((re) => {
|
|
4627
4645
|
ve(re);
|
|
4628
4646
|
}).catch((re) => {
|
|
@@ -4640,8 +4658,8 @@ function Kt(t) {
|
|
|
4640
4658
|
globalLanguageDriver(c) {
|
|
4641
4659
|
let m = this.vm.top.$props.t, $ = this.vm.top.$props.locale, b;
|
|
4642
4660
|
if (m && (b = O(() => m(c))), b == null && $ && typeof $ == "object" && (b = B($, c)), b == null) {
|
|
4643
|
-
const w = this.options.value.language || {},
|
|
4644
|
-
b = B(w[
|
|
4661
|
+
const w = this.options.value.language || {}, A = this.getLocale();
|
|
4662
|
+
b = B(w[A] || {}, c), b == null && (b = B(Li[A] || {}, c));
|
|
4645
4663
|
}
|
|
4646
4664
|
return b;
|
|
4647
4665
|
},
|
|
@@ -4651,13 +4669,13 @@ function Kt(t) {
|
|
|
4651
4669
|
if (b) {
|
|
4652
4670
|
const w = h.Function(b) ? b : z(b.handle);
|
|
4653
4671
|
if (w) {
|
|
4654
|
-
let
|
|
4655
|
-
return B(
|
|
4672
|
+
let A = w((...S) => this.$handle.api.getData(...S), this.$handle.api);
|
|
4673
|
+
return B(A, m);
|
|
4656
4674
|
}
|
|
4657
4675
|
}
|
|
4658
4676
|
},
|
|
4659
4677
|
setData(c, m, $) {
|
|
4660
|
-
$ ?
|
|
4678
|
+
$ ? Te(c, m) : (oe(this.vm.top.fc.tmpData, c, m), this.bus.$emit("$loadData." + c));
|
|
4661
4679
|
},
|
|
4662
4680
|
getLoadData(c, m) {
|
|
4663
4681
|
let $ = null;
|
|
@@ -4685,7 +4703,7 @@ function Kt(t) {
|
|
|
4685
4703
|
else {
|
|
4686
4704
|
if (w === "$preview")
|
|
4687
4705
|
return this.$handle.preview;
|
|
4688
|
-
$ =
|
|
4706
|
+
$ = st(c), b = [];
|
|
4689
4707
|
}
|
|
4690
4708
|
$ && b.length && ($ = B($, b));
|
|
4691
4709
|
}
|
|
@@ -4706,21 +4724,21 @@ function Kt(t) {
|
|
|
4706
4724
|
if ($[S])
|
|
4707
4725
|
((fe instanceof Function || h.Object(fe) || Array.isArray(fe)) && fe === $[S].val || JSON.stringify(fe) !== JSON.stringify($[S].val)) && ($[S].val = fe, b(!0));
|
|
4708
4726
|
else return;
|
|
4709
|
-
}, m || 0),
|
|
4727
|
+
}, m || 0), ir = N(te, (fe) => {
|
|
4710
4728
|
re();
|
|
4711
4729
|
});
|
|
4712
4730
|
return this.bus.$on("$loadData." + le, re), ue && this.bus.$on("$loadData." + le + "." + ue, re), $[S] = {
|
|
4713
4731
|
fn: () => {
|
|
4714
|
-
this.bus.$off("$loadData." + le, re), ue && this.bus.$off("$loadData." + le + "." + ue, re),
|
|
4732
|
+
this.bus.$off("$loadData." + le, re), ue && this.bus.$off("$loadData." + le + "." + ue, re), ir();
|
|
4715
4733
|
},
|
|
4716
4734
|
val: te.value
|
|
4717
4735
|
}, te.value;
|
|
4718
4736
|
};
|
|
4719
4737
|
b(!1);
|
|
4720
|
-
const
|
|
4738
|
+
const A = () => {
|
|
4721
4739
|
Object.keys($).forEach((S) => $[S].fn()), $ = {};
|
|
4722
4740
|
};
|
|
4723
|
-
return this.unwatch.push(
|
|
4741
|
+
return this.unwatch.push(A), A;
|
|
4724
4742
|
},
|
|
4725
4743
|
isSub() {
|
|
4726
4744
|
return this.vm.parent && this.vm.extendOption;
|
|
@@ -4742,7 +4760,7 @@ function Kt(t) {
|
|
|
4742
4760
|
mergeOptions(c, m, $) {
|
|
4743
4761
|
return m = v({}, m || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
|
|
4744
4762
|
delete m[b];
|
|
4745
|
-
}), m.global && (c.global =
|
|
4763
|
+
}), m.global && (c.global = xr(c.global, m.global), delete m.global), this.$handle.$manager.mergeOptions([m], c), c;
|
|
4746
4764
|
},
|
|
4747
4765
|
updateOptions(c) {
|
|
4748
4766
|
this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
|
|
@@ -4771,60 +4789,60 @@ function Kt(t) {
|
|
|
4771
4789
|
this.$handle.bindNextTick(() => this.bus.$emit("next-tick", this.$handle.api));
|
|
4772
4790
|
}
|
|
4773
4791
|
});
|
|
4774
|
-
function
|
|
4792
|
+
function ot(c) {
|
|
4775
4793
|
_(c, {
|
|
4776
4794
|
version: t.version,
|
|
4777
4795
|
ui: t.ui,
|
|
4778
4796
|
isMobile: d,
|
|
4779
|
-
extendApi:
|
|
4780
|
-
getData:
|
|
4797
|
+
extendApi: Yt,
|
|
4798
|
+
getData: st,
|
|
4781
4799
|
setDataDriver: ke,
|
|
4782
|
-
setData:
|
|
4783
|
-
removeData:
|
|
4800
|
+
setData: Te,
|
|
4801
|
+
removeData: er,
|
|
4784
4802
|
refreshData: Fe,
|
|
4785
4803
|
maker: f,
|
|
4786
4804
|
component: E,
|
|
4787
|
-
directive:
|
|
4788
|
-
setModelField:
|
|
4789
|
-
setFormula:
|
|
4790
|
-
setDriver:
|
|
4805
|
+
directive: L,
|
|
4806
|
+
setModelField: Xt,
|
|
4807
|
+
setFormula: Zt,
|
|
4808
|
+
setDriver: Qt,
|
|
4791
4809
|
register: de,
|
|
4792
4810
|
$vnode: M,
|
|
4793
4811
|
parser: pe,
|
|
4794
4812
|
use: me,
|
|
4795
|
-
factory:
|
|
4796
|
-
componentAlias:
|
|
4797
|
-
copyRule:
|
|
4798
|
-
copyRules:
|
|
4813
|
+
factory: zt,
|
|
4814
|
+
componentAlias: Pe,
|
|
4815
|
+
copyRule: Pt,
|
|
4816
|
+
copyRules: Tt,
|
|
4799
4817
|
mergeRule: ee,
|
|
4800
|
-
fetch:
|
|
4818
|
+
fetch: Ut,
|
|
4801
4819
|
$form: R,
|
|
4802
4820
|
parseFn: z,
|
|
4803
|
-
parseJson:
|
|
4821
|
+
parseJson: St,
|
|
4804
4822
|
toJson: we,
|
|
4805
4823
|
useApp: V,
|
|
4806
4824
|
getApi: G,
|
|
4807
|
-
on:
|
|
4825
|
+
on: tr
|
|
4808
4826
|
});
|
|
4809
4827
|
}
|
|
4810
|
-
function
|
|
4828
|
+
function rr(c) {
|
|
4811
4829
|
_(c, {
|
|
4812
4830
|
create: W,
|
|
4813
4831
|
install(m, $) {
|
|
4814
4832
|
if (p = v(v({}, p), $ || {}), m._installedFormCreate === !0) return;
|
|
4815
4833
|
m._installedFormCreate = !0;
|
|
4816
|
-
const b = function(
|
|
4817
|
-
return W(
|
|
4834
|
+
const b = function(A, S = {}) {
|
|
4835
|
+
return W(A, S, this);
|
|
4818
4836
|
};
|
|
4819
|
-
|
|
4837
|
+
ot(b), m.prototype.$formCreate = b;
|
|
4820
4838
|
const w = R();
|
|
4821
|
-
m.component(w.name, w), m.component("FcFragment", M()), o.forEach((
|
|
4822
|
-
O(() =>
|
|
4839
|
+
m.component(w.name, w), m.component("FcFragment", M()), o.forEach((A) => {
|
|
4840
|
+
O(() => A(c, m));
|
|
4823
4841
|
});
|
|
4824
4842
|
}
|
|
4825
4843
|
});
|
|
4826
4844
|
}
|
|
4827
|
-
if (
|
|
4845
|
+
if (ot(k), rr(k), ke("$cookie", Pi), ke("$localStorage", Ti), ke("$sessionStorage", Bi), y.use({ fragment: "fcFragment" }), t.install && W.use(t), pe(Di), t.inherit) {
|
|
4828
4846
|
const c = t.inherit;
|
|
4829
4847
|
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 && _(C, c.formulas);
|
|
4830
4848
|
}
|
|
@@ -4840,7 +4858,7 @@ function Kt(t) {
|
|
|
4840
4858
|
}
|
|
4841
4859
|
}), Ee.util = k, Ee;
|
|
4842
4860
|
}
|
|
4843
|
-
const
|
|
4861
|
+
const Ct = {
|
|
4844
4862
|
date: "yyyy-MM-dd",
|
|
4845
4863
|
month: "yyyy-MM",
|
|
4846
4864
|
datetime: "yyyy-MM-dd HH:mm:ss",
|
|
@@ -4849,106 +4867,114 @@ const _t = {
|
|
|
4849
4867
|
monthrange: "yyyy-MM",
|
|
4850
4868
|
datetimerange: "yyyy-MM-dd HH:mm:ss",
|
|
4851
4869
|
year: "yyyy"
|
|
4852
|
-
},
|
|
4853
|
-
name:
|
|
4870
|
+
}, wt = "datePicker", Gi = {
|
|
4871
|
+
name: wt,
|
|
4854
4872
|
maker: function() {
|
|
4855
|
-
return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = T(
|
|
4873
|
+
return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = T(wt, { type: e.toLowerCase() }), t), {});
|
|
4856
4874
|
}(),
|
|
4857
4875
|
mergeProp(t) {
|
|
4858
4876
|
const e = t.prop.props;
|
|
4859
|
-
e.valueFormat || (e.valueFormat =
|
|
4877
|
+
e.valueFormat || (e.valueFormat = Ct[e.type] || Ct.date);
|
|
4860
4878
|
}
|
|
4861
|
-
},
|
|
4862
|
-
name:
|
|
4879
|
+
}, qe = "hidden", Ji = {
|
|
4880
|
+
name: qe,
|
|
4863
4881
|
maker: {
|
|
4864
|
-
[
|
|
4882
|
+
[qe]: (t, e) => T(qe)("", t, e)
|
|
4865
4883
|
},
|
|
4866
4884
|
render() {
|
|
4867
4885
|
return [];
|
|
4868
4886
|
}
|
|
4869
|
-
},
|
|
4870
|
-
name:
|
|
4887
|
+
}, Ue = "input", Ki = {
|
|
4888
|
+
name: Ue,
|
|
4871
4889
|
maker: function() {
|
|
4872
|
-
const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = T(
|
|
4873
|
-
return t.idate = T(
|
|
4890
|
+
const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = T(Ue, { type: r }), e), {});
|
|
4891
|
+
return t.idate = T(Ue, { type: "date" }), t;
|
|
4874
4892
|
}(),
|
|
4875
4893
|
mergeProp(t) {
|
|
4876
4894
|
let { props: e } = t.prop;
|
|
4877
4895
|
e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
|
|
4878
4896
|
}
|
|
4879
|
-
},
|
|
4880
|
-
name:
|
|
4897
|
+
}, Wi = "textarea", xi = {
|
|
4898
|
+
name: Wi,
|
|
4899
|
+
mergeProp(t) {
|
|
4900
|
+
let { props: e } = t.prop;
|
|
4901
|
+
e.type = "textarea", e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
|
|
4902
|
+
}
|
|
4903
|
+
}, Ot = "slider", zi = {
|
|
4904
|
+
name: Ot,
|
|
4881
4905
|
maker: {
|
|
4882
|
-
sliderRange: T(
|
|
4906
|
+
sliderRange: T(Ot, { range: !0 })
|
|
4883
4907
|
},
|
|
4884
4908
|
toFormValue(t, e) {
|
|
4885
4909
|
let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
|
|
4886
4910
|
return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
|
|
4887
4911
|
}
|
|
4888
|
-
},
|
|
4889
|
-
name:
|
|
4912
|
+
}, He = "timePicker", Xi = {
|
|
4913
|
+
name: He,
|
|
4890
4914
|
maker: {
|
|
4891
|
-
time: T(
|
|
4892
|
-
timeRange: T(
|
|
4915
|
+
time: T(He, (t) => t.props.isRange = !1),
|
|
4916
|
+
timeRange: T(He, (t) => t.props.isRange = !0)
|
|
4893
4917
|
},
|
|
4894
4918
|
mergeProp(t) {
|
|
4895
4919
|
const e = t.prop.props;
|
|
4896
4920
|
e.valueFormat || (e.valueFormat = "HH:mm:ss");
|
|
4897
4921
|
}
|
|
4898
|
-
},
|
|
4922
|
+
}, Zi = {
|
|
4899
4923
|
name: "FcRow",
|
|
4900
4924
|
render(t, e) {
|
|
4901
4925
|
return e.vNode.col({ props: { span: 24 } }, [
|
|
4902
4926
|
e.vNode.row(e.prop, t)
|
|
4903
4927
|
]);
|
|
4904
4928
|
}
|
|
4905
|
-
},
|
|
4906
|
-
name:
|
|
4929
|
+
}, Qi = "select", Yi = {
|
|
4930
|
+
name: Qi,
|
|
4907
4931
|
toFormValue(t, e) {
|
|
4908
4932
|
return e.prop.props.multiple && !Array.isArray(t) ? H(t) : t;
|
|
4909
4933
|
}
|
|
4910
|
-
},
|
|
4911
|
-
Ui,
|
|
4912
|
-
Hi,
|
|
4934
|
+
}, en = [
|
|
4913
4935
|
Gi,
|
|
4914
4936
|
Ji,
|
|
4915
4937
|
Ki,
|
|
4916
|
-
|
|
4917
|
-
zi
|
|
4918
|
-
|
|
4919
|
-
|
|
4938
|
+
xi,
|
|
4939
|
+
zi,
|
|
4940
|
+
Xi,
|
|
4941
|
+
Zi,
|
|
4942
|
+
Yi
|
|
4943
|
+
], D = "el", tn = {
|
|
4944
|
+
button: D + "Button",
|
|
4920
4945
|
icon: "i",
|
|
4921
|
-
slider:
|
|
4922
|
-
rate:
|
|
4946
|
+
slider: D + "Slider",
|
|
4947
|
+
rate: D + "Rate",
|
|
4923
4948
|
upload: "fcUpload",
|
|
4924
|
-
cascader:
|
|
4925
|
-
popover:
|
|
4926
|
-
tooltip:
|
|
4927
|
-
colorPicker:
|
|
4928
|
-
timePicker:
|
|
4929
|
-
timeSelect:
|
|
4930
|
-
datePicker:
|
|
4931
|
-
switch:
|
|
4949
|
+
cascader: D + "Cascader",
|
|
4950
|
+
popover: D + "Popover",
|
|
4951
|
+
tooltip: D + "Tooltip",
|
|
4952
|
+
colorPicker: D + "ColorPicker",
|
|
4953
|
+
timePicker: D + "TimePicker",
|
|
4954
|
+
timeSelect: D + "TimeSelect",
|
|
4955
|
+
datePicker: D + "DatePicker",
|
|
4956
|
+
switch: D + "Switch",
|
|
4932
4957
|
select: "fcSelect",
|
|
4933
4958
|
checkbox: "fcCheckbox",
|
|
4934
4959
|
radio: "fcRadio",
|
|
4935
|
-
inputNumber:
|
|
4936
|
-
number:
|
|
4937
|
-
input:
|
|
4938
|
-
|
|
4939
|
-
|
|
4960
|
+
inputNumber: D + "InputNumber",
|
|
4961
|
+
number: D + "InputNumber",
|
|
4962
|
+
input: D + "Input",
|
|
4963
|
+
textarea: D + "Input",
|
|
4964
|
+
formItem: D + "FormItem",
|
|
4965
|
+
form: D + "Form",
|
|
4940
4966
|
frame: "fcFrame",
|
|
4941
|
-
col:
|
|
4942
|
-
row:
|
|
4967
|
+
col: D + "Col",
|
|
4968
|
+
row: D + "Row",
|
|
4943
4969
|
tree: "fcTree",
|
|
4944
|
-
autoComplete:
|
|
4945
|
-
auto:
|
|
4970
|
+
autoComplete: D + "Autocomplete",
|
|
4971
|
+
auto: D + "Autocomplete",
|
|
4946
4972
|
group: "fcGroup",
|
|
4947
4973
|
array: "fcGroup",
|
|
4948
4974
|
object: "fcSubForm",
|
|
4949
4975
|
subForm: "fcSubForm"
|
|
4950
4976
|
};
|
|
4951
|
-
function
|
|
4977
|
+
function rn() {
|
|
4952
4978
|
return {
|
|
4953
4979
|
form: {
|
|
4954
4980
|
inline: !1,
|
|
@@ -4982,23 +5008,23 @@ function Qi() {
|
|
|
4982
5008
|
}
|
|
4983
5009
|
};
|
|
4984
5010
|
}
|
|
4985
|
-
function
|
|
5011
|
+
function nn(t) {
|
|
4986
5012
|
return t.type === "tooltip";
|
|
4987
5013
|
}
|
|
4988
|
-
function
|
|
5014
|
+
function Ft(t, e) {
|
|
4989
5015
|
j(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
|
|
4990
5016
|
}
|
|
4991
5017
|
function Z(t) {
|
|
4992
5018
|
return t === !1;
|
|
4993
5019
|
}
|
|
4994
|
-
function
|
|
5020
|
+
function sn(t, e) {
|
|
4995
5021
|
j(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
|
|
4996
5022
|
}
|
|
4997
|
-
function
|
|
5023
|
+
function Ge(t) {
|
|
4998
5024
|
const e = v({}, t);
|
|
4999
5025
|
return delete e.children, e;
|
|
5000
5026
|
}
|
|
5001
|
-
const
|
|
5027
|
+
const on = {
|
|
5002
5028
|
validate() {
|
|
5003
5029
|
const t = this.form();
|
|
5004
5030
|
return t ? t.validate() : new Promise((e) => e());
|
|
@@ -5021,11 +5047,11 @@ const tn = {
|
|
|
5021
5047
|
},
|
|
5022
5048
|
tidyOptions(t) {
|
|
5023
5049
|
return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
|
|
5024
|
-
|
|
5050
|
+
sn(t, e);
|
|
5025
5051
|
}), t;
|
|
5026
5052
|
},
|
|
5027
5053
|
tidyRule({ prop: t }) {
|
|
5028
|
-
return
|
|
5054
|
+
return Ft(t, "title"), Ft(t, "info"), t;
|
|
5029
5055
|
},
|
|
5030
5056
|
mergeProp(t) {
|
|
5031
5057
|
const e = {
|
|
@@ -5043,7 +5069,7 @@ const tn = {
|
|
|
5043
5069
|
});
|
|
5044
5070
|
},
|
|
5045
5071
|
getDefaultOptions() {
|
|
5046
|
-
return
|
|
5072
|
+
return rn();
|
|
5047
5073
|
},
|
|
5048
5074
|
update() {
|
|
5049
5075
|
const t = this.options.form;
|
|
@@ -5072,9 +5098,9 @@ const tn = {
|
|
|
5072
5098
|
delete r.wrap.class, delete r.wrap.title;
|
|
5073
5099
|
const f = Z(r.wrap.show) ? e : this.$r(Y([r.wrap, {
|
|
5074
5100
|
props: q(v({
|
|
5075
|
-
labelWidth: o === void 0 ? o :
|
|
5101
|
+
labelWidth: o === void 0 ? o : Et(o),
|
|
5076
5102
|
label: n ? r.title.title : void 0
|
|
5077
|
-
},
|
|
5103
|
+
}, Ge(r.wrap || {})), {
|
|
5078
5104
|
prop: t.id,
|
|
5079
5105
|
rules: t.injectValidate()
|
|
5080
5106
|
}),
|
|
@@ -5092,7 +5118,7 @@ const tn = {
|
|
|
5092
5118
|
},
|
|
5093
5119
|
makeInfo(t, e, r) {
|
|
5094
5120
|
var f, p, d, g, y, C;
|
|
5095
|
-
const i = v({}, t.title), s = v({}, t.info), n =
|
|
5121
|
+
const i = v({}, t.title), s = v({}, t.info), n = nn(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
|
|
5096
5122
|
title: (p = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : p.value,
|
|
5097
5123
|
rule: r.rule,
|
|
5098
5124
|
options: this.options
|
|
@@ -5101,7 +5127,7 @@ const tn = {
|
|
|
5101
5127
|
const k = {
|
|
5102
5128
|
type: s.type || "popover",
|
|
5103
5129
|
slot: "label",
|
|
5104
|
-
props:
|
|
5130
|
+
props: Ge(s),
|
|
5105
5131
|
key: `${e}pop`
|
|
5106
5132
|
};
|
|
5107
5133
|
delete k.props.icon, delete k.props.show, delete k.props.info, delete k.props.align, delete k.props.native;
|
|
@@ -5116,7 +5142,7 @@ const tn = {
|
|
|
5116
5142
|
]));
|
|
5117
5143
|
}
|
|
5118
5144
|
const u = Y([i, {
|
|
5119
|
-
props:
|
|
5145
|
+
props: Ge(i),
|
|
5120
5146
|
key: `${e}tit`,
|
|
5121
5147
|
class: "fc-form-title",
|
|
5122
5148
|
slot: i.slot || "label",
|
|
@@ -5192,25 +5218,25 @@ const tn = {
|
|
|
5192
5218
|
}, [e]);
|
|
5193
5219
|
}
|
|
5194
5220
|
}, he = {};
|
|
5195
|
-
rn(he);
|
|
5196
|
-
nn(he);
|
|
5197
|
-
sn(he);
|
|
5198
|
-
on(he);
|
|
5199
5221
|
an(he);
|
|
5200
|
-
|
|
5222
|
+
ln(he);
|
|
5223
|
+
un(he);
|
|
5224
|
+
fn(he);
|
|
5225
|
+
cn(he);
|
|
5226
|
+
function an(t) {
|
|
5201
5227
|
["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "radio", "rate"].forEach((e) => {
|
|
5202
5228
|
t[e] = T(e);
|
|
5203
5229
|
}), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
|
|
5204
5230
|
}
|
|
5205
|
-
function
|
|
5231
|
+
function ln(t) {
|
|
5206
5232
|
const e = "select", r = "multiple";
|
|
5207
5233
|
t.selectMultiple = T(e, { [r]: !0 }), t.selectOne = T(e, { [r]: !1 });
|
|
5208
5234
|
}
|
|
5209
|
-
function
|
|
5235
|
+
function un(t) {
|
|
5210
5236
|
const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
|
|
5211
5237
|
Object.keys(r).reduce((i, s) => (i[s] = T(e, { type: r[s] }), i), t);
|
|
5212
5238
|
}
|
|
5213
|
-
function
|
|
5239
|
+
function fn(t) {
|
|
5214
5240
|
const e = "upload", r = {
|
|
5215
5241
|
image: ["image", 0],
|
|
5216
5242
|
file: ["file", 0],
|
|
@@ -5219,7 +5245,7 @@ function on(t) {
|
|
|
5219
5245
|
};
|
|
5220
5246
|
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;
|
|
5221
5247
|
}
|
|
5222
|
-
function
|
|
5248
|
+
function cn(t) {
|
|
5223
5249
|
const e = {
|
|
5224
5250
|
frameInputs: ["input", 0],
|
|
5225
5251
|
frameFiles: ["file", 0],
|
|
@@ -5230,10 +5256,10 @@ function an(t) {
|
|
|
5230
5256
|
};
|
|
5231
5257
|
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;
|
|
5232
5258
|
}
|
|
5233
|
-
function
|
|
5259
|
+
function kt(t, e) {
|
|
5234
5260
|
return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
|
|
5235
5261
|
}
|
|
5236
|
-
function
|
|
5262
|
+
function hn(t, e) {
|
|
5237
5263
|
return {
|
|
5238
5264
|
formEl() {
|
|
5239
5265
|
return e.$manager.form();
|
|
@@ -5309,11 +5335,11 @@ function ln(t, e) {
|
|
|
5309
5335
|
}
|
|
5310
5336
|
},
|
|
5311
5337
|
submitBtnProps: (r = {}) => {
|
|
5312
|
-
let i =
|
|
5338
|
+
let i = kt(e.options.submitBtn, !0);
|
|
5313
5339
|
_(i, r), e.options.submitBtn = i, t.refreshOptions();
|
|
5314
5340
|
},
|
|
5315
5341
|
resetBtnProps: (r = {}) => {
|
|
5316
|
-
let i =
|
|
5342
|
+
let i = kt(e.options.resetBtn, !1);
|
|
5317
5343
|
_(i, r), e.options.resetBtn = i, t.refreshOptions();
|
|
5318
5344
|
},
|
|
5319
5345
|
submit(r, i) {
|
|
@@ -5331,11 +5357,11 @@ function ln(t, e) {
|
|
|
5331
5357
|
}
|
|
5332
5358
|
};
|
|
5333
5359
|
}
|
|
5334
|
-
const
|
|
5360
|
+
const xt = {
|
|
5335
5361
|
name: "required",
|
|
5336
5362
|
load(t, e, r) {
|
|
5337
5363
|
var s, n;
|
|
5338
|
-
const i =
|
|
5364
|
+
const i = dn(t.getValue());
|
|
5339
5365
|
if (i.required === !1)
|
|
5340
5366
|
t.clearProp(), r.clearValidateState([e.field]);
|
|
5341
5367
|
else {
|
|
@@ -5356,28 +5382,28 @@ const Wt = {
|
|
|
5356
5382
|
r.sync(e);
|
|
5357
5383
|
},
|
|
5358
5384
|
watch(...t) {
|
|
5359
|
-
|
|
5385
|
+
xt.load(...t);
|
|
5360
5386
|
}
|
|
5361
5387
|
};
|
|
5362
|
-
function
|
|
5388
|
+
function dn(t) {
|
|
5363
5389
|
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 : {};
|
|
5364
5390
|
}
|
|
5365
|
-
function
|
|
5366
|
-
t.componentAlias(
|
|
5391
|
+
function pn(t) {
|
|
5392
|
+
t.componentAlias(tn), Kr.forEach((e) => {
|
|
5367
5393
|
t.component(e.name, e);
|
|
5368
|
-
}), t.register(
|
|
5394
|
+
}), t.register(xt), en.forEach((e) => {
|
|
5369
5395
|
t.parser(e);
|
|
5370
5396
|
}), Object.keys(he).forEach((e) => {
|
|
5371
5397
|
t.maker[e] = he[e];
|
|
5372
5398
|
});
|
|
5373
5399
|
}
|
|
5374
|
-
function
|
|
5375
|
-
return
|
|
5400
|
+
function mn() {
|
|
5401
|
+
return Wt({
|
|
5376
5402
|
ui: "element-ui",
|
|
5377
|
-
version: "2.7.
|
|
5378
|
-
manager:
|
|
5379
|
-
extendApi:
|
|
5380
|
-
install:
|
|
5403
|
+
version: "2.7.17",
|
|
5404
|
+
manager: on,
|
|
5405
|
+
extendApi: hn,
|
|
5406
|
+
install: pn,
|
|
5381
5407
|
attrs: {
|
|
5382
5408
|
normal: ["col", "wrap"],
|
|
5383
5409
|
array: ["className"],
|
|
@@ -5385,10 +5411,10 @@ function cn() {
|
|
|
5385
5411
|
}
|
|
5386
5412
|
});
|
|
5387
5413
|
}
|
|
5388
|
-
const
|
|
5389
|
-
typeof window != "undefined" && (window.formCreate =
|
|
5390
|
-
const
|
|
5414
|
+
const Ze = mn();
|
|
5415
|
+
typeof window != "undefined" && (window.formCreate = Ze, window.Vue && Ze.install(window.Vue));
|
|
5416
|
+
const $n = Ze.maker;
|
|
5391
5417
|
export {
|
|
5392
|
-
|
|
5393
|
-
|
|
5418
|
+
Ze as default,
|
|
5419
|
+
$n as maker
|
|
5394
5420
|
};
|