@morghulis/core 1.0.33 → 1.0.34
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,16 @@ 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], P = A ? C.value.split(";") : C.value;
|
|
13901
|
+
return [D, P];
|
|
13902
|
+
});
|
|
13903
|
+
return Object.fromEntries(V);
|
|
13904
|
+
});
|
|
13905
|
+
});
|
|
13900
13906
|
function v(y, E) {
|
|
13901
13907
|
const V = c.value[E], D = xo(V, y || {});
|
|
13902
13908
|
c.value[E] = D, d.value[E] = u(D, E);
|
|
@@ -14182,14 +14188,14 @@ const W_ = /* @__PURE__ */ R({
|
|
|
14182
14188
|
function A(T) {
|
|
14183
14189
|
a.value?.open(T);
|
|
14184
14190
|
}
|
|
14185
|
-
function
|
|
14191
|
+
function P(T, I) {
|
|
14186
14192
|
const B = T.$index, q = r.value?.getData();
|
|
14187
14193
|
q ? (q.length && E(q[0], B), I()) : (Q.warning("注意验证信息"), I(!1));
|
|
14188
14194
|
}
|
|
14189
14195
|
function $(T) {
|
|
14190
14196
|
T.payload = !0;
|
|
14191
14197
|
}
|
|
14192
|
-
function
|
|
14198
|
+
function F(T) {
|
|
14193
14199
|
T.payload = void 0;
|
|
14194
14200
|
}
|
|
14195
14201
|
function U() {
|
|
@@ -14254,7 +14260,7 @@ const W_ = /* @__PURE__ */ R({
|
|
|
14254
14260
|
rows: h(g),
|
|
14255
14261
|
onEdit: A,
|
|
14256
14262
|
onRemove: $,
|
|
14257
|
-
onRestore:
|
|
14263
|
+
onRestore: F
|
|
14258
14264
|
}, null, 8, ["fields", "rows"])
|
|
14259
14265
|
]),
|
|
14260
14266
|
_: 1
|
|
@@ -14283,9 +14289,9 @@ const W_ = /* @__PURE__ */ R({
|
|
|
14283
14289
|
m(h(le), {
|
|
14284
14290
|
ref_key: "editor",
|
|
14285
14291
|
ref: a,
|
|
14286
|
-
title: "
|
|
14292
|
+
title: "数据编辑",
|
|
14287
14293
|
width: "500",
|
|
14288
|
-
confirm:
|
|
14294
|
+
confirm: P
|
|
14289
14295
|
}, {
|
|
14290
14296
|
default: f(({ data: ne }) => [
|
|
14291
14297
|
m(h(Hn), {
|
|
@@ -15176,8 +15182,8 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15176
15182
|
collector: p
|
|
15177
15183
|
} = V_(l, s), { createSortable: v } = $_(l, s);
|
|
15178
15184
|
J(() => [l.results, l.view], () => {
|
|
15179
|
-
const
|
|
15180
|
-
v(l.results,
|
|
15185
|
+
const F = l.view.allow_edit_on_sort && Ie(l.search.orders, { sort: -1 }) && !!l.results.length;
|
|
15186
|
+
v(l.results, F);
|
|
15181
15187
|
}, { deep: !0, immediate: !0 });
|
|
15182
15188
|
const {
|
|
15183
15189
|
tooltipOptions: y,
|
|
@@ -15185,32 +15191,32 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15185
15191
|
tableCellClassName: V,
|
|
15186
15192
|
tableRowClassName: D
|
|
15187
15193
|
} = A_(l, s), C = O(() => a.value?.controller), A = O(() => {
|
|
15188
|
-
const { parse:
|
|
15189
|
-
return
|
|
15194
|
+
const { parse: F } = Ae(l.view);
|
|
15195
|
+
return F(l.results);
|
|
15190
15196
|
});
|
|
15191
|
-
function F
|
|
15197
|
+
function P(F, U, T, I) {
|
|
15192
15198
|
I.preventDefault(), I.stopPropagation();
|
|
15193
|
-
const { property: B } = U, q =
|
|
15199
|
+
const { property: B } = U, q = F.id;
|
|
15194
15200
|
B && !l.single ? p.toggle(q) : (p.clear(), p.set([q]));
|
|
15195
15201
|
}
|
|
15196
|
-
function $(
|
|
15202
|
+
function $(F, U, T, I) {
|
|
15197
15203
|
I.preventDefault(), I.stopPropagation();
|
|
15198
|
-
const { type: B, property: q } = U, Z =
|
|
15204
|
+
const { type: B, property: q } = U, Z = F.id;
|
|
15199
15205
|
if (p.clear(), p.set([Z]), B === "index")
|
|
15200
15206
|
i.value?.open(I);
|
|
15201
15207
|
else if (q) {
|
|
15202
15208
|
if (Object.keys(l.core).includes(q)) return;
|
|
15203
15209
|
const de = l.view.$fields[q];
|
|
15204
15210
|
if (de.domain === "Custom") return;
|
|
15205
|
-
r.value?.open(I,
|
|
15211
|
+
r.value?.open(I, F, de);
|
|
15206
15212
|
}
|
|
15207
15213
|
}
|
|
15208
15214
|
return t({
|
|
15209
15215
|
controller: () => C.value,
|
|
15210
15216
|
getSelection: () => g.value,
|
|
15211
15217
|
get: () => _.value,
|
|
15212
|
-
set: (
|
|
15213
|
-
}), (
|
|
15218
|
+
set: (F) => Ve().then(() => p.set(F))
|
|
15219
|
+
}), (F, U) => {
|
|
15214
15220
|
const T = w("el-text"), I = w("el-result"), B = w("el-table");
|
|
15215
15221
|
return b(), M(H, null, [
|
|
15216
15222
|
m(Go, {
|
|
@@ -15218,7 +15224,7 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15218
15224
|
ticker: e.ticker
|
|
15219
15225
|
}, {
|
|
15220
15226
|
header: f(({ width: q }) => [
|
|
15221
|
-
X(
|
|
15227
|
+
X(F.$slots, "header", { width: q }, () => [
|
|
15222
15228
|
m(T, { tag: "b" }, {
|
|
15223
15229
|
default: f(() => [
|
|
15224
15230
|
S(z(e.title || e.view.$meta_name), 1)
|
|
@@ -15231,7 +15237,7 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15231
15237
|
m(h(D_), ke({
|
|
15232
15238
|
ref_key: "control",
|
|
15233
15239
|
ref: a
|
|
15234
|
-
},
|
|
15240
|
+
}, F.$props, {
|
|
15235
15241
|
selection: h(g),
|
|
15236
15242
|
collector: h(p),
|
|
15237
15243
|
onUpload: U[0] || (U[0] = (Z) => d.value?.open())
|
|
@@ -15254,7 +15260,7 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15254
15260
|
}, null, 8, ["size", "page", "total", "width"])
|
|
15255
15261
|
]),
|
|
15256
15262
|
"footer-tool": f(({ width: q }) => [
|
|
15257
|
-
m(h(ng), ke(
|
|
15263
|
+
m(h(ng), ke(F.$props, {
|
|
15258
15264
|
collection: h(_),
|
|
15259
15265
|
collector: h(p),
|
|
15260
15266
|
width: q
|
|
@@ -15294,20 +15300,20 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15294
15300
|
"max-height": e.view.table_height,
|
|
15295
15301
|
"tooltip-options": h(y),
|
|
15296
15302
|
size: e.size || "small",
|
|
15297
|
-
onCellClick:
|
|
15303
|
+
onCellClick: P,
|
|
15298
15304
|
onCellContextmenu: $,
|
|
15299
15305
|
"row-class-name": h(D),
|
|
15300
15306
|
"cell-class-name": h(V),
|
|
15301
15307
|
"tooltip-formatter": h(E)
|
|
15302
15308
|
}, {
|
|
15303
15309
|
default: f(() => [
|
|
15304
|
-
m(vg, ke(
|
|
15310
|
+
m(vg, ke(F.$props, {
|
|
15305
15311
|
frame: A.value,
|
|
15306
15312
|
collector: h(p),
|
|
15307
15313
|
collection: h(_),
|
|
15308
15314
|
onMeta: U[4] || (U[4] = (q) => o("meta", q))
|
|
15309
15315
|
}), null, 16, ["frame", "collector", "collection"]),
|
|
15310
|
-
m(gg, ke(
|
|
15316
|
+
m(gg, ke(F.$props, {
|
|
15311
15317
|
collector: h(p),
|
|
15312
15318
|
frame: A.value,
|
|
15313
15319
|
collection: h(_),
|
|
@@ -15336,28 +15342,28 @@ const W_ = /* @__PURE__ */ R({
|
|
|
15336
15342
|
m(h(I_), ke({
|
|
15337
15343
|
ref_key: "index",
|
|
15338
15344
|
ref: i
|
|
15339
|
-
},
|
|
15345
|
+
}, F.$props, {
|
|
15340
15346
|
selection: h(g),
|
|
15341
15347
|
controller: C.value
|
|
15342
15348
|
}), null, 16, ["selection", "controller"]),
|
|
15343
15349
|
m(h(B_), ke({
|
|
15344
15350
|
ref_key: "lookup",
|
|
15345
15351
|
ref: c
|
|
15346
|
-
},
|
|
15352
|
+
}, F.$props), null, 16),
|
|
15347
15353
|
m(h(R_), ke({
|
|
15348
15354
|
ref_key: "cell",
|
|
15349
15355
|
ref: r
|
|
15350
|
-
},
|
|
15356
|
+
}, F.$props, {
|
|
15351
15357
|
onSpecial: u.value?.open
|
|
15352
15358
|
}), null, 16, ["onSpecial"]),
|
|
15353
15359
|
m(h(P_), ke({
|
|
15354
15360
|
ref_key: "special",
|
|
15355
15361
|
ref: u
|
|
15356
|
-
},
|
|
15362
|
+
}, F.$props, { collector: h(p) }), null, 16, ["collector"]),
|
|
15357
15363
|
m(h(Q_), ke({
|
|
15358
15364
|
ref_key: "upload",
|
|
15359
15365
|
ref: d
|
|
15360
|
-
},
|
|
15366
|
+
}, F.$props, {
|
|
15361
15367
|
onConfirm: U[8] || (U[8] = (q) => e.rest.save_many(q))
|
|
15362
15368
|
}), null, 16)
|
|
15363
15369
|
], 64);
|
|
@@ -15560,9 +15566,9 @@ function kg(e, t) {
|
|
|
15560
15566
|
return A;
|
|
15561
15567
|
}
|
|
15562
15568
|
function s(C) {
|
|
15563
|
-
const
|
|
15564
|
-
if (
|
|
15565
|
-
const $ =
|
|
15569
|
+
const P = e.value.mapping[C].children;
|
|
15570
|
+
if (P.length) {
|
|
15571
|
+
const $ = P.map((F) => s(F.id)).reduce((F, U) => [...F, ...U], []);
|
|
15566
15572
|
return [C, ...$];
|
|
15567
15573
|
}
|
|
15568
15574
|
return [];
|
|
@@ -15571,7 +15577,7 @@ function kg(e, t) {
|
|
|
15571
15577
|
n.value = n.value.filter((A) => !C.includes(A));
|
|
15572
15578
|
}
|
|
15573
15579
|
function r(C) {
|
|
15574
|
-
const A = C.filter((
|
|
15580
|
+
const A = C.filter((P) => !n.value.includes(P) && o.value.includes(P));
|
|
15575
15581
|
n.value.push(...A);
|
|
15576
15582
|
}
|
|
15577
15583
|
function i(C) {
|
|
@@ -15592,7 +15598,7 @@ function kg(e, t) {
|
|
|
15592
15598
|
}
|
|
15593
15599
|
function _(C) {
|
|
15594
15600
|
if (e.value.expandAll) return;
|
|
15595
|
-
const A = C.map((
|
|
15601
|
+
const A = C.map((P) => l(P)).reduce((P, $) => [...P, ...$], []);
|
|
15596
15602
|
C = [...new Set(A)], r(C);
|
|
15597
15603
|
}
|
|
15598
15604
|
const g = {
|
|
@@ -15603,9 +15609,9 @@ function kg(e, t) {
|
|
|
15603
15609
|
function p(C) {
|
|
15604
15610
|
return !!C.data.id;
|
|
15605
15611
|
}
|
|
15606
|
-
function v(C, A,
|
|
15607
|
-
const $ = C.data,
|
|
15608
|
-
return !U && B !== I && (A.expanded = !0),
|
|
15612
|
+
function v(C, A, P) {
|
|
15613
|
+
const $ = C.data, F = A.data, U = F.isLeaf, T = !!F.children?.length, I = $.id, B = F.id;
|
|
15614
|
+
return !U && B !== I && (A.expanded = !0), P === "inner" ? !U && !T : B != 0;
|
|
15609
15615
|
}
|
|
15610
15616
|
function y(C) {
|
|
15611
15617
|
const A = C.id;
|
|
@@ -15615,9 +15621,9 @@ function kg(e, t) {
|
|
|
15615
15621
|
const A = C.id;
|
|
15616
15622
|
c(A);
|
|
15617
15623
|
}
|
|
15618
|
-
function V(C, A,
|
|
15619
|
-
const
|
|
15620
|
-
if (
|
|
15624
|
+
function V(C, A, P, $) {
|
|
15625
|
+
const F = C.data, U = A.data, T = F.id, I = U.id;
|
|
15626
|
+
if (P === "inner") {
|
|
15621
15627
|
const B = {
|
|
15622
15628
|
id: T,
|
|
15623
15629
|
pid: I
|
|
@@ -16039,10 +16045,10 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16039
16045
|
emits: ["meta", "table"],
|
|
16040
16046
|
setup(e, { expose: t, emit: n }) {
|
|
16041
16047
|
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:
|
|
16048
|
+
const { $fields: P, $modes: $ } = l.view, F = c.value, U = P[F], T = l.view.$modes[F];
|
|
16043
16049
|
return U || (T ? i(T) : new ge());
|
|
16044
16050
|
}), _ = x("");
|
|
16045
|
-
J(_, (
|
|
16051
|
+
J(_, (P) => s.value.filter(P));
|
|
16046
16052
|
const {
|
|
16047
16053
|
collection: g,
|
|
16048
16054
|
selection: p,
|
|
@@ -16052,26 +16058,26 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16052
16058
|
expansion: E,
|
|
16053
16059
|
ui: V
|
|
16054
16060
|
} = kg(u, s);
|
|
16055
|
-
function D(
|
|
16056
|
-
return ($[c.value] || "").includes(
|
|
16061
|
+
function D(P, $, F) {
|
|
16062
|
+
return ($[c.value] || "").includes(P);
|
|
16057
16063
|
}
|
|
16058
|
-
function C(
|
|
16059
|
-
const T =
|
|
16060
|
-
|
|
16064
|
+
function C(P, $, F, U) {
|
|
16065
|
+
const T = P.id;
|
|
16066
|
+
P.children.length ? y.toggle(T) : l.single ? v.set(T) : v.toggle(T);
|
|
16061
16067
|
}
|
|
16062
|
-
function A(
|
|
16063
|
-
|
|
16064
|
-
const
|
|
16065
|
-
v.set(
|
|
16068
|
+
function A(P, $) {
|
|
16069
|
+
P.preventDefault(), P.stopPropagation();
|
|
16070
|
+
const F = $.id;
|
|
16071
|
+
v.set(F), r.value?.open(P, $);
|
|
16066
16072
|
}
|
|
16067
16073
|
return t({
|
|
16068
16074
|
selection: p,
|
|
16069
16075
|
get: () => g.value,
|
|
16070
|
-
set: (
|
|
16071
|
-
v.set(...
|
|
16076
|
+
set: (P) => Ve().then(() => {
|
|
16077
|
+
v.set(...P), y.set(P);
|
|
16072
16078
|
})
|
|
16073
|
-
}), (
|
|
16074
|
-
const
|
|
16079
|
+
}), (P, $) => {
|
|
16080
|
+
const F = w("el-divider"), U = w("el-text"), T = w("el-space"), I = w("el-tree");
|
|
16075
16081
|
return b(), M(H, null, [
|
|
16076
16082
|
m(Go, {
|
|
16077
16083
|
loading: e.loading,
|
|
@@ -16086,8 +16092,8 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16086
16092
|
disclosure: h(y),
|
|
16087
16093
|
onMeta: $[0] || ($[0] = (q) => o("meta", q))
|
|
16088
16094
|
}, null, 8, ["collection", "expansion", "collector", "disclosure"]),
|
|
16089
|
-
m(
|
|
16090
|
-
X(
|
|
16095
|
+
m(F, { direction: "vertical" }),
|
|
16096
|
+
X(P.$slots, "header", { width: B }, () => [
|
|
16091
16097
|
m(U, { tag: "b" }, {
|
|
16092
16098
|
default: f(() => [
|
|
16093
16099
|
S(z(e.view.$meta_name), 1)
|
|
@@ -16097,7 +16103,7 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16097
16103
|
])
|
|
16098
16104
|
]),
|
|
16099
16105
|
"header-tool": f(({ width: B }) => [
|
|
16100
|
-
m(yg, ke(
|
|
16106
|
+
m(yg, ke(P.$props, {
|
|
16101
16107
|
modelValue: _.value,
|
|
16102
16108
|
"onUpdate:modelValue": $[1] || ($[1] = (q) => _.value = q),
|
|
16103
16109
|
collector: h(v),
|
|
@@ -16143,16 +16149,16 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16143
16149
|
data: B,
|
|
16144
16150
|
field: d.value
|
|
16145
16151
|
}, null, 8, ["node", "data", "field"]),
|
|
16146
|
-
X(
|
|
16152
|
+
X(P.$slots, "prefix", {
|
|
16147
16153
|
isLeaf: B.isLeaf,
|
|
16148
16154
|
node: q,
|
|
16149
16155
|
data: B
|
|
16150
16156
|
}, () => [
|
|
16151
|
-
B.isLeaf ? X(
|
|
16157
|
+
B.isLeaf ? X(P.$slots, "prefix-leaf", {
|
|
16152
16158
|
key: 0,
|
|
16153
16159
|
node: q,
|
|
16154
16160
|
data: B
|
|
16155
|
-
}) : X(
|
|
16161
|
+
}) : X(P.$slots, "prefix-branch", {
|
|
16156
16162
|
key: 1,
|
|
16157
16163
|
node: q,
|
|
16158
16164
|
data: B
|
|
@@ -16163,22 +16169,22 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16163
16169
|
}, 1024),
|
|
16164
16170
|
m(T, null, {
|
|
16165
16171
|
default: f(() => [
|
|
16166
|
-
X(
|
|
16172
|
+
X(P.$slots, "suffix", {
|
|
16167
16173
|
isLeaf: B.isLeaf,
|
|
16168
16174
|
node: q,
|
|
16169
16175
|
data: B
|
|
16170
16176
|
}, () => [
|
|
16171
|
-
B.isLeaf ? X(
|
|
16177
|
+
B.isLeaf ? X(P.$slots, "suffix-leaf", {
|
|
16172
16178
|
key: 0,
|
|
16173
16179
|
node: q,
|
|
16174
16180
|
data: B
|
|
16175
|
-
}) : X(
|
|
16181
|
+
}) : X(P.$slots, "suffix-branch", {
|
|
16176
16182
|
key: 1,
|
|
16177
16183
|
node: q,
|
|
16178
16184
|
data: B
|
|
16179
16185
|
})
|
|
16180
16186
|
]),
|
|
16181
|
-
m($g, ke(
|
|
16187
|
+
m($g, ke(P.$props, {
|
|
16182
16188
|
data: B,
|
|
16183
16189
|
collector: h(v)
|
|
16184
16190
|
}), null, 16, ["data", "collector"])
|
|
@@ -16195,11 +16201,11 @@ const Eg = /* @__PURE__ */ R({
|
|
|
16195
16201
|
m(h(xg), ke({
|
|
16196
16202
|
ref_key: "batch",
|
|
16197
16203
|
ref: a
|
|
16198
|
-
},
|
|
16204
|
+
}, P.$props, { field: d.value }), null, 16, ["field"]),
|
|
16199
16205
|
m(h(Og), ke({
|
|
16200
16206
|
ref_key: "node",
|
|
16201
16207
|
ref: r
|
|
16202
|
-
},
|
|
16208
|
+
}, P.$props, {
|
|
16203
16209
|
field: d.value,
|
|
16204
16210
|
onTable: $[3] || ($[3] = (B) => o("table", B)),
|
|
16205
16211
|
onBatch: a.value?.open
|
|
@@ -16693,8 +16699,8 @@ const Dr = /* @__PURE__ */ R({
|
|
|
16693
16699
|
window.open(`${p}/${l.value}`, "_blank");
|
|
16694
16700
|
}
|
|
16695
16701
|
function y(D) {
|
|
16696
|
-
const { name: C, size: A } = D,
|
|
16697
|
-
return (u.value === "*" ? !0 : r.value.accept.includes(
|
|
16702
|
+
const { name: C, size: A } = D, P = C.indexOf(".") !== -1 ? `.${C.split(".").pop()}` : "", $ = [];
|
|
16703
|
+
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
16704
|
}
|
|
16699
16705
|
function E(D) {
|
|
16700
16706
|
D.payload ? (l.value = D.payload, o("reload"), Q.success("上传成功!")) : V(), s.value?.clearFiles();
|
|
@@ -16703,7 +16709,7 @@ const Dr = /* @__PURE__ */ R({
|
|
|
16703
16709
|
Q.error("上传失败");
|
|
16704
16710
|
}
|
|
16705
16711
|
return (D, C) => {
|
|
16706
|
-
const A = w("el-upload"),
|
|
16712
|
+
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
16713
|
return b(), M(H, null, [
|
|
16708
16714
|
Ye(m(A, {
|
|
16709
16715
|
ref_key: "upload",
|
|
@@ -16730,7 +16736,7 @@ const Dr = /* @__PURE__ */ R({
|
|
|
16730
16736
|
S(z(c.value), 1)
|
|
16731
16737
|
]),
|
|
16732
16738
|
default: f(() => [
|
|
16733
|
-
m(
|
|
16739
|
+
m(P, {
|
|
16734
16740
|
size: "small",
|
|
16735
16741
|
truncated: "",
|
|
16736
16742
|
style: { width: "100px" }
|
|
@@ -16743,7 +16749,7 @@ const Dr = /* @__PURE__ */ R({
|
|
|
16743
16749
|
]),
|
|
16744
16750
|
_: 1
|
|
16745
16751
|
}),
|
|
16746
|
-
m(
|
|
16752
|
+
m(F, { direction: "vertical" }),
|
|
16747
16753
|
e.field.allow_edit && !e.disabled ? (b(), k(h(W), {
|
|
16748
16754
|
key: 0,
|
|
16749
16755
|
icon: "folder-open",
|
|
@@ -16788,7 +16794,7 @@ const Dr = /* @__PURE__ */ R({
|
|
|
16788
16794
|
placeholder: "无文件..."
|
|
16789
16795
|
}, {
|
|
16790
16796
|
suffix: f(() => [
|
|
16791
|
-
m(
|
|
16797
|
+
m(F, { direction: "vertical" }),
|
|
16792
16798
|
m(h(W), {
|
|
16793
16799
|
icon: "folder-open",
|
|
16794
16800
|
type: "warning",
|
|
@@ -17423,7 +17429,7 @@ function Kg(e, t) {
|
|
|
17423
17429
|
options: D,
|
|
17424
17430
|
mapping: C,
|
|
17425
17431
|
total: A
|
|
17426
|
-
} = pr(o), { toAoa:
|
|
17432
|
+
} = pr(o), { toAoa: P } = Ae(g), { toText: $ } = gt(), { copy: F } = At(), { write: U } = Ut();
|
|
17427
17433
|
return {
|
|
17428
17434
|
view: g,
|
|
17429
17435
|
search: n,
|
|
@@ -17453,8 +17459,8 @@ function Kg(e, t) {
|
|
|
17453
17459
|
},
|
|
17454
17460
|
download: () => {
|
|
17455
17461
|
l.find(..._.value).then((I) => {
|
|
17456
|
-
const B =
|
|
17457
|
-
De.info("请选择数据下载方式:", q).then(() =>
|
|
17462
|
+
const B = P(I), q = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" }, Z = e.value.title || g.value.$meta_name;
|
|
17463
|
+
De.info("请选择数据下载方式:", q).then(() => F($(B))).then(() => Q.success("数据已存至剪切板")).catch(() => U(Z || _t(), { data: B, name: Z }));
|
|
17458
17464
|
});
|
|
17459
17465
|
}
|
|
17460
17466
|
},
|
|
@@ -18306,7 +18312,7 @@ const Yg = /* @__PURE__ */ R({
|
|
|
18306
18312
|
]),
|
|
18307
18313
|
_: 1
|
|
18308
18314
|
}),
|
|
18309
|
-
(b(), M(H, null, se(c, (A,
|
|
18315
|
+
(b(), M(H, null, se(c, (A, P) => m(y, { span: 8 }, {
|
|
18310
18316
|
default: f(() => [
|
|
18311
18317
|
m(v, {
|
|
18312
18318
|
label: A,
|
|
@@ -18314,12 +18320,12 @@ const Yg = /* @__PURE__ */ R({
|
|
|
18314
18320
|
}, {
|
|
18315
18321
|
default: f(() => [
|
|
18316
18322
|
m(D, {
|
|
18317
|
-
disabled:
|
|
18323
|
+
disabled: P === "value" && d.value.value || d.value.all,
|
|
18318
18324
|
filterable: "",
|
|
18319
18325
|
clearable: "",
|
|
18320
18326
|
"value-on-clear": "",
|
|
18321
|
-
modelValue: o.value[
|
|
18322
|
-
"onUpdate:modelValue": ($) => o.value[
|
|
18327
|
+
modelValue: o.value[P],
|
|
18328
|
+
"onUpdate:modelValue": ($) => o.value[P] = $
|
|
18323
18329
|
}, {
|
|
18324
18330
|
default: f(() => [
|
|
18325
18331
|
(b(!0), M(H, null, se(_.value, ($) => (b(), k(V, {
|
|
@@ -18594,15 +18600,15 @@ const Yg = /* @__PURE__ */ R({
|
|
|
18594
18600
|
expandTrigger: "hover",
|
|
18595
18601
|
lazyLoad(c, d) {
|
|
18596
18602
|
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 `${
|
|
18603
|
+
const { db: P, entity: $ } = A.data;
|
|
18604
|
+
return `${P}.${$}`;
|
|
18599
18605
|
}) : [], V = _ ? c.pathValues : [];
|
|
18600
18606
|
E.push(`${p}.${v}`);
|
|
18601
18607
|
const { db: D, entity: C } = y;
|
|
18602
18608
|
o("valar/get_fields", { db: D, entity: C, route: E }).then((A) => {
|
|
18603
|
-
A.forEach((
|
|
18604
|
-
const $ = [...V,
|
|
18605
|
-
|
|
18609
|
+
A.forEach((P) => {
|
|
18610
|
+
const $ = [...V, P.value].join("__");
|
|
18611
|
+
P.disabled = s.value.includes($);
|
|
18606
18612
|
}), d(A);
|
|
18607
18613
|
});
|
|
18608
18614
|
}
|
|
@@ -19420,15 +19426,15 @@ const Yg = /* @__PURE__ */ R({
|
|
|
19420
19426
|
options: V,
|
|
19421
19427
|
rest: D,
|
|
19422
19428
|
switching: C
|
|
19423
|
-
} = Kg(a, (
|
|
19424
|
-
o.value?.set(
|
|
19429
|
+
} = Kg(a, (P) => {
|
|
19430
|
+
o.value?.set(P);
|
|
19425
19431
|
});
|
|
19426
19432
|
return t({
|
|
19427
19433
|
rest: D,
|
|
19428
19434
|
view: () => u.value,
|
|
19429
19435
|
controller: i,
|
|
19430
19436
|
getSelection: () => o.value?.getSelection() || []
|
|
19431
|
-
}), (
|
|
19437
|
+
}), (P, $) => (b(), M(H, null, [
|
|
19432
19438
|
m(h(Vr), {
|
|
19433
19439
|
ref_key: "table",
|
|
19434
19440
|
ref: o,
|
|
@@ -19453,8 +19459,8 @@ const Yg = /* @__PURE__ */ R({
|
|
|
19453
19459
|
onMeta: l.value?.open,
|
|
19454
19460
|
onField: s.value?.open
|
|
19455
19461
|
}, {
|
|
19456
|
-
header: f(({ width:
|
|
19457
|
-
X(
|
|
19462
|
+
header: f(({ width: F }) => [
|
|
19463
|
+
X(P.$slots, "header", { width: F })
|
|
19458
19464
|
]),
|
|
19459
19465
|
_: 3
|
|
19460
19466
|
}, 8, ["view", "rest", "results", "mapping", "total", "search", "finder", "core", "loading", "ticker", "error", "admin", "title", "single", "height", "buttons", "columns", "onMeta", "onField"]),
|
|
@@ -19462,14 +19468,14 @@ const Yg = /* @__PURE__ */ R({
|
|
|
19462
19468
|
ref_key: "meta",
|
|
19463
19469
|
ref: l,
|
|
19464
19470
|
view: h(u),
|
|
19465
|
-
onReload: $[0] || ($[0] = (
|
|
19471
|
+
onReload: $[0] || ($[0] = (F) => h(D).init()),
|
|
19466
19472
|
switching: h(C)
|
|
19467
19473
|
}, null, 8, ["view", "switching"]),
|
|
19468
19474
|
m(nh, {
|
|
19469
19475
|
ref_key: "field",
|
|
19470
19476
|
ref: s,
|
|
19471
19477
|
view: h(u),
|
|
19472
|
-
onReload: $[1] || ($[1] = (
|
|
19478
|
+
onReload: $[1] || ($[1] = (F) => h(D).init())
|
|
19473
19479
|
}, null, 8, ["view"])
|
|
19474
19480
|
], 64));
|
|
19475
19481
|
}
|
|
@@ -19556,35 +19562,35 @@ function vh(e, t) {
|
|
|
19556
19562
|
$ = $ || { sort: -1 }, i.value.orders = $, r.value = $;
|
|
19557
19563
|
},
|
|
19558
19564
|
delete_one: ($) => a.delete_many([$]),
|
|
19559
|
-
save_one: ($) => new Promise((
|
|
19565
|
+
save_one: ($) => new Promise((F) => {
|
|
19560
19566
|
const U = { ...$, ..._.value };
|
|
19561
|
-
a.save_many([{ ...$, ..._.value }]),
|
|
19567
|
+
a.save_many([{ ...$, ..._.value }]), F(U);
|
|
19562
19568
|
}),
|
|
19563
|
-
insert_one: ($) => new Promise((
|
|
19569
|
+
insert_one: ($) => new Promise((F) => {
|
|
19564
19570
|
const U = a.insert_one({ ...$, ..._.value });
|
|
19565
|
-
|
|
19571
|
+
F(U);
|
|
19566
19572
|
}),
|
|
19567
|
-
find: ($) => new Promise((
|
|
19573
|
+
find: ($) => new Promise((F) => {
|
|
19568
19574
|
const U = $.map((T) => a.find_one(T));
|
|
19569
|
-
|
|
19575
|
+
F(U);
|
|
19570
19576
|
}),
|
|
19571
19577
|
delete_many: ($) => {
|
|
19572
19578
|
a.delete_many($), t([]);
|
|
19573
19579
|
},
|
|
19574
|
-
values: ($,
|
|
19575
|
-
const T =
|
|
19580
|
+
values: ($, F) => new Promise((U) => {
|
|
19581
|
+
const T = F.map((I) => ve(a.find_one(I), $));
|
|
19576
19582
|
U(T);
|
|
19577
19583
|
}),
|
|
19578
19584
|
save_many: ($) => {
|
|
19579
|
-
const
|
|
19580
|
-
t(
|
|
19585
|
+
const F = a.save_many($);
|
|
19586
|
+
t(F);
|
|
19581
19587
|
},
|
|
19582
|
-
lookup: ($,
|
|
19583
|
-
delete d.value.includes[$], delete d.value.excludes[$],
|
|
19588
|
+
lookup: ($, F) => {
|
|
19589
|
+
delete d.value.includes[$], delete d.value.excludes[$], F && (d.value[F.type][$] = F);
|
|
19584
19590
|
},
|
|
19585
19591
|
download: () => {
|
|
19586
|
-
const $ = V(y.value),
|
|
19587
|
-
De.info("请选择数据下载方式:",
|
|
19592
|
+
const $ = V(y.value), F = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" }, U = n.value.title;
|
|
19593
|
+
De.info("请选择数据下载方式:", F).then(() => C(D($))).then(() => Q.success("数据已存至剪切板")).catch(() => A(U || _t(), { data: $, name: U }));
|
|
19588
19594
|
}
|
|
19589
19595
|
},
|
|
19590
19596
|
orders: r
|
|
@@ -19754,9 +19760,9 @@ function yh(e, t) {
|
|
|
19754
19760
|
reload: v,
|
|
19755
19761
|
save_many: y,
|
|
19756
19762
|
delete_many: E,
|
|
19757
|
-
switch_nodes: ($,
|
|
19763
|
+
switch_nodes: ($, F) => {
|
|
19758
19764
|
console.log($);
|
|
19759
|
-
const U = $.map((T) => ({ id: T, isLeaf:
|
|
19765
|
+
const U = $.map((T) => ({ id: T, isLeaf: F }));
|
|
19760
19766
|
y(U);
|
|
19761
19767
|
}
|
|
19762
19768
|
},
|
|
@@ -19975,25 +19981,25 @@ const bh = /* @__PURE__ */ R({
|
|
|
19975
19981
|
error: D,
|
|
19976
19982
|
rest: C,
|
|
19977
19983
|
switching: A
|
|
19978
|
-
} = yh(s, (
|
|
19979
|
-
a.value?.set(
|
|
19984
|
+
} = yh(s, (F) => {
|
|
19985
|
+
a.value?.set(F);
|
|
19980
19986
|
});
|
|
19981
|
-
function F
|
|
19982
|
-
|
|
19987
|
+
function P(F, U) {
|
|
19988
|
+
F.stopPropagation(), F.preventDefault(), a.value?.set([U]);
|
|
19983
19989
|
}
|
|
19984
|
-
return J(() => a.value?.selection, (
|
|
19990
|
+
return J(() => a.value?.selection, (F) => {
|
|
19985
19991
|
if (l.single) {
|
|
19986
|
-
const U =
|
|
19992
|
+
const U = F?.length === 1 ? F[0] : null;
|
|
19987
19993
|
o("change", U);
|
|
19988
19994
|
} else
|
|
19989
|
-
o("change",
|
|
19995
|
+
o("change", F);
|
|
19990
19996
|
}, { deep: !0 }), t({
|
|
19991
19997
|
manager: d,
|
|
19992
19998
|
rest: C,
|
|
19993
19999
|
getSelection: () => a.value?.selection,
|
|
19994
20000
|
getOptions: () => v.value,
|
|
19995
20001
|
getMapping: () => y.value
|
|
19996
|
-
}), (
|
|
20002
|
+
}), (F, U) => {
|
|
19997
20003
|
const T = w("m-dialog");
|
|
19998
20004
|
return b(), M(H, null, [
|
|
19999
20005
|
m(h(Tg), {
|
|
@@ -20021,49 +20027,49 @@ const bh = /* @__PURE__ */ R({
|
|
|
20021
20027
|
onTable: r.value?.open
|
|
20022
20028
|
}, {
|
|
20023
20029
|
header: f(({ width: I }) => [
|
|
20024
|
-
X(
|
|
20030
|
+
X(F.$slots, "header", { width: I })
|
|
20025
20031
|
]),
|
|
20026
20032
|
prefix: f(({ data: I, node: B, isLeaf: q }) => [
|
|
20027
|
-
X(
|
|
20033
|
+
X(F.$slots, "prefix", {
|
|
20028
20034
|
isLeaf: I.isLeaf,
|
|
20029
20035
|
node: B,
|
|
20030
20036
|
data: I,
|
|
20031
|
-
select:
|
|
20037
|
+
select: P
|
|
20032
20038
|
})
|
|
20033
20039
|
]),
|
|
20034
20040
|
"prefix-leaf": f(({ data: I, node: B }) => [
|
|
20035
|
-
X(
|
|
20041
|
+
X(F.$slots, "prefix-leaf", {
|
|
20036
20042
|
node: B,
|
|
20037
20043
|
data: I,
|
|
20038
|
-
select:
|
|
20044
|
+
select: P
|
|
20039
20045
|
})
|
|
20040
20046
|
]),
|
|
20041
20047
|
"prefix-branch": f(({ data: I, node: B }) => [
|
|
20042
|
-
X(
|
|
20048
|
+
X(F.$slots, "prefix-branch", {
|
|
20043
20049
|
node: B,
|
|
20044
20050
|
data: I,
|
|
20045
|
-
select:
|
|
20051
|
+
select: P
|
|
20046
20052
|
})
|
|
20047
20053
|
]),
|
|
20048
20054
|
suffix: f(({ data: I, node: B, isLeaf: q }) => [
|
|
20049
|
-
X(
|
|
20055
|
+
X(F.$slots, "suffix", {
|
|
20050
20056
|
node: B,
|
|
20051
20057
|
data: I,
|
|
20052
|
-
select:
|
|
20058
|
+
select: P
|
|
20053
20059
|
})
|
|
20054
20060
|
]),
|
|
20055
20061
|
"suffix-leaf": f(({ data: I, node: B }) => [
|
|
20056
|
-
X(
|
|
20062
|
+
X(F.$slots, "suffix-leaf", {
|
|
20057
20063
|
node: B,
|
|
20058
20064
|
data: I,
|
|
20059
|
-
select:
|
|
20065
|
+
select: P
|
|
20060
20066
|
})
|
|
20061
20067
|
]),
|
|
20062
20068
|
"suffix-branch": f(({ data: I, node: B }) => [
|
|
20063
|
-
X(
|
|
20069
|
+
X(F.$slots, "suffix-branch", {
|
|
20064
20070
|
node: B,
|
|
20065
20071
|
data: I,
|
|
20066
|
-
select:
|
|
20072
|
+
select: P
|
|
20067
20073
|
})
|
|
20068
20074
|
]),
|
|
20069
20075
|
_: 3
|