@morghulis/core 1.0.33 → 1.0.35
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.
|
@@ -1792,27 +1792,27 @@ var Ec = Object.create, qa = Object.defineProperty, xc = Object.getOwnPropertyDe
|
|
|
1792
1792
|
"¤": "tien te"
|
|
1793
1793
|
}
|
|
1794
1794
|
}, i = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), u = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), c = [".", "!", "~", "*", "'", "(", ")"].join(""), d = function(y, E) {
|
|
1795
|
-
var V = "-", D = "", C = "", A = !0,
|
|
1795
|
+
var V = "-", D = "", C = "", A = !0, P = {}, $, F, U, T, I, B, q, Z, de, ne, G, ae, oe, Ne, pe = "";
|
|
1796
1796
|
if (typeof y != "string")
|
|
1797
1797
|
return "";
|
|
1798
1798
|
if (typeof E == "string" && (V = E), q = r.en, Z = a.en, typeof E == "object") {
|
|
1799
|
-
$ = E.maintainCase || !1,
|
|
1800
|
-
|
|
1801
|
-
}),
|
|
1802
|
-
|
|
1803
|
-
}), Object.keys(
|
|
1799
|
+
$ = E.maintainCase || !1, P = E.custom && typeof E.custom == "object" ? E.custom : P, U = +E.truncate > 1 && E.truncate || !1, T = E.uric || !1, I = E.uricNoSlash || !1, B = E.mark || !1, A = !(E.symbols === !1 || E.lang === !1), V = E.separator || V, T && (pe += i), I && (pe += u), B && (pe += c), q = E.lang && r[E.lang] && A ? r[E.lang] : A ? r.en : {}, Z = E.lang && a[E.lang] ? a[E.lang] : E.lang === !1 || E.lang === !0 ? {} : a.en, E.titleCase && typeof E.titleCase.length == "number" && Array.prototype.toString.call(E.titleCase) ? (E.titleCase.forEach(function(me) {
|
|
1800
|
+
P[me + ""] = me + "";
|
|
1801
|
+
}), F = !0) : F = !!E.titleCase, E.custom && typeof E.custom.length == "number" && Array.prototype.toString.call(E.custom) && E.custom.forEach(function(me) {
|
|
1802
|
+
P[me + ""] = me + "";
|
|
1803
|
+
}), Object.keys(P).forEach(function(me) {
|
|
1804
1804
|
var He;
|
|
1805
|
-
me.length > 1 ? He = new RegExp("\\b" + g(me) + "\\b", "gi") : He = new RegExp(g(me), "gi"), y = y.replace(He,
|
|
1805
|
+
me.length > 1 ? He = new RegExp("\\b" + g(me) + "\\b", "gi") : He = new RegExp(g(me), "gi"), y = y.replace(He, P[me]);
|
|
1806
1806
|
});
|
|
1807
|
-
for (G in
|
|
1807
|
+
for (G in P)
|
|
1808
1808
|
pe += G;
|
|
1809
1809
|
}
|
|
1810
1810
|
for (pe += V, pe = g(pe), y = y.replace(/(^\s+|\s+$)/g, ""), oe = !1, Ne = !1, ne = 0, ae = y.length; ne < ae; ne++)
|
|
1811
|
-
G = y[ne], p(G,
|
|
1812
|
-
return
|
|
1811
|
+
G = y[ne], p(G, P) ? oe = !1 : Z[G] ? (G = oe && Z[G].match(/[A-Za-z0-9]/) ? " " + Z[G] : Z[G], oe = !1) : G in o ? (ne + 1 < ae && l.indexOf(y[ne + 1]) >= 0 ? (C += G, G = "") : Ne === !0 ? (G = s[C] + o[G], C = "") : G = oe && o[G].match(/[A-Za-z0-9]/) ? " " + o[G] : o[G], oe = !1, Ne = !1) : G in s ? (C += G, G = "", ne === ae - 1 && (G = s[C]), Ne = !0) : /* process symbol chars */ q[G] && !(T && i.indexOf(G) !== -1) && !(I && u.indexOf(G) !== -1) ? (G = oe || D.substr(-1).match(/[A-Za-z0-9]/) ? V + q[G] : q[G], G += y[ne + 1] !== void 0 && y[ne + 1].match(/[A-Za-z0-9]/) ? V : "", oe = !0) : (Ne === !0 ? (G = s[C] + G, C = "", Ne = !1) : oe && (/[A-Za-z0-9]/.test(G) || D.substr(-1).match(/A-Za-z0-9]/)) && (G = " " + G), oe = !1), D += G.replace(new RegExp("[^\\w\\s" + pe + "_-]", "g"), V);
|
|
1812
|
+
return F && (D = D.replace(/(\w)(\S*)/g, function(me, He, st) {
|
|
1813
1813
|
var vt = He.toUpperCase() + (st !== null ? st : "");
|
|
1814
|
-
return Object.keys(
|
|
1815
|
-
})), D = D.replace(/\s+/g, V).replace(new RegExp("\\" + V + "+", "g"), V).replace(new RegExp("(^\\" + V + "+|\\" + V + "+$)", "g"), ""), U && D.length > U && (de = D.charAt(U) === V, D = D.slice(0, U), de || (D = D.slice(0, D.lastIndexOf(V)))), !$ && !
|
|
1814
|
+
return Object.keys(P).indexOf(vt.toLowerCase()) < 0 ? vt : vt.toLowerCase();
|
|
1815
|
+
})), D = D.replace(/\s+/g, V).replace(new RegExp("\\" + V + "+", "g"), V).replace(new RegExp("(^\\" + V + "+|\\" + V + "+$)", "g"), ""), U && D.length > U && (de = D.charAt(U) === V, D = D.slice(0, U), de || (D = D.slice(0, D.lastIndexOf(V)))), !$ && !F && (D = D.toLowerCase()), D;
|
|
1816
1816
|
}, _ = function(y) {
|
|
1817
1817
|
return function(V) {
|
|
1818
1818
|
return d(V, y);
|
|
@@ -4268,7 +4268,7 @@ function go(e, t, n = {}, o, l, s) {
|
|
|
4268
4268
|
getters: {},
|
|
4269
4269
|
state: [],
|
|
4270
4270
|
hotState: v
|
|
4271
|
-
}),
|
|
4271
|
+
}), P = {
|
|
4272
4272
|
_p: o,
|
|
4273
4273
|
// _s: scope,
|
|
4274
4274
|
$id: e,
|
|
@@ -4292,10 +4292,10 @@ function go(e, t, n = {}, o, l, s) {
|
|
|
4292
4292
|
_customProperties: it(/* @__PURE__ */ new Set())
|
|
4293
4293
|
// devtools custom properties
|
|
4294
4294
|
},
|
|
4295
|
-
|
|
4295
|
+
P
|
|
4296
4296
|
// must be added later
|
|
4297
4297
|
// setupStore
|
|
4298
|
-
) :
|
|
4298
|
+
) : P);
|
|
4299
4299
|
o._s.set(e, $);
|
|
4300
4300
|
const U = (o._a && o._a.runWithContext || xp)(() => o._e.run(() => (a = Ia()).run(() => t({ action: C }))));
|
|
4301
4301
|
for (const T in U) {
|
|
@@ -5768,8 +5768,8 @@ const er = (e) => {
|
|
|
5768
5768
|
}, y.onabort = function() {
|
|
5769
5769
|
y && (o(new ee("Request aborted", ee.ECONNABORTED, e, y)), y = null);
|
|
5770
5770
|
}, y.onerror = function(C) {
|
|
5771
|
-
const A = C && C.message ? C.message : "Network Error",
|
|
5772
|
-
|
|
5771
|
+
const A = C && C.message ? C.message : "Network Error", P = new ee(A, ee.ERR_NETWORK, e, y);
|
|
5772
|
+
P.event = C || null, o(P), y = null;
|
|
5773
5773
|
}, y.ontimeout = function() {
|
|
5774
5774
|
let C = l.timeout ? "timeout of " + l.timeout + "ms exceeded" : "timeout exceeded";
|
|
5775
5775
|
const A = l.transitional || Gs;
|
|
@@ -5938,9 +5938,9 @@ const er = (e) => {
|
|
|
5938
5938
|
cancelToken: D,
|
|
5939
5939
|
timeout: C,
|
|
5940
5940
|
onDownloadProgress: A,
|
|
5941
|
-
onUploadProgress:
|
|
5941
|
+
onUploadProgress: P,
|
|
5942
5942
|
responseType: $,
|
|
5943
|
-
headers:
|
|
5943
|
+
headers: F,
|
|
5944
5944
|
withCredentials: U = "same-origin",
|
|
5945
5945
|
fetchOptions: T
|
|
5946
5946
|
} = er(p), I = t || fetch;
|
|
@@ -5951,16 +5951,16 @@ const er = (e) => {
|
|
|
5951
5951
|
});
|
|
5952
5952
|
let de;
|
|
5953
5953
|
try {
|
|
5954
|
-
if (
|
|
5954
|
+
if (P && u && y !== "get" && y !== "head" && (de = await g(F, E)) !== 0) {
|
|
5955
5955
|
let pe = new n(v, {
|
|
5956
5956
|
method: "POST",
|
|
5957
5957
|
body: E,
|
|
5958
5958
|
duplex: "half"
|
|
5959
5959
|
}), me;
|
|
5960
|
-
if (N.isFormData(E) && (me = pe.headers.get("content-type")) &&
|
|
5960
|
+
if (N.isFormData(E) && (me = pe.headers.get("content-type")) && F.setContentType(me), pe.body) {
|
|
5961
5961
|
const [He, st] = va(
|
|
5962
5962
|
de,
|
|
5963
|
-
Cn(ya(
|
|
5963
|
+
Cn(ya(P))
|
|
5964
5964
|
);
|
|
5965
5965
|
E = wa(pe.body, ka, He, st);
|
|
5966
5966
|
}
|
|
@@ -5970,7 +5970,7 @@ const er = (e) => {
|
|
|
5970
5970
|
...T,
|
|
5971
5971
|
signal: B,
|
|
5972
5972
|
method: y.toUpperCase(),
|
|
5973
|
-
headers:
|
|
5973
|
+
headers: F.normalize().toJSON(),
|
|
5974
5974
|
body: E,
|
|
5975
5975
|
duplex: "half",
|
|
5976
5976
|
credentials: ne ? U : void 0
|
|
@@ -6595,30 +6595,30 @@ function ym() {
|
|
|
6595
6595
|
})(), i = /* @__PURE__ */ (function() {
|
|
6596
6596
|
var p = ["Webkit", "O", "Moz", "ms"], v = {};
|
|
6597
6597
|
function y(C) {
|
|
6598
|
-
return C.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(A,
|
|
6599
|
-
return
|
|
6598
|
+
return C.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(A, P) {
|
|
6599
|
+
return P.toUpperCase();
|
|
6600
6600
|
});
|
|
6601
6601
|
}
|
|
6602
6602
|
function E(C) {
|
|
6603
6603
|
var A = document.body.style;
|
|
6604
6604
|
if (C in A) return C;
|
|
6605
|
-
for (var
|
|
6606
|
-
if (
|
|
6605
|
+
for (var P = p.length, $ = C.charAt(0).toUpperCase() + C.slice(1), F; P--; )
|
|
6606
|
+
if (F = p[P] + $, F in A) return F;
|
|
6607
6607
|
return C;
|
|
6608
6608
|
}
|
|
6609
6609
|
function V(C) {
|
|
6610
6610
|
return C = y(C), v[C] || (v[C] = E(C));
|
|
6611
6611
|
}
|
|
6612
|
-
function D(C, A,
|
|
6613
|
-
A = V(A), C.style[A] =
|
|
6612
|
+
function D(C, A, P) {
|
|
6613
|
+
A = V(A), C.style[A] = P;
|
|
6614
6614
|
}
|
|
6615
6615
|
return function(C, A) {
|
|
6616
|
-
var
|
|
6617
|
-
if (
|
|
6616
|
+
var P = arguments, $, F;
|
|
6617
|
+
if (P.length == 2)
|
|
6618
6618
|
for ($ in A)
|
|
6619
|
-
|
|
6619
|
+
F = A[$], F !== void 0 && A.hasOwnProperty($) && D(C, $, F);
|
|
6620
6620
|
else
|
|
6621
|
-
D(C,
|
|
6621
|
+
D(C, P[1], P[2]);
|
|
6622
6622
|
};
|
|
6623
6623
|
})();
|
|
6624
6624
|
function u(p, v) {
|
|
@@ -7132,7 +7132,7 @@ function Ae(e) {
|
|
|
7132
7132
|
const E = d[y] || {}, V = E.domain;
|
|
7133
7133
|
if (ge.DOMAINS.multiple.includes(V)) {
|
|
7134
7134
|
const D = `${y}_set`, C = v[D], { label: A } = E.refer;
|
|
7135
|
-
return C.map((
|
|
7135
|
+
return C.map((P) => P[A]).join(";");
|
|
7136
7136
|
} else if (ge.DOMAINS.referred.includes(V)) {
|
|
7137
7137
|
const D = y.replace("_id", ""), C = v[D], { label: A } = E.refer;
|
|
7138
7138
|
return C ? C[A] : null;
|
|
@@ -7554,38 +7554,38 @@ function Ho(e, t, n) {
|
|
|
7554
7554
|
}).catch(($) => s.value = $);
|
|
7555
7555
|
}
|
|
7556
7556
|
function C($) {
|
|
7557
|
-
s.value = null, new Promise((
|
|
7557
|
+
s.value = null, new Promise((F, U) => {
|
|
7558
7558
|
v.search(t.value, p.value).then((T) => {
|
|
7559
7559
|
const I = e.value.beforeLoad;
|
|
7560
|
-
I ? I(T, o.value).then((B) => B ?
|
|
7560
|
+
I ? I(T, o.value).then((B) => B ? F(T) : C($)) : F(T);
|
|
7561
7561
|
});
|
|
7562
|
-
}).then((
|
|
7563
|
-
l.value =
|
|
7564
|
-
}).catch((
|
|
7562
|
+
}).then((F) => {
|
|
7563
|
+
l.value = F, y && n($ || []);
|
|
7564
|
+
}).catch((F) => s.value = F.message);
|
|
7565
7565
|
}
|
|
7566
7566
|
J(() => ({
|
|
7567
7567
|
db: a.value.db,
|
|
7568
7568
|
entity: a.value.entity,
|
|
7569
7569
|
code: a.value.code
|
|
7570
|
-
}), ($,
|
|
7571
|
-
const U = ve($, ["db", "entity"]), T = ve(
|
|
7572
|
-
|
|
7570
|
+
}), ($, F) => {
|
|
7571
|
+
const U = ve($, ["db", "entity"]), T = ve(F, ["db", "entity"]);
|
|
7572
|
+
F?.entity != null && !Ie(U, T) && (u.value.includes = {}, u.value.excludes = {}), D();
|
|
7573
7573
|
}, { deep: !0, immediate: !0 }), J(() => ({
|
|
7574
7574
|
conditions: p.value,
|
|
7575
7575
|
orders: t.value.orders,
|
|
7576
7576
|
page: t.value.page,
|
|
7577
7577
|
size: t.value.size
|
|
7578
|
-
}), ($,
|
|
7579
|
-
Ie($,
|
|
7578
|
+
}), ($, F) => {
|
|
7579
|
+
Ie($, F) || (!Ie($.conditions, F.conditions) && $.page != 1 ? t.value.page = 1 : C());
|
|
7580
7580
|
}, { deep: !0 });
|
|
7581
7581
|
function A($) {
|
|
7582
|
-
const
|
|
7583
|
-
v.delete_many(
|
|
7582
|
+
const F = $?.length ? [new Te({ id__in: $ })] : p.value;
|
|
7583
|
+
v.delete_many(F);
|
|
7584
7584
|
}
|
|
7585
|
-
function
|
|
7585
|
+
function P($) {
|
|
7586
7586
|
l.value.total + $.length > 200 && t.value.type === "table" && (t.value.size = 10);
|
|
7587
|
-
const
|
|
7588
|
-
v.save_many(
|
|
7587
|
+
const F = $.map((U) => ({ ...U, ...d.value }));
|
|
7588
|
+
v.save_many(F);
|
|
7589
7589
|
}
|
|
7590
7590
|
return {
|
|
7591
7591
|
model: l,
|
|
@@ -7602,7 +7602,7 @@ function Ho(e, t, n) {
|
|
|
7602
7602
|
init: D,
|
|
7603
7603
|
reload: C,
|
|
7604
7604
|
delete_many: A,
|
|
7605
|
-
save_many:
|
|
7605
|
+
save_many: P,
|
|
7606
7606
|
switching: i
|
|
7607
7607
|
};
|
|
7608
7608
|
}
|
|
@@ -10023,13 +10023,13 @@ const br = (e = "/api/") => ({
|
|
|
10023
10023
|
function d(A) {
|
|
10024
10024
|
c.value.data = A;
|
|
10025
10025
|
}
|
|
10026
|
-
function _(A,
|
|
10026
|
+
function _(A, P) {
|
|
10027
10027
|
c.value = {
|
|
10028
|
-
title:
|
|
10029
|
-
info:
|
|
10028
|
+
title: P?.title || l.title || "对话框",
|
|
10029
|
+
info: P?.info || l.info,
|
|
10030
10030
|
data: Qe(A || {}),
|
|
10031
10031
|
raw: A,
|
|
10032
|
-
width:
|
|
10032
|
+
width: P?.width || l.width
|
|
10033
10033
|
}, i.visible = !0;
|
|
10034
10034
|
}
|
|
10035
10035
|
function g() {
|
|
@@ -10054,8 +10054,8 @@ const br = (e = "/api/") => ({
|
|
|
10054
10054
|
i.fullscreen = !i.fullscreen;
|
|
10055
10055
|
}
|
|
10056
10056
|
const C = { open: _, close: g, confirm: p, cancel: E, getData: V, expand: D, unload: v };
|
|
10057
|
-
return t({ open: _, close: g, confirm: p, cancel: E, getData: V, expand: D, load: y }), (A,
|
|
10058
|
-
const $ = w("el-text"),
|
|
10057
|
+
return t({ open: _, close: g, confirm: p, cancel: E, getData: V, expand: D, load: y }), (A, P) => {
|
|
10058
|
+
const $ = w("el-text"), F = w("el-space"), U = w("el-dialog"), T = Tt("loading");
|
|
10059
10059
|
return b(), k(U, {
|
|
10060
10060
|
ref_key: "dialog",
|
|
10061
10061
|
ref: u,
|
|
@@ -10065,7 +10065,7 @@ const br = (e = "/api/") => ({
|
|
|
10065
10065
|
"body-class": "m-dialog-body",
|
|
10066
10066
|
"footer-class": "m-dialog-footer",
|
|
10067
10067
|
modelValue: i.visible,
|
|
10068
|
-
"onUpdate:modelValue":
|
|
10068
|
+
"onUpdate:modelValue": P[0] || (P[0] = (I) => i.visible = I),
|
|
10069
10069
|
width: c.value.width,
|
|
10070
10070
|
top: e.top,
|
|
10071
10071
|
fullscreen: i.fullscreen,
|
|
@@ -10077,9 +10077,9 @@ const br = (e = "/api/") => ({
|
|
|
10077
10077
|
"close-on-press-escape": !1,
|
|
10078
10078
|
"show-close": !1,
|
|
10079
10079
|
draggable: !0,
|
|
10080
|
-
onOpened:
|
|
10081
|
-
onClose:
|
|
10082
|
-
onKeydown:
|
|
10080
|
+
onOpened: P[1] || (P[1] = (I) => s.value = !0),
|
|
10081
|
+
onClose: P[2] || (P[2] = (I) => h(o)("closed")),
|
|
10082
|
+
onKeydown: P[3] || (P[3] = Le((I) => E(), ["esc"]))
|
|
10083
10083
|
}, ko({
|
|
10084
10084
|
header: f(() => [
|
|
10085
10085
|
Ye((b(), k(Vm, {
|
|
@@ -10105,7 +10105,7 @@ const br = (e = "/api/") => ({
|
|
|
10105
10105
|
controller: C,
|
|
10106
10106
|
update: d
|
|
10107
10107
|
}, () => [
|
|
10108
|
-
m(
|
|
10108
|
+
m(F, { size: "large" }, {
|
|
10109
10109
|
default: f(() => [
|
|
10110
10110
|
m($, { tag: "b" }, {
|
|
10111
10111
|
default: f(() => [
|
|
@@ -10571,8 +10571,8 @@ function zm(e) {
|
|
|
10571
10571
|
a.value[_] = t.value.item[_];
|
|
10572
10572
|
}
|
|
10573
10573
|
function d(_, g, p) {
|
|
10574
|
-
const { prop: v, domain: y, not_null: E } = _, V = Sn(g[v]), D = Sn(p[v]), C = Dn(V) ? !1 : V == null, A = (t.value.keys?.length || 0) > 1,
|
|
10575
|
-
return { prop: v, invalid:
|
|
10574
|
+
const { prop: v, domain: y, not_null: E } = _, V = Sn(g[v]), D = Sn(p[v]), C = Dn(V) ? !1 : V == null, A = (t.value.keys?.length || 0) > 1, P = ge.DOMAINS.multiple.includes(y) || A ? !1 : C && E, $ = !Ie(D, V);
|
|
10575
|
+
return { prop: v, invalid: P, value: V, changed: $ };
|
|
10576
10576
|
}
|
|
10577
10577
|
return { fields: n, bean: a, $disabled: o, mapping: r, row: l, data: u, reset: c, invalid: i };
|
|
10578
10578
|
}
|
|
@@ -12764,14 +12764,14 @@ const Or = /* @__PURE__ */ R({
|
|
|
12764
12764
|
A == null ? (Q.warning("请注意非空值"), C(!1)) : A.length ? (l.rest.save_many(A), C()) : (Q.warning("数据无变化,是否关闭?"), C(!1));
|
|
12765
12765
|
}
|
|
12766
12766
|
function u(D, C) {
|
|
12767
|
-
const { keys: A, insert:
|
|
12768
|
-
|
|
12767
|
+
const { keys: A, insert: P } = D;
|
|
12768
|
+
P && l.rest.delete_one(A[0]), C();
|
|
12769
12769
|
}
|
|
12770
12770
|
function c(D) {
|
|
12771
|
-
const C = D.map((
|
|
12772
|
-
Object.keys(l.view.$fields).forEach((
|
|
12773
|
-
const U = D.map((B) => B[
|
|
12774
|
-
I != null && A.push([
|
|
12771
|
+
const C = D.map((F) => F.id), A = [];
|
|
12772
|
+
Object.keys(l.view.$fields).forEach((F) => {
|
|
12773
|
+
const U = D.map((B) => B[F]), T = [.../* @__PURE__ */ new Set([...U])], I = T.length === 1 ? T[0] : null;
|
|
12774
|
+
I != null && A.push([F, I]);
|
|
12775
12775
|
});
|
|
12776
12776
|
const $ = Object.fromEntries(A);
|
|
12777
12777
|
return { keys: C, item: $ };
|
|
@@ -12780,19 +12780,19 @@ const Or = /* @__PURE__ */ R({
|
|
|
12780
12780
|
return new Promise((C) => {
|
|
12781
12781
|
if (D) {
|
|
12782
12782
|
const A = xo({ saved: !1 }, l.core);
|
|
12783
|
-
l.rest.insert_one(A).then((
|
|
12783
|
+
l.rest.insert_one(A).then((P) => C([P])).finally(l.collector.clear);
|
|
12784
12784
|
} else
|
|
12785
12785
|
l.rest.find(r.value).then((A) => C(A));
|
|
12786
12786
|
});
|
|
12787
12787
|
}
|
|
12788
12788
|
function _(D, C) {
|
|
12789
12789
|
d(D).then((A) => {
|
|
12790
|
-
const { keys:
|
|
12790
|
+
const { keys: P, item: $ } = c(A);
|
|
12791
12791
|
if (C) {
|
|
12792
|
-
const
|
|
12793
|
-
Object.assign($, ve(C,
|
|
12792
|
+
const F = Object.keys(l.core);
|
|
12793
|
+
Object.assign($, ve(C, F));
|
|
12794
12794
|
}
|
|
12795
|
-
s.value?.open({ insert: D, keys:
|
|
12795
|
+
s.value?.open({ insert: D, keys: P, item: $ });
|
|
12796
12796
|
});
|
|
12797
12797
|
}
|
|
12798
12798
|
function g() {
|
|
@@ -12805,12 +12805,12 @@ const Or = /* @__PURE__ */ R({
|
|
|
12805
12805
|
const { toAoa: v } = Ae(l.view), { copy: y } = At();
|
|
12806
12806
|
function E() {
|
|
12807
12807
|
const [D, C] = v(l.selection), A = [];
|
|
12808
|
-
D.map(($,
|
|
12809
|
-
const U = C[
|
|
12808
|
+
D.map(($, F) => {
|
|
12809
|
+
const U = C[F];
|
|
12810
12810
|
U != null && A.push([$, U]);
|
|
12811
12811
|
});
|
|
12812
|
-
const
|
|
12813
|
-
y(
|
|
12812
|
+
const P = JSON.stringify(Object.fromEntries(A));
|
|
12813
|
+
y(P).then(() => Q.success("所选数据已存入剪切板"));
|
|
12814
12814
|
}
|
|
12815
12815
|
return t({ controller: {
|
|
12816
12816
|
insert: (D) => _(!0, D),
|
|
@@ -12819,19 +12819,19 @@ const Or = /* @__PURE__ */ R({
|
|
|
12819
12819
|
clone: () => l.selection.length ? p() : Q.warning("请选择数据"),
|
|
12820
12820
|
paste: () => l.selection.length ? E() : Q.warning("请选择数据")
|
|
12821
12821
|
} }), (D, C) => {
|
|
12822
|
-
const A = w("el-text"),
|
|
12822
|
+
const A = w("el-text"), P = w("el-tag"), $ = w("el-space");
|
|
12823
12823
|
return b(), M(H, null, [
|
|
12824
12824
|
e.error ? K("", !0) : (b(), k(Or, {
|
|
12825
12825
|
key: 0,
|
|
12826
12826
|
admin: e.admin,
|
|
12827
12827
|
view: e.view,
|
|
12828
12828
|
selection: e.selection,
|
|
12829
|
-
onInsert: C[0] || (C[0] = (
|
|
12830
|
-
onEdit: C[1] || (C[1] = (
|
|
12829
|
+
onInsert: C[0] || (C[0] = (F) => _(!0)),
|
|
12830
|
+
onEdit: C[1] || (C[1] = (F) => _(!1)),
|
|
12831
12831
|
onRemove: g,
|
|
12832
12832
|
onClone: p,
|
|
12833
12833
|
onDownload: e.rest.download,
|
|
12834
|
-
onUpload: C[2] || (C[2] = (
|
|
12834
|
+
onUpload: C[2] || (C[2] = (F) => o("upload"))
|
|
12835
12835
|
}, null, 8, ["admin", "view", "selection", "onDownload"])),
|
|
12836
12836
|
m(h(le), {
|
|
12837
12837
|
ref_key: "dialog",
|
|
@@ -12839,8 +12839,8 @@ const Or = /* @__PURE__ */ R({
|
|
|
12839
12839
|
confirm: i,
|
|
12840
12840
|
cancel: u
|
|
12841
12841
|
}, {
|
|
12842
|
-
header: f(({ data: { insert:
|
|
12843
|
-
|
|
12842
|
+
header: f(({ data: { insert: F, keys: U } }) => [
|
|
12843
|
+
F ? (b(), k(A, {
|
|
12844
12844
|
key: 0,
|
|
12845
12845
|
type: "success",
|
|
12846
12846
|
tag: "b"
|
|
@@ -12860,7 +12860,7 @@ const Or = /* @__PURE__ */ R({
|
|
|
12860
12860
|
])]),
|
|
12861
12861
|
_: 1
|
|
12862
12862
|
}),
|
|
12863
|
-
m(
|
|
12863
|
+
m(P, {
|
|
12864
12864
|
type: "primary",
|
|
12865
12865
|
hit: "",
|
|
12866
12866
|
size: "small",
|
|
@@ -12884,12 +12884,12 @@ const Or = /* @__PURE__ */ R({
|
|
|
12884
12884
|
_: 2
|
|
12885
12885
|
}, 1024))
|
|
12886
12886
|
]),
|
|
12887
|
-
default: f(({ data: { keys:
|
|
12887
|
+
default: f(({ data: { keys: F, item: U, insert: T } }) => [
|
|
12888
12888
|
m(h(Hn), {
|
|
12889
12889
|
ref_key: "form",
|
|
12890
12890
|
ref: a,
|
|
12891
12891
|
item: U,
|
|
12892
|
-
keys:
|
|
12892
|
+
keys: F,
|
|
12893
12893
|
view: e.view,
|
|
12894
12894
|
insert: T,
|
|
12895
12895
|
core: e.core,
|
|
@@ -13157,7 +13157,7 @@ const Or = /* @__PURE__ */ R({
|
|
|
13157
13157
|
}
|
|
13158
13158
|
const _ = () => o("confirm");
|
|
13159
13159
|
return t({ getData: d }), (g, p) => {
|
|
13160
|
-
const v = w("el-segmented"), y = w("el-text"), E = w("el-option"), V = w("el-select"), D = w("el-space"), C = w("el-checkbox"), A = w("el-input-tag"),
|
|
13160
|
+
const v = w("el-segmented"), y = w("el-text"), E = w("el-option"), V = w("el-select"), D = w("el-space"), C = w("el-checkbox"), A = w("el-input-tag"), P = w("el-input"), $ = w("el-col"), F = w("el-row"), U = w("el-divider");
|
|
13161
13161
|
return b(), M(H, null, [
|
|
13162
13162
|
te("div", F_, [
|
|
13163
13163
|
m(v, {
|
|
@@ -13220,7 +13220,7 @@ const Or = /* @__PURE__ */ R({
|
|
|
13220
13220
|
"onUpdate:modelValue": p[3] || (p[3] = (T) => i.value.value = T),
|
|
13221
13221
|
clearable: "",
|
|
13222
13222
|
draggable: ""
|
|
13223
|
-
}, null, 8, ["modelValue"])) : i.value.lookup === "range" ? (b(), k(
|
|
13223
|
+
}, null, 8, ["modelValue"])) : i.value.lookup === "range" ? (b(), k(F, {
|
|
13224
13224
|
key: 2,
|
|
13225
13225
|
gutter: 10,
|
|
13226
13226
|
align: "middle"
|
|
@@ -13228,7 +13228,7 @@ const Or = /* @__PURE__ */ R({
|
|
|
13228
13228
|
default: f(() => [
|
|
13229
13229
|
m($, { span: 11 }, {
|
|
13230
13230
|
default: f(() => [
|
|
13231
|
-
m(
|
|
13231
|
+
m(P, {
|
|
13232
13232
|
modelValue: i.value.value.from,
|
|
13233
13233
|
"onUpdate:modelValue": p[4] || (p[4] = (T) => i.value.value.from = T),
|
|
13234
13234
|
onKeyup: Le(_, ["enter"])
|
|
@@ -13247,7 +13247,7 @@ const Or = /* @__PURE__ */ R({
|
|
|
13247
13247
|
}),
|
|
13248
13248
|
m($, { span: 11 }, {
|
|
13249
13249
|
default: f(() => [
|
|
13250
|
-
m(
|
|
13250
|
+
m(P, {
|
|
13251
13251
|
modelValue: i.value.value.to,
|
|
13252
13252
|
"onUpdate:modelValue": p[5] || (p[5] = (T) => i.value.value.to = T),
|
|
13253
13253
|
onKeyup: Le(_, ["enter"])
|
|
@@ -13257,7 +13257,7 @@ const Or = /* @__PURE__ */ R({
|
|
|
13257
13257
|
})
|
|
13258
13258
|
]),
|
|
13259
13259
|
_: 1
|
|
13260
|
-
})) : (b(), k(
|
|
13260
|
+
})) : (b(), k(P, {
|
|
13261
13261
|
key: 3,
|
|
13262
13262
|
size: "large",
|
|
13263
13263
|
modelValue: i.value.value,
|
|
@@ -13619,7 +13619,7 @@ const Or = /* @__PURE__ */ R({
|
|
|
13619
13619
|
u.value = !1, i.value = !1;
|
|
13620
13620
|
}
|
|
13621
13621
|
return (g, p) => {
|
|
13622
|
-
const v = w("el-checkbox"), y = w("el-space"), E = w("el-radio"), V = w("el-radio-group"), D = w("el-col"), C = w("el-text"), A = w("el-table-column"),
|
|
13622
|
+
const v = w("el-checkbox"), y = w("el-space"), E = w("el-radio"), V = w("el-radio-group"), D = w("el-col"), C = w("el-text"), A = w("el-table-column"), P = w("el-tooltip"), $ = w("el-table"), F = w("el-pagination"), U = w("el-row");
|
|
13623
13623
|
return b(), k(U, null, {
|
|
13624
13624
|
default: f(() => [
|
|
13625
13625
|
e.rows.length ? (b(), k(D, {
|
|
@@ -13746,7 +13746,7 @@ const Or = /* @__PURE__ */ R({
|
|
|
13746
13746
|
resizable: !1
|
|
13747
13747
|
}, {
|
|
13748
13748
|
header: f(() => [
|
|
13749
|
-
m(
|
|
13749
|
+
m(P, null, {
|
|
13750
13750
|
content: f(() => [
|
|
13751
13751
|
S(z(T.label) + "/" + z(T.tool) + "/" + z(T.format), 1)
|
|
13752
13752
|
]),
|
|
@@ -13836,7 +13836,7 @@ const Or = /* @__PURE__ */ R({
|
|
|
13836
13836
|
default: f(() => [
|
|
13837
13837
|
m(y, null, {
|
|
13838
13838
|
default: f(() => [
|
|
13839
|
-
m(
|
|
13839
|
+
m(F, {
|
|
13840
13840
|
size: "small",
|
|
13841
13841
|
total: e.rows.length,
|
|
13842
13842
|
"current-page": a.value.page,
|
|
@@ -13874,16 +13874,16 @@ function Y_(e) {
|
|
|
13874
13874
|
const { fromMode: a } = Ae(t.value.view), r = O(() => {
|
|
13875
13875
|
const { $modes: y, $fields: E } = t.value.view, V = [];
|
|
13876
13876
|
return (n.value.hasId || n.value.isUpdate) && V.push(a(y.id)), n.value.hasSort && V.push(a(y.sort)), Object.values(E).filter((D) => {
|
|
13877
|
-
const { prop: C, allow_update: A, allow_upload:
|
|
13878
|
-
return $ &&
|
|
13877
|
+
const { prop: C, allow_update: A, allow_upload: P } = D, $ = !["id", "sort"].includes(C), F = n.value.isUpdate ? A : P;
|
|
13878
|
+
return $ && F;
|
|
13879
13879
|
}).forEach((D) => {
|
|
13880
|
-
let { domain: C, prop: A, label:
|
|
13880
|
+
let { domain: C, prop: A, label: P, not_null: $, format: F } = D;
|
|
13881
13881
|
if (ge.DOMAINS.referred) {
|
|
13882
13882
|
const U = ge.DOMAINS.multiple.includes(C), T = n.value.useKey ? "value" : "label", I = (s.value[A] || []).map((q) => [q[T], q[T]]), B = Object.fromEntries(I);
|
|
13883
|
-
V.push(a({ prop: A, label:
|
|
13883
|
+
V.push(a({ prop: A, label: P, domain: C, not_null: $, multiple: U, set: B }));
|
|
13884
13884
|
} else {
|
|
13885
|
-
const { set: U, multiple: T } =
|
|
13886
|
-
V.push(a({ prop: A, label:
|
|
13885
|
+
const { set: U, multiple: T } = F;
|
|
13886
|
+
V.push(a({ prop: A, label: P, domain: C, not_null: $, multiple: T, set: U }));
|
|
13887
13887
|
}
|
|
13888
13888
|
}), V;
|
|
13889
13889
|
}), i = O(() => {
|
|
@@ -13893,10 +13893,20 @@ function Y_(e) {
|
|
|
13893
13893
|
function g(y) {
|
|
13894
13894
|
c.value = y, d.value = c.value.map((E, V) => u(E, V));
|
|
13895
13895
|
}
|
|
13896
|
-
const p = O(() =>
|
|
13897
|
-
const
|
|
13898
|
-
return
|
|
13899
|
-
|
|
13896
|
+
const p = O(() => {
|
|
13897
|
+
const y = i.value.$fields;
|
|
13898
|
+
return d.value.filter((E) => E.valid && !E.payload).map(({ cells: E }) => {
|
|
13899
|
+
const V = Object.entries(E).map(([D, C]) => {
|
|
13900
|
+
const { format: { multiple: A } } = y[D];
|
|
13901
|
+
if (A) {
|
|
13902
|
+
const P = C.value ? C.value.split(";") : [];
|
|
13903
|
+
return [D, P];
|
|
13904
|
+
} else
|
|
13905
|
+
return [D, C.value];
|
|
13906
|
+
});
|
|
13907
|
+
return Object.fromEntries(V);
|
|
13908
|
+
});
|
|
13909
|
+
});
|
|
13900
13910
|
function v(y, E) {
|
|
13901
13911
|
const V = c.value[E], D = xo(V, y || {});
|
|
13902
13912
|
c.value[E] = D, d.value[E] = u(D, E);
|
|
@@ -14182,14 +14192,14 @@ const W_ = /* @__PURE__ */ R({
|
|
|
14182
14192
|
function A(T) {
|
|
14183
14193
|
a.value?.open(T);
|
|
14184
14194
|
}
|
|
14185
|
-
function
|
|
14195
|
+
function P(T, I) {
|
|
14186
14196
|
const B = T.$index, q = r.value?.getData();
|
|
14187
14197
|
q ? (q.length && E(q[0], B), I()) : (Q.warning("注意验证信息"), I(!1));
|
|
14188
14198
|
}
|
|
14189
14199
|
function $(T) {
|
|
14190
14200
|
T.payload = !0;
|
|
14191
14201
|
}
|
|
14192
|
-
function
|
|
14202
|
+
function F(T) {
|
|
14193
14203
|
T.payload = void 0;
|
|
14194
14204
|
}
|
|
14195
14205
|
function U() {
|
|
@@ -14254,7 +14264,7 @@ const W_ = /* @__PURE__ */ R({
|
|
|
14254
14264
|
rows: h(g),
|
|
14255
14265
|
onEdit: A,
|
|
14256
14266
|
onRemove: $,
|
|
14257
|
-
onRestore:
|
|
14267
|
+
onRestore: F
|
|
14258
14268
|
}, null, 8, ["fields", "rows"])
|
|
14259
14269
|
]),
|
|
14260
14270
|
_: 1
|
|
@@ -14283,9 +14293,9 @@ const W_ = /* @__PURE__ */ R({
|
|
|
14283
14293
|
m(h(le), {
|
|
14284
14294
|
ref_key: "editor",
|
|
14285
14295
|
ref: a,
|
|
14286
|
-
title: "
|
|
14296
|
+
title: "数据编辑",
|
|
14287
14297
|
width: "500",
|
|
14288
|
-
confirm:
|
|
14298
|
+
confirm: P
|
|
14289
14299
|
}, {
|
|
14290
14300
|
default: f(({ data: ne }) => [
|
|
14291
14301
|
m(h(Hn), {
|
|
@@ -15176,8 +15186,8 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15176
15186
|
collector: p
|
|
15177
15187
|
} = V_(l, s), { createSortable: v } = $_(l, s);
|
|
15178
15188
|
J(() => [l.results, l.view], () => {
|
|
15179
|
-
const
|
|
15180
|
-
v(l.results,
|
|
15189
|
+
const F = l.view.allow_edit_on_sort && Ie(l.search.orders, { sort: -1 }) && !!l.results.length;
|
|
15190
|
+
v(l.results, F);
|
|
15181
15191
|
}, { deep: !0, immediate: !0 });
|
|
15182
15192
|
const {
|
|
15183
15193
|
tooltipOptions: y,
|
|
@@ -15185,32 +15195,32 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15185
15195
|
tableCellClassName: V,
|
|
15186
15196
|
tableRowClassName: D
|
|
15187
15197
|
} = A_(l, s), C = O(() => a.value?.controller), A = O(() => {
|
|
15188
|
-
const { parse:
|
|
15189
|
-
return
|
|
15198
|
+
const { parse: F } = Ae(l.view);
|
|
15199
|
+
return F(l.results);
|
|
15190
15200
|
});
|
|
15191
|
-
function F
|
|
15201
|
+
function P(F, U, T, I) {
|
|
15192
15202
|
I.preventDefault(), I.stopPropagation();
|
|
15193
|
-
const { property: B } = U, q =
|
|
15203
|
+
const { property: B } = U, q = F.id;
|
|
15194
15204
|
B && !l.single ? p.toggle(q) : (p.clear(), p.set([q]));
|
|
15195
15205
|
}
|
|
15196
|
-
function $(
|
|
15206
|
+
function $(F, U, T, I) {
|
|
15197
15207
|
I.preventDefault(), I.stopPropagation();
|
|
15198
|
-
const { type: B, property: q } = U, Z =
|
|
15208
|
+
const { type: B, property: q } = U, Z = F.id;
|
|
15199
15209
|
if (p.clear(), p.set([Z]), B === "index")
|
|
15200
15210
|
i.value?.open(I);
|
|
15201
15211
|
else if (q) {
|
|
15202
15212
|
if (Object.keys(l.core).includes(q)) return;
|
|
15203
15213
|
const de = l.view.$fields[q];
|
|
15204
15214
|
if (de.domain === "Custom") return;
|
|
15205
|
-
r.value?.open(I,
|
|
15215
|
+
r.value?.open(I, F, de);
|
|
15206
15216
|
}
|
|
15207
15217
|
}
|
|
15208
15218
|
return t({
|
|
15209
15219
|
controller: () => C.value,
|
|
15210
15220
|
getSelection: () => g.value,
|
|
15211
15221
|
get: () => _.value,
|
|
15212
|
-
set: (
|
|
15213
|
-
}), (
|
|
15222
|
+
set: (F) => Ve().then(() => p.set(F))
|
|
15223
|
+
}), (F, U) => {
|
|
15214
15224
|
const T = w("el-text"), I = w("el-result"), B = w("el-table");
|
|
15215
15225
|
return b(), M(H, null, [
|
|
15216
15226
|
m(Go, {
|
|
@@ -15218,7 +15228,7 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15218
15228
|
ticker: e.ticker
|
|
15219
15229
|
}, {
|
|
15220
15230
|
header: f(({ width: q }) => [
|
|
15221
|
-
X(
|
|
15231
|
+
X(F.$slots, "header", { width: q }, () => [
|
|
15222
15232
|
m(T, { tag: "b" }, {
|
|
15223
15233
|
default: f(() => [
|
|
15224
15234
|
S(z(e.title || e.view.$meta_name), 1)
|
|
@@ -15231,7 +15241,7 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15231
15241
|
m(h(D_), ke({
|
|
15232
15242
|
ref_key: "control",
|
|
15233
15243
|
ref: a
|
|
15234
|
-
},
|
|
15244
|
+
}, F.$props, {
|
|
15235
15245
|
selection: h(g),
|
|
15236
15246
|
collector: h(p),
|
|
15237
15247
|
onUpload: U[0] || (U[0] = (Z) => d.value?.open())
|
|
@@ -15254,7 +15264,7 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15254
15264
|
}, null, 8, ["size", "page", "total", "width"])
|
|
15255
15265
|
]),
|
|
15256
15266
|
"footer-tool": f(({ width: q }) => [
|
|
15257
|
-
m(h(ng), ke(
|
|
15267
|
+
m(h(ng), ke(F.$props, {
|
|
15258
15268
|
collection: h(_),
|
|
15259
15269
|
collector: h(p),
|
|
15260
15270
|
width: q
|
|
@@ -15294,20 +15304,20 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15294
15304
|
"max-height": e.view.table_height,
|
|
15295
15305
|
"tooltip-options": h(y),
|
|
15296
15306
|
size: e.size || "small",
|
|
15297
|
-
onCellClick:
|
|
15307
|
+
onCellClick: P,
|
|
15298
15308
|
onCellContextmenu: $,
|
|
15299
15309
|
"row-class-name": h(D),
|
|
15300
15310
|
"cell-class-name": h(V),
|
|
15301
15311
|
"tooltip-formatter": h(E)
|
|
15302
15312
|
}, {
|
|
15303
15313
|
default: f(() => [
|
|
15304
|
-
m(vg, ke(
|
|
15314
|
+
m(vg, ke(F.$props, {
|
|
15305
15315
|
frame: A.value,
|
|
15306
15316
|
collector: h(p),
|
|
15307
15317
|
collection: h(_),
|
|
15308
15318
|
onMeta: U[4] || (U[4] = (q) => o("meta", q))
|
|
15309
15319
|
}), null, 16, ["frame", "collector", "collection"]),
|
|
15310
|
-
m(gg, ke(
|
|
15320
|
+
m(gg, ke(F.$props, {
|
|
15311
15321
|
collector: h(p),
|
|
15312
15322
|
frame: A.value,
|
|
15313
15323
|
collection: h(_),
|
|
@@ -15336,28 +15346,28 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15336
15346
|
m(h(I_), ke({
|
|
15337
15347
|
ref_key: "index",
|
|
15338
15348
|
ref: i
|
|
15339
|
-
},
|
|
15349
|
+
}, F.$props, {
|
|
15340
15350
|
selection: h(g),
|
|
15341
15351
|
controller: C.value
|
|
15342
15352
|
}), null, 16, ["selection", "controller"]),
|
|
15343
15353
|
m(h(B_), ke({
|
|
15344
15354
|
ref_key: "lookup",
|
|
15345
15355
|
ref: c
|
|
15346
|
-
},
|
|
15356
|
+
}, F.$props), null, 16),
|
|
15347
15357
|
m(h(R_), ke({
|
|
15348
15358
|
ref_key: "cell",
|
|
15349
15359
|
ref: r
|
|
15350
|
-
},
|
|
15360
|
+
}, F.$props, {
|
|
15351
15361
|
onSpecial: u.value?.open
|
|
15352
15362
|
}), null, 16, ["onSpecial"]),
|
|
15353
15363
|
m(h(P_), ke({
|
|
15354
15364
|
ref_key: "special",
|
|
15355
15365
|
ref: u
|
|
15356
|
-
},
|
|
15366
|
+
}, F.$props, { collector: h(p) }), null, 16, ["collector"]),
|
|
15357
15367
|
m(h(Q_), ke({
|
|
15358
15368
|
ref_key: "upload",
|
|
15359
15369
|
ref: d
|
|
15360
|
-
},
|
|
15370
|
+
}, F.$props, {
|
|
15361
15371
|
onConfirm: U[8] || (U[8] = (q) => e.rest.save_many(q))
|
|
15362
15372
|
}), null, 16)
|
|
15363
15373
|
], 64);
|
|
@@ -15560,9 +15570,9 @@ function kg(e, t) {
|
|
|
15560
15570
|
return A;
|
|
15561
15571
|
}
|
|
15562
15572
|
function s(C) {
|
|
15563
|
-
const
|
|
15564
|
-
if (
|
|
15565
|
-
const $ =
|
|
15573
|
+
const P = e.value.mapping[C].children;
|
|
15574
|
+
if (P.length) {
|
|
15575
|
+
const $ = P.map((F) => s(F.id)).reduce((F, U) => [...F, ...U], []);
|
|
15566
15576
|
return [C, ...$];
|
|
15567
15577
|
}
|
|
15568
15578
|
return [];
|
|
@@ -15571,7 +15581,7 @@ function kg(e, t) {
|
|
|
15571
15581
|
n.value = n.value.filter((A) => !C.includes(A));
|
|
15572
15582
|
}
|
|
15573
15583
|
function r(C) {
|
|
15574
|
-
const A = C.filter((
|
|
15584
|
+
const A = C.filter((P) => !n.value.includes(P) && o.value.includes(P));
|
|
15575
15585
|
n.value.push(...A);
|
|
15576
15586
|
}
|
|
15577
15587
|
function i(C) {
|
|
@@ -15592,7 +15602,7 @@ function kg(e, t) {
|
|
|
15592
15602
|
}
|
|
15593
15603
|
function _(C) {
|
|
15594
15604
|
if (e.value.expandAll) return;
|
|
15595
|
-
const A = C.map((
|
|
15605
|
+
const A = C.map((P) => l(P)).reduce((P, $) => [...P, ...$], []);
|
|
15596
15606
|
C = [...new Set(A)], r(C);
|
|
15597
15607
|
}
|
|
15598
15608
|
const g = {
|
|
@@ -15603,9 +15613,9 @@ function kg(e, t) {
|
|
|
15603
15613
|
function p(C) {
|
|
15604
15614
|
return !!C.data.id;
|
|
15605
15615
|
}
|
|
15606
|
-
function v(C, A,
|
|
15607
|
-
const $ = C.data,
|
|
15608
|
-
return !U && B !== I && (A.expanded = !0),
|
|
15616
|
+
function v(C, A, P) {
|
|
15617
|
+
const $ = C.data, F = A.data, U = F.isLeaf, T = !!F.children?.length, I = $.id, B = F.id;
|
|
15618
|
+
return !U && B !== I && (A.expanded = !0), P === "inner" ? !U && !T : B != 0;
|
|
15609
15619
|
}
|
|
15610
15620
|
function y(C) {
|
|
15611
15621
|
const A = C.id;
|
|
@@ -15615,9 +15625,9 @@ function kg(e, t) {
|
|
|
15615
15625
|
const A = C.id;
|
|
15616
15626
|
c(A);
|
|
15617
15627
|
}
|
|
15618
|
-
function V(C, A,
|
|
15619
|
-
const
|
|
15620
|
-
if (
|
|
15628
|
+
function V(C, A, P, $) {
|
|
15629
|
+
const F = C.data, U = A.data, T = F.id, I = U.id;
|
|
15630
|
+
if (P === "inner") {
|
|
15621
15631
|
const B = {
|
|
15622
15632
|
id: T,
|
|
15623
15633
|
pid: I
|
|
@@ -16039,10 +16049,10 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16039
16049
|
emits: ["meta", "table"],
|
|
16040
16050
|
setup(e, { expose: t, emit: n }) {
|
|
16041
16051
|
const o = n, l = e, s = x(), a = x(), r = x(), { fromMode: i } = Ae(), u = O(() => l), c = O(() => l.labelKey || "name"), d = O(() => {
|
|
16042
|
-
const { $fields:
|
|
16052
|
+
const { $fields: P, $modes: $ } = l.view, F = c.value, U = P[F], T = l.view.$modes[F];
|
|
16043
16053
|
return U || (T ? i(T) : new ge());
|
|
16044
16054
|
}), _ = x("");
|
|
16045
|
-
J(_, (
|
|
16055
|
+
J(_, (P) => s.value.filter(P));
|
|
16046
16056
|
const {
|
|
16047
16057
|
collection: g,
|
|
16048
16058
|
selection: p,
|
|
@@ -16052,26 +16062,26 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16052
16062
|
expansion: E,
|
|
16053
16063
|
ui: V
|
|
16054
16064
|
} = kg(u, s);
|
|
16055
|
-
function D(
|
|
16056
|
-
return ($[c.value] || "").includes(
|
|
16065
|
+
function D(P, $, F) {
|
|
16066
|
+
return ($[c.value] || "").includes(P);
|
|
16057
16067
|
}
|
|
16058
|
-
function C(
|
|
16059
|
-
const T =
|
|
16060
|
-
|
|
16068
|
+
function C(P, $, F, U) {
|
|
16069
|
+
const T = P.id;
|
|
16070
|
+
P.children.length ? y.toggle(T) : l.single ? v.set(T) : v.toggle(T);
|
|
16061
16071
|
}
|
|
16062
|
-
function A(
|
|
16063
|
-
|
|
16064
|
-
const
|
|
16065
|
-
v.set(
|
|
16072
|
+
function A(P, $) {
|
|
16073
|
+
P.preventDefault(), P.stopPropagation();
|
|
16074
|
+
const F = $.id;
|
|
16075
|
+
v.set(F), r.value?.open(P, $);
|
|
16066
16076
|
}
|
|
16067
16077
|
return t({
|
|
16068
16078
|
selection: p,
|
|
16069
16079
|
get: () => g.value,
|
|
16070
|
-
set: (
|
|
16071
|
-
v.set(...
|
|
16080
|
+
set: (P) => Ve().then(() => {
|
|
16081
|
+
v.set(...P), y.set(P);
|
|
16072
16082
|
})
|
|
16073
|
-
}), (
|
|
16074
|
-
const
|
|
16083
|
+
}), (P, $) => {
|
|
16084
|
+
const F = w("el-divider"), U = w("el-text"), T = w("el-space"), I = w("el-tree");
|
|
16075
16085
|
return b(), M(H, null, [
|
|
16076
16086
|
m(Go, {
|
|
16077
16087
|
loading: e.loading,
|
|
@@ -16086,8 +16096,8 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16086
16096
|
disclosure: h(y),
|
|
16087
16097
|
onMeta: $[0] || ($[0] = (q) => o("meta", q))
|
|
16088
16098
|
}, null, 8, ["collection", "expansion", "collector", "disclosure"]),
|
|
16089
|
-
m(
|
|
16090
|
-
X(
|
|
16099
|
+
m(F, { direction: "vertical" }),
|
|
16100
|
+
X(P.$slots, "header", { width: B }, () => [
|
|
16091
16101
|
m(U, { tag: "b" }, {
|
|
16092
16102
|
default: f(() => [
|
|
16093
16103
|
S(z(e.view.$meta_name), 1)
|
|
@@ -16097,7 +16107,7 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16097
16107
|
])
|
|
16098
16108
|
]),
|
|
16099
16109
|
"header-tool": f(({ width: B }) => [
|
|
16100
|
-
m(yg, ke(
|
|
16110
|
+
m(yg, ke(P.$props, {
|
|
16101
16111
|
modelValue: _.value,
|
|
16102
16112
|
"onUpdate:modelValue": $[1] || ($[1] = (q) => _.value = q),
|
|
16103
16113
|
collector: h(v),
|
|
@@ -16143,16 +16153,16 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16143
16153
|
data: B,
|
|
16144
16154
|
field: d.value
|
|
16145
16155
|
}, null, 8, ["node", "data", "field"]),
|
|
16146
|
-
X(
|
|
16156
|
+
X(P.$slots, "prefix", {
|
|
16147
16157
|
isLeaf: B.isLeaf,
|
|
16148
16158
|
node: q,
|
|
16149
16159
|
data: B
|
|
16150
16160
|
}, () => [
|
|
16151
|
-
B.isLeaf ? X(
|
|
16161
|
+
B.isLeaf ? X(P.$slots, "prefix-leaf", {
|
|
16152
16162
|
key: 0,
|
|
16153
16163
|
node: q,
|
|
16154
16164
|
data: B
|
|
16155
|
-
}) : X(
|
|
16165
|
+
}) : X(P.$slots, "prefix-branch", {
|
|
16156
16166
|
key: 1,
|
|
16157
16167
|
node: q,
|
|
16158
16168
|
data: B
|
|
@@ -16163,22 +16173,22 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16163
16173
|
}, 1024),
|
|
16164
16174
|
m(T, null, {
|
|
16165
16175
|
default: f(() => [
|
|
16166
|
-
X(
|
|
16176
|
+
X(P.$slots, "suffix", {
|
|
16167
16177
|
isLeaf: B.isLeaf,
|
|
16168
16178
|
node: q,
|
|
16169
16179
|
data: B
|
|
16170
16180
|
}, () => [
|
|
16171
|
-
B.isLeaf ? X(
|
|
16181
|
+
B.isLeaf ? X(P.$slots, "suffix-leaf", {
|
|
16172
16182
|
key: 0,
|
|
16173
16183
|
node: q,
|
|
16174
16184
|
data: B
|
|
16175
|
-
}) : X(
|
|
16185
|
+
}) : X(P.$slots, "suffix-branch", {
|
|
16176
16186
|
key: 1,
|
|
16177
16187
|
node: q,
|
|
16178
16188
|
data: B
|
|
16179
16189
|
})
|
|
16180
16190
|
]),
|
|
16181
|
-
m($g, ke(
|
|
16191
|
+
m($g, ke(P.$props, {
|
|
16182
16192
|
data: B,
|
|
16183
16193
|
collector: h(v)
|
|
16184
16194
|
}), null, 16, ["data", "collector"])
|
|
@@ -16195,11 +16205,11 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16195
16205
|
m(h(xg), ke({
|
|
16196
16206
|
ref_key: "batch",
|
|
16197
16207
|
ref: a
|
|
16198
|
-
},
|
|
16208
|
+
}, P.$props, { field: d.value }), null, 16, ["field"]),
|
|
16199
16209
|
m(h(Og), ke({
|
|
16200
16210
|
ref_key: "node",
|
|
16201
16211
|
ref: r
|
|
16202
|
-
},
|
|
16212
|
+
}, P.$props, {
|
|
16203
16213
|
field: d.value,
|
|
16204
16214
|
onTable: $[3] || ($[3] = (B) => o("table", B)),
|
|
16205
16215
|
onBatch: a.value?.open
|
|
@@ -16693,8 +16703,8 @@ const Dr = /* @__PURE__ */ R({
|
|
|
16693
16703
|
window.open(`${p}/${l.value}`, "_blank");
|
|
16694
16704
|
}
|
|
16695
16705
|
function y(D) {
|
|
16696
|
-
const { name: C, size: A } = D,
|
|
16697
|
-
return (u.value === "*" ? !0 : r.value.accept.includes(
|
|
16706
|
+
const { name: C, size: A } = D, P = C.indexOf(".") !== -1 ? `.${C.split(".").pop()}` : "", $ = [];
|
|
16707
|
+
return (u.value === "*" ? !0 : r.value.accept.includes(P)) || $.push(`文件类型不符合:${u.value}`), A / 1e6 <= r.value.maximum || $.push(`文件大小不超过${r.value.maximum}Mb`), $.length > 0 ? (Q.error($.join(";")), !1) : !0;
|
|
16698
16708
|
}
|
|
16699
16709
|
function E(D) {
|
|
16700
16710
|
D.payload ? (l.value = D.payload, o("reload"), Q.success("上传成功!")) : V(), s.value?.clearFiles();
|
|
@@ -16703,7 +16713,7 @@ const Dr = /* @__PURE__ */ R({
|
|
|
16703
16713
|
Q.error("上传失败");
|
|
16704
16714
|
}
|
|
16705
16715
|
return (D, C) => {
|
|
16706
|
-
const A = w("el-upload"),
|
|
16716
|
+
const A = w("el-upload"), P = w("el-text"), $ = w("el-tooltip"), F = w("el-divider"), U = w("el-space"), T = w("el-input");
|
|
16707
16717
|
return b(), M(H, null, [
|
|
16708
16718
|
Ye(m(A, {
|
|
16709
16719
|
ref_key: "upload",
|
|
@@ -16730,7 +16740,7 @@ const Dr = /* @__PURE__ */ R({
|
|
|
16730
16740
|
S(z(c.value), 1)
|
|
16731
16741
|
]),
|
|
16732
16742
|
default: f(() => [
|
|
16733
|
-
m(
|
|
16743
|
+
m(P, {
|
|
16734
16744
|
size: "small",
|
|
16735
16745
|
truncated: "",
|
|
16736
16746
|
style: { width: "100px" }
|
|
@@ -16743,7 +16753,7 @@ const Dr = /* @__PURE__ */ R({
|
|
|
16743
16753
|
]),
|
|
16744
16754
|
_: 1
|
|
16745
16755
|
}),
|
|
16746
|
-
m(
|
|
16756
|
+
m(F, { direction: "vertical" }),
|
|
16747
16757
|
e.field.allow_edit && !e.disabled ? (b(), k(h(W), {
|
|
16748
16758
|
key: 0,
|
|
16749
16759
|
icon: "folder-open",
|
|
@@ -16788,7 +16798,7 @@ const Dr = /* @__PURE__ */ R({
|
|
|
16788
16798
|
placeholder: "无文件..."
|
|
16789
16799
|
}, {
|
|
16790
16800
|
suffix: f(() => [
|
|
16791
|
-
m(
|
|
16801
|
+
m(F, { direction: "vertical" }),
|
|
16792
16802
|
m(h(W), {
|
|
16793
16803
|
icon: "folder-open",
|
|
16794
16804
|
type: "warning",
|
|
@@ -17423,7 +17433,7 @@ function Kg(e, t) {
|
|
|
17423
17433
|
options: D,
|
|
17424
17434
|
mapping: C,
|
|
17425
17435
|
total: A
|
|
17426
|
-
} = pr(o), { toAoa:
|
|
17436
|
+
} = pr(o), { toAoa: P } = Ae(g), { toText: $ } = gt(), { copy: F } = At(), { write: U } = Ut();
|
|
17427
17437
|
return {
|
|
17428
17438
|
view: g,
|
|
17429
17439
|
search: n,
|
|
@@ -17453,8 +17463,8 @@ function Kg(e, t) {
|
|
|
17453
17463
|
},
|
|
17454
17464
|
download: () => {
|
|
17455
17465
|
l.find(..._.value).then((I) => {
|
|
17456
|
-
const B =
|
|
17457
|
-
De.info("请选择数据下载方式:", q).then(() =>
|
|
17466
|
+
const B = P(I), q = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" }, Z = e.value.title || g.value.$meta_name;
|
|
17467
|
+
De.info("请选择数据下载方式:", q).then(() => F($(B))).then(() => Q.success("数据已存至剪切板")).catch(() => U(Z || _t(), { data: B, name: Z }));
|
|
17458
17468
|
});
|
|
17459
17469
|
}
|
|
17460
17470
|
},
|
|
@@ -18306,7 +18316,7 @@ const Yg = /* @__PURE__ */ R({
|
|
|
18306
18316
|
]),
|
|
18307
18317
|
_: 1
|
|
18308
18318
|
}),
|
|
18309
|
-
(b(), M(H, null, se(c, (A,
|
|
18319
|
+
(b(), M(H, null, se(c, (A, P) => m(y, { span: 8 }, {
|
|
18310
18320
|
default: f(() => [
|
|
18311
18321
|
m(v, {
|
|
18312
18322
|
label: A,
|
|
@@ -18314,12 +18324,12 @@ const Yg = /* @__PURE__ */ R({
|
|
|
18314
18324
|
}, {
|
|
18315
18325
|
default: f(() => [
|
|
18316
18326
|
m(D, {
|
|
18317
|
-
disabled:
|
|
18327
|
+
disabled: P === "value" && d.value.value || d.value.all,
|
|
18318
18328
|
filterable: "",
|
|
18319
18329
|
clearable: "",
|
|
18320
18330
|
"value-on-clear": "",
|
|
18321
|
-
modelValue: o.value[
|
|
18322
|
-
"onUpdate:modelValue": ($) => o.value[
|
|
18331
|
+
modelValue: o.value[P],
|
|
18332
|
+
"onUpdate:modelValue": ($) => o.value[P] = $
|
|
18323
18333
|
}, {
|
|
18324
18334
|
default: f(() => [
|
|
18325
18335
|
(b(!0), M(H, null, se(_.value, ($) => (b(), k(V, {
|
|
@@ -18594,15 +18604,15 @@ const Yg = /* @__PURE__ */ R({
|
|
|
18594
18604
|
expandTrigger: "hover",
|
|
18595
18605
|
lazyLoad(c, d) {
|
|
18596
18606
|
const { level: _, data: g } = c, { $db: p, $entity: v } = n.view, y = _ ? g : { db: p, entity: v }, E = _ ? c.pathNodes.map((A) => {
|
|
18597
|
-
const { db:
|
|
18598
|
-
return `${
|
|
18607
|
+
const { db: P, entity: $ } = A.data;
|
|
18608
|
+
return `${P}.${$}`;
|
|
18599
18609
|
}) : [], V = _ ? c.pathValues : [];
|
|
18600
18610
|
E.push(`${p}.${v}`);
|
|
18601
18611
|
const { db: D, entity: C } = y;
|
|
18602
18612
|
o("valar/get_fields", { db: D, entity: C, route: E }).then((A) => {
|
|
18603
|
-
A.forEach((
|
|
18604
|
-
const $ = [...V,
|
|
18605
|
-
|
|
18613
|
+
A.forEach((P) => {
|
|
18614
|
+
const $ = [...V, P.value].join("__");
|
|
18615
|
+
P.disabled = s.value.includes($);
|
|
18606
18616
|
}), d(A);
|
|
18607
18617
|
});
|
|
18608
18618
|
}
|
|
@@ -19420,15 +19430,15 @@ const Yg = /* @__PURE__ */ R({
|
|
|
19420
19430
|
options: V,
|
|
19421
19431
|
rest: D,
|
|
19422
19432
|
switching: C
|
|
19423
|
-
} = Kg(a, (
|
|
19424
|
-
o.value?.set(
|
|
19433
|
+
} = Kg(a, (P) => {
|
|
19434
|
+
o.value?.set(P);
|
|
19425
19435
|
});
|
|
19426
19436
|
return t({
|
|
19427
19437
|
rest: D,
|
|
19428
19438
|
view: () => u.value,
|
|
19429
19439
|
controller: i,
|
|
19430
19440
|
getSelection: () => o.value?.getSelection() || []
|
|
19431
|
-
}), (
|
|
19441
|
+
}), (P, $) => (b(), M(H, null, [
|
|
19432
19442
|
m(h(Vr), {
|
|
19433
19443
|
ref_key: "table",
|
|
19434
19444
|
ref: o,
|
|
@@ -19453,8 +19463,8 @@ const Yg = /* @__PURE__ */ R({
|
|
|
19453
19463
|
onMeta: l.value?.open,
|
|
19454
19464
|
onField: s.value?.open
|
|
19455
19465
|
}, {
|
|
19456
|
-
header: f(({ width:
|
|
19457
|
-
X(
|
|
19466
|
+
header: f(({ width: F }) => [
|
|
19467
|
+
X(P.$slots, "header", { width: F })
|
|
19458
19468
|
]),
|
|
19459
19469
|
_: 3
|
|
19460
19470
|
}, 8, ["view", "rest", "results", "mapping", "total", "search", "finder", "core", "loading", "ticker", "error", "admin", "title", "single", "height", "buttons", "columns", "onMeta", "onField"]),
|
|
@@ -19462,14 +19472,14 @@ const Yg = /* @__PURE__ */ R({
|
|
|
19462
19472
|
ref_key: "meta",
|
|
19463
19473
|
ref: l,
|
|
19464
19474
|
view: h(u),
|
|
19465
|
-
onReload: $[0] || ($[0] = (
|
|
19475
|
+
onReload: $[0] || ($[0] = (F) => h(D).init()),
|
|
19466
19476
|
switching: h(C)
|
|
19467
19477
|
}, null, 8, ["view", "switching"]),
|
|
19468
19478
|
m(nh, {
|
|
19469
19479
|
ref_key: "field",
|
|
19470
19480
|
ref: s,
|
|
19471
19481
|
view: h(u),
|
|
19472
|
-
onReload: $[1] || ($[1] = (
|
|
19482
|
+
onReload: $[1] || ($[1] = (F) => h(D).init())
|
|
19473
19483
|
}, null, 8, ["view"])
|
|
19474
19484
|
], 64));
|
|
19475
19485
|
}
|
|
@@ -19556,35 +19566,35 @@ function vh(e, t) {
|
|
|
19556
19566
|
$ = $ || { sort: -1 }, i.value.orders = $, r.value = $;
|
|
19557
19567
|
},
|
|
19558
19568
|
delete_one: ($) => a.delete_many([$]),
|
|
19559
|
-
save_one: ($) => new Promise((
|
|
19569
|
+
save_one: ($) => new Promise((F) => {
|
|
19560
19570
|
const U = { ...$, ..._.value };
|
|
19561
|
-
a.save_many([{ ...$, ..._.value }]),
|
|
19571
|
+
a.save_many([{ ...$, ..._.value }]), F(U);
|
|
19562
19572
|
}),
|
|
19563
|
-
insert_one: ($) => new Promise((
|
|
19573
|
+
insert_one: ($) => new Promise((F) => {
|
|
19564
19574
|
const U = a.insert_one({ ...$, ..._.value });
|
|
19565
|
-
|
|
19575
|
+
F(U);
|
|
19566
19576
|
}),
|
|
19567
|
-
find: ($) => new Promise((
|
|
19577
|
+
find: ($) => new Promise((F) => {
|
|
19568
19578
|
const U = $.map((T) => a.find_one(T));
|
|
19569
|
-
|
|
19579
|
+
F(U);
|
|
19570
19580
|
}),
|
|
19571
19581
|
delete_many: ($) => {
|
|
19572
19582
|
a.delete_many($), t([]);
|
|
19573
19583
|
},
|
|
19574
|
-
values: ($,
|
|
19575
|
-
const T =
|
|
19584
|
+
values: ($, F) => new Promise((U) => {
|
|
19585
|
+
const T = F.map((I) => ve(a.find_one(I), $));
|
|
19576
19586
|
U(T);
|
|
19577
19587
|
}),
|
|
19578
19588
|
save_many: ($) => {
|
|
19579
|
-
const
|
|
19580
|
-
t(
|
|
19589
|
+
const F = a.save_many($);
|
|
19590
|
+
t(F);
|
|
19581
19591
|
},
|
|
19582
|
-
lookup: ($,
|
|
19583
|
-
delete d.value.includes[$], delete d.value.excludes[$],
|
|
19592
|
+
lookup: ($, F) => {
|
|
19593
|
+
delete d.value.includes[$], delete d.value.excludes[$], F && (d.value[F.type][$] = F);
|
|
19584
19594
|
},
|
|
19585
19595
|
download: () => {
|
|
19586
|
-
const $ = V(y.value),
|
|
19587
|
-
De.info("请选择数据下载方式:",
|
|
19596
|
+
const $ = V(y.value), F = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" }, U = n.value.title;
|
|
19597
|
+
De.info("请选择数据下载方式:", F).then(() => C(D($))).then(() => Q.success("数据已存至剪切板")).catch(() => A(U || _t(), { data: $, name: U }));
|
|
19588
19598
|
}
|
|
19589
19599
|
},
|
|
19590
19600
|
orders: r
|
|
@@ -19754,9 +19764,9 @@ function yh(e, t) {
|
|
|
19754
19764
|
reload: v,
|
|
19755
19765
|
save_many: y,
|
|
19756
19766
|
delete_many: E,
|
|
19757
|
-
switch_nodes: ($,
|
|
19767
|
+
switch_nodes: ($, F) => {
|
|
19758
19768
|
console.log($);
|
|
19759
|
-
const U = $.map((T) => ({ id: T, isLeaf:
|
|
19769
|
+
const U = $.map((T) => ({ id: T, isLeaf: F }));
|
|
19760
19770
|
y(U);
|
|
19761
19771
|
}
|
|
19762
19772
|
},
|
|
@@ -19975,25 +19985,25 @@ const bh = /* @__PURE__ */ R({
|
|
|
19975
19985
|
error: D,
|
|
19976
19986
|
rest: C,
|
|
19977
19987
|
switching: A
|
|
19978
|
-
} = yh(s, (
|
|
19979
|
-
a.value?.set(
|
|
19988
|
+
} = yh(s, (F) => {
|
|
19989
|
+
a.value?.set(F);
|
|
19980
19990
|
});
|
|
19981
|
-
function F
|
|
19982
|
-
|
|
19991
|
+
function P(F, U) {
|
|
19992
|
+
F.stopPropagation(), F.preventDefault(), a.value?.set([U]);
|
|
19983
19993
|
}
|
|
19984
|
-
return J(() => a.value?.selection, (
|
|
19994
|
+
return J(() => a.value?.selection, (F) => {
|
|
19985
19995
|
if (l.single) {
|
|
19986
|
-
const U =
|
|
19996
|
+
const U = F?.length === 1 ? F[0] : null;
|
|
19987
19997
|
o("change", U);
|
|
19988
19998
|
} else
|
|
19989
|
-
o("change",
|
|
19999
|
+
o("change", F);
|
|
19990
20000
|
}, { deep: !0 }), t({
|
|
19991
20001
|
manager: d,
|
|
19992
20002
|
rest: C,
|
|
19993
20003
|
getSelection: () => a.value?.selection,
|
|
19994
20004
|
getOptions: () => v.value,
|
|
19995
20005
|
getMapping: () => y.value
|
|
19996
|
-
}), (
|
|
20006
|
+
}), (F, U) => {
|
|
19997
20007
|
const T = w("m-dialog");
|
|
19998
20008
|
return b(), M(H, null, [
|
|
19999
20009
|
m(h(Tg), {
|
|
@@ -20021,49 +20031,49 @@ const bh = /* @__PURE__ */ R({
|
|
|
20021
20031
|
onTable: r.value?.open
|
|
20022
20032
|
}, {
|
|
20023
20033
|
header: f(({ width: I }) => [
|
|
20024
|
-
X(
|
|
20034
|
+
X(F.$slots, "header", { width: I })
|
|
20025
20035
|
]),
|
|
20026
20036
|
prefix: f(({ data: I, node: B, isLeaf: q }) => [
|
|
20027
|
-
X(
|
|
20037
|
+
X(F.$slots, "prefix", {
|
|
20028
20038
|
isLeaf: I.isLeaf,
|
|
20029
20039
|
node: B,
|
|
20030
20040
|
data: I,
|
|
20031
|
-
select:
|
|
20041
|
+
select: P
|
|
20032
20042
|
})
|
|
20033
20043
|
]),
|
|
20034
20044
|
"prefix-leaf": f(({ data: I, node: B }) => [
|
|
20035
|
-
X(
|
|
20045
|
+
X(F.$slots, "prefix-leaf", {
|
|
20036
20046
|
node: B,
|
|
20037
20047
|
data: I,
|
|
20038
|
-
select:
|
|
20048
|
+
select: P
|
|
20039
20049
|
})
|
|
20040
20050
|
]),
|
|
20041
20051
|
"prefix-branch": f(({ data: I, node: B }) => [
|
|
20042
|
-
X(
|
|
20052
|
+
X(F.$slots, "prefix-branch", {
|
|
20043
20053
|
node: B,
|
|
20044
20054
|
data: I,
|
|
20045
|
-
select:
|
|
20055
|
+
select: P
|
|
20046
20056
|
})
|
|
20047
20057
|
]),
|
|
20048
20058
|
suffix: f(({ data: I, node: B, isLeaf: q }) => [
|
|
20049
|
-
X(
|
|
20059
|
+
X(F.$slots, "suffix", {
|
|
20050
20060
|
node: B,
|
|
20051
20061
|
data: I,
|
|
20052
|
-
select:
|
|
20062
|
+
select: P
|
|
20053
20063
|
})
|
|
20054
20064
|
]),
|
|
20055
20065
|
"suffix-leaf": f(({ data: I, node: B }) => [
|
|
20056
|
-
X(
|
|
20066
|
+
X(F.$slots, "suffix-leaf", {
|
|
20057
20067
|
node: B,
|
|
20058
20068
|
data: I,
|
|
20059
|
-
select:
|
|
20069
|
+
select: P
|
|
20060
20070
|
})
|
|
20061
20071
|
]),
|
|
20062
20072
|
"suffix-branch": f(({ data: I, node: B }) => [
|
|
20063
|
-
X(
|
|
20073
|
+
X(F.$slots, "suffix-branch", {
|
|
20064
20074
|
node: B,
|
|
20065
20075
|
data: I,
|
|
20066
|
-
select:
|
|
20076
|
+
select: P
|
|
20067
20077
|
})
|
|
20068
20078
|
]),
|
|
20069
20079
|
_: 3
|