@form-create/view-design 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 +72 -67
- package/dist/form-create.js +3 -3
- package/dist/form-create.min.js +3 -3
- package/package.json +4 -4
package/dist/form-create.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* FormCreate 低代码表单渲染器
|
|
3
|
-
* @form-create/view-design v2.7.
|
|
3
|
+
* @form-create/view-design 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/
|
|
@@ -18,7 +18,7 @@ var lt = (t, e, r) => e in t ? or(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
18
18
|
for (var r of at(e))
|
|
19
19
|
fr.call(e, r) && lt(t, r, e[r]);
|
|
20
20
|
return t;
|
|
21
|
-
},
|
|
21
|
+
}, U = (t, e) => ar(t, lr(e));
|
|
22
22
|
import $e, { getCurrentInstance as cr, provide as hr, inject as dr, toRefs as ut, reactive as ie, onBeforeMount as pr, watch as T, onMounted as mr, onBeforeUnmount as gr, onUpdated as yr, nextTick as V, markRaw as ge, computed as ye, toRef as De, ref as $r } from "vue";
|
|
23
23
|
function br(t) {
|
|
24
24
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -702,7 +702,7 @@ function ft(t) {
|
|
|
702
702
|
};
|
|
703
703
|
}
|
|
704
704
|
function ct(t) {
|
|
705
|
-
return
|
|
705
|
+
return U(_({}, t), {
|
|
706
706
|
file: t,
|
|
707
707
|
value: t
|
|
708
708
|
});
|
|
@@ -921,7 +921,7 @@ function k(t, e, r) {
|
|
|
921
921
|
function re(t, e) {
|
|
922
922
|
($e.del || $e.delete)(t, e);
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function Oe(t, e = {}, r) {
|
|
925
925
|
let i = !1;
|
|
926
926
|
for (let s in e)
|
|
927
927
|
if (Object.prototype.hasOwnProperty.call(e, s)) {
|
|
@@ -939,14 +939,14 @@ function we(t, e = {}, r) {
|
|
|
939
939
|
}
|
|
940
940
|
else
|
|
941
941
|
o && k(t, s, {});
|
|
942
|
-
t[s] =
|
|
942
|
+
t[s] = Oe(t[s], n, r);
|
|
943
943
|
} else
|
|
944
944
|
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));
|
|
945
945
|
}
|
|
946
946
|
return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
|
|
947
947
|
}
|
|
948
948
|
function G(t) {
|
|
949
|
-
return
|
|
949
|
+
return Oe({}, { value: t }).value;
|
|
950
950
|
}
|
|
951
951
|
const Br = Object.assign || function(t) {
|
|
952
952
|
for (let e, r = 1; r < arguments.length; r++)
|
|
@@ -992,8 +992,8 @@ function qr(t) {
|
|
|
992
992
|
Ye(t.toString()), console.error(t);
|
|
993
993
|
}
|
|
994
994
|
const Ke = "[[FORM-CREATE-PREFIX-", Xe = "-FORM-CREATE-SUFFIX]]";
|
|
995
|
-
function
|
|
996
|
-
return JSON.stringify(
|
|
995
|
+
function we(t, e) {
|
|
996
|
+
return JSON.stringify(Oe(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
|
|
997
997
|
if (!(i && i._isVue === !0)) {
|
|
998
998
|
if (typeof i != "function")
|
|
999
999
|
return i;
|
|
@@ -1146,7 +1146,7 @@ const Gr = "fcGroup", Hr = {
|
|
|
1146
1146
|
const s = i.$f.formData();
|
|
1147
1147
|
if (t === e)
|
|
1148
1148
|
i.$f.deferSyncValue(() => {
|
|
1149
|
-
|
|
1149
|
+
Oe(i.rule, t), i.$f.setValue(s);
|
|
1150
1150
|
}, !0);
|
|
1151
1151
|
else {
|
|
1152
1152
|
const n = i.$f.formData();
|
|
@@ -1513,7 +1513,7 @@ function Bt(t, e) {
|
|
|
1513
1513
|
return Tt([t], e || !1)[0];
|
|
1514
1514
|
}
|
|
1515
1515
|
function Tt(t, e) {
|
|
1516
|
-
return
|
|
1516
|
+
return Oe([], [...t], e || !1);
|
|
1517
1517
|
}
|
|
1518
1518
|
function Q(t, e) {
|
|
1519
1519
|
return x(Array.isArray(e) ? e : [e], t, { array: et, normal: tt }), t;
|
|
@@ -1562,7 +1562,7 @@ function Zr(t, e) {
|
|
|
1562
1562
|
} else
|
|
1563
1563
|
return xe(t, e);
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1565
|
+
function Re() {
|
|
1566
1566
|
const t = {}, e = (r) => r || "default";
|
|
1567
1567
|
return {
|
|
1568
1568
|
setSlot(r, i) {
|
|
@@ -1598,7 +1598,7 @@ function Se() {
|
|
|
1598
1598
|
}
|
|
1599
1599
|
};
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1601
|
+
function Ee(t, e) {
|
|
1602
1602
|
return Object.setPrototypeOf(t, e), t;
|
|
1603
1603
|
}
|
|
1604
1604
|
const dt = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? Number(e) : e, he = {
|
|
@@ -1667,12 +1667,12 @@ function Mt(t) {
|
|
|
1667
1667
|
}
|
|
1668
1668
|
return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
|
|
1669
1669
|
}
|
|
1670
|
-
const
|
|
1670
|
+
const je = (t, e) => {
|
|
1671
1671
|
if (!(!t || t === e || !t.$props)) {
|
|
1672
1672
|
if (t.$props.formCreateInject)
|
|
1673
1673
|
return t.$props.formCreateInject;
|
|
1674
1674
|
if (t.$parent)
|
|
1675
|
-
return
|
|
1675
|
+
return je(t.$parent, e);
|
|
1676
1676
|
}
|
|
1677
1677
|
};
|
|
1678
1678
|
function Qr(t, e, r) {
|
|
@@ -1745,14 +1745,14 @@ function Qr(t, e, r) {
|
|
|
1745
1745
|
updateValue: JSON.stringify(u.value || {})
|
|
1746
1746
|
}), m = new t(n), y = m.api(), v = p.value, E = () => {
|
|
1747
1747
|
if (o) {
|
|
1748
|
-
const F =
|
|
1748
|
+
const F = je(n, o);
|
|
1749
1749
|
if (F) {
|
|
1750
1750
|
let R;
|
|
1751
1751
|
v ? (R = H(F.getSubForm()), R.push(y)) : R = y, F.subForm(R);
|
|
1752
1752
|
}
|
|
1753
1753
|
}
|
|
1754
1754
|
}, Y = () => {
|
|
1755
|
-
const F =
|
|
1755
|
+
const F = je(n, o);
|
|
1756
1756
|
if (F)
|
|
1757
1757
|
if (v) {
|
|
1758
1758
|
const R = H(F.getSubForm()), N = R.indexOf(y);
|
|
@@ -1798,20 +1798,20 @@ function Qr(t, e, r) {
|
|
|
1798
1798
|
}), T(() => [s.disabled, s.preview], () => {
|
|
1799
1799
|
y.refresh();
|
|
1800
1800
|
}), T(u, (F) => {
|
|
1801
|
-
|
|
1801
|
+
we(F || {}) !== d.updateValue && (y.config.forceCoverValue ? y.coverValue(F || {}) : y.setValue(F || {}));
|
|
1802
1802
|
}, { deep: !0, flush: "post" }), T(() => s.index, () => {
|
|
1803
1803
|
y.coverValue({}), m.$handle.updateAppendData(), V(() => {
|
|
1804
1804
|
V(() => {
|
|
1805
1805
|
y.clearValidateState();
|
|
1806
1806
|
});
|
|
1807
1807
|
});
|
|
1808
|
-
}, { flush: "sync" }),
|
|
1808
|
+
}, { flush: "sync" }), U(_({
|
|
1809
1809
|
fc: ge(m),
|
|
1810
1810
|
parent: o && ge(o),
|
|
1811
1811
|
top: ge(a),
|
|
1812
1812
|
fapi: ge(y)
|
|
1813
1813
|
}, ut(d)), {
|
|
1814
|
-
getGroupInject: () =>
|
|
1814
|
+
getGroupInject: () => je(n, o),
|
|
1815
1815
|
refresh() {
|
|
1816
1816
|
++d.unique;
|
|
1817
1817
|
},
|
|
@@ -1820,7 +1820,7 @@ function Qr(t, e, r) {
|
|
|
1820
1820
|
},
|
|
1821
1821
|
updateValue(F) {
|
|
1822
1822
|
if (d.destroyed) return;
|
|
1823
|
-
const R =
|
|
1823
|
+
const R = we(F);
|
|
1824
1824
|
d.updateValue !== R && (d.updateValue = R, n.$emit("update:value", F), V(() => {
|
|
1825
1825
|
Le(), o ? f.value || de() : (B(), de());
|
|
1826
1826
|
}));
|
|
@@ -1933,7 +1933,7 @@ function Ht(t) {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
function yt(t, e, r) {
|
|
1935
1935
|
return new Promise((i, s) => {
|
|
1936
|
-
(e || Ht)(
|
|
1936
|
+
(e || Ht)(U(_({}, t), {
|
|
1937
1937
|
onSuccess(n) {
|
|
1938
1938
|
let o = (l) => l;
|
|
1939
1939
|
const a = W(t.parse);
|
|
@@ -2285,7 +2285,7 @@ function ri(t) {
|
|
|
2285
2285
|
return O(() => s.method(n, o)(...a));
|
|
2286
2286
|
},
|
|
2287
2287
|
toJson(n) {
|
|
2288
|
-
return
|
|
2288
|
+
return we(s.rule, n);
|
|
2289
2289
|
},
|
|
2290
2290
|
trigger(n, o, ...a) {
|
|
2291
2291
|
const l = s.el(n);
|
|
@@ -2476,7 +2476,7 @@ function ii(t) {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
});
|
|
2478
2478
|
}
|
|
2479
|
-
function
|
|
2479
|
+
function q(t) {
|
|
2480
2480
|
const e = t.replace(/(-[a-z])/g, function(r) {
|
|
2481
2481
|
return r.replace("-", "").toLocaleUpperCase();
|
|
2482
2482
|
});
|
|
@@ -2503,7 +2503,7 @@ function ni(t) {
|
|
|
2503
2503
|
if (!this.vm.isShow)
|
|
2504
2504
|
return;
|
|
2505
2505
|
this.$manager.beforeRender();
|
|
2506
|
-
const e =
|
|
2506
|
+
const e = Re();
|
|
2507
2507
|
return this.sort.forEach((r) => {
|
|
2508
2508
|
this.renderSlot(e, this.$handle.ctxs[r]);
|
|
2509
2509
|
}), this.$manager.render(e);
|
|
@@ -2720,7 +2720,7 @@ function ni(t) {
|
|
|
2720
2720
|
},
|
|
2721
2721
|
renderChildren(e, r, i) {
|
|
2722
2722
|
if (!h.trueArray(e)) return [];
|
|
2723
|
-
const s =
|
|
2723
|
+
const s = Re();
|
|
2724
2724
|
return e.map((n) => {
|
|
2725
2725
|
if (n) {
|
|
2726
2726
|
if (h.String(n) || h.Number(n)) return s.setSlot(null, i ? this.renderRule({
|
|
@@ -2746,7 +2746,7 @@ function ni(t) {
|
|
|
2746
2746
|
},
|
|
2747
2747
|
createRuleVnode(e, r, i) {
|
|
2748
2748
|
this.force = i !== !1, this.tmpInput = r;
|
|
2749
|
-
const s =
|
|
2749
|
+
const s = Re();
|
|
2750
2750
|
return this.renderSlot(s, e, e.parent), this.force = !1, this.tmpInput = null, s.getSlots();
|
|
2751
2751
|
},
|
|
2752
2752
|
renderRule(e, r, i) {
|
|
@@ -2756,12 +2756,12 @@ function ni(t) {
|
|
|
2756
2756
|
if (i)
|
|
2757
2757
|
s = e.type;
|
|
2758
2758
|
else if (s = e.is, e.type) {
|
|
2759
|
-
s =
|
|
2759
|
+
s = q(e.type);
|
|
2760
2760
|
const a = this.vNode.aliasMap[s];
|
|
2761
|
-
a && (s =
|
|
2761
|
+
a && (s = q(a));
|
|
2762
2762
|
}
|
|
2763
2763
|
if (!s) return;
|
|
2764
|
-
const n =
|
|
2764
|
+
const n = Re();
|
|
2765
2765
|
h.trueArray(e.children) && e.children.forEach((a) => {
|
|
2766
2766
|
a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
|
|
2767
2767
|
});
|
|
@@ -3056,7 +3056,7 @@ C(Jt.prototype, {
|
|
|
3056
3056
|
this.key = Pe(), t && this.parent && this.parent.updateKey(t);
|
|
3057
3057
|
},
|
|
3058
3058
|
updateType() {
|
|
3059
|
-
this.originType = this.rule.type, this.type =
|
|
3059
|
+
this.originType = this.rule.type, this.type = q(this.rule.type), this.trueType = this.$handle.getType(this.originType);
|
|
3060
3060
|
},
|
|
3061
3061
|
setParser(t) {
|
|
3062
3062
|
this.parser = t, t.init(this);
|
|
@@ -3206,7 +3206,7 @@ function ci(t) {
|
|
|
3206
3206
|
} else if (!f.check(this)) {
|
|
3207
3207
|
if (bt(f))
|
|
3208
3208
|
return;
|
|
3209
|
-
e[a] = o = o._clone ? o._clone() : Dt(
|
|
3209
|
+
e[a] = o = o._clone ? o._clone() : Dt(we(o)), f = null, p = !0;
|
|
3210
3210
|
}
|
|
3211
3211
|
}
|
|
3212
3212
|
if (f)
|
|
@@ -3239,7 +3239,7 @@ function ci(t) {
|
|
|
3239
3239
|
return (he[l.condition || "=="] || he["=="])(p, l.value);
|
|
3240
3240
|
};
|
|
3241
3241
|
if (!h.trueArray(l.rule)) continue;
|
|
3242
|
-
const f =
|
|
3242
|
+
const f = U(_({}, l), {
|
|
3243
3243
|
valid: O(() => u(e.rule.value, s)),
|
|
3244
3244
|
ctrl: pi(e, l.rule),
|
|
3245
3245
|
isHidden: h.String(l.rule[0])
|
|
@@ -3430,7 +3430,7 @@ function mi(t) {
|
|
|
3430
3430
|
function vt(t, e) {
|
|
3431
3431
|
return typeof e == "function" ? "" + e : e;
|
|
3432
3432
|
}
|
|
3433
|
-
const
|
|
3433
|
+
const Ce = {
|
|
3434
3434
|
init(t) {
|
|
3435
3435
|
},
|
|
3436
3436
|
toFormValue(t, e) {
|
|
@@ -3481,18 +3481,18 @@ function yi(t) {
|
|
|
3481
3481
|
getParser(e) {
|
|
3482
3482
|
const r = this.fc.parsers, i = this.fc.renderDriver;
|
|
3483
3483
|
if (i) {
|
|
3484
|
-
const s = i.parsers || {}, n = s[e.originType] || s[
|
|
3484
|
+
const s = i.parsers || {}, n = s[e.originType] || s[q(e.type)] || s[e.trueType];
|
|
3485
3485
|
if (n)
|
|
3486
3486
|
return n;
|
|
3487
3487
|
}
|
|
3488
|
-
return r[e.originType] || r[
|
|
3488
|
+
return r[e.originType] || r[q(e.type)] || r[e.trueType] || Ce;
|
|
3489
3489
|
},
|
|
3490
3490
|
bindParser(e) {
|
|
3491
3491
|
e.setParser(this.getParser(e));
|
|
3492
3492
|
},
|
|
3493
3493
|
getType(e) {
|
|
3494
|
-
const r = this.fc.CreateNode.aliasMap, i = r[e] || r[
|
|
3495
|
-
return
|
|
3494
|
+
const r = this.fc.CreateNode.aliasMap, i = r[e] || r[q(e)] || e;
|
|
3495
|
+
return q(i);
|
|
3496
3496
|
},
|
|
3497
3497
|
noWatch(e) {
|
|
3498
3498
|
this.noWatchFn || (this.noWatchFn = e), O(e), this.noWatchFn === e && (this.noWatchFn = null);
|
|
@@ -3792,7 +3792,7 @@ function $i(t) {
|
|
|
3792
3792
|
this.fc.targetFormDriver(e, this.api, this.fc), this.vm.$emit(e, this.api), this.emitEvent(e, this.api);
|
|
3793
3793
|
},
|
|
3794
3794
|
emitEvent(e, ...r) {
|
|
3795
|
-
const i = this.options[e] || this.options[
|
|
3795
|
+
const i = this.options[e] || this.options[q("on-" + e)];
|
|
3796
3796
|
if (i) {
|
|
3797
3797
|
const s = W(i);
|
|
3798
3798
|
h.Function(s) && O(() => s(...r));
|
|
@@ -3803,8 +3803,9 @@ function $i(t) {
|
|
|
3803
3803
|
var l, u, f, p;
|
|
3804
3804
|
let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, m) => {
|
|
3805
3805
|
d && (d = Array.isArray(d) ? d : [d], d.forEach((y) => {
|
|
3806
|
-
O(() => y(
|
|
3807
|
-
args: Object.values(i)
|
|
3806
|
+
O(() => y(U(_({
|
|
3807
|
+
args: Object.values(i || {})
|
|
3808
|
+
}, i || {}), {
|
|
3808
3809
|
self: e.rule,
|
|
3809
3810
|
rule: e.rule,
|
|
3810
3811
|
parent: m == null ? void 0 : m.rule,
|
|
@@ -4186,7 +4187,7 @@ const Fi = function(t) {
|
|
|
4186
4187
|
t.clearProp(), r.clearValidateState([e.field]);
|
|
4187
4188
|
else {
|
|
4188
4189
|
h.Object(i) || (i = { method: i });
|
|
4189
|
-
const s = i.method, n =
|
|
4190
|
+
const s = i.method, n = U(_({}, i), {
|
|
4190
4191
|
validator(...o) {
|
|
4191
4192
|
const a = Z(e);
|
|
4192
4193
|
if (a)
|
|
@@ -4239,7 +4240,7 @@ const Fi = function(t) {
|
|
|
4239
4240
|
i._fn[s.id] = t.watchLoadData(ne((p, d) => {
|
|
4240
4241
|
if (d && a.watch === !1)
|
|
4241
4242
|
return i._fn[s.id]();
|
|
4242
|
-
const m = t.$handle.loadFetchVar(G(a), p, n), y =
|
|
4243
|
+
const m = t.$handle.loadFetchVar(G(a), p, n), y = U(_({
|
|
4243
4244
|
headers: {}
|
|
4244
4245
|
}, m), {
|
|
4245
4246
|
onSuccess(v, E) {
|
|
@@ -4480,18 +4481,22 @@ function Xt(t) {
|
|
|
4480
4481
|
}
|
|
4481
4482
|
function de() {
|
|
4482
4483
|
const c = qe(...arguments);
|
|
4483
|
-
c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop :
|
|
4484
|
+
c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(_({}, c.prop), {
|
|
4484
4485
|
name: c.id
|
|
4485
4486
|
}));
|
|
4486
4487
|
}
|
|
4487
4488
|
function Le(c) {
|
|
4488
4489
|
y.use(c);
|
|
4489
4490
|
}
|
|
4490
|
-
function pe() {
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4491
|
+
function pe(c) {
|
|
4492
|
+
if (arguments.length === 0)
|
|
4493
|
+
return Ce;
|
|
4494
|
+
if (typeof c == "string" && arguments.length === 1)
|
|
4495
|
+
return r[q(c)];
|
|
4496
|
+
const g = qe(...arguments);
|
|
4497
|
+
if (!g.id || !g.prop) return Ce;
|
|
4498
|
+
const $ = q(g.id), b = g.prop, w = b.merge === !0 ? r[$] : void 0;
|
|
4499
|
+
r[$] = Ee(b, w || Ce), f[$] = P($), b.maker && C(f, b.maker);
|
|
4495
4500
|
}
|
|
4496
4501
|
function F(c, g) {
|
|
4497
4502
|
let $;
|
|
@@ -4499,9 +4504,9 @@ function Xt(t) {
|
|
|
4499
4504
|
if ($ = c, g === void 0)
|
|
4500
4505
|
return ["form-create", "formcreate"].indexOf($) > -1 ? R() : e[$];
|
|
4501
4506
|
} else
|
|
4502
|
-
$ =
|
|
4507
|
+
$ = q(c.name), g = c;
|
|
4503
4508
|
if (!$ || !g) return;
|
|
4504
|
-
const b =
|
|
4509
|
+
const b = q($);
|
|
4505
4510
|
e[$] = g, e[b] = g, delete y.aliasMap[$], delete y.aliasMap[b], delete r[$], delete r[b], g.formCreateParser && pe($, g.formCreateParser);
|
|
4506
4511
|
}
|
|
4507
4512
|
function R() {
|
|
@@ -4518,7 +4523,7 @@ function Xt(t) {
|
|
|
4518
4523
|
const w = b.$refs.fc.formCreate;
|
|
4519
4524
|
return w.$parent = $, qi(w.options).appendChild(b.$el), w.api();
|
|
4520
4525
|
}
|
|
4521
|
-
|
|
4526
|
+
Ee(z, E);
|
|
4522
4527
|
function xt(c) {
|
|
4523
4528
|
let g = _({}, t);
|
|
4524
4529
|
return c ? g.inherit = {
|
|
@@ -4542,10 +4547,10 @@ function Xt(t) {
|
|
|
4542
4547
|
function er(c, g) {
|
|
4543
4548
|
const $ = n[c] || {}, b = $.parsers || {};
|
|
4544
4549
|
g.parsers && Object.keys(g.parsers).forEach((w) => {
|
|
4545
|
-
b[w] =
|
|
4546
|
-
}), g.name = c, n[c] =
|
|
4550
|
+
b[w] = Ee(g.parsers[w], Ce);
|
|
4551
|
+
}), g.name = c, n[c] = U(_(_({}, $), g), { parsers: b });
|
|
4547
4552
|
}
|
|
4548
|
-
function
|
|
4553
|
+
function ke(c) {
|
|
4549
4554
|
c && Object.keys(M).forEach((g) => {
|
|
4550
4555
|
(Array.isArray(M[g]) ? M[g] : [M[g]]).forEach((b) => {
|
|
4551
4556
|
b.bus.$emit("$loadData." + c);
|
|
@@ -4553,9 +4558,9 @@ function Xt(t) {
|
|
|
4553
4558
|
});
|
|
4554
4559
|
}
|
|
4555
4560
|
function Be(c, g) {
|
|
4556
|
-
se(m, c, g),
|
|
4561
|
+
se(m, c, g), ke(c);
|
|
4557
4562
|
}
|
|
4558
|
-
function
|
|
4563
|
+
function Fe(c, g) {
|
|
4559
4564
|
const $ = (...b) => O(() => g(...b));
|
|
4560
4565
|
$._driver = !0, Be(c, $);
|
|
4561
4566
|
}
|
|
@@ -4573,7 +4578,7 @@ function Xt(t) {
|
|
|
4573
4578
|
l.push(c);
|
|
4574
4579
|
}
|
|
4575
4580
|
function rr(c) {
|
|
4576
|
-
delete m[c],
|
|
4581
|
+
delete m[c], ke(c);
|
|
4577
4582
|
}
|
|
4578
4583
|
function ir(c, g) {
|
|
4579
4584
|
a.push({ name: c, callback: g });
|
|
@@ -4599,7 +4604,7 @@ function Xt(t) {
|
|
|
4599
4604
|
get: null,
|
|
4600
4605
|
drivers: n,
|
|
4601
4606
|
renderDriver: null,
|
|
4602
|
-
refreshData:
|
|
4607
|
+
refreshData: ke,
|
|
4603
4608
|
loadData: m,
|
|
4604
4609
|
CreateNode: y,
|
|
4605
4610
|
bus: new ji(),
|
|
@@ -4817,10 +4822,10 @@ function Xt(t) {
|
|
|
4817
4822
|
isMobile: d,
|
|
4818
4823
|
extendApi: tr,
|
|
4819
4824
|
getData: st,
|
|
4820
|
-
setDataDriver:
|
|
4825
|
+
setDataDriver: Fe,
|
|
4821
4826
|
setData: Be,
|
|
4822
4827
|
removeData: rr,
|
|
4823
|
-
refreshData:
|
|
4828
|
+
refreshData: ke,
|
|
4824
4829
|
maker: f,
|
|
4825
4830
|
component: F,
|
|
4826
4831
|
directive: B,
|
|
@@ -4840,7 +4845,7 @@ function Xt(t) {
|
|
|
4840
4845
|
$form: R,
|
|
4841
4846
|
parseFn: W,
|
|
4842
4847
|
parseJson: Dt,
|
|
4843
|
-
toJson:
|
|
4848
|
+
toJson: we,
|
|
4844
4849
|
useApp: I,
|
|
4845
4850
|
getApi: Y,
|
|
4846
4851
|
on: ir
|
|
@@ -4865,12 +4870,12 @@ function Xt(t) {
|
|
|
4865
4870
|
}
|
|
4866
4871
|
});
|
|
4867
4872
|
}
|
|
4868
|
-
if (ot(E), nr(E),
|
|
4873
|
+
if (ot(E), nr(E), Fe("$cookie", Li), Fe("$localStorage", Bi), Fe("$sessionStorage", Ti), y.use({ fragment: "fcFragment" }), t.install && z.use(t), pe(Ai), t.inherit) {
|
|
4869
4874
|
const c = t.inherit;
|
|
4870
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(v, c.formulas);
|
|
4871
4876
|
}
|
|
4872
|
-
const
|
|
4873
|
-
return
|
|
4877
|
+
const Se = R();
|
|
4878
|
+
return Ee(Se, E), Object.defineProperties(Se, {
|
|
4874
4879
|
fetch: {
|
|
4875
4880
|
get() {
|
|
4876
4881
|
return E.fetch;
|
|
@@ -4879,7 +4884,7 @@ function Xt(t) {
|
|
|
4879
4884
|
E.fetch = c;
|
|
4880
4885
|
}
|
|
4881
4886
|
}
|
|
4882
|
-
}),
|
|
4887
|
+
}), Se.util = E, Se;
|
|
4883
4888
|
}
|
|
4884
4889
|
function Ue(t) {
|
|
4885
4890
|
if (h.Date(t))
|
|
@@ -5122,7 +5127,7 @@ const rn = {
|
|
|
5122
5127
|
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;
|
|
5123
5128
|
delete r.wrap.class, delete r.wrap.title;
|
|
5124
5129
|
const f = X(r.wrap.show) ? e : this.$r(x([r.wrap, {
|
|
5125
|
-
props:
|
|
5130
|
+
props: U(_({
|
|
5126
5131
|
labelWidth: o
|
|
5127
5132
|
}, ze(r.wrap || {})), {
|
|
5128
5133
|
prop: t.id,
|
|
@@ -5442,7 +5447,7 @@ function dn(t) {
|
|
|
5442
5447
|
function pn() {
|
|
5443
5448
|
return Xt({
|
|
5444
5449
|
ui: "view-design",
|
|
5445
|
-
version: "2.7.
|
|
5450
|
+
version: "2.7.22",
|
|
5446
5451
|
manager: rn,
|
|
5447
5452
|
install: dn,
|
|
5448
5453
|
extendApi: cn,
|