@form-create/element-ui 2.7.0 → 2.7.2
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 +502 -457
- package/dist/form-create.js +4 -4
- package/dist/form-create.min.js +4 -4
- package/package.json +12 -20
- package/src/core/config.js +2 -2
- package/src/core/manager.js +5 -5
- package/src/core/provider.js +3 -2
package/dist/form-create.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* FormCreate 低代码表单渲染器
|
|
3
|
-
* @form-create/element-ui v2.7.
|
|
4
|
-
* (c) 2018-
|
|
3
|
+
* @form-create/element-ui v2.7.2
|
|
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.
|
|
@@ -9,17 +9,17 @@
|
|
|
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
10
|
var er = Object.defineProperty, tr = Object.defineProperties;
|
|
11
11
|
var rr = Object.getOwnPropertyDescriptors;
|
|
12
|
-
var
|
|
12
|
+
var ot = Object.getOwnPropertySymbols;
|
|
13
13
|
var ir = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable;
|
|
14
|
-
var
|
|
14
|
+
var at = (t, e, r) => e in t ? er(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, b = (t, e) => {
|
|
15
15
|
for (var r in e || (e = {}))
|
|
16
|
-
ir.call(e, r) &&
|
|
17
|
-
if (
|
|
18
|
-
for (var r of
|
|
19
|
-
nr.call(e, r) &&
|
|
16
|
+
ir.call(e, r) && at(t, r, e[r]);
|
|
17
|
+
if (ot)
|
|
18
|
+
for (var r of ot(e))
|
|
19
|
+
nr.call(e, r) && at(t, r, e[r]);
|
|
20
20
|
return t;
|
|
21
|
-
},
|
|
22
|
-
import de, { getCurrentInstance as sr, provide as or, inject as ar, toRefs as
|
|
21
|
+
}, q = (t, e) => tr(t, rr(e));
|
|
22
|
+
import de, { getCurrentInstance as sr, provide as or, inject as ar, toRefs as lt, reactive as ee, onBeforeMount as lr, watch as L, onMounted as ur, onBeforeUnmount as cr, onUpdated as fr, nextTick as T, markRaw as fe, computed as he, toRef as Se, ref as hr } from "vue";
|
|
23
23
|
function dr(t) {
|
|
24
24
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
25
25
|
}
|
|
@@ -123,7 +123,7 @@ const br = "fcCheckbox", _r = {
|
|
|
123
123
|
this.$emit("fc.el", this.$refs.el);
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
|
-
function
|
|
126
|
+
function G(t) {
|
|
127
127
|
return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
|
|
128
128
|
}
|
|
129
129
|
const Cr = "fcFrame", wr = {
|
|
@@ -168,11 +168,11 @@ const Cr = "fcFrame", wr = {
|
|
|
168
168
|
},
|
|
169
169
|
okBtnText: {
|
|
170
170
|
type: String,
|
|
171
|
-
default: "
|
|
171
|
+
default: ""
|
|
172
172
|
},
|
|
173
173
|
closeBtnText: {
|
|
174
174
|
type: String,
|
|
175
|
-
default: "
|
|
175
|
+
default: ""
|
|
176
176
|
},
|
|
177
177
|
modalTitle: String,
|
|
178
178
|
handleIcon: {
|
|
@@ -248,7 +248,7 @@ const Cr = "fcFrame", wr = {
|
|
|
248
248
|
},
|
|
249
249
|
data() {
|
|
250
250
|
return {
|
|
251
|
-
fileList:
|
|
251
|
+
fileList: G(this.value),
|
|
252
252
|
previewVisible: !1,
|
|
253
253
|
frameVisible: !1,
|
|
254
254
|
previewImage: ""
|
|
@@ -256,7 +256,7 @@ const Cr = "fcFrame", wr = {
|
|
|
256
256
|
},
|
|
257
257
|
watch: {
|
|
258
258
|
value(t) {
|
|
259
|
-
this.fileList =
|
|
259
|
+
this.fileList = G(t);
|
|
260
260
|
},
|
|
261
261
|
fileList(t) {
|
|
262
262
|
const e = this.maxLength === 1 ? t[0] || "" : t;
|
|
@@ -427,14 +427,14 @@ const Cr = "fcFrame", wr = {
|
|
|
427
427
|
on: {
|
|
428
428
|
click: () => this.onCancel() !== !1 && (this.frameVisible = !1)
|
|
429
429
|
}
|
|
430
|
-
}, [r]) : null, s ? t("ElButton", {
|
|
430
|
+
}, [r || this.formCreateInject.t("close") || "关闭"]) : null, s ? t("ElButton", {
|
|
431
431
|
attrs: {
|
|
432
432
|
type: "primary"
|
|
433
433
|
},
|
|
434
434
|
on: {
|
|
435
435
|
click: () => this.onOk() !== !1 && this.closeModel()
|
|
436
436
|
}
|
|
437
|
-
}, [e]) : null]);
|
|
437
|
+
}, [e || this.formCreateInject.t("ok") || "确定"]) : null]);
|
|
438
438
|
}
|
|
439
439
|
},
|
|
440
440
|
render() {
|
|
@@ -469,7 +469,7 @@ const Cr = "fcFrame", wr = {
|
|
|
469
469
|
src: this.previewImage
|
|
470
470
|
}
|
|
471
471
|
})]), t("el-dialog", V([{}, {
|
|
472
|
-
props:
|
|
472
|
+
props: q(b({
|
|
473
473
|
width: i,
|
|
474
474
|
title: o,
|
|
475
475
|
appendToBody: !0
|
|
@@ -666,7 +666,7 @@ const kr = "fcSelect", Er = {
|
|
|
666
666
|
t === "selected" ? e = this.$refs.tree.getCurrentKey() : e = this.$refs.tree.getCheckedKeys(), this.$emit("input", e);
|
|
667
667
|
},
|
|
668
668
|
setValue() {
|
|
669
|
-
this.type.toLocaleLowerCase() === "selected" ? this.$refs.tree.setCurrentKey(this.value) : this.$refs.tree.setCheckedKeys(
|
|
669
|
+
this.type.toLocaleLowerCase() === "selected" ? this.$refs.tree.setCurrentKey(this.value) : this.$refs.tree.setCheckedKeys(G(this.value));
|
|
670
670
|
}
|
|
671
671
|
},
|
|
672
672
|
render() {
|
|
@@ -683,7 +683,7 @@ const kr = "fcSelect", Er = {
|
|
|
683
683
|
this.setValue(), this.$emit("fc.el", this.$refs.tree);
|
|
684
684
|
}
|
|
685
685
|
};
|
|
686
|
-
function
|
|
686
|
+
function ut(t, e) {
|
|
687
687
|
return typeof t == "object" ? t : {
|
|
688
688
|
url: t,
|
|
689
689
|
is_string: !0,
|
|
@@ -691,8 +691,8 @@ function lt(t, e) {
|
|
|
691
691
|
uid: e
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
return
|
|
694
|
+
function ct(t) {
|
|
695
|
+
return q(b({}, t), {
|
|
696
696
|
file: t,
|
|
697
697
|
value: t
|
|
698
698
|
});
|
|
@@ -727,6 +727,7 @@ const jr = "fcUpload", Ar = {
|
|
|
727
727
|
},
|
|
728
728
|
previewMask: void 0,
|
|
729
729
|
showFileList: Boolean,
|
|
730
|
+
httpRequest: Function,
|
|
730
731
|
modalTitle: String,
|
|
731
732
|
listType: {
|
|
732
733
|
type: String,
|
|
@@ -748,11 +749,11 @@ const jr = "fcUpload", Ar = {
|
|
|
748
749
|
};
|
|
749
750
|
},
|
|
750
751
|
created() {
|
|
751
|
-
this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList =
|
|
752
|
+
this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = G(this.value).map(ut).map(ct);
|
|
752
753
|
},
|
|
753
754
|
watch: {
|
|
754
755
|
value(t) {
|
|
755
|
-
this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles =
|
|
756
|
+
this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = G(t).map(ut).map(ct), this.uploadList = this.$refs.upload.uploadFiles);
|
|
756
757
|
},
|
|
757
758
|
limit(t, e) {
|
|
758
759
|
(e === 1 || t === 1) && this.update();
|
|
@@ -845,7 +846,7 @@ const jr = "fcUpload", Ar = {
|
|
|
845
846
|
attrs: {
|
|
846
847
|
type: "primary"
|
|
847
848
|
}
|
|
848
|
-
}, ["点击上传"]) : t("i", {
|
|
849
|
+
}, [this.formCreateInject.t("clickToUpload") || "点击上传"]) : t("i", {
|
|
849
850
|
class: "el-icon-upload2"
|
|
850
851
|
});
|
|
851
852
|
},
|
|
@@ -854,7 +855,8 @@ const jr = "fcUpload", Ar = {
|
|
|
854
855
|
return t("ElUpload", V([{}, this.formCreateInject.prop, {}, {
|
|
855
856
|
props: {
|
|
856
857
|
listType: this.listType,
|
|
857
|
-
showFileList: this.listType !== "picture"
|
|
858
|
+
showFileList: this.listType !== "picture",
|
|
859
|
+
httpRequest: this.doHttpRequest
|
|
858
860
|
},
|
|
859
861
|
style: {
|
|
860
862
|
display: "inline-block"
|
|
@@ -871,6 +873,11 @@ const jr = "fcUpload", Ar = {
|
|
|
871
873
|
},
|
|
872
874
|
handleCancel() {
|
|
873
875
|
this.previewVisible = !1;
|
|
876
|
+
},
|
|
877
|
+
doHttpRequest(t) {
|
|
878
|
+
if (this.httpRequest)
|
|
879
|
+
return this.httpRequest(t);
|
|
880
|
+
t.source = "upload", t.method = "post", this.formCreateInject.api.fetch(t);
|
|
874
881
|
}
|
|
875
882
|
},
|
|
876
883
|
render() {
|
|
@@ -1355,12 +1362,12 @@ function ye(t) {
|
|
|
1355
1362
|
let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
|
|
1356
1363
|
return e.indexOf("-") === 0 && (e = e.substr(1)), e;
|
|
1357
1364
|
}
|
|
1358
|
-
const
|
|
1365
|
+
const Ee = (t, e) => {
|
|
1359
1366
|
if (!(!t || t === e || !t.$props)) {
|
|
1360
1367
|
if (t.$props.formCreateInject)
|
|
1361
1368
|
return t.$props.formCreateInject;
|
|
1362
1369
|
if (t.$parent)
|
|
1363
|
-
return
|
|
1370
|
+
return Ee(t.$parent, e);
|
|
1364
1371
|
}
|
|
1365
1372
|
};
|
|
1366
1373
|
function Mr(t, e, r) {
|
|
@@ -1423,80 +1430,80 @@ function Mr(t, e, r) {
|
|
|
1423
1430
|
a = a.parent;
|
|
1424
1431
|
else
|
|
1425
1432
|
a = n;
|
|
1426
|
-
const { rule: l, value: u, subForm: c, inFor: p } =
|
|
1433
|
+
const { rule: l, value: u, subForm: c, inFor: p } = lt(s), m = ee({
|
|
1427
1434
|
ctxInject: {},
|
|
1428
1435
|
destroyed: !1,
|
|
1429
1436
|
isShow: !0,
|
|
1430
1437
|
unique: 1,
|
|
1431
1438
|
renderRule: [...l.value || []],
|
|
1432
1439
|
updateValue: JSON.stringify(u.value || {})
|
|
1433
|
-
}),
|
|
1440
|
+
}), y = new t(n), v = y.api(), w = p.value, D = () => {
|
|
1434
1441
|
if (o) {
|
|
1435
|
-
const O =
|
|
1442
|
+
const O = Ee(n, o);
|
|
1436
1443
|
if (O) {
|
|
1437
1444
|
let S;
|
|
1438
|
-
w ? (S =
|
|
1445
|
+
w ? (S = G(O.getSubForm()), S.push(v)) : S = v, O.subForm(S);
|
|
1439
1446
|
}
|
|
1440
1447
|
}
|
|
1441
1448
|
}, Y = () => {
|
|
1442
|
-
const O =
|
|
1449
|
+
const O = Ee(n, o);
|
|
1443
1450
|
if (O)
|
|
1444
1451
|
if (w) {
|
|
1445
|
-
const S =
|
|
1446
|
-
|
|
1452
|
+
const S = G(O.getSubForm()), B = S.indexOf(v);
|
|
1453
|
+
B > -1 && S.splice(B, 1);
|
|
1447
1454
|
} else
|
|
1448
1455
|
O.subForm();
|
|
1449
1456
|
};
|
|
1450
1457
|
let P = null;
|
|
1451
1458
|
lr(() => {
|
|
1452
|
-
|
|
1459
|
+
L(() => {
|
|
1453
1460
|
let O = "";
|
|
1454
1461
|
const S = s.option && s.option.globalClass || {};
|
|
1455
|
-
Object.keys(S).forEach((
|
|
1462
|
+
Object.keys(S).forEach((B) => {
|
|
1456
1463
|
let re = "";
|
|
1457
|
-
S[
|
|
1458
|
-
re += ye(be) + ":" + S[
|
|
1459
|
-
}), S[
|
|
1464
|
+
S[B].style && Object.keys(S[B].style).forEach((be) => {
|
|
1465
|
+
re += ye(be) + ":" + S[B].style[be] + ";";
|
|
1466
|
+
}), S[B].content && (re += S[B].content + ";"), re && (O += `.${B}{${re}}`);
|
|
1460
1467
|
}), s.option && s.option.style && (O += s.option.style), P || (P = document.createElement("style"), P.type = "text/css", document.head.appendChild(P)), P.innerHTML = O || "";
|
|
1461
1468
|
}, () => {
|
|
1462
1469
|
});
|
|
1463
1470
|
});
|
|
1464
|
-
const
|
|
1465
|
-
|
|
1466
|
-
}, 100),
|
|
1467
|
-
|
|
1471
|
+
const M = le(() => {
|
|
1472
|
+
y.bus.$emit("$loadData.$topForm");
|
|
1473
|
+
}, 100), je = le(() => {
|
|
1474
|
+
y.bus.$emit("$loadData.$form");
|
|
1468
1475
|
}, 100), ve = (O) => {
|
|
1469
|
-
|
|
1476
|
+
y.bus.$emit("change-$form." + O);
|
|
1470
1477
|
};
|
|
1471
1478
|
return ur(() => {
|
|
1472
|
-
o && (v.top.bus.$on("$loadData.$form",
|
|
1479
|
+
o && (v.top.bus.$on("$loadData.$form", M), v.top.bus.$on("change", ve)), y.mounted();
|
|
1473
1480
|
}), cr(() => {
|
|
1474
|
-
o && (v.top.bus.$off("$loadData.$form",
|
|
1481
|
+
o && (v.top.bus.$off("$loadData.$form", M), v.top.bus.$off("change", ve)), P && document.head.removeChild(P), Y(), m.destroyed = !0, y.unmount();
|
|
1475
1482
|
}), fr(() => {
|
|
1476
|
-
|
|
1477
|
-
}),
|
|
1483
|
+
y.updated();
|
|
1484
|
+
}), L(c, (O) => {
|
|
1478
1485
|
O ? D() : Y();
|
|
1479
|
-
}, { immediate: !0 }),
|
|
1480
|
-
|
|
1481
|
-
}),
|
|
1482
|
-
|
|
1483
|
-
}, { deep: !0 }),
|
|
1486
|
+
}, { immediate: !0 }), L(() => [...l.value], (O) => {
|
|
1487
|
+
y.$handle.isBreakWatch() || O.length === m.renderRule.length && O.every((S) => m.renderRule.indexOf(S) > -1) || (y.$handle.updateAppendData(), y.$handle.reloadRule(l.value), n.renderRule());
|
|
1488
|
+
}), L(() => s.option, () => {
|
|
1489
|
+
y.initOptions(), v.refresh();
|
|
1490
|
+
}, { deep: !0 }), L(() => [s.disabled, s.preview], () => {
|
|
1484
1491
|
v.refresh();
|
|
1485
|
-
}),
|
|
1492
|
+
}), L(u, (O) => {
|
|
1486
1493
|
JSON.stringify(O || {}) !== m.updateValue && (v.config.forceCoverValue ? v.coverValue(O || {}) : v.setValue(O || {}));
|
|
1487
|
-
}, { deep: !0, flush: "post" }),
|
|
1488
|
-
v.coverValue({}),
|
|
1489
|
-
|
|
1494
|
+
}, { deep: !0, flush: "post" }), L(() => s.index, () => {
|
|
1495
|
+
v.coverValue({}), y.$handle.updateAppendData(), T(() => {
|
|
1496
|
+
T(() => {
|
|
1490
1497
|
v.clearValidateState();
|
|
1491
1498
|
});
|
|
1492
1499
|
});
|
|
1493
|
-
}, { flush: "sync" }),
|
|
1494
|
-
fc: fe(
|
|
1500
|
+
}, { flush: "sync" }), q(b({
|
|
1501
|
+
fc: fe(y),
|
|
1495
1502
|
parent: o && fe(o),
|
|
1496
1503
|
top: fe(a),
|
|
1497
1504
|
fapi: fe(v)
|
|
1498
|
-
},
|
|
1499
|
-
getGroupInject: () =>
|
|
1505
|
+
}, lt(m)), {
|
|
1506
|
+
getGroupInject: () => Ee(n, o),
|
|
1500
1507
|
refresh() {
|
|
1501
1508
|
++m.unique;
|
|
1502
1509
|
},
|
|
@@ -1506,8 +1513,8 @@ function Mr(t, e, r) {
|
|
|
1506
1513
|
updateValue(O) {
|
|
1507
1514
|
if (m.destroyed) return;
|
|
1508
1515
|
const S = JSON.stringify(O);
|
|
1509
|
-
m.updateValue !== S && (m.updateValue = S, n.$emit("update:value", O),
|
|
1510
|
-
|
|
1516
|
+
m.updateValue !== S && (m.updateValue = S, n.$emit("update:value", O), T(() => {
|
|
1517
|
+
je(), o || M();
|
|
1511
1518
|
}));
|
|
1512
1519
|
}
|
|
1513
1520
|
});
|
|
@@ -1517,13 +1524,13 @@ function Mr(t, e, r) {
|
|
|
1517
1524
|
}
|
|
1518
1525
|
};
|
|
1519
1526
|
}
|
|
1520
|
-
const
|
|
1521
|
-
const i = [...
|
|
1527
|
+
const Ft = ["attrs", "props", "domProps", "scopedSlots"], kt = ["class", "style", "directives"], Et = ["on", "nativeOn", "hook"], Q = (t, e = {}, r = {}) => {
|
|
1528
|
+
const i = [...Ft, ...r.normal || []], s = [...kt, ...r.array || []], n = [...Et, ...r.functional || []], o = r.props || [];
|
|
1522
1529
|
return t.reduce((a, l) => {
|
|
1523
1530
|
for (const u in l)
|
|
1524
1531
|
if (a[u])
|
|
1525
1532
|
if (o.indexOf(u) > -1)
|
|
1526
|
-
a[u] =
|
|
1533
|
+
a[u] = Q([l[u]], a[u]);
|
|
1527
1534
|
else if (i.indexOf(u) > -1)
|
|
1528
1535
|
a[u] = b(b({}, a[u]), l[u]);
|
|
1529
1536
|
else if (s.indexOf(u) > -1) {
|
|
@@ -1547,20 +1554,20 @@ const Ot = ["attrs", "props", "domProps", "scopedSlots"], Ft = ["class", "style"
|
|
|
1547
1554
|
}, e);
|
|
1548
1555
|
}, Nr = (t, e) => function() {
|
|
1549
1556
|
t && t.apply(this, arguments), e && e.apply(this, arguments);
|
|
1550
|
-
},
|
|
1551
|
-
function
|
|
1552
|
-
return [...
|
|
1557
|
+
}, Rt = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], Ze = ["validate", "children", "control"], Ye = ["effect", "deep", "renderSlots"];
|
|
1558
|
+
function St() {
|
|
1559
|
+
return [...Rt, ...Ft, ...kt, ...Et, ...Ze, ...Ye];
|
|
1553
1560
|
}
|
|
1554
|
-
function
|
|
1561
|
+
function Dt(t, e, r) {
|
|
1555
1562
|
return `[form-create ${t}]: ${e}`;
|
|
1556
1563
|
}
|
|
1557
1564
|
function xe(t, e) {
|
|
1558
|
-
console.error(
|
|
1565
|
+
console.error(Dt("err", t));
|
|
1559
1566
|
}
|
|
1560
|
-
function
|
|
1567
|
+
function qr(t) {
|
|
1561
1568
|
xe(t.toString()), console.error(t);
|
|
1562
1569
|
}
|
|
1563
|
-
function
|
|
1570
|
+
function jt(t) {
|
|
1564
1571
|
return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
|
|
1565
1572
|
}
|
|
1566
1573
|
const Je = "[[FORM-CREATE-PREFIX-", We = "-FORM-CREATE-SUFFIX]]";
|
|
@@ -1579,7 +1586,7 @@ function et(t, e) {
|
|
|
1579
1586
|
function Pe(t) {
|
|
1580
1587
|
return new Function("return " + t)();
|
|
1581
1588
|
}
|
|
1582
|
-
function
|
|
1589
|
+
function K(t, e) {
|
|
1583
1590
|
if (t && h.String(t) && t.length > 4) {
|
|
1584
1591
|
let r = t.trim(), i = !1;
|
|
1585
1592
|
try {
|
|
@@ -1618,14 +1625,14 @@ err: ${s}`);
|
|
|
1618
1625
|
}
|
|
1619
1626
|
return t;
|
|
1620
1627
|
}
|
|
1621
|
-
function
|
|
1628
|
+
function At(t, e) {
|
|
1622
1629
|
return JSON.parse(t, function(r, i) {
|
|
1623
|
-
return h.Undef(i) || !i.indexOf ? i :
|
|
1630
|
+
return h.Undef(i) || !i.indexOf ? i : K(i, e);
|
|
1624
1631
|
});
|
|
1625
1632
|
}
|
|
1626
|
-
let
|
|
1627
|
-
function
|
|
1628
|
-
const t = 370 + ++
|
|
1633
|
+
let Ur = 0;
|
|
1634
|
+
function De() {
|
|
1635
|
+
const t = 370 + ++Ur;
|
|
1629
1636
|
return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
|
|
1630
1637
|
}
|
|
1631
1638
|
function te(t, e, r) {
|
|
@@ -1642,25 +1649,25 @@ function Ke(t, e) {
|
|
|
1642
1649
|
writable: !!e
|
|
1643
1650
|
};
|
|
1644
1651
|
}
|
|
1645
|
-
function At(t, e) {
|
|
1646
|
-
return Vt([t], e || !1)[0];
|
|
1647
|
-
}
|
|
1648
1652
|
function Vt(t, e) {
|
|
1653
|
+
return It([t], e || !1)[0];
|
|
1654
|
+
}
|
|
1655
|
+
function It(t, e) {
|
|
1649
1656
|
return $e([], [...t], e || !1);
|
|
1650
1657
|
}
|
|
1651
|
-
function
|
|
1652
|
-
return
|
|
1658
|
+
function Z(t, e) {
|
|
1659
|
+
return Q(Array.isArray(e) ? e : [e], t, { array: Ze, normal: Ye }), t;
|
|
1653
1660
|
}
|
|
1654
|
-
function
|
|
1661
|
+
function ft(t) {
|
|
1655
1662
|
const e = h.Function(t.getRule) ? t.getRule() : t;
|
|
1656
1663
|
return e.type || (e.type = "input"), e;
|
|
1657
1664
|
}
|
|
1658
1665
|
function Hr(t, e) {
|
|
1659
1666
|
return t ? (Object.keys(e || {}).forEach((r) => {
|
|
1660
|
-
e[r] && (t[r] =
|
|
1667
|
+
e[r] && (t[r] = Z(t[r] || {}, e[r]));
|
|
1661
1668
|
}), t) : e;
|
|
1662
1669
|
}
|
|
1663
|
-
function
|
|
1670
|
+
function Pt(t, e) {
|
|
1664
1671
|
Object.defineProperties(t, Object.keys(e).reduce((r, i) => (r[i] = {
|
|
1665
1672
|
get() {
|
|
1666
1673
|
return e[i]();
|
|
@@ -1674,13 +1681,13 @@ function F(t, e) {
|
|
|
1674
1681
|
try {
|
|
1675
1682
|
e = t();
|
|
1676
1683
|
} catch (r) {
|
|
1677
|
-
|
|
1684
|
+
qr(r);
|
|
1678
1685
|
}
|
|
1679
1686
|
return e;
|
|
1680
1687
|
}
|
|
1681
1688
|
function Xe(t, e) {
|
|
1682
1689
|
let r = null;
|
|
1683
|
-
return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Xe(i, e)) : r = t, r && e &&
|
|
1690
|
+
return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Xe(i, e)) : r = t, r && e && G(r).forEach((i) => {
|
|
1684
1691
|
(Array.isArray(i) ? i : [i]).forEach((n) => {
|
|
1685
1692
|
n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
|
|
1686
1693
|
});
|
|
@@ -1731,18 +1738,18 @@ function Te() {
|
|
|
1731
1738
|
}
|
|
1732
1739
|
};
|
|
1733
1740
|
}
|
|
1734
|
-
function
|
|
1741
|
+
function Fe(t, e) {
|
|
1735
1742
|
return Object.setPrototypeOf(t, e), t;
|
|
1736
1743
|
}
|
|
1737
|
-
const
|
|
1738
|
-
"==": (t, e) => JSON.stringify(t) === JSON.stringify(
|
|
1744
|
+
const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, ae = {
|
|
1745
|
+
"==": (t, e) => JSON.stringify(t) === JSON.stringify(ht(t, e)),
|
|
1739
1746
|
"!=": (t, e) => !ae["=="](t, e),
|
|
1740
1747
|
">": (t, e) => t > e,
|
|
1741
1748
|
">=": (t, e) => t >= e,
|
|
1742
1749
|
"<": (t, e) => t < e,
|
|
1743
1750
|
"<=": (t, e) => t <= e,
|
|
1744
1751
|
on(t, e) {
|
|
1745
|
-
return t && t.indexOf && t.indexOf(
|
|
1752
|
+
return t && t.indexOf && t.indexOf(ht(t[0], e)) > -1;
|
|
1746
1753
|
},
|
|
1747
1754
|
notOn(t, e) {
|
|
1748
1755
|
return !ae.on(t, e);
|
|
@@ -1769,7 +1776,7 @@ const ft = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
|
|
|
1769
1776
|
return new RegExp(e, "g").test(t);
|
|
1770
1777
|
}
|
|
1771
1778
|
};
|
|
1772
|
-
function
|
|
1779
|
+
function H(t, e) {
|
|
1773
1780
|
return (Array.isArray(e) ? e : (e || "").split(".")).forEach((r) => {
|
|
1774
1781
|
t != null && (t = t[r]);
|
|
1775
1782
|
}), t;
|
|
@@ -1782,13 +1789,13 @@ function Jr(t) {
|
|
|
1782
1789
|
r[1] && (i[r[1]] = !0);
|
|
1783
1790
|
return Object.keys(i);
|
|
1784
1791
|
}
|
|
1785
|
-
function
|
|
1792
|
+
function dt(t) {
|
|
1786
1793
|
let e = t.split("."), r = [], i = "";
|
|
1787
1794
|
return e.forEach((s, n) => {
|
|
1788
1795
|
n === 0 ? i = s : i += "." + s, r.push(i);
|
|
1789
1796
|
}), r.join(" && ");
|
|
1790
1797
|
}
|
|
1791
|
-
function
|
|
1798
|
+
function Tt() {
|
|
1792
1799
|
return {
|
|
1793
1800
|
props: {},
|
|
1794
1801
|
on: {},
|
|
@@ -1807,7 +1814,7 @@ function I(t, e) {
|
|
|
1807
1814
|
};
|
|
1808
1815
|
}
|
|
1809
1816
|
function tt(t, e, r, i, s) {
|
|
1810
|
-
this._data = _(
|
|
1817
|
+
this._data = _(Tt(), { type: t, title: e, field: r, value: i, props: s || {} }), this.event = this.on;
|
|
1811
1818
|
}
|
|
1812
1819
|
_(tt.prototype, {
|
|
1813
1820
|
getRule() {
|
|
@@ -1818,31 +1825,31 @@ _(tt.prototype, {
|
|
|
1818
1825
|
},
|
|
1819
1826
|
_clone() {
|
|
1820
1827
|
const t = new this.constructor();
|
|
1821
|
-
return t._data =
|
|
1828
|
+
return t._data = Vt(this._data), t;
|
|
1822
1829
|
}
|
|
1823
1830
|
});
|
|
1824
|
-
function
|
|
1831
|
+
function Bt(t) {
|
|
1825
1832
|
t.forEach((e) => {
|
|
1826
1833
|
tt.prototype[e] = function(r) {
|
|
1827
|
-
return
|
|
1834
|
+
return Z(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
|
|
1828
1835
|
};
|
|
1829
1836
|
});
|
|
1830
1837
|
}
|
|
1831
|
-
|
|
1832
|
-
const
|
|
1838
|
+
Bt(St());
|
|
1839
|
+
const Lt = I("");
|
|
1833
1840
|
function Wr(t, e, r) {
|
|
1834
|
-
let i =
|
|
1841
|
+
let i = Lt("", e);
|
|
1835
1842
|
return i._data.type = t, i._data.title = r, i;
|
|
1836
1843
|
}
|
|
1837
|
-
function
|
|
1838
|
-
let s =
|
|
1844
|
+
function pt(t, e, r, i) {
|
|
1845
|
+
let s = Lt("", r);
|
|
1839
1846
|
return s._data.type = "template", s._data.template = t, s._data.title = i, s._data.vm = e, s;
|
|
1840
1847
|
}
|
|
1841
1848
|
function Kr() {
|
|
1842
1849
|
return {
|
|
1843
1850
|
create: Wr,
|
|
1844
|
-
createTmp:
|
|
1845
|
-
template:
|
|
1851
|
+
createTmp: pt,
|
|
1852
|
+
template: pt,
|
|
1846
1853
|
factory: I
|
|
1847
1854
|
};
|
|
1848
1855
|
}
|
|
@@ -1850,7 +1857,7 @@ function Xr(t, e, r) {
|
|
|
1850
1857
|
const i = `fail to ${t} ${r.status}'`, s = new Error(i);
|
|
1851
1858
|
return s.status = r.status, s.url = t, s;
|
|
1852
1859
|
}
|
|
1853
|
-
function
|
|
1860
|
+
function mt(t) {
|
|
1854
1861
|
const e = t.responseText || t.response;
|
|
1855
1862
|
if (!e)
|
|
1856
1863
|
return e;
|
|
@@ -1860,12 +1867,14 @@ function pt(t) {
|
|
|
1860
1867
|
return e;
|
|
1861
1868
|
}
|
|
1862
1869
|
}
|
|
1863
|
-
function
|
|
1870
|
+
function Mt(t) {
|
|
1864
1871
|
if (typeof XMLHttpRequest == "undefined")
|
|
1865
1872
|
return;
|
|
1866
1873
|
const e = new XMLHttpRequest();
|
|
1867
1874
|
let r = t.action || "";
|
|
1868
|
-
if (t.
|
|
1875
|
+
if (e.upload && t.onProgress && e.upload.addEventListener("progress", (n) => {
|
|
1876
|
+
n.percent = n.total > 0 ? n.loaded / n.total * 100 : 0, t.onProgress(n);
|
|
1877
|
+
}), t.query) {
|
|
1869
1878
|
const n = new URLSearchParams(t.query).toString();
|
|
1870
1879
|
r.includes("?") ? r += `&${n}` : r += `?${n}`;
|
|
1871
1880
|
}
|
|
@@ -1873,25 +1882,25 @@ function Lt(t) {
|
|
|
1873
1882
|
t.onError(o);
|
|
1874
1883
|
}, e.onload = function() {
|
|
1875
1884
|
if (e.status < 200 || e.status >= 300)
|
|
1876
|
-
return t.onError(Xr(r, t, e),
|
|
1877
|
-
t.onSuccess(
|
|
1885
|
+
return t.onError(Xr(r, t, e), mt(e));
|
|
1886
|
+
t.onSuccess(mt(e));
|
|
1878
1887
|
}, e.open(t.method || "get", r, !0);
|
|
1879
1888
|
let i;
|
|
1880
|
-
t.data && ((t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data).map((n) => {
|
|
1889
|
+
(t.data || t.file) && (t.file || (t.dataType || "").toLowerCase() !== "json" ? (i = new FormData(), Object.keys(t.data || {}).map((n) => {
|
|
1881
1890
|
i.append(n, t.data[n]);
|
|
1882
|
-
})) : (i = JSON.stringify(t.data), e.setRequestHeader("content-type", "application/json"))), t.withCredentials && "withCredentials" in e && (e.withCredentials = !0);
|
|
1891
|
+
})) : (i = JSON.stringify(t.data || {}), e.setRequestHeader("content-type", "application/json"))), t.file && i.append(t.filename, t.file, t.file.name), t.withCredentials && "withCredentials" in e && (e.withCredentials = !0);
|
|
1883
1892
|
const s = t.headers || {};
|
|
1884
1893
|
Object.keys(s).forEach((n) => {
|
|
1885
1894
|
s[n] != null && e.setRequestHeader(n, s[n]);
|
|
1886
1895
|
}), e.send(i);
|
|
1887
1896
|
}
|
|
1888
|
-
function
|
|
1897
|
+
function gt(t, e, r) {
|
|
1889
1898
|
return new Promise((i, s) => {
|
|
1890
|
-
(e ||
|
|
1899
|
+
(e || Mt)(q(b({}, t), {
|
|
1891
1900
|
onSuccess(n) {
|
|
1892
1901
|
let o = (l) => l;
|
|
1893
|
-
const a =
|
|
1894
|
-
h.Function(a) ? o = a : a && h.String(a) && (o = (l) =>
|
|
1902
|
+
const a = K(t.parse);
|
|
1903
|
+
h.Function(a) ? o = a : a && h.String(a) && (o = (l) => H(l, a)), i(o(n, void 0, r));
|
|
1895
1904
|
},
|
|
1896
1905
|
onError(n) {
|
|
1897
1906
|
s(n);
|
|
@@ -2137,7 +2146,7 @@ function zr(t) {
|
|
|
2137
2146
|
},
|
|
2138
2147
|
mergeRule: (n, o) => {
|
|
2139
2148
|
t.getCtxs(n).forEach((a) => {
|
|
2140
|
-
|
|
2149
|
+
Z(a.rule, o);
|
|
2141
2150
|
});
|
|
2142
2151
|
},
|
|
2143
2152
|
mergeRules(n) {
|
|
@@ -2186,14 +2195,18 @@ function zr(t) {
|
|
|
2186
2195
|
t.getCtxs(o).forEach((a) => {
|
|
2187
2196
|
t.$render.clearCache(a), a.rule.value = ge(a.defaultValue);
|
|
2188
2197
|
});
|
|
2189
|
-
}),
|
|
2190
|
-
|
|
2198
|
+
}), T(() => {
|
|
2199
|
+
T(() => {
|
|
2200
|
+
T(() => {
|
|
2201
|
+
s.clearValidateState(n);
|
|
2202
|
+
});
|
|
2203
|
+
});
|
|
2191
2204
|
}), n == null && (h.Function(t.options.onReset) && F(() => t.options.onReset(s)), t.vm.$emit("reset", s));
|
|
2192
2205
|
},
|
|
2193
2206
|
method(n, o) {
|
|
2194
2207
|
const a = s.el(n);
|
|
2195
2208
|
if (!a || !a[o])
|
|
2196
|
-
throw new Error(
|
|
2209
|
+
throw new Error(Dt("err", `${o} 方法不存在`));
|
|
2197
2210
|
return (...l) => a[o](...l);
|
|
2198
2211
|
},
|
|
2199
2212
|
exec(n, o, ...a) {
|
|
@@ -2254,7 +2267,7 @@ function zr(t) {
|
|
|
2254
2267
|
getGlobalEvent(n) {
|
|
2255
2268
|
let o = s.options.globalEvent[n];
|
|
2256
2269
|
if (o)
|
|
2257
|
-
return typeof o == "object" && (o = o.handle),
|
|
2270
|
+
return typeof o == "object" && (o = o.handle), K(o);
|
|
2258
2271
|
},
|
|
2259
2272
|
getGlobalData(n) {
|
|
2260
2273
|
return new Promise((o, a) => {
|
|
@@ -2279,7 +2292,7 @@ function zr(t) {
|
|
|
2279
2292
|
bus: t.bus,
|
|
2280
2293
|
fetch(n) {
|
|
2281
2294
|
return new Promise((o, a) => {
|
|
2282
|
-
n = W(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() =>
|
|
2295
|
+
n = W(n), n = t.loadFetchVar(n), t.beforeFetch(n).then(() => gt(n, t.fc.create.fetch, s).then((l) => {
|
|
2283
2296
|
F(() => n.onSuccess && n.onSuccess(l)), o(l);
|
|
2284
2297
|
}).catch((l) => {
|
|
2285
2298
|
F(() => n.onError && n.onError(l)), a(l);
|
|
@@ -2289,7 +2302,7 @@ function zr(t) {
|
|
|
2289
2302
|
watchFetch(n, o, a, l) {
|
|
2290
2303
|
return t.fc.watchLoadData((u, c) => {
|
|
2291
2304
|
let p = W(n);
|
|
2292
|
-
p = t.loadFetchVar(p, u), !(l && l(p, c) === !1) && t.beforeFetch(p).then(() =>
|
|
2305
|
+
p = t.loadFetchVar(p, u), !(l && l(p, c) === !1) && t.beforeFetch(p).then(() => gt(p, t.fc.create.fetch, s).then((m) => {
|
|
2293
2306
|
F(() => p.onSuccess && p.onSuccess(m)), o && o(m, c);
|
|
2294
2307
|
}).catch((m) => {
|
|
2295
2308
|
F(() => p.onError && p.onError(m)), a && a(m);
|
|
@@ -2354,13 +2367,13 @@ function Qr(t) {
|
|
|
2354
2367
|
}
|
|
2355
2368
|
});
|
|
2356
2369
|
}
|
|
2357
|
-
function
|
|
2370
|
+
function J(t) {
|
|
2358
2371
|
const e = t.replace(/(-[a-z])/g, function(r) {
|
|
2359
2372
|
return r.replace("-", "").toLocaleUpperCase();
|
|
2360
2373
|
});
|
|
2361
|
-
return
|
|
2374
|
+
return Nt(e);
|
|
2362
2375
|
}
|
|
2363
|
-
function
|
|
2376
|
+
function Nt(t) {
|
|
2364
2377
|
return t.replace(t[0], t[0].toLowerCase());
|
|
2365
2378
|
}
|
|
2366
2379
|
function Zr(t) {
|
|
@@ -2394,8 +2407,8 @@ function Zr(t) {
|
|
|
2394
2407
|
mergeGlobal(e) {
|
|
2395
2408
|
this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = he(() => {
|
|
2396
2409
|
const i = this.$handle.options.global;
|
|
2397
|
-
return
|
|
2398
|
-
})), e.prop =
|
|
2410
|
+
return Z({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
|
|
2411
|
+
})), e.prop = Z({}, [this.cacheConfig[e.trueType].value, e.prop]));
|
|
2399
2412
|
},
|
|
2400
2413
|
setOptions(e) {
|
|
2401
2414
|
const r = e.loadPending({ key: "options", origin: e.prop.options, def: [] });
|
|
@@ -2408,7 +2421,7 @@ function Zr(t) {
|
|
|
2408
2421
|
});
|
|
2409
2422
|
},
|
|
2410
2423
|
parseSide(e, r) {
|
|
2411
|
-
return h.Object(e) ?
|
|
2424
|
+
return h.Object(e) ? Z({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
|
|
2412
2425
|
},
|
|
2413
2426
|
renderSides(e, r, i) {
|
|
2414
2427
|
const s = r[i ? "rule" : "prop"];
|
|
@@ -2443,12 +2456,20 @@ function Zr(t) {
|
|
|
2443
2456
|
slotValue: l
|
|
2444
2457
|
};
|
|
2445
2458
|
l.length && i.slotUpdate && F(() => i.slotUpdate(u));
|
|
2446
|
-
let c =
|
|
2459
|
+
let c = [];
|
|
2447
2460
|
const p = e.loadChildrenPending();
|
|
2448
|
-
e.parser.renderChildren ? c = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (c = this.renderChildren(p, e))
|
|
2461
|
+
e.parser.renderChildren ? c = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (c = this.renderChildren(p, e)), Object.keys(n.renderSlots || {}).forEach((v) => {
|
|
2462
|
+
c.push(this.renderRule({
|
|
2463
|
+
type: "template",
|
|
2464
|
+
slot: v
|
|
2465
|
+
}, (() => {
|
|
2466
|
+
const w = this.parseSide(n.renderSlots[v], e);
|
|
2467
|
+
return this.renderRule(w);
|
|
2468
|
+
})()));
|
|
2469
|
+
});
|
|
2449
2470
|
const m = this.getTypeSlot(e);
|
|
2450
|
-
let
|
|
2451
|
-
return m ? (u.children = c,
|
|
2471
|
+
let y;
|
|
2472
|
+
return m ? (u.children = c, y = m(u)) : y = a ? e.parser.preview(Ge(c), e) : e.parser.render(Ge(c), e), y = this.renderSides(y, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), y = this.$manager.makeWrap(e, y)), e.none && (Array.isArray(y) ? y = y.map((v) => !v || !v.tag ? v : this.none(v)) : y = this.none(y)), o && this.setCache(e, () => this.stable(y), r), y;
|
|
2452
2473
|
}, this.setCache(e, s, r);
|
|
2453
2474
|
}
|
|
2454
2475
|
return (...s) => {
|
|
@@ -2505,6 +2526,7 @@ function Zr(t) {
|
|
|
2505
2526
|
field: e.field,
|
|
2506
2527
|
rule: e.rule,
|
|
2507
2528
|
input: e.input,
|
|
2529
|
+
t: (...s) => this.$handle.api.t(...s),
|
|
2508
2530
|
updateValue: (s) => {
|
|
2509
2531
|
this.$handle.onUpdateValue(e, s);
|
|
2510
2532
|
}
|
|
@@ -2551,7 +2573,7 @@ function Zr(t) {
|
|
|
2551
2573
|
on: {
|
|
2552
2574
|
[e.prop.modelEmit]: () => this.onEmitInput(e)
|
|
2553
2575
|
}
|
|
2554
|
-
})),
|
|
2576
|
+
})), Q(n, e.prop), e.prop;
|
|
2555
2577
|
},
|
|
2556
2578
|
onMounted(e) {
|
|
2557
2579
|
e.el = this.vm.$refs[e.ref], e.el && ((e.el.$el || e.el).__rule__ = e.rule), e.parser.mounted(e), this.$handle.effect(e, "mounted"), this.$handle.targetHook(e, "mounted");
|
|
@@ -2577,7 +2599,7 @@ function Zr(t) {
|
|
|
2577
2599
|
}) : n);
|
|
2578
2600
|
if (n.__fc__)
|
|
2579
2601
|
return this.renderSlot(s, n.__fc__, r);
|
|
2580
|
-
n.type &&
|
|
2602
|
+
n.type && T(() => {
|
|
2581
2603
|
this.$handle.loadChildren(e, r), this.$handle.refresh();
|
|
2582
2604
|
});
|
|
2583
2605
|
}
|
|
@@ -2585,7 +2607,7 @@ function Zr(t) {
|
|
|
2585
2607
|
},
|
|
2586
2608
|
defaultRender(e, r) {
|
|
2587
2609
|
const i = e.prop;
|
|
2588
|
-
return i.component ? typeof i.component == "string" ? this.vNode.make(i.component, i, r) : this.vNode.makeComponent(i.component, i, r) : this.vNode[e.type] ? this.vNode[e.type](i, r) : this.vNode[e.originType] ? this.vNode[e.originType](i, r) : this.vNode.make(
|
|
2610
|
+
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(Nt(i.type), i, r);
|
|
2589
2611
|
},
|
|
2590
2612
|
renderRule(e, r, i) {
|
|
2591
2613
|
if (!e) return;
|
|
@@ -2594,9 +2616,9 @@ function Zr(t) {
|
|
|
2594
2616
|
if (i)
|
|
2595
2617
|
s = e.type;
|
|
2596
2618
|
else if (s = e.is, e.type) {
|
|
2597
|
-
s =
|
|
2619
|
+
s = J(e.type);
|
|
2598
2620
|
const a = this.vNode.aliasMap[s];
|
|
2599
|
-
a && (s =
|
|
2621
|
+
a && (s = J(a));
|
|
2600
2622
|
}
|
|
2601
2623
|
if (!s) return;
|
|
2602
2624
|
const n = Te();
|
|
@@ -2617,7 +2639,7 @@ function rt(t) {
|
|
|
2617
2639
|
$manager: t.$manager,
|
|
2618
2640
|
vNode: new t.fc.CreateNode(t.vm),
|
|
2619
2641
|
id: Yr++
|
|
2620
|
-
}),
|
|
2642
|
+
}), Pt(this, {
|
|
2621
2643
|
options() {
|
|
2622
2644
|
return t.options;
|
|
2623
2645
|
},
|
|
@@ -2646,7 +2668,7 @@ function xr(t) {
|
|
|
2646
2668
|
if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
|
|
2647
2669
|
return this.parseEventLst(e, r, i, !0);
|
|
2648
2670
|
if (h.String(r)) {
|
|
2649
|
-
const n =
|
|
2671
|
+
const n = K(r);
|
|
2650
2672
|
if (n && r !== n)
|
|
2651
2673
|
return n.__inject ? this.parseEvent(e, n, i, !0) : n;
|
|
2652
2674
|
}
|
|
@@ -2658,8 +2680,8 @@ function xr(t) {
|
|
|
2658
2680
|
let p, m = n || o || a;
|
|
2659
2681
|
if (h.Object(c) && (p = c.inject, c = c.name, m = c.prefix || m), m) {
|
|
2660
2682
|
r || (m = `native-${m}`);
|
|
2661
|
-
const
|
|
2662
|
-
this.vm.$emit(
|
|
2683
|
+
const y = ye(`${m}-${c}`), v = (...w) => {
|
|
2684
|
+
this.vm.$emit(y, ...w), this.vm.$emit("emit-event", y, ...w), this.bus.$emit(y, ...w);
|
|
2663
2685
|
};
|
|
2664
2686
|
if (v.__emit = !0, !p && l === !1)
|
|
2665
2687
|
i[c] = v;
|
|
@@ -2710,23 +2732,18 @@ function xr(t) {
|
|
|
2710
2732
|
},
|
|
2711
2733
|
loadFetchVar(e, r) {
|
|
2712
2734
|
const i = (s) => this.loadStrVar(s, r);
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
s
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
Object.keys(e.data).forEach((n) => {
|
|
2722
|
-
s[i(n)] = i(e.data[n]);
|
|
2723
|
-
}), e.data = s;
|
|
2724
|
-
}
|
|
2725
|
-
return e;
|
|
2735
|
+
return e.action = i(e.action || ""), ["headers", "data", "query"].forEach((s) => {
|
|
2736
|
+
if (e[s]) {
|
|
2737
|
+
const n = {};
|
|
2738
|
+
Object.keys(e[s]).forEach((o) => {
|
|
2739
|
+
n[i(o)] = i(e[s][o]);
|
|
2740
|
+
}), e[s] = n;
|
|
2741
|
+
}
|
|
2742
|
+
}), e;
|
|
2726
2743
|
}
|
|
2727
2744
|
});
|
|
2728
2745
|
}
|
|
2729
|
-
const
|
|
2746
|
+
const yt = ["hook:updated", "hook:mounted"];
|
|
2730
2747
|
function ei(t) {
|
|
2731
2748
|
_(t.prototype, {
|
|
2732
2749
|
usePage() {
|
|
@@ -2741,9 +2758,9 @@ function ei(t) {
|
|
|
2741
2758
|
},
|
|
2742
2759
|
pageLoad() {
|
|
2743
2760
|
const e = () => {
|
|
2744
|
-
this.pageEnd ? (this.vm.$off(
|
|
2761
|
+
this.pageEnd ? (this.vm.$off(yt, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
|
|
2745
2762
|
};
|
|
2746
|
-
this.vm.$on(
|
|
2763
|
+
this.vm.$on(yt, e);
|
|
2747
2764
|
}
|
|
2748
2765
|
});
|
|
2749
2766
|
}
|
|
@@ -2772,8 +2789,8 @@ function ii(t) {
|
|
|
2772
2789
|
__fc__: Ke(fe(t), !0)
|
|
2773
2790
|
});
|
|
2774
2791
|
}
|
|
2775
|
-
function
|
|
2776
|
-
const i =
|
|
2792
|
+
function qt(t, e, r) {
|
|
2793
|
+
const i = De(), s = !!e.field;
|
|
2777
2794
|
_(this, {
|
|
2778
2795
|
id: i,
|
|
2779
2796
|
ref: i,
|
|
@@ -2802,7 +2819,7 @@ function Nt(t, e, r) {
|
|
|
2802
2819
|
field: e.field || void 0
|
|
2803
2820
|
}), this.updateKey(), ii(this), this.update(t, !0);
|
|
2804
2821
|
}
|
|
2805
|
-
_(
|
|
2822
|
+
_(qt.prototype, {
|
|
2806
2823
|
getParentGroup() {
|
|
2807
2824
|
let t = this.parent;
|
|
2808
2825
|
for (; t; ) {
|
|
@@ -2872,17 +2889,18 @@ _(Nt.prototype, {
|
|
|
2872
2889
|
t === void 0 ? this.payload = {} : delete this.payload[t];
|
|
2873
2890
|
},
|
|
2874
2891
|
updateKey(t) {
|
|
2875
|
-
this.key =
|
|
2892
|
+
this.key = De(), t && this.parent && this.parent.updateKey(t);
|
|
2876
2893
|
},
|
|
2877
2894
|
updateType() {
|
|
2878
|
-
this.originType = this.rule.type, this.type =
|
|
2895
|
+
this.originType = this.rule.type, this.type = J(this.rule.type), this.trueType = this.$handle.getType(this.originType);
|
|
2879
2896
|
},
|
|
2880
2897
|
setParser(t) {
|
|
2881
2898
|
this.parser = t, t.init(this);
|
|
2882
2899
|
},
|
|
2883
2900
|
initProp() {
|
|
2901
|
+
var e, r;
|
|
2884
2902
|
const t = b({}, this.rule);
|
|
2885
|
-
delete t.children, delete t.validate, this.prop =
|
|
2903
|
+
delete t.children, delete t.validate, this.prop = Z({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
|
|
2886
2904
|
},
|
|
2887
2905
|
initNone() {
|
|
2888
2906
|
this.none = !(h.Undef(this.prop.display) || this.prop.display);
|
|
@@ -2952,17 +2970,17 @@ function ni(t) {
|
|
|
2952
2970
|
_(t.prototype, {
|
|
2953
2971
|
nextRefresh(e) {
|
|
2954
2972
|
const r = this.loadedId;
|
|
2955
|
-
|
|
2973
|
+
T(() => {
|
|
2956
2974
|
r === this.loadedId && (e ? e() : this.refresh());
|
|
2957
2975
|
});
|
|
2958
2976
|
},
|
|
2959
2977
|
parseRule(e) {
|
|
2960
|
-
const r =
|
|
2978
|
+
const r = ft(e);
|
|
2961
2979
|
return Object.defineProperties(r, {
|
|
2962
2980
|
__origin__: Ke(e, !0)
|
|
2963
2981
|
}), si(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
|
|
2964
2982
|
i && this.loadFn(i, r);
|
|
2965
|
-
}), this.loadCtrl(r), r.update && (r.update =
|
|
2983
|
+
}), this.loadCtrl(r), r.update && (r.update = K(r.update)), r;
|
|
2966
2984
|
},
|
|
2967
2985
|
loadFn(e, r) {
|
|
2968
2986
|
["on", "props", "nativeOn", "deep"].forEach((i) => {
|
|
@@ -2971,12 +2989,12 @@ function ni(t) {
|
|
|
2971
2989
|
},
|
|
2972
2990
|
loadCtrl(e) {
|
|
2973
2991
|
e.control && e.control.forEach((r) => {
|
|
2974
|
-
r.handle && (r.handle =
|
|
2992
|
+
r.handle && (r.handle = K(r.handle));
|
|
2975
2993
|
});
|
|
2976
2994
|
},
|
|
2977
2995
|
syncProp(e) {
|
|
2978
2996
|
const r = e.rule;
|
|
2979
|
-
h.trueArray(r.sync) &&
|
|
2997
|
+
h.trueArray(r.sync) && Q([{
|
|
2980
2998
|
on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
|
|
2981
2999
|
r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
|
|
2982
3000
|
}, i), {})
|
|
@@ -3007,26 +3025,26 @@ function ni(t) {
|
|
|
3007
3025
|
if (r && !h.Object(o) || !this.pageEnd && !r && a >= this.first) return;
|
|
3008
3026
|
if (o.__fc__ && o.__fc__.root === e && this.ctxs[o.__fc__.id])
|
|
3009
3027
|
return s(o.__fc__.loadChildrenPending(), o.__fc__), o.__fc__;
|
|
3010
|
-
let l =
|
|
3028
|
+
let l = ft(o);
|
|
3011
3029
|
const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
|
|
3012
3030
|
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);
|
|
3013
|
-
let c, p = !1, m = !!o.__fc__,
|
|
3031
|
+
let c, p = !1, m = !!o.__fc__, y = l.value;
|
|
3014
3032
|
if (m) {
|
|
3015
|
-
if (c = o.__fc__,
|
|
3016
|
-
if (
|
|
3033
|
+
if (c = o.__fc__, y = c.defaultValue, c.deleted) {
|
|
3034
|
+
if ($t(c))
|
|
3017
3035
|
return;
|
|
3018
3036
|
c.update(this);
|
|
3019
3037
|
} else if (!c.check(this)) {
|
|
3020
|
-
if (
|
|
3038
|
+
if ($t(c))
|
|
3021
3039
|
return;
|
|
3022
|
-
e[a] = o = o._clone ? o._clone() :
|
|
3040
|
+
e[a] = o = o._clone ? o._clone() : At(et(o)), c = null, p = !0;
|
|
3023
3041
|
}
|
|
3024
3042
|
}
|
|
3025
3043
|
if (c)
|
|
3026
3044
|
c.originType !== c.rule.type && c.updateType(), this.bindParser(c), this.appendValue(c.rule), c.parent && c.parent !== r && this.rmSubRuleData(c);
|
|
3027
3045
|
else {
|
|
3028
3046
|
const D = this.parseRule(o);
|
|
3029
|
-
c = new
|
|
3047
|
+
c = new qt(this, D, y), this.bindParser(c);
|
|
3030
3048
|
}
|
|
3031
3049
|
[!1, !0].forEach((D) => this.parseEmit(c, D)), this.syncProp(c), c.parent = r || null, c.root = e, this.setCtx(c), !p && !m && (this.effect(c, "load"), this.targetHook(c, "load")), this.effect(c, "created");
|
|
3032
3050
|
const v = c.loadChildrenPending();
|
|
@@ -3052,7 +3070,7 @@ function ni(t) {
|
|
|
3052
3070
|
return (ae[l.condition || "=="] || ae["=="])(p, l.value);
|
|
3053
3071
|
};
|
|
3054
3072
|
if (!h.trueArray(l.rule)) continue;
|
|
3055
|
-
const c =
|
|
3073
|
+
const c = q(b({}, l), {
|
|
3056
3074
|
valid: F(() => u(e.rule.value, s)),
|
|
3057
3075
|
ctrl: ai(e, l.rule),
|
|
3058
3076
|
isHidden: h.String(l.rule[0])
|
|
@@ -3063,13 +3081,13 @@ function ni(t) {
|
|
|
3063
3081
|
const n = [];
|
|
3064
3082
|
let o = !1;
|
|
3065
3083
|
return this.deferSyncValue(() => {
|
|
3066
|
-
i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: c, append: p, child: m, ctrl:
|
|
3084
|
+
i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: c, append: p, child: m, ctrl: y, method: v }) => {
|
|
3067
3085
|
if (a) {
|
|
3068
3086
|
l ? e.ctrlRule.push({
|
|
3069
3087
|
__ctrl: !0,
|
|
3070
3088
|
children: u,
|
|
3071
3089
|
valid: l
|
|
3072
|
-
}) :
|
|
3090
|
+
}) : y && e.ctrlRule.splice(e.ctrlRule.indexOf(y) >>> 0, 1), n[l ? "push" : "unshift"](() => {
|
|
3073
3091
|
v === "disabled" || v === "enabled" ? this.api.disabled(!l, u) : v === "display" ? this.api.display(l, u) : v === "required" ? (u.forEach((w) => {
|
|
3074
3092
|
this.api.setEffect(w, "required", l);
|
|
3075
3093
|
}), l || this.api.clearValidateState(u)) : this.api.hidden(!l, u);
|
|
@@ -3088,14 +3106,14 @@ function ni(t) {
|
|
|
3088
3106
|
c ? s.prepend(w, c, m) : p || m ? s.append(w, p || e.id, m) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, w);
|
|
3089
3107
|
});
|
|
3090
3108
|
} else {
|
|
3091
|
-
e.ctrlRule.splice(e.ctrlRule.indexOf(
|
|
3092
|
-
const w = oe(
|
|
3109
|
+
e.ctrlRule.splice(e.ctrlRule.indexOf(y), 1);
|
|
3110
|
+
const w = oe(y);
|
|
3093
3111
|
w && w.rm();
|
|
3094
3112
|
}
|
|
3095
3113
|
});
|
|
3096
3114
|
}), n.length && (this.loading ? n.length && this.bus.$once("load-end", () => {
|
|
3097
3115
|
n.forEach((a) => a());
|
|
3098
|
-
}) : n.length &&
|
|
3116
|
+
}) : n.length && T(() => {
|
|
3099
3117
|
n.forEach((a) => a());
|
|
3100
3118
|
})), this.vm.$emit("control", e.origin, this.api), this.effect(e, "control"), o;
|
|
3101
3119
|
},
|
|
@@ -3118,7 +3136,7 @@ function ni(t) {
|
|
|
3118
3136
|
});
|
|
3119
3137
|
}
|
|
3120
3138
|
function si(t) {
|
|
3121
|
-
const e =
|
|
3139
|
+
const e = Tt();
|
|
3122
3140
|
return Object.keys(e).forEach((r) => {
|
|
3123
3141
|
E(t, r) || k(t, r, e[r]);
|
|
3124
3142
|
}), t;
|
|
@@ -3134,7 +3152,7 @@ function ai(t, e) {
|
|
|
3134
3152
|
return i;
|
|
3135
3153
|
}
|
|
3136
3154
|
}
|
|
3137
|
-
function
|
|
3155
|
+
function $t(t) {
|
|
3138
3156
|
return !!t.rule.__ctrl;
|
|
3139
3157
|
}
|
|
3140
3158
|
function li(t) {
|
|
@@ -3144,6 +3162,12 @@ function li(t) {
|
|
|
3144
3162
|
rule: e.origin,
|
|
3145
3163
|
api: this.api,
|
|
3146
3164
|
setFlag: s || !1
|
|
3165
|
+
}), s && T(() => {
|
|
3166
|
+
T(() => {
|
|
3167
|
+
T(() => {
|
|
3168
|
+
this.api.clearValidateState(e.id);
|
|
3169
|
+
});
|
|
3170
|
+
});
|
|
3147
3171
|
}));
|
|
3148
3172
|
},
|
|
3149
3173
|
onInput(e, r) {
|
|
@@ -3175,9 +3199,9 @@ function li(t) {
|
|
|
3175
3199
|
},
|
|
3176
3200
|
syncForm() {
|
|
3177
3201
|
const e = {}, r = this.fields(), i = [];
|
|
3178
|
-
this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] =
|
|
3202
|
+
this.options.appendValue !== !1 && Object.keys(this.appendData).reduce((s, n) => (r.indexOf(n) === -1 && (s[n] = Se(this.appendData, n)), s), e), r.reduce((s, n) => {
|
|
3179
3203
|
const o = (this.fieldCtx[n] || []).filter((a) => !this.isIgnore(a.rule))[0] || this.fieldCtx[n][0];
|
|
3180
|
-
return this.isIgnore(o.rule) && i.push(n), s[n] =
|
|
3204
|
+
return this.isIgnore(o.rule) && i.push(n), s[n] = Se(o.rule, "value"), s;
|
|
3181
3205
|
}, e), this.form = ee(e), this.ignoreFields = i, this.syncValue();
|
|
3182
3206
|
},
|
|
3183
3207
|
isIgnore(e) {
|
|
@@ -3201,7 +3225,7 @@ function li(t) {
|
|
|
3201
3225
|
}), this.vm.updateValue(e);
|
|
3202
3226
|
},
|
|
3203
3227
|
isChange(e, r) {
|
|
3204
|
-
return JSON.stringify(this.getFormData(e),
|
|
3228
|
+
return JSON.stringify(this.getFormData(e), vt) !== JSON.stringify(r, vt);
|
|
3205
3229
|
},
|
|
3206
3230
|
isQuote(e, r) {
|
|
3207
3231
|
return (h.Object(r) || Array.isArray(r)) && r === e.rule.value;
|
|
@@ -3234,10 +3258,10 @@ function li(t) {
|
|
|
3234
3258
|
}
|
|
3235
3259
|
});
|
|
3236
3260
|
}
|
|
3237
|
-
function
|
|
3261
|
+
function vt(t, e) {
|
|
3238
3262
|
return typeof e == "function" ? "" + e : e;
|
|
3239
3263
|
}
|
|
3240
|
-
const
|
|
3264
|
+
const Re = {
|
|
3241
3265
|
init(t) {
|
|
3242
3266
|
},
|
|
3243
3267
|
toFormValue(t, e) {
|
|
@@ -3288,35 +3312,35 @@ function ci(t) {
|
|
|
3288
3312
|
getParser(e) {
|
|
3289
3313
|
const r = this.fc.parsers, i = this.fc.renderDriver;
|
|
3290
3314
|
if (i) {
|
|
3291
|
-
const s = i.parsers || {}, n = s[e.originType] || s[
|
|
3315
|
+
const s = i.parsers || {}, n = s[e.originType] || s[J(e.type)] || s[e.trueType];
|
|
3292
3316
|
if (n)
|
|
3293
3317
|
return n;
|
|
3294
3318
|
}
|
|
3295
|
-
return r[e.originType] || r[
|
|
3319
|
+
return r[e.originType] || r[J(e.type)] || r[e.trueType] || Re;
|
|
3296
3320
|
},
|
|
3297
3321
|
bindParser(e) {
|
|
3298
3322
|
e.setParser(this.getParser(e));
|
|
3299
3323
|
},
|
|
3300
3324
|
getType(e) {
|
|
3301
|
-
const r = this.fc.CreateNode.aliasMap, i = r[e] || r[
|
|
3302
|
-
return
|
|
3325
|
+
const r = this.fc.CreateNode.aliasMap, i = r[e] || r[J(e)] || e;
|
|
3326
|
+
return J(i);
|
|
3303
3327
|
},
|
|
3304
3328
|
noWatch(e) {
|
|
3305
3329
|
this.noWatchFn || (this.noWatchFn = e), F(e), this.noWatchFn === e && (this.noWatchFn = null);
|
|
3306
3330
|
},
|
|
3307
3331
|
watchCtx(e) {
|
|
3308
|
-
if (
|
|
3309
|
-
const s =
|
|
3310
|
-
e.refRule[i] = s, e.watch.push(
|
|
3332
|
+
if (St().filter((i) => i[0] !== "_" && i[0] !== "$" && ui.indexOf(i) === -1).forEach((i) => {
|
|
3333
|
+
const s = Se(e.rule, i), n = i === "children";
|
|
3334
|
+
e.refRule[i] = s, e.watch.push(L(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
|
|
3311
3335
|
let l = s.value;
|
|
3312
3336
|
if (!this.isBreakWatch()) {
|
|
3313
3337
|
if (n && e.parser.loadChildren === !1) {
|
|
3314
3338
|
this.$render.clearCache(e), this.nextRefresh();
|
|
3315
3339
|
return;
|
|
3316
3340
|
}
|
|
3317
|
-
if (this.watching = !0,
|
|
3341
|
+
if (this.watching = !0, T(() => {
|
|
3318
3342
|
this.targetHook(e, "watch", { key: i, oldValue: a, newValue: l });
|
|
3319
|
-
}), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(),
|
|
3343
|
+
}), i === "hidden" && !!l != !!a && (this.$render.clearCacheAll(), T(() => {
|
|
3320
3344
|
this.targetHook(e, "hidden", { value: l });
|
|
3321
3345
|
})), i === "ignore" && e.input || i === "hidden" && e.input && (e.rule.ignore === "hidden" || this.options.ignoreHiddenFields))
|
|
3322
3346
|
this.syncForm();
|
|
@@ -3341,7 +3365,7 @@ function ci(t) {
|
|
|
3341
3365
|
s && (i = this.api.t(s[1]));
|
|
3342
3366
|
}
|
|
3343
3367
|
return i;
|
|
3344
|
-
}), e.refRule.__$validate = he(() =>
|
|
3368
|
+
}), e.refRule.__$validate = he(() => G(e.rule.validate).map((i) => {
|
|
3345
3369
|
const s = b({}, i);
|
|
3346
3370
|
if (s.message) {
|
|
3347
3371
|
const n = s.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
|
|
@@ -3361,8 +3385,8 @@ function ci(t) {
|
|
|
3361
3385
|
}
|
|
3362
3386
|
return s;
|
|
3363
3387
|
})), e.input) {
|
|
3364
|
-
const i =
|
|
3365
|
-
e.watch.push(
|
|
3388
|
+
const i = Se(e.rule, "value");
|
|
3389
|
+
e.watch.push(L(() => i.value, () => {
|
|
3366
3390
|
let s = e.parser.toFormValue(i.value, e);
|
|
3367
3391
|
this.isChange(e, s) && this.setValue(e, i.value, s, !0);
|
|
3368
3392
|
}));
|
|
@@ -3379,7 +3403,7 @@ function ci(t) {
|
|
|
3379
3403
|
}), a = (l) => {
|
|
3380
3404
|
s === "value" ? this.onInput(e, l) : s[0] === "$" ? this.api.setEffect(e.id, s, l) : te(e.rule, s, l);
|
|
3381
3405
|
};
|
|
3382
|
-
(s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : o.value !==
|
|
3406
|
+
(s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : o.value !== H(e.rule, s)) && a(o.value), e.watch.push(L(o, (l) => {
|
|
3383
3407
|
n = l, setTimeout(() => {
|
|
3384
3408
|
a(l);
|
|
3385
3409
|
});
|
|
@@ -3397,15 +3421,15 @@ function ci(t) {
|
|
|
3397
3421
|
let u = !0;
|
|
3398
3422
|
for (let c = 0; c < a.group.length; c++) {
|
|
3399
3423
|
const p = a.group[c];
|
|
3400
|
-
let m,
|
|
3424
|
+
let m, y = null;
|
|
3401
3425
|
if (p.variable)
|
|
3402
|
-
|
|
3426
|
+
y = JSON.stringify(this.fc.getLoadData(p.variable) || "");
|
|
3403
3427
|
else if (p.field)
|
|
3404
|
-
|
|
3428
|
+
y = dt(p.field || "");
|
|
3405
3429
|
else
|
|
3406
3430
|
return !0;
|
|
3407
3431
|
let v = p.compare;
|
|
3408
|
-
if (v && (v =
|
|
3432
|
+
if (v && (v = dt(v || "")), p.mode ? m = n(p) : ae[p.condition] ? h.Function(p.handler) ? m = F(() => p.handler(this.api, e.rule)) : m = new Function("$condition", "$val", "$form", "$group", "$rule", `with($form){with(this){with($group){ return $condition['${p.condition}'](${y}, ${v || "$val"}); }}}`).call(this.api.form, ae, p.value, this.api.top.form, s ? this.subRuleData[s.id] || {} : {}, e.rule) : m = !1, l && m)
|
|
3409
3433
|
return !0;
|
|
3410
3434
|
l || (u = u && m);
|
|
3411
3435
|
}
|
|
@@ -3475,9 +3499,9 @@ function fi(t) {
|
|
|
3475
3499
|
this.fc.targetFormDriver(e, this.api, this.fc), this.vm.$emit(e, this.api), this.emitEvent(e, this.api);
|
|
3476
3500
|
},
|
|
3477
3501
|
emitEvent(e, ...r) {
|
|
3478
|
-
const i = this.options[e] || this.options[
|
|
3502
|
+
const i = this.options[e] || this.options[J("on-" + e)];
|
|
3479
3503
|
if (i) {
|
|
3480
|
-
const s =
|
|
3504
|
+
const s = K(i);
|
|
3481
3505
|
h.Function(s) && F(() => s(...r));
|
|
3482
3506
|
}
|
|
3483
3507
|
this.bus.$emit(e, ...r);
|
|
@@ -3486,7 +3510,7 @@ function fi(t) {
|
|
|
3486
3510
|
var n, o;
|
|
3487
3511
|
let s = (o = (n = e.prop) == null ? void 0 : n.hook) == null ? void 0 : o[r];
|
|
3488
3512
|
s && (s = Array.isArray(s) ? s : [s], s.forEach((a) => {
|
|
3489
|
-
F(() => a(
|
|
3513
|
+
F(() => a(q(b({}, i || {}), { rule: e.rule, api: this.api })));
|
|
3490
3514
|
}));
|
|
3491
3515
|
}
|
|
3492
3516
|
});
|
|
@@ -3521,7 +3545,7 @@ function hi(t) {
|
|
|
3521
3545
|
}), Object.keys(e.rule).forEach((i) => {
|
|
3522
3546
|
i[0] === "$" && (r[i.substr(1)] = () => e.rule[i]);
|
|
3523
3547
|
}), Object.keys(r).forEach((i) => {
|
|
3524
|
-
e.watch.push(
|
|
3548
|
+
e.watch.push(L(r[i], (s) => {
|
|
3525
3549
|
this.effect(e, "watch", { [i]: s });
|
|
3526
3550
|
}, { deep: !0 }));
|
|
3527
3551
|
});
|
|
@@ -3562,7 +3586,7 @@ function hi(t) {
|
|
|
3562
3586
|
else
|
|
3563
3587
|
return;
|
|
3564
3588
|
const m = b({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
|
|
3565
|
-
e && (m.getProp = () => e.effectData(u), m.clearProp = () => e.clearEffectData(u), m.mergeProp = (
|
|
3589
|
+
e && (m.getProp = () => e.effectData(u), m.clearProp = () => e.clearEffectData(u), m.mergeProp = (y) => Z(m.getProp(), [y]), m.id = e.id), this.bus.$emit(`p:${u}:${p}:${c.input ? 1 : 0}`, o, [m, r, this.api]);
|
|
3566
3590
|
});
|
|
3567
3591
|
}
|
|
3568
3592
|
});
|
|
@@ -3579,8 +3603,8 @@ function pi(t) {
|
|
|
3579
3603
|
return r.length ? r : !1;
|
|
3580
3604
|
} else return h.String(e) ? [e] : !1;
|
|
3581
3605
|
}
|
|
3582
|
-
function
|
|
3583
|
-
|
|
3606
|
+
function X(t) {
|
|
3607
|
+
Pt(this, {
|
|
3584
3608
|
options() {
|
|
3585
3609
|
return t.options.value || {};
|
|
3586
3610
|
},
|
|
@@ -3619,7 +3643,7 @@ function K(t) {
|
|
|
3619
3643
|
return i && i !== e && _(e, i), e;
|
|
3620
3644
|
}, zr(this));
|
|
3621
3645
|
}
|
|
3622
|
-
_(
|
|
3646
|
+
_(X.prototype, {
|
|
3623
3647
|
initData(t) {
|
|
3624
3648
|
_(this, {
|
|
3625
3649
|
ctxs: {},
|
|
@@ -3645,14 +3669,14 @@ _(K.prototype, {
|
|
|
3645
3669
|
});
|
|
3646
3670
|
}
|
|
3647
3671
|
});
|
|
3648
|
-
xr(
|
|
3649
|
-
ei(
|
|
3650
|
-
ri(
|
|
3651
|
-
ni(
|
|
3652
|
-
li(
|
|
3653
|
-
ci(
|
|
3654
|
-
fi(
|
|
3655
|
-
hi(
|
|
3672
|
+
xr(X);
|
|
3673
|
+
ei(X);
|
|
3674
|
+
ri(X);
|
|
3675
|
+
ni(X);
|
|
3676
|
+
li(X);
|
|
3677
|
+
ci(X);
|
|
3678
|
+
fi(X);
|
|
3679
|
+
hi(X);
|
|
3656
3680
|
const mi = "fcFragment", Be = {
|
|
3657
3681
|
name: mi,
|
|
3658
3682
|
functional: !0,
|
|
@@ -3678,7 +3702,14 @@ function yi() {
|
|
|
3678
3702
|
return (de.isReservedTag ? de.isReservedTag(r) : (o = (n = de) == null ? void 0 : n.config) != null && o.isReservedTag(r)) && (i == null || delete i.nativeOn, (a = i == null ? void 0 : i.props) == null || delete a.formCreateInject), this.makeComponent(r, i, s);
|
|
3679
3703
|
},
|
|
3680
3704
|
makeComponent(r, i, s) {
|
|
3705
|
+
var o;
|
|
3681
3706
|
let n = this.$h(r, gi(i), s || []);
|
|
3707
|
+
if ((o = n == null ? void 0 : n.componentOptions) != null && o.propsData && (i != null && i.props)) {
|
|
3708
|
+
const a = Object.keys(n.componentOptions.propsData);
|
|
3709
|
+
n.data.attrs || (n.data.attrs = {}), Object.keys(i.props).forEach((l) => {
|
|
3710
|
+
n.data.attrs[l] == null && a.indexOf(l) === -1 && ["string", "number", "boolean"].indexOf(typeof i.props[l]) > -1 && (n.data.attrs[l] = i.props[l]);
|
|
3711
|
+
});
|
|
3712
|
+
}
|
|
3682
3713
|
return n.context = this.vm, n;
|
|
3683
3714
|
},
|
|
3684
3715
|
aliasMap: t
|
|
@@ -3689,7 +3720,7 @@ function yi() {
|
|
|
3689
3720
|
},
|
|
3690
3721
|
use(r) {
|
|
3691
3722
|
Object.keys(r).forEach((i) => {
|
|
3692
|
-
const s = ye(i), n =
|
|
3723
|
+
const s = ye(i), n = jt(i).toLocaleLowerCase(), o = r[i];
|
|
3693
3724
|
[i, s, n].forEach((a) => {
|
|
3694
3725
|
e.alias(i, o), e.prototype[a] = function(l, u) {
|
|
3695
3726
|
return this.make(o, l, u);
|
|
@@ -3720,7 +3751,7 @@ _(Ut.prototype, {
|
|
|
3720
3751
|
this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
|
|
3721
3752
|
},
|
|
3722
3753
|
updateKey() {
|
|
3723
|
-
this.key =
|
|
3754
|
+
this.key = De();
|
|
3724
3755
|
},
|
|
3725
3756
|
//TODO interface
|
|
3726
3757
|
init() {
|
|
@@ -3742,7 +3773,7 @@ _(Ut.prototype, {
|
|
|
3742
3773
|
return e(this.vm);
|
|
3743
3774
|
},
|
|
3744
3775
|
mergeOptions(t, e) {
|
|
3745
|
-
return
|
|
3776
|
+
return Q(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
|
|
3746
3777
|
},
|
|
3747
3778
|
updateOptions(t) {
|
|
3748
3779
|
this.$handle.fc.targetFormDriver("updateOptions", t, { handle: this.$handle, api: this.$handle.api }), this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
|
|
@@ -3764,17 +3795,17 @@ const vi = function(t) {
|
|
|
3764
3795
|
const e = {
|
|
3765
3796
|
name: "loadData",
|
|
3766
3797
|
_fn: [],
|
|
3767
|
-
|
|
3798
|
+
loaded(r, i, s) {
|
|
3768
3799
|
this.deleted(r);
|
|
3769
|
-
let n =
|
|
3800
|
+
let n = G(r.getValue());
|
|
3770
3801
|
const o = [];
|
|
3771
3802
|
n.forEach((a) => {
|
|
3772
3803
|
if (a && (a.attr || a.template)) {
|
|
3773
3804
|
let l = (p) => {
|
|
3774
3805
|
let m;
|
|
3775
|
-
a.template ? m = t.$handle.loadStrVar(a.template, p) : m = p(a.attr, a.default), a.copy !== !1 && (m = W(m));
|
|
3776
|
-
const
|
|
3777
|
-
a.to === "child" ?
|
|
3806
|
+
a.template ? m = t.$handle.loadStrVar(a.template, p) : a.handler && h.Function(a.handler) ? m = a.handler(p, i, s) : m = p(a.attr, a.default), a.copy !== !1 && (m = W(m));
|
|
3807
|
+
const y = a.modify ? i : r.getProp();
|
|
3808
|
+
a.to === "child" ? y.children ? k(y.children, 0, m) : k(y, "children", [m]) : te(y, a.to || "options", m), s.sync(i);
|
|
3778
3809
|
}, u = (p) => l(p);
|
|
3779
3810
|
const c = t.watchLoadData(u);
|
|
3780
3811
|
l = le(l, a.wait || 300), a.watch !== !1 ? o.push(c) : c();
|
|
@@ -3800,11 +3831,11 @@ const vi = function(t) {
|
|
|
3800
3831
|
const l = n[a];
|
|
3801
3832
|
if (l) {
|
|
3802
3833
|
const u = typeof l == "object";
|
|
3803
|
-
let c = (
|
|
3804
|
-
let v = t.t(u ? l.attr : l, u ? l.params : null,
|
|
3834
|
+
let c = (y) => {
|
|
3835
|
+
let v = t.t(u ? l.attr : l, u ? l.params : null, y);
|
|
3805
3836
|
const w = u && l.modify ? i : r.getProp();
|
|
3806
3837
|
a === "child" ? w.children ? k(w.children, 0, v) : k(w, "children", [v]) : te(w, a, v), s.sync(i);
|
|
3807
|
-
}, p = (
|
|
3838
|
+
}, p = (y) => c(y);
|
|
3808
3839
|
const m = t.watchLoadData(p);
|
|
3809
3840
|
c = le(c, l.wait || 300), l.watch !== !1 ? o.push(m) : m();
|
|
3810
3841
|
}
|
|
@@ -3817,7 +3848,7 @@ const vi = function(t) {
|
|
|
3817
3848
|
}
|
|
3818
3849
|
};
|
|
3819
3850
|
return e.watch = e.loaded, e;
|
|
3820
|
-
},
|
|
3851
|
+
}, Ht = {
|
|
3821
3852
|
name: "componentValidate",
|
|
3822
3853
|
load(t, e, r) {
|
|
3823
3854
|
let i = t.getValue();
|
|
@@ -3826,7 +3857,7 @@ const vi = function(t) {
|
|
|
3826
3857
|
else {
|
|
3827
3858
|
h.Object(i) || (i = { method: i });
|
|
3828
3859
|
const s = i.method;
|
|
3829
|
-
delete i.method, t.getProp().validate = [
|
|
3860
|
+
delete i.method, t.getProp().validate = [q(b({}, i), {
|
|
3830
3861
|
validator(...n) {
|
|
3831
3862
|
const o = oe(e);
|
|
3832
3863
|
if (o)
|
|
@@ -3840,7 +3871,7 @@ const vi = function(t) {
|
|
|
3840
3871
|
}
|
|
3841
3872
|
},
|
|
3842
3873
|
watch(...t) {
|
|
3843
|
-
|
|
3874
|
+
Ht.load(...t);
|
|
3844
3875
|
}
|
|
3845
3876
|
}, _i = function(t) {
|
|
3846
3877
|
function e(s) {
|
|
@@ -3878,22 +3909,22 @@ const vi = function(t) {
|
|
|
3878
3909
|
i._fn[s.id] = t.watchLoadData(le((p, m) => {
|
|
3879
3910
|
if (m && a.watch === !1)
|
|
3880
3911
|
return i._fn[s.id]();
|
|
3881
|
-
const
|
|
3912
|
+
const y = t.$handle.loadFetchVar(W(a), p), v = q(b({
|
|
3882
3913
|
headers: {}
|
|
3883
|
-
},
|
|
3914
|
+
}, y), {
|
|
3884
3915
|
onSuccess(w, D) {
|
|
3885
3916
|
if (c()) return;
|
|
3886
|
-
let Y = (
|
|
3887
|
-
const P =
|
|
3888
|
-
h.Function(P) ? Y = P : P && h.String(P) && (Y = (
|
|
3917
|
+
let Y = (M) => D ? M : E(M, "data") ? M.data : M;
|
|
3918
|
+
const P = K(y.parse);
|
|
3919
|
+
h.Function(P) ? Y = P : P && h.String(P) && (Y = (M) => H(M, P)), l(Y(w, n, o)), o.sync(n);
|
|
3889
3920
|
},
|
|
3890
3921
|
onError(w) {
|
|
3891
|
-
l(void 0), !c() && (u || ((D) => xe(D.message || "fetch fail " +
|
|
3922
|
+
l(void 0), !c() && (u || ((D) => xe(D.message || "fetch fail " + y.action)))(w, n, o);
|
|
3892
3923
|
}
|
|
3893
3924
|
});
|
|
3894
3925
|
t.$handle.beforeFetch(v, { rule: n, api: o }).then(() => {
|
|
3895
|
-
if (h.Function(
|
|
3896
|
-
|
|
3926
|
+
if (h.Function(y.action)) {
|
|
3927
|
+
y.action(n, o).then((w) => {
|
|
3897
3928
|
v.onSuccess(w, !0);
|
|
3898
3929
|
}).catch((w) => {
|
|
3899
3930
|
v.onError(w);
|
|
@@ -3907,7 +3938,7 @@ const vi = function(t) {
|
|
|
3907
3938
|
const i = {
|
|
3908
3939
|
name: "fetch",
|
|
3909
3940
|
_fn: [],
|
|
3910
|
-
|
|
3941
|
+
loaded(...s) {
|
|
3911
3942
|
r(...s);
|
|
3912
3943
|
},
|
|
3913
3944
|
watch(...s) {
|
|
@@ -3922,7 +3953,7 @@ const vi = function(t) {
|
|
|
3922
3953
|
fetch: _i,
|
|
3923
3954
|
loadData: vi,
|
|
3924
3955
|
t: bi,
|
|
3925
|
-
componentValidate:
|
|
3956
|
+
componentValidate: Ht
|
|
3926
3957
|
};
|
|
3927
3958
|
function wi(t) {
|
|
3928
3959
|
t = t || /* @__PURE__ */ new Map();
|
|
@@ -3986,30 +4017,43 @@ function Ei(t) {
|
|
|
3986
4017
|
}
|
|
3987
4018
|
return null;
|
|
3988
4019
|
}
|
|
3989
|
-
function
|
|
4020
|
+
function Ri(t) {
|
|
4021
|
+
const e = sessionStorage.getItem(t);
|
|
4022
|
+
if (e)
|
|
4023
|
+
try {
|
|
4024
|
+
return JSON.parse(e);
|
|
4025
|
+
} catch (r) {
|
|
4026
|
+
return e;
|
|
4027
|
+
}
|
|
4028
|
+
return null;
|
|
4029
|
+
}
|
|
4030
|
+
function it(t, e) {
|
|
3990
4031
|
if (!e)
|
|
3991
4032
|
return null;
|
|
3992
4033
|
const r = e.split(".");
|
|
3993
4034
|
let i = t(r.shift());
|
|
3994
|
-
return r.length ? i == null ? null :
|
|
3995
|
-
}
|
|
3996
|
-
function Ri(t) {
|
|
3997
|
-
return Ht(ki, t);
|
|
4035
|
+
return r.length ? i == null ? null : H(i, r) : i;
|
|
3998
4036
|
}
|
|
3999
4037
|
function Si(t) {
|
|
4000
|
-
return
|
|
4038
|
+
return it(ki, t);
|
|
4001
4039
|
}
|
|
4002
|
-
function Di(t
|
|
4040
|
+
function Di(t) {
|
|
4041
|
+
return it(Ei, t);
|
|
4042
|
+
}
|
|
4043
|
+
function ji(t) {
|
|
4044
|
+
return it(Ri, t);
|
|
4045
|
+
}
|
|
4046
|
+
function Ai(t, e) {
|
|
4003
4047
|
let r;
|
|
4004
4048
|
return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
|
|
4005
4049
|
}
|
|
4006
4050
|
function Le() {
|
|
4007
|
-
return
|
|
4051
|
+
return Ai("name", ...arguments);
|
|
4008
4052
|
}
|
|
4009
|
-
function
|
|
4053
|
+
function Vi(t) {
|
|
4010
4054
|
return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
|
|
4011
4055
|
}
|
|
4012
|
-
function
|
|
4056
|
+
function Ii(t, e) {
|
|
4013
4057
|
const r = new Vue({
|
|
4014
4058
|
data() {
|
|
4015
4059
|
return { rule: t, option: e || {} };
|
|
@@ -4020,12 +4064,12 @@ function Ai(t, e) {
|
|
|
4020
4064
|
});
|
|
4021
4065
|
return r.$mount(), r;
|
|
4022
4066
|
}
|
|
4023
|
-
function
|
|
4067
|
+
function Pi(t) {
|
|
4024
4068
|
const e = t.key || [], r = t.array || [], i = t.normal || [];
|
|
4025
|
-
|
|
4069
|
+
Rt.push(...e), Ze.push(...r), Ye.push(...i), Bt([...e, ...r, ...i]);
|
|
4026
4070
|
}
|
|
4027
|
-
let
|
|
4028
|
-
const U = {},
|
|
4071
|
+
let Ti = 1;
|
|
4072
|
+
const U = {}, ke = Symbol("defValue");
|
|
4029
4073
|
function Gt(t) {
|
|
4030
4074
|
const e = {
|
|
4031
4075
|
[Be.name]: Be
|
|
@@ -4033,8 +4077,8 @@ function Gt(t) {
|
|
|
4033
4077
|
t.extendApi
|
|
4034
4078
|
], u = b({}, Ci), c = Kr();
|
|
4035
4079
|
let p = { global: {} };
|
|
4036
|
-
const m = ee({}),
|
|
4037
|
-
|
|
4080
|
+
const m = ee({}), y = yi(), v = {}, w = t.isMobile === !0, D = {};
|
|
4081
|
+
Pi(t.attrs || {});
|
|
4038
4082
|
function Y(f) {
|
|
4039
4083
|
const d = U[f];
|
|
4040
4084
|
if (Array.isArray(d))
|
|
@@ -4045,37 +4089,37 @@ function Gt(t) {
|
|
|
4045
4089
|
function P(f) {
|
|
4046
4090
|
o.push(f);
|
|
4047
4091
|
}
|
|
4048
|
-
function
|
|
4092
|
+
function M() {
|
|
4049
4093
|
const f = Le(...arguments);
|
|
4050
4094
|
f.id && f.prop && (i[f.id] = f.prop);
|
|
4051
4095
|
}
|
|
4052
|
-
function
|
|
4096
|
+
function je() {
|
|
4053
4097
|
const f = Le(...arguments);
|
|
4054
|
-
f.id && f.prop && (u[f.id] = h.Function(f.prop) ? f.prop :
|
|
4098
|
+
f.id && f.prop && (u[f.id] = h.Function(f.prop) ? f.prop : q(b({}, f.prop), {
|
|
4055
4099
|
name: f.id
|
|
4056
4100
|
}));
|
|
4057
4101
|
}
|
|
4058
4102
|
function ve(f) {
|
|
4059
|
-
|
|
4103
|
+
y.use(f);
|
|
4060
4104
|
}
|
|
4061
4105
|
function O() {
|
|
4062
4106
|
const f = Le(...arguments);
|
|
4063
|
-
if (!f.id || !f.prop) return
|
|
4064
|
-
const d =
|
|
4065
|
-
r[d] =
|
|
4107
|
+
if (!f.id || !f.prop) return Re;
|
|
4108
|
+
const d = J(f.id), g = f.prop, $ = g.merge === !0 ? r[d] : void 0;
|
|
4109
|
+
r[d] = Fe(g, $ || Re), c[d] = I(d), g.maker && _(c, g.maker);
|
|
4066
4110
|
}
|
|
4067
4111
|
function S(f, d) {
|
|
4068
4112
|
let g;
|
|
4069
4113
|
if (h.String(f)) {
|
|
4070
4114
|
if (g = f, d === void 0)
|
|
4071
|
-
return ["form-create", "formcreate"].indexOf(g) > -1 ?
|
|
4115
|
+
return ["form-create", "formcreate"].indexOf(g) > -1 ? B() : e[g];
|
|
4072
4116
|
} else
|
|
4073
|
-
g =
|
|
4117
|
+
g = J(f.name), d = f;
|
|
4074
4118
|
if (!g || !d) return;
|
|
4075
|
-
const
|
|
4076
|
-
e[g] = d, e[
|
|
4119
|
+
const $ = J(g);
|
|
4120
|
+
e[g] = d, e[$] = d, delete y.aliasMap[g], delete y.aliasMap[$], delete r[g], delete r[$], d.formCreateParser && O(g, d.formCreateParser);
|
|
4077
4121
|
}
|
|
4078
|
-
function
|
|
4122
|
+
function B() {
|
|
4079
4123
|
return Mr(Ve, e, i);
|
|
4080
4124
|
}
|
|
4081
4125
|
function re() {
|
|
@@ -4085,11 +4129,11 @@ function Gt(t) {
|
|
|
4085
4129
|
return h.Function(f.install) ? f.install(ie, d) : h.Function(f) && f(ie, d), this;
|
|
4086
4130
|
}
|
|
4087
4131
|
function ie(f, d, g) {
|
|
4088
|
-
let
|
|
4089
|
-
const C =
|
|
4090
|
-
return C.$parent = g,
|
|
4132
|
+
let $ = Ii(f, d || {});
|
|
4133
|
+
const C = $.$refs.fc.formCreate;
|
|
4134
|
+
return C.$parent = g, Vi(C.options).appendChild($.$el), C.api();
|
|
4091
4135
|
}
|
|
4092
|
-
|
|
4136
|
+
Fe(ie, D);
|
|
4093
4137
|
function Wt(f) {
|
|
4094
4138
|
let d = b({}, t);
|
|
4095
4139
|
return f ? d.inherit = {
|
|
@@ -4111,32 +4155,32 @@ function Gt(t) {
|
|
|
4111
4155
|
v[f] = d;
|
|
4112
4156
|
}
|
|
4113
4157
|
function zt(f, d) {
|
|
4114
|
-
const g = n[f] || {},
|
|
4158
|
+
const g = n[f] || {}, $ = g.parsers || {};
|
|
4115
4159
|
d.parsers && Object.keys(d.parsers).forEach((C) => {
|
|
4116
|
-
|
|
4117
|
-
}), d.name = f, n[f] =
|
|
4160
|
+
$[C] = Fe(d.parsers[C], Re);
|
|
4161
|
+
}), d.name = f, n[f] = q(b(b({}, g), d), { parsers: $ });
|
|
4118
4162
|
}
|
|
4119
4163
|
function _e(f) {
|
|
4120
4164
|
f && Object.keys(U).forEach((d) => {
|
|
4121
|
-
(Array.isArray(U[d]) ? U[d] : [U[d]]).forEach((
|
|
4122
|
-
|
|
4165
|
+
(Array.isArray(U[d]) ? U[d] : [U[d]]).forEach(($) => {
|
|
4166
|
+
$.bus.$emit("$loadData." + f);
|
|
4123
4167
|
});
|
|
4124
4168
|
});
|
|
4125
4169
|
}
|
|
4126
|
-
function
|
|
4170
|
+
function Ae(f, d) {
|
|
4127
4171
|
te(m, f, d), _e(f);
|
|
4128
4172
|
}
|
|
4129
|
-
function
|
|
4130
|
-
const g = (
|
|
4131
|
-
g._driver = !0,
|
|
4173
|
+
function Ce(f, d) {
|
|
4174
|
+
const g = (...$) => F(() => d(...$));
|
|
4175
|
+
g._driver = !0, Ae(f, g);
|
|
4132
4176
|
}
|
|
4133
|
-
function
|
|
4177
|
+
function nt(f, d) {
|
|
4134
4178
|
const g = (f || "").split(".");
|
|
4135
4179
|
f = g.shift();
|
|
4136
|
-
const
|
|
4137
|
-
if (E(m, f) || k(m, f,
|
|
4180
|
+
const $ = g.join(".");
|
|
4181
|
+
if (E(m, f) || k(m, f, ke), m[f] !== ke) {
|
|
4138
4182
|
let C = m[f];
|
|
4139
|
-
return C && C._driver ? C = C(
|
|
4183
|
+
return C && C._driver ? C = C($) : g.length && (C = H(C, g)), C == null || C === "" ? d : C;
|
|
4140
4184
|
} else
|
|
4141
4185
|
return d;
|
|
4142
4186
|
}
|
|
@@ -4151,7 +4195,7 @@ function Gt(t) {
|
|
|
4151
4195
|
}
|
|
4152
4196
|
function Ve(f) {
|
|
4153
4197
|
_(this, {
|
|
4154
|
-
id:
|
|
4198
|
+
id: Ti++,
|
|
4155
4199
|
create: ie,
|
|
4156
4200
|
vm: f,
|
|
4157
4201
|
manager: $i(t.manager),
|
|
@@ -4161,7 +4205,7 @@ function Gt(t) {
|
|
|
4161
4205
|
formulas: v,
|
|
4162
4206
|
isMobile: w,
|
|
4163
4207
|
rules: f.$options.propsData.rule,
|
|
4164
|
-
name: f.$options.propsData.name ||
|
|
4208
|
+
name: f.$options.propsData.name || De(),
|
|
4165
4209
|
inFor: f.$options.propsData.inFor,
|
|
4166
4210
|
prop: {
|
|
4167
4211
|
components: e,
|
|
@@ -4172,7 +4216,7 @@ function Gt(t) {
|
|
|
4172
4216
|
get: null,
|
|
4173
4217
|
refreshData: _e,
|
|
4174
4218
|
loadData: m,
|
|
4175
|
-
CreateNode:
|
|
4219
|
+
CreateNode: y,
|
|
4176
4220
|
bus: new wi(),
|
|
4177
4221
|
unwatch: [],
|
|
4178
4222
|
options: hr({}),
|
|
@@ -4181,15 +4225,15 @@ function Gt(t) {
|
|
|
4181
4225
|
tmpData: ee({})
|
|
4182
4226
|
}), a.forEach((d) => {
|
|
4183
4227
|
this.bus.$on(d.name, d.callback);
|
|
4184
|
-
}),
|
|
4185
|
-
|
|
4228
|
+
}), T(() => {
|
|
4229
|
+
L(this.options, () => {
|
|
4186
4230
|
this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
|
|
4187
4231
|
}, { deep: !0 });
|
|
4188
|
-
}), _(f.$options.components, e), _(f.$options.directives, i), this.$handle = new
|
|
4232
|
+
}), _(f.$options.components, e), _(f.$options.directives, i), this.$handle = new X(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
|
|
4189
4233
|
}
|
|
4190
4234
|
Ve.isMobile = w, _(Ve.prototype, {
|
|
4191
4235
|
init() {
|
|
4192
|
-
this.isSub() && this.unwatch.push(
|
|
4236
|
+
this.isSub() && this.unwatch.push(L(() => this.vm.parent.fc.options.value, () => {
|
|
4193
4237
|
this.initOptions(), this.$handle.api.refresh();
|
|
4194
4238
|
}, { deep: !0 })), this.vm.$options.propsData.driver && (this.renderDriver = typeof this.vm.$options.propsData.driver == "object" ? this.vm.$options.propsData.driver : this.drivers[this.vm.$options.propsData.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
|
|
4195
4239
|
},
|
|
@@ -4198,44 +4242,44 @@ function Gt(t) {
|
|
|
4198
4242
|
return F(() => this.renderDriver[f](...d));
|
|
4199
4243
|
},
|
|
4200
4244
|
t(f, d, g) {
|
|
4201
|
-
let
|
|
4202
|
-
return
|
|
4245
|
+
let $ = g ? g("$t." + f) : this.globalLanguageDriver(f);
|
|
4246
|
+
return $ == null && ($ = ""), $ && d && Object.keys(d).forEach((C) => {
|
|
4203
4247
|
const R = new RegExp(`{${C}}`, "g");
|
|
4204
|
-
|
|
4205
|
-
}),
|
|
4248
|
+
$ = $.replace(R, d[C]);
|
|
4249
|
+
}), $;
|
|
4206
4250
|
},
|
|
4207
4251
|
globalDataDriver(f) {
|
|
4208
4252
|
let d = f.split(".");
|
|
4209
|
-
const g = d.shift(),
|
|
4210
|
-
if (
|
|
4211
|
-
if (
|
|
4212
|
-
return
|
|
4253
|
+
const g = d.shift(), $ = this.options.value.globalData && this.options.value.globalData[g];
|
|
4254
|
+
if ($) {
|
|
4255
|
+
if ($.type === "static")
|
|
4256
|
+
return H($.data, d);
|
|
4213
4257
|
{
|
|
4214
4258
|
let C;
|
|
4215
|
-
const R = this.fetchCache.get(
|
|
4259
|
+
const R = this.fetchCache.get($);
|
|
4216
4260
|
if (R) {
|
|
4217
|
-
if (R.status && (C =
|
|
4261
|
+
if (R.status && (C = H(R.data, d)), !R.loading)
|
|
4218
4262
|
return C;
|
|
4219
|
-
R.loading = !1, this.fetchCache.set(
|
|
4263
|
+
R.loading = !1, this.fetchCache.set($, R);
|
|
4220
4264
|
} else
|
|
4221
|
-
this.fetchCache.set(
|
|
4265
|
+
this.fetchCache.set($, { status: !1 });
|
|
4222
4266
|
const A = le(() => {
|
|
4223
4267
|
ce();
|
|
4224
|
-
const
|
|
4225
|
-
this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(
|
|
4226
|
-
},
|
|
4227
|
-
this.fetchCache.set(
|
|
4228
|
-
}, me = (
|
|
4229
|
-
if (ne &&
|
|
4268
|
+
const N = this.fetchCache.get($);
|
|
4269
|
+
this.options.value.globalData && Object.values(this.options.value.globalData).indexOf($) !== -1 ? (N && (N.loading = !0, this.fetchCache.set($, N)), this.bus.$emit("$loadData.$globalData." + g)) : this.fetchCache.delete($);
|
|
4270
|
+
}, $.wait || 600), pe = (N) => {
|
|
4271
|
+
this.fetchCache.set($, { status: !0, data: N }), this.bus.$emit("$loadData.$globalData." + g);
|
|
4272
|
+
}, me = (N, ne) => {
|
|
4273
|
+
if (ne && $.watch === !1)
|
|
4230
4274
|
return ce();
|
|
4231
4275
|
if (ne) {
|
|
4232
4276
|
A();
|
|
4233
4277
|
return;
|
|
4234
4278
|
}
|
|
4235
|
-
const se = this.$handle.loadFetchVar(Ge(
|
|
4236
|
-
this.$handle.api.fetch(se).then((
|
|
4237
|
-
pe(
|
|
4238
|
-
}).catch((
|
|
4279
|
+
const se = this.$handle.loadFetchVar(Ge($), N);
|
|
4280
|
+
this.$handle.api.fetch(se).then((Oe) => {
|
|
4281
|
+
pe(Oe);
|
|
4282
|
+
}).catch((Oe) => {
|
|
4239
4283
|
pe(null);
|
|
4240
4284
|
});
|
|
4241
4285
|
}, ce = this.watchLoadData(me);
|
|
@@ -4245,33 +4289,33 @@ function Gt(t) {
|
|
|
4245
4289
|
},
|
|
4246
4290
|
getLocale() {
|
|
4247
4291
|
let f = this.vm.top.$props.locale;
|
|
4248
|
-
return f && typeof f == "object" ? f.name : typeof f == "string" ? f :
|
|
4292
|
+
return f && typeof f == "object" ? f.name : typeof f == "string" ? f : "zh-cn";
|
|
4249
4293
|
},
|
|
4250
4294
|
globalLanguageDriver(f) {
|
|
4251
4295
|
let d = this.vm.top.$props.locale, g;
|
|
4252
|
-
if (d && typeof d == "object" && (g =
|
|
4253
|
-
const
|
|
4254
|
-
g =
|
|
4296
|
+
if (d && typeof d == "object" && (g = H(d, f)), g == null) {
|
|
4297
|
+
const $ = this.options.value.language || {}, C = this.getLocale();
|
|
4298
|
+
g = H($[C], f);
|
|
4255
4299
|
}
|
|
4256
4300
|
return g;
|
|
4257
4301
|
},
|
|
4258
4302
|
globalVarDriver(f) {
|
|
4259
4303
|
let d = f.split(".");
|
|
4260
|
-
const g = d.shift(),
|
|
4261
|
-
if (
|
|
4262
|
-
const C = h.Function(
|
|
4304
|
+
const g = d.shift(), $ = this.options.value.globalVariable && this.options.value.globalVariable[g];
|
|
4305
|
+
if ($) {
|
|
4306
|
+
const C = h.Function($) ? $ : K($.handle);
|
|
4263
4307
|
if (C)
|
|
4264
|
-
return
|
|
4308
|
+
return H(F(() => C(this.get || ((...R) => this.getLoadData(...R)), this.$handle.api)), d);
|
|
4265
4309
|
}
|
|
4266
4310
|
},
|
|
4267
4311
|
setData(f, d, g) {
|
|
4268
|
-
g ?
|
|
4312
|
+
g ? Ae(f, d) : (te(this.vm.top.fc.tmpData, f, d), this.bus.$emit("$loadData." + f));
|
|
4269
4313
|
},
|
|
4270
4314
|
getLoadData(f, d) {
|
|
4271
4315
|
let g = null;
|
|
4272
4316
|
if (f != null) {
|
|
4273
|
-
let
|
|
4274
|
-
const C =
|
|
4317
|
+
let $ = f.split(".");
|
|
4318
|
+
const C = $.shift();
|
|
4275
4319
|
if (C === "$topForm")
|
|
4276
4320
|
g = this.$handle.api.top.formData();
|
|
4277
4321
|
else if (C === "$form")
|
|
@@ -4279,46 +4323,46 @@ function Gt(t) {
|
|
|
4279
4323
|
else if (C === "$options")
|
|
4280
4324
|
g = this.options.value;
|
|
4281
4325
|
else if (C === "$globalData")
|
|
4282
|
-
g = this.globalDataDriver(
|
|
4326
|
+
g = this.globalDataDriver($.join(".")), $ = [];
|
|
4283
4327
|
else if (C === "$var")
|
|
4284
|
-
g = this.globalVarDriver(
|
|
4328
|
+
g = this.globalVarDriver($.join(".")), $ = [];
|
|
4285
4329
|
else if (C === "$locale")
|
|
4286
|
-
g = this.getLocale(),
|
|
4330
|
+
g = this.getLocale(), $ = [];
|
|
4287
4331
|
else if (C === "$t")
|
|
4288
|
-
g = this.globalLanguageDriver(
|
|
4332
|
+
g = this.globalLanguageDriver($.join(".")), $ = [];
|
|
4289
4333
|
else {
|
|
4290
4334
|
const R = this.vm.top.fc.tmpData;
|
|
4291
|
-
E(R, C) || k(R, C,
|
|
4335
|
+
E(R, C) || k(R, C, ke), g = R[C] !== ke ? H(R, f) : nt(f), $ = [];
|
|
4292
4336
|
}
|
|
4293
|
-
g &&
|
|
4337
|
+
g && $.length && (g = H(g, $));
|
|
4294
4338
|
}
|
|
4295
4339
|
return g == null || g === "" ? d : g;
|
|
4296
4340
|
},
|
|
4297
4341
|
watchLoadData(f, d) {
|
|
4298
4342
|
let g = {};
|
|
4299
|
-
const
|
|
4343
|
+
const $ = (A) => {
|
|
4300
4344
|
this.get || (this.get = C), F(() => {
|
|
4301
4345
|
f(C, A);
|
|
4302
4346
|
}), this.get === C && (this.get = void 0);
|
|
4303
4347
|
}, C = (A, pe) => {
|
|
4304
4348
|
if (g[A])
|
|
4305
4349
|
return g[A].val;
|
|
4306
|
-
const me = he(() => this.getLoadData(A, pe)), ce = A.split("."),
|
|
4350
|
+
const me = he(() => this.getLoadData(A, pe)), ce = A.split("."), N = ce.shift(), ne = ce.shift() || "", se = le(() => {
|
|
4307
4351
|
const Ie = this.getLoadData(A, pe);
|
|
4308
4352
|
if (g[A])
|
|
4309
|
-
JSON.stringify(Ie) !== JSON.stringify(g[A].val) && (g[A].val = Ie,
|
|
4353
|
+
JSON.stringify(Ie) !== JSON.stringify(g[A].val) && (g[A].val = Ie, $(!0));
|
|
4310
4354
|
else return;
|
|
4311
|
-
}, d || 0),
|
|
4355
|
+
}, d || 0), Oe = L(me, (Ie) => {
|
|
4312
4356
|
se();
|
|
4313
4357
|
});
|
|
4314
|
-
return this.bus.$on("$loadData." +
|
|
4358
|
+
return this.bus.$on("$loadData." + N, se), ne && this.bus.$on("$loadData." + N + "." + ne, se), g[A] = {
|
|
4315
4359
|
fn: () => {
|
|
4316
|
-
this.bus.$off("$loadData." +
|
|
4360
|
+
this.bus.$off("$loadData." + N, se), ne && this.bus.$off("$loadData." + N + "." + ne, se), Oe();
|
|
4317
4361
|
},
|
|
4318
4362
|
val: me.value
|
|
4319
4363
|
}, me.value;
|
|
4320
4364
|
};
|
|
4321
|
-
|
|
4365
|
+
$(!1);
|
|
4322
4366
|
const R = () => {
|
|
4323
4367
|
Object.keys(g).forEach((A) => g[A].fn()), g = {};
|
|
4324
4368
|
};
|
|
@@ -4339,8 +4383,8 @@ function Gt(t) {
|
|
|
4339
4383
|
this.isSub() && (f = this.mergeOptions(f, this.vm.parent.fc.options.value || {}, !0)), f = this.mergeOptions(f, this.vm.$options.propsData.option || {}), this.updateOptions(f);
|
|
4340
4384
|
},
|
|
4341
4385
|
mergeOptions(f, d, g) {
|
|
4342
|
-
return d = b({}, d || {}), g && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((
|
|
4343
|
-
delete d[
|
|
4386
|
+
return d = b({}, d || {}), g && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach(($) => {
|
|
4387
|
+
delete d[$];
|
|
4344
4388
|
}), d.global && (f.global = Hr(f.global, d.global), delete d.global), this.$handle.$manager.mergeOptions([d], f), f;
|
|
4345
4389
|
},
|
|
4346
4390
|
updateOptions(f) {
|
|
@@ -4370,36 +4414,36 @@ function Gt(t) {
|
|
|
4370
4414
|
this.$handle.bindNextTick(() => this.bus.$emit("next-tick", this.$handle.api));
|
|
4371
4415
|
}
|
|
4372
4416
|
});
|
|
4373
|
-
function
|
|
4417
|
+
function st(f) {
|
|
4374
4418
|
_(f, {
|
|
4375
4419
|
version: t.version,
|
|
4376
4420
|
ui: t.ui,
|
|
4377
4421
|
isMobile: w,
|
|
4378
4422
|
extendApi: Qt,
|
|
4379
|
-
getData:
|
|
4380
|
-
setDataDriver:
|
|
4381
|
-
setData:
|
|
4423
|
+
getData: nt,
|
|
4424
|
+
setDataDriver: Ce,
|
|
4425
|
+
setData: Ae,
|
|
4382
4426
|
removeData: Zt,
|
|
4383
4427
|
refreshData: _e,
|
|
4384
4428
|
maker: c,
|
|
4385
4429
|
component: S,
|
|
4386
|
-
directive:
|
|
4430
|
+
directive: M,
|
|
4387
4431
|
setModelField: Kt,
|
|
4388
4432
|
setFormula: Xt,
|
|
4389
4433
|
setDriver: zt,
|
|
4390
|
-
register:
|
|
4434
|
+
register: je,
|
|
4391
4435
|
$vnode: re,
|
|
4392
4436
|
parser: O,
|
|
4393
4437
|
use: be,
|
|
4394
4438
|
factory: Wt,
|
|
4395
4439
|
componentAlias: ve,
|
|
4396
|
-
copyRule:
|
|
4397
|
-
copyRules:
|
|
4398
|
-
mergeRule:
|
|
4399
|
-
fetch:
|
|
4400
|
-
$form:
|
|
4401
|
-
parseFn:
|
|
4402
|
-
parseJson:
|
|
4440
|
+
copyRule: Vt,
|
|
4441
|
+
copyRules: It,
|
|
4442
|
+
mergeRule: Z,
|
|
4443
|
+
fetch: Mt,
|
|
4444
|
+
$form: B,
|
|
4445
|
+
parseFn: K,
|
|
4446
|
+
parseJson: At,
|
|
4403
4447
|
toJson: et,
|
|
4404
4448
|
useApp: P,
|
|
4405
4449
|
getApi: Y,
|
|
@@ -4412,23 +4456,23 @@ function Gt(t) {
|
|
|
4412
4456
|
install(d, g) {
|
|
4413
4457
|
if (p = b(b({}, p), g || {}), d._installedFormCreate === !0) return;
|
|
4414
4458
|
d._installedFormCreate = !0;
|
|
4415
|
-
const
|
|
4459
|
+
const $ = function(R, A = {}) {
|
|
4416
4460
|
return ie(R, A, this);
|
|
4417
4461
|
};
|
|
4418
|
-
|
|
4419
|
-
const C =
|
|
4462
|
+
st($), d.prototype.$formCreate = $;
|
|
4463
|
+
const C = B();
|
|
4420
4464
|
d.component(C.name, C), d.component("FcFragment", re()), o.forEach((R) => {
|
|
4421
4465
|
F(() => R(f, d));
|
|
4422
4466
|
});
|
|
4423
4467
|
}
|
|
4424
4468
|
});
|
|
4425
4469
|
}
|
|
4426
|
-
if (
|
|
4470
|
+
if (st(D), xt(D), Ce("$cookie", Si), Ce("$localStorage", Di), Ce("$sessionStorage", ji), y.use({ fragment: "fcFragment" }), t.install && ie.use(t), O(Fi), t.inherit) {
|
|
4427
4471
|
const f = t.inherit;
|
|
4428
4472
|
f.components && _(e, f.components), f.parsers && _(r, f.parsers), f.directives && _(i, f.directives), f.modelFields && _(s, f.modelFields), f.providers && _(u, f.providers), f.useApps && _(o, f.useApps), f.maker && _(c, f.maker), f.loadData && _(m, f.loadData), f.formulas && _(v, f.formulas);
|
|
4429
4473
|
}
|
|
4430
|
-
const
|
|
4431
|
-
return
|
|
4474
|
+
const we = B();
|
|
4475
|
+
return Fe(we, D), Object.defineProperties(we, {
|
|
4432
4476
|
fetch: {
|
|
4433
4477
|
get() {
|
|
4434
4478
|
return D.fetch;
|
|
@@ -4437,9 +4481,9 @@ function Gt(t) {
|
|
|
4437
4481
|
D.fetch = f;
|
|
4438
4482
|
}
|
|
4439
4483
|
}
|
|
4440
|
-
}),
|
|
4484
|
+
}), we.util = D, we;
|
|
4441
4485
|
}
|
|
4442
|
-
const
|
|
4486
|
+
const bt = {
|
|
4443
4487
|
date: "yyyy-MM-dd",
|
|
4444
4488
|
month: "yyyy-MM",
|
|
4445
4489
|
datetime: "yyyy-MM-dd HH:mm:ss",
|
|
@@ -4448,16 +4492,16 @@ const vt = {
|
|
|
4448
4492
|
monthrange: "yyyy-MM",
|
|
4449
4493
|
datetimerange: "yyyy-MM-dd HH:mm:ss",
|
|
4450
4494
|
year: "yyyy"
|
|
4451
|
-
},
|
|
4452
|
-
name:
|
|
4495
|
+
}, _t = "datePicker", Bi = {
|
|
4496
|
+
name: _t,
|
|
4453
4497
|
maker: function() {
|
|
4454
|
-
return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = I(
|
|
4498
|
+
return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = I(_t, { type: e.toLowerCase() }), t), {});
|
|
4455
4499
|
}(),
|
|
4456
4500
|
mergeProp(t) {
|
|
4457
4501
|
const e = t.prop.props;
|
|
4458
|
-
e.valueFormat || (e.valueFormat =
|
|
4502
|
+
e.valueFormat || (e.valueFormat = bt[e.type] || bt.date);
|
|
4459
4503
|
}
|
|
4460
|
-
}, Me = "hidden",
|
|
4504
|
+
}, Me = "hidden", Li = {
|
|
4461
4505
|
name: Me,
|
|
4462
4506
|
maker: {
|
|
4463
4507
|
[Me]: (t, e) => I(Me)("", t, e)
|
|
@@ -4465,7 +4509,7 @@ const vt = {
|
|
|
4465
4509
|
render() {
|
|
4466
4510
|
return [];
|
|
4467
4511
|
}
|
|
4468
|
-
}, Ne = "input",
|
|
4512
|
+
}, Ne = "input", Mi = {
|
|
4469
4513
|
name: Ne,
|
|
4470
4514
|
maker: function() {
|
|
4471
4515
|
const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = I(Ne, { type: r }), e), {});
|
|
@@ -4475,46 +4519,46 @@ const vt = {
|
|
|
4475
4519
|
let { props: e } = t.prop;
|
|
4476
4520
|
e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
|
|
4477
4521
|
}
|
|
4478
|
-
},
|
|
4479
|
-
name:
|
|
4522
|
+
}, Ct = "slider", Ni = {
|
|
4523
|
+
name: Ct,
|
|
4480
4524
|
maker: {
|
|
4481
|
-
sliderRange: I(
|
|
4525
|
+
sliderRange: I(Ct, { range: !0 })
|
|
4482
4526
|
},
|
|
4483
4527
|
toFormValue(t, e) {
|
|
4484
4528
|
let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
|
|
4485
4529
|
return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
|
|
4486
4530
|
}
|
|
4487
|
-
},
|
|
4488
|
-
name:
|
|
4531
|
+
}, qe = "timePicker", qi = {
|
|
4532
|
+
name: qe,
|
|
4489
4533
|
maker: {
|
|
4490
|
-
time: I(
|
|
4491
|
-
timeRange: I(
|
|
4534
|
+
time: I(qe, (t) => t.props.isRange = !1),
|
|
4535
|
+
timeRange: I(qe, (t) => t.props.isRange = !0)
|
|
4492
4536
|
},
|
|
4493
4537
|
mergeProp(t) {
|
|
4494
4538
|
const e = t.prop.props;
|
|
4495
4539
|
e.valueFormat || (e.valueFormat = "HH:mm:ss");
|
|
4496
4540
|
}
|
|
4497
|
-
},
|
|
4541
|
+
}, Ui = {
|
|
4498
4542
|
name: "FcRow",
|
|
4499
4543
|
render(t, e) {
|
|
4500
4544
|
return e.vNode.col({ props: { span: 24 } }, [
|
|
4501
4545
|
e.vNode.row(e.prop, t)
|
|
4502
4546
|
]);
|
|
4503
4547
|
}
|
|
4504
|
-
},
|
|
4505
|
-
name:
|
|
4548
|
+
}, Hi = "select", Gi = {
|
|
4549
|
+
name: Hi,
|
|
4506
4550
|
toFormValue(t, e) {
|
|
4507
|
-
return e.prop.props.multiple && !Array.isArray(t) ?
|
|
4551
|
+
return e.prop.props.multiple && !Array.isArray(t) ? G(t) : t;
|
|
4508
4552
|
}
|
|
4509
|
-
},
|
|
4510
|
-
Pi,
|
|
4511
|
-
Ti,
|
|
4553
|
+
}, Ji = [
|
|
4512
4554
|
Bi,
|
|
4513
4555
|
Li,
|
|
4514
4556
|
Mi,
|
|
4515
4557
|
Ni,
|
|
4516
|
-
qi
|
|
4517
|
-
|
|
4558
|
+
qi,
|
|
4559
|
+
Ui,
|
|
4560
|
+
Gi
|
|
4561
|
+
], j = "el", Wi = {
|
|
4518
4562
|
button: j + "Button",
|
|
4519
4563
|
icon: "i",
|
|
4520
4564
|
slider: j + "Slider",
|
|
@@ -4547,7 +4591,7 @@ const vt = {
|
|
|
4547
4591
|
object: "fcSubForm",
|
|
4548
4592
|
subForm: "fcSubForm"
|
|
4549
4593
|
};
|
|
4550
|
-
function
|
|
4594
|
+
function Ki() {
|
|
4551
4595
|
return {
|
|
4552
4596
|
form: {
|
|
4553
4597
|
inline: !1,
|
|
@@ -4564,7 +4608,7 @@ function Ji() {
|
|
|
4564
4608
|
type: "primary",
|
|
4565
4609
|
loading: !1,
|
|
4566
4610
|
disabled: !1,
|
|
4567
|
-
innerText: "
|
|
4611
|
+
innerText: "",
|
|
4568
4612
|
show: !0,
|
|
4569
4613
|
col: void 0,
|
|
4570
4614
|
click: void 0
|
|
@@ -4574,30 +4618,30 @@ function Ji() {
|
|
|
4574
4618
|
loading: !1,
|
|
4575
4619
|
disabled: !1,
|
|
4576
4620
|
icon: "el-icon-refresh",
|
|
4577
|
-
innerText: "
|
|
4621
|
+
innerText: "",
|
|
4578
4622
|
show: !1,
|
|
4579
4623
|
col: void 0,
|
|
4580
4624
|
click: void 0
|
|
4581
4625
|
}
|
|
4582
4626
|
};
|
|
4583
4627
|
}
|
|
4584
|
-
function
|
|
4628
|
+
function Xi(t) {
|
|
4585
4629
|
return t.type === "tooltip";
|
|
4586
4630
|
}
|
|
4587
|
-
function
|
|
4631
|
+
function wt(t, e) {
|
|
4588
4632
|
E(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
|
|
4589
4633
|
}
|
|
4590
|
-
function
|
|
4634
|
+
function z(t) {
|
|
4591
4635
|
return t === !1;
|
|
4592
4636
|
}
|
|
4593
|
-
function
|
|
4637
|
+
function zi(t, e) {
|
|
4594
4638
|
E(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
|
|
4595
4639
|
}
|
|
4596
|
-
function
|
|
4640
|
+
function Ue(t) {
|
|
4597
4641
|
const e = b({}, t);
|
|
4598
4642
|
return delete e.children, e;
|
|
4599
4643
|
}
|
|
4600
|
-
const
|
|
4644
|
+
const Qi = {
|
|
4601
4645
|
validate() {
|
|
4602
4646
|
const t = this.form();
|
|
4603
4647
|
return t ? t.validate() : new Promise((e) => e());
|
|
@@ -4616,11 +4660,11 @@ const Xi = {
|
|
|
4616
4660
|
},
|
|
4617
4661
|
tidyOptions(t) {
|
|
4618
4662
|
return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
|
|
4619
|
-
|
|
4663
|
+
zi(t, e);
|
|
4620
4664
|
}), t;
|
|
4621
4665
|
},
|
|
4622
4666
|
tidyRule({ prop: t }) {
|
|
4623
|
-
return
|
|
4667
|
+
return wt(t, "title"), wt(t, "info"), t;
|
|
4624
4668
|
},
|
|
4625
4669
|
mergeProp(t) {
|
|
4626
4670
|
const e = {
|
|
@@ -4634,11 +4678,11 @@ const Xi = {
|
|
|
4634
4678
|
wrap: {}
|
|
4635
4679
|
};
|
|
4636
4680
|
["info", "wrap", "col", "title"].forEach((r) => {
|
|
4637
|
-
t.prop[r] =
|
|
4681
|
+
t.prop[r] = Q([this.options[r] || {}, t.prop[r] || {}], e[r]);
|
|
4638
4682
|
});
|
|
4639
4683
|
},
|
|
4640
4684
|
getDefaultOptions() {
|
|
4641
|
-
return
|
|
4685
|
+
return Ki();
|
|
4642
4686
|
},
|
|
4643
4687
|
update() {
|
|
4644
4688
|
const t = this.options.form;
|
|
@@ -4661,16 +4705,16 @@ const Xi = {
|
|
|
4661
4705
|
});
|
|
4662
4706
|
},
|
|
4663
4707
|
render(t) {
|
|
4664
|
-
return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule,
|
|
4708
|
+
return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, z(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
|
|
4665
4709
|
},
|
|
4666
4710
|
makeWrap(t, e) {
|
|
4667
4711
|
const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r) && r.wrap.title !== !1, o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: l } = this.rule.props;
|
|
4668
4712
|
delete r.wrap.title;
|
|
4669
|
-
const u =
|
|
4670
|
-
props:
|
|
4671
|
-
labelWidth: o === void 0 ? o :
|
|
4713
|
+
const u = z(r.wrap.show) ? e : this.$r(Q([r.wrap, {
|
|
4714
|
+
props: q(b({
|
|
4715
|
+
labelWidth: o === void 0 ? o : jt(o),
|
|
4672
4716
|
label: n ? r.title.title : void 0
|
|
4673
|
-
},
|
|
4717
|
+
}, Ue(r.wrap || {})), {
|
|
4674
4718
|
prop: t.id,
|
|
4675
4719
|
rules: t.injectValidate()
|
|
4676
4720
|
}),
|
|
@@ -4679,29 +4723,30 @@ const Xi = {
|
|
|
4679
4723
|
ref: t.wrapRef,
|
|
4680
4724
|
type: "formItem"
|
|
4681
4725
|
}]), b({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
|
|
4682
|
-
return a === !0 ||
|
|
4726
|
+
return a === !0 || z(l) || z(s.show) ? u : this.makeCol(r, i, [u]);
|
|
4683
4727
|
},
|
|
4684
4728
|
isTitle(t) {
|
|
4685
4729
|
if (this.options.form.title === !1) return !1;
|
|
4686
4730
|
const e = t.title;
|
|
4687
|
-
return !(!e.title && !e.native ||
|
|
4731
|
+
return !(!e.title && !e.native || z(e.show));
|
|
4688
4732
|
},
|
|
4689
4733
|
makeInfo(t, e, r) {
|
|
4690
|
-
|
|
4691
|
-
|
|
4734
|
+
var c, p, m;
|
|
4735
|
+
const i = b({}, t.title), s = b({}, t.info), n = Xi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
|
|
4736
|
+
title: (c = r.refRule) == null ? void 0 : c.__$title.value,
|
|
4692
4737
|
rule: r.rule,
|
|
4693
4738
|
options: this.options
|
|
4694
|
-
}) : r.refRule.__$title.value + (o.labelSuffix || o["label-suffix"] || "")];
|
|
4695
|
-
if (!
|
|
4696
|
-
const
|
|
4739
|
+
}) : ((p = r.refRule) == null ? void 0 : p.__$title.value) + (o.labelSuffix || o["label-suffix"] || "")];
|
|
4740
|
+
if (!z(s.show) && (s.info || s.native) && !z(s.icon)) {
|
|
4741
|
+
const y = {
|
|
4697
4742
|
type: s.type || "popover",
|
|
4698
4743
|
slot: "label",
|
|
4699
|
-
props:
|
|
4744
|
+
props: Ue(s),
|
|
4700
4745
|
key: `${e}pop`
|
|
4701
4746
|
};
|
|
4702
|
-
delete
|
|
4703
|
-
const
|
|
4704
|
-
s.info && !E(
|
|
4747
|
+
delete y.props.icon, delete y.props.show, delete y.props.info, delete y.props.align, delete y.props.native;
|
|
4748
|
+
const v = "content";
|
|
4749
|
+
s.info && !E(y.props, v) && (y.props[v] = (m = r.refRule) == null ? void 0 : m.__$info.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(Q([s, y]), [
|
|
4705
4750
|
this.$r({
|
|
4706
4751
|
type: "i",
|
|
4707
4752
|
slot: n ? "default" : "reference",
|
|
@@ -4710,8 +4755,8 @@ const Xi = {
|
|
|
4710
4755
|
})
|
|
4711
4756
|
]));
|
|
4712
4757
|
}
|
|
4713
|
-
const u =
|
|
4714
|
-
props:
|
|
4758
|
+
const u = Q([i, {
|
|
4759
|
+
props: Ue(i),
|
|
4715
4760
|
key: `${e}tit`,
|
|
4716
4761
|
class: "fc-form-title",
|
|
4717
4762
|
slot: i.slot || "label",
|
|
@@ -4739,7 +4784,7 @@ const Xi = {
|
|
|
4739
4784
|
},
|
|
4740
4785
|
makeFormBtn() {
|
|
4741
4786
|
let t = [];
|
|
4742
|
-
if (
|
|
4787
|
+
if (z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
|
|
4743
4788
|
return;
|
|
4744
4789
|
const e = this.$r({
|
|
4745
4790
|
type: "formItem",
|
|
@@ -4754,7 +4799,7 @@ const Xi = {
|
|
|
4754
4799
|
}, [e]);
|
|
4755
4800
|
},
|
|
4756
4801
|
makeResetBtn() {
|
|
4757
|
-
const t = b({}, this.options.resetBtn), e = t.innerText;
|
|
4802
|
+
const t = b({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
|
|
4758
4803
|
return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
|
|
4759
4804
|
type: "button",
|
|
4760
4805
|
props: t,
|
|
@@ -4770,7 +4815,7 @@ const Xi = {
|
|
|
4770
4815
|
}, [e]);
|
|
4771
4816
|
},
|
|
4772
4817
|
makeSubmitBtn() {
|
|
4773
|
-
const t = b({}, this.options.submitBtn), e = t.innerText;
|
|
4818
|
+
const t = b({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
|
|
4774
4819
|
return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
|
|
4775
4820
|
type: "button",
|
|
4776
4821
|
props: t,
|
|
@@ -4787,25 +4832,25 @@ const Xi = {
|
|
|
4787
4832
|
}, [e]);
|
|
4788
4833
|
}
|
|
4789
4834
|
}, ue = {};
|
|
4790
|
-
zi(ue);
|
|
4791
|
-
Qi(ue);
|
|
4792
4835
|
Zi(ue);
|
|
4793
4836
|
Yi(ue);
|
|
4794
4837
|
xi(ue);
|
|
4795
|
-
|
|
4838
|
+
en(ue);
|
|
4839
|
+
tn(ue);
|
|
4840
|
+
function Zi(t) {
|
|
4796
4841
|
["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "radio", "rate"].forEach((e) => {
|
|
4797
4842
|
t[e] = I(e);
|
|
4798
4843
|
}), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
|
|
4799
4844
|
}
|
|
4800
|
-
function
|
|
4845
|
+
function Yi(t) {
|
|
4801
4846
|
const e = "select", r = "multiple";
|
|
4802
4847
|
t.selectMultiple = I(e, { [r]: !0 }), t.selectOne = I(e, { [r]: !1 });
|
|
4803
4848
|
}
|
|
4804
|
-
function
|
|
4849
|
+
function xi(t) {
|
|
4805
4850
|
const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
|
|
4806
4851
|
Object.keys(r).reduce((i, s) => (i[s] = I(e, { type: r[s] }), i), t);
|
|
4807
4852
|
}
|
|
4808
|
-
function
|
|
4853
|
+
function en(t) {
|
|
4809
4854
|
const e = "upload", r = {
|
|
4810
4855
|
image: ["image", 0],
|
|
4811
4856
|
file: ["file", 0],
|
|
@@ -4814,7 +4859,7 @@ function Yi(t) {
|
|
|
4814
4859
|
};
|
|
4815
4860
|
Object.keys(r).reduce((i, s) => (i[s] = I(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
|
|
4816
4861
|
}
|
|
4817
|
-
function
|
|
4862
|
+
function tn(t) {
|
|
4818
4863
|
const e = {
|
|
4819
4864
|
frameInputs: ["input", 0],
|
|
4820
4865
|
frameFiles: ["file", 0],
|
|
@@ -4825,10 +4870,10 @@ function xi(t) {
|
|
|
4825
4870
|
};
|
|
4826
4871
|
return Object.keys(e).reduce((r, i) => (r[i] = I("frame", (s) => s.props({ type: e[i][0], maxLength: e[i][1] })), r), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages, t;
|
|
4827
4872
|
}
|
|
4828
|
-
function
|
|
4873
|
+
function Ot(t, e) {
|
|
4829
4874
|
return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
|
|
4830
4875
|
}
|
|
4831
|
-
function
|
|
4876
|
+
function rn(t, e) {
|
|
4832
4877
|
return {
|
|
4833
4878
|
formEl() {
|
|
4834
4879
|
return e.$manager.form();
|
|
@@ -4855,7 +4900,7 @@ function en(t, e) {
|
|
|
4855
4900
|
const o = e.getFieldCtx(r);
|
|
4856
4901
|
if (!o) return;
|
|
4857
4902
|
const a = e.subForm[o.id], l = [e.$manager.validateField(o.id)];
|
|
4858
|
-
|
|
4903
|
+
G(a).forEach((u) => {
|
|
4859
4904
|
l.push(u.validate());
|
|
4860
4905
|
}), Promise.all(l).then(() => {
|
|
4861
4906
|
s(null), i && i(null);
|
|
@@ -4904,11 +4949,11 @@ function en(t, e) {
|
|
|
4904
4949
|
}
|
|
4905
4950
|
},
|
|
4906
4951
|
submitBtnProps: (r = {}) => {
|
|
4907
|
-
let i =
|
|
4952
|
+
let i = Ot(e.options.submitBtn, !0);
|
|
4908
4953
|
_(i, r), e.options.submitBtn = i, t.refreshOptions();
|
|
4909
4954
|
},
|
|
4910
4955
|
resetBtnProps: (r = {}) => {
|
|
4911
|
-
let i =
|
|
4956
|
+
let i = Ot(e.options.resetBtn, !1);
|
|
4912
4957
|
_(i, r), e.options.resetBtn = i, t.refreshOptions();
|
|
4913
4958
|
},
|
|
4914
4959
|
submit(r, i) {
|
|
@@ -4926,21 +4971,21 @@ function en(t, e) {
|
|
|
4926
4971
|
const Jt = {
|
|
4927
4972
|
name: "required",
|
|
4928
4973
|
load(t, e, r) {
|
|
4929
|
-
const i =
|
|
4974
|
+
const i = nn(t.getValue());
|
|
4930
4975
|
if (i.required === !1)
|
|
4931
4976
|
t.clearProp(), r.clearValidateState([e.field]);
|
|
4932
4977
|
else {
|
|
4933
4978
|
const s = b({
|
|
4934
4979
|
required: !0,
|
|
4935
|
-
validator(
|
|
4936
|
-
h.empty(
|
|
4980
|
+
validator(o, a, l) {
|
|
4981
|
+
h.empty(a) ? l(s.message) : l();
|
|
4937
4982
|
}
|
|
4938
|
-
}, i);
|
|
4983
|
+
}, i), n = e.__fc__.refRule.__$title.value;
|
|
4939
4984
|
if (!s.message)
|
|
4940
|
-
s.message =
|
|
4985
|
+
s.message = r.t("required", { title: n }) || n + (r.getLocale() === "en" ? " is required" : "不能为空");
|
|
4941
4986
|
else {
|
|
4942
|
-
const
|
|
4943
|
-
|
|
4987
|
+
const o = s.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
|
|
4988
|
+
o && (s.message = r.t(o[1], { title: n }));
|
|
4944
4989
|
}
|
|
4945
4990
|
t.getProp().validate = [s];
|
|
4946
4991
|
}
|
|
@@ -4950,25 +4995,25 @@ const Jt = {
|
|
|
4950
4995
|
Jt.load(...t);
|
|
4951
4996
|
}
|
|
4952
4997
|
};
|
|
4953
|
-
function
|
|
4998
|
+
function nn(t) {
|
|
4954
4999
|
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 : {};
|
|
4955
5000
|
}
|
|
4956
|
-
function
|
|
4957
|
-
t.componentAlias(
|
|
5001
|
+
function sn(t) {
|
|
5002
|
+
t.componentAlias(Wi), Lr.forEach((e) => {
|
|
4958
5003
|
t.component(e.name, e);
|
|
4959
|
-
}), t.register(Jt),
|
|
5004
|
+
}), t.register(Jt), Ji.forEach((e) => {
|
|
4960
5005
|
t.parser(e);
|
|
4961
5006
|
}), Object.keys(ue).forEach((e) => {
|
|
4962
5007
|
t.maker[e] = ue[e];
|
|
4963
5008
|
});
|
|
4964
5009
|
}
|
|
4965
|
-
function
|
|
5010
|
+
function on() {
|
|
4966
5011
|
return Gt({
|
|
4967
5012
|
ui: "element-ui",
|
|
4968
|
-
version: "2.7.
|
|
4969
|
-
manager:
|
|
4970
|
-
extendApi:
|
|
4971
|
-
install:
|
|
5013
|
+
version: "2.7.2",
|
|
5014
|
+
manager: Qi,
|
|
5015
|
+
extendApi: rn,
|
|
5016
|
+
install: sn,
|
|
4972
5017
|
attrs: {
|
|
4973
5018
|
normal: ["col", "wrap"],
|
|
4974
5019
|
array: ["className"],
|
|
@@ -4976,10 +5021,10 @@ function nn() {
|
|
|
4976
5021
|
}
|
|
4977
5022
|
});
|
|
4978
5023
|
}
|
|
4979
|
-
const ze =
|
|
5024
|
+
const ze = on();
|
|
4980
5025
|
typeof window != "undefined" && (window.formCreate = ze, window.Vue && ze.install(window.Vue));
|
|
4981
|
-
const
|
|
5026
|
+
const un = ze.maker;
|
|
4982
5027
|
export {
|
|
4983
5028
|
ze as default,
|
|
4984
|
-
|
|
5029
|
+
un as maker
|
|
4985
5030
|
};
|