@form-create/element-ui 2.7.27 → 2.7.29
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 +82 -84
- package/dist/form-create.js +2 -2
- package/dist/form-create.min.js +2 -2
- 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.29
|
|
4
4
|
* (c) 2018-2026 xaboy
|
|
5
5
|
* Github https://github.com/xaboy/form-create
|
|
6
6
|
* Site https://form-create.com/
|
|
@@ -126,8 +126,8 @@ const Or = "fcCheckbox", Fr = {
|
|
|
126
126
|
function J(t) {
|
|
127
127
|
return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
name:
|
|
129
|
+
const kr = "fcFrame", Er = {
|
|
130
|
+
name: kr,
|
|
131
131
|
props: {
|
|
132
132
|
formCreateInject: {
|
|
133
133
|
type: Object,
|
|
@@ -912,7 +912,7 @@ const Pr = "fcUpload", Tr = {
|
|
|
912
912
|
}), this.$emit("fc.el", this.$refs.upload);
|
|
913
913
|
}
|
|
914
914
|
};
|
|
915
|
-
function
|
|
915
|
+
function k(t, e, r) {
|
|
916
916
|
be.set(t, e, r);
|
|
917
917
|
}
|
|
918
918
|
function ie(t, e) {
|
|
@@ -926,19 +926,19 @@ function Fe(t, e = {}, r) {
|
|
|
926
926
|
if ((i = Array.isArray(n)) || h.Object(n)) {
|
|
927
927
|
let o = t[s] === void 0;
|
|
928
928
|
if (i)
|
|
929
|
-
i = !1, o &&
|
|
929
|
+
i = !1, o && k(t, s, []);
|
|
930
930
|
else if (n._clone && r !== void 0)
|
|
931
931
|
if (r)
|
|
932
|
-
n = n.getRule(), o &&
|
|
932
|
+
n = n.getRule(), o && k(t, s, {});
|
|
933
933
|
else {
|
|
934
|
-
|
|
934
|
+
k(t, s, n._clone());
|
|
935
935
|
continue;
|
|
936
936
|
}
|
|
937
937
|
else
|
|
938
|
-
o &&
|
|
938
|
+
o && k(t, s, {});
|
|
939
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
|
}
|
|
@@ -948,7 +948,7 @@ function Y(t) {
|
|
|
948
948
|
const Br = Object.assign || function(t) {
|
|
949
949
|
for (let e, r = 1; r < arguments.length; r++)
|
|
950
950
|
for (let i in e = arguments[r], e)
|
|
951
|
-
Object.prototype.hasOwnProperty.call(e, i) &&
|
|
951
|
+
Object.prototype.hasOwnProperty.call(e, i) && k(t, i, e[i]);
|
|
952
952
|
return t;
|
|
953
953
|
};
|
|
954
954
|
function C() {
|
|
@@ -963,7 +963,7 @@ function se(t, e) {
|
|
|
963
963
|
r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
|
|
964
964
|
};
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function Et(t) {
|
|
967
967
|
return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
|
|
968
968
|
}
|
|
969
969
|
function Lr(t) {
|
|
@@ -1058,8 +1058,8 @@ function Ie() {
|
|
|
1058
1058
|
function oe(t, e, r) {
|
|
1059
1059
|
let i = t, s;
|
|
1060
1060
|
return (e || "").split(".").forEach((n) => {
|
|
1061
|
-
s && ((!i[s] || typeof i[s] != "object") &&
|
|
1062
|
-
}),
|
|
1061
|
+
s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
|
|
1062
|
+
}), k(i, s, r), i;
|
|
1063
1063
|
}
|
|
1064
1064
|
const Ur = "fcGroup", Hr = {
|
|
1065
1065
|
name: Ur,
|
|
@@ -1457,7 +1457,7 @@ const Ur = "fcGroup", Hr = {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
}, Kr = [
|
|
1459
1459
|
Fr,
|
|
1460
|
-
|
|
1460
|
+
Er,
|
|
1461
1461
|
Sr,
|
|
1462
1462
|
Dr,
|
|
1463
1463
|
Ar,
|
|
@@ -1742,32 +1742,32 @@ function Zr(t, e, r) {
|
|
|
1742
1742
|
updateValue: JSON.stringify(u.value || {})
|
|
1743
1743
|
}), m = new t(n), $ = m.api(), _ = d.value, O = () => {
|
|
1744
1744
|
if (o) {
|
|
1745
|
-
const
|
|
1746
|
-
if (
|
|
1745
|
+
const E = De(n, o);
|
|
1746
|
+
if (E) {
|
|
1747
1747
|
let S;
|
|
1748
|
-
_ ? (S = J(
|
|
1748
|
+
_ ? (S = J(E.getSubForm()), S.push($)) : S = $, E.subForm(S);
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
1751
|
}, M = () => {
|
|
1752
|
-
const
|
|
1753
|
-
if (
|
|
1752
|
+
const E = De(n, o);
|
|
1753
|
+
if (E)
|
|
1754
1754
|
if (_) {
|
|
1755
|
-
const S = J(
|
|
1755
|
+
const S = J(E.getSubForm()), U = S.indexOf($);
|
|
1756
1756
|
U > -1 && S.splice(U, 1);
|
|
1757
1757
|
} else
|
|
1758
|
-
|
|
1758
|
+
E.subForm();
|
|
1759
1759
|
};
|
|
1760
1760
|
let A = null;
|
|
1761
1761
|
hr(() => {
|
|
1762
1762
|
N(() => {
|
|
1763
|
-
let
|
|
1763
|
+
let E = "";
|
|
1764
1764
|
const S = s.option && s.option.globalClass || {};
|
|
1765
1765
|
Object.keys(S).forEach((U) => {
|
|
1766
1766
|
let ge = "";
|
|
1767
1767
|
S[U].style && Object.keys(S[U].style).forEach((K) => {
|
|
1768
1768
|
ge += ve(K) + ":" + S[U].style[K] + ";";
|
|
1769
|
-
}), S[U].content && (ge += S[U].content + ";"), ge && (
|
|
1770
|
-
}), s.option && s.option.style && (
|
|
1769
|
+
}), S[U].content && (ge += S[U].content + ";"), ge && (E += `.${U}{${ge}}`);
|
|
1770
|
+
}), s.option && s.option.style && (E += s.option.style), A || (A = document.createElement("style"), A.type = "text/css", document.head.appendChild(A)), A.innerHTML = E || "";
|
|
1771
1771
|
}, () => {
|
|
1772
1772
|
});
|
|
1773
1773
|
});
|
|
@@ -1777,8 +1777,8 @@ function Zr(t, e, r) {
|
|
|
1777
1777
|
m.bus.$emit("$loadData.$scopeForm");
|
|
1778
1778
|
}, 100), Pe = se(() => {
|
|
1779
1779
|
m.bus.$emit("$loadData.$form");
|
|
1780
|
-
}, 100), me = (
|
|
1781
|
-
m.bus.$emit("change-$form." +
|
|
1780
|
+
}, 100), me = (E) => {
|
|
1781
|
+
m.bus.$emit("change-$form." + E);
|
|
1782
1782
|
};
|
|
1783
1783
|
return dr(() => {
|
|
1784
1784
|
o && ($.top.bus.$on("$loadData.$form", L), $.top.bus.$on("change", me)), $ !== $.scope && $.scope.bus.$on("$loadData.$scopeForm", pe), m.mounted();
|
|
@@ -1786,16 +1786,16 @@ function Zr(t, e, r) {
|
|
|
1786
1786
|
o && ($.top.bus.$off("$loadData.$form", L), $.top.bus.$off("change", me)), $ !== $.scope && $.scope.bus.$off("$loadData.$scopeForm", pe), M(), p.destroyed = !0, m.unmount(), A && (A.parentNode || A.parentElement) && document.head.removeChild(A);
|
|
1787
1787
|
}), mr(() => {
|
|
1788
1788
|
m.updated();
|
|
1789
|
-
}), N(f, (
|
|
1790
|
-
|
|
1789
|
+
}), N(f, (E) => {
|
|
1790
|
+
E ? O() : M();
|
|
1791
1791
|
}, { immediate: !0 }), N(() => s.option, () => {
|
|
1792
1792
|
m.initOptions(), $.refresh();
|
|
1793
|
-
}, { deep: !0, flush: "sync" }), N(() => [...l.value], (
|
|
1794
|
-
m.$handle.isBreakWatch() ||
|
|
1793
|
+
}, { deep: !0, flush: "sync" }), N(() => [...l.value], (E) => {
|
|
1794
|
+
m.$handle.isBreakWatch() || E.length === p.renderRule.length && E.every((S) => p.renderRule.indexOf(S) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
|
|
1795
1795
|
}), N(() => [s.disabled, s.preview], () => {
|
|
1796
1796
|
$.refresh();
|
|
1797
|
-
}), N(u, (
|
|
1798
|
-
Oe(
|
|
1797
|
+
}), N(u, (E) => {
|
|
1798
|
+
Oe(E || {}) !== p.updateValue && ($.config.forceCoverValue ? $.coverValue(E || {}) : $.setValue(E || {}));
|
|
1799
1799
|
}, { deep: !0, flush: "post" }), N(() => s.index, () => {
|
|
1800
1800
|
$.coverValue({}), m.$handle.updateAppendData(), P(() => {
|
|
1801
1801
|
P(() => {
|
|
@@ -1815,10 +1815,10 @@ function Zr(t, e, r) {
|
|
|
1815
1815
|
renderRule() {
|
|
1816
1816
|
p.renderRule = [...l.value || []];
|
|
1817
1817
|
},
|
|
1818
|
-
updateValue(
|
|
1818
|
+
updateValue(E) {
|
|
1819
1819
|
if (p.destroyed) return;
|
|
1820
|
-
const S = Oe(
|
|
1821
|
-
p.updateValue !== S && (p.updateValue = S, n.$emit("update:value",
|
|
1820
|
+
const S = Oe(E);
|
|
1821
|
+
p.updateValue !== S && (p.updateValue = S, n.$emit("update:value", E), P(() => {
|
|
1822
1822
|
Pe(), o ? f.value || pe() : (L(), pe());
|
|
1823
1823
|
}));
|
|
1824
1824
|
}
|
|
@@ -1855,7 +1855,7 @@ C(rt.prototype, {
|
|
|
1855
1855
|
return this._data;
|
|
1856
1856
|
},
|
|
1857
1857
|
setProp(t, e) {
|
|
1858
|
-
return
|
|
1858
|
+
return k(this._data, t, e), this;
|
|
1859
1859
|
},
|
|
1860
1860
|
_clone() {
|
|
1861
1861
|
const t = new this.constructor();
|
|
@@ -1955,7 +1955,7 @@ function ti(t) {
|
|
|
1955
1955
|
h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
|
|
1956
1956
|
const u = t.fieldCtx[l] || t.nameCtx[l];
|
|
1957
1957
|
u && u.forEach((f) => {
|
|
1958
|
-
|
|
1958
|
+
k(f.rule, o, a), t.$render.clearCache(f);
|
|
1959
1959
|
});
|
|
1960
1960
|
});
|
|
1961
1961
|
}
|
|
@@ -2048,7 +2048,7 @@ function ti(t) {
|
|
|
2048
2048
|
if (l) {
|
|
2049
2049
|
const u = j(n, a);
|
|
2050
2050
|
l.forEach((f) => {
|
|
2051
|
-
|
|
2051
|
+
k(f.rule, "value", u ? n[a] : void 0);
|
|
2052
2052
|
}), delete o[a];
|
|
2053
2053
|
}
|
|
2054
2054
|
}), C(t.appendData, o);
|
|
@@ -2061,7 +2061,7 @@ function ti(t) {
|
|
|
2061
2061
|
const l = t.fieldCtx[a];
|
|
2062
2062
|
if (!l) return t.appendData[a] = o[a];
|
|
2063
2063
|
l.forEach((u) => {
|
|
2064
|
-
|
|
2064
|
+
k(u.rule, "value", o[a]);
|
|
2065
2065
|
});
|
|
2066
2066
|
});
|
|
2067
2067
|
}, !0);
|
|
@@ -2125,7 +2125,7 @@ function ti(t) {
|
|
|
2125
2125
|
disabled(n, o) {
|
|
2126
2126
|
e(o).forEach((a) => {
|
|
2127
2127
|
t.getCtxs(a).forEach((l) => {
|
|
2128
|
-
|
|
2128
|
+
k(l.rule.props, "disabled", !!n);
|
|
2129
2129
|
});
|
|
2130
2130
|
}), t.refresh();
|
|
2131
2131
|
},
|
|
@@ -2183,7 +2183,7 @@ function ti(t) {
|
|
|
2183
2183
|
t.$manager.updateOptions(t.options), s.refresh();
|
|
2184
2184
|
},
|
|
2185
2185
|
hideForm: (n) => {
|
|
2186
|
-
|
|
2186
|
+
k(t.vm, "isShow", !n);
|
|
2187
2187
|
},
|
|
2188
2188
|
changeStatus: () => t.changeStatus,
|
|
2189
2189
|
clearChangeStatus: () => {
|
|
@@ -2242,7 +2242,7 @@ function ti(t) {
|
|
|
2242
2242
|
},
|
|
2243
2243
|
setEffect(n, o, a) {
|
|
2244
2244
|
const l = t.getCtx(n);
|
|
2245
|
-
l && o && (o[0] === "$" && (o = o.substr(1)), j(l.rule, "$" + o) &&
|
|
2245
|
+
l && o && (o[0] === "$" && (o = o.substr(1)), j(l.rule, "$" + o) && k(l.rule, "$" + o, a), j(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
|
|
2246
2246
|
},
|
|
2247
2247
|
clearEffectData(n, o) {
|
|
2248
2248
|
const a = t.getCtx(n);
|
|
@@ -2349,7 +2349,7 @@ function ti(t) {
|
|
|
2349
2349
|
const l = s.getChildrenRuleList(n);
|
|
2350
2350
|
t.deferSyncValue(() => {
|
|
2351
2351
|
l.forEach((u) => {
|
|
2352
|
-
j(o, u.field) ?
|
|
2352
|
+
j(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
|
|
2353
2353
|
});
|
|
2354
2354
|
});
|
|
2355
2355
|
},
|
|
@@ -2641,7 +2641,7 @@ function ii(t) {
|
|
|
2641
2641
|
},
|
|
2642
2642
|
injectProp(e) {
|
|
2643
2643
|
const r = this.vm;
|
|
2644
|
-
r.ctxInject[e.id] ||
|
|
2644
|
+
r.ctxInject[e.id] || k(r.ctxInject, e.id, {
|
|
2645
2645
|
api: this.$handle.api,
|
|
2646
2646
|
form: this.fc.create,
|
|
2647
2647
|
subForm: (n) => {
|
|
@@ -2672,7 +2672,7 @@ function ii(t) {
|
|
|
2672
2672
|
children: e.loadChildrenPending()
|
|
2673
2673
|
};
|
|
2674
2674
|
return Object.keys(s).forEach((n) => {
|
|
2675
|
-
|
|
2675
|
+
k(i, n, s[n]);
|
|
2676
2676
|
}), i;
|
|
2677
2677
|
},
|
|
2678
2678
|
ctxProp(e) {
|
|
@@ -3329,7 +3329,7 @@ function fi(t) {
|
|
|
3329
3329
|
function ci(t) {
|
|
3330
3330
|
const e = Nt();
|
|
3331
3331
|
return Object.keys(e).forEach((r) => {
|
|
3332
|
-
j(t, r) ||
|
|
3332
|
+
j(t, r) || k(t, r, e[r]);
|
|
3333
3333
|
}), t;
|
|
3334
3334
|
}
|
|
3335
3335
|
function hi(t) {
|
|
@@ -3379,7 +3379,7 @@ function pi(t) {
|
|
|
3379
3379
|
setFormData(e, r) {
|
|
3380
3380
|
e.modelValue = r;
|
|
3381
3381
|
const i = e.getParentGroup();
|
|
3382
|
-
i && (this.subRuleData[i.id] ||
|
|
3382
|
+
i && (this.subRuleData[i.id] || k(this.subRuleData, i.id, {}), k(this.subRuleData[i.id], e.field, e.rule.value)), k(this.formData, e.id, r);
|
|
3383
3383
|
},
|
|
3384
3384
|
rmSubRuleData(e) {
|
|
3385
3385
|
const r = e.getParentGroup();
|
|
@@ -4065,7 +4065,7 @@ function wi() {
|
|
|
4065
4065
|
},
|
|
4066
4066
|
use(r) {
|
|
4067
4067
|
Object.keys(r).forEach((i) => {
|
|
4068
|
-
const s = ve(i), n =
|
|
4068
|
+
const s = ve(i), n = Et(i).toLocaleLowerCase(), o = r[i];
|
|
4069
4069
|
e.alias(i, o), [i, s, n].forEach((a) => {
|
|
4070
4070
|
e.prototype[a] = function(l, u) {
|
|
4071
4071
|
return this.make(t[i] || a, l, u);
|
|
@@ -4150,14 +4150,14 @@ const Fi = function(t) {
|
|
|
4150
4150
|
let n = J(r.getValue());
|
|
4151
4151
|
const o = [];
|
|
4152
4152
|
n.forEach((a) => {
|
|
4153
|
-
if (a && (a.attr || a.template)) {
|
|
4153
|
+
if (a && (a.attr || a.template || a.handler)) {
|
|
4154
4154
|
let l = (d) => {
|
|
4155
4155
|
let p;
|
|
4156
4156
|
i && i.__fc__ && (p = i.__fc__.getParentGroup());
|
|
4157
4157
|
let m;
|
|
4158
4158
|
a.template ? m = t.$handle.loadStrVar(a.template, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null) : a.handler && h.Function(a.handler) ? m = a.handler(d, i, s) : m = t.$handle.loadStrVar(`{{${a.attr}}}`, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null), (m == null || m === "") && a.default != null && (m = a.default), a.copy !== !1 && (m = Y(m));
|
|
4159
4159
|
const $ = a.modify ? i : r.getProp();
|
|
4160
|
-
a.to === "child" ? $.children ?
|
|
4160
|
+
a.to === "child" ? $.children ? k($.children, 0, m) : k($, "children", [m]) : oe($, a.to || "options", m), s.sync(i);
|
|
4161
4161
|
}, u = (d) => l(d);
|
|
4162
4162
|
const f = t.watchLoadData(u);
|
|
4163
4163
|
l = se(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
|
|
@@ -4172,7 +4172,7 @@ const Fi = function(t) {
|
|
|
4172
4172
|
}
|
|
4173
4173
|
};
|
|
4174
4174
|
return e.watch = e.loaded, e;
|
|
4175
|
-
},
|
|
4175
|
+
}, ki = function(t) {
|
|
4176
4176
|
const e = {
|
|
4177
4177
|
name: "t",
|
|
4178
4178
|
_fn: [],
|
|
@@ -4187,7 +4187,7 @@ const Fi = function(t) {
|
|
|
4187
4187
|
let f = (m) => {
|
|
4188
4188
|
let $ = t.t(u ? l.attr : l, u ? l.params : null, m);
|
|
4189
4189
|
const _ = u && l.modify ? i : r.getProp();
|
|
4190
|
-
a === "child" ? _.children ?
|
|
4190
|
+
a === "child" ? _.children ? k(_.children, 0, $) : k(_, "children", [$]) : oe(_, a, $), s.sync(i);
|
|
4191
4191
|
}, d = (m) => f(m);
|
|
4192
4192
|
const p = t.watchLoadData(d);
|
|
4193
4193
|
f = se(f, l.wait || 300), l.watch !== !1 ? o.push(p) : p();
|
|
@@ -4226,7 +4226,7 @@ const Fi = function(t) {
|
|
|
4226
4226
|
watch(...t) {
|
|
4227
4227
|
Kt.load(...t);
|
|
4228
4228
|
}
|
|
4229
|
-
},
|
|
4229
|
+
}, Ei = function(t) {
|
|
4230
4230
|
function e(s) {
|
|
4231
4231
|
return h.String(s) && (s = {
|
|
4232
4232
|
action: s,
|
|
@@ -4237,24 +4237,13 @@ const Fi = function(t) {
|
|
|
4237
4237
|
let a = s.value;
|
|
4238
4238
|
i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
|
|
4239
4239
|
const l = (d) => {
|
|
4240
|
-
d === void 0 ? s.clearProp() : oe(s.getProp(), a.to || "options", d), o.sync(n);
|
|
4240
|
+
d === void 0 ? s.clearProp() : oe(s.getProp(), a.to || "options", d), d != null && a && a.key && t.$handle.options.globalData[a.key] && t.fetchCache.set(t.$handle.options.globalData[a.key], { status: !0, data: d }), o.sync(n);
|
|
4241
4241
|
};
|
|
4242
4242
|
if (!a || !a.action && !a.key) {
|
|
4243
4243
|
l(void 0);
|
|
4244
4244
|
return;
|
|
4245
4245
|
}
|
|
4246
|
-
|
|
4247
|
-
const d = t.$handle.options.globalData[a.key];
|
|
4248
|
-
if (!d) {
|
|
4249
|
-
l(void 0);
|
|
4250
|
-
return;
|
|
4251
|
-
}
|
|
4252
|
-
if (d.type === "static") {
|
|
4253
|
-
l(d.data);
|
|
4254
|
-
return;
|
|
4255
|
-
} else
|
|
4256
|
-
a = v(v({}, a), d);
|
|
4257
|
-
}
|
|
4246
|
+
a = Y(a), a.to || (a.to = "options");
|
|
4258
4247
|
const u = a.onError, f = () => {
|
|
4259
4248
|
if (!s.getValue())
|
|
4260
4249
|
return s.clearProp(), o.sync(n), !0;
|
|
@@ -4262,6 +4251,15 @@ const Fi = function(t) {
|
|
|
4262
4251
|
i._fn[s.id] = t.watchLoadData(se((d, p) => {
|
|
4263
4252
|
if (p && a.watch === !1)
|
|
4264
4253
|
return i._fn[s.id]();
|
|
4254
|
+
if (a.key) {
|
|
4255
|
+
t.targetRule = n;
|
|
4256
|
+
const _ = d("$globalData." + a.key);
|
|
4257
|
+
if (delete t.targetRule, _) {
|
|
4258
|
+
if (f()) return;
|
|
4259
|
+
l(_);
|
|
4260
|
+
}
|
|
4261
|
+
return;
|
|
4262
|
+
}
|
|
4265
4263
|
const m = t.$handle.loadFetchVar(Y(a), d, n), $ = q(v({
|
|
4266
4264
|
headers: {}
|
|
4267
4265
|
}, m), {
|
|
@@ -4306,9 +4304,9 @@ const Fi = function(t) {
|
|
|
4306
4304
|
};
|
|
4307
4305
|
return i;
|
|
4308
4306
|
}, Ri = {
|
|
4309
|
-
fetch:
|
|
4307
|
+
fetch: Ei,
|
|
4310
4308
|
loadData: Fi,
|
|
4311
|
-
t:
|
|
4309
|
+
t: ki,
|
|
4312
4310
|
componentValidate: Kt
|
|
4313
4311
|
};
|
|
4314
4312
|
function Si(t) {
|
|
@@ -4520,7 +4518,7 @@ function Wt(t) {
|
|
|
4520
4518
|
const y = G(g.id), b = g.prop, w = b.merge === !0 ? r[y] : void 0;
|
|
4521
4519
|
r[y] = je(b, w || we), f[y] = T(y), b.maker && C(f, b.maker);
|
|
4522
4520
|
}
|
|
4523
|
-
function
|
|
4521
|
+
function E(c, g) {
|
|
4524
4522
|
let y;
|
|
4525
4523
|
if (h.String(c)) {
|
|
4526
4524
|
if (y = c, g === void 0)
|
|
@@ -4572,7 +4570,7 @@ function Wt(t) {
|
|
|
4572
4570
|
b[w] = je(g.parsers[w], we);
|
|
4573
4571
|
}), g.name = c, n[c] = q(v(v({}, y), g), { parsers: b });
|
|
4574
4572
|
}
|
|
4575
|
-
function
|
|
4573
|
+
function ke(c) {
|
|
4576
4574
|
c && Object.keys(H).forEach((g) => {
|
|
4577
4575
|
(Array.isArray(H[g]) ? H[g] : [H[g]]).forEach((b) => {
|
|
4578
4576
|
b.bus.$emit("$loadData." + c);
|
|
@@ -4580,9 +4578,9 @@ function Wt(t) {
|
|
|
4580
4578
|
});
|
|
4581
4579
|
}
|
|
4582
4580
|
function Te(c, g) {
|
|
4583
|
-
oe(m, c, g),
|
|
4581
|
+
oe(m, c, g), ke(c);
|
|
4584
4582
|
}
|
|
4585
|
-
function
|
|
4583
|
+
function Ee(c, g) {
|
|
4586
4584
|
const y = (...b) => F(() => g(...b));
|
|
4587
4585
|
y._driver = !0, Te(c, y);
|
|
4588
4586
|
}
|
|
@@ -4590,7 +4588,7 @@ function Wt(t) {
|
|
|
4590
4588
|
const y = (c || "").split(".");
|
|
4591
4589
|
c = y.shift();
|
|
4592
4590
|
const b = y.join(".");
|
|
4593
|
-
if (j(m, c) ||
|
|
4591
|
+
if (j(m, c) || k(m, c, _t), m[c] !== _t) {
|
|
4594
4592
|
let w = m[c];
|
|
4595
4593
|
return w && w._driver ? w = w(b) : y.length && (w = B(w, y)), w == null || w === "" ? g : w;
|
|
4596
4594
|
} else
|
|
@@ -4600,7 +4598,7 @@ function Wt(t) {
|
|
|
4600
4598
|
l.push(c);
|
|
4601
4599
|
}
|
|
4602
4600
|
function er(c) {
|
|
4603
|
-
delete m[c],
|
|
4601
|
+
delete m[c], ke(c);
|
|
4604
4602
|
}
|
|
4605
4603
|
function tr(c, g) {
|
|
4606
4604
|
a.push({ name: c, callback: g });
|
|
@@ -4626,7 +4624,7 @@ function Wt(t) {
|
|
|
4626
4624
|
get: null,
|
|
4627
4625
|
drivers: n,
|
|
4628
4626
|
renderDriver: null,
|
|
4629
|
-
refreshData:
|
|
4627
|
+
refreshData: ke,
|
|
4630
4628
|
loadData: m,
|
|
4631
4629
|
CreateNode: $,
|
|
4632
4630
|
bus: new Si(),
|
|
@@ -4844,12 +4842,12 @@ function Wt(t) {
|
|
|
4844
4842
|
isMobile: p,
|
|
4845
4843
|
extendApi: Yt,
|
|
4846
4844
|
getData: st,
|
|
4847
|
-
setDataDriver:
|
|
4845
|
+
setDataDriver: Ee,
|
|
4848
4846
|
setData: Te,
|
|
4849
4847
|
removeData: er,
|
|
4850
|
-
refreshData:
|
|
4848
|
+
refreshData: ke,
|
|
4851
4849
|
maker: f,
|
|
4852
|
-
component:
|
|
4850
|
+
component: E,
|
|
4853
4851
|
directive: L,
|
|
4854
4852
|
setModelField: Xt,
|
|
4855
4853
|
setFormula: Zt,
|
|
@@ -4892,7 +4890,7 @@ function Wt(t) {
|
|
|
4892
4890
|
}
|
|
4893
4891
|
});
|
|
4894
4892
|
}
|
|
4895
|
-
if (ot(O), rr(O),
|
|
4893
|
+
if (ot(O), rr(O), Ee("$cookie", Pi), Ee("$localStorage", Ti), Ee("$sessionStorage", Bi), $.use({ fragment: "fcFragment" }), t.install && K.use(t), me(Di), t.inherit) {
|
|
4896
4894
|
const c = t.inherit;
|
|
4897
4895
|
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);
|
|
4898
4896
|
}
|
|
@@ -5148,7 +5146,7 @@ const on = {
|
|
|
5148
5146
|
delete r.wrap.class, delete r.wrap.title;
|
|
5149
5147
|
const f = (h.Undef(r.wrap.show) ? !t.input : Z(r.wrap.show)) ? e : this.$r(Q([r.wrap, {
|
|
5150
5148
|
props: q(v({
|
|
5151
|
-
labelWidth: o === void 0 ? o :
|
|
5149
|
+
labelWidth: o === void 0 ? o : Et(o),
|
|
5152
5150
|
label: n ? r.title.title : void 0
|
|
5153
5151
|
}, Ge(r.wrap || {})), {
|
|
5154
5152
|
prop: t.id,
|
|
@@ -5311,7 +5309,7 @@ function cn(t) {
|
|
|
5311
5309
|
};
|
|
5312
5310
|
return Object.keys(e).reduce((r, i) => (r[i] = T("frame", (s) => s.props({ type: e[i][0], maxLength: e[i][1] })), r), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages, t;
|
|
5313
5311
|
}
|
|
5314
|
-
function
|
|
5312
|
+
function kt(t, e) {
|
|
5315
5313
|
return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
|
|
5316
5314
|
}
|
|
5317
5315
|
function hn(t, e) {
|
|
@@ -5404,11 +5402,11 @@ function hn(t, e) {
|
|
|
5404
5402
|
}
|
|
5405
5403
|
},
|
|
5406
5404
|
submitBtnProps: (r = {}) => {
|
|
5407
|
-
let i =
|
|
5405
|
+
let i = kt(e.options.submitBtn, !0);
|
|
5408
5406
|
C(i, r), e.options.submitBtn = i, t.refreshOptions();
|
|
5409
5407
|
},
|
|
5410
5408
|
resetBtnProps: (r = {}) => {
|
|
5411
|
-
let i =
|
|
5409
|
+
let i = kt(e.options.resetBtn, !1);
|
|
5412
5410
|
C(i, r), e.options.resetBtn = i, t.refreshOptions();
|
|
5413
5411
|
},
|
|
5414
5412
|
submit(r, i) {
|
|
@@ -5473,7 +5471,7 @@ function pn(t) {
|
|
|
5473
5471
|
function mn() {
|
|
5474
5472
|
return Wt({
|
|
5475
5473
|
ui: "element-ui",
|
|
5476
|
-
version: "2.7.
|
|
5474
|
+
version: "2.7.29",
|
|
5477
5475
|
manager: on,
|
|
5478
5476
|
extendApi: hn,
|
|
5479
5477
|
install: pn,
|