@form-create/element-ui 2.7.21 → 2.7.23
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/README.md +2 -0
- package/dist/form-create.esm.js +128 -120
- package/dist/form-create.js +4 -4
- package/dist/form-create.min.js +4 -4
- package/package.json +4 -4
- package/src/core/manager.js +1 -1
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.23
|
|
4
|
+
* (c) 2018-2026 xaboy
|
|
5
5
|
* Github https://github.com/xaboy/form-create
|
|
6
6
|
* Site https://form-create.com/
|
|
7
7
|
* Released under the MIT License.
|
|
@@ -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++)
|
|
@@ -988,28 +988,28 @@ function Ye(t, e) {
|
|
|
988
988
|
function Mr(t) {
|
|
989
989
|
Ye(t.toString()), console.error(t);
|
|
990
990
|
}
|
|
991
|
-
const We = "[[FORM-CREATE-PREFIX-",
|
|
992
|
-
function
|
|
993
|
-
return JSON.stringify(
|
|
991
|
+
const We = "[[FORM-CREATE-PREFIX-", ze = "-FORM-CREATE-SUFFIX]]";
|
|
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;
|
|
997
997
|
if (i.__json)
|
|
998
998
|
return i.__json;
|
|
999
999
|
if (i.__origin && (i = i.__origin), !i.__emit)
|
|
1000
|
-
return We + i +
|
|
1000
|
+
return We + i + ze;
|
|
1001
1001
|
}
|
|
1002
1002
|
}, e);
|
|
1003
1003
|
}
|
|
1004
1004
|
function Le(t) {
|
|
1005
1005
|
return new Function("return " + t)();
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function x(t, e) {
|
|
1008
1008
|
if (t && h.String(t) && t.length > 4) {
|
|
1009
1009
|
let r = t.trim(), i = !1;
|
|
1010
1010
|
try {
|
|
1011
|
-
if (r.indexOf(
|
|
1012
|
-
r = r.replace(
|
|
1011
|
+
if (r.indexOf(ze) > 0 && r.indexOf(We) === 0)
|
|
1012
|
+
r = r.replace(ze, "").replace(We, ""), i = !0;
|
|
1013
1013
|
else if (r.indexOf("$FN:") === 0)
|
|
1014
1014
|
r = r.substring(4), i = !0;
|
|
1015
1015
|
else if (r.indexOf("$EXEC:") === 0)
|
|
@@ -1047,7 +1047,7 @@ err: ${s}`);
|
|
|
1047
1047
|
}
|
|
1048
1048
|
function St(t, e) {
|
|
1049
1049
|
return JSON.parse(t, function(r, i) {
|
|
1050
|
-
return h.Undef(i) || !i.indexOf ? i :
|
|
1050
|
+
return h.Undef(i) || !i.indexOf ? i : x(i, e);
|
|
1051
1051
|
});
|
|
1052
1052
|
}
|
|
1053
1053
|
let qr = 0;
|
|
@@ -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();
|
|
@@ -1498,7 +1498,7 @@ const Ur = "fcGroup", Hr = {
|
|
|
1498
1498
|
function It() {
|
|
1499
1499
|
return [...At, ...jt, ...Dt, ...Vt, ...et, ...tt];
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function xe(t, e) {
|
|
1502
1502
|
return {
|
|
1503
1503
|
value: t,
|
|
1504
1504
|
enumerable: !1,
|
|
@@ -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;
|
|
@@ -1519,7 +1519,7 @@ function ht(t) {
|
|
|
1519
1519
|
const e = h.Function(t.getRule) ? t.getRule() : t;
|
|
1520
1520
|
return e.type || (e.type = "input"), e;
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function zr(t, e) {
|
|
1523
1523
|
return t ? (Object.keys(e || {}).forEach((r) => {
|
|
1524
1524
|
e[r] && (t[r] = ee(t[r] || {}, e[r]));
|
|
1525
1525
|
}), t) : e;
|
|
@@ -1544,13 +1544,13 @@ 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
|
});
|
|
1551
1551
|
}), r;
|
|
1552
1552
|
}
|
|
1553
|
-
function
|
|
1553
|
+
function xr(t, e) {
|
|
1554
1554
|
if (h.Object(t)) {
|
|
1555
1555
|
const r = {};
|
|
1556
1556
|
return Object.keys(t).forEach((i) => {
|
|
@@ -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) {
|
|
@@ -1575,7 +1575,7 @@ function Re() {
|
|
|
1575
1575
|
const n = s();
|
|
1576
1576
|
Array.isArray(n) ? i.push(...n) : i.push(n);
|
|
1577
1577
|
} else h.Undef(s) || i.push(s);
|
|
1578
|
-
}),
|
|
1578
|
+
}), xr(i, r);
|
|
1579
1579
|
},
|
|
1580
1580
|
getSlots() {
|
|
1581
1581
|
let r = [];
|
|
@@ -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
|
}));
|
|
@@ -1933,7 +1933,7 @@ function yt(t, e, r) {
|
|
|
1933
1933
|
(e || Ut)(q(v({}, t), {
|
|
1934
1934
|
onSuccess(n) {
|
|
1935
1935
|
let o = (l) => l;
|
|
1936
|
-
const a =
|
|
1936
|
+
const a = x(t.parse);
|
|
1937
1937
|
h.Function(a) ? o = a : a && h.String(a) && (o = (l) => B(l, a)), Ae(o(n, t.targetRule, r)).then((l) => {
|
|
1938
1938
|
i(l);
|
|
1939
1939
|
});
|
|
@@ -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);
|
|
@@ -2336,7 +2336,7 @@ function ti(t) {
|
|
|
2336
2336
|
getGlobalEvent(n) {
|
|
2337
2337
|
let o = s.options.globalEvent[n];
|
|
2338
2338
|
if (o)
|
|
2339
|
-
return typeof o == "object" && (o = o.handle),
|
|
2339
|
+
return typeof o == "object" && (o = o.handle), x(o);
|
|
2340
2340
|
},
|
|
2341
2341
|
getGlobalData(n) {
|
|
2342
2342
|
return new Promise((o, a) => {
|
|
@@ -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);
|
|
@@ -2577,7 +2577,7 @@ function ii(t) {
|
|
|
2577
2577
|
});
|
|
2578
2578
|
const d = this.getTypeSlot(e);
|
|
2579
2579
|
let m;
|
|
2580
|
-
return d ? (u.children = f, m = d(u)) : m = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), m = this.renderSides(m, e),
|
|
2580
|
+
return d ? (u.children = f, m = d(u)) : m = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), m = this.renderSides(m, e), (e.input || !h.Undef(n.native) || n.col.show !== !1) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((y) => !y || !y.tag ? y : this.none(y)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
|
|
2581
2581
|
}, this.setCache(e, s, r);
|
|
2582
2582
|
}
|
|
2583
2583
|
return (...s) => {
|
|
@@ -2674,6 +2674,9 @@ function ii(t) {
|
|
|
2674
2674
|
"hook:mounted": () => {
|
|
2675
2675
|
this.onMounted(e);
|
|
2676
2676
|
},
|
|
2677
|
+
"hook:beforeDestroy": () => {
|
|
2678
|
+
this.$handle.effect(e, "beforeUnmount"), this.$handle.targetHook(e, "beforeUnmount");
|
|
2679
|
+
},
|
|
2677
2680
|
"fc.updateValue": (l) => {
|
|
2678
2681
|
this.$handle.onUpdateValue(e, l);
|
|
2679
2682
|
},
|
|
@@ -2717,7 +2720,7 @@ function ii(t) {
|
|
|
2717
2720
|
},
|
|
2718
2721
|
renderChildren(e, r, i) {
|
|
2719
2722
|
if (!h.trueArray(e)) return [];
|
|
2720
|
-
const s =
|
|
2723
|
+
const s = Se();
|
|
2721
2724
|
return e.map((n) => {
|
|
2722
2725
|
if (n) {
|
|
2723
2726
|
if (h.String(n) || h.Number(n)) return s.setSlot(null, i ? this.renderRule({
|
|
@@ -2743,7 +2746,7 @@ function ii(t) {
|
|
|
2743
2746
|
},
|
|
2744
2747
|
createRuleVnode(e, r, i) {
|
|
2745
2748
|
this.force = i !== !1, this.tmpInput = r;
|
|
2746
|
-
const s =
|
|
2749
|
+
const s = Se();
|
|
2747
2750
|
return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
|
|
2748
2751
|
},
|
|
2749
2752
|
renderRule(e, r, i) {
|
|
@@ -2753,12 +2756,12 @@ function ii(t) {
|
|
|
2753
2756
|
if (i)
|
|
2754
2757
|
s = e.type;
|
|
2755
2758
|
else if (s = e.is, e.type) {
|
|
2756
|
-
s =
|
|
2759
|
+
s = H(e.type);
|
|
2757
2760
|
const a = this.vNode.aliasMap[s];
|
|
2758
|
-
a && (s =
|
|
2761
|
+
a && (s = H(a));
|
|
2759
2762
|
}
|
|
2760
2763
|
if (!s) return;
|
|
2761
|
-
const n =
|
|
2764
|
+
const n = Se();
|
|
2762
2765
|
h.trueArray(e.children) && e.children.forEach((a) => {
|
|
2763
2766
|
a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
|
|
2764
2767
|
});
|
|
@@ -2807,7 +2810,7 @@ function si(t) {
|
|
|
2807
2810
|
if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
|
|
2808
2811
|
return this.parseEventLst(e, r, i, !0);
|
|
2809
2812
|
if (h.String(r)) {
|
|
2810
|
-
const n =
|
|
2813
|
+
const n = x(r);
|
|
2811
2814
|
if (n && r !== n)
|
|
2812
2815
|
return n.__inject ? this.parseEvent(e, n, i, !0) : n;
|
|
2813
2816
|
}
|
|
@@ -2945,9 +2948,9 @@ function li(t) {
|
|
|
2945
2948
|
}
|
|
2946
2949
|
function ui(t) {
|
|
2947
2950
|
Object.defineProperties(t.origin, {
|
|
2948
|
-
__fc__:
|
|
2951
|
+
__fc__: xe(ye(t), !0)
|
|
2949
2952
|
}), t.rule !== t.origin && Object.defineProperties(t.rule, {
|
|
2950
|
-
__fc__:
|
|
2953
|
+
__fc__: xe(ye(t), !0)
|
|
2951
2954
|
});
|
|
2952
2955
|
}
|
|
2953
2956
|
function Gt(t, e, r) {
|
|
@@ -3053,7 +3056,7 @@ C(Gt.prototype, {
|
|
|
3053
3056
|
this.key = Ie(), t && this.parent && this.parent.updateKey(t);
|
|
3054
3057
|
},
|
|
3055
3058
|
updateType() {
|
|
3056
|
-
this.originType = this.rule.type, this.type =
|
|
3059
|
+
this.originType = this.rule.type, this.type = H(this.rule.type), this.trueType = this.$handle.getType(this.originType);
|
|
3057
3060
|
},
|
|
3058
3061
|
setParser(t) {
|
|
3059
3062
|
this.parser = t, t.init(this);
|
|
@@ -3143,10 +3146,10 @@ function fi(t) {
|
|
|
3143
3146
|
parseRule(e) {
|
|
3144
3147
|
const r = ht(e);
|
|
3145
3148
|
return Object.defineProperties(r, {
|
|
3146
|
-
__origin__:
|
|
3149
|
+
__origin__: xe(e, !0)
|
|
3147
3150
|
}), ci(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
|
|
3148
3151
|
i && this.loadFn(i, r);
|
|
3149
|
-
}), this.loadCtrl(r), r.update && (r.update =
|
|
3152
|
+
}), this.loadCtrl(r), r.update && (r.update = x(r.update)), r;
|
|
3150
3153
|
},
|
|
3151
3154
|
loadFn(e, r) {
|
|
3152
3155
|
["on", "props", "nativeOn", "deep"].forEach((i) => {
|
|
@@ -3155,7 +3158,7 @@ function fi(t) {
|
|
|
3155
3158
|
},
|
|
3156
3159
|
loadCtrl(e) {
|
|
3157
3160
|
e.control && e.control.forEach((r) => {
|
|
3158
|
-
r.handle && (r.handle =
|
|
3161
|
+
r.handle && (r.handle = x(r.handle));
|
|
3159
3162
|
});
|
|
3160
3163
|
},
|
|
3161
3164
|
syncProp(e) {
|
|
@@ -3203,7 +3206,7 @@ function fi(t) {
|
|
|
3203
3206
|
} else if (!f.check(this)) {
|
|
3204
3207
|
if (bt(f))
|
|
3205
3208
|
return;
|
|
3206
|
-
e[a] = o = o._clone ? o._clone() : St(
|
|
3209
|
+
e[a] = o = o._clone ? o._clone() : St(Oe(o)), f = null, p = !0;
|
|
3207
3210
|
}
|
|
3208
3211
|
}
|
|
3209
3212
|
if (f)
|
|
@@ -3427,7 +3430,7 @@ function pi(t) {
|
|
|
3427
3430
|
function vt(t, e) {
|
|
3428
3431
|
return typeof e == "function" ? "" + e : e;
|
|
3429
3432
|
}
|
|
3430
|
-
const
|
|
3433
|
+
const we = {
|
|
3431
3434
|
init(t) {
|
|
3432
3435
|
},
|
|
3433
3436
|
toFormValue(t, e) {
|
|
@@ -3478,18 +3481,18 @@ function gi(t) {
|
|
|
3478
3481
|
getParser(e) {
|
|
3479
3482
|
const r = this.fc.parsers, i = this.fc.renderDriver;
|
|
3480
3483
|
if (i) {
|
|
3481
|
-
const s = i.parsers || {}, n = s[e.originType] || s[
|
|
3484
|
+
const s = i.parsers || {}, n = s[e.originType] || s[H(e.type)] || s[e.trueType];
|
|
3482
3485
|
if (n)
|
|
3483
3486
|
return n;
|
|
3484
3487
|
}
|
|
3485
|
-
return r[e.originType] || r[
|
|
3488
|
+
return r[e.originType] || r[H(e.type)] || r[e.trueType] || we;
|
|
3486
3489
|
},
|
|
3487
3490
|
bindParser(e) {
|
|
3488
3491
|
e.setParser(this.getParser(e));
|
|
3489
3492
|
},
|
|
3490
3493
|
getType(e) {
|
|
3491
|
-
const r = this.fc.CreateNode.aliasMap, i = r[e] || r[
|
|
3492
|
-
return
|
|
3494
|
+
const r = this.fc.CreateNode.aliasMap, i = r[e] || r[H(e)] || e;
|
|
3495
|
+
return H(i);
|
|
3493
3496
|
},
|
|
3494
3497
|
noWatch(e) {
|
|
3495
3498
|
this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
|
|
@@ -3537,7 +3540,7 @@ function gi(t) {
|
|
|
3537
3540
|
const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
|
|
3538
3541
|
return n ? this.api.t(n[1], { title: (a = (o = e.refRule) == null ? void 0 : o.__$title) == null ? void 0 : a.value }) : s;
|
|
3539
3542
|
};
|
|
3540
|
-
return
|
|
3543
|
+
return G(e.rule.validate).map((s) => {
|
|
3541
3544
|
const n = v({}, s);
|
|
3542
3545
|
if (n.message && (n.message = i(n.message)), h.Function(n.validator)) {
|
|
3543
3546
|
const o = e;
|
|
@@ -3789,9 +3792,9 @@ function yi(t) {
|
|
|
3789
3792
|
this.fc.targetFormDriver(e, this.api, this.fc), this.vm.$emit(e, this.api), this.emitEvent(e, this.api);
|
|
3790
3793
|
},
|
|
3791
3794
|
emitEvent(e, ...r) {
|
|
3792
|
-
const i = this.options[e] || this.options[
|
|
3795
|
+
const i = this.options[e] || this.options[H("on-" + e)];
|
|
3793
3796
|
if (i) {
|
|
3794
|
-
const s =
|
|
3797
|
+
const s = x(i);
|
|
3795
3798
|
h.Function(s) && O(() => s(...r));
|
|
3796
3799
|
}
|
|
3797
3800
|
this.bus.$emit(e, ...r);
|
|
@@ -3800,8 +3803,9 @@ function yi(t) {
|
|
|
3800
3803
|
var l, u, f, p;
|
|
3801
3804
|
let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, m) => {
|
|
3802
3805
|
d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
|
|
3803
|
-
O(() => y(q(v({
|
|
3804
|
-
args: Object.values(i)
|
|
3806
|
+
O(() => y(q(v({
|
|
3807
|
+
args: Object.values(i || {})
|
|
3808
|
+
}, i || {}), {
|
|
3805
3809
|
self: e.rule,
|
|
3806
3810
|
rule: e.rule,
|
|
3807
3811
|
parent: m == null ? void 0 : m.rule,
|
|
@@ -4121,7 +4125,7 @@ const Fi = function(t) {
|
|
|
4121
4125
|
_fn: [],
|
|
4122
4126
|
loaded(r, i, s) {
|
|
4123
4127
|
this.deleted(r), P(() => {
|
|
4124
|
-
let n =
|
|
4128
|
+
let n = G(r.getValue());
|
|
4125
4129
|
const o = [];
|
|
4126
4130
|
n.forEach((a) => {
|
|
4127
4131
|
if (a && (a.attr || a.template)) {
|
|
@@ -4241,9 +4245,9 @@ const Fi = function(t) {
|
|
|
4241
4245
|
}, m), {
|
|
4242
4246
|
onSuccess(_, F) {
|
|
4243
4247
|
if (f()) return;
|
|
4244
|
-
let
|
|
4245
|
-
const A =
|
|
4246
|
-
h.Function(A) ?
|
|
4248
|
+
let J = (L) => F ? L : j(L, "data") ? L.data : L;
|
|
4249
|
+
const A = x(m.parse);
|
|
4250
|
+
h.Function(A) ? J = A : A && h.String(A) && (J = (L) => B(L, A)), Ae(J(_, n, o)).then((L) => {
|
|
4247
4251
|
l(L);
|
|
4248
4252
|
});
|
|
4249
4253
|
},
|
|
@@ -4461,7 +4465,7 @@ function Wt(t) {
|
|
|
4461
4465
|
$mobile: d
|
|
4462
4466
|
}), y = wi(), _ = {}, F = {};
|
|
4463
4467
|
Ui(t.attrs || {});
|
|
4464
|
-
function
|
|
4468
|
+
function J(c) {
|
|
4465
4469
|
const g = U[c];
|
|
4466
4470
|
if (Array.isArray(g))
|
|
4467
4471
|
return g.map(($) => $.api());
|
|
@@ -4484,11 +4488,15 @@ function Wt(t) {
|
|
|
4484
4488
|
function Pe(c) {
|
|
4485
4489
|
y.use(c);
|
|
4486
4490
|
}
|
|
4487
|
-
function me() {
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4491
|
+
function me(c) {
|
|
4492
|
+
if (arguments.length === 0)
|
|
4493
|
+
return we;
|
|
4494
|
+
if (typeof c == "string" && arguments.length === 1)
|
|
4495
|
+
return r[H(c)];
|
|
4496
|
+
const g = Me(...arguments);
|
|
4497
|
+
if (!g.id || !g.prop) return we;
|
|
4498
|
+
const $ = H(g.id), b = g.prop, w = b.merge === !0 ? r[$] : void 0;
|
|
4499
|
+
r[$] = je(b, w || we), f[$] = T($), b.maker && C(f, b.maker);
|
|
4492
4500
|
}
|
|
4493
4501
|
function E(c, g) {
|
|
4494
4502
|
let $;
|
|
@@ -4496,9 +4504,9 @@ function Wt(t) {
|
|
|
4496
4504
|
if ($ = c, g === void 0)
|
|
4497
4505
|
return ["form-create", "formcreate"].indexOf($) > -1 ? S() : e[$];
|
|
4498
4506
|
} else
|
|
4499
|
-
$ =
|
|
4507
|
+
$ = H(c.name), g = c;
|
|
4500
4508
|
if (!$ || !g) return;
|
|
4501
|
-
const b =
|
|
4509
|
+
const b = H($);
|
|
4502
4510
|
e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && me($, g.formCreateParser);
|
|
4503
4511
|
}
|
|
4504
4512
|
function S() {
|
|
@@ -4515,8 +4523,8 @@ function Wt(t) {
|
|
|
4515
4523
|
const w = b.$refs.fc.formCreate;
|
|
4516
4524
|
return w.$parent = $, Mi(w.options).appendChild(b.$el), w.api();
|
|
4517
4525
|
}
|
|
4518
|
-
|
|
4519
|
-
function
|
|
4526
|
+
je(W, F);
|
|
4527
|
+
function xt(c) {
|
|
4520
4528
|
let g = v({}, t);
|
|
4521
4529
|
return c ? g.inherit = {
|
|
4522
4530
|
components: e,
|
|
@@ -4539,10 +4547,10 @@ function Wt(t) {
|
|
|
4539
4547
|
function Qt(c, g) {
|
|
4540
4548
|
const $ = n[c] || {}, b = $.parsers || {};
|
|
4541
4549
|
g.parsers && Object.keys(g.parsers).forEach((w) => {
|
|
4542
|
-
b[w] =
|
|
4550
|
+
b[w] = je(g.parsers[w], we);
|
|
4543
4551
|
}), g.name = c, n[c] = q(v(v({}, $), g), { parsers: b });
|
|
4544
4552
|
}
|
|
4545
|
-
function
|
|
4553
|
+
function ke(c) {
|
|
4546
4554
|
c && Object.keys(U).forEach((g) => {
|
|
4547
4555
|
(Array.isArray(U[g]) ? U[g] : [U[g]]).forEach((b) => {
|
|
4548
4556
|
b.bus.$emit("$loadData." + c);
|
|
@@ -4550,9 +4558,9 @@ function Wt(t) {
|
|
|
4550
4558
|
});
|
|
4551
4559
|
}
|
|
4552
4560
|
function Te(c, g) {
|
|
4553
|
-
oe(m, c, g),
|
|
4561
|
+
oe(m, c, g), ke(c);
|
|
4554
4562
|
}
|
|
4555
|
-
function
|
|
4563
|
+
function Ee(c, g) {
|
|
4556
4564
|
const $ = (...b) => O(() => g(...b));
|
|
4557
4565
|
$._driver = !0, Te(c, $);
|
|
4558
4566
|
}
|
|
@@ -4570,7 +4578,7 @@ function Wt(t) {
|
|
|
4570
4578
|
l.push(c);
|
|
4571
4579
|
}
|
|
4572
4580
|
function er(c) {
|
|
4573
|
-
delete m[c],
|
|
4581
|
+
delete m[c], ke(c);
|
|
4574
4582
|
}
|
|
4575
4583
|
function tr(c, g) {
|
|
4576
4584
|
a.push({ name: c, callback: g });
|
|
@@ -4596,7 +4604,7 @@ function Wt(t) {
|
|
|
4596
4604
|
get: null,
|
|
4597
4605
|
drivers: n,
|
|
4598
4606
|
renderDriver: null,
|
|
4599
|
-
refreshData:
|
|
4607
|
+
refreshData: ke,
|
|
4600
4608
|
loadData: m,
|
|
4601
4609
|
CreateNode: y,
|
|
4602
4610
|
bus: new Si(),
|
|
@@ -4647,18 +4655,18 @@ function Wt(t) {
|
|
|
4647
4655
|
this.fetchCache.set(b, { status: !1 });
|
|
4648
4656
|
const R = se(() => {
|
|
4649
4657
|
te();
|
|
4650
|
-
const
|
|
4651
|
-
this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (
|
|
4652
|
-
}, b.wait || 600), ae = (
|
|
4653
|
-
this.fetchCache.set(b, { status: !0, data:
|
|
4654
|
-
}, le = (
|
|
4658
|
+
const z = this.fetchCache.get(b);
|
|
4659
|
+
this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (z && (z.loading = !0, this.fetchCache.set(b, z)), this.bus.$emit("$loadData.$globalData." + $)) : this.fetchCache.delete(b);
|
|
4660
|
+
}, b.wait || 600), ae = (z) => {
|
|
4661
|
+
this.fetchCache.set(b, { status: !0, data: z }), this.bus.$emit("$loadData.$globalData." + $);
|
|
4662
|
+
}, le = (z, ue) => {
|
|
4655
4663
|
if (ue && b.watch === !1)
|
|
4656
4664
|
return te();
|
|
4657
4665
|
if (ue) {
|
|
4658
4666
|
R();
|
|
4659
4667
|
return;
|
|
4660
4668
|
}
|
|
4661
|
-
const fe = this.$handle.loadFetchVar(Ke(b),
|
|
4669
|
+
const fe = this.$handle.loadFetchVar(Ke(b), z);
|
|
4662
4670
|
fe.targetRule = this.targetRule, this.$handle.api.fetch(fe).then((re) => {
|
|
4663
4671
|
ae(re);
|
|
4664
4672
|
}).catch((re) => {
|
|
@@ -4685,7 +4693,7 @@ function Wt(t) {
|
|
|
4685
4693
|
let g = c.split(".");
|
|
4686
4694
|
const $ = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[$];
|
|
4687
4695
|
if (b) {
|
|
4688
|
-
const w = h.Function(b) ? b :
|
|
4696
|
+
const w = h.Function(b) ? b : x(b.handle);
|
|
4689
4697
|
if (w) {
|
|
4690
4698
|
let V = w((...R) => this.$handle.api.getData(...R), this.$handle.api);
|
|
4691
4699
|
return B(V, g);
|
|
@@ -4737,7 +4745,7 @@ function Wt(t) {
|
|
|
4737
4745
|
let le;
|
|
4738
4746
|
if (typeof R == "object" && (le = R.getValue, R = R.id), $[R])
|
|
4739
4747
|
return $[R].val;
|
|
4740
|
-
const te = $e(() => le ? le() : this.getLoadData(R, ae)),
|
|
4748
|
+
const te = $e(() => le ? le() : this.getLoadData(R, ae)), z = R.split("."), ue = z.shift(), fe = z.shift() || "", re = se(() => {
|
|
4741
4749
|
const ce = le ? le() : this.getLoadData(R, ae);
|
|
4742
4750
|
if ($[R])
|
|
4743
4751
|
((ce instanceof Function || h.Object(ce) || Array.isArray(ce)) && ce === $[R].val || JSON.stringify(ce) !== JSON.stringify($[R].val)) && ($[R].val = ce, b(!0));
|
|
@@ -4778,7 +4786,7 @@ function Wt(t) {
|
|
|
4778
4786
|
mergeOptions(c, g, $) {
|
|
4779
4787
|
return g = v({}, g || {}), $ && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
|
|
4780
4788
|
delete g[b];
|
|
4781
|
-
}), g.global && (c.global =
|
|
4789
|
+
}), g.global && (c.global = zr(c.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], c), c;
|
|
4782
4790
|
},
|
|
4783
4791
|
updateOptions(c) {
|
|
4784
4792
|
this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
|
|
@@ -4814,10 +4822,10 @@ function Wt(t) {
|
|
|
4814
4822
|
isMobile: d,
|
|
4815
4823
|
extendApi: Yt,
|
|
4816
4824
|
getData: st,
|
|
4817
|
-
setDataDriver:
|
|
4825
|
+
setDataDriver: Ee,
|
|
4818
4826
|
setData: Te,
|
|
4819
4827
|
removeData: er,
|
|
4820
|
-
refreshData:
|
|
4828
|
+
refreshData: ke,
|
|
4821
4829
|
maker: f,
|
|
4822
4830
|
component: E,
|
|
4823
4831
|
directive: L,
|
|
@@ -4828,18 +4836,18 @@ function Wt(t) {
|
|
|
4828
4836
|
$vnode: M,
|
|
4829
4837
|
parser: me,
|
|
4830
4838
|
use: ge,
|
|
4831
|
-
factory:
|
|
4839
|
+
factory: xt,
|
|
4832
4840
|
componentAlias: Pe,
|
|
4833
4841
|
copyRule: Pt,
|
|
4834
4842
|
copyRules: Tt,
|
|
4835
4843
|
mergeRule: ee,
|
|
4836
4844
|
fetch: Ut,
|
|
4837
4845
|
$form: S,
|
|
4838
|
-
parseFn:
|
|
4846
|
+
parseFn: x,
|
|
4839
4847
|
parseJson: St,
|
|
4840
|
-
toJson:
|
|
4848
|
+
toJson: Oe,
|
|
4841
4849
|
useApp: A,
|
|
4842
|
-
getApi:
|
|
4850
|
+
getApi: J,
|
|
4843
4851
|
on: tr
|
|
4844
4852
|
});
|
|
4845
4853
|
}
|
|
@@ -4862,12 +4870,12 @@ function Wt(t) {
|
|
|
4862
4870
|
}
|
|
4863
4871
|
});
|
|
4864
4872
|
}
|
|
4865
|
-
if (ot(F), rr(F),
|
|
4873
|
+
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
4874
|
const c = t.inherit;
|
|
4867
4875
|
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
4876
|
}
|
|
4869
|
-
const
|
|
4870
|
-
return
|
|
4877
|
+
const Re = S();
|
|
4878
|
+
return je(Re, F), Object.defineProperties(Re, {
|
|
4871
4879
|
fetch: {
|
|
4872
4880
|
get() {
|
|
4873
4881
|
return F.fetch;
|
|
@@ -4876,7 +4884,7 @@ function Wt(t) {
|
|
|
4876
4884
|
F.fetch = c;
|
|
4877
4885
|
}
|
|
4878
4886
|
}
|
|
4879
|
-
}),
|
|
4887
|
+
}), Re.util = F, Re;
|
|
4880
4888
|
}
|
|
4881
4889
|
const Ct = {
|
|
4882
4890
|
date: "yyyy-MM-dd",
|
|
@@ -4914,13 +4922,13 @@ const Ct = {
|
|
|
4914
4922
|
let { props: e } = t.prop;
|
|
4915
4923
|
e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
|
|
4916
4924
|
}
|
|
4917
|
-
}, Wi = "textarea",
|
|
4925
|
+
}, Wi = "textarea", zi = {
|
|
4918
4926
|
name: Wi,
|
|
4919
4927
|
mergeProp(t) {
|
|
4920
4928
|
let { props: e } = t.prop;
|
|
4921
4929
|
e.type = "textarea", e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
|
|
4922
4930
|
}
|
|
4923
|
-
}, Ot = "slider",
|
|
4931
|
+
}, Ot = "slider", xi = {
|
|
4924
4932
|
name: Ot,
|
|
4925
4933
|
maker: {
|
|
4926
4934
|
sliderRange: T(Ot, { range: !0 })
|
|
@@ -4949,14 +4957,14 @@ const Ct = {
|
|
|
4949
4957
|
}, Qi = "select", Yi = {
|
|
4950
4958
|
name: Qi,
|
|
4951
4959
|
toFormValue(t, e) {
|
|
4952
|
-
return e.prop.props.multiple && !Array.isArray(t) ?
|
|
4960
|
+
return e.prop.props.multiple && !Array.isArray(t) ? G(t) : t;
|
|
4953
4961
|
}
|
|
4954
4962
|
}, en = [
|
|
4955
4963
|
Gi,
|
|
4956
4964
|
Ji,
|
|
4957
4965
|
Ki,
|
|
4958
|
-
xi,
|
|
4959
4966
|
zi,
|
|
4967
|
+
xi,
|
|
4960
4968
|
Xi,
|
|
4961
4969
|
Zi,
|
|
4962
4970
|
Yi
|
|
@@ -5116,7 +5124,7 @@ const on = {
|
|
|
5116
5124
|
makeWrap(t, e) {
|
|
5117
5125
|
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, u = r.wrap.class;
|
|
5118
5126
|
delete r.wrap.class, delete r.wrap.title;
|
|
5119
|
-
const f = Z(r.wrap.show) ? e : this.$r(Y([r.wrap, {
|
|
5127
|
+
const f = (h.Undef(r.wrap.show) ? !t.input : Z(r.wrap.show)) ? e : this.$r(Y([r.wrap, {
|
|
5120
5128
|
props: q(v({
|
|
5121
5129
|
labelWidth: o === void 0 ? o : Et(o),
|
|
5122
5130
|
label: n ? r.title.title : void 0
|
|
@@ -5151,8 +5159,8 @@ const on = {
|
|
|
5151
5159
|
key: `${e}pop`
|
|
5152
5160
|
};
|
|
5153
5161
|
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,
|
|
5162
|
+
const J = "content";
|
|
5163
|
+
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
5164
|
this.$r({
|
|
5157
5165
|
type: "i",
|
|
5158
5166
|
slot: n ? "default" : "reference",
|
|
@@ -5311,7 +5319,7 @@ function hn(t, e) {
|
|
|
5311
5319
|
const o = e.getFieldCtx(r);
|
|
5312
5320
|
if (!o) return;
|
|
5313
5321
|
const a = e.subForm[o.id], l = [e.$manager.validateField(o.id)];
|
|
5314
|
-
|
|
5322
|
+
G(a).filter((u) => !u.isScope).forEach((u) => {
|
|
5315
5323
|
l.push(u.validate());
|
|
5316
5324
|
}), Promise.all(l).then(() => {
|
|
5317
5325
|
s(null), i && i(null);
|
|
@@ -5382,7 +5390,7 @@ function hn(t, e) {
|
|
|
5382
5390
|
}
|
|
5383
5391
|
};
|
|
5384
5392
|
}
|
|
5385
|
-
const
|
|
5393
|
+
const zt = {
|
|
5386
5394
|
name: "required",
|
|
5387
5395
|
load(t, e, r) {
|
|
5388
5396
|
const i = dn(t.getValue());
|
|
@@ -5411,7 +5419,7 @@ const xt = {
|
|
|
5411
5419
|
r.sync(e);
|
|
5412
5420
|
},
|
|
5413
5421
|
watch(...t) {
|
|
5414
|
-
|
|
5422
|
+
zt.load(...t);
|
|
5415
5423
|
}
|
|
5416
5424
|
};
|
|
5417
5425
|
function dn(t) {
|
|
@@ -5420,7 +5428,7 @@ function dn(t) {
|
|
|
5420
5428
|
function pn(t) {
|
|
5421
5429
|
t.componentAlias(tn), Kr.forEach((e) => {
|
|
5422
5430
|
t.component(e.name, e);
|
|
5423
|
-
}), t.register(
|
|
5431
|
+
}), t.register(zt), en.forEach((e) => {
|
|
5424
5432
|
t.parser(e);
|
|
5425
5433
|
}), Object.keys(de).forEach((e) => {
|
|
5426
5434
|
t.maker[e] = de[e];
|
|
@@ -5429,7 +5437,7 @@ function pn(t) {
|
|
|
5429
5437
|
function mn() {
|
|
5430
5438
|
return Wt({
|
|
5431
5439
|
ui: "element-ui",
|
|
5432
|
-
version: "2.7.
|
|
5440
|
+
version: "2.7.23",
|
|
5433
5441
|
manager: on,
|
|
5434
5442
|
extendApi: hn,
|
|
5435
5443
|
install: pn,
|