@form-create/element-ui 2.7.21 → 2.7.22
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 +84 -79
- package/dist/form-create.js +3 -3
- package/dist/form-create.min.js +3 -3
- package/package.json +3 -3
package/dist/form-create.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* FormCreate 低代码表单渲染器
|
|
3
|
-
* @form-create/element-ui v2.7.
|
|
3
|
+
* @form-create/element-ui v2.7.22
|
|
4
4
|
* (c) 2018-2025 xaboy
|
|
5
5
|
* Github https://github.com/xaboy/form-create
|
|
6
6
|
* Site https://form-create.com/
|
|
@@ -123,7 +123,7 @@ const Or = "fcCheckbox", Fr = {
|
|
|
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 kr = "fcFrame", Er = {
|
|
@@ -248,7 +248,7 @@ const kr = "fcFrame", Er = {
|
|
|
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 kr = "fcFrame", Er = {
|
|
|
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;
|
|
@@ -666,7 +666,7 @@ const jr = "fcSelect", Dr = {
|
|
|
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() {
|
|
@@ -750,11 +750,11 @@ const Pr = "fcUpload", Tr = {
|
|
|
750
750
|
};
|
|
751
751
|
},
|
|
752
752
|
created() {
|
|
753
|
-
this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList =
|
|
753
|
+
this.formCreateInject.prop.props.showFileList === void 0 && (this.formCreateInject.prop.props.showFileList = !1), this.formCreateInject.prop.props.fileList = G(this.value).map(ft).map(ct);
|
|
754
754
|
},
|
|
755
755
|
watch: {
|
|
756
756
|
value(t) {
|
|
757
|
-
this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles =
|
|
757
|
+
this.$refs.upload.uploadFiles.every((e) => !e.status || e.status === "success") && (this.$refs.upload.uploadFiles = G(t).map(ft).map(ct), this.uploadList = this.$refs.upload.uploadFiles);
|
|
758
758
|
},
|
|
759
759
|
limit(t, e) {
|
|
760
760
|
(e === 1 || t === 1) && this.update();
|
|
@@ -918,7 +918,7 @@ function k(t, e, r) {
|
|
|
918
918
|
function ie(t, e) {
|
|
919
919
|
(be.del || be.delete)(t, e);
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function Fe(t, e = {}, r) {
|
|
922
922
|
let i = !1;
|
|
923
923
|
for (let s in e)
|
|
924
924
|
if (Object.prototype.hasOwnProperty.call(e, s)) {
|
|
@@ -936,14 +936,14 @@ function Oe(t, e = {}, r) {
|
|
|
936
936
|
}
|
|
937
937
|
else
|
|
938
938
|
o && k(t, s, {});
|
|
939
|
-
t[s] =
|
|
939
|
+
t[s] = Fe(t[s], n, r);
|
|
940
940
|
} else
|
|
941
941
|
k(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
|
|
942
942
|
}
|
|
943
943
|
return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
|
|
944
944
|
}
|
|
945
945
|
function K(t) {
|
|
946
|
-
return
|
|
946
|
+
return Fe({}, { value: t }).value;
|
|
947
947
|
}
|
|
948
948
|
const Br = Object.assign || function(t) {
|
|
949
949
|
for (let e, r = 1; r < arguments.length; r++)
|
|
@@ -989,8 +989,8 @@ function Mr(t) {
|
|
|
989
989
|
Ye(t.toString()), console.error(t);
|
|
990
990
|
}
|
|
991
991
|
const We = "[[FORM-CREATE-PREFIX-", xe = "-FORM-CREATE-SUFFIX]]";
|
|
992
|
-
function
|
|
993
|
-
return JSON.stringify(
|
|
992
|
+
function Oe(t, e) {
|
|
993
|
+
return JSON.stringify(Fe(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
|
|
994
994
|
if (!(i && i._isVue === !0)) {
|
|
995
995
|
if (typeof i != "function")
|
|
996
996
|
return i;
|
|
@@ -1143,7 +1143,7 @@ const Ur = "fcGroup", Hr = {
|
|
|
1143
1143
|
const s = i.$f.formData();
|
|
1144
1144
|
if (t === e)
|
|
1145
1145
|
i.$f.deferSyncValue(() => {
|
|
1146
|
-
|
|
1146
|
+
Fe(i.rule, t), i.$f.setValue(s);
|
|
1147
1147
|
}, !0);
|
|
1148
1148
|
else {
|
|
1149
1149
|
const n = i.$f.formData();
|
|
@@ -1510,7 +1510,7 @@ function Pt(t, e) {
|
|
|
1510
1510
|
return Tt([t], e || !1)[0];
|
|
1511
1511
|
}
|
|
1512
1512
|
function Tt(t, e) {
|
|
1513
|
-
return
|
|
1513
|
+
return Fe([], [...t], e || !1);
|
|
1514
1514
|
}
|
|
1515
1515
|
function ee(t, e) {
|
|
1516
1516
|
return Y(Array.isArray(e) ? e : [e], t, { array: et, normal: tt }), t;
|
|
@@ -1544,7 +1544,7 @@ function O(t, e) {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
function Xe(t, e) {
|
|
1546
1546
|
let r = null;
|
|
1547
|
-
return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Xe(i, e)) : r = t, r && e &&
|
|
1547
|
+
return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Xe(i, e)) : r = t, r && e && G(r).forEach((i) => {
|
|
1548
1548
|
(Array.isArray(i) ? i : [i]).forEach((n) => {
|
|
1549
1549
|
n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
|
|
1550
1550
|
});
|
|
@@ -1559,7 +1559,7 @@ function zr(t, e) {
|
|
|
1559
1559
|
} else
|
|
1560
1560
|
return Xe(t, e);
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function Se() {
|
|
1563
1563
|
const t = {}, e = (r) => r || "default";
|
|
1564
1564
|
return {
|
|
1565
1565
|
setSlot(r, i) {
|
|
@@ -1595,7 +1595,7 @@ function Re() {
|
|
|
1595
1595
|
}
|
|
1596
1596
|
};
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function je(t, e) {
|
|
1599
1599
|
return Object.setPrototypeOf(t, e), t;
|
|
1600
1600
|
}
|
|
1601
1601
|
const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, he = {
|
|
@@ -1664,12 +1664,12 @@ function Lt(t) {
|
|
|
1664
1664
|
}
|
|
1665
1665
|
return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
|
|
1666
1666
|
}
|
|
1667
|
-
const
|
|
1667
|
+
const De = (t, e) => {
|
|
1668
1668
|
if (!(!t || t === e || !t.$props)) {
|
|
1669
1669
|
if (t.$props.formCreateInject)
|
|
1670
1670
|
return t.$props.formCreateInject;
|
|
1671
1671
|
if (t.$parent)
|
|
1672
|
-
return
|
|
1672
|
+
return De(t.$parent, e);
|
|
1673
1673
|
}
|
|
1674
1674
|
};
|
|
1675
1675
|
function Zr(t, e, r) {
|
|
@@ -1742,17 +1742,17 @@ function Zr(t, e, r) {
|
|
|
1742
1742
|
updateValue: JSON.stringify(u.value || {})
|
|
1743
1743
|
}), m = new t(n), y = m.api(), _ = p.value, F = () => {
|
|
1744
1744
|
if (o) {
|
|
1745
|
-
const E =
|
|
1745
|
+
const E = De(n, o);
|
|
1746
1746
|
if (E) {
|
|
1747
1747
|
let S;
|
|
1748
|
-
_ ? (S =
|
|
1748
|
+
_ ? (S = G(E.getSubForm()), S.push(y)) : S = y, E.subForm(S);
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
|
-
},
|
|
1752
|
-
const E =
|
|
1751
|
+
}, J = () => {
|
|
1752
|
+
const E = De(n, o);
|
|
1753
1753
|
if (E)
|
|
1754
1754
|
if (_) {
|
|
1755
|
-
const S =
|
|
1755
|
+
const S = G(E.getSubForm()), M = S.indexOf(y);
|
|
1756
1756
|
M > -1 && S.splice(M, 1);
|
|
1757
1757
|
} else
|
|
1758
1758
|
E.subForm();
|
|
@@ -1783,11 +1783,11 @@ function Zr(t, e, r) {
|
|
|
1783
1783
|
return dr(() => {
|
|
1784
1784
|
o && (y.top.bus.$on("$loadData.$form", L), y.top.bus.$on("change", me)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", pe), m.mounted();
|
|
1785
1785
|
}), pr(() => {
|
|
1786
|
-
o && (y.top.bus.$off("$loadData.$form", L), y.top.bus.$off("change", me)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", pe),
|
|
1786
|
+
o && (y.top.bus.$off("$loadData.$form", L), y.top.bus.$off("change", me)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", pe), J(), d.destroyed = !0, m.unmount(), A && (A.parentNode || A.parentElement) && document.head.removeChild(A);
|
|
1787
1787
|
}), mr(() => {
|
|
1788
1788
|
m.updated();
|
|
1789
1789
|
}), N(f, (E) => {
|
|
1790
|
-
E ? F() :
|
|
1790
|
+
E ? F() : J();
|
|
1791
1791
|
}, { immediate: !0 }), N(() => s.option, () => {
|
|
1792
1792
|
m.initOptions(), y.refresh();
|
|
1793
1793
|
}, { deep: !0, flush: "sync" }), N(() => [...l.value], (E) => {
|
|
@@ -1795,7 +1795,7 @@ function Zr(t, e, r) {
|
|
|
1795
1795
|
}), N(() => [s.disabled, s.preview], () => {
|
|
1796
1796
|
y.refresh();
|
|
1797
1797
|
}), N(u, (E) => {
|
|
1798
|
-
|
|
1798
|
+
Oe(E || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(E || {}) : y.setValue(E || {}));
|
|
1799
1799
|
}, { deep: !0, flush: "post" }), N(() => s.index, () => {
|
|
1800
1800
|
y.coverValue({}), m.$handle.updateAppendData(), P(() => {
|
|
1801
1801
|
P(() => {
|
|
@@ -1808,7 +1808,7 @@ function Zr(t, e, r) {
|
|
|
1808
1808
|
top: ye(a),
|
|
1809
1809
|
fapi: ye(y)
|
|
1810
1810
|
}, ut(d)), {
|
|
1811
|
-
getGroupInject: () =>
|
|
1811
|
+
getGroupInject: () => De(n, o),
|
|
1812
1812
|
refresh() {
|
|
1813
1813
|
++d.unique;
|
|
1814
1814
|
},
|
|
@@ -1817,7 +1817,7 @@ function Zr(t, e, r) {
|
|
|
1817
1817
|
},
|
|
1818
1818
|
updateValue(E) {
|
|
1819
1819
|
if (d.destroyed) return;
|
|
1820
|
-
const S =
|
|
1820
|
+
const S = Oe(E);
|
|
1821
1821
|
d.updateValue !== S && (d.updateValue = S, n.$emit("update:value", E), P(() => {
|
|
1822
1822
|
Pe(), o ? f.value || pe() : (L(), pe());
|
|
1823
1823
|
}));
|
|
@@ -2282,7 +2282,7 @@ function ti(t) {
|
|
|
2282
2282
|
return O(() => s.method(n, o)(...a));
|
|
2283
2283
|
},
|
|
2284
2284
|
toJson(n) {
|
|
2285
|
-
return
|
|
2285
|
+
return Oe(s.rule, n);
|
|
2286
2286
|
},
|
|
2287
2287
|
trigger(n, o, ...a) {
|
|
2288
2288
|
const l = s.el(n);
|
|
@@ -2473,7 +2473,7 @@ function ri(t) {
|
|
|
2473
2473
|
}
|
|
2474
2474
|
});
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2476
|
+
function H(t) {
|
|
2477
2477
|
const e = t.replace(/(-[a-z])/g, function(r) {
|
|
2478
2478
|
return r.replace("-", "").toLocaleUpperCase();
|
|
2479
2479
|
});
|
|
@@ -2500,7 +2500,7 @@ function ii(t) {
|
|
|
2500
2500
|
if (!this.vm.isShow)
|
|
2501
2501
|
return;
|
|
2502
2502
|
this.$manager.beforeRender();
|
|
2503
|
-
const e =
|
|
2503
|
+
const e = Se();
|
|
2504
2504
|
return this.sort.forEach((r) => {
|
|
2505
2505
|
this.renderSlot(e, this.$handle.ctxs[r]);
|
|
2506
2506
|
}), this.$manager.render(e);
|
|
@@ -2717,7 +2717,7 @@ function ii(t) {
|
|
|
2717
2717
|
},
|
|
2718
2718
|
renderChildren(e, r, i) {
|
|
2719
2719
|
if (!h.trueArray(e)) return [];
|
|
2720
|
-
const s =
|
|
2720
|
+
const s = Se();
|
|
2721
2721
|
return e.map((n) => {
|
|
2722
2722
|
if (n) {
|
|
2723
2723
|
if (h.String(n) || h.Number(n)) return s.setSlot(null, i ? this.renderRule({
|
|
@@ -2743,7 +2743,7 @@ function ii(t) {
|
|
|
2743
2743
|
},
|
|
2744
2744
|
createRuleVnode(e, r, i) {
|
|
2745
2745
|
this.force = i !== !1, this.tmpInput = r;
|
|
2746
|
-
const s =
|
|
2746
|
+
const s = Se();
|
|
2747
2747
|
return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
|
|
2748
2748
|
},
|
|
2749
2749
|
renderRule(e, r, i) {
|
|
@@ -2753,12 +2753,12 @@ function ii(t) {
|
|
|
2753
2753
|
if (i)
|
|
2754
2754
|
s = e.type;
|
|
2755
2755
|
else if (s = e.is, e.type) {
|
|
2756
|
-
s =
|
|
2756
|
+
s = H(e.type);
|
|
2757
2757
|
const a = this.vNode.aliasMap[s];
|
|
2758
|
-
a && (s =
|
|
2758
|
+
a && (s = H(a));
|
|
2759
2759
|
}
|
|
2760
2760
|
if (!s) return;
|
|
2761
|
-
const n =
|
|
2761
|
+
const n = Se();
|
|
2762
2762
|
h.trueArray(e.children) && e.children.forEach((a) => {
|
|
2763
2763
|
a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
|
|
2764
2764
|
});
|
|
@@ -3053,7 +3053,7 @@ C(Gt.prototype, {
|
|
|
3053
3053
|
this.key = Ie(), t && this.parent && this.parent.updateKey(t);
|
|
3054
3054
|
},
|
|
3055
3055
|
updateType() {
|
|
3056
|
-
this.originType = this.rule.type, this.type =
|
|
3056
|
+
this.originType = this.rule.type, this.type = H(this.rule.type), this.trueType = this.$handle.getType(this.originType);
|
|
3057
3057
|
},
|
|
3058
3058
|
setParser(t) {
|
|
3059
3059
|
this.parser = t, t.init(this);
|
|
@@ -3203,7 +3203,7 @@ function fi(t) {
|
|
|
3203
3203
|
} else if (!f.check(this)) {
|
|
3204
3204
|
if (bt(f))
|
|
3205
3205
|
return;
|
|
3206
|
-
e[a] = o = o._clone ? o._clone() : St(
|
|
3206
|
+
e[a] = o = o._clone ? o._clone() : St(Oe(o)), f = null, p = !0;
|
|
3207
3207
|
}
|
|
3208
3208
|
}
|
|
3209
3209
|
if (f)
|
|
@@ -3427,7 +3427,7 @@ function pi(t) {
|
|
|
3427
3427
|
function vt(t, e) {
|
|
3428
3428
|
return typeof e == "function" ? "" + e : e;
|
|
3429
3429
|
}
|
|
3430
|
-
const
|
|
3430
|
+
const we = {
|
|
3431
3431
|
init(t) {
|
|
3432
3432
|
},
|
|
3433
3433
|
toFormValue(t, e) {
|
|
@@ -3478,18 +3478,18 @@ function gi(t) {
|
|
|
3478
3478
|
getParser(e) {
|
|
3479
3479
|
const r = this.fc.parsers, i = this.fc.renderDriver;
|
|
3480
3480
|
if (i) {
|
|
3481
|
-
const s = i.parsers || {}, n = s[e.originType] || s[
|
|
3481
|
+
const s = i.parsers || {}, n = s[e.originType] || s[H(e.type)] || s[e.trueType];
|
|
3482
3482
|
if (n)
|
|
3483
3483
|
return n;
|
|
3484
3484
|
}
|
|
3485
|
-
return r[e.originType] || r[
|
|
3485
|
+
return r[e.originType] || r[H(e.type)] || r[e.trueType] || we;
|
|
3486
3486
|
},
|
|
3487
3487
|
bindParser(e) {
|
|
3488
3488
|
e.setParser(this.getParser(e));
|
|
3489
3489
|
},
|
|
3490
3490
|
getType(e) {
|
|
3491
|
-
const r = this.fc.CreateNode.aliasMap, i = r[e] || r[
|
|
3492
|
-
return
|
|
3491
|
+
const r = this.fc.CreateNode.aliasMap, i = r[e] || r[H(e)] || e;
|
|
3492
|
+
return H(i);
|
|
3493
3493
|
},
|
|
3494
3494
|
noWatch(e) {
|
|
3495
3495
|
this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
|
|
@@ -3537,7 +3537,7 @@ function gi(t) {
|
|
|
3537
3537
|
const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
|
|
3538
3538
|
return n ? this.api.t(n[1], { title: (a = (o = e.refRule) == null ? void 0 : o.__$title) == null ? void 0 : a.value }) : s;
|
|
3539
3539
|
};
|
|
3540
|
-
return
|
|
3540
|
+
return G(e.rule.validate).map((s) => {
|
|
3541
3541
|
const n = v({}, s);
|
|
3542
3542
|
if (n.message && (n.message = i(n.message)), h.Function(n.validator)) {
|
|
3543
3543
|
const o = e;
|
|
@@ -3789,7 +3789,7 @@ function yi(t) {
|
|
|
3789
3789
|
this.fc.targetFormDriver(e, this.api, this.fc), this.vm.$emit(e, this.api), this.emitEvent(e, this.api);
|
|
3790
3790
|
},
|
|
3791
3791
|
emitEvent(e, ...r) {
|
|
3792
|
-
const i = this.options[e] || this.options[
|
|
3792
|
+
const i = this.options[e] || this.options[H("on-" + e)];
|
|
3793
3793
|
if (i) {
|
|
3794
3794
|
const s = z(i);
|
|
3795
3795
|
h.Function(s) && O(() => s(...r));
|
|
@@ -3800,8 +3800,9 @@ function yi(t) {
|
|
|
3800
3800
|
var l, u, f, p;
|
|
3801
3801
|
let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, m) => {
|
|
3802
3802
|
d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
|
|
3803
|
-
O(() => y(q(v({
|
|
3804
|
-
args: Object.values(i)
|
|
3803
|
+
O(() => y(q(v({
|
|
3804
|
+
args: Object.values(i || {})
|
|
3805
|
+
}, i || {}), {
|
|
3805
3806
|
self: e.rule,
|
|
3806
3807
|
rule: e.rule,
|
|
3807
3808
|
parent: m == null ? void 0 : m.rule,
|
|
@@ -4121,7 +4122,7 @@ const Fi = function(t) {
|
|
|
4121
4122
|
_fn: [],
|
|
4122
4123
|
loaded(r, i, s) {
|
|
4123
4124
|
this.deleted(r), P(() => {
|
|
4124
|
-
let n =
|
|
4125
|
+
let n = G(r.getValue());
|
|
4125
4126
|
const o = [];
|
|
4126
4127
|
n.forEach((a) => {
|
|
4127
4128
|
if (a && (a.attr || a.template)) {
|
|
@@ -4241,9 +4242,9 @@ const Fi = function(t) {
|
|
|
4241
4242
|
}, m), {
|
|
4242
4243
|
onSuccess(_, F) {
|
|
4243
4244
|
if (f()) return;
|
|
4244
|
-
let
|
|
4245
|
+
let J = (L) => F ? L : j(L, "data") ? L.data : L;
|
|
4245
4246
|
const A = z(m.parse);
|
|
4246
|
-
h.Function(A) ?
|
|
4247
|
+
h.Function(A) ? J = A : A && h.String(A) && (J = (L) => B(L, A)), Ae(J(_, n, o)).then((L) => {
|
|
4247
4248
|
l(L);
|
|
4248
4249
|
});
|
|
4249
4250
|
},
|
|
@@ -4461,7 +4462,7 @@ function Wt(t) {
|
|
|
4461
4462
|
$mobile: d
|
|
4462
4463
|
}), y = wi(), _ = {}, F = {};
|
|
4463
4464
|
Ui(t.attrs || {});
|
|
4464
|
-
function
|
|
4465
|
+
function J(c) {
|
|
4465
4466
|
const g = U[c];
|
|
4466
4467
|
if (Array.isArray(g))
|
|
4467
4468
|
return g.map(($) => $.api());
|
|
@@ -4484,11 +4485,15 @@ function Wt(t) {
|
|
|
4484
4485
|
function Pe(c) {
|
|
4485
4486
|
y.use(c);
|
|
4486
4487
|
}
|
|
4487
|
-
function me() {
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4488
|
+
function me(c) {
|
|
4489
|
+
if (arguments.length === 0)
|
|
4490
|
+
return we;
|
|
4491
|
+
if (typeof c == "string" && arguments.length === 1)
|
|
4492
|
+
return r[H(c)];
|
|
4493
|
+
const g = Me(...arguments);
|
|
4494
|
+
if (!g.id || !g.prop) return we;
|
|
4495
|
+
const $ = H(g.id), b = g.prop, w = b.merge === !0 ? r[$] : void 0;
|
|
4496
|
+
r[$] = je(b, w || we), f[$] = T($), b.maker && C(f, b.maker);
|
|
4492
4497
|
}
|
|
4493
4498
|
function E(c, g) {
|
|
4494
4499
|
let $;
|
|
@@ -4496,9 +4501,9 @@ function Wt(t) {
|
|
|
4496
4501
|
if ($ = c, g === void 0)
|
|
4497
4502
|
return ["form-create", "formcreate"].indexOf($) > -1 ? S() : e[$];
|
|
4498
4503
|
} else
|
|
4499
|
-
$ =
|
|
4504
|
+
$ = H(c.name), g = c;
|
|
4500
4505
|
if (!$ || !g) return;
|
|
4501
|
-
const b =
|
|
4506
|
+
const b = H($);
|
|
4502
4507
|
e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && me($, g.formCreateParser);
|
|
4503
4508
|
}
|
|
4504
4509
|
function S() {
|
|
@@ -4515,7 +4520,7 @@ function Wt(t) {
|
|
|
4515
4520
|
const w = b.$refs.fc.formCreate;
|
|
4516
4521
|
return w.$parent = $, Mi(w.options).appendChild(b.$el), w.api();
|
|
4517
4522
|
}
|
|
4518
|
-
|
|
4523
|
+
je(W, F);
|
|
4519
4524
|
function zt(c) {
|
|
4520
4525
|
let g = v({}, t);
|
|
4521
4526
|
return c ? g.inherit = {
|
|
@@ -4539,10 +4544,10 @@ function Wt(t) {
|
|
|
4539
4544
|
function Qt(c, g) {
|
|
4540
4545
|
const $ = n[c] || {}, b = $.parsers || {};
|
|
4541
4546
|
g.parsers && Object.keys(g.parsers).forEach((w) => {
|
|
4542
|
-
b[w] =
|
|
4547
|
+
b[w] = je(g.parsers[w], we);
|
|
4543
4548
|
}), g.name = c, n[c] = q(v(v({}, $), g), { parsers: b });
|
|
4544
4549
|
}
|
|
4545
|
-
function
|
|
4550
|
+
function ke(c) {
|
|
4546
4551
|
c && Object.keys(U).forEach((g) => {
|
|
4547
4552
|
(Array.isArray(U[g]) ? U[g] : [U[g]]).forEach((b) => {
|
|
4548
4553
|
b.bus.$emit("$loadData." + c);
|
|
@@ -4550,9 +4555,9 @@ function Wt(t) {
|
|
|
4550
4555
|
});
|
|
4551
4556
|
}
|
|
4552
4557
|
function Te(c, g) {
|
|
4553
|
-
oe(m, c, g),
|
|
4558
|
+
oe(m, c, g), ke(c);
|
|
4554
4559
|
}
|
|
4555
|
-
function
|
|
4560
|
+
function Ee(c, g) {
|
|
4556
4561
|
const $ = (...b) => O(() => g(...b));
|
|
4557
4562
|
$._driver = !0, Te(c, $);
|
|
4558
4563
|
}
|
|
@@ -4570,7 +4575,7 @@ function Wt(t) {
|
|
|
4570
4575
|
l.push(c);
|
|
4571
4576
|
}
|
|
4572
4577
|
function er(c) {
|
|
4573
|
-
delete m[c],
|
|
4578
|
+
delete m[c], ke(c);
|
|
4574
4579
|
}
|
|
4575
4580
|
function tr(c, g) {
|
|
4576
4581
|
a.push({ name: c, callback: g });
|
|
@@ -4596,7 +4601,7 @@ function Wt(t) {
|
|
|
4596
4601
|
get: null,
|
|
4597
4602
|
drivers: n,
|
|
4598
4603
|
renderDriver: null,
|
|
4599
|
-
refreshData:
|
|
4604
|
+
refreshData: ke,
|
|
4600
4605
|
loadData: m,
|
|
4601
4606
|
CreateNode: y,
|
|
4602
4607
|
bus: new Si(),
|
|
@@ -4814,10 +4819,10 @@ function Wt(t) {
|
|
|
4814
4819
|
isMobile: d,
|
|
4815
4820
|
extendApi: Yt,
|
|
4816
4821
|
getData: st,
|
|
4817
|
-
setDataDriver:
|
|
4822
|
+
setDataDriver: Ee,
|
|
4818
4823
|
setData: Te,
|
|
4819
4824
|
removeData: er,
|
|
4820
|
-
refreshData:
|
|
4825
|
+
refreshData: ke,
|
|
4821
4826
|
maker: f,
|
|
4822
4827
|
component: E,
|
|
4823
4828
|
directive: L,
|
|
@@ -4837,9 +4842,9 @@ function Wt(t) {
|
|
|
4837
4842
|
$form: S,
|
|
4838
4843
|
parseFn: z,
|
|
4839
4844
|
parseJson: St,
|
|
4840
|
-
toJson:
|
|
4845
|
+
toJson: Oe,
|
|
4841
4846
|
useApp: A,
|
|
4842
|
-
getApi:
|
|
4847
|
+
getApi: J,
|
|
4843
4848
|
on: tr
|
|
4844
4849
|
});
|
|
4845
4850
|
}
|
|
@@ -4862,12 +4867,12 @@ function Wt(t) {
|
|
|
4862
4867
|
}
|
|
4863
4868
|
});
|
|
4864
4869
|
}
|
|
4865
|
-
if (ot(F), rr(F),
|
|
4870
|
+
if (ot(F), rr(F), Ee("$cookie", Pi), Ee("$localStorage", Ti), Ee("$sessionStorage", Bi), y.use({ fragment: "fcFragment" }), t.install && W.use(t), me(Di), t.inherit) {
|
|
4866
4871
|
const c = t.inherit;
|
|
4867
4872
|
c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(m, c.loadData), c.formulas && C(_, c.formulas);
|
|
4868
4873
|
}
|
|
4869
|
-
const
|
|
4870
|
-
return
|
|
4874
|
+
const Re = S();
|
|
4875
|
+
return je(Re, F), Object.defineProperties(Re, {
|
|
4871
4876
|
fetch: {
|
|
4872
4877
|
get() {
|
|
4873
4878
|
return F.fetch;
|
|
@@ -4876,7 +4881,7 @@ function Wt(t) {
|
|
|
4876
4881
|
F.fetch = c;
|
|
4877
4882
|
}
|
|
4878
4883
|
}
|
|
4879
|
-
}),
|
|
4884
|
+
}), Re.util = F, Re;
|
|
4880
4885
|
}
|
|
4881
4886
|
const Ct = {
|
|
4882
4887
|
date: "yyyy-MM-dd",
|
|
@@ -4949,7 +4954,7 @@ const Ct = {
|
|
|
4949
4954
|
}, Qi = "select", Yi = {
|
|
4950
4955
|
name: Qi,
|
|
4951
4956
|
toFormValue(t, e) {
|
|
4952
|
-
return e.prop.props.multiple && !Array.isArray(t) ?
|
|
4957
|
+
return e.prop.props.multiple && !Array.isArray(t) ? G(t) : t;
|
|
4953
4958
|
}
|
|
4954
4959
|
}, en = [
|
|
4955
4960
|
Gi,
|
|
@@ -5151,8 +5156,8 @@ const on = {
|
|
|
5151
5156
|
key: `${e}pop`
|
|
5152
5157
|
};
|
|
5153
5158
|
delete F.props.icon, delete F.props.show, delete F.props.info, delete F.props.align, delete F.props.native;
|
|
5154
|
-
const
|
|
5155
|
-
s.info && !j(F.props,
|
|
5159
|
+
const J = "content";
|
|
5160
|
+
s.info && !j(F.props, J) && (F.props[J] = (_ = (y = r.refRule) == null ? void 0 : y.__$info) == null ? void 0 : _.value), l[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, F]), [
|
|
5156
5161
|
this.$r({
|
|
5157
5162
|
type: "i",
|
|
5158
5163
|
slot: n ? "default" : "reference",
|
|
@@ -5311,7 +5316,7 @@ function hn(t, e) {
|
|
|
5311
5316
|
const o = e.getFieldCtx(r);
|
|
5312
5317
|
if (!o) return;
|
|
5313
5318
|
const a = e.subForm[o.id], l = [e.$manager.validateField(o.id)];
|
|
5314
|
-
|
|
5319
|
+
G(a).filter((u) => !u.isScope).forEach((u) => {
|
|
5315
5320
|
l.push(u.validate());
|
|
5316
5321
|
}), Promise.all(l).then(() => {
|
|
5317
5322
|
s(null), i && i(null);
|
|
@@ -5429,7 +5434,7 @@ function pn(t) {
|
|
|
5429
5434
|
function mn() {
|
|
5430
5435
|
return Wt({
|
|
5431
5436
|
ui: "element-ui",
|
|
5432
|
-
version: "2.7.
|
|
5437
|
+
version: "2.7.22",
|
|
5433
5438
|
manager: on,
|
|
5434
5439
|
extendApi: hn,
|
|
5435
5440
|
install: pn,
|