@dazhicheng/ui 1.5.105 → 1.5.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +316 -311
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -343,11 +343,11 @@ const m4 = (e, t) => {
|
|
|
343
343
|
span: ["full", Sr, De, Ie]
|
|
344
344
|
}, Sr, De, Ie], O = () => [Sr, "auto", De, Ie], N = () => ["auto", "min", "max", "fr", De, Ie], j = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], J = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], T = () => ["auto", ...E()], F = () => [Br, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], k = () => [Br, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...E()], Q = () => [Br, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...E()], L = () => [e, De, Ie], Z = () => [...B(), dg, ug, {
|
|
345
345
|
position: [De, Ie]
|
|
346
|
-
}],
|
|
346
|
+
}], le = () => ["no-repeat", {
|
|
347
347
|
repeat: ["", "x", "y", "space", "round"]
|
|
348
348
|
}], Y = () => ["auto", "cover", "contain", q4, Y4, {
|
|
349
349
|
size: [De, Ie]
|
|
350
|
-
}],
|
|
350
|
+
}], ne = () => [Cc, yi, $r], de = () => [
|
|
351
351
|
// Deprecated since Tailwind CSS v4.0.0
|
|
352
352
|
"",
|
|
353
353
|
"none",
|
|
@@ -355,14 +355,14 @@ const m4 = (e, t) => {
|
|
|
355
355
|
s,
|
|
356
356
|
De,
|
|
357
357
|
Ie
|
|
358
|
-
], V = () => ["", Je, yi, $r], H = () => ["solid", "dashed", "dotted", "double"],
|
|
358
|
+
], V = () => ["", Je, yi, $r], H = () => ["solid", "dashed", "dotted", "double"], te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => [Je, Cc, dg, ug], $ = () => [
|
|
359
359
|
// Deprecated since Tailwind CSS v4.0.0
|
|
360
360
|
"",
|
|
361
361
|
"none",
|
|
362
362
|
p,
|
|
363
363
|
De,
|
|
364
364
|
Ie
|
|
365
|
-
], K = () => ["none", Je, De, Ie],
|
|
365
|
+
], K = () => ["none", Je, De, Ie], ae = () => ["none", Je, De, Ie], Ee = () => [Je, De, Ie], be = () => [Br, "full", ...E()];
|
|
366
366
|
return {
|
|
367
367
|
cacheSize: 500,
|
|
368
368
|
theme: {
|
|
@@ -1424,7 +1424,7 @@ const m4 = (e, t) => {
|
|
|
1424
1424
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1425
1425
|
*/
|
|
1426
1426
|
"bg-repeat": [{
|
|
1427
|
-
bg:
|
|
1427
|
+
bg: le()
|
|
1428
1428
|
}],
|
|
1429
1429
|
/**
|
|
1430
1430
|
* Background Size
|
|
@@ -1458,21 +1458,21 @@ const m4 = (e, t) => {
|
|
|
1458
1458
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1459
1459
|
*/
|
|
1460
1460
|
"gradient-from-pos": [{
|
|
1461
|
-
from:
|
|
1461
|
+
from: ne()
|
|
1462
1462
|
}],
|
|
1463
1463
|
/**
|
|
1464
1464
|
* Gradient Color Stops Via Position
|
|
1465
1465
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1466
1466
|
*/
|
|
1467
1467
|
"gradient-via-pos": [{
|
|
1468
|
-
via:
|
|
1468
|
+
via: ne()
|
|
1469
1469
|
}],
|
|
1470
1470
|
/**
|
|
1471
1471
|
* Gradient Color Stops To Position
|
|
1472
1472
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1473
1473
|
*/
|
|
1474
1474
|
"gradient-to-pos": [{
|
|
1475
|
-
to:
|
|
1475
|
+
to: ne()
|
|
1476
1476
|
}],
|
|
1477
1477
|
/**
|
|
1478
1478
|
* Gradient Color Stops From
|
|
@@ -1947,14 +1947,14 @@ const m4 = (e, t) => {
|
|
|
1947
1947
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1948
1948
|
*/
|
|
1949
1949
|
"mix-blend": [{
|
|
1950
|
-
"mix-blend": [...
|
|
1950
|
+
"mix-blend": [...te(), "plus-darker", "plus-lighter"]
|
|
1951
1951
|
}],
|
|
1952
1952
|
/**
|
|
1953
1953
|
* Background Blend Mode
|
|
1954
1954
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1955
1955
|
*/
|
|
1956
1956
|
"bg-blend": [{
|
|
1957
|
-
"bg-blend":
|
|
1957
|
+
"bg-blend": te()
|
|
1958
1958
|
}],
|
|
1959
1959
|
/**
|
|
1960
1960
|
* Mask Clip
|
|
@@ -2129,7 +2129,7 @@ const m4 = (e, t) => {
|
|
|
2129
2129
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2130
2130
|
*/
|
|
2131
2131
|
"mask-repeat": [{
|
|
2132
|
-
mask:
|
|
2132
|
+
mask: le()
|
|
2133
2133
|
}],
|
|
2134
2134
|
/**
|
|
2135
2135
|
* Mask Size
|
|
@@ -2468,28 +2468,28 @@ const m4 = (e, t) => {
|
|
|
2468
2468
|
* @see https://tailwindcss.com/docs/scale
|
|
2469
2469
|
*/
|
|
2470
2470
|
scale: [{
|
|
2471
|
-
scale:
|
|
2471
|
+
scale: ae()
|
|
2472
2472
|
}],
|
|
2473
2473
|
/**
|
|
2474
2474
|
* Scale X
|
|
2475
2475
|
* @see https://tailwindcss.com/docs/scale
|
|
2476
2476
|
*/
|
|
2477
2477
|
"scale-x": [{
|
|
2478
|
-
"scale-x":
|
|
2478
|
+
"scale-x": ae()
|
|
2479
2479
|
}],
|
|
2480
2480
|
/**
|
|
2481
2481
|
* Scale Y
|
|
2482
2482
|
* @see https://tailwindcss.com/docs/scale
|
|
2483
2483
|
*/
|
|
2484
2484
|
"scale-y": [{
|
|
2485
|
-
"scale-y":
|
|
2485
|
+
"scale-y": ae()
|
|
2486
2486
|
}],
|
|
2487
2487
|
/**
|
|
2488
2488
|
* Scale Z
|
|
2489
2489
|
* @see https://tailwindcss.com/docs/scale
|
|
2490
2490
|
*/
|
|
2491
2491
|
"scale-z": [{
|
|
2492
|
-
"scale-z":
|
|
2492
|
+
"scale-z": ae()
|
|
2493
2493
|
}],
|
|
2494
2494
|
/**
|
|
2495
2495
|
* Scale 3D
|
|
@@ -3227,8 +3227,8 @@ function A1(e, t, r, o, n) {
|
|
|
3227
3227
|
var j, J, T, F, k, Q;
|
|
3228
3228
|
const d = u.clientX, A = u.clientY, { x: g, y: p } = Dp(i.style.transform), h = ((J = (j = n.value) == null ? void 0 : j.draggableLimit) == null ? void 0 : J[1]) || 50, m = ((F = (T = n.value) == null ? void 0 : T.draggableLimit) == null ? void 0 : F[2]) || 50, w = ((Q = (k = n.value) == null ? void 0 : k.draggableLimit) == null ? void 0 : Q[3]) || 50, y = i.getBoundingClientRect(), D = y.left, B = y.top, b = y.width, C = document.documentElement.clientWidth, v = document.documentElement.clientHeight, E = -D - b + w + g, I = -B + p, x = C - D - h + g, R = v - B - m + p, O = (L) => {
|
|
3229
3229
|
requestAnimationFrame(() => {
|
|
3230
|
-
const Z = Math.min(Math.max(g + L.clientX - d, E), x),
|
|
3231
|
-
i.style.transform = `translate(${zo(Z)}, ${zo(
|
|
3230
|
+
const Z = Math.min(Math.max(g + L.clientX - d, E), x), le = Math.min(Math.max(p + L.clientY - A, I), R);
|
|
3231
|
+
i.style.transform = `translate(${zo(Z)}, ${zo(le)})`;
|
|
3232
3232
|
});
|
|
3233
3233
|
}, N = () => {
|
|
3234
3234
|
document.removeEventListener("mousemove", O), document.removeEventListener("mouseup", N);
|
|
@@ -5372,11 +5372,11 @@ const PE = /* @__PURE__ */ me({
|
|
|
5372
5372
|
const o = e, n = r, { prefixCls: i } = pt("select-table"), a = qn("vxelist"), l = qn("table"), c = qn("resizableBar"), s = _(!1), u = In(), d = _(""), A = _(!1);
|
|
5373
5373
|
let g = null;
|
|
5374
5374
|
const p = _([]), h = _(!1), m = S(() => {
|
|
5375
|
-
var Y,
|
|
5375
|
+
var Y, ne;
|
|
5376
5376
|
return {
|
|
5377
5377
|
maxHeight: Yp,
|
|
5378
5378
|
minHeight: Jp,
|
|
5379
|
-
showHeader: ((Y = o.grid) == null ? void 0 : Y.showHeader) !== void 0 ? o.grid.showHeader : ((
|
|
5379
|
+
showHeader: ((Y = o.grid) == null ? void 0 : Y.showHeader) !== void 0 ? o.grid.showHeader : ((ne = f(y)) == null ? void 0 : ne.length) > 1 && !!o.list.length,
|
|
5380
5380
|
virtualYConfig: {
|
|
5381
5381
|
enabled: !0,
|
|
5382
5382
|
gt: 30,
|
|
@@ -5389,24 +5389,24 @@ const PE = /* @__PURE__ */ me({
|
|
|
5389
5389
|
data: o.list
|
|
5390
5390
|
};
|
|
5391
5391
|
}), w = S(() => o.list.filter((Y) => Y.checked)), y = S(() => {
|
|
5392
|
-
var
|
|
5393
|
-
return (de = (
|
|
5392
|
+
var ne, de, V, H;
|
|
5393
|
+
return (de = (ne = o.grid) == null ? void 0 : ne.columns) != null && de.length ? (V = o.grid) == null ? void 0 : V.columns : [{ title: "label", field: ((H = o.configProps) == null ? void 0 : H.labelField) ?? "label" }];
|
|
5394
5394
|
});
|
|
5395
|
-
function D(Y,
|
|
5395
|
+
function D(Y, ne) {
|
|
5396
5396
|
Y.stopPropagation(), Y.preventDefault(), s.value = !0;
|
|
5397
|
-
const { clientX: de } = Y, V = Y.target, H = V.parentNode,
|
|
5397
|
+
const { clientX: de } = Y, V = Y.target, H = V.parentNode, te = l.value, G = V.getBoundingClientRect(), $ = te == null ? void 0 : te.getBoundingClientRect(), K = V.clientWidth, ae = Math.floor(K / 2), Ee = Ic(G.x).sub(($ == null ? void 0 : $.x) || 0).add(ae).toNumber();
|
|
5398
5398
|
let be = 0, Ve = H.clientWidth;
|
|
5399
|
-
const at = Ic(Ee).sub(Ve).add(
|
|
5399
|
+
const at = Ic(Ee).sub(Ve).add(ne.minWidth || 50).toNumber(), Tt = c.value;
|
|
5400
5400
|
if (!Tt) return;
|
|
5401
5401
|
Tt.style.left = `${Ee}px`, Tt.style.zIndex = "9999";
|
|
5402
5402
|
const cn = Tt.querySelector(".vxe-table--resizable-number-tip");
|
|
5403
5403
|
Ut(), document.onmousemove = un, document.onmouseup = function() {
|
|
5404
|
-
document.onmousemove = null, document.onmouseup = null, s.value = !1,
|
|
5404
|
+
document.onmousemove = null, document.onmouseup = null, s.value = !1, ne.style.width = `${Ve}px`;
|
|
5405
5405
|
};
|
|
5406
5406
|
function un(vn) {
|
|
5407
5407
|
vn.stopPropagation(), vn.preventDefault();
|
|
5408
5408
|
const dn = vn.clientX - de, Jn = Ee + dn;
|
|
5409
|
-
be = Math.max(Jn, at), Tt && (Tt.style.left = `${be}px`, Ve = Math.max(Ic(H.clientWidth).add(dn).toNumber(),
|
|
5409
|
+
be = Math.max(Jn, at), Tt && (Tt.style.left = `${be}px`, Ve = Math.max(Ic(H.clientWidth).add(dn).toNumber(), ne.minWidth), Ut());
|
|
5410
5410
|
}
|
|
5411
5411
|
function Ut() {
|
|
5412
5412
|
cn.textContent = `宽:${Ve}像素`;
|
|
@@ -5416,14 +5416,14 @@ const PE = /* @__PURE__ */ me({
|
|
|
5416
5416
|
n("checkbox-all", { checked: Y });
|
|
5417
5417
|
}
|
|
5418
5418
|
function b(Y) {
|
|
5419
|
-
var
|
|
5420
|
-
Y.disabled || Y.isDelete || (F(), Y.isCurrent = !0, Y.checked = !Y.checked, o.multiple ? n("checkbox-change", { checked: Y.checked, row: Y }) : n("radio-change", { oldValue: (
|
|
5419
|
+
var ne;
|
|
5420
|
+
Y.disabled || Y.isDelete || (F(), Y.isCurrent = !0, Y.checked = !Y.checked, o.multiple ? n("checkbox-change", { checked: Y.checked, row: Y }) : n("radio-change", { oldValue: (ne = w.value) == null ? void 0 : ne[0], row: Y }));
|
|
5421
5421
|
}
|
|
5422
|
-
function C(Y,
|
|
5423
|
-
if (!
|
|
5422
|
+
function C(Y, ne) {
|
|
5423
|
+
if (!ne.disabled && !ne.isDelete) return;
|
|
5424
5424
|
const de = Y.currentTarget;
|
|
5425
5425
|
if (!de) return;
|
|
5426
|
-
const V =
|
|
5426
|
+
const V = ne.message;
|
|
5427
5427
|
V && (g && (clearTimeout(g), g = null), u.value = de, d.value = V, A.value = !0);
|
|
5428
5428
|
}
|
|
5429
5429
|
function v() {
|
|
@@ -5431,10 +5431,10 @@ const PE = /* @__PURE__ */ me({
|
|
|
5431
5431
|
A.value || (u.value = void 0, d.value = ""), g = null;
|
|
5432
5432
|
}, 300);
|
|
5433
5433
|
}
|
|
5434
|
-
function E(Y,
|
|
5434
|
+
function E(Y, ne) {
|
|
5435
5435
|
Array.isArray(Y) ? Y.forEach((de) => {
|
|
5436
|
-
de.checked =
|
|
5437
|
-
}) : Y.checked =
|
|
5436
|
+
de.checked = ne;
|
|
5437
|
+
}) : Y.checked = ne;
|
|
5438
5438
|
}
|
|
5439
5439
|
function I() {
|
|
5440
5440
|
o.list.forEach((Y) => {
|
|
@@ -5445,29 +5445,29 @@ const PE = /* @__PURE__ */ me({
|
|
|
5445
5445
|
Y && (Y.checked = !0);
|
|
5446
5446
|
}
|
|
5447
5447
|
function R() {
|
|
5448
|
-
const Y = o.list.find((
|
|
5448
|
+
const Y = o.list.find((ne) => ne.checked);
|
|
5449
5449
|
Y && (Y.checked = !1);
|
|
5450
5450
|
}
|
|
5451
|
-
function O(Y,
|
|
5451
|
+
function O(Y, ne) {
|
|
5452
5452
|
var de;
|
|
5453
|
-
(de = a.value) == null || de.scrollTo(Y,
|
|
5453
|
+
(de = a.value) == null || de.scrollTo(Y, ne);
|
|
5454
5454
|
}
|
|
5455
5455
|
function N() {
|
|
5456
5456
|
return o.list.find((Y) => Y.isCurrent);
|
|
5457
5457
|
}
|
|
5458
5458
|
function j(Y) {
|
|
5459
|
-
return o.list.findIndex((
|
|
5459
|
+
return o.list.findIndex((ne) => ne.value === (Y == null ? void 0 : Y.value));
|
|
5460
5460
|
}
|
|
5461
5461
|
function J(Y) {
|
|
5462
5462
|
var $, K;
|
|
5463
|
-
const
|
|
5463
|
+
const ne = j(Y), de = ($ = a.value) == null ? void 0 : $.$el.querySelector(".vxe-list--virtual-wrapper"), V = de.clientHeight, H = (K = de.querySelector(".vxe-body--row")) == null ? void 0 : K.clientHeight, te = Math.floor(V / H - 2), G = (ne - te) * H;
|
|
5464
5464
|
O(null, G);
|
|
5465
5465
|
}
|
|
5466
5466
|
function T(Y) {
|
|
5467
5467
|
F(), Y.isCurrent = !0;
|
|
5468
5468
|
}
|
|
5469
5469
|
function F() {
|
|
5470
|
-
const Y = o.list.find((
|
|
5470
|
+
const Y = o.list.find((ne) => ne.isCurrent);
|
|
5471
5471
|
Y && (Y.isCurrent = !1);
|
|
5472
5472
|
}
|
|
5473
5473
|
function k(Y) {
|
|
@@ -5479,15 +5479,15 @@ const PE = /* @__PURE__ */ me({
|
|
|
5479
5479
|
return ((V = f(y)) == null ? void 0 : V.length) * 130 < o.selectWidth ? Y : 130;
|
|
5480
5480
|
}
|
|
5481
5481
|
function L(Y) {
|
|
5482
|
-
const { scrollTop:
|
|
5483
|
-
|
|
5482
|
+
const { scrollTop: ne, $event: de } = Y, V = de.target.scrollHeight;
|
|
5483
|
+
ne > 100 && ne + m.value.maxHeight >= V && !o.loading && Z(), n("scroll", Y);
|
|
5484
5484
|
}
|
|
5485
5485
|
const Z = Wc(() => {
|
|
5486
|
-
const { total: Y, currentPage:
|
|
5487
|
-
(Y && o.list.length < Y || o.hasNextPage) && (o.setPagination({ currentPage:
|
|
5486
|
+
const { total: Y, currentPage: ne = 0 } = o.getPagination();
|
|
5487
|
+
(Y && o.list.length < Y || o.hasNextPage) && (o.setPagination({ currentPage: ne + 1 }), ye(() => {
|
|
5488
5488
|
o.reload();
|
|
5489
5489
|
}));
|
|
5490
|
-
}, 200),
|
|
5490
|
+
}, 200), le = {
|
|
5491
5491
|
clearCurrentRow: F,
|
|
5492
5492
|
setCheckboxRow: E,
|
|
5493
5493
|
clearCheckboxRow: I,
|
|
@@ -5503,15 +5503,15 @@ const PE = /* @__PURE__ */ me({
|
|
|
5503
5503
|
return ue(
|
|
5504
5504
|
() => o.grid.columns,
|
|
5505
5505
|
() => {
|
|
5506
|
-
const Y = f(y),
|
|
5507
|
-
o.multiple && o.showCheckbox &&
|
|
5506
|
+
const Y = f(y), ne = kt(Y) || [];
|
|
5507
|
+
o.multiple && o.showCheckbox && ne.unshift({
|
|
5508
5508
|
width: 40,
|
|
5509
5509
|
type: "checkbox",
|
|
5510
5510
|
field: "checkbox"
|
|
5511
5511
|
});
|
|
5512
5512
|
const de = Q();
|
|
5513
|
-
p.value =
|
|
5514
|
-
const H = Y.length <= 1 ? o.selectWidth : V.minWidth || V.width || de,
|
|
5513
|
+
p.value = ne.map((V) => {
|
|
5514
|
+
const H = Y.length <= 1 ? o.selectWidth : V.minWidth || V.width || de, te = Y.length <= 1 ? o.selectWidth : V.width || de, G = V.type ? V.width : te, $ = {};
|
|
5515
5515
|
return G && ($.width = `${G}px`), {
|
|
5516
5516
|
...V,
|
|
5517
5517
|
title: (V.title, V.title),
|
|
@@ -5528,9 +5528,9 @@ const PE = /* @__PURE__ */ me({
|
|
|
5528
5528
|
h.value = Y.length === o.list.length;
|
|
5529
5529
|
}
|
|
5530
5530
|
), t({
|
|
5531
|
-
getGridInstance: () =>
|
|
5532
|
-
...
|
|
5533
|
-
}), (Y,
|
|
5531
|
+
getGridInstance: () => le,
|
|
5532
|
+
...le
|
|
5533
|
+
}), (Y, ne) => (P(), ve(f(d4), xe({
|
|
5534
5534
|
ref: "vxelist",
|
|
5535
5535
|
style: { height: "auto", "max-height": "360px" },
|
|
5536
5536
|
class: {
|
|
@@ -5545,7 +5545,7 @@ const PE = /* @__PURE__ */ me({
|
|
|
5545
5545
|
m.value.showHeader ? (P(), se("thead", GE, [
|
|
5546
5546
|
Ae("tr", YE, [
|
|
5547
5547
|
(P(!0), se(rt, null, We(p.value, (V) => {
|
|
5548
|
-
var H,
|
|
5548
|
+
var H, te, G;
|
|
5549
5549
|
return P(), se("th", {
|
|
5550
5550
|
key: V.field,
|
|
5551
5551
|
class: "vxe-header--column fixed--width is--padding",
|
|
@@ -5555,8 +5555,8 @@ const PE = /* @__PURE__ */ me({
|
|
|
5555
5555
|
V.type === "checkbox" ? (P(), ve(f(fo), {
|
|
5556
5556
|
key: 0,
|
|
5557
5557
|
modelValue: h.value,
|
|
5558
|
-
"onUpdate:modelValue":
|
|
5559
|
-
indeterminate: ((H = w.value) == null ? void 0 : H.length) > 0 && ((
|
|
5558
|
+
"onUpdate:modelValue": ne[0] || (ne[0] = ($) => h.value = $),
|
|
5559
|
+
indeterminate: ((H = w.value) == null ? void 0 : H.length) > 0 && ((te = w.value) == null ? void 0 : te.length) < ((G = o.list) == null ? void 0 : G.length),
|
|
5560
5560
|
onChange: B
|
|
5561
5561
|
}, null, 8, ["modelValue", "indeterminate"])) : (P(), se(rt, { key: 1 }, [
|
|
5562
5562
|
wt(ot(V.title), 1)
|
|
@@ -5577,7 +5577,7 @@ const PE = /* @__PURE__ */ me({
|
|
|
5577
5577
|
])
|
|
5578
5578
|
])) : Me("", !0),
|
|
5579
5579
|
(P(!0), se(rt, null, We(de, (V, H) => {
|
|
5580
|
-
var
|
|
5580
|
+
var te;
|
|
5581
5581
|
return P(), se("tr", {
|
|
5582
5582
|
key: V.value,
|
|
5583
5583
|
class: he(["vxe-body--row", {
|
|
@@ -5590,15 +5590,15 @@ const PE = /* @__PURE__ */ me({
|
|
|
5590
5590
|
onMouseenter: (G) => C(G, V),
|
|
5591
5591
|
onMouseleave: v
|
|
5592
5592
|
}, [
|
|
5593
|
-
(
|
|
5594
|
-
var K,
|
|
5593
|
+
(te = p.value) != null && te.length ? (P(!0), se(rt, { key: 0 }, We(p.value, (G, $) => {
|
|
5594
|
+
var K, ae, Ee;
|
|
5595
5595
|
return P(), se("td", {
|
|
5596
5596
|
key: G.field,
|
|
5597
5597
|
class: "is--padding vxe-body--column col--ellipsis",
|
|
5598
5598
|
style: It(G.style)
|
|
5599
5599
|
}, [
|
|
5600
5600
|
Ae("div", qE, [
|
|
5601
|
-
(K = G.slots) != null && K.default ? ie(Y.$slots, (
|
|
5601
|
+
(K = G.slots) != null && K.default ? ie(Y.$slots, (ae = G.slots) == null ? void 0 : ae.default, {
|
|
5602
5602
|
key: 0,
|
|
5603
5603
|
item: { column: G, row: V.item, rowIndex: H, columnIndex: $ }
|
|
5604
5604
|
}) : G.type === "checkbox" ? (P(), ve(f(fo), {
|
|
@@ -5626,7 +5626,7 @@ const PE = /* @__PURE__ */ me({
|
|
|
5626
5626
|
Ae("div", {
|
|
5627
5627
|
ref: "resizableBar",
|
|
5628
5628
|
class: he(["vxe-table--resizable-col-bar", { "block!": s.value }])
|
|
5629
|
-
}, [...
|
|
5629
|
+
}, [...ne[1] || (ne[1] = [
|
|
5630
5630
|
Ae("div", { class: "vxe-table--resizable-number-tip" }, null, -1)
|
|
5631
5631
|
])], 2),
|
|
5632
5632
|
q(f(Nr), {
|
|
@@ -5998,26 +5998,26 @@ function uI(e, t, r) {
|
|
|
5998
5998
|
const o = _([]), n = _(""), i = _(!0), a = _([]), l = _(-1), c = _(!1), s = _(!1), u = _(!1), d = _(!1), A = S(() => f(e).isGrpc ? f(e).totalFieldGrpc || "total" : f(e).totalField || "data.pagination.total"), g = S(() => f(e).isGrpc ? f(e).dataFieldGrpc || "items" : f(e).dataField || "data"), p = S(() => f(e).isGrpc ? f(e).resultFieldGrpc || "items" : f(e).resultField || "data.list"), h = S(() => f(e).searchField || "keyword"), m = S(() => f(e).valueField || "value"), w = S(() => f(e).labelField || "label"), y = S(() => f(e).mergeFields || []), D = S(() => f(e).isGrpc ? f(e).currentPageFieldGrpc || "page.index" : f(e).currentPageField || "pageIndex"), B = S(() => f(e).isGrpc ? f(e).pageSizeFieldGrpc || "page.size" : f(e).pageSizeField || "pageSize"), b = S(() => f(e).deleteField || ""), C = S(() => f(e).messageField || ""), v = S(() => f(e).hasNextPageField), E = S(() => f(e).immediate || !1), I = S(() => f(e).changeDataClearable || !1), x = S(() => f(e).defaultSingle), R = S(() => f(e).isSelectFirstOption), O = S(() => f(s) || f(c));
|
|
5999
5999
|
let N = f(e).isPage ?? !0;
|
|
6000
6000
|
async function j(H) {
|
|
6001
|
-
const
|
|
6002
|
-
return
|
|
6001
|
+
const te = f(e).afterFetch;
|
|
6002
|
+
return te && Se(te) ? await te(H) : H;
|
|
6003
6003
|
}
|
|
6004
|
-
function J(H,
|
|
6004
|
+
function J(H, te) {
|
|
6005
6005
|
const G = xt(H, f(v) || ""), $ = xt(H, f(A) || "") !== void 0;
|
|
6006
|
-
return { shouldPage: G ||
|
|
6006
|
+
return { shouldPage: G || te && $, hasNextPage: G };
|
|
6007
6007
|
}
|
|
6008
|
-
function T(H,
|
|
6009
|
-
t.setHasNextPage(G), t.setShowPager(
|
|
6008
|
+
function T(H, te, G) {
|
|
6009
|
+
t.setHasNextPage(G), t.setShowPager(te || G), te && t.setPagination({
|
|
6010
6010
|
total: xt(H, f(A) || "") || 0
|
|
6011
6011
|
});
|
|
6012
6012
|
}
|
|
6013
|
-
function F(H,
|
|
6014
|
-
const G =
|
|
6013
|
+
function F(H, te) {
|
|
6014
|
+
const G = te || W(d) ? f(p) || "" : f(g) || "";
|
|
6015
6015
|
return xt(H, G) || [];
|
|
6016
6016
|
}
|
|
6017
6017
|
async function k(H) {
|
|
6018
|
-
const
|
|
6019
|
-
N = G, T(
|
|
6020
|
-
const K = F(
|
|
6018
|
+
const te = await j(H), { shouldPage: G, hasNextPage: $ } = J(te, N);
|
|
6019
|
+
N = G, T(te, G, $);
|
|
6020
|
+
const K = F(te, G);
|
|
6021
6021
|
d.value = $, Z(K), r("fetch-success", K);
|
|
6022
6022
|
}
|
|
6023
6023
|
async function Q() {
|
|
@@ -6028,18 +6028,18 @@ function uI(e, t, r) {
|
|
|
6028
6028
|
type: "error",
|
|
6029
6029
|
plain: !0
|
|
6030
6030
|
});
|
|
6031
|
-
const { defaultData: H } = f(e), { extra:
|
|
6031
|
+
const { defaultData: H } = f(e), { extra: te } = f(t), { currentPage: G, pageSize: $ } = t.getPagination() || {}, K = {};
|
|
6032
6032
|
N && (Pr(K, f(D) || "", G || 1), Pr(K, f(B) || "", $));
|
|
6033
|
-
let
|
|
6033
|
+
let ae = {
|
|
6034
6034
|
...K,
|
|
6035
|
-
...W(
|
|
6035
|
+
...W(te),
|
|
6036
6036
|
...f(H)
|
|
6037
6037
|
};
|
|
6038
|
-
Pr(
|
|
6038
|
+
Pr(ae, f(h), f(n)), t.setLoading(!0);
|
|
6039
6039
|
const Ee = f(e).beforeFetch;
|
|
6040
|
-
Ee && Se(Ee) && (
|
|
6040
|
+
Ee && Se(Ee) && (ae = await Ee(ae));
|
|
6041
6041
|
try {
|
|
6042
|
-
const at = await ((Ve = (be = f(e)) == null ? void 0 : be.api) == null ? void 0 : Ve.call(be,
|
|
6042
|
+
const at = await ((Ve = (be = f(e)) == null ? void 0 : be.api) == null ? void 0 : Ve.call(be, ae).finally(() => {
|
|
6043
6043
|
t.setLoading(!1);
|
|
6044
6044
|
}));
|
|
6045
6045
|
await k(at), i.value = !1, c.value = !1, s.value = !1;
|
|
@@ -6048,10 +6048,10 @@ function uI(e, t, r) {
|
|
|
6048
6048
|
}
|
|
6049
6049
|
}
|
|
6050
6050
|
function L(H) {
|
|
6051
|
-
var
|
|
6051
|
+
var ae, Ee;
|
|
6052
6052
|
if (H.isDelete)
|
|
6053
6053
|
return !0;
|
|
6054
|
-
const
|
|
6054
|
+
const te = f(e).disableFn && Se(f(e).disableFn), G = f(m), $ = io(H[G]) ? H.value : H[G], K = te ? (Ee = (ae = f(e)).disableFn) == null ? void 0 : Ee.call(ae, $, W(t.selectValue), H) : H.disabled;
|
|
6055
6055
|
if (f(t).multiple && f(t.multipleLimit)) {
|
|
6056
6056
|
const be = W(t.selectValue) || [];
|
|
6057
6057
|
return K || (f(t.multipleLimit) || 0) > 0 && be.length >= (f(t.multipleLimit) || 0) && !be.includes($);
|
|
@@ -6059,18 +6059,18 @@ function uI(e, t, r) {
|
|
|
6059
6059
|
return K;
|
|
6060
6060
|
}
|
|
6061
6061
|
function Z(H) {
|
|
6062
|
-
function
|
|
6062
|
+
function te(ae) {
|
|
6063
6063
|
var Ee;
|
|
6064
6064
|
if (co(f(y)) && f(y).length > 0) {
|
|
6065
|
-
const be = (Ee = f(y)) == null ? void 0 : Ee.map((at) =>
|
|
6065
|
+
const be = (Ee = f(y)) == null ? void 0 : Ee.map((at) => ae[at]), Ve = f(e).joinFn;
|
|
6066
6066
|
return Ve && Se(Ve) ? Ve(be) : be.join("-");
|
|
6067
6067
|
}
|
|
6068
|
-
return
|
|
6068
|
+
return ae[f(w)];
|
|
6069
6069
|
}
|
|
6070
|
-
function G(
|
|
6070
|
+
function G(ae) {
|
|
6071
6071
|
var be;
|
|
6072
|
-
const Ee = { ...
|
|
6073
|
-
return io(
|
|
6072
|
+
const Ee = { ...ae, mergeLabel: te(ae) };
|
|
6073
|
+
return io(ae) ? ae : {
|
|
6074
6074
|
item: Ee,
|
|
6075
6075
|
// 遍历列字段,将对应的值添加到结果中-TODO: 这里可以优化都是用table这里可以去掉
|
|
6076
6076
|
...(be = t.columnsFields) == null ? void 0 : be.reduce((Ve, at) => (Ve[at] = Ee[at], Ve), {}),
|
|
@@ -6081,12 +6081,12 @@ function uI(e, t, r) {
|
|
|
6081
6081
|
...f(b) ? { isDelete: !!Ee[f(b)] || !1 } : {}
|
|
6082
6082
|
};
|
|
6083
6083
|
}
|
|
6084
|
-
let $ = H.map((
|
|
6085
|
-
f(e).isFilterEmpty && ($ = $.filter((
|
|
6084
|
+
let $ = H.map((ae) => G(ae));
|
|
6085
|
+
f(e).isFilterEmpty && ($ = $.filter((ae) => ae.value));
|
|
6086
6086
|
const { currentPage: K } = t.getPagination() || {};
|
|
6087
6087
|
if (K === 1) {
|
|
6088
|
-
const
|
|
6089
|
-
|
|
6088
|
+
const ae = f(e).customDefault;
|
|
6089
|
+
ae && $.unshift(G(ae)), o.value = $, de(-1), setTimeout(() => {
|
|
6090
6090
|
var Ee;
|
|
6091
6091
|
if (f(t.multiple)) {
|
|
6092
6092
|
const be = t.getKeyboardEvent && ((Ee = t.getKeyboardEvent) == null ? void 0 : Ee.call(t));
|
|
@@ -6097,13 +6097,13 @@ function uI(e, t, r) {
|
|
|
6097
6097
|
o.value = [...o.value, ...$];
|
|
6098
6098
|
a.value = kt(f(o));
|
|
6099
6099
|
}
|
|
6100
|
-
const
|
|
6100
|
+
const le = li(Q, 300);
|
|
6101
6101
|
async function Y() {
|
|
6102
6102
|
f(e).api && (n.value = "", t.setPagination({
|
|
6103
6103
|
currentPage: 1
|
|
6104
6104
|
}), await Q());
|
|
6105
6105
|
}
|
|
6106
|
-
async function
|
|
6106
|
+
async function ne(H) {
|
|
6107
6107
|
n.value = H;
|
|
6108
6108
|
}
|
|
6109
6109
|
function de(H) {
|
|
@@ -6116,25 +6116,25 @@ function uI(e, t, r) {
|
|
|
6116
6116
|
}
|
|
6117
6117
|
return ue(
|
|
6118
6118
|
() => f(n),
|
|
6119
|
-
(H,
|
|
6120
|
-
H !==
|
|
6119
|
+
(H, te) => {
|
|
6120
|
+
H !== te && (t.setPagination({
|
|
6121
6121
|
currentPage: 1
|
|
6122
|
-
}),
|
|
6122
|
+
}), le());
|
|
6123
6123
|
}
|
|
6124
6124
|
), ue(
|
|
6125
6125
|
() => o.value,
|
|
6126
6126
|
() => {
|
|
6127
6127
|
f(u) && (f(I) && ye(() => {
|
|
6128
|
-
var
|
|
6129
|
-
const H = t.getSelectEvent && ((
|
|
6128
|
+
var te;
|
|
6129
|
+
const H = t.getSelectEvent && ((te = t.getSelectEvent) == null ? void 0 : te.call(t));
|
|
6130
6130
|
H && H.clear();
|
|
6131
6131
|
}), u.value = !1);
|
|
6132
6132
|
},
|
|
6133
6133
|
{ deep: !0 }
|
|
6134
6134
|
), ue(
|
|
6135
6135
|
() => kt(f(e).data),
|
|
6136
|
-
(H,
|
|
6137
|
-
const G = ll({ data: H }, { data:
|
|
6136
|
+
(H, te = []) => {
|
|
6137
|
+
const G = ll({ data: H }, { data: te });
|
|
6138
6138
|
u.value = !!G, !f(e).api && co(H) && G && (t.setPagination({
|
|
6139
6139
|
currentPage: 1
|
|
6140
6140
|
}), Z(H), i.value = !1);
|
|
@@ -6142,22 +6142,22 @@ function uI(e, t, r) {
|
|
|
6142
6142
|
{ immediate: !0 }
|
|
6143
6143
|
), ue(
|
|
6144
6144
|
() => W(f(t).extra),
|
|
6145
|
-
async (H,
|
|
6146
|
-
const G = ll(H,
|
|
6145
|
+
async (H, te) => {
|
|
6146
|
+
const G = ll(H, te, f(e).watchExtraField || []);
|
|
6147
6147
|
s.value = !!G, G && f(E) && await Y();
|
|
6148
6148
|
},
|
|
6149
6149
|
{ deep: !0 }
|
|
6150
6150
|
), ue(
|
|
6151
6151
|
() => W(f(e).defaultData),
|
|
6152
|
-
async (H,
|
|
6153
|
-
const G = ll(H,
|
|
6152
|
+
async (H, te) => {
|
|
6153
|
+
const G = ll(H, te);
|
|
6154
6154
|
c.value = !!G, G && f(E) && await Y();
|
|
6155
6155
|
},
|
|
6156
6156
|
{ deep: !0 }
|
|
6157
6157
|
), ue(
|
|
6158
6158
|
() => f(e).defaultChecked,
|
|
6159
|
-
(H,
|
|
6160
|
-
ll(H,
|
|
6159
|
+
(H, te) => {
|
|
6160
|
+
ll(H, te) && i.value && (H && co(H) ? Z(H) : H && Z([H]));
|
|
6161
6161
|
},
|
|
6162
6162
|
{ deep: !0, immediate: !0 }
|
|
6163
6163
|
), {
|
|
@@ -6171,7 +6171,7 @@ function uI(e, t, r) {
|
|
|
6171
6171
|
searchValue: n,
|
|
6172
6172
|
isLoaded: i,
|
|
6173
6173
|
dataList: a,
|
|
6174
|
-
setSearchValue:
|
|
6174
|
+
setSearchValue: ne,
|
|
6175
6175
|
activeIndex: l,
|
|
6176
6176
|
setActiveIndex: de,
|
|
6177
6177
|
needLoad: O,
|
|
@@ -6762,7 +6762,7 @@ const mI = ["title"], pI = /* @__PURE__ */ me({
|
|
|
6762
6762
|
getPagination: C,
|
|
6763
6763
|
setSelectValue: at,
|
|
6764
6764
|
multiple: o.selectProps.multiple,
|
|
6765
|
-
getKeyboardEvent: () =>
|
|
6765
|
+
getKeyboardEvent: () => ae,
|
|
6766
6766
|
columnsFields: f(w),
|
|
6767
6767
|
setHasNextPage: E,
|
|
6768
6768
|
getSelectEvent: () => K,
|
|
@@ -6770,7 +6770,7 @@ const mI = ["title"], pI = /* @__PURE__ */ me({
|
|
|
6770
6770
|
selectValue: c,
|
|
6771
6771
|
renderType: o.renderType,
|
|
6772
6772
|
multipleLimit: S(() => o.selectProps.multipleLimit)
|
|
6773
|
-
}, n),
|
|
6773
|
+
}, n), le = S(() => {
|
|
6774
6774
|
if (i.disabled !== void 0)
|
|
6775
6775
|
return !!i.disabled;
|
|
6776
6776
|
if (o.disabled || o.configProps.disabled)
|
|
@@ -6779,17 +6779,17 @@ const mI = ["title"], pI = /* @__PURE__ */ me({
|
|
|
6779
6779
|
return an(ke) && ke.length > 0 ? ke.some((Ze) => !!(Ze != null && Ze.condition)) : Kt(ke) ? !!ke.condition : !1;
|
|
6780
6780
|
}), {
|
|
6781
6781
|
getOtherSelectProps: Y,
|
|
6782
|
-
calcMaxCollapseTags:
|
|
6782
|
+
calcMaxCollapseTags: ne,
|
|
6783
6783
|
calcSelectWidth: de,
|
|
6784
6784
|
selectWidth: V,
|
|
6785
6785
|
showPopup: H,
|
|
6786
|
-
setShowPopup:
|
|
6786
|
+
setShowPopup: te,
|
|
6787
6787
|
getSelectWidth: G
|
|
6788
6788
|
} = fI(S(() => o.selectProps), {
|
|
6789
6789
|
collapse: o.configProps.collapse,
|
|
6790
6790
|
selectOption: s,
|
|
6791
6791
|
selectRef: a,
|
|
6792
|
-
disabled:
|
|
6792
|
+
disabled: le,
|
|
6793
6793
|
autoSelectWidth: o.configProps.autoSelectWidth,
|
|
6794
6794
|
showPager: D,
|
|
6795
6795
|
isFilterMethod: o.configProps.isFilterMethod,
|
|
@@ -6800,12 +6800,12 @@ const mI = ["title"], pI = /* @__PURE__ */ me({
|
|
|
6800
6800
|
columnsFields: f(w),
|
|
6801
6801
|
allowCreate: ((Er = o.selectProps) == null ? void 0 : Er.allowCreate) || !1,
|
|
6802
6802
|
setSearchValue: N,
|
|
6803
|
-
getKeyboardEvent: () =>
|
|
6803
|
+
getKeyboardEvent: () => ae,
|
|
6804
6804
|
setActiveIndex: J
|
|
6805
6805
|
}), {
|
|
6806
6806
|
gridEvent: $,
|
|
6807
6807
|
selectEvent: K,
|
|
6808
|
-
keyboardEvent:
|
|
6808
|
+
keyboardEvent: ae,
|
|
6809
6809
|
defaultDataSelect: Ee
|
|
6810
6810
|
} = gI(S(() => o), {
|
|
6811
6811
|
tableRef: l,
|
|
@@ -6826,7 +6826,7 @@ const mI = ["title"], pI = /* @__PURE__ */ me({
|
|
|
6826
6826
|
hasNextPage: v,
|
|
6827
6827
|
getDefaultSingle: T,
|
|
6828
6828
|
showPopup: H,
|
|
6829
|
-
setShowPopup:
|
|
6829
|
+
setShowPopup: te,
|
|
6830
6830
|
needLoad: k,
|
|
6831
6831
|
dataNoBindValueClear: o.configProps.dataNoBindValueClear,
|
|
6832
6832
|
checkedClearSearchValue: o.configProps.checkedClearSearchValue,
|
|
@@ -6904,11 +6904,11 @@ const mI = ["title"], pI = /* @__PURE__ */ me({
|
|
|
6904
6904
|
}), [[mo, o.disabledTip]]);
|
|
6905
6905
|
}
|
|
6906
6906
|
ue(() => s.value, () => {
|
|
6907
|
-
|
|
6907
|
+
ne();
|
|
6908
6908
|
}, {
|
|
6909
6909
|
deep: !0
|
|
6910
6910
|
}), i4(a, () => {
|
|
6911
|
-
|
|
6911
|
+
ne(), V.value = G();
|
|
6912
6912
|
});
|
|
6913
6913
|
function Ut(ke) {
|
|
6914
6914
|
try {
|
|
@@ -7598,11 +7598,11 @@ const eh = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.o
|
|
|
7598
7598
|
};
|
|
7599
7599
|
return f(p) ? f(p) : K[f(h)] ? K[f(h)] : "500px";
|
|
7600
7600
|
}), Q = S(() => {
|
|
7601
|
-
const K = _p(F),
|
|
7601
|
+
const K = _p(F), ae = gn(l, ["onVisibleChange", "onClose", "onClosed", "onOk", "onReceiveSharedData"]);
|
|
7602
7602
|
return {
|
|
7603
7603
|
appendToBody: !0,
|
|
7604
7604
|
...Gn(K, Object.keys(JA)),
|
|
7605
|
-
...
|
|
7605
|
+
...ae,
|
|
7606
7606
|
modelValue: f(A),
|
|
7607
7607
|
width: f(k),
|
|
7608
7608
|
destroyOnClose: !0,
|
|
@@ -7623,8 +7623,8 @@ const eh = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.o
|
|
|
7623
7623
|
showOkBtn: f(O)
|
|
7624
7624
|
})), Z = S(() => {
|
|
7625
7625
|
var be, Ve;
|
|
7626
|
-
const K = (be = f(E)) == null ? void 0 : be.disabled,
|
|
7627
|
-
return K ||
|
|
7626
|
+
const K = (be = f(E)) == null ? void 0 : be.disabled, ae = f(N), Ee = ((Ve = f(E)) == null ? void 0 : Ve.disabledTip) || [];
|
|
7627
|
+
return K || ae ? [!0, Ee] : [!1, []];
|
|
7628
7628
|
});
|
|
7629
7629
|
ue(
|
|
7630
7630
|
() => {
|
|
@@ -7632,8 +7632,8 @@ const eh = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.o
|
|
|
7632
7632
|
return (K = d.value) == null ? void 0 : K.visible;
|
|
7633
7633
|
},
|
|
7634
7634
|
(K) => {
|
|
7635
|
-
var
|
|
7636
|
-
K !== A.value && (n("visible-change", !!K), n("update:visible", !!K)), c && ((
|
|
7635
|
+
var ae;
|
|
7636
|
+
K !== A.value && (n("visible-change", !!K), n("update:visible", !!K)), c && ((ae = G.emitVisible) == null || ae.call(G, !!K, c == null ? void 0 : c.uid)), K || u.changeOkLoading(!1);
|
|
7637
7637
|
},
|
|
7638
7638
|
{
|
|
7639
7639
|
immediate: !1
|
|
@@ -7641,22 +7641,22 @@ const eh = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.o
|
|
|
7641
7641
|
), ue(
|
|
7642
7642
|
() => f(A),
|
|
7643
7643
|
(K) => {
|
|
7644
|
-
var
|
|
7645
|
-
K !== ((
|
|
7644
|
+
var ae;
|
|
7645
|
+
K !== ((ae = d.value) == null ? void 0 : ae.visible) && u.setState({ visible: K }), K || u.changeOkLoading(!1);
|
|
7646
7646
|
},
|
|
7647
7647
|
{
|
|
7648
7648
|
immediate: !1
|
|
7649
7649
|
}
|
|
7650
7650
|
);
|
|
7651
|
-
function
|
|
7651
|
+
function le(K) {
|
|
7652
7652
|
s.value = K;
|
|
7653
7653
|
}
|
|
7654
7654
|
function Y() {
|
|
7655
|
-
document.querySelectorAll(".el-select__popper").forEach((
|
|
7656
|
-
|
|
7655
|
+
document.querySelectorAll(".el-select__popper").forEach((ae) => {
|
|
7656
|
+
ae.style.display !== "none" && (ae.style.display = "none");
|
|
7657
7657
|
});
|
|
7658
7658
|
}
|
|
7659
|
-
function
|
|
7659
|
+
function ne(K) {
|
|
7660
7660
|
return K.toLowerCase().includes("modal") ? K : `modal-${K}`;
|
|
7661
7661
|
}
|
|
7662
7662
|
function de() {
|
|
@@ -7667,16 +7667,16 @@ const eh = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.o
|
|
|
7667
7667
|
var Ve;
|
|
7668
7668
|
const K = (Ve = d.value) == null ? void 0 : Ve.testId;
|
|
7669
7669
|
if (K)
|
|
7670
|
-
return
|
|
7671
|
-
const
|
|
7672
|
-
if (
|
|
7673
|
-
return
|
|
7670
|
+
return ne(K);
|
|
7671
|
+
const ae = o.testId;
|
|
7672
|
+
if (ae)
|
|
7673
|
+
return ne(ae);
|
|
7674
7674
|
const Ee = de();
|
|
7675
7675
|
if (Ee)
|
|
7676
|
-
return
|
|
7676
|
+
return ne(Ee);
|
|
7677
7677
|
const be = f(g);
|
|
7678
7678
|
return be && typeof be == "string" && be.trim() ? Wt("modal", zl(be)) : c != null && c.uid ? `modal-${c.uid}` : "modal";
|
|
7679
|
-
}), H = S(() => Wt(V.value, "footer")),
|
|
7679
|
+
}), H = S(() => Wt(V.value, "footer")), te = S(() => Wt(V.value, "body"));
|
|
7680
7680
|
Nt("modalIdContext", V);
|
|
7681
7681
|
const G = st({
|
|
7682
7682
|
setModalProps: u.setState,
|
|
@@ -7702,7 +7702,7 @@ const eh = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.o
|
|
|
7702
7702
|
);
|
|
7703
7703
|
}), t({
|
|
7704
7704
|
modalApi: u
|
|
7705
|
-
}), (K,
|
|
7705
|
+
}), (K, ae) => {
|
|
7706
7706
|
var Ee;
|
|
7707
7707
|
return sn((P(), se("div", {
|
|
7708
7708
|
"aria-tt-id": `tt-id-${(Ee = f(c)) == null ? void 0 : Ee.uid}`,
|
|
@@ -7726,8 +7726,8 @@ const eh = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.o
|
|
|
7726
7726
|
loading: f(N),
|
|
7727
7727
|
"loading-tip": f(T),
|
|
7728
7728
|
class: he({ "pb-2!": !f(J) }),
|
|
7729
|
-
"data-testid":
|
|
7730
|
-
onIsScroll:
|
|
7729
|
+
"data-testid": te.value,
|
|
7730
|
+
onIsScroll: le
|
|
7731
7731
|
}, {
|
|
7732
7732
|
default: X(() => [
|
|
7733
7733
|
ie(K.$slots, "default")
|
|
@@ -8098,22 +8098,22 @@ const _I = /* @__PURE__ */ me({
|
|
|
8098
8098
|
}
|
|
8099
8099
|
const g = S(() => i.value.length > e.gridThreshold), p = S(() => e.limit ?? 0), h = S(() => e.uploadOssApi ?? Be.uploadOssApi), m = S(() => e.uploadOssViewApi ?? Be.uploadOssViewApi);
|
|
8100
8100
|
async function w(k, Q) {
|
|
8101
|
-
const Z = `${e.ossDir || Q.dir || "notice"}/${Date.now()}_${k.name}`,
|
|
8102
|
-
|
|
8101
|
+
const Z = `${e.ossDir || Q.dir || "notice"}/${Date.now()}_${k.name}`, le = new FormData();
|
|
8102
|
+
le.append("key", Z), le.append("policy", Q.policy), le.append("x-oss-signature-version", Q.version), le.append("x-oss-signature", Q.signature), le.append("x-oss-credential", Q.x_oss_credential), le.append("x-oss-date", Q.x_oss_date), le.append("x-oss-security-token", Q.security_token), Q.callback && le.append("callback", Q.callback), le.append("success_action_status", "200"), le.append("file", k);
|
|
8103
8103
|
const Y = await fetch(Q.host, {
|
|
8104
8104
|
method: "POST",
|
|
8105
|
-
body:
|
|
8105
|
+
body: le
|
|
8106
8106
|
});
|
|
8107
8107
|
if (!Y.ok && Y.status !== 203)
|
|
8108
8108
|
throw new Error(`OSS 上传失败: ${Y.status}`);
|
|
8109
8109
|
return Z;
|
|
8110
8110
|
}
|
|
8111
8111
|
async function y(k) {
|
|
8112
|
-
var
|
|
8112
|
+
var le;
|
|
8113
8113
|
const Q = k.file, L = URL.createObjectURL(Q), Z = {
|
|
8114
8114
|
fileName: Q.name,
|
|
8115
8115
|
fileSize: Q.size ?? 0,
|
|
8116
|
-
fileSuffix: ((
|
|
8116
|
+
fileSuffix: ((le = Q.name.split(".").pop()) == null ? void 0 : le.toLowerCase()) || "",
|
|
8117
8117
|
file: Q,
|
|
8118
8118
|
uid: Q.uid,
|
|
8119
8119
|
url: L
|
|
@@ -8124,10 +8124,10 @@ const _I = /* @__PURE__ */ me({
|
|
|
8124
8124
|
var L;
|
|
8125
8125
|
const Q = h.value;
|
|
8126
8126
|
try {
|
|
8127
|
-
const Z = await Q(k.file),
|
|
8127
|
+
const Z = await Q(k.file), le = await w(k.file, Z), Y = {
|
|
8128
8128
|
fileName: k.file.name,
|
|
8129
8129
|
ossUploadBaseDir: Z.dir,
|
|
8130
|
-
ossKey:
|
|
8130
|
+
ossKey: le,
|
|
8131
8131
|
fileSize: k.file.size ?? 0,
|
|
8132
8132
|
fileSuffix: ((L = k.file.name.split(".").pop()) == null ? void 0 : L.toLowerCase()) || "",
|
|
8133
8133
|
file: k.file,
|
|
@@ -8161,7 +8161,7 @@ const _I = /* @__PURE__ */ me({
|
|
|
8161
8161
|
const Q = v(k);
|
|
8162
8162
|
if (!Q)
|
|
8163
8163
|
throw new Error("No OssKey");
|
|
8164
|
-
const L = i.value.filter((
|
|
8164
|
+
const L = i.value.filter((le) => v(le) !== Q);
|
|
8165
8165
|
L.length !== i.value.length && A(L), k.file && ((Z = a.value) == null || Z.handleRemove(k.file)), t("delete", k);
|
|
8166
8166
|
}
|
|
8167
8167
|
async function I(k) {
|
|
@@ -8270,7 +8270,7 @@ const _I = /* @__PURE__ */ me({
|
|
|
8270
8270
|
index: Q
|
|
8271
8271
|
}) : g.value ? N(k, Q) : j(k, Q), T = () => {
|
|
8272
8272
|
if (!e.showFileList || i.value.length === 0) return null;
|
|
8273
|
-
const k = i.value.map((Z,
|
|
8273
|
+
const k = i.value.map((Z, le) => J(Z, le)), Q = g.value ? `${n}-filelist__grid` : `${n}-filelist__list`, L = g.value ? {
|
|
8274
8274
|
gridTemplateColumns: `repeat(${e.gridColumns}, 1fr)`
|
|
8275
8275
|
} : void 0;
|
|
8276
8276
|
return q("div", {
|
|
@@ -9525,7 +9525,7 @@ function vh(e, t, r) {
|
|
|
9525
9525
|
v.touched = !0, H && j();
|
|
9526
9526
|
};
|
|
9527
9527
|
async function N(V) {
|
|
9528
|
-
var H,
|
|
9528
|
+
var H, te;
|
|
9529
9529
|
if (m != null && m.validateSchema) {
|
|
9530
9530
|
const { results: G } = await m.validateSchema(V);
|
|
9531
9531
|
return (H = G[W(w)]) !== null && H !== void 0 ? H : { valid: !0, errors: [] };
|
|
@@ -9533,17 +9533,17 @@ function vh(e, t, r) {
|
|
|
9533
9533
|
return y.value ? fh(b.value, y.value, {
|
|
9534
9534
|
name: W(w),
|
|
9535
9535
|
label: W(c),
|
|
9536
|
-
values: (
|
|
9536
|
+
values: (te = m == null ? void 0 : m.values) !== null && te !== void 0 ? te : {},
|
|
9537
9537
|
bails: i
|
|
9538
9538
|
}) : { valid: !0, errors: [] };
|
|
9539
9539
|
}
|
|
9540
|
-
const j = au(async () => (v.pending = !0, v.validated = !0, N("validated-only")), (V) => (x.pendingUnmount[
|
|
9540
|
+
const j = au(async () => (v.pending = !0, v.validated = !0, N("validated-only")), (V) => (x.pendingUnmount[ne.id] || (E({ errors: V.errors }), v.pending = !1, v.valid = V.valid), V)), J = au(async () => N("silent"), (V) => (v.valid = V.valid, V));
|
|
9541
9541
|
function T(V) {
|
|
9542
9542
|
return (V == null ? void 0 : V.mode) === "silent" ? J() : j();
|
|
9543
9543
|
}
|
|
9544
9544
|
function F(V, H = !0) {
|
|
9545
|
-
const
|
|
9546
|
-
Z(
|
|
9545
|
+
const te = Vl(V);
|
|
9546
|
+
Z(te, H);
|
|
9547
9547
|
}
|
|
9548
9548
|
qt(() => {
|
|
9549
9549
|
if (n)
|
|
@@ -9555,10 +9555,10 @@ function vh(e, t, r) {
|
|
|
9555
9555
|
}
|
|
9556
9556
|
function Q(V) {
|
|
9557
9557
|
var H;
|
|
9558
|
-
const
|
|
9558
|
+
const te = V && "value" in V ? V.value : C.value;
|
|
9559
9559
|
E({
|
|
9560
|
-
value: qe(
|
|
9561
|
-
initialValue: qe(
|
|
9560
|
+
value: qe(te),
|
|
9561
|
+
initialValue: qe(te),
|
|
9562
9562
|
touched: (H = V == null ? void 0 : V.touched) !== null && H !== void 0 ? H : !1,
|
|
9563
9563
|
errors: (V == null ? void 0 : V.errors) || []
|
|
9564
9564
|
}), v.pending = !1, v.validated = !1, J();
|
|
@@ -9567,7 +9567,7 @@ function vh(e, t, r) {
|
|
|
9567
9567
|
function Z(V, H = !0) {
|
|
9568
9568
|
b.value = L && g ? lD(V, L.props.modelModifiers) : V, (H ? j : J)();
|
|
9569
9569
|
}
|
|
9570
|
-
function
|
|
9570
|
+
function le(V) {
|
|
9571
9571
|
E({ errors: Array.isArray(V) ? V : [V] });
|
|
9572
9572
|
}
|
|
9573
9573
|
const Y = S({
|
|
@@ -9577,7 +9577,7 @@ function vh(e, t, r) {
|
|
|
9577
9577
|
set(V) {
|
|
9578
9578
|
Z(V, s);
|
|
9579
9579
|
}
|
|
9580
|
-
}),
|
|
9580
|
+
}), ne = {
|
|
9581
9581
|
id: B,
|
|
9582
9582
|
name: w,
|
|
9583
9583
|
label: c,
|
|
@@ -9597,23 +9597,23 @@ function vh(e, t, r) {
|
|
|
9597
9597
|
handleBlur: O,
|
|
9598
9598
|
setState: E,
|
|
9599
9599
|
setTouched: k,
|
|
9600
|
-
setErrors:
|
|
9600
|
+
setErrors: le,
|
|
9601
9601
|
setValue: Z
|
|
9602
9602
|
};
|
|
9603
|
-
if (Nt(ls,
|
|
9603
|
+
if (Nt(ls, ne), go(t) && typeof f(t) != "function" && ue(t, (V, H) => {
|
|
9604
9604
|
Gt(V, H) || (v.validated ? j() : J());
|
|
9605
9605
|
}, {
|
|
9606
9606
|
deep: !0
|
|
9607
|
-
}), process.env.NODE_ENV !== "production" && (
|
|
9607
|
+
}), process.env.NODE_ENV !== "production" && (ne._vm = Sn(), ue(() => Object.assign(Object.assign({ errors: I.value }, v), { value: b.value }), Ko, {
|
|
9608
9608
|
deep: !0
|
|
9609
|
-
}), m || QD(
|
|
9610
|
-
return
|
|
9609
|
+
}), m || QD(ne)), !m)
|
|
9610
|
+
return ne;
|
|
9611
9611
|
const de = S(() => {
|
|
9612
9612
|
const V = y.value;
|
|
9613
|
-
return !V || _t(V) || jl(V) || Vn(V) || Array.isArray(V) ? {} : Object.keys(V).reduce((H,
|
|
9614
|
-
const G = gD(V[
|
|
9615
|
-
const
|
|
9616
|
-
return
|
|
9613
|
+
return !V || _t(V) || jl(V) || Vn(V) || Array.isArray(V) ? {} : Object.keys(V).reduce((H, te) => {
|
|
9614
|
+
const G = gD(V[te]).map(($) => $.__locatorRef).reduce(($, K) => {
|
|
9615
|
+
const ae = Et(m.values, K) || m.values[K];
|
|
9616
|
+
return ae !== void 0 && ($[K] = ae), $;
|
|
9617
9617
|
}, {});
|
|
9618
9618
|
return Object.assign(H, G), H;
|
|
9619
9619
|
}, {});
|
|
@@ -9624,26 +9624,26 @@ function vh(e, t, r) {
|
|
|
9624
9624
|
!Gt(V, H) && (v.validated ? j() : J());
|
|
9625
9625
|
}), ta(() => {
|
|
9626
9626
|
var V;
|
|
9627
|
-
const H = (V = W(
|
|
9628
|
-
if (H || !m || x.pendingUnmount[
|
|
9629
|
-
m == null || m.removePathState(
|
|
9627
|
+
const H = (V = W(ne.keepValueOnUnmount)) !== null && V !== void 0 ? V : W(m.keepValuesOnUnmount), te = W(w);
|
|
9628
|
+
if (H || !m || x.pendingUnmount[ne.id]) {
|
|
9629
|
+
m == null || m.removePathState(te, B);
|
|
9630
9630
|
return;
|
|
9631
9631
|
}
|
|
9632
|
-
x.pendingUnmount[
|
|
9633
|
-
const G = m.getPathState(
|
|
9634
|
-
if (Array.isArray(G == null ? void 0 : G.id) && (G != null && G.multiple) ? G != null && G.id.includes(
|
|
9632
|
+
x.pendingUnmount[ne.id] = !0;
|
|
9633
|
+
const G = m.getPathState(te);
|
|
9634
|
+
if (Array.isArray(G == null ? void 0 : G.id) && (G != null && G.multiple) ? G != null && G.id.includes(ne.id) : (G == null ? void 0 : G.id) === ne.id) {
|
|
9635
9635
|
if (G != null && G.multiple && Array.isArray(G.value)) {
|
|
9636
|
-
const K = G.value.findIndex((
|
|
9636
|
+
const K = G.value.findIndex((ae) => Gt(ae, W(ne.checkedValue)));
|
|
9637
9637
|
if (K > -1) {
|
|
9638
|
-
const
|
|
9639
|
-
|
|
9638
|
+
const ae = [...G.value];
|
|
9639
|
+
ae.splice(K, 1), m.setFieldValue(te, ae);
|
|
9640
9640
|
}
|
|
9641
|
-
Array.isArray(G.id) && G.id.splice(G.id.indexOf(
|
|
9641
|
+
Array.isArray(G.id) && G.id.splice(G.id.indexOf(ne.id), 1);
|
|
9642
9642
|
} else
|
|
9643
9643
|
m.unsetPathValue(W(w));
|
|
9644
|
-
m.removePathState(
|
|
9644
|
+
m.removePathState(te, B);
|
|
9645
9645
|
}
|
|
9646
|
-
}),
|
|
9646
|
+
}), ne;
|
|
9647
9647
|
}
|
|
9648
9648
|
function ND(e) {
|
|
9649
9649
|
const t = () => ({
|
|
@@ -10006,7 +10006,7 @@ function bh(e) {
|
|
|
10006
10006
|
}), Q = [], L = null;
|
|
10007
10007
|
})), L;
|
|
10008
10008
|
}
|
|
10009
|
-
function
|
|
10009
|
+
function le(U) {
|
|
10010
10010
|
return function(re, pe) {
|
|
10011
10011
|
return function(je) {
|
|
10012
10012
|
return je instanceof Event && (je.preventDefault(), je.stopPropagation()), T((Te) => Te.touched = !0), i.value = !0, l.value++, un().then((Te) => {
|
|
@@ -10020,9 +10020,9 @@ function bh(e) {
|
|
|
10020
10020
|
setErrors: h,
|
|
10021
10021
|
setFieldError: p,
|
|
10022
10022
|
setTouched: at,
|
|
10023
|
-
setFieldTouched:
|
|
10023
|
+
setFieldTouched: ae,
|
|
10024
10024
|
setValues: $,
|
|
10025
|
-
setFieldValue:
|
|
10025
|
+
setFieldValue: te,
|
|
10026
10026
|
resetForm: cn,
|
|
10027
10027
|
resetField: Tt
|
|
10028
10028
|
});
|
|
@@ -10039,8 +10039,8 @@ function bh(e) {
|
|
|
10039
10039
|
};
|
|
10040
10040
|
};
|
|
10041
10041
|
}
|
|
10042
|
-
const
|
|
10043
|
-
|
|
10042
|
+
const ne = le(!1);
|
|
10043
|
+
ne.withControlled = le(!0);
|
|
10044
10044
|
function de(U, z) {
|
|
10045
10045
|
const re = u.value.findIndex((Qe) => Qe.path === U && (Array.isArray(Qe.id) ? Qe.id.includes(z) : Qe.id === z)), pe = u.value[re];
|
|
10046
10046
|
if (!(re === -1 || !pe)) {
|
|
@@ -10078,14 +10078,14 @@ function bh(e) {
|
|
|
10078
10078
|
validate: un,
|
|
10079
10079
|
setFieldError: p,
|
|
10080
10080
|
validateField: Ut,
|
|
10081
|
-
setFieldValue:
|
|
10081
|
+
setFieldValue: te,
|
|
10082
10082
|
setValues: $,
|
|
10083
10083
|
setErrors: h,
|
|
10084
|
-
setFieldTouched:
|
|
10084
|
+
setFieldTouched: ae,
|
|
10085
10085
|
setTouched: at,
|
|
10086
10086
|
resetForm: cn,
|
|
10087
10087
|
resetField: Tt,
|
|
10088
|
-
handleSubmit:
|
|
10088
|
+
handleSubmit: ne,
|
|
10089
10089
|
useFieldModel: ke,
|
|
10090
10090
|
defineInputBinds: Ze,
|
|
10091
10091
|
defineComponentBinds: lt,
|
|
@@ -10104,7 +10104,7 @@ function bh(e) {
|
|
|
10104
10104
|
isFieldDirty: be,
|
|
10105
10105
|
isFieldValid: Ve
|
|
10106
10106
|
};
|
|
10107
|
-
function
|
|
10107
|
+
function te(U, z, re = !0) {
|
|
10108
10108
|
const pe = qe(z), Qe = typeof U == "string" ? U : U.path;
|
|
10109
10109
|
F(Qe) || O(Qe), Ht(s, Qe, pe), re && Ut(Qe);
|
|
10110
10110
|
}
|
|
@@ -10112,7 +10112,7 @@ function bh(e) {
|
|
|
10112
10112
|
Cn(s).forEach((re) => {
|
|
10113
10113
|
delete s[re];
|
|
10114
10114
|
}), Cn(U).forEach((re) => {
|
|
10115
|
-
|
|
10115
|
+
te(re, U[re], !1);
|
|
10116
10116
|
}), z && un();
|
|
10117
10117
|
}
|
|
10118
10118
|
function $(U, z = !0) {
|
|
@@ -10127,11 +10127,11 @@ function bh(e) {
|
|
|
10127
10127
|
set(pe) {
|
|
10128
10128
|
var Qe;
|
|
10129
10129
|
const je = W(U);
|
|
10130
|
-
|
|
10130
|
+
te(je, pe, (Qe = W(z)) !== null && Qe !== void 0 ? Qe : !1);
|
|
10131
10131
|
}
|
|
10132
10132
|
});
|
|
10133
10133
|
}
|
|
10134
|
-
function
|
|
10134
|
+
function ae(U, z) {
|
|
10135
10135
|
const re = F(U);
|
|
10136
10136
|
re && (re.touched = z);
|
|
10137
10137
|
}
|
|
@@ -10155,13 +10155,13 @@ function bh(e) {
|
|
|
10155
10155
|
return;
|
|
10156
10156
|
}
|
|
10157
10157
|
Cn(U).forEach((z) => {
|
|
10158
|
-
|
|
10158
|
+
ae(z, !!U[z]);
|
|
10159
10159
|
});
|
|
10160
10160
|
}
|
|
10161
10161
|
function Tt(U, z) {
|
|
10162
10162
|
var re;
|
|
10163
10163
|
const pe = z && "value" in z ? z.value : Et(C.value, U), Qe = F(U);
|
|
10164
|
-
Qe && (Qe.__flags.pendingReset = !0), Jn(U, qe(pe), !0),
|
|
10164
|
+
Qe && (Qe.__flags.pendingReset = !0), Jn(U, qe(pe), !0), te(U, pe, !1), ae(U, (re = z == null ? void 0 : z.touched) !== null && re !== void 0 ? re : !1), p(U, (z == null ? void 0 : z.errors) || []), ye(() => {
|
|
10165
10165
|
Qe && (Qe.__flags.pendingReset = !1);
|
|
10166
10166
|
});
|
|
10167
10167
|
}
|
|
@@ -10169,7 +10169,7 @@ function bh(e) {
|
|
|
10169
10169
|
let re = qe(U != null && U.values ? U.values : v.value);
|
|
10170
10170
|
re = z != null && z.force ? re : $i(v.value, re), re = Vn(R) && _t(R.cast) ? R.cast(re) : re, E(re, { force: z == null ? void 0 : z.force }), T((pe) => {
|
|
10171
10171
|
var Qe;
|
|
10172
|
-
pe.__flags.pendingReset = !0, pe.validated = !1, pe.touched = ((Qe = U == null ? void 0 : U.touched) === null || Qe === void 0 ? void 0 : Qe[W(pe.path)]) || !1,
|
|
10172
|
+
pe.__flags.pendingReset = !0, pe.validated = !1, pe.touched = ((Qe = U == null ? void 0 : U.touched) === null || Qe === void 0 ? void 0 : Qe[W(pe.path)]) || !1, te(W(pe.path), Et(re, W(pe.path)), !1), p(W(pe.path), void 0);
|
|
10173
10173
|
}), z != null && z.force ? G(re, !1) : $(re, !1), h((U == null ? void 0 : U.errors) || {}), l.value = (U == null ? void 0 : U.submitCount) || 0, ye(() => {
|
|
10174
10174
|
un({ mode: "silent" }), T((pe) => {
|
|
10175
10175
|
pe.__flags.pendingReset = !1;
|
|
@@ -10236,7 +10236,7 @@ function bh(e) {
|
|
|
10236
10236
|
});
|
|
10237
10237
|
return a.value = !1, z;
|
|
10238
10238
|
}
|
|
10239
|
-
const So =
|
|
10239
|
+
const So = ne((U, { evt: z }) => {
|
|
10240
10240
|
ch(z) && z.target.submit();
|
|
10241
10241
|
});
|
|
10242
10242
|
qt(() => {
|
|
@@ -10292,11 +10292,11 @@ function bh(e) {
|
|
|
10292
10292
|
}
|
|
10293
10293
|
function je(gt) {
|
|
10294
10294
|
const Dt = Vl(gt);
|
|
10295
|
-
|
|
10295
|
+
te(W(U), Dt, !1), pe.value.onInput();
|
|
10296
10296
|
}
|
|
10297
10297
|
function Te(gt) {
|
|
10298
10298
|
const Dt = Vl(gt);
|
|
10299
|
-
|
|
10299
|
+
te(W(U), Dt, !1), pe.value.onChange();
|
|
10300
10300
|
}
|
|
10301
10301
|
return S(() => Object.assign(Object.assign({}, pe.value), {
|
|
10302
10302
|
onBlur: Qe,
|
|
@@ -22872,7 +22872,7 @@ const px = { class: "flex-auto overflow-hidden" }, hx = {
|
|
|
22872
22872
|
width: `${e.labelWidth}px`
|
|
22873
22873
|
};
|
|
22874
22874
|
}), b = S(() => h.value || e.rules), C = S(() => !e.hide && w.value && D.value), v = S(() => {
|
|
22875
|
-
var Z,
|
|
22875
|
+
var Z, le, Y, ne, de, V;
|
|
22876
22876
|
if (!C.value)
|
|
22877
22877
|
return !1;
|
|
22878
22878
|
if (!b.value)
|
|
@@ -22881,8 +22881,8 @@ const px = { class: "flex-auto overflow-hidden" }, hx = {
|
|
|
22881
22881
|
return !0;
|
|
22882
22882
|
if (On(b.value))
|
|
22883
22883
|
return ["required", "selectRequired"].includes(b.value);
|
|
22884
|
-
let Q = (
|
|
22885
|
-
if (((
|
|
22884
|
+
let Q = (le = (Z = b == null ? void 0 : b.value) == null ? void 0 : Z.isOptional) == null ? void 0 : le.call(Z);
|
|
22885
|
+
if (((ne = (Y = b == null ? void 0 : b.value) == null ? void 0 : Y.def) == null ? void 0 : ne.type) === "ZodDefault") {
|
|
22886
22886
|
const H = (de = b == null ? void 0 : b.value) == null ? void 0 : de._def.innerType;
|
|
22887
22887
|
H && (Q = (V = H.isOptional) == null ? void 0 : V.call(H));
|
|
22888
22888
|
}
|
|
@@ -22897,8 +22897,8 @@ const px = { class: "flex-auto overflow-hidden" }, hx = {
|
|
|
22897
22897
|
if (On(Q))
|
|
22898
22898
|
return Q;
|
|
22899
22899
|
if (!!v.value) {
|
|
22900
|
-
const
|
|
22901
|
-
|
|
22900
|
+
const le = (Z = Q == null ? void 0 : Q.unwrap) == null ? void 0 : Z.call(Q);
|
|
22901
|
+
le && (Q = le);
|
|
22902
22902
|
}
|
|
22903
22903
|
return ox(Q);
|
|
22904
22904
|
}), I = S(() => {
|
|
@@ -22936,16 +22936,16 @@ const px = { class: "flex-auto overflow-hidden" }, hx = {
|
|
|
22936
22936
|
};
|
|
22937
22937
|
});
|
|
22938
22938
|
function j(Q) {
|
|
22939
|
-
var
|
|
22940
|
-
const L = Q.componentField.modelValue, Z = Q.componentField["onUpdate:modelValue"],
|
|
22939
|
+
var ne, de;
|
|
22940
|
+
const L = Q.componentField.modelValue, Z = Q.componentField["onUpdate:modelValue"], le = e.modelPropName || (On(e.component) ? (ne = r.value) == null ? void 0 : ne[e.component] : null);
|
|
22941
22941
|
let Y = L;
|
|
22942
|
-
return L && Kt(L) &&
|
|
22943
|
-
[`onUpdate:${
|
|
22944
|
-
[
|
|
22942
|
+
return L && Kt(L) && le && (Y = mm(L) ? (de = L == null ? void 0 : L.target) == null ? void 0 : de[le] : (L == null ? void 0 : L[le]) ?? L), le ? {
|
|
22943
|
+
[`onUpdate:${le}`]: Z,
|
|
22944
|
+
[le]: Y === void 0 ? e.emptyStateValue : Y,
|
|
22945
22945
|
onChange: e.disabledOnChangeListener ? void 0 : (V) => {
|
|
22946
22946
|
var G, $;
|
|
22947
|
-
const H = mm(V),
|
|
22948
|
-
return H ?
|
|
22947
|
+
const H = mm(V), te = (G = Q == null ? void 0 : Q.componentField) == null ? void 0 : G.onChange;
|
|
22948
|
+
return H ? te == null ? void 0 : te((($ = V == null ? void 0 : V.target) == null ? void 0 : $[le]) ?? V) : te == null ? void 0 : te(V);
|
|
22949
22949
|
},
|
|
22950
22950
|
...e.disabledOnInputListener ? { onInput: void 0 } : {}
|
|
22951
22951
|
} : {
|
|
@@ -23049,11 +23049,11 @@ const px = { class: "flex-auto overflow-hidden" }, hx = {
|
|
|
23049
23049
|
form: A,
|
|
23050
23050
|
fieldName: Q.fieldName
|
|
23051
23051
|
}, { disabled: x.value }), mt({ _: 2 }, [
|
|
23052
|
-
We(O.value, (
|
|
23053
|
-
name:
|
|
23052
|
+
We(O.value, (le) => ({
|
|
23053
|
+
name: le,
|
|
23054
23054
|
fn: X((Y) => [
|
|
23055
23055
|
q(f(Mr), xe({
|
|
23056
|
-
content: R.value[
|
|
23056
|
+
content: R.value[le]
|
|
23057
23057
|
}, { ...Y, formContext: Z }), null, 16, ["content"])
|
|
23058
23058
|
])
|
|
23059
23059
|
}))
|
|
@@ -23540,12 +23540,12 @@ const Cx = /* @__PURE__ */ me({
|
|
|
23540
23540
|
if (c(Q)) return Q;
|
|
23541
23541
|
const L = d.value, Z = r.showCollapseButton && m.value && L ? L <= k : !1;
|
|
23542
23542
|
k++;
|
|
23543
|
-
let
|
|
23543
|
+
let le = Q.formItemClass;
|
|
23544
23544
|
if (Se(Q.formItemClass))
|
|
23545
23545
|
try {
|
|
23546
|
-
|
|
23546
|
+
le = Q.formItemClass();
|
|
23547
23547
|
} catch {
|
|
23548
|
-
|
|
23548
|
+
le = "";
|
|
23549
23549
|
}
|
|
23550
23550
|
return {
|
|
23551
23551
|
colon: D,
|
|
@@ -23566,7 +23566,7 @@ const Cx = /* @__PURE__ */ me({
|
|
|
23566
23566
|
...x,
|
|
23567
23567
|
...Q.formFieldProps
|
|
23568
23568
|
},
|
|
23569
|
-
formItemClass: St("flex-shrink-0", { hidden: Z }, R,
|
|
23569
|
+
formItemClass: St("flex-shrink-0", { hidden: Z }, R, le),
|
|
23570
23570
|
labelClass: St(j, Q.labelClass)
|
|
23571
23571
|
};
|
|
23572
23572
|
});
|
|
@@ -24570,17 +24570,17 @@ const vy = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
24570
24570
|
colon: Q = !1,
|
|
24571
24571
|
componentProps: L = {},
|
|
24572
24572
|
controlClass: Z = "",
|
|
24573
|
-
disabled:
|
|
24573
|
+
disabled: le,
|
|
24574
24574
|
disabledOnChangeListener: Y = !0,
|
|
24575
|
-
disabledOnInputListener:
|
|
24575
|
+
disabledOnInputListener: ne = !0,
|
|
24576
24576
|
emptyStateValue: de = void 0,
|
|
24577
24577
|
formFieldProps: V = {},
|
|
24578
24578
|
formItemClass: H = "",
|
|
24579
|
-
hideLabel:
|
|
24579
|
+
hideLabel: te = !1,
|
|
24580
24580
|
hideRequiredMark: G = !1,
|
|
24581
24581
|
labelClass: $ = "",
|
|
24582
24582
|
labelWidth: K = 70,
|
|
24583
|
-
modelPropName:
|
|
24583
|
+
modelPropName: ae = "",
|
|
24584
24584
|
wrapperClass: Ee = ""
|
|
24585
24585
|
} = B.value;
|
|
24586
24586
|
let be = k.formItemClass;
|
|
@@ -24592,14 +24592,14 @@ const vy = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
24592
24592
|
}
|
|
24593
24593
|
return {
|
|
24594
24594
|
colon: Q,
|
|
24595
|
-
disabled:
|
|
24595
|
+
disabled: le,
|
|
24596
24596
|
disabledOnChangeListener: Y,
|
|
24597
|
-
disabledOnInputListener:
|
|
24597
|
+
disabledOnInputListener: ne,
|
|
24598
24598
|
emptyStateValue: de,
|
|
24599
|
-
hideLabel:
|
|
24599
|
+
hideLabel: te,
|
|
24600
24600
|
hideRequiredMark: G,
|
|
24601
24601
|
labelWidth: K,
|
|
24602
|
-
modelPropName:
|
|
24602
|
+
modelPropName: ae,
|
|
24603
24603
|
wrapperClass: Ee,
|
|
24604
24604
|
...k,
|
|
24605
24605
|
commonComponentProps: L,
|
|
@@ -24638,7 +24638,7 @@ const vy = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
24638
24638
|
estimateFieldHeight: a.estimateFieldHeight
|
|
24639
24639
|
})), T = S(() => a.schema.fieldName), F = S(() => Object.keys(R).filter((k) => k !== "default"));
|
|
24640
24640
|
return (k, Q) => {
|
|
24641
|
-
var L, Z,
|
|
24641
|
+
var L, Z, le, Y, ne, de, V;
|
|
24642
24642
|
return m.value ? (P(), se("div", {
|
|
24643
24643
|
key: 0,
|
|
24644
24644
|
class: he(E.value),
|
|
@@ -24649,8 +24649,8 @@ const vy = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
24649
24649
|
class: he([`${f(r)}__slot`, g.value.wrapperClass])
|
|
24650
24650
|
}, [
|
|
24651
24651
|
f(On)(g.value.content) ? ie(k.$slots, g.value.content, $e(xe({ key: 0 }, j.value))) : (P(), ve(Zt(g.value.content(j.value)), { key: 1 }))
|
|
24652
|
-
], 2)) : s.value ? (P(!0), se(rt, { key: 1 }, We(A.value.children, (H,
|
|
24653
|
-
key: H.fieldName || `row-field-${
|
|
24652
|
+
], 2)) : s.value ? (P(!0), se(rt, { key: 1 }, We(A.value.children, (H, te) => (P(), ve(f(Ni), xe({
|
|
24653
|
+
key: H.fieldName || `row-field-${te}`,
|
|
24654
24654
|
"field-config": I(H),
|
|
24655
24655
|
rules: H.rules
|
|
24656
24656
|
}, { ref_for: !0 }, J.value), mt({
|
|
@@ -24677,11 +24677,11 @@ const vy = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
24677
24677
|
Ae("div", {
|
|
24678
24678
|
class: he(`${f(r)}__header-left`)
|
|
24679
24679
|
}, [
|
|
24680
|
-
ie(k.$slots, `${(
|
|
24680
|
+
ie(k.$slots, `${(le = d.value) == null ? void 0 : le.key}-header-left`, $e(et(x.value))),
|
|
24681
24681
|
Ae("span", {
|
|
24682
24682
|
class: he(`${f(r)}__title`)
|
|
24683
24683
|
}, ot((Y = d.value) == null ? void 0 : Y.title), 3),
|
|
24684
|
-
ie(k.$slots, `${(
|
|
24684
|
+
ie(k.$slots, `${(ne = d.value) == null ? void 0 : ne.key}-title-right`, $e(et(x.value)))
|
|
24685
24685
|
], 2),
|
|
24686
24686
|
Ae("div", {
|
|
24687
24687
|
class: he(`${f(r)}__header-right`)
|
|
@@ -24706,8 +24706,8 @@ const vy = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
24706
24706
|
Ae("div", {
|
|
24707
24707
|
class: he(C.value)
|
|
24708
24708
|
}, [
|
|
24709
|
-
(P(!0), se(rt, null, We(d.value.children, (H,
|
|
24710
|
-
key: f(my)(H,
|
|
24709
|
+
(P(!0), se(rt, null, We(d.value.children, (H, te) => (P(), se(rt, {
|
|
24710
|
+
key: f(my)(H, te)
|
|
24711
24711
|
}, [
|
|
24712
24712
|
f(Bn)(H) || f(tr)(H) || f(zr)(H) ? (P(), ve(by, xe({
|
|
24713
24713
|
key: 0,
|
|
@@ -24757,8 +24757,8 @@ const vy = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
24757
24757
|
}, [
|
|
24758
24758
|
We(F.value, (H) => ({
|
|
24759
24759
|
name: H,
|
|
24760
|
-
fn: X((
|
|
24761
|
-
ie(k.$slots, H, $e(et(
|
|
24760
|
+
fn: X((te) => [
|
|
24761
|
+
ie(k.$slots, H, $e(et(te)))
|
|
24762
24762
|
])
|
|
24763
24763
|
}))
|
|
24764
24764
|
]), 1040, ["field-config", "rules"]))
|
|
@@ -24882,28 +24882,28 @@ const vy = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
24882
24882
|
i.resume();
|
|
24883
24883
|
return;
|
|
24884
24884
|
}
|
|
24885
|
-
const Q = l.value.scrollOffset ?? 0, L = I(k) || F, Z = L && L.scrollHeight > L.clientHeight ? L : null,
|
|
24885
|
+
const Q = l.value.scrollOffset ?? 0, L = I(k) || F, Z = L && L.scrollHeight > L.clientHeight ? L : null, le = Z ?? document.documentElement, Y = x(k, Z, Q);
|
|
24886
24886
|
R(Z, Y, "smooth");
|
|
24887
|
-
let
|
|
24887
|
+
let ne = !1;
|
|
24888
24888
|
const de = () => {
|
|
24889
|
-
|
|
24889
|
+
ne || (ne = !0, le.removeEventListener("scrollend", de), clearTimeout(V), i.resume(), c.value.virtual && N(k, Z, Q));
|
|
24890
24890
|
};
|
|
24891
|
-
|
|
24891
|
+
le.addEventListener("scrollend", de, { once: !0 });
|
|
24892
24892
|
const V = setTimeout(de, 800);
|
|
24893
24893
|
});
|
|
24894
24894
|
}
|
|
24895
24895
|
function N(T, F, k) {
|
|
24896
24896
|
const Q = F ?? document.documentElement;
|
|
24897
24897
|
let L, Z;
|
|
24898
|
-
function
|
|
24899
|
-
|
|
24898
|
+
function le() {
|
|
24899
|
+
ne.disconnect(), clearTimeout(L), cancelAnimationFrame(Z);
|
|
24900
24900
|
}
|
|
24901
24901
|
function Y() {
|
|
24902
|
-
clearTimeout(L), L = setTimeout(
|
|
24902
|
+
clearTimeout(L), L = setTimeout(le, zx);
|
|
24903
24903
|
}
|
|
24904
|
-
const
|
|
24904
|
+
const ne = new ResizeObserver(() => {
|
|
24905
24905
|
if (!T.isConnected) {
|
|
24906
|
-
|
|
24906
|
+
le();
|
|
24907
24907
|
return;
|
|
24908
24908
|
}
|
|
24909
24909
|
cancelAnimationFrame(Z), Z = requestAnimationFrame(() => {
|
|
@@ -24911,7 +24911,7 @@ const vy = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
24911
24911
|
Math.abs(de - V) > Px && R(F, de, "instant");
|
|
24912
24912
|
}), Y();
|
|
24913
24913
|
});
|
|
24914
|
-
|
|
24914
|
+
ne.observe(Q), Y();
|
|
24915
24915
|
}
|
|
24916
24916
|
function j(T) {
|
|
24917
24917
|
E.value = T, a[T] && n.toggleCollapse(T), O(T);
|
|
@@ -24938,8 +24938,8 @@ const vy = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
24938
24938
|
}, { ref_for: !0 }, g.value, { onToggleCollapse: w }), mt({ _: 2 }, [
|
|
24939
24939
|
We(T.$slots, (L, Z) => ({
|
|
24940
24940
|
name: Z,
|
|
24941
|
-
fn: X((
|
|
24942
|
-
ie(T.$slots, Z, xe({ ref_for: !0 },
|
|
24941
|
+
fn: X((le) => [
|
|
24942
|
+
ie(T.$slots, Z, xe({ ref_for: !0 }, le))
|
|
24943
24943
|
])
|
|
24944
24944
|
}))
|
|
24945
24945
|
]), 1040, ["schema"]))), 128))
|
|
@@ -28366,11 +28366,11 @@ function F6(e, {
|
|
|
28366
28366
|
I && E.push("action"), x && E.push("checkbox"), R && E.push("seq"), O && E.push("radio"), N && E.push("expand");
|
|
28367
28367
|
const { collectColumn: j } = ((Q = v.$grid) == null ? void 0 : Q.getTableColumn()) || { collectColumn: [] }, J = j.filter((L) => !E.includes(L.field) && !E.includes(L.type)), T = y();
|
|
28368
28368
|
function F(L, Z) {
|
|
28369
|
-
const
|
|
28369
|
+
const le = [];
|
|
28370
28370
|
return L.forEach((Y) => {
|
|
28371
|
-
const
|
|
28372
|
-
|
|
28373
|
-
}),
|
|
28371
|
+
const ne = Z.find((de) => de.field === Y.field);
|
|
28372
|
+
ne && (Y.children && ne.children && (ne.children = F(Y.children, ne.children)), le.push(ne));
|
|
28373
|
+
}), le;
|
|
28374
28374
|
}
|
|
28375
28375
|
const k = F(J, T);
|
|
28376
28376
|
w(k), o("column-dragend", v);
|
|
@@ -28492,49 +28492,49 @@ function M6(e, {
|
|
|
28492
28492
|
} = f(e);
|
|
28493
28493
|
if (!R || !Se(R)) return;
|
|
28494
28494
|
const { tablePage: Z } = x;
|
|
28495
|
-
let
|
|
28496
|
-
const
|
|
28497
|
-
|
|
28495
|
+
let le = {}, Y = Z.currentPage || 1;
|
|
28496
|
+
const ne = f(e).formApi;
|
|
28497
|
+
ne && L && (le = await ne.getValues());
|
|
28498
28498
|
const de = {};
|
|
28499
28499
|
Pr(de, F, Y || 1), Pr(de, k, Z.pageSize);
|
|
28500
28500
|
try {
|
|
28501
28501
|
r(!0);
|
|
28502
|
-
let
|
|
28502
|
+
let te = null;
|
|
28503
28503
|
if (x != null && x.serverFilterParams && O)
|
|
28504
|
-
|
|
28504
|
+
te = await O({
|
|
28505
28505
|
...x == null ? void 0 : x.serverFilterParams,
|
|
28506
28506
|
...f(h) ? de : {}
|
|
28507
28507
|
});
|
|
28508
28508
|
else {
|
|
28509
28509
|
O && ((V = f(t)) == null || V.clearSort(), (H = f(t)) == null || H.clearFilter());
|
|
28510
28510
|
let be = {
|
|
28511
|
-
...
|
|
28511
|
+
...le,
|
|
28512
28512
|
...N,
|
|
28513
28513
|
...x == null ? void 0 : x.searchInfo,
|
|
28514
28514
|
...f(h) ? de : {}
|
|
28515
28515
|
};
|
|
28516
|
-
be = await w(J, be),
|
|
28516
|
+
be = await w(J, be), te = await R(be);
|
|
28517
28517
|
}
|
|
28518
|
-
d.value =
|
|
28519
|
-
const { resultData: G, resultTotal: $ } = m(
|
|
28518
|
+
d.value = te;
|
|
28519
|
+
const { resultData: G, resultTotal: $ } = m(te, j, Q);
|
|
28520
28520
|
let K = G || [];
|
|
28521
28521
|
K = await y(T, K, de), E(K);
|
|
28522
|
-
const
|
|
28522
|
+
const ae = $ || K.length || 0, Ee = Math.max(1, Math.ceil(ae / Z.pageSize));
|
|
28523
28523
|
Y > Ee && (Y = 1, B({
|
|
28524
28524
|
tablePage: {
|
|
28525
28525
|
currentPage: Y,
|
|
28526
28526
|
pageSize: Z.pageSize
|
|
28527
28527
|
}
|
|
28528
28528
|
})), a({
|
|
28529
|
-
total:
|
|
28529
|
+
total: ae,
|
|
28530
28530
|
currentPage: Y
|
|
28531
28531
|
}), A.value = kt(f(i)), s("fetch-success", {
|
|
28532
28532
|
items: K,
|
|
28533
28533
|
total: $,
|
|
28534
|
-
rawDataSource:
|
|
28534
|
+
rawDataSource: te
|
|
28535
28535
|
}), l(), p.value = !0;
|
|
28536
|
-
} catch (
|
|
28537
|
-
s("fetch-error",
|
|
28536
|
+
} catch (te) {
|
|
28537
|
+
s("fetch-error", te), E([]);
|
|
28538
28538
|
} finally {
|
|
28539
28539
|
setTimeout(() => {
|
|
28540
28540
|
r(!1);
|
|
@@ -29957,18 +29957,18 @@ const J6 = ["data-testid", "data-table-columns"], $6 = ["onClick"], W6 = {
|
|
|
29957
29957
|
getSelectRowKeys: Q,
|
|
29958
29958
|
getSelectRows: L,
|
|
29959
29959
|
clearSelectedRowKeys: Z,
|
|
29960
|
-
setSelectedRowKeys:
|
|
29960
|
+
setSelectedRowKeys: le,
|
|
29961
29961
|
onCellAreaSelectionEndSetCheckbox: Y,
|
|
29962
|
-
onCheckboxRangeChange:
|
|
29962
|
+
onCheckboxRangeChange: ne,
|
|
29963
29963
|
onRadioChange: de
|
|
29964
29964
|
} = z6(C, n, d), {
|
|
29965
29965
|
handleLeftRightSlotInit: V,
|
|
29966
29966
|
handleLeftRightSlotScroll: H,
|
|
29967
|
-
leftRightSlotRows:
|
|
29967
|
+
leftRightSlotRows: te,
|
|
29968
29968
|
tableBodyWrapHeight: G,
|
|
29969
29969
|
tableHeaderHight: $,
|
|
29970
29970
|
tableBodyScrollHeight: K,
|
|
29971
|
-
tableBodyHeight:
|
|
29971
|
+
tableBodyHeight: ae,
|
|
29972
29972
|
leftSlotScrollbarRef: Ee,
|
|
29973
29973
|
rightSlotScrollbarRef: be,
|
|
29974
29974
|
tableBodyScrollTop: Ve
|
|
@@ -30067,7 +30067,7 @@ const J6 = ["data-testid", "data-table-columns"], $6 = ["onClick"], W6 = {
|
|
|
30067
30067
|
onCellAreaSelectionEnd: lt
|
|
30068
30068
|
} = D6(ke, n, d, {
|
|
30069
30069
|
onCellAreaSelectionEndSetCheckbox: Y,
|
|
30070
|
-
onCheckboxRangeChange:
|
|
30070
|
+
onCheckboxRangeChange: ne
|
|
30071
30071
|
}), en = U6(d, B, n, m, C, {
|
|
30072
30072
|
clearSelectedRowKeys: Z
|
|
30073
30073
|
});
|
|
@@ -30107,7 +30107,7 @@ const J6 = ["data-testid", "data-table-columns"], $6 = ["onClick"], W6 = {
|
|
|
30107
30107
|
cellAreaSelectionEnd: lt,
|
|
30108
30108
|
scroll: Te,
|
|
30109
30109
|
toggleRowExpand: Dt,
|
|
30110
|
-
checkboxRangeChange:
|
|
30110
|
+
checkboxRangeChange: ne,
|
|
30111
30111
|
columnDragend: Ir,
|
|
30112
30112
|
// columnResizableChange: onColumnResizableChange,
|
|
30113
30113
|
scrollBoundary: gt,
|
|
@@ -30225,7 +30225,7 @@ const J6 = ["data-testid", "data-table-columns"], $6 = ["onClick"], W6 = {
|
|
|
30225
30225
|
getTableInstance: () => f(d),
|
|
30226
30226
|
getLoading: v,
|
|
30227
30227
|
getTableColumns: Er,
|
|
30228
|
-
setSelectedRowKeys:
|
|
30228
|
+
setSelectedRowKeys: le,
|
|
30229
30229
|
clearSelectedRowKeys: Z,
|
|
30230
30230
|
selectedKeys: j,
|
|
30231
30231
|
selectedRows: J,
|
|
@@ -30340,13 +30340,13 @@ const J6 = ["data-testid", "data-table-columns"], $6 = ["onClick"], W6 = {
|
|
|
30340
30340
|
}, null, 4), Ae("div", {
|
|
30341
30341
|
style: It({
|
|
30342
30342
|
width: "100%",
|
|
30343
|
-
height: `${f(
|
|
30343
|
+
height: `${f(ae)}px`,
|
|
30344
30344
|
marginTop: `${f(Ve)}`
|
|
30345
30345
|
}),
|
|
30346
30346
|
class: "relative"
|
|
30347
30347
|
}, [ie(oe.$slots, "tableLeft", $e(et({
|
|
30348
|
-
rowNodes: f(
|
|
30349
|
-
height: f(
|
|
30348
|
+
rowNodes: f(te),
|
|
30349
|
+
height: f(ae)
|
|
30350
30350
|
})))], 4)]),
|
|
30351
30351
|
_: 3
|
|
30352
30352
|
}, 8, ["height", "style"])) : Me("", !0)])]),
|
|
@@ -30372,13 +30372,13 @@ const J6 = ["data-testid", "data-table-columns"], $6 = ["onClick"], W6 = {
|
|
|
30372
30372
|
}, null, 4), Ae("div", {
|
|
30373
30373
|
style: It({
|
|
30374
30374
|
width: "100%",
|
|
30375
|
-
height: `${f(
|
|
30375
|
+
height: `${f(ae)}px`,
|
|
30376
30376
|
marginTop: `${f(Ve)}`
|
|
30377
30377
|
}),
|
|
30378
30378
|
class: "relative"
|
|
30379
30379
|
}, [ie(oe.$slots, "tableRight", $e(et({
|
|
30380
|
-
rowNodes: f(
|
|
30381
|
-
height: f(
|
|
30380
|
+
rowNodes: f(te),
|
|
30381
|
+
height: f(ae)
|
|
30382
30382
|
})))], 4)]),
|
|
30383
30383
|
_: 3
|
|
30384
30384
|
}, 8, ["height", "style"])) : Me("", !0)])]),
|
|
@@ -31293,8 +31293,8 @@ Ue.prototype = /** @lends Sortable.prototype */
|
|
|
31293
31293
|
fromSortable: A,
|
|
31294
31294
|
target: o,
|
|
31295
31295
|
completed: y,
|
|
31296
|
-
onMove: function(Z,
|
|
31297
|
-
return wl(vt, r, fe, n, Z, Ft(Z), t,
|
|
31296
|
+
onMove: function(Z, le) {
|
|
31297
|
+
return wl(vt, r, fe, n, Z, Ft(Z), t, le);
|
|
31298
31298
|
},
|
|
31299
31299
|
changed: D
|
|
31300
31300
|
}, Q));
|
|
@@ -32310,7 +32310,7 @@ const WQ = ["data-testid"], ZQ = ["data-testid"], qQ = /* @__PURE__ */ me({
|
|
|
32310
32310
|
...Zl
|
|
32311
32311
|
],
|
|
32312
32312
|
setup(e, { expose: t, emit: r }) {
|
|
32313
|
-
var H,
|
|
32313
|
+
var H, te, G;
|
|
32314
32314
|
const o = e, n = r, { prefixCls: i } = pt("table-form"), a = _();
|
|
32315
32315
|
let l = o.tableFormApi;
|
|
32316
32316
|
if (!l) {
|
|
@@ -32361,7 +32361,7 @@ const WQ = ["data-testid"], ZQ = ["data-testid"], qQ = /* @__PURE__ */ me({
|
|
|
32361
32361
|
handleReset: R,
|
|
32362
32362
|
submitOnEnter: !0,
|
|
32363
32363
|
submitButtonOptions: {
|
|
32364
|
-
content: (
|
|
32364
|
+
content: (te = Be.form) == null ? void 0 : te.submitTitle
|
|
32365
32365
|
},
|
|
32366
32366
|
collapseTriggerResize: !0
|
|
32367
32367
|
}), { initCustomSetting: J, saveColumns: T } = JQ({
|
|
@@ -32373,7 +32373,7 @@ const WQ = ["data-testid"], ZQ = ["data-testid"], qQ = /* @__PURE__ */ me({
|
|
|
32373
32373
|
};
|
|
32374
32374
|
Zl.forEach(($) => {
|
|
32375
32375
|
const K = Oe.camelCase($);
|
|
32376
|
-
h[K] = (...
|
|
32376
|
+
h[K] = (...ae) => n($, ...ae);
|
|
32377
32377
|
});
|
|
32378
32378
|
const k = {
|
|
32379
32379
|
...h
|
|
@@ -32394,12 +32394,12 @@ const WQ = ["data-testid"], ZQ = ["data-testid"], qQ = /* @__PURE__ */ me({
|
|
|
32394
32394
|
async ($) => {
|
|
32395
32395
|
j.isMounted && f(w).useSearchForm ? j.validate().then(async (K) => {
|
|
32396
32396
|
if (K.valid) {
|
|
32397
|
-
const
|
|
32397
|
+
const ae = await j.getValues();
|
|
32398
32398
|
await l.tableApi.reload({
|
|
32399
32399
|
...$,
|
|
32400
32400
|
searchInfo: {
|
|
32401
32401
|
...$ == null ? void 0 : $.searchInfo,
|
|
32402
|
-
...
|
|
32402
|
+
...ae
|
|
32403
32403
|
}
|
|
32404
32404
|
});
|
|
32405
32405
|
}
|
|
@@ -32421,7 +32421,7 @@ const WQ = ["data-testid"], ZQ = ["data-testid"], qQ = /* @__PURE__ */ me({
|
|
|
32421
32421
|
reload: L,
|
|
32422
32422
|
selectedKeys: S(() => W(l.tableApi.selectedKeys))
|
|
32423
32423
|
};
|
|
32424
|
-
async function
|
|
32424
|
+
async function le() {
|
|
32425
32425
|
const { tableRefreshBefore: $ } = w.value;
|
|
32426
32426
|
$ && Se($) && await $(), Z.reload();
|
|
32427
32427
|
}
|
|
@@ -32430,16 +32430,16 @@ const WQ = ["data-testid"], ZQ = ["data-testid"], qQ = /* @__PURE__ */ me({
|
|
|
32430
32430
|
$.modalApi.setModalProps({
|
|
32431
32431
|
confirmLoading: !0
|
|
32432
32432
|
}), E.value.useHttpCache && await T(JSON.stringify($.checkedModel));
|
|
32433
|
-
const K = ((Ve = (be = w.value) == null ? void 0 : be.table) == null ? void 0 : Ve.columns) || [],
|
|
32433
|
+
const K = ((Ve = (be = w.value) == null ? void 0 : be.table) == null ? void 0 : Ve.columns) || [], ae = new Map(K.map((at) => [at.field, at])), Ee = $.checkedModel.map((at) => ae.get(at)).filter(Boolean);
|
|
32434
32434
|
l.tableApi.setTableColumns(Ee), $.modalApi.setModalProps({
|
|
32435
32435
|
confirmLoading: !1
|
|
32436
32436
|
}), $.modalApi.closeModal(), n("set-columns", Ee);
|
|
32437
32437
|
}
|
|
32438
|
-
function
|
|
32438
|
+
function ne($ = !1) {
|
|
32439
32439
|
var Ve, at, Tt, cn, un, Ut, vn;
|
|
32440
|
-
const { notSetColumnField: K, columns:
|
|
32440
|
+
const { notSetColumnField: K, columns: ae } = f(E), Ee = (cn = (Tt = (at = ((Ve = l.tableApi.getTableInstance()) == null ? void 0 : Ve.getTableColumn()) || []) == null ? void 0 : at.visibleColumn) == null ? void 0 : Tt.map((dn) => dn.field)) == null ? void 0 : cn.filter(Boolean), be = ((Ut = (un = f(ae)) == null ? void 0 : un.filter((dn) => dn.visible === !0 || dn.visible === void 0)) == null ? void 0 : Ut.map((dn) => dn.field)) || [];
|
|
32441
32441
|
(vn = a.value) == null || vn.openModal({
|
|
32442
|
-
columns: W(
|
|
32442
|
+
columns: W(ae) || [],
|
|
32443
32443
|
displayFields: $ ? be : Ee,
|
|
32444
32444
|
disabledColumnField: K || []
|
|
32445
32445
|
});
|
|
@@ -32476,16 +32476,16 @@ const WQ = ["data-testid"], ZQ = ["data-testid"], qQ = /* @__PURE__ */ me({
|
|
|
32476
32476
|
return Object.fromEntries(Object.entries($).filter(([K]) => !K.startsWith("on")));
|
|
32477
32477
|
}
|
|
32478
32478
|
function V($, K) {
|
|
32479
|
-
return Object.fromEntries(Object.keys($).map((
|
|
32479
|
+
return Object.fromEntries(Object.keys($).map((ae) => [ae, K[ae]]));
|
|
32480
32480
|
}
|
|
32481
32481
|
return ue(
|
|
32482
32482
|
() => gn(o, ["tableFormApi"]),
|
|
32483
32483
|
() => {
|
|
32484
32484
|
var Ve;
|
|
32485
|
-
const $ = {}, K = ((Ve = m == null ? void 0 : m.vnode) == null ? void 0 : Ve.props) || {},
|
|
32485
|
+
const $ = {}, K = ((Ve = m == null ? void 0 : m.vnode) == null ? void 0 : Ve.props) || {}, ae = new Set(Object.keys(o));
|
|
32486
32486
|
for (const [at, Tt] of Object.entries(K)) {
|
|
32487
32487
|
const cn = rs(at);
|
|
32488
|
-
|
|
32488
|
+
ae.has(cn) && ($[cn] = Tt);
|
|
32489
32489
|
}
|
|
32490
32490
|
const Ee = de($), be = V(Ee, o);
|
|
32491
32491
|
l.setState(be);
|
|
@@ -32505,10 +32505,10 @@ const WQ = ["data-testid"], ZQ = ["data-testid"], qQ = /* @__PURE__ */ me({
|
|
|
32505
32505
|
q(f(N), {
|
|
32506
32506
|
"test-id": `${s.value}-search-form`
|
|
32507
32507
|
}, mt({ _: 2 }, [
|
|
32508
|
-
We(f(y)($.$slots), (
|
|
32509
|
-
name: f(b)(
|
|
32508
|
+
We(f(y)($.$slots), (ae) => ({
|
|
32509
|
+
name: f(b)(ae),
|
|
32510
32510
|
fn: X((Ee) => [
|
|
32511
|
-
ie($.$slots,
|
|
32511
|
+
ie($.$slots, ae, $e(et(Ee)))
|
|
32512
32512
|
])
|
|
32513
32513
|
}))
|
|
32514
32514
|
]), 1032, ["test-id"]),
|
|
@@ -32529,18 +32529,18 @@ const WQ = ["data-testid"], ZQ = ["data-testid"], qQ = /* @__PURE__ */ me({
|
|
|
32529
32529
|
"form-api": f(j),
|
|
32530
32530
|
"table-api": f(l).tableApi
|
|
32531
32531
|
}, Gi(k)), mt({ _: 2 }, [
|
|
32532
|
-
We(f(D)($.$slots), (
|
|
32533
|
-
name: f(B)(
|
|
32532
|
+
We(f(D)($.$slots), (ae) => ({
|
|
32533
|
+
name: f(B)(ae),
|
|
32534
32534
|
fn: X((Ee) => [
|
|
32535
|
-
ie($.$slots,
|
|
32535
|
+
ie($.$slots, ae, $e(et(Ee)))
|
|
32536
32536
|
])
|
|
32537
32537
|
})),
|
|
32538
32538
|
f(E).showToolbar ? {
|
|
32539
32539
|
name: "toolbar_tools",
|
|
32540
32540
|
fn: X(() => [
|
|
32541
32541
|
q(GQ, xe(f(I), {
|
|
32542
|
-
onOnRefresh:
|
|
32543
|
-
onOnColumnsSetting:
|
|
32542
|
+
onOnRefresh: le,
|
|
32543
|
+
onOnColumnsSetting: ne
|
|
32544
32544
|
}), {
|
|
32545
32545
|
"toolbar-left": X(() => [
|
|
32546
32546
|
ie($.$slots, "t-toolbar_tools-left")
|
|
@@ -32560,7 +32560,7 @@ const WQ = ["data-testid"], ZQ = ["data-testid"], qQ = /* @__PURE__ */ me({
|
|
|
32560
32560
|
q(RQ, {
|
|
32561
32561
|
ref_key: "tableColumnModalRef",
|
|
32562
32562
|
ref: a,
|
|
32563
|
-
"open-method":
|
|
32563
|
+
"open-method": ne,
|
|
32564
32564
|
onOnSubmit: Y
|
|
32565
32565
|
}, null, 512)
|
|
32566
32566
|
], 10, WQ));
|
|
@@ -32988,29 +32988,34 @@ function wO(e = {}, t = dC) {
|
|
|
32988
32988
|
return u("shopId") && J.length > 1 ? Um(J) : J;
|
|
32989
32989
|
}
|
|
32990
32990
|
function B(O, N, j, J, T) {
|
|
32991
|
-
const F = n(O), k = J.filter((
|
|
32992
|
-
var
|
|
32993
|
-
return (
|
|
32994
|
-
}) || []
|
|
32991
|
+
const F = n(O), k = T ? J.filter((Q) => {
|
|
32992
|
+
var L;
|
|
32993
|
+
return (L = N[F]) == null ? void 0 : L.includes(Q.value);
|
|
32994
|
+
}) || [] : J.find((Q) => Q.value === N[F]);
|
|
32995
32995
|
return {
|
|
32996
32996
|
values: N,
|
|
32997
32997
|
actions: j,
|
|
32998
32998
|
fieldName: F,
|
|
32999
32999
|
dataType: O,
|
|
33000
33000
|
options: J,
|
|
33001
|
-
currentOption:
|
|
33001
|
+
currentOption: k
|
|
33002
33002
|
};
|
|
33003
33003
|
}
|
|
33004
33004
|
function b(O, N, j, J, T) {
|
|
33005
|
-
const F = l(O), k = hO(F.componentProps, N, j, J), Q = s(O),
|
|
33005
|
+
const F = l(O), k = hO(F.componentProps, N, j, J), Q = s(O), { onChange: L, ...Z } = k, le = Q ? F.collapseTags ?? !0 : !1;
|
|
33006
33006
|
return {
|
|
33007
33007
|
multiple: Q,
|
|
33008
|
-
collapseTags:
|
|
33009
|
-
...
|
|
33008
|
+
collapseTags: le,
|
|
33009
|
+
...Z,
|
|
33010
33010
|
component: _m,
|
|
33011
33011
|
options: J,
|
|
33012
|
-
onChange(
|
|
33013
|
-
vO(
|
|
33012
|
+
onChange(Y) {
|
|
33013
|
+
vO(
|
|
33014
|
+
Y,
|
|
33015
|
+
T,
|
|
33016
|
+
F.onChange,
|
|
33017
|
+
B(O, N, j, J, Q)
|
|
33018
|
+
);
|
|
33014
33019
|
}
|
|
33015
33020
|
};
|
|
33016
33021
|
}
|
|
@@ -33038,9 +33043,9 @@ function wO(e = {}, t = dC) {
|
|
|
33038
33043
|
componentProps: (O, N) => {
|
|
33039
33044
|
var Z;
|
|
33040
33045
|
const j = "platformId", J = n(j), T = n("shopId"), F = s(j), k = s("shopId"), Q = d(j), L = ((Z = O[J]) == null ? void 0 : Z.at(-1)) !== $n;
|
|
33041
|
-
return b(j, O, N, Q, (
|
|
33046
|
+
return b(j, O, N, Q, (le) => {
|
|
33042
33047
|
const Y = O[J];
|
|
33043
|
-
F && (L && (
|
|
33048
|
+
F && (L && (le == null ? void 0 : le.at(-1)) === $n ? O[J] = [$n] : O[J] = Y == null ? void 0 : Y.filter((ne) => ne !== $n)), t.includes("shopId") && (O[T] = k ? [] : void 0);
|
|
33044
33049
|
});
|
|
33045
33050
|
}
|
|
33046
33051
|
},
|
|
@@ -33054,8 +33059,8 @@ function wO(e = {}, t = dC) {
|
|
|
33054
33059
|
var L;
|
|
33055
33060
|
const j = "shopId", J = n(j), T = O[n("platformId")], F = D(T), k = s(j), Q = ((L = O[J]) == null ? void 0 : L.at(-1)) !== $n;
|
|
33056
33061
|
return b(j, O, N, F, (Z) => {
|
|
33057
|
-
const
|
|
33058
|
-
k && (Q && (Z == null ? void 0 : Z.at(-1)) === $n ? O[J] = [$n] : O[J] =
|
|
33062
|
+
const le = O[J];
|
|
33063
|
+
k && (Q && (Z == null ? void 0 : Z.at(-1)) === $n ? O[J] = [$n] : O[J] = le == null ? void 0 : le.filter((Y) => Y !== $n));
|
|
33059
33064
|
});
|
|
33060
33065
|
},
|
|
33061
33066
|
dependencies: c("shopId", {
|