@form-create/element-ui 2.7.29 → 2.7.30
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 +24 -24
- 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.30
|
|
4
4
|
* (c) 2018-2026 xaboy
|
|
5
5
|
* Github https://github.com/xaboy/form-create
|
|
6
6
|
* Site https://form-create.com/
|
|
@@ -18,7 +18,7 @@ var lt = (t, e, r) => e in t ? nr(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
18
18
|
for (var r of at(e))
|
|
19
19
|
lr.call(e, r) && lt(t, r, e[r]);
|
|
20
20
|
return t;
|
|
21
|
-
},
|
|
21
|
+
}, U = (t, e) => sr(t, or(e));
|
|
22
22
|
import be, { getCurrentInstance as ur, provide as fr, inject as cr, toRefs as ut, reactive as ne, onBeforeMount as hr, watch as N, onMounted as dr, onBeforeUnmount as pr, onUpdated as mr, nextTick as P, markRaw as ye, computed as $e, toRef as Ve, ref as gr } from "vue";
|
|
23
23
|
function yr(t) {
|
|
24
24
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -469,7 +469,7 @@ const kr = "fcFrame", Er = {
|
|
|
469
469
|
src: this.previewImage
|
|
470
470
|
}
|
|
471
471
|
})]), t("el-dialog", I([{}, {
|
|
472
|
-
props:
|
|
472
|
+
props: U(v({
|
|
473
473
|
width: i,
|
|
474
474
|
title: o,
|
|
475
475
|
appendToBody: !0
|
|
@@ -692,7 +692,7 @@ function ft(t, e) {
|
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
694
|
function ct(t) {
|
|
695
|
-
return
|
|
695
|
+
return U(v({}, t), {
|
|
696
696
|
file: t,
|
|
697
697
|
value: t
|
|
698
698
|
});
|
|
@@ -1752,8 +1752,8 @@ function Zr(t, e, r) {
|
|
|
1752
1752
|
const E = De(n, o);
|
|
1753
1753
|
if (E)
|
|
1754
1754
|
if (_) {
|
|
1755
|
-
const S = J(E.getSubForm()),
|
|
1756
|
-
|
|
1755
|
+
const S = J(E.getSubForm()), q = S.indexOf($);
|
|
1756
|
+
q > -1 && S.splice(q, 1);
|
|
1757
1757
|
} else
|
|
1758
1758
|
E.subForm();
|
|
1759
1759
|
};
|
|
@@ -1762,11 +1762,11 @@ function Zr(t, e, r) {
|
|
|
1762
1762
|
N(() => {
|
|
1763
1763
|
let E = "";
|
|
1764
1764
|
const S = s.option && s.option.globalClass || {};
|
|
1765
|
-
Object.keys(S).forEach((
|
|
1765
|
+
Object.keys(S).forEach((q) => {
|
|
1766
1766
|
let ge = "";
|
|
1767
|
-
S[
|
|
1768
|
-
ge += ve(K) + ":" + S[
|
|
1769
|
-
}), S[
|
|
1767
|
+
S[q].style && Object.keys(S[q].style).forEach((K) => {
|
|
1768
|
+
ge += ve(K) + ":" + S[q].style[K] + ";";
|
|
1769
|
+
}), S[q].content && (ge += S[q].content + ";"), ge && (E += `.${q}{${ge}}`);
|
|
1770
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
|
});
|
|
@@ -1802,7 +1802,7 @@ function Zr(t, e, r) {
|
|
|
1802
1802
|
$.clearValidateState();
|
|
1803
1803
|
});
|
|
1804
1804
|
});
|
|
1805
|
-
}, { flush: "sync" }),
|
|
1805
|
+
}, { flush: "sync" }), U(v({
|
|
1806
1806
|
fc: ye(m),
|
|
1807
1807
|
parent: o && ye(o),
|
|
1808
1808
|
top: ye(a),
|
|
@@ -1930,7 +1930,7 @@ function Ut(t) {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
function yt(t, e, r) {
|
|
1932
1932
|
return new Promise((i, s) => {
|
|
1933
|
-
(e || Ut)(
|
|
1933
|
+
(e || Ut)(U(v({}, t), {
|
|
1934
1934
|
onSuccess(n) {
|
|
1935
1935
|
let o = (l) => l;
|
|
1936
1936
|
const a = z(t.parse);
|
|
@@ -2599,7 +2599,7 @@ function ii(t) {
|
|
|
2599
2599
|
});
|
|
2600
2600
|
const p = this.getTypeSlot(e);
|
|
2601
2601
|
let m;
|
|
2602
|
-
return p ? (u.children = f, m = p(u)) : m = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), m = this.renderSides(m, e), ($ = n.title) != null && $.show && (n.wrap =
|
|
2602
|
+
return p ? (u.children = f, m = p(u)) : m = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), m = this.renderSides(m, e), ($ = n.title) != null && $.show && (n.wrap = v({ show: !0 }, n.wrap || {}), n.native || (n.native = !1)), (!(!e.input && h.Undef(n.native)) || ((_ = n.col) == null ? void 0 : _.show) === !0) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((O) => !O || !O.tag ? O : this.none(O)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
|
|
2603
2603
|
}, this.setCache(e, s, r);
|
|
2604
2604
|
}
|
|
2605
2605
|
return (...s) => {
|
|
@@ -3261,7 +3261,7 @@ function fi(t) {
|
|
|
3261
3261
|
return (he[l.condition || "=="] || he["=="])(d, l.value);
|
|
3262
3262
|
};
|
|
3263
3263
|
if (!h.trueArray(l.rule)) continue;
|
|
3264
|
-
const f =
|
|
3264
|
+
const f = U(v({}, l), {
|
|
3265
3265
|
valid: F(() => u(e.rule.value, s)),
|
|
3266
3266
|
ctrl: di(e, l.rule),
|
|
3267
3267
|
isHidden: h.String(l.rule[0])
|
|
@@ -3825,7 +3825,7 @@ function yi(t) {
|
|
|
3825
3825
|
var l, u, f, d;
|
|
3826
3826
|
let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (p, m) => {
|
|
3827
3827
|
p && (p = Array.isArray(p) ? p : [p], p.forEach(($) => {
|
|
3828
|
-
F(() => $(
|
|
3828
|
+
F(() => $(U(v({
|
|
3829
3829
|
args: Object.values(i || {})
|
|
3830
3830
|
}, i || {}), {
|
|
3831
3831
|
self: e.rule,
|
|
@@ -4209,7 +4209,7 @@ const Fi = function(t) {
|
|
|
4209
4209
|
t.clearProp(), r.clearValidateState([e.field]);
|
|
4210
4210
|
else {
|
|
4211
4211
|
h.Object(i) || (i = { method: i });
|
|
4212
|
-
const s = i.method, n =
|
|
4212
|
+
const s = i.method, n = U(v({}, i), {
|
|
4213
4213
|
validator(...o) {
|
|
4214
4214
|
const a = x(e);
|
|
4215
4215
|
if (a)
|
|
@@ -4260,7 +4260,7 @@ const Fi = function(t) {
|
|
|
4260
4260
|
}
|
|
4261
4261
|
return;
|
|
4262
4262
|
}
|
|
4263
|
-
const m = t.$handle.loadFetchVar(Y(a), d, n), $ =
|
|
4263
|
+
const m = t.$handle.loadFetchVar(Y(a), d, n), $ = U(v({
|
|
4264
4264
|
headers: {}
|
|
4265
4265
|
}, m), {
|
|
4266
4266
|
onSuccess(_, O) {
|
|
@@ -4501,7 +4501,7 @@ function Wt(t) {
|
|
|
4501
4501
|
}
|
|
4502
4502
|
function pe() {
|
|
4503
4503
|
const c = Me(...arguments);
|
|
4504
|
-
c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop :
|
|
4504
|
+
c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(v({}, c.prop), {
|
|
4505
4505
|
name: c.id
|
|
4506
4506
|
}));
|
|
4507
4507
|
}
|
|
@@ -4532,7 +4532,7 @@ function Wt(t) {
|
|
|
4532
4532
|
function S() {
|
|
4533
4533
|
return Zr(Be, e, i);
|
|
4534
4534
|
}
|
|
4535
|
-
function
|
|
4535
|
+
function q() {
|
|
4536
4536
|
return Ne;
|
|
4537
4537
|
}
|
|
4538
4538
|
function ge(c, g) {
|
|
@@ -4568,7 +4568,7 @@ function Wt(t) {
|
|
|
4568
4568
|
const y = n[c] || {}, b = y.parsers || {};
|
|
4569
4569
|
g.parsers && Object.keys(g.parsers).forEach((w) => {
|
|
4570
4570
|
b[w] = je(g.parsers[w], we);
|
|
4571
|
-
}), g.name = c, n[c] =
|
|
4571
|
+
}), g.name = c, n[c] = U(v(v({}, y), g), { parsers: b });
|
|
4572
4572
|
}
|
|
4573
4573
|
function ke(c) {
|
|
4574
4574
|
c && Object.keys(H).forEach((g) => {
|
|
@@ -4853,7 +4853,7 @@ function Wt(t) {
|
|
|
4853
4853
|
setFormula: Zt,
|
|
4854
4854
|
setDriver: Qt,
|
|
4855
4855
|
register: pe,
|
|
4856
|
-
$vnode:
|
|
4856
|
+
$vnode: q,
|
|
4857
4857
|
parser: me,
|
|
4858
4858
|
use: ge,
|
|
4859
4859
|
factory: zt,
|
|
@@ -4884,7 +4884,7 @@ function Wt(t) {
|
|
|
4884
4884
|
};
|
|
4885
4885
|
ot(w), g.prototype.$formCreate = w;
|
|
4886
4886
|
const V = S();
|
|
4887
|
-
g.component(V.name, V), g.component("FcFragment",
|
|
4887
|
+
g.component(V.name, V), g.component("FcFragment", q()), o.forEach((R) => {
|
|
4888
4888
|
F(() => R(c, g));
|
|
4889
4889
|
});
|
|
4890
4890
|
}
|
|
@@ -5145,7 +5145,7 @@ const on = {
|
|
|
5145
5145
|
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;
|
|
5146
5146
|
delete r.wrap.class, delete r.wrap.title;
|
|
5147
5147
|
const f = (h.Undef(r.wrap.show) ? !t.input : Z(r.wrap.show)) ? e : this.$r(Q([r.wrap, {
|
|
5148
|
-
props:
|
|
5148
|
+
props: U(v({
|
|
5149
5149
|
labelWidth: o === void 0 ? o : Et(o),
|
|
5150
5150
|
label: n ? r.title.title : void 0
|
|
5151
5151
|
}, Ge(r.wrap || {})), {
|
|
@@ -5471,7 +5471,7 @@ function pn(t) {
|
|
|
5471
5471
|
function mn() {
|
|
5472
5472
|
return Wt({
|
|
5473
5473
|
ui: "element-ui",
|
|
5474
|
-
version: "2.7.
|
|
5474
|
+
version: "2.7.30",
|
|
5475
5475
|
manager: on,
|
|
5476
5476
|
extendApi: hn,
|
|
5477
5477
|
install: pn,
|